/*! For license information please see main.719bdfa6.js.LICENSE.txt */
(()=>{var __webpack_modules__={91324:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r,i=n(61462);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}function a(e,t){let{title:n,titleId:a,...s}=e;return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:t,"aria-labelledby":a},s),n?i.createElement("title",{id:a},n):null,r||(r=i.createElement("path",{d:"M17.5 10C17.5 14.1421 14.1421 17.5 10 17.5M17.5 10C17.5 5.85786 14.1421 2.5 10 2.5M17.5 10H2.5M10 17.5C5.85786 17.5 2.5 14.1421 2.5 10M10 17.5C11.3807 17.5 12.5 14.1421 12.5 10C12.5 5.85786 11.3807 2.5 10 2.5M10 17.5C8.61929 17.5 7.5 14.1421 7.5 10C7.5 5.85786 8.61929 2.5 10 2.5M2.5 10C2.5 5.85786 5.85786 2.5 10 2.5",stroke:"#ADB5BD",strokeLinecap:"round",strokeLinejoin:"round"})))}const s=i.forwardRef(a);n.p},78336:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(61462);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}function o(e,t){let{title:n,titleId:o,...a}=e;return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"svg32",x:0,y:0,style:{enableBackground:"new 0 0 256 256"},viewBox:"0 0 256 256",ref:t,"aria-labelledby":o},a),n?r.createElement("title",{id:o},n):null,r.createElement("g",{id:"g43",transform:"scale(2.56)"},r.createElement("circle",{id:"circle20",cx:50,cy:50,r:50,style:{fill:"#00ef8b"}}),r.createElement("path",{id:"rect22",d:"M57.8 42.2h14.1v14.1H57.8z",style:{fill:"white"}}),r.createElement("path",{id:"path24",d:"M43.7 61.6c0 2.9-2.4 5.3-5.3 5.3s-5.3-2.4-5.3-5.3 2.4-5.3 5.3-5.3h5.3V42.2h-5.3C27.7 42.2 19 50.9 19 61.6S27.7 81 38.4 81s19.4-8.7 19.4-19.4v-5.3H43.7v5.3z",style:{fill:"white"}}),r.createElement("path",{id:"path26",d:"M63.1 35.1H79V21H63.1c-10.7 0-19.4 8.7-19.4 19.4v1.8h14.1v-1.8c0-2.9 2.4-5.3 5.3-5.3z",style:{fill:"white"}}),r.createElement("path",{id:"polygon28",d:"M57.8 42.2H43.7v14.1h14.1z",style:{fill:"#16ff99"}})))}const a=r.forwardRef(o);n.p},43677:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(61462);const r=n.p+"static/media/image_not_available.988ddda591659dac2c8faa0b13859acf.svg"},41551:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r,i,o=n(61462);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function s(e,t){let{title:n,titleId:s,...l}=e;return o.createElement("svg",a({width:19,height:18,viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},l),n?o.createElement("title",{id:s},n):null,r||(r=o.createElement("rect",{x:.75,width:18,height:18,rx:9,fill:"#762FBE"})),i||(i=o.createElement("path",{d:"M10 6.33333C8.89543 6.33333 8 6.93029 8 7.66667C8 8.40305 8.89543 9 10 9C11.1046 9 12 9.59695 12 10.3333C12 11.0697 11.1046 11.6667 10 11.6667M10 6.33333C10.7403 6.33333 11.3866 6.60147 11.7324 7M10 6.33333V5.66667M10 6.33333L10 11.6667M10 11.6667L10 12.3333M10 11.6667C9.25974 11.6667 8.61339 11.3985 8.26758 11M16 9C16 12.3137 13.3137 15 10 15C6.68629 15 4 12.3137 4 9C4 5.68629 6.68629 3 10 3C13.3137 3 16 5.68629 16 9Z",stroke:"white",strokeLinecap:"round"})))}const l=o.forwardRef(s);n.p},54622:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r,i,o=n(61462);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function s(e,t){let{title:n,titleId:s,...l}=e;return o.createElement("svg",a({width:19,height:18,viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},l),n?o.createElement("title",{id:s},n):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_1401_13591)"},o.createElement("path",{d:"M9.75 18C14.7206 18 18.75 13.9706 18.75 9C18.75 4.02944 14.7206 0 9.75 0C4.77944 0 0.75 4.02944 0.75 9C0.75 13.9706 4.77944 18 9.75 18Z",fill:"#762FBE"}),o.createElement("path",{d:"M13.692 7.59601H11.154V10.134H13.692V7.59601Z",fill:"white"}),o.createElement("path",{d:"M8.616 11.088C8.616 11.61 8.184 12.042 7.662 12.042C7.14 12.042 6.708 11.61 6.708 11.088C6.708 10.566 7.14 10.134 7.662 10.134H8.616V7.59601H7.662C5.736 7.59601 4.17 9.16201 4.17 11.088C4.17 13.014 5.736 14.58 7.662 14.58C9.588 14.58 11.154 13.014 11.154 11.088V10.134H8.616V11.088Z",fill:"white"}),o.createElement("path",{d:"M12.108 6.31803H14.97V3.78003H12.108C10.182 3.78003 8.616 5.34603 8.616 7.27203V7.59603H11.154V7.27203C11.154 6.75003 11.586 6.31803 12.108 6.31803Z",fill:"white"}),o.createElement("path",{d:"M11.154 7.59601H8.616V10.134H11.154V7.59601Z",fill:"#762FBE"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_1401_13591"},o.createElement("rect",{width:18,height:18,fill:"white",transform:"translate(0.75)"})))))}const l=o.forwardRef(s);n.p},42777:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(61462);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}function o(e,t){let{title:n,titleId:o,...a}=e;return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"svg32",x:0,y:0,style:{enableBackground:"new 0 0 256 256"},viewBox:"0 0 256 256",ref:t,"aria-labelledby":o},a),n?r.createElement("title",{id:o},n):null,r.createElement("g",{id:"g43",transform:"scale(2.56)"},r.createElement("circle",{id:"circle20",cx:50,cy:50,r:50,style:{fill:"#00ef8b"}}),r.createElement("path",{id:"rect22",d:"M57.8 42.2h14.1v14.1H57.8z",style:{fill:"white"}}),r.createElement("path",{id:"path24",d:"M43.7 61.6c0 2.9-2.4 5.3-5.3 5.3s-5.3-2.4-5.3-5.3 2.4-5.3 5.3-5.3h5.3V42.2h-5.3C27.7 42.2 19 50.9 19 61.6S27.7 81 38.4 81s19.4-8.7 19.4-19.4v-5.3H43.7v5.3z",style:{fill:"white"}}),r.createElement("path",{id:"path26",d:"M63.1 35.1H79V21H63.1c-10.7 0-19.4 8.7-19.4 19.4v1.8h14.1v-1.8c0-2.9 2.4-5.3 5.3-5.3z",style:{fill:"white"}}),r.createElement("path",{id:"polygon28",d:"M57.8 42.2H43.7v14.1h14.1z",style:{fill:"#16ff99"}})))}const a=r.forwardRef(o);n.p},83170:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(61462);const r=n.p+"static/media/new_fallback_image.756db11552689ed90e938269ce4485c4.svg"},22483:(e,t,n)=>{"use strict";n.d(t,{sD:()=>Cg,dG:()=>Oh,tY:()=>hF,Bo:()=>z,M2:()=>s,VR:()=>c,VX:()=>DF,Xb:()=>Bp,t:()=>pF,KE:()=>im,$d:()=>Y,ez:()=>Wt,DG:()=>fF,$z:()=>zt,ZJ:()=>ih,AP:()=>xA,f:()=>$o,m9:()=>_h,Ol:()=>L,aE:()=>Mh,cs:()=>G,$4:()=>zy,zV:()=>Xp,yU:()=>Yv,LZ:()=>Vg,fh:()=>_y,FS:()=>Z,rR:()=>Yp,GM:()=>Sr,Al:()=>fe,Di:()=>J,or:()=>K,t1:()=>Sp,i0:()=>zx,Qw:()=>jh,cI:()=>My,Yj:()=>Pp,dv:()=>Hg});var r={};n.r(r),n.d(r,{attentionMarkers:()=>Yl,contentInitial:()=>Vl,disable:()=>Kl,document:()=>Ul,flow:()=>zl,flowInitial:()=>Hl,insideSpan:()=>Gl,string:()=>Wl,text:()=>ql});var i=n(61462),o=n(14716),a=n(99334);const s=e=>{let{text:t,variant:n,loading:r=!1,disabled:i=!1,btnSize:s="large",onClick:l,bgColor:c="primary",type:u,className:d}=e;return(0,a.jsx)("button",{type:u,onClick:i?void 0:l,disabled:i,className:(0,o.cn)("px-6 text-black rounded-lg shadow-lg uppercase font-black whitespace-nowrap bg-primary",{"bg-[#FF6E25]":"warning"===c,"bg-red-500":"danger"===c,"bg-white":"white"===c,"capitalize p-0 font-medium text-base bg-transparent text-primary shadow-none hover:underline hover:shadow-none":"tertiary"===n,"hover-button":"primary"===c&&!i&&"tertiary"!==n,"hover-danger-button":"danger"===c&&!i,"hover-warning-button":"warning"===c&&!i,"hover-white-button":"white"===c&&!i,"opacity-50 cursor-not-allowed no-shadow":i,"py-2":"small"===s,"py-3":"large"===s,"text-base bg-primary shadow-flowty-btn-primary":"primary"===n,"text-opacity-50":r,"text-xs":"small"===s&&"primary"===n,"w-full text-sm font-extrabold shadow-flowty-btn-secondary":"secondary"===n},d),children:t})};var l=n(98860);const c=e=>{let{id:t,name:n,label:r,disabled:i=!1,checkboxSize:s="small",isError:c=!1,errorMessage:u="",className:d=""}=e;const[p]=(0,l.Mt)({name:n}),h=p.value;return(0,a.jsx)("label",{className:"font-montserrat flex items-center max-w-md gap-[8px] text-[12px] font-[400] leading-[12px] text-neutral-700 hover:text-white focus:text-white cursor-pointer",htmlFor:t,children:(0,a.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[c&&!h&&(0,a.jsx)("span",{className:"text-[#FF6969] text-base h-[8px] w-[4px]",children:"*"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.D0,{role:"checkbox",type:"checkbox",id:t,name:n,disabled:i,className:"hidden","data-testid":n}),(0,a.jsx)("div",{className:(0,o.cn)("text-black flex justify-center rounded-[4px] items-center border focus:border-none cursor-pointer",{"bg-primary":h,"bg-transparent":!h&&"small"===s,"bg-white":!h&&"medium"===s,"border-neutral-300  hover:border-neutral-300":i,"border-neutral-300  hover:border-neutral-500":"medium"===s,"border-none":h,"border-white hover:border-neutral-700":"small"===s,"h-[1.25rem] w-[1.25rem]":"small"===s,"h-[1.5rem] w-[1.5rem]":"medium"===s}),children:h&&(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3657 4.23431C13.6781 4.54673 13.6781 5.05327 13.3657 5.36569L6.96571 11.7657C6.65329 12.0781 6.14676 12.0781 5.83434 11.7657L2.63434 8.56569C2.32192 8.25327 2.32192 7.74673 2.63434 7.43431C2.94676 7.1219 3.45329 7.1219 3.76571 7.43431L6.40002 10.0686L12.2343 4.23431C12.5468 3.9219 13.0533 3.9219 13.3657 4.23431Z",fill:"#031021"})})}),(0,a.jsx)("span",{className:"".concat(i?"text-neutral-300":"text-white"," w-fit ").concat(d),children:r})]}),c&&!h&&u&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43086 2.78911C8.11901 1.56574 9.88039 1.56574 10.5685 2.78911L15.5908 11.7176C16.2657 12.9175 15.3987 14.4001 14.022 14.4001H3.97743C2.60074 14.4001 1.73365 12.9175 2.40859 11.7176L7.43086 2.78911ZM9.89962 11.7002C9.89962 12.1972 9.49668 12.6002 8.99962 12.6002C8.50257 12.6002 8.09962 12.1972 8.09962 11.7002C8.09962 11.2031 8.50257 10.8002 8.99962 10.8002C9.49668 10.8002 9.89962 11.2031 9.89962 11.7002ZM8.99962 4.50017C8.50257 4.50017 8.09962 4.90311 8.09962 5.40017V8.10017C8.09962 8.59723 8.50257 9.00017 8.99962 9.00017C9.49668 9.00017 9.89962 8.59723 9.89962 8.10017V5.40017C9.89962 4.90311 9.49668 4.50017 8.99962 4.50017Z",fill:"#FF6969"})}),(0,a.jsx)("span",{className:"text-[#FF6969] font-normal text-xs",children:u})]})]})})};var u,d=n(82995);function p(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),c=(0,i.useRef)(),u=(0,i.useRef)(),d=(0,i.useRef)(e),p=(0,i.useRef)(!0);(0,i.useEffect)((function(){d.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;(0,i.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var y=(0,i.useMemo)((function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-a.current>=v},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=c.current=null,u.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(p.current){var s=t-(r-o.current),l=g?Math.min(s,v-(r-a.current)):s;n(e,l)}},w=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),c.current=r,o.current=d,h){if(!s.current&&p.current)return a.current=o.current,n(b,t),f?e(o.current):u.current;if(g)return n(b,t),e(o.current)}return s.current||n(b,t),u.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=c.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?y(Date.now()):u.current},w}),[f,g,t,v,m,h]);return y}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",h({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,u||(u=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3257 12.8986L19.7057 18.2786C19.8948 18.4679 20.001 18.7245 20.0009 18.992C20.0008 19.2595 19.8945 19.516 19.7052 19.7051C19.516 19.8942 19.2594 20.0004 18.9919 20.0003C18.7244 20.0002 18.4678 19.8939 18.2787 19.7046L12.8987 14.3246C11.2905 15.5703 9.26802 16.1565 7.24287 15.964C5.21772 15.7714 3.34198 14.8147 1.99723 13.2882C0.652477 11.7618 -0.0602651 9.78044 0.00399633 7.74717C0.0682577 5.7139 0.904695 3.78148 2.34315 2.34303C3.7816 0.904573 5.71402 0.0681356 7.74729 0.00387426C9.78056 -0.0603871 11.7619 0.652355 13.2884 1.9971C14.8148 3.34185 15.7716 5.2176 15.9641 7.24275C16.1566 9.2679 15.5704 11.2903 14.3247 12.8986H14.3257ZM8.00074 13.9996C9.59204 13.9996 11.1182 13.3675 12.2434 12.2423C13.3686 11.117 14.0007 9.59092 14.0007 7.99962C14.0007 6.40832 13.3686 4.8822 12.2434 3.75698C11.1182 2.63176 9.59204 1.99962 8.00074 1.99962C6.40944 1.99962 4.88332 2.63176 3.7581 3.75698C2.63289 4.8822 2.00074 6.40832 2.00074 7.99962C2.00074 9.59092 2.63289 11.117 3.7581 12.2423C4.88332 13.3675 6.40944 13.9996 8.00074 13.9996Z",fill:"#04E5A3"})))}const m=i.forwardRef(f);n.p;var g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}function y(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",v({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,g||(g=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3257 12.8987L19.7057 18.2787C19.8948 18.4679 20.001 18.7245 20.0009 18.992C20.0008 19.2595 19.8945 19.5161 19.7052 19.7052C19.516 19.8943 19.2594 20.0004 18.9919 20.0003C18.7244 20.0002 18.4678 19.8939 18.2787 19.7047L12.8987 14.3247C11.2905 15.5703 9.26802 16.1565 7.24287 15.964C5.21772 15.7715 3.34198 14.8147 1.99723 13.2883C0.652477 11.7618 -0.0602651 9.78047 0.00399633 7.7472C0.0682577 5.71393 0.904695 3.78151 2.34315 2.34306C3.7816 0.904603 5.71402 0.0681662 7.74729 0.00390477C9.78056 -0.0603566 11.7619 0.652385 13.2884 1.99713C14.8148 3.34188 15.7716 5.21763 15.9641 7.24278C16.1566 9.26793 15.5704 11.2904 14.3247 12.8987H14.3257ZM8.00074 13.9997C9.59204 13.9997 11.1182 13.3675 12.2434 12.2423C13.3686 11.1171 14.0007 9.59095 14.0007 7.99965C14.0007 6.40835 13.3686 4.88223 12.2434 3.75701C11.1182 2.63179 9.59204 1.99965 8.00074 1.99965C6.40944 1.99965 4.88332 2.63179 3.7581 3.75701C2.63289 4.88223 2.00074 6.40835 2.00074 7.99965C2.00074 9.59095 2.63289 11.1171 3.7581 12.2423C4.88332 13.3675 6.40944 13.9997 8.00074 13.9997Z",fill:"#6C757D"})))}const b=i.forwardRef(y),w=(n.p,e=>{const[t,n]=(0,i.useState)(e.value),[r,s]=(0,i.useState)(!1);(0,i.useEffect)((()=>{n(e.value)}),[e.value]);const l=p((t=>{e.onChange(t)}),e.debounceTime);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("label",{htmlFor:"search",className:"sr-only block text-sm leading-6 text-[#6C757D]",children:e.labelText}),(0,a.jsxs)("div",{className:"relative flex w-full items-center rounded-md shadow-sm",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-[24px]",children:r?(0,a.jsx)(m,{}):(0,a.jsx)(b,{})}),e.isMobile?(0,a.jsx)(d.A,{onClick:e.onClear,className:"absolute right-[24px] w-[1.5rem] h-[1.5rem] cursor-pointer"}):null,(0,a.jsx)("input",{onBlur:()=>{s(!1),e.onBlur&&e.onBlur()},onKeyDown:e=>{"Enter"===e.key&&l(t)},type:"text",name:"search",id:"search",onFocus:()=>{s(!0),e.onFocus&&e.onFocus()},className:(0,o.cn)("flex border-[1px] border-[#6c757d40] truncate placeholder:truncate !h-[40px] w-full text-[0.875rem] h-[2.5rem] text-sm leading-6 font-montserrat font-normal rounded-[6px] bg-[#e1e1e114] bg-opacity-50 py-[0.375rem] pl-[3.75rem] text-white placeholder:text-gray-400 placeholder:text-[0.875rem] placeholder:font-[400] hover:bg-[#ffffff14] outline-none focus:bg-[#ffffff14] active:bg-[#ffffff14] sm:text-sm sm:leading-6",{"border-[1px] border-primary":r}),onChange:e=>{const t=e.target.value;n(t),l(t)},disabled:e.disabled,maxLength:e.maxLength,autoFocus:e.autoFocus,value:t,placeholder:e.placeholder,autoComplete:"off"})]})]})})}),x=()=>(0,a.jsxs)("svg",{width:"158",height:"132",viewBox:"0 0 158 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M78.9404 132C115.389 132 144.94 102.449 144.94 66C144.94 29.5515 115.389 0 78.9404 0C42.4919 0 12.9404 29.5515 12.9404 66C12.9404 102.449 42.4919 132 78.9404 132Z",fill:"#6C757D",fillOpacity:"0.4"}),(0,a.jsx)("path",{d:"M105.088 19.008H54.1906C49.3305 19.008 45.3906 22.9479 45.3906 27.808V95.4745C45.3906 100.335 49.3305 104.274 54.1906 104.274H105.088C109.948 104.274 113.888 100.335 113.888 95.4745V27.808C113.888 22.9479 109.948 19.008 105.088 19.008Z",fill:"#F8F9FA",fillOpacity:"0.14"}),(0,a.jsx)("path",{d:"M54.1354 91.168H103.745C105.236 91.168 106.44 92.3725 106.44 93.863C106.44 95.3535 105.236 96.558 103.745 96.558H54.1354C52.6449 96.558 51.4404 95.3535 51.4404 93.863C51.4404 92.3725 52.6449 91.168 54.1354 91.168Z",fill:"#D5D5D5"}),(0,a.jsx)("path",{d:"M154.923 9.58099H121.879C120.339 9.58099 119.091 10.8955 119.091 12.5125V28.8585C119.091 30.481 120.339 31.7955 121.879 31.7955H154.923C156.463 31.7955 157.712 30.481 157.712 28.8585V12.5125C157.712 10.89 156.463 9.58099 154.923 9.58099Z",fill:"#575A5D"}),(0,a.jsxs)("g",{opacity:"0.7",children:[(0,a.jsx)("path",{d:"M84.5994 46.9151L86.5805 38H71.722C66.4919 38.9509 63.5994 44.0755 62.807 46.5189L54.2881 79.6038H64.59L68.3541 64.5472H75.4862L77.4673 55.2358H70.7315C72.5145 48.8962 73.1088 46.9151 74.2975 46.9151H84.5994Z",fill:"white"}),(0,a.jsx)("path",{d:"M78.2599 75.6414C78.2599 78.0486 76.3086 79.9999 73.9015 79.9999C71.4943 79.9999 69.543 78.0486 69.543 75.6414C69.543 73.2343 71.4943 71.283 73.9015 71.283C76.3086 71.283 78.2599 73.2343 78.2599 75.6414Z",fill:"#B3BBBE"}),(0,a.jsx)("path",{d:"M89.5519 75.6414C89.5519 78.0486 87.6006 79.9999 85.1935 79.9999C82.7863 79.9999 80.835 78.0486 80.835 75.6414C80.835 73.2343 82.7863 71.283 85.1935 71.283C87.6006 71.283 89.5519 73.2343 89.5519 75.6414Z",fill:"#B3BBBE"}),(0,a.jsx)("path",{d:"M100.845 75.6414C100.845 78.0486 98.8935 79.9999 96.4864 79.9999C94.0793 79.9999 92.1279 78.0486 92.1279 75.6414C92.1279 73.2343 94.0793 71.283 96.4864 71.283C98.8935 71.283 100.845 73.2343 100.845 75.6414Z",fill:"#B3BBBE"})]}),(0,a.jsx)("path",{d:"M127.341 24.2C129.162 24.2 130.641 22.7205 130.641 20.9C130.641 19.0795 129.162 17.6 127.341 17.6C125.521 17.6 124.041 19.0795 124.041 20.9C124.041 22.7205 125.521 24.2 127.341 24.2Z",fill:"#989EA1"}),(0,a.jsx)("path",{d:"M138.34 17.6H149.34C151.161 17.6 152.64 19.0795 152.64 20.9C152.64 22.7205 151.161 24.2 149.34 24.2H138.34C136.52 24.2 135.04 22.7205 135.04 20.9C135.04 19.0795 136.52 17.6 138.34 17.6Z",fill:"#D5D5D5"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.2513 108.108C105.335 108.108 111.919 105.963 117.391 102.294L139.776 123.662L147.894 114.246L126.296 93.6265C130.283 88.011 132.632 81.147 132.632 73.7385C132.632 54.7525 117.243 39.3635 98.2568 39.3635C79.2708 39.3635 63.8818 54.7525 63.8818 73.7385C63.8818 92.7245 79.2708 108.113 98.2568 108.113L98.2513 108.108ZM127.572 73.733C127.572 89.804 114.542 102.833 98.4713 102.833C82.4003 102.833 69.3708 89.804 69.3708 73.733C69.3708 57.662 82.4003 44.6325 98.4713 44.6325C114.542 44.6325 127.572 57.662 127.572 73.733Z",fill:"#BEFFEC"}),(0,a.jsx)("path",{d:"M103.647 73.7L110.902 66.473C111.584 65.758 111.952 64.8065 111.941 63.822C111.93 62.8375 111.529 61.9025 110.83 61.204C110.132 60.511 109.186 60.1095 108.196 60.0985C107.206 60.0875 106.249 60.456 105.528 61.1325L98.2573 68.3595L91.0028 61.1325C90.6563 60.764 90.2328 60.4725 89.7708 60.269C89.3033 60.0655 88.8028 59.9555 88.2968 59.95C87.7908 59.9445 87.2848 60.038 86.8118 60.225C86.3388 60.4175 85.9153 60.698 85.5523 61.0555C85.1948 61.413 84.9088 61.8365 84.7163 62.304C84.5238 62.7715 84.4303 63.272 84.4358 63.778C84.4413 64.284 84.5513 64.779 84.7548 65.2465C84.9583 65.7085 85.2553 66.1265 85.6238 66.473L92.8893 73.7L85.6238 80.927C85.2553 81.2735 84.9583 81.6915 84.7548 82.1535C84.5513 82.6155 84.4413 83.116 84.4358 83.622C84.4303 84.128 84.5238 84.6285 84.7163 85.096C84.9088 85.5635 85.1893 85.987 85.5523 86.3445C85.9098 86.702 86.3388 86.9825 86.8118 87.175C87.2848 87.3675 87.7853 87.461 88.2968 87.45C88.8083 87.439 89.3088 87.3345 89.7708 87.131C90.2383 86.9275 90.6563 86.636 91.0028 86.2675L98.2738 79.0405L105.545 86.2675C106.271 86.9 107.211 87.241 108.179 87.208C109.147 87.175 110.066 86.779 110.748 86.1025C111.43 85.4205 111.826 84.5075 111.853 83.545C111.881 82.5825 111.54 81.6475 110.896 80.927L103.642 73.7H103.647Z",fill:"#BEFFEC"}),(0,a.jsx)("path",{d:"M139.771 123.662L147.888 114.24L149.109 115.406C150.297 116.539 151.007 118.118 151.084 119.806C151.161 121.489 150.6 123.139 149.528 124.388C148.45 125.636 146.948 126.384 145.347 126.467C143.747 126.549 142.179 125.961 140.997 124.828L139.776 123.662H139.771Z",fill:"#BEFFEC"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.4114 34.1935C27.4004 33.407 27.3014 32.6205 27.1089 31.823C26.4159 29.029 23.3414 27.236 20.0634 26.8125C16.7854 26.389 13.3809 27.3515 12.0664 29.7825C11.3129 31.174 11.2139 32.373 11.5164 33.3795C11.8244 34.386 12.5449 35.2165 13.5294 35.8655C16.2739 37.675 21.0754 38.0435 23.2699 37.2845C24.2819 36.9325 25.2719 36.5145 26.2399 36.0305C25.6899 39.193 23.6329 42.185 20.8939 44.88C14.9319 50.743 5.68641 55.1925 0.648407 56.8315C0.378907 56.9195 0.224906 57.2165 0.312906 57.5025C0.395406 57.783 0.686905 57.9425 0.956405 57.8545C6.09341 56.188 15.5204 51.6395 21.5979 45.661C24.7384 42.57 26.9769 39.094 27.3564 35.442C34.4514 31.482 40.2814 24.2935 45.2644 18.249C45.4514 18.029 45.4239 17.688 45.2094 17.4955C44.9949 17.303 44.6704 17.325 44.4834 17.5505C39.7039 23.353 34.1544 30.25 27.4114 34.1935ZM26.3829 34.771C26.4214 33.891 26.3389 32.9945 26.1134 32.0925C25.5139 29.6725 22.7749 28.2425 19.9369 27.8795C18.1989 27.654 16.4114 27.841 15.0089 28.4955C14.1289 28.908 13.4029 29.502 12.9629 30.316C12.3909 31.3775 12.2644 32.2905 12.5009 33.0605C12.7374 33.836 13.3204 34.463 14.0849 34.9635C16.5874 36.6135 20.9599 36.96 22.9564 36.2725C24.1334 35.8655 25.2774 35.3595 26.3884 34.771H26.3829Z",fill:"#BDBDBD"}),(0,a.jsx)("path",{d:"M153.191 88.55C155.013 88.55 156.491 87.0726 156.491 85.25C156.491 83.4275 155.013 81.95 153.191 81.95C151.368 81.95 149.891 83.4275 149.891 85.25C149.891 87.0726 151.368 88.55 153.191 88.55Z",fill:"#E3E3E3"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5492 108.015C29.1377 107.795 29.7592 107.503 30.2377 107.074C30.8042 106.568 31.0352 105.919 31.1892 105.237C31.3872 104.357 31.4697 103.422 31.7117 102.542C31.7997 102.212 31.9702 102.091 32.0472 102.036C32.2342 101.898 32.4212 101.86 32.5972 101.877C32.8062 101.893 33.0977 101.975 33.2847 102.349C33.3122 102.404 33.3452 102.482 33.3727 102.597C33.3892 102.68 33.4002 102.932 33.4222 103.037C33.4662 103.295 33.5047 103.554 33.5432 103.812C33.6642 104.676 33.7302 105.407 34.1097 106.199C34.6212 107.277 35.1327 107.932 35.8312 108.223C36.5022 108.504 37.3107 108.454 38.3392 108.229C38.4382 108.201 38.5317 108.185 38.6307 108.163C39.0817 108.08 39.5162 108.394 39.6042 108.867C39.6922 109.34 39.4062 109.802 38.9552 109.906C38.8617 109.928 38.7682 109.95 38.6802 109.967C37.2887 110.33 35.6827 111.622 34.7477 112.75C34.4617 113.096 34.0382 114.075 33.6092 114.697C33.2902 115.153 32.9327 115.456 32.6357 115.566C32.4322 115.637 32.2672 115.626 32.1242 115.588C31.9207 115.533 31.7502 115.417 31.6237 115.236C31.5522 115.137 31.4862 114.999 31.4587 114.829C31.4422 114.746 31.4422 114.537 31.4422 114.438C31.3542 114.119 31.2497 113.811 31.1672 113.492C30.9802 112.728 30.6172 112.244 30.1827 111.606C29.7757 111.007 29.3412 110.632 28.6977 110.33C28.6152 110.308 27.9442 110.137 27.7077 110.038C27.3612 109.895 27.1962 109.648 27.1357 109.516C27.0312 109.296 27.0257 109.098 27.0422 108.938C27.0697 108.696 27.1742 108.493 27.3557 108.328C27.4657 108.223 27.6362 108.124 27.8617 108.075C28.0377 108.036 28.4942 108.015 28.5602 108.015H28.5492ZM32.4927 106.771C32.5257 106.843 32.5587 106.92 32.5917 106.991C33.3397 108.57 34.1812 109.45 35.1987 109.873L35.2317 109.89C34.5497 110.423 33.9337 111.018 33.4607 111.59C33.2682 111.826 33.0097 112.315 32.7292 112.816C32.4762 111.952 32.0637 111.342 31.5467 110.577C31.1507 109.994 30.7327 109.555 30.2212 109.197C30.6172 108.983 30.9967 108.729 31.3267 108.438C31.8767 107.948 32.2397 107.387 32.4872 106.771H32.4927Z",fill:"#CCC6D9"})]}),C=()=>{const e=localStorage.getItem("recentSearches");if("null"===e)return[];{const t=JSON.parse(null!==e&&void 0!==e?e:"[]").map((e=>JSON.stringify(e))),n=new Set(t),r=Array.from(n).map((e=>JSON.parse(e)));return r}},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=localStorage.getItem("recentSearches"),r=JSON.parse(n||"[]");r.unshift(e),r.length>t&&(r.length=t),localStorage.setItem("recentSearches",JSON.stringify(r))};var E,_,T=n(10514);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(null,arguments)}function k(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",S({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,E||(E=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.26701 3.45496C6.91008 3.40364 7.52057 3.15077 8.01158 2.73234C9.15738 1.75589 10.8426 1.75589 11.9884 2.73234C12.4794 3.15077 13.0899 3.40364 13.733 3.45496C15.2336 3.57471 16.4253 4.76636 16.545 6.26701C16.5964 6.91008 16.8492 7.52057 17.2677 8.01158C18.2441 9.15738 18.2441 10.8426 17.2677 11.9884C16.8492 12.4794 16.5964 13.0899 16.545 13.733C16.4253 15.2336 15.2336 16.4253 13.733 16.545C13.0899 16.5964 12.4794 16.8492 11.9884 17.2677C10.8426 18.2441 9.15738 18.2441 8.01158 17.2677C7.52057 16.8492 6.91008 16.5964 6.26701 16.545C4.76636 16.4253 3.57471 15.2336 3.45496 13.733C3.40364 13.0899 3.15077 12.4794 2.73234 11.9884C1.75589 10.8426 1.75589 9.15738 2.73234 8.01158C3.15077 7.52057 3.40364 6.91008 3.45496 6.26701C3.57471 4.76636 4.76636 3.57471 6.26701 3.45496ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z",fill:"url(#paint0_angular_4665_441)"})),_||(_=i.createElement("defs",null,i.createElement("radialGradient",{id:"paint0_angular_4665_441",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10 10) rotate(90) scale(8)"},i.createElement("stop",{offset:.255208,stopColor:"#04E5A3"}),i.createElement("stop",{offset:1,stopColor:"#04E5A3",stopOpacity:.47})))))}const P=i.forwardRef(k);n.p;var D;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(null,arguments)}function N(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",F({width:18,height:16,viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,D||(D=i.createElement("path",{d:"M9.77734 8H11.5548C12.0455 8 12.4433 8.39445 12.4433 8.88867C12.4433 9.37947 12.049 9.77734 11.5548 9.77734H8.8885C8.6445 9.77734 8.42348 9.67981 8.26291 9.52099C8.09945 9.35678 8 9.13669 8 8.89686V5.3258C8 4.83953 8.39445 4.44533 8.88867 4.44533C9.37947 4.44533 9.77734 4.84609 9.77734 5.3258V8ZM1.8662 5.13878C2.7527 2.8302 4.69407 0.963519 7.26548 0.274511C11.5322 -0.86874 15.9178 1.66329 17.061 5.92996C18.2043 10.1966 15.6722 14.5822 11.4056 15.7255C7.13889 16.8687 2.75328 14.3367 1.61003 10.07L3.32681 9.61003C4.216 12.9286 7.62703 14.8979 10.9455 14.0087C14.2641 13.1195 16.2334 9.70849 15.3442 6.38997C14.455 3.07145 11.044 1.10209 7.72549 1.99129C5.62718 2.55353 4.06828 4.12401 3.43035 6.04184L5.44196 7.20324L1.15002 8.35326L0 4.06132L1.8662 5.13878Z",fill:"#6C757D"})))}const I=i.forwardRef(N),R=(n.p,e=>{var t;let{result:n,isRecent:r}=e;const o=n,s=(0,i.useMemo)((()=>{var e;return"TopShot"===o.name?"NBA Top Shot":(null===o||void 0===o||null===(e=o.collectionDisplay)||void 0===e?void 0:e.name)||(null===o||void 0===o?void 0:o.name)}),[o.name]);return(0,a.jsxs)("div",{className:"p-[12px] flex items-center gap-[14px] hover:bg-[#6C757D40] hover:bg-opacity-20 w-full",children:[r&&(0,a.jsx)(I,{width:"24",height:"24"}),(0,a.jsx)("img",{src:(0,T.getSquareImage)(null!==(t=o.name)&&void 0!==t?t:"",o),className:"w-[34px] h-[34px] flex-shrink-0 rounded-[6px]",alt:"Collection's logo"}),(0,a.jsxs)("div",{className:"flex items-center gap-[8px] overflow-hidden w-full",children:[(0,a.jsx)("span",{className:"text-[14px] text-[#F8F9FA] font-[600] truncate w-full",children:s}),o.isNFTCatalog&&(0,a.jsx)(P,{})]})]})}),O=e=>{let{searchResults:t,onMouseEnter:n,onMouseLeave:r}=e;return(0,a.jsxs)("div",{onMouseEnter:n,onMouseLeave:r,className:"flex rounded-[6px] searchResultsBackground flex-col p-[4px] gap-[14px] items-end",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center w-full",children:[(0,a.jsx)("div",{className:"pb-[8px] pt-[12px]",children:(0,a.jsx)(x,{})}),(0,a.jsx)("span",{className:"text-[12px] pt-2 font-montserrat font-[400] text-[#ADB5BD]",children:"You can only search for NFT collections"})]}),(0,a.jsx)("div",{className:"gradient-bg-search w-full h-[1px] my-[4px]"}),(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center w-full",children:[(0,a.jsx)("div",{className:"flex px-[12px] pb-[12px]",children:(0,a.jsx)("span",{className:"text-[#ADB5BD] text-[14px]",children:"Popular Searches"})}),(0,a.jsx)("div",{className:"overflow-auto max-h-[300px] w-full",children:t.map((e=>(0,a.jsx)("a",{onClick:()=>A(e),href:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK?"#":"/collection/".concat(e.address,"/").concat(null===e||void 0===e?void 0:e.name),children:(0,a.jsx)(R,{result:e})},e.address)))})]})]})},j=e=>{let{onMouseEnter:t,onMouseLeave:n}=e;const r=C();return(0,a.jsx)("div",{className:"flex rounded-[6px] searchResultsBackground flex-col gap-[14px] items-end",onMouseEnter:t,onMouseLeave:n,children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center w-full",children:[(0,a.jsx)("div",{className:"flex p-[12px] w-full",children:(0,a.jsx)("span",{className:"text-[#ADB5BD] text-[14px]",children:r.length>0?"Recent":"No Recent Results"})}),(0,a.jsx)("div",{className:"overflow-auto max-h-[300px] w-full",children:r.filter((e=>!!e.name)).map((e=>(0,a.jsx)("a",{onClick:()=>(e=>{const t=localStorage.getItem("recentSearches"),n=JSON.parse(t||"[]");n.push(e),localStorage.setItem("recentSearches",JSON.stringify(n))})(e),href:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK?"#":"/collection/".concat(e.address,"/").concat(e.name),children:(0,a.jsx)(R,{result:e,isRecent:!0})},e.address)))})]})})},M=e=>{let{searchResults:t,onMouseEnter:n,onMouseLeave:r}=e;return(0,a.jsx)("div",{className:"flex rounded-[6px] searchResultsBackground flex-col gap-[14px] items-end",onMouseEnter:n,onMouseLeave:r,children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center w-full",children:[(0,a.jsx)("div",{className:"flex p-[12px] w-full",children:(0,a.jsx)("span",{className:"text-[#ADB5BD] text-[14px]",children:"Results"})}),(0,a.jsx)("div",{className:"overflow-auto max-h-[300px] w-full",children:t.filter((e=>!(null===e||void 0===e||!e.name))).map((e=>(0,a.jsx)("a",{onClick:()=>A(e),href:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK?"#":"/collection/".concat(e.address,"/").concat(null===e||void 0===e?void 0:e.name),children:(0,a.jsx)(R,{result:e})},e.address)))})]})})},L=e=>{let{value:t,placeholder:n,debounceTime:r,hits:o,disabled:s,onChange:l,onBlur:c,autoFocus:u,popularSearches:d,labelText:p}=e;const h=(0,i.useRef)(null),[f,m]=(0,i.useState)(0),[g,v]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),[x,A]=(0,i.useState)(!1),E=(0,i.useMemo)((()=>o.map((e=>e.data))),[o,t]);(0,i.useEffect)((()=>{const e=setTimeout((()=>{A(!1)}),r);return()=>clearTimeout(e)}),[t,r]);const _=(0,i.useMemo)((()=>C()),[]),T=(0,i.useMemo)((()=>x?(0,a.jsx)("div",{className:"flex rounded-[6px] searchResultsBackground flex-col gap-[14px] items-end",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center w-full",children:[(0,a.jsx)("div",{className:"flex p-[12px] w-full",children:(0,a.jsx)("span",{className:"text-[#ADB5BD] text-[14px]",children:"Searching..."})}),(0,a.jsx)("div",{className:"overflow-auto max-h-[300px] w-full",children:(0,a.jsxs)("div",{className:"p-[12px] flex items-center gap-[14px] hover:bg-[#6C757D40] hover:bg-opacity-20 w-full",children:[(0,a.jsx)("div",{className:"w-[34px] h-[34px] flex-shrink-0 rounded-[6px] bg-[#606e7d33] animate-pulse backdrop-blur-3xl"}),(0,a.jsx)("div",{className:"flex items-center gap-[8px] overflow-hidden w-full",children:(0,a.jsx)("div",{className:"flex items-center gap-[8px] overflow-hidden w-full",children:(0,a.jsx)("span",{className:"text-[14px] text-[#F8F9FA] font-[600] truncate w-full bg-[#606e7d33] h-6 animate-pulse backdrop-blur-3xl"})})})]})})]})}):!t&&y&&_.length>0?(0,a.jsx)(j,{onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}):t&&t.length>=3&&E&&E.length<=0?(0,a.jsx)(O,{onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),searchResults:d}):t&&E&&(null===E||void 0===E?void 0:E.length)>0?(0,a.jsx)(M,{onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),searchResults:E}):y&&_.length>=0?(0,a.jsx)(O,{onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),searchResults:d}):void 0),[E,t,y,d,x]);return(0,i.useEffect)((()=>{h.current&&m(h.current.clientWidth)}),[h.current]),(0,a.jsxs)("div",{className:"w-full lg:w-[340px] flex flex-col gap-[12px] relative",ref:h,children:[(0,a.jsx)(w,{autoFocus:u,onFocus:()=>{b(!0)},onBlur:()=>{g||(b(!1),c&&c())},disabled:s,value:t,onChange:e=>{A(!0),l(e)},onClear:()=>{l("")},placeholder:n,debounceTime:r,labelText:p}),(0,a.jsx)("div",{className:"absolute top-[54px] w-[".concat(f,"px] left-0 z-10"),children:T})]})};var B=n(83849),U=n(42332);const V=e=>{let{item:t,isCreatorHub:n=!1}=e;const[r,o]=(0,i.useState)(!1);return t.notDisplay?null:(0,a.jsxs)("div",{className:"flex flex-col ".concat(n?"gap-[4px] 3xl:gap-[8px]":"gap-2"),"aria-checked":!0,"aria-disabled":!0,onClick:()=>o(!r),children:[(0,a.jsxs)("div",{className:"flex justify-between cursor-pointer items-start",children:[(0,a.jsxs)("div",{className:"flex justify-center items-center",children:[r?(0,a.jsx)(B.A,{className:"h-[1.125rem] w-[1.125rem]"}):(0,a.jsx)(U.A,{className:"h-[1.125rem] w-[1.125rem]"}),(0,a.jsx)("span",{className:"".concat(n?"text-[9.333px] 3xl:text-[14px]":"text-sm font-normal ml-1"),children:t.title}),t.badge&&(0,a.jsxs)("div",{className:"flex-shrink-0 mx-2 flex justify-center items-center bg-[#2F2FA5] shadow-xl rounded-md bg-opacity-50 font-montserrat-bold font-bold text-[#9D9DFE] uppercase ".concat(n?"text-[9.333px] 3xl:text-[12px]":"py-1 px-2 text-xs"),children:[" ",t.badge]})]}),t.addOn&&t.addOn]}),(0,a.jsx)("div",{className:"ml-1 font-montserrat ".concat(n?"text-[9.333px] leading-normal 3xl:text-[14px]":"text-sm"),children:r&&t.content})]})},H=e=>{let{items:t,isCreatorHub:n=!1}=e;return(0,a.jsx)("div",{className:"text-white w-full flex flex-col gap-2",children:t.map(((e,t)=>(0,a.jsx)(V,{item:e,isCreatorHub:n},t)))})},z=e=>{let{text:t,type:n,size:r="large",status:i}=e;return(0,a.jsx)("span",{className:(0,o.cn)("flex items-center px-[0.375rem] gap-[0.625rem] font-montserrat text-navy-blue-900 font-[800] text-[0.625rem] uppercase rounded-[0.375rem]",{"bg-[#41625E] text-[#89F6C2] text-[10px] font-[800] tracking-[.55px]":"SUCCESSFUL"===i,"bg-[#624141] text-[#F68989] text-[10px] font-[800] tracking-[.55px]":"FAILED"===i,"bg-[#727272] text-[#E9E9E9] text-[10px] font-[800] tracking-[.55px]":"PROCESSING"===i,"bg-cyan-300":"tertiary"===n,"bg-primary":"primary"===n,"bg-white":"secondary"===n,"py-[0.125rem]":"large"===r}),children:t})},W=e=>{const t=(0,o.cn)("flex flex-col items-center gap-[18px] text-neutral-700 h-[32px] border-b-[1px] border-primary-tab-border-inactive-24 border-opacity-5"),n=(0,o.cn)("border-b-2 border-primary border-opacity-100 text-primary-500 text-primary"),r=(0,o.cn)("text-neutral-700 cursor-not-allowed"),i=(0,o.cn)("flex items-center w-max gap-[0.25rem] font-[700] text-[14px] font-montserrat text-center px-[18px] pb-[18px]");return(0,a.jsx)("button",{role:"tab",id:"tab-".concat(e.id),"aria-controls":"tabpanel-".concat(e.id),"aria-selected":e.isActive,disabled:e.disabled,onClick:()=>e.onClick&&e.onClick(e.id),className:(0,o.cn)(t,{[n]:e.isActive,[r]:e.disabled}),children:(0,a.jsxs)("span",{className:i,children:[e.icon&&(0,a.jsx)("div",{className:"h-[1.25rem] w-[1.125rem]",children:e.icon}),e.label.toUpperCase()]})},e.id)},q=e=>(0,a.jsxs)("button",{role:"tab",id:"tab-".concat(e.id),"aria-controls":"tabpanel-".concat(e.id),"aria-selected":e.isActive,disabled:e.disabled,onClick:()=>e.onClick&&e.onClick(e.id),className:(0,o.cn)("flex gap-[0.25rem] py-2 px-3 items-center justify-center font-montserrat text-[0.875rem] rounded-[0.25rem] border-none focus:ring-0 outline-none ".concat(e.isActive?"bg-primary text-black":"text-white hover:bg-navy-blue-900"," border-2 ").concat(e.disabled?"cursor-not-allowed opacity-50":""),{"bg-[#646c73] text-white":e.isActive,"flex-1 px-[12px] py-[6px]":e.condensed}),children:[(0,a.jsx)("span",{className:"font-[700] capitalize text-[0.875rem]",children:e.label.toUpperCase()}),e.badgeNotification&&(0,a.jsx)("span",{className:"hidden md:flex font-[700] p-[0.25rem] md:flex-col rounded-sm flex-shrink-0 items-center justify-center text-[0.75rem] font-montserrat text-white text-center bg-black w-4 h-[0.875rem]",children:e.badgeNotification})]},e.id),G=e=>{let{activeTab:t="1",onChange:n,tabs:r,type:s="primary",isCenter:l,condensed:c,fullWidth:u}=e;const d=(0,i.useCallback)((e=>{n(e)}),[n]),p=(0,o.cn)("inline-flex w-full",{"justify-center":l,"w-fit":c,"w-full justify-between":u}),h=(0,o.cn)("items-start border-x-none border-t-none"),f=(0,o.cn)("rounded-md bg-[#606e7d33] px-[0.75rem] py-[0.75rem] flex-wrap gap-x-1 md:gap-x-3");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{role:"tablist",className:(0,o.cn)(p,{[h]:"primary"===s,[f]:"secondary"===s}),children:[r.map((e=>{const n=t===e.id;return(0,a.jsx)(i.Fragment,{children:"primary"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(W,{id:e.id,label:e.label,content:e.content,disabled:e.disabled,icon:e.icon,onClick:d,isActive:n,condensed:!!c},e.id),(0,a.jsx)("div",{className:"border-b-[1px] border-primary-tab-border-inactive-24 border-opacity-5 h-[32px] max-w-[12px] min-w-[12px]"})]}):(0,a.jsx)(q,{condensed:!!c,id:e.id,label:e.label,content:e.content,disabled:e.disabled,icon:e.icon,onClick:d,isActive:n,badgeNotification:e.badgeNotification},e.id)},e.id)})),"primary"===s?(0,a.jsx)("div",{className:"border-b-[1px] h-[32px] w-full border-primary-tab-border-inactive-24 border-opacity-5"}):null]}),(0,a.jsx)("div",{className:"w-full h-full",children:r.map((e=>{const n=t===e.id;return(0,a.jsx)("div",{className:"h-full",role:"tabpanel",id:"tabpanel-".concat(e.id),"aria-labelledby":"tab-".concat(e.id),hidden:!n,children:e.content},e.id)}))})]})},Y=e=>{let{children:t,icon:n,text:r,isCollapsible:s=!1,className:l,onClick:c}=e;const[u,d]=(0,i.useState)(!1),p=(0,i.useMemo)((()=>s?(0,a.jsx)("svg",{onClick:()=>d(!u),className:(0,o.cn)("text-white w-[1.25rem] h-[1.25rem] flex-shrink-0 ",{"rotate-0":!u,"rotate-180":u}),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 5.29289C13.0976 5.68342 13.0976 6.31658 12.7071 6.70711L9.41421 10L12.7071 13.2929C13.0976 13.6834 13.0976 14.3166 12.7071 14.7071C12.3166 15.0976 11.6834 15.0976 11.2929 14.7071L7.29289 10.7071C6.90237 10.3166 6.90237 9.68342 7.29289 9.29289L11.2929 5.29289C11.6834 4.90237 12.3166 4.90237 12.7071 5.29289Z",fill:"white"})}):null),[s,u]);return(0,a.jsxs)("button",{onClick:c&&c,className:(0,o.cn)("py-[2.5px] w-full font-montserrat text-[0.9375rem] font-[500] rounded-[0.375rem] text-white bg-glassFillGray hover:bg-glassFillGrayHover min-h-[2.5rem] flex items-center justify-start gap-[0.375rem] shadow-[0_2px_4px_0px_rgba(0,0,0,0.1)]",l),children:[p,n,r,t]})},K=e=>{let{trait:t}=e;return(0,a.jsx)("div",{className:"rounded-[5px] py-3 px-4 bg-[#ffffff0d] font-montserrat text-white w-full 2xl:w-[165px] max-w-[300px]",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2 shrink-0",children:[(0,a.jsx)("div",{className:"text-[0.875rem] truncate capitalize font-[700]",children:t.name}),(0,a.jsx)("div",{className:"text-[0.875rem] truncate capitalize font-[500]",children:t.value})]})})};var Q=n(99154);const X=e=>{switch(e){case"LOAN":return"bg-[#2F2FA5] text-[#9D9DFE] border-[#9D9DFE]";case"RENT":return"bg-[#973C19] text-[#F3B59C] border-[#F3B59C]";case"LOCKED":return"bg-[#4C5B69] text-[#c2c2c2] border-[#7EE7C7]";case"FORBIDDEN":return"bg-[#C70039] text-[#F3B59C] border-[#F3B59C]";default:return"bg-[#1B8062] text-[#7EE7C7] border-[#7EE7C7]"}},Z=e=>{let{label:t,count:n}=e;return(0,a.jsx)("div",{className:(0,o.cn)("rounded-md px-[.5rem] lg:px-[0.75rem] py-[0.25rem] text-[0.75rem] mx-0.5 border-[1px] font-bold flex items-center justify-center h-[15px] lg:h-[21px] shadow-xl",X(t)),children:"LOCKED"===t?(0,a.jsx)(Q.A,{className:"w-4 h-4 fill-white"}):(0,a.jsxs)("span",{className:"whitespace-nowrap text-xs lg:text-sm",children:[t," ","".concat(Number(n)>1?"x".concat(n):"")]})})},J=e=>{let{traits:t,customRender:n}=e;const[r,o]=(0,i.useState)(14),[s,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=()=>{window.innerWidth<768?o(5):o(14)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),t.length?(0,a.jsxs)("div",{className:"flex flex-wrap gap-4",children:[t.slice(0,s?t.length:r).map((e=>n(e))),t.length>r&&(0,a.jsx)("div",{className:"flex flex-col items-center justify-center cursor-pointer rounded-[5px] py-4 px-6 shrink-0 gap-[8px] shadow-[0_4px_18px_0_rgba(0,0,0,0.25)] bg-[#ffffff0d] hover:bg-[#ffffff47] font-montserrat text-white w-full 2xl:w-[165px] border  ".concat(s?"border-primary":"border-[#ffffff47]"),onClick:()=>l(!s),children:(0,a.jsxs)("div",{className:"flex flex-row items-center gap-[0.5rem] ".concat(s?"text-primary":"text-white"),children:[(0,a.jsx)("span",{className:"font-montserrat text-[0.875rem] font-[800] uppercase",children:s?"View Less":"View More"}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",className:"w-[1.125rem] h-[1.125rem]",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.77273 3.27273C3.98972 3.05573 4.28403 2.93382 4.59091 2.93382L9.5 2.93383C10.139 2.93383 10.6571 3.45187 10.6571 4.09091C10.6571 4.72995 10.139 5.24799 9.5 5.24799L5.74799 5.24799L5.74799 9C5.74799 9.63904 5.22995 10.1571 4.59091 10.1571C3.95187 10.1571 3.43383 9.63904 3.43383 9L3.43383 4.09091C3.43383 3.78403 3.55573 3.48972 3.77273 3.27273ZM8.34292 13.9091C8.34292 13.2701 8.86096 12.752 9.5 12.752L13.252 12.752V9C13.252 8.36096 13.7701 7.84292 14.4091 7.84292C15.0481 7.84292 15.5662 8.36096 15.5662 9L15.5662 13.9091C15.5662 14.5481 15.0481 15.0662 14.4091 15.0662L9.5 15.0662C8.86096 15.0662 8.34292 14.5481 8.34292 13.9091Z",fill:"".concat(s?"#04E5A3":"white")})})]})})]}):(0,a.jsx)("span",{className:"text-[1rem] md:text-[1.125rem] font-bold font-montserrat text-white",children:"No Properties"})};var $,ee,te;function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(null,arguments)}function re(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",ne({xmlns:"http://www.w3.org/2000/svg",width:40,height:27,viewBox:"0 0 40 27",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,$||($=i.createElement("rect",{width:39,height:24,rx:12,fill:"#04E5A3"})),ee||(ee=i.createElement("g",{filter:"url(#filter0_dd_33451_902)"},i.createElement("circle",{cx:27,cy:12,r:10.5,fill:"white"}))),te||(te=i.createElement("defs",null,i.createElement("filter",{id:"filter0_dd_33451_902",x:14.5,y:.5,width:25,height:26,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},i.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),i.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),i.createElement("feOffset",null),i.createElement("feGaussianBlur",{stdDeviation:.5}),i.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.08 0"}),i.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_33451_902"}),i.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),i.createElement("feOffset",{dy:2}),i.createElement("feGaussianBlur",{stdDeviation:1}),i.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.06 0"}),i.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_33451_902",result:"effect2_dropShadow_33451_902"}),i.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_33451_902",result:"shape"})))))}const ie=i.forwardRef(re);n.p;var oe,ae,se;function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function ce(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",le({xmlns:"http://www.w3.org/2000/svg",width:40,height:27,viewBox:"0 0 40 27",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,oe||(oe=i.createElement("rect",{x:1,width:39,height:24,rx:12,fill:"#ADB5BD"})),ae||(ae=i.createElement("g",{filter:"url(#filter0_dd_33451_899)"},i.createElement("circle",{cx:13,cy:12,r:10.5,fill:"white"}))),se||(se=i.createElement("defs",null,i.createElement("filter",{id:"filter0_dd_33451_899",x:.5,y:.5,width:25,height:26,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},i.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),i.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),i.createElement("feOffset",null),i.createElement("feGaussianBlur",{stdDeviation:.5}),i.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.08 0"}),i.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_33451_899"}),i.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),i.createElement("feOffset",{dy:2}),i.createElement("feGaussianBlur",{stdDeviation:1}),i.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.06 0"}),i.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_33451_899",result:"effect2_dropShadow_33451_899"}),i.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_33451_899",result:"shape"})))))}const ue=i.forwardRef(ce);n.p;var de=n(65747),pe=n.n(de);pe().init("b17ea6f8cf14401cd0282da7c49532b0");const he=(e,t)=>{pe().track(e,t)},fe=i.memo((e=>{let{onToggle:t,toggled:n,label:r,loading:i,name:o,disabled:s}=e;return(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[r&&(0,a.jsx)("span",{children:r})," ",(0,a.jsx)("button",{type:"button",className:"h-8 flex rounded-full outline-none ".concat(s&&"cursor-not-allowed"),onClick:()=>{t(!n),he("SETTINGS_TOGGLE_CLICKED",{name:o,toggled:n})},disabled:s&&s,children:(0,a.jsxs)("div",{className:"inset-0 flex justify-center items-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center transition-opacity duration-1000 ease-in-out ".concat(i?"opacity-0":s?"opacity-50":"opacity-100"),children:n?(0,a.jsx)(ie,{}):(0,a.jsx)(ue,{})}),(0,a.jsx)("div",{className:"absolute flex justify-center items-center transition-opacity duration-1000 ease-in-out ".concat(i?"opacity-100":"opacity-0"),children:(0,a.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading"})})]})})]})}));var me=n(38190);const ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAAcCAYAAAAOa8NNAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfsSURBVHgB7VkLcFTVGf7O3ZsEEoh57SaGgKAMac3YVoptaWfUcYxihVK10VE6rVjsTB2HwVGREglbsglQW2AQaR07RWZkxGAdMtDMtFYcWks1taJ9AVZoEA3JbkggPMK+7u937t4o+8hmI2TUcb+Zu+fc//7n9Z3//Oc/Z4EsPgUQUfDKGGRxwaBSShfLIhhYBMElfNvLZzlWqx3I4ryQTPYS8ZHk+gRpFC7Uolm9jCw+Noy4N+02BN9Loeci3fXI4rwQT/YAPPydOoTuJGRxXjBGoPsWLiCu9Yo5OcMNWOtNXS95GCXUtYgr1hdRGEVkSnY3crAEFwoz14z9rwofPWNioLxRZqdTLV3ceavW6+/HsYt9cglGAbvfxl7dhrsJ92MUYWag82c+C+FTB8tapRohzKH/nsFpKlUKEfr4d5Sg9b592OX1KiuD+lCU158nEjEVZ5D1jEurPNBXiMKLda5AXBgdy1MYz3HAEBRgFDEc2WsY8j044QWZFnxOXkIQ19lSZz2IOKnC/Rsux7vuFlkeuF09jc8oOI5RPVcMTbbCz7BKeUtb5CfBCNbyfTifOYncb6L+bHUS83t+xN8MwAmrrGyWL+i8EYL/Pa/qRYa4dJVcdDqKm1lHkUTx/wLByx1edTaVbs0TMq67F9cpAxPFwhHThb91LVWBhL4sLPXJ3jwDByKCPn+96h78VrFCrrIUZtD6B1wm9ry/VL2NEWIon70L09Goiea63cj3jDcn6t/GRbmFYWQmLkrjlxEL+/QTMnGsvEna3T65Om0Jnm4rmsR7KoJeErSFkieUC230u2+6V8qsRPVyn8wN9OGIodBKl7dBp1YU+92NMj+h78UuYLvuCwaOP6NlHq9c6mmUVywD7VTYyHRT2MIBT7M8PaFZSjECpCI7Sle6oNTCNDbehI+HOe6aEWyoMXfUb2cFV3EveIkELUytK8rTjF9bwlNtrP8hPqecr9Uqit9XNMu3B9XdTVLP6rczW2S3pHCCqcW0hKTfMkRvaNgSsldcDl6l7recb2f0Nztn4YeclL+MhPB4skMkmkdzr4nDXG56ZosTC3AC/sVnEUmppc7NFO1MVTGX6sOeVinHMCCxHYYL145xYTLr+wZF/+ZwTda/rNInExP1K1bian5f4HTmNS7tmSw7ieTPocSvx2RZ3GsIRjpTaMmLHd1DLDdrzElMcbnwNUrWmAbmJwzuvajg+kgEU6Jm8Z1kXF9ZuDneARL1CNuaapq4jL79N/YYgS+GBfcgQ8Qv9bXqff6uenyrzGUD01Pobw/U0U2ouKijzbNN5nGwzyR0vNAKY54eFNIgGsXdPQ1qt/P6WplXbjRMLmOFMg78u5TF+X5Owg+gjUSh0zJxa88jqtP5tNPTJA+Tgc3MV1c2yXSWn8F8of7ICf1OV736j6P7D+eJh2DrsWVql86WPyYFEoxZPsnd3F2vfn6O5r1sq4b6M/ncwPfHkAFS+mz6vweSZEBHD3iUV8nhnb9ObaEFPZ5UkWVbWzqc7mmwQ8sP0eO1yXtT5znIy1OUmWL3R/DXc4i2ITn4I2JLHZHg6Romnlg/Iie7lnxI9JDgGI8N5l1RlA6WZ1ttScoW9thtBvsvQ4ZIIrvkd1LF2bomUc4lsw23q+hQFdEdPJskA65AeuSX+FB1rqDSK/lMJjrlj6foR5+dKkygmcf1PyeMShYaa5cdU9AnDvEwzLwv0VIxAoTO2r75tNOP5MOUEZOpvMJ+ZIgkshnapDzRcViHkQZRI0ZCXJloZLgBchFhY/VqGa9fyh+SgojJkDNmvXoFtSYWcAlejFWOb3KjrPc6hFd5pYQ+9rd6CyQ5PTkh7OFY3nCK5XaFsLnGK7n6RR/P3SvkynQdc1aY7WrYkYaJjRKz4FgkdBNztY7qP5Ehkt2IhVkpFQXVSANTaGkJUC7zFIYBiZndF8ZbHp+8wHihnaKHnJ492f2oejVR/+g0PMXkgP0iWPErH9oZubSETbxOyZdtscJ6Ha93RW0X9QdH97ZADg7S127j8bydm/EbQ0Y8DjiNq52sO6Twd264OzxN+BP3p+dZ30WU93LyVyJDpCJ7QsqGGeqkiy4YASxIEqp4f5wG2pJv4bLXPppjQbN/qbovpaZ2ZQrX0Hxft/ul8FXq14njy4mneBhptHO8PsiN4C7qPx8bBKqcK+TBzf/GNH1CYKlqYwRyL7NB1l/MtvSq16fofNbjNyK46egytQ8ZIu6uoapFxgaBd1lx2RD6+3kYuKH3TnVkUKCX8YbnrOUwjIakyhXuCdSpTYlyvZx7TNzNbEmcvuBE1MSLgZ+qdwZlJQz/eIMyj1YW8YewjgTace7ktVI0cIbEiT1JRUwP8bLlyc5H1StJvabbKP8f7qAhzeWINeGH+ezstrBVT4hnhXyfll7Fw8qO3obkjdSjXYiBB1lGb7pBpnvyx2FdxwMqaU9JhziyebdRwWC+Q7v9NCX8bGw7n/0sXEISapn/egrNI4XFuOJQrTqBLGzExdnRXOQYYe5ZkqaE2OHQj/U0Sew9JWilv8gSHY/40KlfLxE5i/OFYF3gDrUeWcQh6X64rIWnMMV4VdBJP5ZLP/cVGq++a8hHBqBFLyHRq5FFEjK6jK94ViaHXVhEZX0PMD5JQeyadpPoBhKdaQTyucOI/vnQ/wMer8D1jDKuZBhUyIN7iDUcVGG0+e/66O43iyw+cXwAQh/rid/oq/4AAAAASUVORK5CYII=",ve=n.p+"static/media/flipper.b7e11812b0e2ef8484ad.png";var ye,be;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function xe(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",we({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,ye||(ye=i.createElement("g",{clipPath:"url(#clip0_33676_1056)"},i.createElement("path",{d:"M20.6403 4.22781C19.0867 3.50093 17.4256 2.97267 15.6889 2.67188C15.4756 3.05749 15.2265 3.57614 15.0547 3.98873C13.2085 3.71109 11.3794 3.71109 9.56719 3.98873C9.39542 3.57614 9.14058 3.05749 8.92539 2.67188C7.18683 2.97267 5.52378 3.50287 3.97022 4.23166C0.836671 8.96686 -0.0127831 13.5845 0.411945 18.1365C2.49028 19.6885 4.50444 20.6313 6.4846 21.2483C6.97352 20.5754 7.40956 19.8601 7.7852 19.1063C7.06978 18.8344 6.38456 18.499 5.7371 18.1095C5.90887 17.9822 6.07688 17.8492 6.23921 17.7123C10.1882 19.5594 14.4789 19.5594 18.3808 17.7123C18.545 17.8492 18.713 17.9822 18.8829 18.1095C18.2335 18.5009 17.5464 18.8363 16.831 19.1082C17.2066 19.8601 17.6408 20.5774 18.1316 21.2502C20.1137 20.6333 22.1297 19.6905 24.208 18.1365C24.7064 12.8595 23.3567 8.28434 20.6403 4.22781ZM8.3232 15.337C7.13775 15.337 6.16558 14.2303 6.16558 12.8826C6.16558 11.535 7.11699 10.4264 8.3232 10.4264C9.52945 10.4264 10.5016 11.533 10.4808 12.8826C10.4827 14.2303 9.52945 15.337 8.3232 15.337ZM16.2968 15.337C15.1113 15.337 14.1391 14.2303 14.1391 12.8826C14.1391 11.535 15.0905 10.4264 16.2968 10.4264C17.503 10.4264 18.4752 11.533 18.4544 12.8826C18.4544 14.2303 17.503 15.337 16.2968 15.337Z",fill:"white"}))),be||(be=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_33676_1056"},i.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(0.310028)"})))))}const Ce=i.forwardRef(xe);n.p;var Ae;function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(null,arguments)}function _e(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Ee({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",role:"img",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Ae||(Ae=i.createElement("path",{d:"M10.802 17.77a.703.703 0 1 1-.002 1.406.703.703 0 0 1 .002-1.406m11.024-4.347a.703.703 0 1 1 .001-1.406.703.703 0 0 1-.001 1.406m0-2.876a2.176 2.176 0 0 0-2.174 2.174c0 .233.039.465.115.691l-7.181 3.823a2.165 2.165 0 0 0-1.784-.937c-.829 0-1.584.475-1.95 1.216l-6.451-3.402c-.682-.358-1.192-1.48-1.138-2.502.028-.533.212-.947.493-1.107.178-.1.392-.092.62.027l.042.023c1.71.9 7.304 3.847 7.54 3.956.363.169.565.237 1.185-.057l11.564-6.014c.17-.064.368-.227.368-.474 0-.342-.354-.477-.355-.477-.658-.315-1.669-.788-2.655-1.25-2.108-.987-4.497-2.105-5.546-2.655-.906-.474-1.635-.074-1.765.006l-.252.125C7.78 6.048 1.46 9.178 1.1 9.397.457 9.789.058 10.57.006 11.539c-.08 1.537.703 3.14 1.824 3.727l6.822 3.518a2.175 2.175 0 0 0 2.15 1.862 2.177 2.177 0 0 0 2.173-2.14l7.514-4.073c.38.298.853.461 1.337.461A2.176 2.176 0 0 0 24 12.72a2.176 2.176 0 0 0-2.174-2.174"})))}const Te=i.forwardRef(_e);n.p;var Se;function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function Pe(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",ke({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Se||(Se=i.createElement("path",{d:"M23 2.99998C22.0424 3.67546 20.9821 4.19209 19.86 4.52999C19.2577 3.8375 18.4573 3.34668 17.567 3.12391C16.6767 2.90115 15.7395 2.95718 14.8821 3.28444C14.0247 3.6117 13.2884 4.19439 12.773 4.9537C12.2575 5.71302 11.9877 6.61232 12 7.52998V8.52998C10.2426 8.57555 8.50127 8.1858 6.93101 7.39543C5.36074 6.60506 4.01032 5.43862 3 3.99998C3 3.99998 -1 13 8 17C5.94053 18.398 3.48716 19.0989 1 19C10 24 21 19 21 7.49998C20.9991 7.22144 20.9723 6.94358 20.92 6.66999C21.9406 5.66348 22.6608 4.3927 23 2.99998V2.99998Z",fill:"white",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const De=i.forwardRef(Pe);n.p;var Fe=n(6342),Ne=n(24504),Ie=n(41567),Re=n.n(Ie);const Oe=Object.prototype.toString,je=Error.prototype.toString,Me=RegExp.prototype.toString,Le="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",Be=/^Symbol\((.*)\)(.*)$/;function Ue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Le.call(e).replace(Be,"Symbol($1)");const r=Oe.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+je.call(e)+"]":"RegExp"===r?Me.call(e):null}function Ve(e,t){let n=Ue(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=Ue(this[e],t);return null!==r?r:n}),2)}function He(e){return null==e?[]:[].concat(e)}let ze,We,qe,Ge=/\$\{\s*(\w+)\s*\}/g;ze=Symbol.toStringTag;class Ye{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ze]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],He(e).forEach((e=>{if(Ke.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?"".concat(this.errors.length," errors occurred"):this.errors[0]}}We=Symbol.hasInstance,qe=Symbol.toStringTag;class Ke extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"===typeof e?e.replace(Ge,((e,n)=>Ve(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,i){const o=new Ye(e,t,n,r);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[qe]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ke)}static[We](e){return Ye[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Qe={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e;const o=null!=i&&i!==r?" (cast from the value `".concat(Ve(i,!0),"`)."):".";return"mixed"!==n?"".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(Ve(r,!0),"`")+o:"".concat(t," must match the configured type. ")+"The validated value was: `".concat(Ve(r,!0),"`")+o}},Xe={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ze={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Je={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},$e={isValue:"${path} field must be ${value}"},et={noUnknown:"${path} field has unspecified keys: ${unknown}"},tt={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},nt={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return"".concat(t," tuple value has too few items, expected a length of ").concat(i," but got ").concat(n.length," for value: `").concat(Ve(n,!0),"`");if(n.length>i)return"".concat(t," tuple value has too many items, expected a length of ").concat(i," but got ").concat(n.length," for value: `").concat(Ve(n,!0),"`")}return Ke.formatError(Qe.notType,e)}};Object.assign(Object.create(null),{mixed:Qe,string:Xe,number:Ze,date:Je,object:et,array:tt,boolean:$e,tuple:nt});const rt=e=>e&&e.__isYupSchema__;class it{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};return new it(e,((e,t)=>{var n;let a=o(...e)?r:i;return null!=(n=null==a?void 0:a(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!rt(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const ot="$",at=".";class st{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ot,this.isValue=this.key[0]===at,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?ot:this.isValue?at:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,Fe.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return"Ref(".concat(this.key,")")}static isRef(e){return e&&e.__isYupRef}}st.prototype.__isYupRef=!0;const lt=e=>null==e;function ct(e){function t(t,n,r){let{value:i,path:o="",options:a,originalValue:s,schema:l}=t;const{name:c,test:u,params:d,message:p,skipAbsent:h}=e;let{parent:f,context:m,abortEarly:g=l.spec.abortEarly,disableStackTrace:v=l.spec.disableStackTrace}=a;function y(e){return st.isRef(e)?e.getValue(i,f,m):e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({value:i,originalValue:s,label:l.spec.label,path:e.path||o,spec:l.spec,disableStackTrace:e.disableStackTrace||v},d,e.params);for(const r of Object.keys(t))t[r]=y(t[r]);const n=new Ke(Ke.formatError(e.message||p,t),i,t.path,e.type||c,t.disableStackTrace);return n.params=t,n}const w=g?n:r;let x={path:o,parent:f,type:c,from:a.from,createError:b,resolve:y,options:a,originalValue:s,schema:l};const C=e=>{Ke.isError(e)?w(e):e?r(null):w(b())},A=e=>{Ke.isError(e)?w(e):n(e)};if(h&&lt(i))return C(!0);let E;try{var _;if(E=u.call(x,i,x),"function"===typeof(null==(_=E)?void 0:_.then)){if(a.sync)throw new Error('Validation test of type: "'.concat(x.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned");return Promise.resolve(E).then(C,A)}}catch(T){return void A(T)}C(E)}return t.OPTIONS=e,t}function ut(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,Fe.forEach)(t,((s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:a,parent:r,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(o,'" must contain an index to the tuple element, e.g. "').concat(o,'[0]"'));if(n&&p>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e.type,'")'));r=n,n=n&&n[u],e=e.fields[u]}i=u,o=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class dt extends Set{describe(){const e=[];for(const t of this.values())e.push(st.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new dt(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function pt(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(rt(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let r=0;r<e.length;r++)t[r]=pt(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[r,i]of e.entries())t.set(r,pt(i,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const r of e)t.add(pt(r,n))}else{if(!(e instanceof Object))throw Error("Unable to clone ".concat(e));t={},n.set(e,t);for(const[r,i]of Object.entries(e))t[r]=pt(i,n)}return t}class ht{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new dt,this._blacklist=new dt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Qe.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=pt(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&lt(i))return i;let o=Ve(e),a=Ve(i);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n.type,'". \n\n')+"attempted value: ".concat(o," \n")+(a!==o?"result of cast: ".concat(a):""))}return i}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{path:i,originalValue:o=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:i,value:s,originalValue:o,options:t,tests:l},n,(e=>{if(e.length)return r(e,s);this.runTests({path:i,value:s,originalValue:o,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:i,value:o,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,o))},u=e=>{r||(r=!0,n(e,o))},d=i.length,p=[];if(!d)return u([]);let h={value:o,originalValue:a,path:s,options:l,schema:this};for(let f=0;f<i.length;f++){(0,i[f])(h,c,(function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)}))}}asNestedTest(e){let{key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}=e;const s=null!=t?t:n;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof s;let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?"".concat(i||"","[").concat(l?s:'"'.concat(s,'"'),"]"):(i?"".concat(i,"."):"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise(((n,o)=>r._validate(e,t,((e,t)=>{Ke.isError(e)&&(e.value=t),o(e)}),((e,t)=>{e.length?o(new Ke(e,t,void 0,void 0,i)):n(t)}))))}validateSync(e,t){var n;let r,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw Ke.isError(e)&&(e.value=t),e}),((t,n)=>{if(t.length)throw new Ke(t,e,void 0,void 0,o);r=n})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Ke.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(Ke.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this,e):pt(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=ct({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=ct({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe.required;return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=Qe.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=ct(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=He(e).map((e=>new st(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new it(r,t):it.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=ct({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=ct({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=ct({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:i,nullable:o}=t.spec,a={meta:r,label:n,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return a}}ht.prototype.__isYupSchema__=!0;for(const FF of["validate","validateSync"])ht.prototype["".concat(FF,"At")]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:i,schema:o}=ut(this,e,t,n.context);return o[FF](r&&r[i],Object.assign({},n,{parent:r,path:e}))};for(const FF of["equals","is"])ht.prototype[FF]=ht.prototype.oneOf;for(const FF of["not","nope"])ht.prototype[FF]=ht.prototype.notOneOf;const ft=()=>!0;function mt(e){return new gt(e)}class gt extends ht{constructor(e){super("function"===typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:ft},e))}}mt.prototype=gt.prototype;const vt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function yt(e){var t,n;const r=vt.exec(e);return r?{year:bt(r[1]),month:bt(r[2],1)-1,day:bt(r[3],1),hour:bt(r[4]),minute:bt(r[5]),second:bt(r[6]),millisecond:r[7]?bt(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:bt(r[10]),minuteOffset:bt(r[11])}:null}function bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e)||t}let wt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Ct=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,At=new RegExp("".concat("^\\d{4}-\\d{2}-\\d{2}","T").concat("\\d{2}:\\d{2}:\\d{2}","(\\.\\d+)?").concat("(([+-]\\d{2}(:?\\d{2})?)|Z)","$")),Et=e=>lt(e)||e===e.trim(),_t={}.toString();function Tt(){return new St}class St extends ht{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===_t?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||Qe.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||Xe.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.email;return this.matches(wt,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.url;return this.matches(xt,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.uuid;return this.matches(Ct,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"===typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(At,{name:"datetime",message:r||Xe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Xe.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=yt(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||Xe.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||void 0==n)return!0;const t=yt(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:Et})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.lowercase;return this.transform((e=>lt(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>lt(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe.uppercase;return this.transform((e=>lt(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>lt(e)||e===e.toUpperCase()})}}Tt.prototype=St.prototype;function kt(){return new Pt}class Pt extends ht{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"===typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))}))}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze.integer;return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>lt(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>lt(t)?t:Math[e](t)))}}kt.prototype=Pt.prototype;let Dt=new Date("");function Ft(){return new Nt}class Nt extends ht{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=yt(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Nt.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(st.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function It(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0})),n}function Rt(e){return(t,n)=>It(e,t)-It(e,n)}Nt.INVALID_DATE=Dt,Ft.prototype=Nt.prototype,Ft.INVALID_DATE=Dt;const Ot=(e,t,n)=>{if("string"!==typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(i){}return n.isType(r)?r:e};function jt(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=jt(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=jt(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(jt)}):"optional"in e?e.optional():e}let Mt=e=>"[object Object]"===Object.prototype.toString.call(e);const Lt=Rt([]);function Bt(e){return new Ut(e)}class Ut extends ht{constructor(e){super({type:"object",check:e=>Mt(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=Lt,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of a){let e=i[u],n=u in r;if(e){let n,i=r[u];l.path=(t.path?"".concat(t.path,"."):"")+u,e=e.resolve({value:i,context:t.context,parent:s});let o=e instanceof ht?e.spec:void 0,a=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||u in r;continue}n=t.__validating&&a?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!o&&(s[u]=r[u]);n===u in s&&s[u]===r[u]||(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{from:i=[],originalValue:o=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,n,((e,i)=>{if(!a||!Mt(i))return void r(e,i);o=o||i;let s=[];for(let n of this._nodes){let e=this.fields[n];e&&!st.isRef(e)&&s.push(e.asNestedTest({options:t,key:n,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:s,value:i,originalValue:o,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),i)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,i]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?i:e}return t.withMutation((t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((n=>{var r;const i=this.fields[n];let o=e;null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t[n]=i&&"getDefault"in i?i.getDefault(o):void 0})),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((e=>{let[t,n]=e;return"".concat(t,"-").concat(n)})));function o(e,t){let o=(0,Fe.split)(e)[0];r.add(o),i.has("".concat(t,"-").concat(o))||n.push([t,o])}for(const a of Object.keys(e)){let t=e[a];r.add(a),st.isRef(t)&&t.isSibling?o(t.path,a):rt(t)&&"deps"in t&&t.deps.forEach((e=>o(e,a)))}return Re().array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Rt(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return jt(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter((t=>{let[n,r]=t;return e.includes(n)&&e.includes(r)})))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=(0,Fe.getter)(e,!0);return this.transform((i=>{if(!i)return i;let o=i;return((e,t)=>{const n=[...(0,Fe.normalizePath)(t)];if(1===n.length)return n[0]in e;let r=n.pop(),i=(0,Fe.getter)((0,Fe.join)(n),!0)(e);return!(!i||!(r in i))})(i,e)&&(o=Object.assign({},i),n||delete o[e],o[t]=r(i)),o}))}json(){return this.transform(Ot)}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(Ne.camelCase)}snakeCase(){return this.transformKeys(Ne.snakeCase)}constantCase(){return this.transformKeys((e=>(0,Ne.snakeCase)(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[i,o]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),n.fields[i]=o.describe(t)}return n}}Bt.prototype=Ut.prototype;const Vt=e=>{let{setShow:t,show:n,seconds:r,children:o}=e;const[s,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{n?(l(!0),r&&setTimeout((()=>{l(!1),setTimeout((()=>t(!1)),1e3)}),1e3*r)):l(!1)}),[n]),(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)("div",{className:"fixed flex w-full left-0 justify-center  z-[99999] small-only:top-0  md:bottom-0 h-[25%] overflow-hidden",children:(0,a.jsx)("div",{className:"relative w-full h-full flex items-center z-[99999]",children:(0,a.jsx)("div",{className:"w-full flex justify-center transition-all duration-500 ease-in-out absolute ".concat(s?"small-only:top-1/4  md:bottom-1/2 ":"small-only:-top-1/2  md:-bottom-1/2"),children:o})})}):null})},Ht=e=>{let{setShow:t,show:n,seconds:r,title:o,message:s}=e;return(0,i.useEffect)((()=>{const e=document.querySelectorAll("[id^='headlessui-dialog-panel']")[0];return null===e||void 0===e||e.addEventListener("click",(()=>{t(!1)})),()=>{null===e||void 0===e||e.removeEventListener("click",(()=>{t(!1)}))}}),[]),(0,a.jsx)(Vt,{setShow:t,show:n,seconds:r,children:(0,a.jsx)("div",{className:"rounded-md bg-blue-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6 text-blue-600",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,a.jsx)("h3",{className:"text-sm font-medium text-blue-800",children:o}),(0,a.jsx)("button",{className:"whitespace-nowrap font-medium text-blue-700 hover:text-blue-600",onClick:()=>t(!1),children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-blue-700",children:s})]})]})})})},zt=e=>{let{subscribeEmailToNotification:t,mixPanelFn:n}=e;const r=Bt().shape({email:Tt().email("Invalid email").required("Please enter your email")}),[o,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(""),[p,h]=(0,i.useState)(!1);return(0,a.jsxs)("div",{className:"relative px-3 lg:px-0 w-full mt-8 pb-12",children:[(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between container",children:[(0,a.jsx)(Ht,{title:"Flowty Email Subscription",message:u,show:o,setShow:c,seconds:5}),(0,a.jsxs)("div",{className:"flex flex-col lg:max-w-lg",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h5",{className:"font-montserrat font-bold text-[18px] mb-8 text-white",children:"Sign up to Receive Flowty Emails"}),(0,a.jsx)("h6",{className:"font-montserrat font-[14px] text-[#CFCFCF]",children:"Get the latest updates, promotions, supported collections and more delivered straight to your inbox, along with notifications for offers received on your NFTs"}),(0,a.jsx)("div",{className:"my-8 lg:w-4/5",children:(0,a.jsx)(l.l1,{initialValues:{email:""},onSubmit:async(e,r)=>{let{resetForm:i}=r;n("Subscribe to newsletter attempt",{values:e}),(async e=>{h(!0);try{await t(e),d("Your entered email is being added to our mailing list. It may take up to 5 minutes!"),c(!0),n("Success: Subscribe to newsletter",{email:e}),h(!1)}catch(r){d("Failed adding email. ".concat(null===r||void 0===r?void 0:r.message,". Please try again")),c(!0),n("Failure: Subscribe to newsletter",{email:e,error:r}),h(!1)}})(e.email),i()},validationSchema:r,enableReinitialize:!0,children:e=>{let{handleChange:t,values:n,touched:r}=e;return(0,a.jsxs)(l.lV,{children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-around",children:[(0,a.jsx)("input",{type:"email",name:"email",value:n.email,onChange:e=>{t(e)},className:"py-3 w-full focus:outline-none border-[1.5px] border-[#6C757D] text-white bg-[#ffffff14] bg-blur shadow-depressed px-4 rounded-md font-montserrat text-[12px] mr-4",placeholder:"user@email.com"}),(0,a.jsx)(s,{type:"submit",disabled:p,text:(0,a.jsx)(a.Fragment,{children:p?(0,a.jsxs)("div",{className:"flex flex-row items-center",children:["Loading",(0,a.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full ml-2",role:"status","aria-label":"loading"})]}):"Subscribe"}),variant:"primary"}),(0,a.jsx)("span",{children:r.email})]}),(0,a.jsx)("div",{className:"flex text-red-500 justify-center items-center text-center",children:(0,a.jsx)(l.Kw,{name:"email"})})]})}})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-start items-center z-10 space-x-4",children:[(0,a.jsx)(De,{className:"footer-social-logos hover:cursor-pointer",onClick:()=>{window.open("https://twitter.com/flowty_io"),n("Clicked on Footer Twitter link")},height:30,width:30,id:"twitter"}),(0,a.jsx)(Te,{className:"footer-social-logos invert hover:cursor-pointer",onClick:()=>{window.open("https://docs.flowty.io/reference"),n("Clicked on Footer Gitbook link")},height:30,width:30,id:"gitbook"}),(0,a.jsx)(Ce,{className:"footer-social-logos",onClick:()=>{window.open(T.flowtyDiscordLink,"WindowName","noopener"),n("Clicked on Footer Discord link")},height:30,width:30,id:"discord"})]})]}),(0,a.jsxs)("div",{className:"flex flex-row mt-12 lg:mt-0 justify-between lg:justify-around flex-grow flex-wrap",children:[(0,a.jsxs)("div",{className:"flex flex-col mx-4 lg:mx-0 z-10",children:[(0,a.jsx)("a",{href:"/marketplace",onClick:()=>{n("Clicked on Footer Collections Link")},className:"font-montserrat mb-6 text-white hover:text-white uppercase font-bold",children:"Marketplace"}),(0,a.jsxs)("div",{className:"flex flex-col text-[#CED4DA]",children:[(0,a.jsx)("a",{href:"/collection/0x0b2a3299cc857e29/TopShot",onClick:()=>{n("Clicked on Footer NBA Top Shot Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"NBA Top Shot"}),(0,a.jsx)("a",{href:"/collection/0xe4cf4bdc1751c65d/AllDay",onClick:()=>{n("Clicked on Footer NFL All Day Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"NFL All Day"}),(0,a.jsx)("a",{href:"/collection/0x329feb3ab062d289/UFC_NFT",onClick:()=>{n("Clicked on Footer UFC NFT Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"UFC Strike"}),(0,a.jsx)("a",{href:"/collection/0x87ca73a41bb50ad5/Golazos",onClick:()=>{n("Clicked on Footer La Liga Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"La Liga Golazos"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col mx-4 lg:mx-0 z-10",children:[(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/",onClick:()=>{n("Clicked on Footer Help Link")},className:"font-montserrat text-[14px] text-white mb-6 hover:text-white uppercase font-bold",children:"Help"}),(0,a.jsxs)("div",{className:"flex flex-col text-[#CED4DA]",children:[(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/",onClick:()=>{n("Clicked on Footer FAQ Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"FAQ + Guides"}),(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/general-platform/troubleshooting",onClick:()=>{n("Clicked on Footer Troubleshooting Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"Troubleshooting"}),(0,a.jsx)("a",{href:"/tos",onClick:()=>{n("Clicked on Footer TOS Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"Terms of Service"}),(0,a.jsx)("a",{href:"/privacy",onClick:()=>{n("Clicked on Footer Privacy Link")},className:"font-montserrat font-[14px] mb-6 hover:text-white",children:"Privacy Policy"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col mx-4 lg:mx-0",children:[(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/general-platform/supported-crypto-wallets",onClick:()=>{n("Clicked on Footer Supported Wallets Link")},className:"font-montserrat text-[14px] mb-6 text-white hover:text-white uppercase font-bold",children:"Supported Wallets"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-4 text-[#CED4DA]",children:[(0,a.jsx)("div",{className:"col-span-1 hover:cursor-pointer",onClick:()=>{window.open("https://www.dapperlabs.com/"),n("Clicked on Footer Dapper link")},children:(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAAcCAYAAAAOa8NNAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAs5SURBVHgB7Vl7cFTVGf/Ouffu625eEPIgIW5eJEgCwaCIAoJQlLb4LAIidpipHXWmvkdEIC4EhI62Ux9tbR0VRWllHClSH2h8IH9IIShCAmzI5kEeBJJsCNn3vfecfnd3s2QhwFrQmTL5zdzde875zuv3fec73zkXYAhDuBxBzlfIq7nkznanuPtcqQy4kQIJuPuCnQUTCroJIQyG8IMwKNlOpzMpAYTrQYPJGvBUFKLRCoRoDEgHFcguUQvsGl5YeAqGEBfOIrvd0TAVCf0lFiQTl9sER7sT6fE+KwRUEYyiykbIHsgZ0ctTrX7OoYcaydZ0m+0bGMIFESWbc07aHY1zBUp+QZq7E6Qte8tI3Qkb8QfNZ1bioqDyjIQT2uySfdqU0S1A+IcZhXnbYAjnRZRsJPo2SmCO9O7uscIORzn4FVMctTkrt9UEF19XrZkNm7KuzK+CIZwTov7T4mwppZo6R/zoQIHw2cHr0czjq82B0OqmUoOiCcojs32dTU21I2y2Y+erYh9bawCPhcbmNoG9aYYfLnOIuvvoqGu6k/T5DdLnR64Howm5xi3QKAL3BQBUDDp4JPCIKIGIyJVRAu4JhNK0prWI7mmoZ5MKbsPkX8/V2XSwi6SJOgkEsmNLMmG1fNiDytsPAnmdST2b7a5rL7uNVzzucNgINWaKXzmLQJCM0q3jwbjwWqDDZABvAIJVNRB47StgHj/QJAuYH50D4nVFelgCrPE4BN7eiTL7Bbq70aZNzB3fW9MyLKlklAt+OGR0S5OB8ck0kPxQZULDvJV9eQ64jEBFyZynv4gtfTbTvVPB/OBMqNrogc1PtgFYjGC4pRws6xaCkDYM5JeWQL2WDS/f1Qi7N7uA5qWDefkdKHM1CEeO27AZ4jWqpfF0rIB3J4r/OvzQJYQTOydQEyku5Uz5YG1aQzpcRqAq03LBr0piYuIww63jYNvaDvj0Tyegca8HupuDULfTDUp2OlieWwBdfgu8ef9RaNrrheZ9Pjh5TIE2RxBMv5kJ1CInki63mQLPiadjP3idFZ6it8LP6A0rvUWruLtoPG4D68ISfLTmVVacWc8Odvq3ci5BnPhteXVcsnq79ulcjE/uywvKhWSxPQ48GoSQ446mx2iHZ1LC0cBdhrsnwPoZddB9NBgqpCLKobu+56VRMO7nifD1a13wwZqOaGOikYCtXIb737GB5+n3wFeeuZWXZVelFdheHqxz3WfPkOc3EiDZfdC14TnPlCVnyrwIR4ynZLYbT6zj9OEZzbxwaVdx33LzviwjNTyBebOxfhLuHn2E0B2agayxuwpb9bqrZcebGCBl4N7yPqGiizHtYXR3V2DeCZTfyDxFL9qBMHtyY7KgBDeiQg14aPuDwOkV6MIeQGLSUNbJCP3LM+6id2OIM31nE6jlCU74TEwmoGw9svP3Cs+YTf0yq62HtxIOJmzrX7j/XI1zmIljPY6x8gMV3oK9uoYIeFQLiBKGFthKmhglm6lcd82QlBE2DmtqrELVAIfEtHAeEVBGBYkRIsBF4CEoDKyCQx/iIJFsnh7wkbx1Sc1Hg6p3O/YyFkLbNMcBkizcyIuFIMx6NuPI5Kc7Cjsx3p+ChXkEaD7jmk6gqIdMSLS+IV8lyHXXgAfulhRuRBuaifm4EukIJHBCf/844yzC+bRVlkPFz3jHrNLz1iXWFyia+gW2NKpfDMeXhf83oIJLcXUui+RPxzYT9b7wwZN3yKhz0H98YocvM0MhGOWCyI75gSsMbnk6AxIipOrkXzM/BXLKTMDa+2DCLclQMFmOEpOSZYCbHk0D5vIA6/QBkSQNLgFwsg3RdxFGKEHfYhz4WBx6CwftZzga3NTF2zGtIrn5qoffPrA+kpePKtnGOJ+LK3M+ytWEiYT5axIcU2J74xOQ8NfRom/CivehbFuoX0Lsz1qPXDkPNgsqU3AVwCgsaySEzxApL8byP0fqP7UuyZEXO37owP4noqGG3SCHVMmSPi7MqiQy7iOgftMBOdNGwsMf5EPDbi8kpYtgm2gBVt8DgU0HwPTgRFjyag44d3lB8TPInySDdbgAgXcP6o0ASzQG4VKQTUUzj4SbRCNBTezbRHlSBwdGTaaEQyd9KjeUN/+b7Mn8GAmYyzV2VSx/0GgdZl30WOson55cmuLcLgeD7fhqYRpbJBDJHu0L4NPlnkIkOXyxtlauq9aAfae/q6AtLJXHv4cKvSakKg6vofM0aBxsKLyNArsfrV1QVVQqwAvR/im8XdE3Zq/dXNtJqfAI9iHo/IQsm1slL1jMoFS7IPhxKyQEA1A2wwK56O20HW0Q2NqASpfA/3oNCLUnoLhUgNKpJjC1u8D/xveg7EE/brEwliH3wqUAY7Mibwpo3Gnvm9hFmFaC1rI+4PU6TVxppntGNiBBEyKMibFc86p+onX8vie/F2U+CsvSwhhZQrf0E61juWf0PsxtiiRT0ZJRnod5IrAGV9Z2/UFmPtGJjgw45rTN0Yfp/8/4rmwxGKQCySDlKt7W/aFBalbqAdniIyozaw1+UOvb9QmffsAAxCyG3oNVbdhYS0w5MVuAy7Rbv6iCi0SlXHMz/s0NT45/s8JX3LbKeuhOtK6VIQFKtuBkD2KoOA5986zBzrq4fI1nZXIu61ohugJjZDU5Rgx7rYS6kK/HUhX14D8dUNCleLrY3y9LORUYWoHGpBoYbBy6Q+mBqAGKnOJ6NUFAGy4dE3tpXog8Fjk1auF/PpD4geWRtF6ujTSEfB1ey/5P99x6TI2h3jw80a6FyJ2NAMLK8KTI1MjZtbXCXXRHf51K66EdSMS0QaY5BzfVlGW9V/ToKbu1voRw9Ua9DU7ItzBQQ4zc8/xIx5tPtBd16clV1to7KRdDJ1ykqomo/ADatRu1YsVRZa1wFz3fvxIq5UMbMD9fFNkfMdkKFwCeyUGP5YrVHLJfrDflEIax4WDk9j/8NMEDZbTRpnoITUbrgDiQAKmL8Yh+V4QcqnmCZ1x88cdXuEd/rb/hBVmnFiKIj6yUDy/FTg5g4mZUzLRzND9CUb37Vst1/6SEWzhXF2N13doDuD29ygbYNuaX+XqharW1bhtwLQcJXhiyaQwtNTC8Y/fndlRaHf/Avu7DSf9ujewoWQ2Hq7FmGUYus0OunLMtEAdEMJh38WBgWjApeIJkSruMXeZJqDcpdA8ygGD0Q/iuDWrdwQxWraQKLv3DgjVJ3gnxQfd3luiUoyC1AtDHcdPaHiXEIL6F9+mP4GsqSq7XTQ5xEjvHW0Y666yWOXGiK7HhhvokizSN1qjhz+PLThY3rZVPn0zRJaHihDE43/Gha8xQJnfjml9gP5UbMhyNKk9RVUhBK/4Vlt8IoSd6Vnm72HPgBYgD4isbXmm+b9G9H+Mnr5sDIz0HtaTgMakHLVwhVsLw04BGTIRJuAIYjoQi23qAqCmcMPRnmqqmsJZguoZ32tSrMe19a1raOS17ur5oOV8XWpID6Q0Hwy4C0veqN+/bCoj95LbCVdBiT3JMwm9E96KfHo7NuCTR/0ZQseTjoD7D6t/HtEf4fzSuLCBUuk0/AOHu5mKgbq5wj609c0wqKJsMRNiNbhlDP46bD21Dt7Vxxamitn4Z+6kSF4aAC8bKJTMooTdgD8ko60WFbl/pLv4i2i+nFahgI9b/arD5R9Vz8nBTro/y6QIRMjXQ4jqOhhsgKmW8TZClz4dnZ1/Qb/2YwBOcE0KHGti00lO86FxyumUzUBpRw2YF/MsqPWXr4SdAlNTkYlsj/jXCEH40UBjCT4a43cX/Axhj80RRMnBi7DyfnOLJ7RYT66YTEKigmo7CEIYwhIvAfwHYBxCskdX+jgAAAABJRU5ErkJggg==",className:"img-fluid",alt:"Dapper Logo"})}),(0,a.jsx)("div",{className:"col-span-1 hover:cursor-pointer",onClick:()=>{window.open("https://blocto.app/"),n("Clicked on Footer Blocto link")},children:(0,a.jsx)("img",{src:ge,className:"img-fluid",alt:"Blocto Logo"})}),(0,a.jsx)("div",{className:"col-span-1 hover:cursor-pointer",onClick:()=>{window.open("https://nu.fi/"),n("Clicked on Footer Nufi link")},children:(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAAdCAYAAADFNxDoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATpSURBVHgB7ZhraFxFFMf/d5MmUWslVqnVCqk11gci1CY1iQ/UDz7rE6IWwVAfVChoBZF+kPZDoX6LjwoKSgyo1SIURWJLlVbTtDFGpWCxChXFGKpWqok17W6z43/unb179u59zLYbaOj9wdl5nbkz98zcM2cWSElJSUlJSSnDSVL4UmH2JHALswsp8xX7sNOvzA/lKdc6GEWKFZHG3qtQ9zewhgrPsNgQ0fkwjd9Do69PjZ5MqLGHFFpywEY2LoAdv1CWtTvYlaSolGpIUMk6jpO36U+9IzF6NUxmmGKeutkYXa1Xg2gm2T8XHN8GOccyY+9SuJTJDsocUf0TZRuV92grZODqLOWuni90DtUBLYsd7EcMnOx2eP2j+I8yTOnmRAdD+uu2C0yxjTo/R4xzE5N3TLGfep2B9lom91MeoVxOqUc0fez/KPs0Mb8blXEl+x7UmVpZa1zHZqdoaEWDLm8HeumoVeAhT3FhllH3ZTbMZrmRW2fboELbNQ5+jxl8FuU8xHMRpZMv9xrTlZzspGg7W/SPM1CD0GuUDXyunu9HlHbYMUvkk+YexLdxRtYeAtY6Ztcx1atxe4eDt0IM7UK38S53+m1sHDFVeqcvhz3HQkSygvI6qggNfRqTXpQaWkXMpSBysYNt0uXlEfM+meIkkKkpNdR6GnMLEuBifMWHdIvRVm9Ssf5PshTeAknpoMhx9ee7ENXjYcodoryBclXIPKQ8qRWNywq2vSCe1RPS/leh0d/iO4GmGm+FD3BXjx/zOvr0KzTWi8+2D/iDn4G7qowDX6ITfYj95ukyf65mMoRk/uELjATqRmjc+5huhhdyavQmeA6VoSLqV4j8Oo7/PCogOF/OdUwUx0Pex8c39nWOewjODVMaVjj9KPAjF+AcU3X0VuDitcZ9dDruZ9aCKsEJT/Al3kDR2ItROVFh7SUi/4E5KJPIx0VIttgMhHG6m7rSKls3cSL8JvJnoXrId95KyVn0+YTyBE4QK2OfZEj3kHgDTmCOpV4jqoBv7K0KZ5wJXKjzjJkmFjnuRcWHb/U9k3NNMfcvdWQ7Xc2CrLlE8CvYz3jbZsccD3/CCw01+tK1D9ME39g0EG3tGhS88ijGy3ML8fKNDmhbXB/1EP3/CQ3dD+PzDwM3MPkCU4Oe4xKTf5w+97OIm6RCMovgRryJjKMK+MamQQ8MKPzgeH846dNgNcPBVVExtkR5/qxwuO7jKTqIqeNNygMUHS/fTfmUBt/EdCygp2+ZvSa/J+JZo1youAtYCeaq/mCgeonIN1OnK9D+vj7wyx5GY3fxVqiM5LhjVyKB3Qp3UTcv+j2N+Al/rYq0xei1Cb3hQFu3SqYv4rkTQsfWZxf6NqnK8W+cJTfIDn0tB942xVrGc6/QmD07Fc4PDkw3M4/1G7irP4Q5qPizg+7oVUwx3CmrmOj4OItpRGk0QpdxROHZei+uda/tNGYXV+Re7voBGnNvxnMxzVyI9kzxwNR8x/oui4Pxc0rh79ixGD19Tnxs8mWHIA2+zriPxyjNKI+sov4w2iJ0K12srJhTJX1cQkOn7QozafCNzN4JOwZ46bmHfv8gUiKJjFMZys3gktxMhTUstqqAy4F3GfiWt5sXW4H3bA7SUx2rSwH99mVMWvPmvw8yyu/wm5kMw65wppffTElJSUlJseF/MY8OkjibogYAAAAASUVORK5CYII=",className:"img-fluid",alt:"Nufi Logo"})}),(0,a.jsx)("div",{className:"col-span-1 hover:cursor-pointer",onClick:()=>{window.open("https://flipper.org/"),n("Clicked on Footer Flipper link")},children:(0,a.jsx)("img",{src:ve,className:"img-fluid",alt:"Flipper Logo"})}),(0,a.jsx)("div",{className:"col-span-1 hover:cursor-pointer",onClick:()=>{window.open("https://frw.gitbook.io/doc/"),n("Clicked on Footer Flow Reference link")},children:(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAlCAYAAADFniADAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5woFDh8OmodnmgAABKBJREFUWMPtmE1sVFUUx3/nzkxHGEgDmC5sQuzIiIuRFkW3RqOJO5IuhIUx6IIEFNG9IaZooxIWhAWJgRiMC3SB6dINhBg0caGUVmppYmLNVEShFJjSSfvu38V7b+h8dV4puOJu5uPcd8/vnvO/59774GFL1mzFI1z5jkx6lo6MLJ0xzWdWMZt59f+DypcGMISwnEkFUNFEwVAXUtaggnTV0IRJo8CEE+XAxPjjg/cXqmfqIOtvzDLduaob2G5SP9Bn0jqQM4EhkDCECQ+aNukC6LRJQ/Or15Qys7e5lP9kZVA9U4NAAJAz8Rpov0lPA84kCAHqgBQOXLXLG4wgHTH0DVDGwWjPZ8uHyk99hBDARhMDoJ0mZWsdtgOqsVeQThkcACYxGHniUHKonqmPAQ+w2cQx0IttHDaLUDh4ZCf6bdJZ0B6wcSFGCofbQ+WnBlGYso0mvgC9tHygWvsioNh+BvQmMOlI8cuTtRFz9VC6q6GBZEA0idCSQETjDjj5nDTfEKkaqJ6pg+GgYkekoQQR0hIpoxlQDL4TscOArb/tbw0VQXSD9t2bqOuB1AoIRNbQPvO+21BzqHxpIP663aTelWtoSaC4X6+h7SZ4dmxfs0gp0pL6AbvPGmoGhCEz0W/yuXiiNVAmCLcOepejIRCSjz6j/yMxWTi78NlGoBi411BhcQrTd2uDAIqIDUlTBpAlzSqXrtqCYIHbN2+BfPisQWp1BlLWDAiTNgBF4EIN1KY/P4yyR4EwpIkKY6CAV9Zs4a3OFxDCuRRjY5fYvXc3N2dmACO9toONB1/mkfw68A1AGDJEAYPnR/fwU/FYHKnIsVkXiUQdrjIk1rscm7OPVUM/G1xh/vJ15qanAUh1ZtHcfJSJlhrr8lhVSy7W09rKDOHxI7mo65dypIOmLdRsS9FnZ10unGicPkOUO9YSnYcS72VEtprWjLPar+UqrKwJblUnGaYvXo7hAS1hYYQUxs93fufQP0Ohpsy42vE3699/jtyduTAV2RQdXTnM+4bCuuj31ZrMxLPZ/McHAK+b9GVtnWq521fLgBRU+ziDlHM1fVjwrSKECYHeAL76ccvndSUhjM4ocM2kR5MAxRE0XBR6C20LYd1i6cIZa+wa0ih2V4z1FX3CpOGkQAkcJrEPW+i3EcoEzvtyeKZGy9jtVwIk4DRQXrxCqlBjPYNxxyFDw8vY7e8VCNBw5I8feo83S1/4sJMvIR2NztQPEqhi4ihGqb6M1ED9mv801tfX0SH/QQFh4lTkh/N9x1tDATgJJ5UNDph05gEBnQEdAMppGlsD1MVNhzB5nPeToL0mzt5noLOgvcCkE5zrO9EeCuBi4TDgcd6Pg3aZdDLU2Io1dBK0C7NxB3y/9UQz90vfkLddfodAaRTdkA29h1S06KqeEMiDRkwcIbohpwXnWgC1hYrbM2Pv0plZYGY+3R2dqftBfSatM+SaAC16l8Bpk4aU6ixZcIPzfSfa+lvWW5dtl97GecM7coYKiKJJi966qBJtrhMmRkETgWXKaVU439se5p6gmrXjF5+iVLnOX3bb/nVzCjrg26Jf6bAPW6L2Hy0fqCILCm9eAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTEwLTA1VDE0OjMxOjEyKzAwOjAwWnm6igAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0xMC0wNVQxNDozMDo1OSswMDowMEKrMwgAAAAASUVORK5CYII=",className:"img-fluid",alt:"Flow Reference Wallet Logo"})})]})]})]})]}),(0,a.jsx)(me.c,{className:"my-[3.75em]"}),(0,a.jsxs)("div",{className:"container flex flex-col lg:flex-row justify-between items-center",children:[(0,a.jsx)("h6",{className:"font-montserrat font-[18px] text-[#CFCFCF]",children:"\xa9 2021-2024 flowtyNFT Inc. All rights reserved."}),(0,a.jsx)("div",{className:"mt-4 lg:mt-0",children:(0,a.jsx)("div",{className:"hover:cursor-pointer",onClick:()=>{window.open("https://flow.com"),n("Clicked on Footer Flow link")},children:(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMUAAAAmCAYAAAB06F/cAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAufSURBVHgB7Z19cBTlHcd/u3dJroxJLmCpFQkHtVYEJX1RaXlLh9A/Si2xdMbCdALo1IHiEMbWQjMFEVqsbdHCSKU6yMtULJ0iLxbstDAExE7RaZuUoI5o3QTo2whsXqoXkrvt830uz/ns3t7e7eXlDn0+Mwu7z+5z+/b7Pb+X59knGuVAOBwJd1Gwiig+xyKKWGRVaex/Uijyi8nk0dBIM9j/xwIUaOwxzzSRTzQ/BwfD11cnFMFayDbDpFAUPgaR/lARxRqjpmFkUyErpQiFI5Ee0h8jsmqd+/SyEiquvIqKJwy3lfee7aJoy0WKd3STQlEAMOuhbY+b/3go04EZlUIPj6vXyFpDkmWAIlTcO4E+8oWP88WL7pYL1PmbM9T1Qiv1nO0khSLPGEVkfdHLangqBVOIx5hCLE9u9ylD+N6JbL2Y/NKx+wxd/NlflXIo8o3JvJ5FMdPY57YzrVIwhdimJWIHTgVThOHf/UxOyiATb79M5lMtdIEph0KRX/SFMfOtHc7SgOuhDoX46LrJXCG0EtfDfaGFAtzlCpSX0LtHz5FCkT+sWj00wrCil5rl0hRLwRTiwb4YgvOxjdOp7K4baDBAvHHuawdZMH6ZFIo8YbIY49NyjGFr+pFlihMl/awRzDogfhgsgiOH8eV/v28lhSJPhGKkVVtR85eiwKYUVqjib9SXZYJ1gNuUK7dplTRT/xRN1cfRbfoY21Kmheht6wI/rmTiCLKYpYj+5b+kUOQD5i5dEwgN1+LRS4192wkC4chCtrkN60WjS+m652ZTcPRV5Bcow9LgdCb8lWmP2Rv7OzX0/i65jeC7rWZvwWalwuVlNGf2LDLbO2j/wT+S4gOJGSNrLJmGGXy/THtQrCGozkUhZuo30ONFXye/6OXFPHZBfFFozPnyLNrzTNKy0rETf6aZd8ynBfPm0pjK694vf+kk3/dhYcbUyTRjyu3J7daz52nHrt/SFUw4SPryXqI1XCkwfMOiWATrsBJld32S/DJKK6f1wa9QriAjhXN7WYtJN99Ej67/AWVD86lXaf+hw/0W1Dmzv2TbhjBEmDLUzZ/L1wVrf7yRnwvXCEWSWfvIRipU/DxTgdneyZ/v6pX1yTLc+xWuFGSRtYCEUjAHJjl8I1MPdTqWBqbxWKE/QBm9+i/gxsiC6AWOW7bkbtr0xNN0f8MPKVeaWl6jOmnbaDvHl3RUTRxvExZQyErh55kKcP9Qig8gkWA4Us2VIk7WDBFc5GIlwHjtmpQyxA0vx1MzS53kPh6qlAX3A92pB8VAywbBXMBad5ljJ07aBNy5H/HDgYN/YC1/TVJwNj2xLe25UF92Kdx+t+nUa54ChfPgfHDNILCIY5pZHad7Bms1Y+rtKddbx9y6Ktb6j6kcNWDWMhdEHDZjymQqLy/l261t5/m14F7w3MUxznvAPQNY6TCrC5zxnNu7EvX6g0Z6VZDCkTBTiCpRmKuluFEfads+En+DB9R+KGJxDHrM/fRb7Ny1J6Xsq+xB44EL4CKArZt/ajvunm8/YFMK536jbT5FRo+ytaTLliyiTVvcFcNZ360cbpabUkDIt27+iWurLVy4/UxBv8OsHq55DD/efr4N6zts9y2sJc7px1p5WULQmmH/ssWLuLWUr0VQ1yfM4ppWrajn957EeoB2PLuH193zqy22uojlhIsq3zuUYYeLHOQCMxDVwSAFq1g8wQtKJozIqiLcpBtpJN3K0qujtMQ4wYae523HXMvK1wfvsJVtjh2n81a7528Pm3Itdb1gULa4vWy0krJwtQ9ACzKYQCgOP7/LLhwuQDkgEJ+b7h67uQkhgIBCkCFs2VDDhC+TYqxeUe9ajgTEow+vokwklKaUN2qyu4n3hut0xmV8H7PCUAqcQ+bAwGYEJwVZcJEc/RoozzyuqTZwC30/UJMSPzT02pWiVr+F7gtOs5XtizXTefJWCr9jq95sPu65H61IIfv0YPWKZSkKkXCbXuVKIAs7jkNLDBfEDQgzFMBpcdBCZ6sUUNB0wH1MZynBqpX1rteEhklYbAGs2P0N62xl3Mo3lCUtigzK8C6dbmO295UlYZ0ollSKTGnYpUzIH2YZpv4G1F4U5ZAK9sIcQisRrBjHXTK3crG4KWjdfHsaG8dcHani7gL+d8YxTj9crnf9pOm8HtwTmTEZrJAMFC/dks4aAZGZk8G14Jo+y6wb/ndaILincszD4wxmJdzcSPw2rISsXPi9AY6ZoBTZgZTrfYFpdKUhXBOvl5lP3Fwmp0DvP2R3D9IJuFwvk98/GEDAZXhQLQksBNgZA4bLy3nCQ2aDw/2SGzbnvuMn3C1mf2DZp4CJ8ALEPALclcFZNBT0nO3ydTxaXydoZY5ILkAiUzOZP9x0ypHJnx9K0BLKwbhT2Abb+uHc6c6BTrpscVPeSKXzXtq5OybHFfI7EtciLIfz/W30cOVyxAzqFDPifaM9etvSC2SNbh8pe94yecpVBM6Hi5fa9iMVW3N5s60sXSpWxu9QD7eAz+m7CpxKgUySwV4yXtSqNIHjQCCuEW4P3AlZ4ES/h6yUyLqsY62+2cH88Ik38euUQYp2MJn7zcUZA203nHEO7ulpllETlg7pWaer2NzyOn8esChuLhOySu2SUsgMRn8J0wQj2MP+EaMCu09f4OlQZ7AL18kJUq4vx9s8j8mUaXKj16elWL0yO2HGw0OWQhYwKM8Rj6AyF9DZ50S+RpzT6QNv2rLd1qvM07O/cE/vAsQOhegOCv9eFmAogVMR5ONFLzj6GdwE/8ChRP/DBhcr79VnlCsWM4Y6BkBZfMaDBPjGIRtEKjaxnqoQnRQlv3SfvjgogwIhRHgBMNND4Xp4BX7omHOCXvdsXzDupZB7k+9Z+r2srAzeAyySYCfLIDnfDZ4jfktk4pwcODTwgzN10hqDfSv7WWqWN2f4tsHZgYcWv8OK2rJOGPyHsU7YdydL0zp53fI/FPy9l/7puR8PJ1uz3s5N8kluuoWQoi5y/M5OMvwuFKZuXmoa0OzotJ1TBLDonZXL4eoIIBhwmeS0onixsApuIDXZzKzMssULXd0/3MPaRzYl7yXTs0h33SnH+Xim9t+318OoAYAyZJlgHfE83VLNCLbxvO31E+9r0s3jk2U7n30uuY573yr9FlzIXK47M/FGHkxgvIdF2lGsY8Tq2Fe+keJCIR2bbfYJ8caCnmd8u0/GrbuHbPg4TDGErzXDWKaBOAdeeGtfi+enHvBbt9CAUoiAezCf9QBhxMy3x0rfU4yFUlRjHV/cYfi4TCmFaG/x3Ta3KR2be1+kx2Mvkh8w08d/6o+RQpE/9EUx863tUj+FlZzV4NJTLSnjjxAjJFp/0/Nnc1EIcFHN7qHIL0aMYo1YSX6OakXNJj1UUU2YG7Y7RpffNKm09hO2WkipIusEq1GmldhiDGSiMNRjb/wU+QUjY9V32op8opG1Md43D5RtNg85tgBXr5tMFd9KP3GByDpBWRCI58KlJ1vondUfni/WFAUJjyXEhm3ignjUNAIhjCTXqrGNeZkwFgmTC7gBZcDSTb2UC90tF1kccZxgmRSKPIFvsz9PUTMZF6TMbsYUo1EPhZnWaPwbC+HWDMvxO4t0dOx+g/69+KiagFmRZ6x5lmnYXBXXKf9YfLFPVoz3/vQv3tMcYhZDL+/ntJksgH/nR6/QBbYoC6HIJzpZi3pN49fO8rTzYEIxAqHhFWyV93JhCAishl5ektadygTSrrAOarpMRZ4xmUIs6TGN7W47s5iKP7JcS0x/k+ygwKwb6PXG99yZPl+FlXmXLeaTp5WrpMg7TOCbesm6k3Kdij9JOBIJkLaGrS1w7sL0/CUTh3O3KiD1gvNxTG1dShEUhYKJtCtzl9ZkOtDXn/eSlGMOqT/vpbgyMJgy7GD50Z9j8Gs2FfwphUQgHKnVSGf9GtYkSvwRyAgpFPnFTCxaE/4QpE7xJmYZGskn/wfxuk5lgSGYfAAAAABJRU5ErkJggg==",className:"",alt:"Built on Flow"})})})]})]})},Wt=e=>{let{name:t,inputError:n=!1,valueError:r=!1,placeholder:i,textLeft:o,disabled:s,validateFn:c,errorMessage:u,className:d}=e;const p=null!==d&&void 0!==d?d:"h-[37px] w-full text-[14px] bg-[#606E7D33] border font-semibold justify-end rounded-md px-3 hover:bg-[#606E7D4D] focus:border-[#FFFFFF7A] focus:outline-none ".concat(n?"border-red-500 focus:border-red-500":"border-[#FFFFFF1F]","\n\t\t\t").concat(r?"text-[#FF6E25]":"text-white","\n\t\t\t").concat(o?"text-left":"text-right","\n\t\t\t").concat(s?"cursor-not-allowed border-none":"cursor-pointer"," \n\t\t\t");return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)(l.D0,{"data-testid":t,disabled:s,placeholder:i,className:p,name:t,type:"text",min:0,validate:c}),u&&(0,a.jsx)("p",{"data-testid":"".concat(t,"-error"),className:"w-full text-end text-[#FF6E25] font-[400] text-xs whitespace-nowrap mt-[8px] 3xl:mt-[12px]",children:u})]})};var qt=n(98081),Gt=n(98853),Yt=n(60712);const Kt=e=>{let{isMainWallet:t=!1}=e;return(0,a.jsx)("div",{className:"rounded-lg px-2 py-1 ".concat(t?"bg-primary":"bg-[#ffffff]"),children:(0,a.jsx)("p",{className:"leading-[14px] text-[#031021] font-montserrat-bold font-black text-[0.625rem] uppercase",children:t?"main":"child"})})},Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAAEwCAYAAADfOUbNAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtDSURBVHgB7d0LsG5lXcfx/zmCyl1EAQHlgECJoabhJRVQIUPEKC/pFKKVjaZlU9lVm8oZyzRnvFVT2dBlzKFMBIlUVMxLFpARcgkMUBAQFQ8SgRzO2T2/edYz+9nPXmu96937vaz/Wt/PzDPrXe++nfPuvX7vc19bVlZW9jOzhxgA+LN9qwGAY4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXCPEALhGiAFwjRAD4BohBsA1QgyAa4QYANcIMQCuEWIAXNvNgGHaJ5RjQzkllMOqx3pu3+rjd4Vycyg3hfJvVbna4M6WlZWV/cLxIQYMw/GhnBzKj9pqYCUroWypOU/Hr4Xy7lAuqR6j/7YTYhiKQ0J5s8UQS/KAWsmeM1sbaCvF97ollA+H8ieGviPEMAivCuXVNc+XNa/8eWv4WE5h9juhXGboK0IMrh0cyptCeZKtr00lWzb4sdxfhPI+Qx9tp2MfXinA3hnKI0L5rk2uVclKx88rv+asUPYI5T2G3iHE4NFBobw9lIeFssPW93tNq8vXnhHKTqOfrHcIMXizVyhvDeWAUO6z6dxdFQXWQQ2fU45Y5l4Qyp2hvN/QG4QYvHlpKPvb2gCrCx2dK7CuDOUToVxRneeODOUIi+G0zeqVI5w/Hsrl1fdFD9CxD09OCuV1HT/3glDOsfXB1eSxobw2lIdbc00suT2UXwnl/wzLxugkXHmXxX6wNgqWd4RylW3Mi0J5YfW4rZ/sg1XBcjE6CTeeEYrecPOO/NI3Q/n96rhR/2CxA/+MCZ/3nFAuNGpjS8cCcHjxfIv9YCr3V8cdxfEttrkASz5kMaB21PyMVHa3uLwJS0aIwYOjLa6DzEMllXT+gVC+ZbOj73elrQ/LvJxgWDpCDB5oPWRTeOn4dYsjkLN2vtUHZyrqjnm0YanoE1usfatyqK2dYKktYL5jaKI5XW2z8i+w+fhyKNdYnIrR1A+nFQP/Y1gaQmy+0p5W6jtJ+1o1UYh9IZSLLO5txVYw0YMtTntQP1g+WpgC5Z5QLrX50e/ikdl5OWK5LZTPGpaGEJsPhdfLq7JP9ZwuuvusfnsY0cV6UlXkXIsdzJfYuGmNZDkzP3/trrP5usraVwZMmvKBOSPEZkuB9RNVSRvy7ejwdXVNldOqon2t/tTitjBj9EBrD7F511jvtTjiuV91Xv6u9jQsFSE2OxpB+yOLfSTS9O497ULlUy3OkfoziyNmY6MQK5uSuTts/r5hcReLJg+y2GeHJSDEZuN5obzeYk0sr3l13XzPiq8pP19NzV8I5UCLs9bHZG9bDYhyOdCKbXznimkoRMsadf5zCbElIsQ2T3tNvbJ6XBdgyZaG5+o+t8mPWRwpe2Mo/2vjsN3am+S7bP5SiDX9ngiwJSLENkc3o1D/16R+r7L20LVmVvd1Wqj8mlDeZuOgJUD5gIjZ2tdvEet+97O13QPldj2E2BIRYhunGtHP2PoAK2tc+bl2VNAOCNdnH9ccKG0Hs1fD19d972dZrKH8uQ2fZuHXTa9I5/vZfO1lqyPLdb5tWCpCbGM0b+nXrNvIo2j5ijrlFV5NW8MoyE4P5dk1H6urgWjk8vM2/H2t1GxOAVK3YaH6zLSOsevvYloH2vpF5/nvgxBbMrbi2Zifs1gbkqYagmhU649tuqDRRfNiW50vlv+Muu//Bhv+TgqaLFz3N5peD21SOK/5YidafNNqMs+fjcnYimcDNLnx6TZ5a+TPhPLXNn3AqLn5XotLWc4sPlb2p+nCfq7FSbFDprWRqbldF+iHh3KDxWbnLOl3rdc49clZ9m9I57cblooQm572mWraGjldVJ+zeJuvzfhni02pny5+Tv5zRbWUj9qwa2Oa0JqWbNX1Gao5qeb4rGtE32f1v+tES57uNCwVITYd3ZziyVZ/h50UKuqI3myAJVqTp/3kT2/5HF3A2qDvfBsuTWhVjWf/ho/rd6DamGbWz6qPSpOXdX2kENtS8zOvNSwdITadx1n7O7O83WZL4aSR0KNbfuaRNnyqjTWN4Kbzx1jso+q6r34TBaJWXrQtd9JypEWsFsAE7Cc2Hd1pOt8Ur9woT6OFs9yYL7mg5WeqbAvloTZst1l8beteg+9WzylgtGvIwbYxaX+wQ2z9a1z+3FstBhmWjJpYd1o7p1GqfOZ2WSO40OYj39eqifqEhl4z+GooxxTP1dVMD7W4VEuL5rvem1JvAgovLSGqm52f/xx9z5sMvUCIdad397a5SBodm+ecId03UZ3bTbP9t4VymQ3bXRZrQOX2N3WrINIGlPoa/V7UCZ/PrFcrRG9Mmmemvs50LdT9jsvv/9+G3iDEutP8rbZ39S/bfGlfq1OK5/LBhb1tHFS70t9tvgVOOcBSLs5+hK0fgMlfO62/3FHzfB01abvW7rAAhFh3k2aFz3u/Ly0zart49rLxuNnibqv6++26FrXr57VRjY7O/J4hxLpTTadciGzZ+SI6eVUL2Mfqp3bMa9lNH6nmpNFK1Y4fUD3XtCNIXS2tLszq5uDlz2n7cOaE9RAh1p12U2gLihWbvzQy1vSxMdHsfI1Yqt/rwTY/+r1q0vFmp21gTgix7jQjvmmSqx4v6rXMl8Dk/5axhZioRqZmtkJMnfRlDaupb6tcQpR/bv7a6o1L4TXr5UyYIUKsOzUl2vqk5t2xrm2aNaLWFFbbbbzUlNfvRp34+d90l22N6qzY6r0l0XOEWHcaoq/bnC+9e+9r86V9x5q2SNbPH3tzR7Uy/Y70WuxWHRX6bf1hdef3V99rEd0DmAFCrDv1v7Q12TSMP899rTQRs61mcKtB8qb1Fus+cpkf4Qgh1p1qOuoXS+/yUvahKGi+YrOnOVGahV7OZcox9L/eom4kgiUixKajPb7alv4cZXHof9YdwVpqU96EJG8qKVy/YcAIsQB8Omqy7bDmxcFqTh5ls6WRt4Ns7QLk+23tYmQ25sNoURObzh1VaRuJVJNSI4W32eYpwJ5oMaiaJtnKvJc8jZ2a8tpH7nst/u4PrZ5Pr7/WZ15tcU3lJdU5FoQQm576vI5p+bj+sFUb0wjXZmpImi5wnK1Oq6ibnybauvkew6wpqH7E4m359MZU9q+VgwEnZOeXhnJedWTAZc64UcjGaM+qfTp8ntb4fc2mp++toGx7k0mB9p/GfQ9n6XiL9/U8vjpfyYpe8/JmvXm47Sqel49YvLUeYTYf2wmxjVGToqk2Vo4cKmD0B9xl9FDfV1M19rHJa/y2VN+Xi2M29Jq/2uLNkJOVmmNZG8vPFWJl0KVlS7pl318aZo0Q2wR1tmsBctMWMOU0DHXG649ZI4l5808z8bVkZt/qcd3kzJWa768mJvtazYZ27P1dW202mq0PrrwmtsXWBlhb2OVHveH8os2mvxQRIbZJqjXNaqZ+28zykgLsJhvneslZe2kov2zNgWTWPaS6fI0C7A8t3gsAm0eIbZI63RVkqkG1jR7WPdflcfl1qUZ3i7EoebPUfFSt6LTqvKmZ2DXAun5Oevw3ofytYbMIsRlQkGl/9nw7mEk1qSaTvk67KmhSKwG2Odpq/L22ekORjdSqys9rCqu2r/m4xU5/tvnZOEJshtQpv2fN83VbvDQtIq/7WPoaNR21Md9Ow2Y8M5TfsLVz/bqEkkaB1QTUqo18Xp6+j/pHNR3madXjuhBsOtcUmd8yVlxsFCE2Y5qxryCrWwnRtvVLUlcT03P3GrcHm4VXVKWpllWONMrHLDb9vm7dKMxeZvHu4fn3T9+z/BvQuWpi77Y4URbTIcTmZPeqpPWNTbWr/DyXPpaWFU0KP7TT/QfeHMrjq/O2ZmM6V43r96x7eJWeHcpLbHUEu0twnhPKBw3TIMTmbGtVyi1h2vq+9LGdtv4PHBuj5t3bLPZ/1QVW/iaTPn6uxb6qzdJ9St9g8XZ6dU1Vs/WBptvuqeb3TUMXhNgCTbOvFWbjZIsTWNOdoNpqXjqmSann2Wy9PJQftsk1snSu/rE/sPncTX5oCDEM1qtCOcMmB1c6ap2rguMGm4/nWlwN0DZ4kB81KVphepGhDSGGwVGt6zctdrC3TW/Ig+1LobzVYnDMk+5c/qsW7zhe/rukbjXA+aFcYGhCiGFQjgjl123tcrBJnfj/FMpf2eIowF5hce1tUx9Z+fy1FifGsnvveoQYBuP5FkcDNcWlS3NN0xrUgf5pW47n2frVAm1NX/WPvcfiXcixihDDIJxlMRSSSf1O6jh/iy1/gulTLO5XVq72aPu3fziUzxoSQgyuqY9Ji7e3WfPFXz53TSjvtPn3f3WlJWuvqY5dOv1FIfYRgxBicEtbRWv6RNlJnh7XhYBG+861/tk/lBdY3GyzSxDrqG193m/jvmmyEGJw6YdsdbqCdTiq/+vsUL5o/facUJ5VPe4yMKEA07y2ja4qGAJCDK6o01773p9SnTdd6PnFrpnv7zA/E0dVw1Q/2YOq86ZpIfl0jH8J5TM2ToQY3FCz8bWhPMrqw6quxvKvFtci9qX/qytdj2eGomuzrZaZ//+1ePxzNr77LRBicEFzqtT5vUd13tZflB4rvC42vzRiqeblcdX5pE5/lTtD+XuLWzaNBSGG3jvN2udTlU0s3b/gfTace3H+YFWk6f+fvwYKMjUvr7dxIMTQW+r/Ut/QU6vzuiU6lj2notvjnW3Dm9l+mMXBjPw2gW21UJVLbBz7kxFi6CXNmXqdrc6dStqaVKp9aLvnoW4eqRvSKNTT7fzMJjcxdTcs9QveZ8NFiKF3tCOqdkZNs9i7zJvSxM+xzGJX0/Jx1n1y712hXGhxm6EhIsTQK2oynVw9bqqB5eeaJ6WF0WO7gfATq9JlhFZHjVh+3uJt/oaGEEMvqNaljQOPtG7NRxXdv3HMM9bV1NbEWN2opG1CbP6xKyxuOzQkhBiWTvft/EmLf4Ndl9x8IZSPGhRgJ9ra186sPcxutnjnJm9z55oQYliq7w/lVIs1sbYLL52r015b5/y7Iad+xMdae40sP2oZlmb4DyHICDEsjbZr1vSJtostP6rZqAmsY14n2OZoix3+0vSGkL+euouWRi9vMN8IMSyc/t60Y8Ph1XkZWOlx/vxXQ/lHG9+Smmlpbt3TLa5s6PrmcJ35nhhMiGGhdPu0F1oMMlnpcPyPUD5p6EpBphrZQ6vzNCm43Ls/f6xlSrq7ucc5doQYFuYHLNYS8t0Z2o66oC4O5SrDRhxl7aO95ble7y+avyAjxLAQmgrwpOpx3Yhj+bzW/6n5OKaFzPNwiMUw280mj/imo+587mneHSGGudJSGfV/6U7YXZqOootIzUf6v2ZDI7+Pt1gD7vo7uCWUr5gPhBjm5lBbu2i5Sw1MC5YvNcyaamKPtrgnW9NcvLLPTM1KjV72fd0lIbYJujiPt9jXo2r791icfJhmUKsppHc07ayg+wbq4uz79sizonf+Z1q3d/60LEaLt28xzNOhVWn6PVjxvILsBut3PxkhtgHq29EGfdqoLwVWXUmjQvlzWoyr3Ra0IPdyGx41WbRAWVssd+mDEb0musP1UBco942u90eGsnt13uX3pLl5y769XRNCbAq6OevPWlwm0xRSdc83fZ6WfujmrVfYMCjQNYG1rclixfOao6TZ90PeKqaPHmhx5LIuyMpjeqw92nS/gl3WL4RYBweH8iZb3TWgLbxWNvCxi0L5O+vvO10Xeo108w5dHE2BVT6v/q+rDcvyAIsDLrpd3KS+ynSuWf7qHrnf+oMQm+DFobzSVpuNKcDKUMrP0+OymK0NwPyxqutnm89O7SdURdouhvSc1u1poz6WD/XDAbZae26rkaWjgky1snusHwixBnuFcpbF2eV1QbRik4NqUrCVn6Oj5kZ9yHxQU0STV/O7D9mE47ctbl54t6FPNA1DtbJyPlnTUUUDV3fZ8hFiNbQ05rctDknXBVXeJ7Cr4WMrmyi67dY51u8dBhTyJ1dHmdR81FH9X1dafCdH/yjA8iBrqlVb9nGNWn6n+JxFI8QK2tLkl0J5mK3/hXUJqruroscHNHztSsvXp6IO1HdZP294oSF67T6hmljTu3T5WIMX1xk8UB5o/eWk32067rQYZMvq8CfEMhp9/Clrbzqm59JRgaXm0dVVKWtPCjI1tzRv6inVc02BWIajvte5oVxm/aE9q46tHk9qboheH40+3mnwRLtglDvGNh1TUR/ZMmrZhJjFd52zQjnJ6mtFsqs415ymj1ela7NPgfZki9MQ8iA0a6/hafTyU7ZcqnU9zWINVZr+qPV/SDO/v2XD2kF0bDR6qSBLv09rOabHmiqz6CAbfYjponyjrTYfuxTdcGEzfVYa0tZ+8gdX502d/nlt7ZpQPmbLqdHo70O1yD2y5+r+nfmylRuN3SeGYKvF3/uW6rypSZl/bIetDbd5G3WIaZnQ6y3+ktr6ufJ+LO0s+kmbDe3scKK1N13zn6+dTT9gi93ZQTO71YTc3Sb/AYveibWA28viYXSj3/8Dqsd1te70fHm9LMJoQ+z0qkhbky6dq2mkO+vMegdMNS+fYWsnibYVjQbpJhmLWLKkvq9t2Xn+2lj2OJ3fU/27+jDsjtnbWhUpgyt/btFGF2Lq/zrTVm8+Km3zvlS0KPlsi3Oc5kGv/4ts/W4PbUWTYufV4a85Q8fZ6s6gXZoQqiVqBLJPM7kxH3ntqw9GFWK6KH/eVpdZdCmas3WBzZ/23dLE0SNsfS1wpeE51Q7VtJ3lxFEFqUZS092HrPg35OfpeKPRfMTyjCbEtF2ONudLN1BoCoa82fYpi8tjFknrM59ga0OjaamTikZJdeutWdxAVv1fR9f8XLP6JoP6v240lg9huUYRYqdZrOWUneZN4aBA0Ojjsi5OrRTQdj/5zOmy6Wu2GsA6/lco19vG6OccHsph1lz7KsNT+39daey+iuUbdIipSfQyi53Tbf1f6XnRrcHUfFz25Ewt5znRYh9eOUetaU3mjTb9rhDa/+vY6uckdUGWP6dVBDcY/V/oh8GGmNY/vsRip3lTf5fkIaBbg11s/aFhbS2DSjtxdimau6bdY7vUkNQPp5tI1O29LuVopI66gQS7r6JPBhli6v/S1siattBlRrz6v9Sv1Ne9rRQ026rHXYJMUx00ObZtMq5C/vDse+bHuvk/Wh+n5iq7r6JvBhdiJ9nq5oWT+pFEE0fPs/7PbdKSJfWVqdZULllqWsKkGtNtxffRhEV14JcrFHJlh75CUaOP7L6KPtq+mw2DmkbqwNfFmS62uos8DzNd5J8wH53Tmk6hWtBjbO3s+baSdtHQjrH6v6tmelR1TP1ZeYit1DynQY5bbXk7FAATDaEmpov1VItznCbtqprOLzefN+pQTUprLsuJqG1Fa9kURodVX98WWvnxduvnVkBAzn1NTOv6nlo9Vo1q0gWtWpqW7dxsPqlvSnuc6/9at19ZXlLtSYF3uMWa3L1W34mfB5leIwUYu0/ABa8hpiaVJoVqekBqPpYXb9mRr4v40zaMi1ObJqo/70BbrV2l/3sKoy3VxzV9QuGX+tPy/385AqlwVD8a0yfghscQ0xyqEyw2gSfVvkQXquZ/fcmGtTWywlv9VVpGlU+M3VWd69ZyCrh7be1ronBLr0P+OikUaT7CHW8hpo577fqgf7cu4i59Qtp54lobJtWwVCtTsKcOf21kpyakalNp0CKvpaUpE3mzUovbmT4BlzyFmKYYaHeF1LfVpUNbnfdjqF1oEbhCTM1HhVi67fyurEjZ5FTQ6fXh5h1wy0OI6d+ovi/Nb8prFnn/Vxlgmvel5uO9Ng5qIqpZqf2eNK+rfG3yY3qsNwItr9ppgGN9DzGtfzze4u4TuuiaOu3zi1bzv9QHNpbOadXA1HxU/1f+f26aOiEKOpqPGIQ+h5j6vzS5UxfnNB34t9l4aORx7+px6ufKX5Mkf43U9GT2PQajryH2qKroossvzqbmo0JOATamrZHVmV93fwArjnmAaXoFzUcMSt9CTLWuYyzOvk/9X5Puqq2mkQJsLLUL9Xul0cgUSCstxzQamU90BQajTyGmNX0KMF2c6bZP5brH8uLUyNrtNh4KeQWYOvLzGqrZ+mZkPkrL5FUMVl9CTBNXD6ke59MnpNwEUHQBK8DGdGdphXuadd8WXPnzO43mIwauDyGmva00PUAXm2oMk+Z/6XM0wXMszUfVuvR7Ss3HtqZjOpbzwYDBWmaI6WdrcmY5faJu2kQ61+fdYeO6OHevjingk7qRyLo5YcCgLSvEdGE+3NZPnzBbX/NKNQp1TM/y9mQe6PWp6w/Mj8CoLSPE1DGtuU3l9Immos9T0I1tbpOakXV33QaQWXSIpblNdX1fbXvgj/EiJriADhYVYprbtGd1bFu8XS5UpnMaQKtFhJiCS2sgFUhpvlLdvRPN6O8BMKV5h9hWW7/3lxlhBWBG5h1iacY4YQVgLhYRYgAwN1sNABwjxAC4RogBcI0QA+AaIQbANUIMgGuEGADXCDEArhFiAFwjxAC4RogBcI0QA+AaIQbANUIMgGuEGADXCDEArhFiAFwjxAC4RogBcO3/AUFDa0bQka+AAAAAAElFTkSuQmCC";class Xt{constructor(){this.params=void 0,this.params={}}apply(e){return!0}}class Zt{constructor(e){this.params=void 0,this.params=e}apply(e){var t;const n="storefront"===(null===this||void 0===this||null===(t=this.params)||void 0===t?void 0:t.listingType)?T.SUPPORTED_TOKEN_LIST:T.SUPPORTED_NON_DAPPER_TOKENS;for(let o=0;o<n.length-1;o++){var r,i;const t=n[o];if(null!==e&&void 0!==e&&null!==(r=e.tokens)&&void 0!==r&&null!==(i=r[this.params.flowty.tokens.getTokenIdentifier(t)])&&void 0!==i&&i.receiverPath||e.isMain)return!0}return!1}}class Jt{constructor(e){this.params=void 0,this.params=e}apply(e){var t,n,r;return((null===e||void 0===e||null===(t=e.tokens)||void 0===t||null===(n=t[this.params.tokenIdentifier])||void 0===n||null===(r=n.providerPaths)||void 0===r?void 0:r.length)||0)>0}}class $t{constructor(e){this.params=void 0,this.params=e}apply(e){return this.params.includes(e.address)}}const en=e=>{let{selected:t,setSelected:n,selectorFilter:r=new Xt,label:o,disabledMessage:s,description:l,summaries:c,listingType:u}=e;const d=(0,i.useMemo)((()=>Object.values(c||{}).reduce(((e,t)=>{const n=(null===t||void 0===t?void 0:t.isDapper)&&("loan"===u||"rental"===u||"acceptOffer"===u);return!(null!==r&&void 0!==r&&r.apply(t))&&!t.isMain||n?{invalid:[t,...e.invalid],valid:e.valid}:{invalid:e.invalid,valid:[t,...e.valid]}}),{invalid:[],valid:[]})),[c,r,u]);function p(e){({...e}).target.src=Qt}return(0,i.useEffect)((()=>{d.valid.reduce(((e,n)=>(null===t||void 0===t?void 0:t.address)===n.address||e),!1)||null===n||void 0===n||n(d.valid[0])}),[r.params,d,u,c]),!t||!n||Object.values(c||{}).length<=1?null:(0,a.jsxs)("div",{className:"w-full flex flex-col justify-between gap-3","data-testid":"wallet-selector",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white","data-testid":"wallet-selector-title",children:o}),(0,a.jsxs)(Yt.A,{className:"relative w-full",children:[(0,a.jsx)(Yt.A.Button,{className:"w-full","data-testid":"wallet-selector-btn-open",children:e=>{var n,r;let{open:i}=e;return(0,a.jsxs)("div",{className:"flex gap-2 font-bold font-montserrat-bold bg-[#606E7D33] border border-[#FFFFFF1F] hover:bg-[#606E7D4D] rounded-md px-1 md:px-3 py-1 items-center justify-around md:justify-between group text-[#F8F9FA] ".concat(i&&"border-[#FFFFFF7A]"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,a.jsxs)("div",{className:"flex gap-1 items-center whitespace-nowrap w-4/5",children:[(0,a.jsx)("img",{onError:()=>{},src:(null===t||void 0===t||null===(n=t.display)||void 0===n?void 0:n.thumbnail)||"",alt:"Wallet Icon",className:"h-6 w-6 content-fit rounded-md"}),(0,a.jsx)("span",{className:"p-1 font-bold font-montserrat-bold text-nowrap text-white overflow-hidden text-ellipsis",children:(null===t||void 0===t||null===(r=t.display)||void 0===r?void 0:r.name)||t.address||""})]}),(0,a.jsx)(Kt,{isMainWallet:t.isMain})]}),(0,a.jsx)(U.A,{className:"h-7 w-7 text-white transition-transform duration-300  ".concat(i&&"rotate-180 transform")})]})}}),(0,a.jsxs)(Yt.A.Panel,{"data-testid":"wallet-selector-panel",className:"absolute z-10 bg-[#232D39] rounded-md mt-2 p-2 text-[12px] border border-[#FFFFFF7A] overflow-hidden w-full",children:[null===d||void 0===d?void 0:d.valid.map((e=>{var t,r;return(0,a.jsxs)(Yt.A.Button,{as:"div",onClick:()=>{n(e)},className:"cursor-pointer w-full px-3 py-1 hover:bg-[#6C757D40] hover:text-white flex justify-between items-center transition-all ease-in-out duration-300 rounded-md","data-testid":"wallet-selector-wallet-item",children:[(0,a.jsxs)("div",{className:"flex items-center whitespace-nowrap w-4/5",children:[(0,a.jsx)("img",{onError:()=>{},src:null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.thumbnail,alt:"Wallet Icon",className:"h-6 w-6 content-fit rounded-md"}),(0,a.jsx)("span",{className:"p-1 md:p-2 font-bold font-montserrat-bold text-nowrap text-white overflow-hidden text-ellipsis",children:(null===e||void 0===e||null===(r=e.display)||void 0===r?void 0:r.name)||(null===e||void 0===e?void 0:e.address)||""})]}),(0,a.jsx)(Kt,{isMainWallet:e.isMain})]},e.address)})),d.invalid.map(((e,t)=>{var r,i;return(0,a.jsxs)("div",{children:[(0,a.jsxs)(Yt.A.Button,{"aria-disabled":!0,as:"div",onClick:()=>{n(e)},className:"cursor-not-allowed w-full px-3 py-1 flex items-center justify-between opacity-50","data-testid":"wallet-selector-wallet-item",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("img",{onError:p,src:null===e||void 0===e||null===(r=e.display)||void 0===r?void 0:r.thumbnail,alt:"Wallet Icon",className:"h-7 w-7 md:h-8 md:w-8 content-fit rounded-md"}),(0,a.jsx)("span",{className:"p-1 md:p-2 font-bold font-montserrat-bold text-nowrap text-white overflow-hidden text-ellipsis",children:(null===e||void 0===e||null===(i=e.display)||void 0===i?void 0:i.name)||(null===e||void 0===e?void 0:e.address)||""})]}),(0,a.jsx)(Kt,{isMainWallet:e.isMain})]}),t===d.invalid.length-1&&s?(0,a.jsx)("div",{className:"w-full border-t border-gray-500 h-8 text-danger text-xs grid place-items-center",children:s}):null]},e.address)}))]})]}),l&&(0,a.jsx)("div",{className:"text-sm py-1",children:l})]})},tn="Disabled wallets not setup to receive token type.",nn="Disabled wallets may not have token provider setup.",rn="Disabled wallets may not be setup to receive NFT";var on=n(4377),an=n.n(on);const sn=e=>{if(!e)return"0 Days";const t=Number(e);if(t/60<60)return"".concat((t/60).toFixed(2)," Mins");if(t/3600<24)return"".concat((t/3600).toFixed(1)," Hrs");const n=t/86400;return"".concat(n.toFixed(0)," ").concat(n>1?"Days":"Day")};function ln(e,t){var n;const r=null!==(n=null===t||void 0===t?void 0:t.shouldUseDecimals)&&void 0!==n&&n;if(!e)return"";const i=Math.round(100*e)/100;switch(!0){case String(i.toFixed(2)).replace(/\./g,"").length<6||e<1:return an()(i).format(r?"0,0.00":"0,0");case String(i.toFixed(2)).replace(/\./g,"").length<9:const t=i/1e3;return"".concat(an()(t).format("0,0.00"),"K");case String(i.toFixed(2)).replace(/\./g,"").length>=9:const n=i/1e6;return"".concat(an()(n).format("0,0.00"),"M");default:return""}}function cn(e){return"OTM"===e.toUpperCase()?"OTM's True Value model":e}function un(e){return"OTM"===e.toUpperCase()?"https://www.otmnft.com/nbatopshot/articles/introducing-otm-true-value-account-valuation":"404"}function dn(e){const t=e.split(",");return t.length>1?"blended":t[0]}const pn=async(e,t)=>{try{const r=await fetch(e);if(!r.ok){return t("FETCH_ERROR",{message:await r.text(),status:r.status,url:e}),null}const i=await r.text();try{return JSON.parse(i)}catch(n){return t("JSON_PARSE_ERROR",{jsonError:n,message:i,url:e}),null}}catch(r){return t("FETCH_JSON_ERROR",{err:r,url:e}),null}};var hn=n(799),fn=n.n(hn);const mn={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK,gn={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK;var vn=n(73682);const yn={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK,bn="mainnet"===(new qt.FlowtyBuilder).withNetwork("mainnet").withCrescendo(!0).build().config.network,wn=248500,xn=25e4,Cn=e=>e?1:0,An=e=>e?1:0,En=e=>e?1:1e-4,_n=180,Tn=e=>!e,Sn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isDelist:i,isLoading:o,error:a,sealed:s,existingLoanOrder:l,existingRentalOrder:c,isAcceptOffer:u,isSelectedOffer:d,existingPurchaseOrder:p,isUpdateListing:h}=e;switch(t){case"1":return!i.sale||o.delist||a.delist||s.delist?o.acceptOffer?"ACCEPTING OFFER":o.sale?"SUBMITTING LISTING":o.delist?"DELISTING ITEM":a.sale||a.delist||a.acceptOffer?"TRY AGAIN":s.sale||s.acceptOffer||s.delist?"VIEW ITEM":u||d?"ACCEPT OFFER":p&&!h?"EDIT LISTING":"SUBMIT LISTING":"CONFIRM DELIST";case"2":return 1===n?!i.loan||a.delist||s.delist?o.delist?"DELISTING ITEM":a.delist?"TRY AGAIN":!l||h||s.delist?s.delist?"VIEW ITEM":"NEXT":"ADD LISTING":"CONFIRM DELIST":o.loan?"SUBMITTING LISTING":a.loan||a.delist?"TRY AGAIN":s.loan?"VIEW ITEM":"SUBMIT LISTING";case"3":return 1===r?!i.rent||a.delist||s.delist?o.delist?"DELISTING ITEM":a.delist?"TRY AGAIN":!c||h||s.delist?s.delist?"VIEW ITEM":"NEXT":"ADD LISTING":"CONFIRM DELIST":o.rent?"SUBMITTING LISTING":o.delist?"DELISTING ITEM":a.rent||a.delist?"TRY AGAIN":s.rent?"VIEW ITEM":"SUBMIT LISTING";case"4":return o.transfer?"TRANSFERRING":a.transfer?"TRY AGAIN":s.transfer?"VIEW ITEM":"SUBMIT TRANSFER";default:return"ERROR"}},kn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isDelist:i,error:o,sealed:a,existingLoanOrder:s,existingRentalOrder:l,isAcceptOffer:c,existingPurchaseOrder:u,isUpdateListing:d,selectedOffer:p,values:h,selectedOrder:f,transferWalletSelected:m,isMainnet:g,setFormError:v,submitOfferTransaction:y,submitDelistTransaction:b,setIsUpdateListing:w,redirectToAssetPage:x,submitTransaction:C,changeLoanStep:A,changeRentStep:E}=e;const _=An(g),T=Cn(g),S=En(g);switch(t){case"1":return(c||o.acceptOffer||Boolean(p))&&!a.acceptOffer?y:!o.delist&&!i.sale||a.delist?!u||d||a.acceptOffer||a.delist?!(null===h||void 0===h||!h.storefrontListingDuration||+(null===h||void 0===h?void 0:h.storefrontListingDuration)<S||+(null===h||void 0===h?void 0:h.storefrontListingDuration)>_n||null===h||void 0===h||!h.saleListingValue||+(null===h||void 0===h?void 0:h.saleListingValue)<.01||+(null===h||void 0===h?void 0:h.saleListingValue)>1e7)||a.acceptOffer||a.delist?a.sale||a.acceptOffer||a.delist?x:C:v:()=>w(!0):()=>{var e;return b((null===(e=f.purchase)||void 0===e?void 0:e.listingResourceID)||"",(null===f||void 0===f?void 0:f.purchase)||null)};case"2":return 1===n?!o.delist&&!i.loan||a.delist?!s||d||a.delist?(null===h||void 0===h||!h.amountToBorrow||+(null===h||void 0===h?void 0:h.amountToBorrow)<.1||+(null===h||void 0===h?void 0:h.amountToBorrow)>wn||null===h||void 0===h||!h.amountToRepay||+(null===h||void 0===h?void 0:h.amountToRepay)<.1||+(null===h||void 0===h?void 0:h.amountToRepay)>xn||""===(null===h||void 0===h?void 0:h.loanDuration)||+(null===h||void 0===h?void 0:h.loanDuration)<T||+(null===h||void 0===h?void 0:h.loanDuration)>365||+(null===h||void 0===h?void 0:h.listingDuration)<S||+(null===h||void 0===h?void 0:h.listingDuration)>_n||(null===h||void 0===h?void 0:h.amountToRepay)<=(null===h||void 0===h?void 0:h.amountToBorrow))&&!a.delist?v:a.delist?x:A:()=>w(!0):()=>{var e;return b((null===(e=f.fundLoan)||void 0===e?void 0:e.listingResourceID)||"",(null===f||void 0===f?void 0:f.fundLoan)||null)}:a.loan?x:C;case"3":return 1===r?!o.delist&&!i.rent||a.delist?!l||d||a.delist?(""===(null===h||void 0===h?void 0:h.rentalDuration)||+(null===h||void 0===h?void 0:h.rentalDuration)<_||+(null===h||void 0===h?void 0:h.rentalDuration)>375||null===h||void 0===h||!h.rentalFee||+(null===h||void 0===h?void 0:h.rentalFee)<.01||+(null===h||void 0===h?void 0:h.rentalFee)>5e4||null===h||void 0===h||!h.rentalListingDuration||+(null===h||void 0===h?void 0:h.rentalListingDuration)<S||+(null===h||void 0===h?void 0:h.rentalListingDuration)>_n||null===h||void 0===h||!h.refundableDeposit||+(null===h||void 0===h?void 0:h.refundableDeposit)<.01||+(null===h||void 0===h?void 0:h.refundableDeposit)>1e6)&&!a.delist?v:a.delist?x:E:()=>w(!0):()=>{var e;return b((null===(e=f.fundRental)||void 0===e?void 0:e.listingResourceID)||"",(null===f||void 0===f?void 0:f.fundRental)||null)}:a.rent?x:C;case"4":return null!==h&&void 0!==h&&h.transferReceiver||m?a.transfer?x:C:v;default:return()=>{}}},Pn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isLoading:i,isAcceptOffer:o,selectedOffer:a,isDapper:s,openSearchFlowNFT:l,existingPurchaseOrder:c,orderFromChildAccount:u,isCatalog:d,isDelist:p,privateRentInvalidAddress:h}=e;switch(t){case"1":const{sale:e,delist:t,acceptOffer:f}=i,{bestNonCustodialOffer:m,bestDapperOffer:g}=l||{},v=s?g:m;return Boolean(e||t||f||(o||Boolean(a))&&!v||c&&u&&!o||s&&a&&!(null!==a&&void 0!==a&&a.paymentTokenName.includes(T.SupportedTokens.DUC)));case"2":return 1===n?Boolean(i.delist||!d||s||p.loan&&u):i.loan;case"3":return 1===r?Boolean(i.delist||!d||s||h||p.rent&&u):i.rent;case"4":return i.transfer;default:return!1}},Dn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isLocked:i,isDelist:o,sealed:a,isAssetDetailPage:s,isDapper:l,hasProvider:c}=e;switch(t){case"1":return!c||i&&!o.sale||(a.sale||a.delist||a.acceptOffer)&&s;case"2":return 1===n?!c||(a.loan||a.delist)&&s:a.loan&&s;case"3":return 1===r?!c||(a.rent||a.delist)&&s:a.rent&&s;case"4":return!c||l||a.transfer&&s;default:return!0}},Fn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isDelist:i,error:o,sealed:a,isDapper:s,isLocked:l,existingLoanOrder:c,existingRentalOrder:u,isAcceptOffer:d,isSelectedOffer:p,isSingleOrder:h,hasProvider:f,existingPurchaseOrder:m,isUpdateListing:g}=e;switch(t){case"1":return!d||a.acceptOffer||p?!m||i.sale||g||o.delist||p||!f||a.acceptOffer?!i.sale||o.delist||a.delist||h?a.sale||!f||a.delist||a.acceptOffer||l?"CLOSE":g?"BACK":"CANCEL":"BACK":"DELIST":"BACK";case"2":return 1===n?!c||i.loan||g||o.delist||a.delist?!c&&!i.loan||o.delist||a.delist||h?a.transfer||!f||a.delist?"CLOSE":"CANCEL":"BACK":"DELIST":a.loan?"CLOSE":"BACK";case"3":return 1===r?!u||i.rent||g||o.delist||a.delist?!i.rent&&!u||o.delist||a.delist||h?a.transfer||!f||a.delist||s?"CLOSE":"CANCEL":"BACK":"DELIST":a.rent?"CLOSE":"BACK";case"4":return a.transfer||!f||s?"CLOSE":o.transfer?"BACK":"CANCEL";default:return"ERROR"}},Nn=e=>{let{activeTab:t,loanStep:n,rentStep:r,isDelist:i,error:o,sealed:a,existingLoanOrder:s,existingRentalOrder:l,isAcceptOffer:c,hasProvider:u,existingPurchaseOrder:d,isUpdateListing:p,isSingleOrder:h,selectedOffer:f,setError:m,updateIsDelist:g,cancelIsDelist:v,setIsUpdateListing:y,setIsAcceptOffer:b,setLoanStep:w,setRentStep:x,onCloseModal:C}=e;switch(t){case"1":return!c||a.acceptOffer||f?!d||i.sale||p||Boolean(f)||!u||a.acceptOffer?!i.sale||o.delist||a.delist||h?p&&!a.sale&&u?()=>{m((e=>({...e,sale:!1}))),y(!1)}:()=>C():()=>v("sale"):()=>g("sale"):()=>{m((e=>({...e,acceptOffer:!1}))),b(!1)};case"2":return 1===n?!s||i.loan||p||a.delist||h?!i.loan||o.delist||a.delist||h?!s||o.delist||a.delist||h?()=>C():()=>y(!1):()=>v("loan"):()=>g("loan"):a.loan?()=>C():()=>{m((e=>({...e,loan:!1}))),w(1),x(1)};case"3":return 1===r?!l||i.rent||p||a.delist||h?!i.rent||o.delist||a.delist||h?!l||o.delist||a.delist||h?()=>C():()=>y(!1):()=>v("rent"):()=>g("rent"):a.rent?()=>C():()=>{m((e=>({...e,rent:!1}))),w(1),x(1)};case"4":return o.transfer?()=>{m((e=>({...e,transfer:!1})))}:()=>C();default:return()=>{}}},In=e=>{let{activeTab:t,loanStep:n,rentStep:r,isLoading:i,sealed:o}=e;switch(t){case"1":return i.sale||i.delist||i.acceptOffer;case"2":return 1===n?i.delist:!o.loan&&(i.delist||i.loan);case"3":return 1===r?i.delist:!o.rent&&(i.delist||i.rent);case"4":return i.transfer;default:return!1}},Rn={activeTab:"1",blendedLTV:null,childAccounts:void 0,closeBtnProps:{onClick:()=>{},text:""},collectionDisplayName:null,collectionImage:null,confirmBtnProps:{onClick:()=>{},text:""},createTransactionNotification:()=>{},error:{loan:!1,rent:!1,sale:!1,transfer:!1},existingPurchaseOrder:void 0,hasChildAccounts:!1,hasNftReceiver:new Xt,hasProvider:!1,isCatalog:!1,isChildAccountAsset:!1,isDapper:!1,isDelist:{loan:!1,rent:!1,sale:!1,transfer:!1},isFormError:{loan:!1,rent:!1,sale:!1,transfer:!1},isLoading:{loan:!1,rent:!1,sale:!1,transfer:!1},isLocked:!1,isMainnet:!1,isUpdateListing:!1,listingType:"storefront",loanFormValues:{amountToBorrow:0,amountToRepay:0,listingDuration:0,loanDuration:0},loanStep:1,mainAccount:void 0,mixPanelFn:()=>{},nftOwnerAccountSummary:void 0,onCloseModal:()=>{},onTabChange:e=>{},orderFromChildAccount:!1,privateRentInvalidAddress:!1,rentStep:1,royaltyRate:0,saleFees:void 0,sealed:{loan:!1,rent:!1,sale:!1,transfer:!1},selectedAccount:void 0,selectedOrder:{fundLoan:null,fundRental:null,purchase:null},setPrivateRentInvalidAddress:()=>{},setSelectedAccount:()=>{},setSelectedOrder:()=>{},setTransferInvalidAddress:()=>{},setTransferWalletSelected:()=>{},spotPrice:void 0,strapiUrl:"",submitDelistTransaction:()=>{},submitTransaction:()=>{},transactionID:null,transferInvalidAddress:!1,transferReceiver:"",transferWalletSelected:"",updateSelectedOrder:()=>{},valuationData:{percentage:null,source:"",usdValue:0}},On={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK,jn=(0,i.createContext)(Rn),Mn=e=>{var t,n,r,o,s;let{accountSummaries:l,addressesWithCollectionPublic:c,children:u,createTransactionNotification:d,collectionDisplayName:p,initialListingType:h,hasProvider:f,mainAccount:m,collectionImage:g,nftProviderPathIdentifier:v,openSearchFlowNFT:y,flowNft:b,nftOrders:w,singleAction:x,singleOrder:C,selectedOffer:A,onClose:E,mixPanelFn:_,resetForm:S,spotPrice:k,strapiUrl:P,values:D,valuation:F,isLoadingValuation:N,flowty:I}=e;const[R,O]=(0,i.useState)("loan"===h||"delistLoan"===x?"2":"rent"===h||"delistRental"===x?"3":"transfer"===h?"4":"1"),[j,M]=(0,i.useState)(1),[L,B]=(0,i.useState)(1),[U,V]=(0,i.useState)(m||Object.values(l||{})[0]),[H,z]=(0,i.useState)(null),[W,q]=(0,i.useState)({loan:!1,rent:!1,sale:!1,transfer:!1}),[G,Y]=(0,i.useState)({loan:!1,rent:!1,sale:!1,transfer:!1}),[K,Q]=(0,i.useState)({loan:!1,rent:!1,sale:!1,transfer:!1}),[X,Z]=(0,i.useState)({loan:!1,rent:!1,sale:!1,transfer:!1}),[J,$]=(0,i.useState)({loan:"delistLoan"===x,rent:"delistRental"===x,sale:"delistSale"===x,transfer:!1}),[ee,te]=(0,i.useState)("loan"===h||"rent"===h),[ne,re]=(0,i.useState)(""),[ie,oe]=(0,i.useState)({fundLoan:"delistLoan"===x?C:(null===w||void 0===w||null===(t=w.loan)||void 0===t?void 0:t[0])||null,fundRental:"delistRental"===x?C:(null===w||void 0===w||null===(n=w.rental)||void 0===n?void 0:n[0])||null,purchase:"delistSale"===x?C:(null===w||void 0===w||null===(r=w.storefront)||void 0===r?void 0:r.find((e=>e.listingType.includes("NFTStorefrontV2.ListingAvailable"))))||null}),[ae,se]=(0,i.useState)(Boolean(A)),le=(0,i.useMemo)((()=>{var e,t,n;return"1"===R?(null===(e=ie.purchase)||void 0===e?void 0:e.flowtyStorefrontAddress)!==(null===m||void 0===m?void 0:m.address):"2"===R?(null===(t=ie.fundLoan)||void 0===t?void 0:t.flowtyStorefrontAddress)!==(null===m||void 0===m?void 0:m.address):(null===(n=ie.fundRental)||void 0===n?void 0:n.flowtyStorefrontAddress)!==(null===m||void 0===m?void 0:m.address)}),[C,m,R,ie]),ce=null===U||void 0===U?void 0:U.isDapper,ue=null===l||void 0===l?void 0:l[null===y||void 0===y?void 0:y.owner],de=(null===ue||void 0===ue?void 0:ue.address)!==(null===m||void 0===m?void 0:m.address),pe=(0,i.useMemo)((()=>Object.values(l||{}).length>1),[l]),he=pe&&(null===m||void 0===m?void 0:m.isDapper),fe=pe&&(null===ue||void 0===ue?void 0:ue.isDapper),me=pe&&he&&!(null!==ue&&void 0!==ue&&ue.isDapper),ge=(0,i.useMemo)((()=>Object.values(l||{}).filter((e=>e.address!==(null===m||void 0===m?void 0:m.address)))),[l,m]),ve=(0,i.useMemo)((()=>Object.values(l||{}).filter((e=>e.address!==(null===y||void 0===y?void 0:y.owner)))),[l,y]),ye=(null===U||void 0===U?void 0:U.address)||(null===y||void 0===y?void 0:y.owner),be="mainnet"===I.config.network,we="A.".concat((be?"0x0b2a3299cc857e29":"0x877931736ee77cff").substring(2),".TopShot.NFT"),xe=e=>z(e),Ce=ce&&null!==y&&void 0!==y&&y.bestDapperOffer?null===y||void 0===y?void 0:y.bestDapperOffer:!ce||null!==y&&void 0!==y&&y.bestDapperOffer?!ce&&null!==y&&void 0!==y&&y.bestNonCustodialOffer?null===y||void 0===y?void 0:y.bestNonCustodialOffer:null===y||void 0===y?void 0:y.bestDapperOffer:null===y||void 0===y?void 0:y.bestNonCustodialOffer,Ae=async()=>{await(async e=>{let{listingType:t,openSearchFlowNFT:n,values:r,ftPrivatePathIdentifier:i="",nftProviderPathIdentifier:o,ftReceiverAddress:a,txAvailableCallback:s,setIsLoading:l,setError:c,setIsSealed:u,mixPanelFn:d,transferWalletSelected:p,flowty:h}=e;switch(t){case"storefront":try{var f,m;if(l((e=>({...e,sale:!0}))),c((e=>({...e,sale:!1}))),u((e=>({...e,sale:!1}))),yn)return s("mockTxId"),void setTimeout((()=>{l((e=>({...e,sale:!1}))),"ERROR_TYPE_MOCK"!==n.type?u((e=>({...e,sale:!0}))):c((e=>({...e,sale:!0})))}),3e3);const e=h.tokens.getTokenInfo(null===r||void 0===r?void 0:r.tokenType),t=await h.createStorefrontListing({buyer:null,expiry:Number(r.storefrontListingDuration),ftReceiverAddress:a,nftData:{contractAddress:null===n||void 0===n?void 0:n.contractAddress,contractName:null===n||void 0===n?void 0:n.contractName,id:null===n||void 0===n?void 0:n.id.toString(),nftOwner:null===n||void 0===n?void 0:n.owner,type:null===n||void 0===n?void 0:n.type},nftProviderPathIdentifier:o,salePrice:Number(null===r||void 0===r?void 0:r.saleListingValue),token:e,txAvailableCallback:s});if(4===(null===t||void 0===t?void 0:t.status))return u((e=>({...e,sale:!0}))),l((e=>({...e,sale:!1}))),void d("Successful storefront listing transaction",{expiry:Number(r.storefrontListingDuration),listingData:n,salePrice:Number(null===r||void 0===r?void 0:r.saleListingValue),token:null===r||void 0===r?void 0:r.tokenType});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==(f=t.toString())&&void 0!==f&&f.includes("Error")||null!==t&&void 0!==t&&null!==(m=t.toString())&&void 0!==m&&m.includes("Declined"))throw new Error(t)}catch(T){var g;c((e=>({...e,sale:!0}))),l((e=>({...e,sale:!1}))),null!==T&&void 0!==T&&null!==(g=T.toString())&&void 0!==g&&g.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),d("Error storefront listing transaction",{err:T,expiry:Number(r.storefrontListingDuration),listingData:n,salePrice:Number(null===r||void 0===r?void 0:r.saleListingValue),token:null===r||void 0===r?void 0:r.tokenType})}break;case"loan":try{var v,y;if(l((e=>({...e,loan:!0}))),c((e=>({...e,loan:!1}))),u((e=>({...e,loan:!1}))),yn)return s("mockTxId"),void setTimeout((()=>{l((e=>({...e,loan:!1}))),"ERROR_TYPE_MOCK"!==n.type?u((e=>({...e,loan:!0}))):c((e=>({...e,loan:!0})))}),3e3);const e=h.tokens.getTokenInfo(null===r||void 0===r?void 0:r.tokenType),t=await h.createLoanListing({ftPrivatePathIdentifier:i,ftReceiverAddress:a,loanAmount:+(null===r||void 0===r?void 0:r.amountToBorrow),loanAutoRepaymentEnabled:null===r||void 0===r?void 0:r.loanEnableAutoRepayment,loanDuration:+(null===r||void 0===r?void 0:r.loanDuration),loanExpiresAfterDays:Number(r.listingDuration),loanInterestRate:+(null===r||void 0===r?void 0:r.amountToRepay)/+(null===r||void 0===r?void 0:r.amountToBorrow)-1,nftData:{contractAddress:null===n||void 0===n?void 0:n.contractAddress,contractName:null===n||void 0===n?void 0:n.contractName,id:null===n||void 0===n?void 0:n.id.toString(),nftOwner:null===n||void 0===n?void 0:n.owner,type:null===n||void 0===n?void 0:n.type},nftProviderPathIdentifier:o,token:e,txAvailableCallback:s});if(4===(null===t||void 0===t?void 0:t.status))return u((e=>({...e,loan:!0}))),l((e=>({...e,loan:!1}))),void d("Successful loan listing transaction",{listingData:n,loanAmount:null===r||void 0===r?void 0:r.amountToBorrow,loanAutoRepaymentEnabled:null===r||void 0===r?void 0:r.loanEnableAutoRepayment,loanDuration:null===r||void 0===r?void 0:r.loanDuration,loanExpiresAfterDays:30,loanInterestRate:+(null===r||void 0===r?void 0:r.amountToRepay)/+(null===r||void 0===r?void 0:r.amountToBorrow)-1,token:null===r||void 0===r?void 0:r.tokenType});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==(v=t.toString())&&void 0!==v&&v.includes("Error")||null!==t&&void 0!==t&&null!==(y=t.toString())&&void 0!==y&&y.includes("Declined"))throw new Error(t)}catch(T){var b;c((e=>({...e,loan:!0}))),l((e=>({...e,loan:!1}))),null!==T&&void 0!==T&&null!==(b=T.toString())&&void 0!==b&&b.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),d("Error loan listing transaction",{err:T,listingData:n,loanAmount:null===r||void 0===r?void 0:r.amountToBorrow,loanAutoRepaymentEnabled:null===r||void 0===r?void 0:r.loanEnableAutoRepayment,loanDuration:null===r||void 0===r?void 0:r.loanDuration,loanExpiresAfterDays:30,loanInterestRate:+(null===r||void 0===r?void 0:r.amountToRepay)/+(null===r||void 0===r?void 0:r.amountToBorrow)-1,token:null===r||void 0===r?void 0:r.tokenType})}break;case"rental":try{var w,x;if(l((e=>({...e,rent:!0}))),c((e=>({...e,rent:!1}))),u((e=>({...e,rent:!1}))),yn)return s("mockTxId"),void setTimeout((()=>{l((e=>({...e,rent:!1}))),"ERROR_TYPE_MOCK"!==n.type?u((e=>({...e,rent:!0}))):c((e=>({...e,rent:!0})))}),3e3);const e=h.tokens.getTokenInfo(null===r||void 0===r?void 0:r.tokenType),t=await h.createRentListing({ftReceiverAddress:a,nftData:{contractAddress:null===n||void 0===n?void 0:n.contractAddress,contractName:null===n||void 0===n?void 0:n.contractName,id:null===n||void 0===n?void 0:n.id.toString(),nftOwner:null===n||void 0===n?void 0:n.owner,type:null===n||void 0===n?void 0:n.type},nftProviderPathIdentifier:o,rentalDeposit:+(null===r||void 0===r?void 0:r.refundableDeposit),rentalExpiresAfterDays:Number(r.rentalListingDuration),rentalFee:+(null===r||void 0===r?void 0:r.rentalFee),rentalTerm:+(null===r||void 0===r?void 0:r.rentalDuration),renterAddress:null===r||void 0===r?void 0:r.privateListingAddr,token:e,txAvailableCallback:s});if(4===(null===t||void 0===t?void 0:t.status))return u((e=>({...e,rent:!0}))),l((e=>({...e,rent:!1}))),void d("Successful rental listing transaction",{listingData:n,rentalDeposit:null===r||void 0===r?void 0:r.refundableDeposit,rentalFee:null===r||void 0===r?void 0:r.rentalFee,rentalTerm:null===r||void 0===r?void 0:r.rentalDuration,token:null===r||void 0===r?void 0:r.tokenType});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==(w=t.toString())&&void 0!==w&&w.includes("Error")||null!==t&&void 0!==t&&null!==(x=t.toString())&&void 0!==x&&x.includes("Declined"))throw new Error(t)}catch(T){var C;c((e=>({...e,rent:!0}))),l((e=>({...e,rent:!1}))),null!==T&&void 0!==T&&null!==(C=T.toString())&&void 0!==C&&C.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),d("Error rental listing transaction",{err:T,listingData:n,rentalDeposit:null===r||void 0===r?void 0:r.refundableDeposit,rentalFee:null===r||void 0===r?void 0:r.rentalFee,rentalTerm:null===r||void 0===r?void 0:r.rentalDuration,token:null===r||void 0===r?void 0:r.tokenType})}break;case"transfer":try{var A,E;if(l((e=>({...e,transfer:!0}))),c((e=>({...e,transfer:!1}))),u((e=>({...e,transfer:!1}))),yn)return s("mockTxId"),void setTimeout((()=>{l((e=>({...e,transfer:!1}))),"ERROR_TYPE_MOCK"!==n.type?u((e=>({...e,transfer:!0}))):c((e=>({...e,transfer:!0})))}),3e3);const e=await h.transferNft({nftData:{contractAddress:null===n||void 0===n?void 0:n.contractAddress,contractName:null===n||void 0===n?void 0:n.contractName,id:null===n||void 0===n?void 0:n.id.toString(),nftOwner:null===n||void 0===n?void 0:n.owner,type:null===n||void 0===n?void 0:n.type},nftProviderPathIdentifier:o,transferRecipient:""!==p?p:null===r||void 0===r?void 0:r.transferReceiver,txAvailableCallback:s});if(4===(null===e||void 0===e?void 0:e.status))return u((e=>({...e,transfer:!0}))),l((e=>({...e,transfer:!1}))),void d("Successful transfer listing transaction",{listingData:n,transferRecipient:null===r||void 0===r?void 0:r.transferReceiver});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(A=e.toString())&&void 0!==A&&A.includes("Error")||null!==e&&void 0!==e&&null!==(E=e.toString())&&void 0!==E&&E.includes("Declined"))throw new Error(e)}catch(T){var _;c((e=>({...e,transfer:!0}))),l((e=>({...e,transfer:!1}))),null!==T&&void 0!==T&&null!==(_=T.toString())&&void 0!==_&&_.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),d("Error transfer listing transaction",{err:T,listingData:n,transferRecipient:null===r||void 0===r?void 0:r.transferReceiver})}break;default:return}})({flowty:I,ftReceiverAddress:ye,listingType:Ke,mixPanelFn:_,nftProviderPathIdentifier:v,openSearchFlowNFT:y,setError:q,setIsLoading:Q,setIsSealed:Y,transferWalletSelected:ne,txAvailableCallback:xe,values:D})},Ee=async(e,t)=>{await(async e=>{let{listingType:t,order:n,listingResourceID:r,txAvailableCallback:i,setIsLoading:o,setError:a,setIsSealed:s,mixPanelFn:l,flowty:c}=e;if(o((e=>({...e,delist:!0}))),a((e=>({...e,delist:!1}))),s((e=>({...e,delist:!1}))),gn)return i("mockTxId"),void setTimeout((()=>{o((e=>({...e,delist:!1}))),"ERROR_TYPE_MOCK"!==r?s((e=>({...e,delist:!0}))):a((e=>({...e,transfer:!0})))}),3e3);switch(t){case"storefront":try{var u,d;const e=await c.removeStorefrontListing({listingResourceID:r,listingType:(null===n||void 0===n?void 0:n.type)||"",txAvailableCallback:i});if(4===(null===e||void 0===e?void 0:e.status))return s((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),void l("Successful delist storefront transaction",{listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(u=e.toString())&&void 0!==u&&u.includes("Error")||null!==e&&void 0!==e&&null!==(d=e.toString())&&void 0!==d&&d.includes("Declined"))throw new Error(e)}catch(b){var p;a((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),null!==b&&void 0!==b&&null!==(p=b.toString())&&void 0!==p&&p.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),l("Error delist storefront transaction",{err:b,listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName})}break;case"loan":try{var h,f;const e=await c.removeLoanListing({listingResourceID:r,txAvailableCallback:i});if(4===(null===e||void 0===e?void 0:e.status))return s((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),void l("Successful delist loan transaction",{listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(h=e.toString())&&void 0!==h&&h.includes("Error")||null!==e&&void 0!==e&&null!==(f=e.toString())&&void 0!==f&&f.includes("Declined"))throw new Error(e)}catch(b){var m;a((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),null!==b&&void 0!==b&&null!==(m=b.toString())&&void 0!==m&&m.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),l("Error delist loan transaction",{err:b,listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName})}break;case"rental":try{var g,v;const e=await c.removeRentListing({listingResourceID:r,txAvailableCallback:i});if(4===(null===e||void 0===e?void 0:e.status))return s((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),void l("Successful delist rental transaction",{listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(g=e.toString())&&void 0!==g&&g.includes("Error")||null!==e&&void 0!==e&&null!==(v=e.toString())&&void 0!==v&&v.includes("Declined"))throw new Error(e)}catch(b){var y;a((e=>({...e,delist:!0}))),o((e=>({...e,delist:!1}))),null!==b&&void 0!==b&&null!==(y=b.toString())&&void 0!==y&&y.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),l("Error delist rental transaction",{err:b,listingData:n,token:null===n||void 0===n?void 0:n.paymentTokenName})}break;default:return}})({flowty:I,listingResourceID:e,listingType:Ke,mixPanelFn:_,order:t,setError:q,setIsLoading:Q,setIsSealed:Y,txAvailableCallback:xe})},_e=async()=>{var e,t,n;await(async e=>{let{txAvailableCallback:t,setIsLoading:n,setError:r,setIsSealed:i,openSearchFlowNFT:o,offerToken:a,mixPanelFn:s,nftProviderPathIdentifier:l,ftReceiverAddress:c,nftStoragePath:u,offerResourceID:d,offerStorefrontAddress:p,flowty:h}=e;if(n((e=>({...e,acceptOffer:!0}))),r((e=>({...e,acceptOffer:!1}))),i((e=>({...e,acceptOffer:!1}))),mn)return t("mockTxId"),void setTimeout((()=>{n((e=>({...e,acceptOffer:!1}))),"ERROR_TYPE_MOCK"!==o.type?i((e=>({...e,acceptOffer:!0}))):r((e=>({...e,acceptOffer:!0})))}),3e3);try{var f,m;const e=h.tokens.getTokenInfo(a),r=await h.acceptOffer({ftReceiverAddress:c,nftData:{contractAddress:null===o||void 0===o?void 0:o.contractAddress,contractName:null===o||void 0===o?void 0:o.contractName,id:null===o||void 0===o?void 0:o.id.toString(),nftOwner:null===o||void 0===o?void 0:o.owner,type:null===o||void 0===o?void 0:o.type},nftProviderPathIdentifier:l,nftStoragePath:u,offerResourceID:d,offerStorefrontAddress:p,token:e,txAvailableCallback:t});if(4===(null===r||void 0===r?void 0:r.status))return i((e=>({...e,acceptOffer:!0}))),n((e=>({...e,acceptOffer:!1}))),void s("Storefront offer accepted successful transaction",{listingData:o,offer:d});if(4!==(null===r||void 0===r?void 0:r.status)&&null!==r&&void 0!==r&&null!==(f=r.toString())&&void 0!==f&&f.includes("Error")||null!==r&&void 0!==r&&null!==(m=r.toString())&&void 0!==m&&m.includes("Declined"))throw new Error(r)}catch(v){var g;r((e=>({...e,acceptOffer:!0}))),n((e=>({...e,acceptOffer:!1}))),null!==v&&void 0!==v&&null!==(g=v.toString())&&void 0!==g&&g.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),s("Storefront offer accepted failed transaction",{err:v,listingData:o,offer:d})}})({flowty:I,ftReceiverAddress:ye,mixPanelFn:_,nftProviderPathIdentifier:v,nftStoragePath:(null===b||void 0===b||null===(e=b.nftView)||void 0===e||null===(t=e.collectionData)||void 0===t||null===(n=t.storagePath)||void 0===n?void 0:n.identifier)||"",offerResourceID:A?(null===A||void 0===A?void 0:A.offerResourceID)||"":(null===Ce||void 0===Ce?void 0:Ce.offerResourceID)||"",offerStorefrontAddress:A?(null===A||void 0===A?void 0:A.storefrontAddress)||"":(null===Ce||void 0===Ce?void 0:Ce.storefrontAddress)||"",offerToken:A?(null===A||void 0===A?void 0:A.paymentTokenName)||T.SupportedTokens.FLOW:(null===Ce||void 0===Ce?void 0:Ce.paymentTokenName)||T.SupportedTokens.FLOW,openSearchFlowNFT:y,setError:q,setIsLoading:Q,setIsSealed:Y,txAvailableCallback:xe})},Te=e=>{$((t=>({...t,[e]:!0})))},Se=e=>{$((t=>({...t,[e]:!1})))},ke=()=>{K.sale||K.rent||K.loan||K.transfer||(q({loan:!1,rent:!1,sale:!1,transfer:!1}),Y({loan:!1,rent:!1,sale:!1,transfer:!1})),Z({loan:!1,rent:!1,sale:!1,transfer:!1}),$({loan:!1,rent:!1,sale:!1,transfer:!1}),M(1),B(1),S(),E()},Pe=()=>{let e=Ke;"storefront"===Ke&&(e="sale"),"rental"===Ke&&(e="rent"),Z((t=>({...t,[e]:!0})))},De=()=>{Z((e=>({...e,loan:!1}))),M(2)},Fe=()=>{Z((e=>({...e,rent:!1}))),B(2)},Ne=(0,i.useMemo)((()=>{const e=(0,T.nftTypeAndIdToLocationData)(y.type,y.id),t=window.location.origin;return"".concat(t,"/asset/").concat(e.contract.address,"/").concat(e.contract.name,"/").concat(e.resourceName,"/").concat(e.nftID)}),[y]),Ie=()=>{window.open(Ne,"_blank")},Re=(0,i.useMemo)((()=>{var e;if(null===w||void 0===w||null===(e=w.storefront)||void 0===e||!e.length)return null;{const e=null===w||void 0===w?void 0:w.storefront.find((e=>e.listingType.includes("NFTStorefrontV2.ListingAvailable")));if(e)return null===w||void 0===w?void 0:w.storefront}}),[w]),Oe=(0,i.useMemo)((()=>{var e;return null!==w&&void 0!==w&&null!==(e=w.loan)&&void 0!==e&&e.length?null===w||void 0===w?void 0:w.loan:null}),[w]),je=(0,i.useMemo)((()=>{var e;return null!==w&&void 0!==w&&null!==(e=w.rental)&&void 0!==e&&e.length?null===w||void 0===w?void 0:w.rental:null}),[w]),[Me,Le]=(0,i.useState)(!1),[Be,Ue]=(0,i.useState)(!1),Ve=null!==y&&void 0!==y&&null!==(o=y.type)&&void 0!==o&&o.endsWith(".NFT")?null===y||void 0===y?void 0:y.type:"".concat(null===y||void 0===y?void 0:y.type,".NFT");let He=!1;Ve===we&&(He=(0,T.checkIsLocked)(y));const ze=(0,i.useMemo)((()=>Boolean(null===b||void 0===b?void 0:b.isNFTCatalog)),[b]),We=(0,Gt.zy)(),qe=(0,i.useMemo)((()=>We.pathname.includes("/asset/")),[We.pathname]),Ge=(0,i.useMemo)((()=>({disabled:Pn({activeTab:R,existingPurchaseOrder:Re,isAcceptOffer:ae,isCatalog:ze,isDapper:ce,isDelist:J,isLoading:K,loanStep:j,openSearchFlowNFT:y,orderFromChildAccount:le,privateRentInvalidAddress:Me,rentStep:L,selectedOffer:A}),notDisplay:Dn({activeTab:R,hasProvider:f,isAssetDetailPage:qe,isDapper:ce,isDelist:J,isLocked:He,loanStep:j,rentStep:L,sealed:G}),onClick:kn({activeTab:R,changeLoanStep:De,changeRentStep:Fe,error:W,existingLoanOrder:Boolean(Oe),existingPurchaseOrder:Re,existingRentalOrder:Boolean(je),isAcceptOffer:ae,isDelist:J,isMainnet:be,isUpdateListing:ee,loanStep:j,redirectToAssetPage:Ie,rentStep:L,sealed:G,selectedOffer:A,selectedOrder:ie,setFormError:Pe,setIsUpdateListing:te,submitDelistTransaction:Ee,submitOfferTransaction:_e,submitTransaction:Ae,transferWalletSelected:ne,values:D}),text:Sn({activeTab:R,error:W,existingLoanOrder:Boolean(Oe),existingPurchaseOrder:Re,existingRentalOrder:Boolean(je),isAcceptOffer:ae,isDelist:J,isLoading:K,isSelectedOffer:Boolean(A),isUpdateListing:ee,loanStep:j,rentStep:L,sealed:G})})),[R,j,L,D,K,G,W,ee,Re,J,ae,A,Me,Be,He,ze,ne,U]),Ye=(0,i.useMemo)((()=>({bgColor:"white",notDisplay:In({activeTab:R,isLoading:K,loanStep:j,rentStep:L,sealed:G}),onClick:Nn({activeTab:R,cancelIsDelist:Se,error:W,existingLoanOrder:Boolean(Oe),existingPurchaseOrder:Re,existingRentalOrder:Boolean(je),hasProvider:f,isAcceptOffer:ae,isDelist:J,isSingleOrder:Boolean(C),isUpdateListing:ee,loanStep:j,onCloseModal:ke,rentStep:L,sealed:G,selectedOffer:A,setError:q,setIsAcceptOffer:se,setIsUpdateListing:te,setLoanStep:M,setRentStep:B,updateIsDelist:Te}),text:Fn({activeTab:R,error:W,existingLoanOrder:Boolean(Oe),existingPurchaseOrder:Re,existingRentalOrder:Boolean(je),hasProvider:f,isAcceptOffer:ae,isDapper:ce,isDelist:J,isLocked:He,isSelectedOffer:Boolean(A),isSingleOrder:Boolean(C),isUpdateListing:ee,loanStep:j,rentStep:L,sealed:G})})),[R,j,L,G,K,G,W,ee,Re,J,ae,He,A]),Ke=(0,i.useMemo)((()=>Boolean(A)||ae?"acceptOffer":"1"===R?"storefront":"2"===R?"loan":"3"===R?"rental":"transfer"),[R,ae,A]);let{fees:Qe,isLoading:Xe}=(0,qt.useGetFees)({flowty:I,nft:b||null,price:"storefront"===Ke?+(null===D||void 0===D?void 0:D.saleListingValue):"loan"===Ke?+(null===D||void 0===D?void 0:D.amountToBorrow):+(null===D||void 0===D?void 0:D.rentalFee),token:null===D||void 0===D?void 0:D.tokenType}),{royaltyRate:Ze,isLoading:Je}=(0,qt.useGetCollectionRoyalty)({flowty:I,mixPanelFn:_,nft:b||null});On&&(Je=!1,Xe=!1,Qe={dapper:.01*Number(null===D||void 0===D?void 0:D.saleListingValue),flowty:.02*Number(null===D||void 0===D?void 0:D.saleListingValue),royalties:.06*Number(null===D||void 0===D?void 0:D.saleListingValue),seller:Number(null===D||void 0===D?void 0:D.saleListingValue)-.09*Number(null===D||void 0===D?void 0:D.saleListingValue)},Ze=.06);const $e=+(null===D||void 0===D?void 0:D.amountToRepay)-+(null===D||void 0===D?void 0:D.amountToBorrow),et=$e>0?T.FLOWTY_INTEREST_FEE*$e:0,tt=(Ze||0)*+(null===D||void 0===D?void 0:D.amountToBorrow),nt=+(null===D||void 0===D?void 0:D.amountToBorrow)+(tt+et),rt=(0,i.useMemo)((()=>{var e,t,n;return Boolean(C)?{...C,listingKind:"delistLoan"===x?"loan":"delistRental"===x?"rental":"storefront"}:Boolean(A)?{...A,listingKind:"acceptOffer",purchaseOrder:(null===(e=y.orders)||void 0===e?void 0:e.find((e=>"storefront"===(null===e||void 0===e?void 0:e.listingKind))))||void 0}:!ee&&Boolean(null===w||void 0===w||null===(t=w[Ke])||void 0===t?void 0:t.length)?null===ie||void 0===ie?void 0:ie["loan"===Ke?"fundLoan":"rental"===Ke?"fundRental":"purchase"]:((e,t,n,r)=>{switch(e){case"loan":return{derivations:{calculatedValues:{borrowerRate:Number(null===t||void 0===t?void 0:t.amountToRepay)/Number(null===t||void 0===t?void 0:t.amountToBorrow)-1,marketplaceAmount:n,periodicInterest:(Number(null===t||void 0===t?void 0:t.amountToRepay)+r)/n-1,repayment:Number(null===t||void 0===t?void 0:t.amountToRepay)}},listingDuration:null===t||void 0===t?void 0:t.listingDuration,listingKind:"loan",paymentTokenName:null===t||void 0===t?void 0:t.tokenType,term:null===t||void 0===t?void 0:t.loanDuration,valuations:{aggregate:{loanToValueRatio:""}}};case"rental":return{amount:null===t||void 0===t?void 0:t.rentalFee,deposit:null===t||void 0===t?void 0:t.refundableDeposit,listingKind:"rental",paymentTokenName:null===t||void 0===t?void 0:t.tokenType,rentalListingDuration:null===t||void 0===t?void 0:t.rentalListingDuration,term:null===t||void 0===t?void 0:t.rentalDuration};default:return{listingKind:"storefront",paymentTokenName:null===t||void 0===t?void 0:t.tokenType,salePrice:null===t||void 0===t?void 0:t.saleListingValue,storefrontListingDuration:null===t||void 0===t?void 0:t.storefrontListingDuration}}})(Ke,D,nt,(null===(n=Qe)||void 0===n?void 0:n.royalties)||0)}),[D,Ke,C,A,w,ie,x,ee,nt,Qe,y]),it=(0,vn.R9)({salePrice:+(null===D||void 0===D?void 0:D.saleListingValue),spotPrice:(null===k||void 0===k?void 0:k.value)||0,token:null===D||void 0===D?void 0:D.tokenType,valuation:(null===F||void 0===F?void 0:F.usdValue)||0}),ot={percentage:null!==F&&void 0!==F&&F.usdValue?it:null,source:(null===F||void 0===F?void 0:F.source)||"",usdValue:(null===F||void 0===F?void 0:F.usdValue)||0},at=(0,i.useMemo)((()=>"loan"===Ke&&null!==F&&void 0!==F&&F.usdValue&&(null===F||void 0===F?void 0:F.usdValue)>0?nt/Number(null===F||void 0===F?void 0:F.usdValue)*100:null),[D,F]),st=(0,i.useMemo)((()=>({amountToBorrow:+(null===D||void 0===D?void 0:D.amountToBorrow),amountToRepay:+(null===D||void 0===D?void 0:D.amountToRepay),listingDuration:null===D||void 0===D?void 0:D.listingDuration,loanDuration:null===D||void 0===D?void 0:D.loanDuration})),[D]),lt=null===D||void 0===D?void 0:D.transferReceiver;(0,i.useEffect)((()=>{var e,t,n,r,i,o,a,s,l,c,u,p,h,f,m,g;if(H&&d){if(!lt&&!A)switch(Ke){case"storefront":return void d({amount:+rt.salePrice,collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(e=null===y||void 0===y||null===(t=y.card)||void 0===t||null===(n=t.images)||void 0===n?void 0:n[0].url)&&void 0!==e?e:"",listingType:J.sale?"delistSale":Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(r=null===y||void 0===y||null===(i=y.card)||void 0===i?void 0:i.title)&&void 0!==r?r:"",token:rt.paymentTokenName,transactionID:H,type:T.NotificationType.Transaction});case"rental":return void d({amount:+rt.amount,collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(o=null===y||void 0===y||null===(a=y.card)||void 0===a||null===(s=a.images)||void 0===s?void 0:s[0].url)&&void 0!==o?o:"",listingType:J.rent?"delistRental":Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(l=null===y||void 0===y||null===(c=y.card)||void 0===c?void 0:c.title)&&void 0!==l?l:"",token:rt.paymentTokenName,transactionID:H,type:T.NotificationType.Transaction});case"loan":return void d({amount:null===(u=rt.derivations)||void 0===u?void 0:u.calculatedValues.marketplaceAmount,collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(p=null===y||void 0===y||null===(h=y.card)||void 0===h||null===(f=h.images)||void 0===f?void 0:f[0].url)&&void 0!==p?p:"",listingType:J.loan?"delistLoan":Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(m=null===y||void 0===y||null===(g=y.card)||void 0===g?void 0:g.title)&&void 0!==m?m:"",token:rt.paymentTokenName,transactionID:H,type:T.NotificationType.Transaction})}var v,b,w,x,C,E,_,S,k,P,D,F,N,I,R;if(lt)return void d({collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(v=null===y||void 0===y||null===(b=y.card)||void 0===b||null===(w=b.images)||void 0===w?void 0:w[0].url)&&void 0!==v?v:"",listingType:Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(x=null===y||void 0===y||null===(C=y.card)||void 0===C?void 0:C.title)&&void 0!==x?x:"",transactionID:H,transferAddress:lt,type:T.NotificationType.Transaction});if(A)return void d({amount:null===A||void 0===A?void 0:A.amount,collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(E=null===y||void 0===y||null===(_=y.card)||void 0===_||null===(S=_.images)||void 0===S?void 0:S[0].url)&&void 0!==E?E:"",listingType:Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(k=null===y||void 0===y||null===(P=y.card)||void 0===P?void 0:P.title)&&void 0!==k?k:"",token:null===A||void 0===A?void 0:A.paymentTokenName,transactionID:H,type:T.NotificationType.Transaction});if(Ce)return void d({amount:null===Ce||void 0===Ce?void 0:Ce.amount,collectionAddress:y.contractAddress,collectionName:y.contractName,imageUrl:null!==(D=null===y||void 0===y||null===(F=y.card)||void 0===F||null===(N=F.images)||void 0===N?void 0:N[0].url)&&void 0!==D?D:"",listingType:Ke,nftId:y.id,nftType:y.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(I=null===y||void 0===y||null===(R=y.card)||void 0===R?void 0:R.title)&&void 0!==I?I:"",token:null===Ce||void 0===Ce?void 0:Ce.paymentTokenName,transactionID:H,type:T.NotificationType.Transaction})}}),[H,lt,y,A,Ce,Ke,rt,d]);const ct=(0,i.useMemo)((()=>new $t(c||[])),[c]);return(0,a.jsx)(jn.Provider,{value:{acceptOffer:()=>{se(!0)},activeTab:R,bestOffer:Ce,blendedLTV:at,cancelAcceptOffer:()=>{se(!1)},childAccounts:ge,closeBtnProps:Ye,collectionDisplayName:p,collectionImage:g,confirmBtnProps:Ge,createTransactionNotification:d,error:W,existingLoanOrder:Oe,existingPurchaseOrder:Re,existingRentalOrder:je,flowNft:b,hasChildAccounts:pe,hasNftReceiver:ct,hasOffer:(null===y||void 0===y||null===(s=y.offers)||void 0===s?void 0:s.length)>0,hasProvider:f,isAcceptOffer:ae,isCatalog:ze,isChildAccountAsset:de,isDapper:ce,isDelist:J,isFormError:X,isLoading:K,isLoadingCollectionRoyalty:Je,isLoadingGetFees:Xe,isLoadingValuation:N,isLocked:He,isMainnet:be,isNftOnDapperChild:fe,isNftOnNonDapperChild:me,isParentDapper:he,isUpdateListing:ee,listingType:Ke,loanFormValues:st,loanStep:j,mainAccount:m,mixPanelFn:_,nftOwnerAccountSummary:ue,onCloseModal:ke,onTabChange:e=>{O(e),te(!1)},openSearchFlowNFT:y,orderData:rt,orderFromChildAccount:le,privateRentInvalidAddress:Me,rentStep:L,royaltyRate:Ze,saleFees:Qe,sealed:G,selectedAccount:U,selectedOffer:A,selectedOrder:ie,setPrivateRentInvalidAddress:Le,setSelectedAccount:V,setSelectedOrder:oe,setTransferInvalidAddress:Ue,setTransferWalletSelected:re,singleAction:x,singleOrder:C,spotPrice:k,strapiUrl:P,submitDelistTransaction:Ee,submitTransaction:Ae,transactionID:H,transferInvalidAddress:Be,transferReceiver:lt,transferSuggestedAccounts:ve,transferWalletSelected:ne,updateSelectedOrder:e=>{oe("1"===R?t=>({...t,purchase:e}):"2"===R?t=>({...t,fundLoan:e}):t=>({...t,fundRental:e}))},valuationData:ot},children:u})},Ln=()=>(0,i.useContext)(jn);var Bn,Un,Vn;function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(null,arguments)}function zn(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Hn({width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Bn||(Bn=i.createElement("g",{clipPath:"url(#clip0_970_17310)"},i.createElement("path",{d:"M5.61791 12.5462L4.15381 10.0103M4.15381 10.0103L6.68971 8.54615M4.15381 10.0103L9.15381 11.35M15.7615 6.68975L14.2974 4.15385M14.2974 4.15385L11.7615 5.61795M14.2974 4.15385L12.9577 9.15385M8.54611 17.6179L10.0102 20.1538M10.0102 20.1538L12.5461 18.6897M10.0102 20.1538L11.35 15.1538M20.1538 14.2974L15.1538 12.9577M20.1538 14.2974L18.6897 11.7615M20.1538 14.2974L17.6179 15.7615",stroke:"#04E5A3",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),Un||(Un=i.createElement("path",{d:"M19.7192 20.0983C23.9879 15.8296 23.9879 8.90882 19.7192 4.64019C15.4506 0.371564 8.52979 0.371564 4.26116 4.64019M19.7192 20.0983C15.4506 24.3669 8.52979 24.3669 4.26116 20.0983C-0.0074647 15.8296 -0.0074647 8.90882 4.26116 4.64019M19.7192 20.0983L4.26116 4.64019",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vn||(Vn=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_970_17310"},i.createElement("rect",{width:17.5692,height:17.5692,fill:"white",transform:"translate(0 8.78467) rotate(-30)"})))))}const Wn=i.forwardRef(zn),qn=(n.p,()=>(0,a.jsx)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-6 font-montserrat",children:(0,a.jsxs)("div",{className:"p-4 bg-[#FFFFFF] bg-opacity-10 w-full h-full rounded-md flex",children:[(0,a.jsx)("div",{className:"h-full px-2",children:(0,a.jsx)(Wn,{className:"h-[24px] w-[24px]"})}),(0,a.jsxs)("div",{className:"w-full px-3",children:[(0,a.jsxs)("div",{className:"leading-4",children:[(0,a.jsxs)("span",{className:"text-white text-xs font-normal",children:["Icon indicates that an NFT is"," "]}),(0,a.jsx)("span",{className:"text-white text-xs font-bold",children:"view-only"}),(0,a.jsxs)("span",{className:"text-white text-xs font-normal",children:[", meaning that a user cannot perform any Flowty actions on the NFT. An NFT may be view-only for several reasons, including:",(0,a.jsx)("br",{})]})]}),(0,a.jsxs)("ul",{className:"text-white text-xs font-normal list-disc pl-4",children:[(0,a.jsx)("li",{children:"NFTs in Dapper Wallets have restrictions."}),(0,a.jsx)("li",{className:"",children:"The NFT does not have a provider set up."}),(0,a.jsxs)("li",{className:"",children:[" ","The NFT is stored in a different wallet to the one that a user is currently connected with."]})]})]})]})})),Gn=e=>{let{href:t,text:n,size:r="medium"}=e;return(0,a.jsx)("a",{href:t,target:"_blank",className:(0,o.cn)("text-primary font-montserrat font-[600] underline",{"text-[0.75rem]":"small"===r,"text-[1rem]":"medium"===r}),rel:"noreferrer",children:n})},Yn=e=>{let{transactionID:t,isMainnet:n}=e;const r=(0,i.useMemo)((()=>{const e=n?T.FLOW_SCAN_TX_MAINNET_URL:T.FLOW_SCAN_TX_TESTNET_URL;return"".concat(e,"/").concat(t)}),[t]);return t?(0,a.jsxs)("div",{className:"text-white text-center text-[14px] min-h-[21px] flex items-center justify-center gap-1",children:["Follow your transaction on"," ",(0,a.jsx)(Gn,{href:r,text:"Flowscan"})]}):null},Kn=e=>{let{transactionID:t,isMainnet:n}=e;return(0,a.jsxs)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[8px]",children:[(0,a.jsx)("svg",{className:"w-[7.75rem] h-[7.75rem]",width:"124",height:"125",viewBox:"0 0 124 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 112.1C89.3932 112.1 111.6 89.8933 111.6 62.5C111.6 35.1067 89.3932 12.9 61.9999 12.9C34.6066 12.9 12.3999 35.1067 12.3999 62.5C12.3999 89.8933 34.6066 112.1 61.9999 112.1ZM53.984 45.716C51.5627 43.2947 47.6371 43.2947 45.2158 45.716C42.7946 48.1372 42.7946 52.0628 45.2158 54.4841L53.2318 62.5L45.2158 70.516C42.7946 72.9372 42.7946 76.8628 45.2158 79.2841C47.6371 81.7053 51.5627 81.7053 53.984 79.2841L61.9999 71.2681L70.0158 79.2841C72.4371 81.7053 76.3627 81.7053 78.784 79.2841C81.2052 76.8628 81.2052 72.9372 78.784 70.516L70.768 62.5L78.784 54.4841C81.2052 52.0628 81.2052 48.1372 78.784 45.716C76.3627 43.2947 72.4371 43.2947 70.0158 45.716L61.9999 53.7319L53.984 45.716Z",fill:"#FF6969"})}),(0,a.jsx)("p",{className:"text-white text-[16px] font-semibold text-center",children:"Transaction Failed"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] h-[100px]",children:[(0,a.jsxs)("div",{className:"text-white text-center text-[14px]",children:["Your transaction failed. Please try again. If you continue to have issues, please open a support in"," ",(0,a.jsx)(Gn,{text:"Discord",href:T.flowtyDiscordLink})]}),(0,a.jsx)(Yn,{transactionID:t,isMainnet:n})]})]})},Qn=n.p+"static/media/flowty-loading2.ae3fb70212438613c88e.gif",Xn=e=>{let{transactionID:t,isMainnet:n}=e;return(0,a.jsxs)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsx)("img",{className:"w-[7.75rem] md:h-[7.75rem]",src:Qn,alt:"Transaction Loading GIF"}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#F8F9FA]",children:"Transaction Processing..."}),(0,a.jsx)("div",{className:"h-[88px]",children:(0,a.jsx)(Yn,{transactionID:t,isMainnet:n})})]})},Zn=e=>{let{href:t}=e;return(0,a.jsx)("a",{className:"bg-sky-400 rounded-md px-6 py-2 hover:bg-sky-500 group",target:"_blank",rel:"noreferrer",href:t,children:(0,a.jsxs)("div",{className:"flex justify-center items-center text-white group-hover:opacity-70 px-1",children:[(0,a.jsx)("p",{className:"font-bold text-base mx-1",children:"Share"}),(0,a.jsx)("svg",{className:"footer-social-logos filter-white h-7 w-7 ",width:"34",height:"28",viewBox:"0 0 34 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M32.6363 1.25C31.2797 2.20693 29.7776 2.93882 28.188 3.4175C27.3348 2.43648 26.2009 1.74115 24.9396 1.42556C23.6784 1.10998 22.3506 1.18936 21.1359 1.65298C19.9213 2.11659 18.8783 2.94207 18.148 4.01777C17.4178 5.09346 17.0356 6.36748 17.053 7.6675V9.08417C14.5634 9.14872 12.0965 8.59657 9.87191 7.47688C7.64737 6.3572 5.73427 4.70474 4.30298 2.66667C4.30298 2.66667 -1.36368 15.4167 11.3863 21.0833C8.46873 23.0638 4.99312 24.0568 1.46965 23.9167C14.2196 31 29.803 23.9167 29.803 7.625C29.8017 7.23039 29.7637 6.83676 29.6896 6.44917C31.1355 5.02328 32.1558 3.22301 32.6363 1.25Z",fill:"white",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})},Jn=e=>{const t=null===e||void 0===e?void 0:e.num;if(null!==e&&void 0!==e&&e.additionalDetails){return" "+(null===e||void 0===e?void 0:e.additionalDetails.map((e=>e.includes("#")?e.replace("#","%23"):e))).join(" ").trim()}if(!t)return;const n="%23".concat(t);return null!==e&&void 0!==e&&e.title.includes("#")?"":" "+n},$n=(e,t)=>{var n;const r=null===t||void 0===t?void 0:t.includes(T.SupportedTokens.DUC),i=e?r?"$".concat(e.toLocaleString()):e.toLocaleString():void 0,o=r?"":"".concat(null!==(n=null===T.TOKEN_TO_READABLE_TOKEN||void 0===T.TOKEN_TO_READABLE_TOKEN?void 0:T.TOKEN_TO_READABLE_TOKEN[t])&&void 0!==n?n:""," ");return"".concat([i,o].filter(Boolean).join(" "))},er=e=>{if("number"!==typeof e||e<=0)return"0 Days";if(e/60<60)return"".concat((e/60).toFixed(2)," Mins");const t=e/86400;return"".concat(t," ").concat(t>1?"Days":"Day")};const tr=e=>{let{isMainnet:t,listingType:n,completedOrder:r}=e;const i=function(e){var t;let{listingType:n,isMainnet:r,completedOrder:i}=e;const o=(0,T.nftTypeAndIdToLocationData)((null===i||void 0===i?void 0:i.nftType)||"",(null===i||void 0===i?void 0:i.nftID)||""),a=r?"flowty.io":"testnet.flowty.io",s=null===i||void 0===i?void 0:i.card,l="".concat(a,"/asset/").concat(o.contract.address,"/").concat(o.contract.name,"/").concat(o.resourceName,"/").concat(o.nftID," "),c=null!==s&&void 0!==s&&null!==(t=s.title)&&void 0!==t&&t.includes("#")?null===s||void 0===s?void 0:s.title.replace("#","%23"):null===s||void 0===s?void 0:s.title,u="".concat(c).concat(Jn(s));if("purchase"===n){const{salePrice:e,paymentTokenName:t}=i;return"https://twitter.com/intent/tweet?text=I%20just%20purchased%20".concat(u,"%20for%20").concat($n(e,t).trim(),"%20on%20@flowty_io!%0A%0ACheck%20out%20my%20new%20NFT%20here:%20https://").concat(l)}return""}({completedOrder:r,isMainnet:t,listingType:n});return(0,a.jsx)(Zn,{href:i})};function nr(e){var t,n;let{listingType:r,isMainnet:i,order:o,nft:a,values:s,isNewListing:l,collectionDisplayName:c}=e;const u=(0,T.nftTypeAndIdToLocationData)((null===a||void 0===a?void 0:a.type)||"",(null===a||void 0===a?void 0:a.id)||""),d=i?"flowty.io":"testnet.flowty.io",p=null===a||void 0===a?void 0:a.card,h="".concat(d,"/asset/").concat(u.contract.address,"/").concat(u.contract.name,"/").concat(u.resourceName,"/").concat(u.nftID," "),f=null!==p&&void 0!==p&&null!==(t=p.title)&&void 0!==t&&t.includes("#")?null===p||void 0===p?void 0:p.title.replace("#","%23"):null===p||void 0===p?void 0:p.title,m=a?"%0A%0A\ud83d\uddbc\ufe0f ".concat("loan"===r?"Collateral":"NFT",": ").concat(f).concat(Jn(p),"%0A\ud83c\udf0e Collection: ").concat(null!==c&&void 0!==c?c:null===a||void 0===a||null===(n=a.card)||void 0===n?void 0:n.collectionName):"";switch(r){case"sale":case"storefront":{let e,t;if(l){const n=s;e=+n.salePrice,t=n.paymentTokenName}else{const n=o;e=null===n||void 0===n?void 0:n.amount,t=null===n||void 0===n?void 0:n.paymentTokenName}const n="".concat(m,"%0A\ud83d\udcb5 Sale Price: ").concat($n(e,t),"%0A");return"https://twitter.com/intent/tweet?text=Check%20out%20my%20new%20listing%20on%20@flowty_io%20".concat(n,"https://").concat(h)}case"rent":{let e,t,n,r,i;if(l){const o=s;e=+o.amount,t=+o.deposit,n=o.paymentTokenName,r=+o.term,i=er(60*r*60*24)}else{const a=o;e=a.amount,t=a.deposit,n=a.paymentTokenName,r=a.term,i=er(r)}const a="".concat(m,"%0A\ud83d\udcb5 Rental Fee: ").concat($n(e,n),"%0A\ud83d\udcb0 Refundable Deposit: ").concat($n(t,n),"%0A\u23f2\ufe0f Duration: ").concat(i,"%0A");return"https://twitter.com/intent/tweet?text=Check%20out%20my%20new%20rental%20listing%20on%20@flowty_io%20".concat(a,"https://").concat(h)}case"loan":{let e,t,n,r,i;if(l){if(!s)return"";const o=s;e=null===o||void 0===o?void 0:o.derivations.calculatedValues.marketplaceAmount,t=o.derivations.calculatedValues.repayment,n=o.paymentTokenName,r=+o.term,i=er(60*r*60*24)}else{var g,v,y,b,w,x;const a=o;e=null!==(g=null===(v=a.derivations)||void 0===v||null===(y=v.calculatedValues)||void 0===y?void 0:y.marketplaceAmount)&&void 0!==g?g:0,t=null!==(b=null===(w=a.derivations)||void 0===w||null===(x=w.calculatedValues)||void 0===x?void 0:x.totalRepayment)&&void 0!==b?b:0,n=(null===a||void 0===a?void 0:a.paymentTokenName)||T.SupportedTokens.FLOW,r=Number(a.term),i=er(r)}const a="".concat(m,"%0A\ud83d\udcb0 Loan: ").concat($n(e,n),"%0A\ud83d\udcb5 Repayment: ").concat($n(t,n),"%0A\u23f2\ufe0f Duration: ").concat(i,"%0A");return"https://twitter.com/intent/tweet?text=Check%20out%20my%20new%20loan%20listing%20on%20@flowty_io%20".concat(a,"https://").concat(h)}default:return""}}const rr=e=>{let{isMainnet:t,listingID:n,listingType:r,nft:i,values:o,collectionDisplayName:s}=e;if(!i)return null;const l=nr({collectionDisplayName:s,isMainnet:t,isNewListing:!0,listingType:r,nft:i,values:o});return null!==n?(0,a.jsx)(Zn,{href:l}):null},ir=e=>{let{listingType:t,order:n,collectionDisplayName:r,nft:i,isMainnet:o}=e;const s=nr({collectionDisplayName:r,isMainnet:o,listingType:t,nft:i,order:n});return(0,a.jsx)(Zn,{href:s})};const or=e=>{let{isMainnet:t,listingType:n,fundedOrder:r,nft:i}=e;if(!i)return null;const o=function(e){var t,n;let{listingType:r,isMainnet:i,fundedOrder:o,nft:a}=e;const s=(0,T.nftTypeAndIdToLocationData)((null===o||void 0===o?void 0:o.nftType)||"",null!==(t=null===o||void 0===o?void 0:o.nftID)&&void 0!==t?t:""),l=i?"flowty.io":"testnet.flowty.io",c=null===a||void 0===a?void 0:a.card,u="".concat(l,"/asset/").concat(s.contract.address,"/").concat(s.contract.name,"/").concat(s.resourceName,"/").concat(s.nftID," "),d=null!==c&&void 0!==c&&null!==(n=c.title)&&void 0!==n&&n.includes("#")?null===c||void 0===c?void 0:c.title.replace("#","%23"):null===c||void 0===c?void 0:c.title,p="".concat(d).concat(Jn(c));if("fundLoan"===r){const e=null===o||void 0===o?void 0:o.derivations.calculatedValues.marketplaceAmount,{paymentTokenName:t}=o;return"https://twitter.com/intent/tweet?text=I%20just%20funded%20a%20".concat($n(Number(e),t).trim(),"%20loan%20backed%20by%20").concat(p,"%20on%20@flowty_io!%0A%0A%20https://").concat(u)}return""}({fundedOrder:r,isMainnet:t,listingType:n,nft:i});return(0,a.jsx)(Zn,{href:o})},ar=e=>{let{type:t,isMainnet:n,transactionID:r,orderData:i,nft:o,isDelist:s,collectionDisplayName:l}=e;return(0,a.jsxs)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsx)("svg",{className:"w-[7.75rem] h-[7.75rem]",width:"124",height:"124",viewBox:"0 0 124 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 111.6C89.3932 111.6 111.6 89.3933 111.6 62C111.6 34.6067 89.3932 12.4 61.9999 12.4C34.6066 12.4 12.3999 34.6067 12.3999 62C12.3999 89.3933 34.6066 111.6 61.9999 111.6ZM84.984 53.9841C87.4052 51.5628 87.4052 47.6372 84.984 45.216C82.5627 42.7947 78.6371 42.7947 76.2158 45.216L55.7999 65.6319L47.784 57.616C45.3627 55.1947 41.4371 55.1947 39.0158 57.616C36.5946 60.0372 36.5946 63.9628 39.0158 66.3841L51.4158 78.7841C53.8371 81.2053 57.7627 81.2053 60.184 78.7841L84.984 53.9841Z",fill:"#04E5A3"})}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#F8F9FA]",children:"Transaction Successful!"}),(0,a.jsx)(Yn,{transactionID:r,isMainnet:n}),(0,a.jsx)("div",{className:"h-[70px] flex items-start",children:!s&&"transfer"!==t&&"cancelOffer"!==t&&"makeOffer"!==t&&"acceptOffer"!==t&&"lostAndFound"!==t&&"fundRental"!==t&&(0,a.jsx)(a.Fragment,{children:"sale"===t||"loan"===t||"rent"===t?(0,a.jsx)(rr,{listingType:t,nft:o,values:i,isMainnet:n,collectionDisplayName:l}):"fundLoan"===t?(0,a.jsx)(or,{listingType:t,isMainnet:n,fundedOrder:i,nft:o}):(0,a.jsx)(tr,{listingType:t,completedOrder:i,isMainnet:n})})})]})};var sr,lr=n(78336);function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(null,arguments)}function ur(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",cr({baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2000 2000",overflow:"visible",xmlSpace:"preserve",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,sr||(sr=i.createElement("g",null,i.createElement("path",{fill:"#04F48C",d:"M1000,8C452.1,8,8,452.1,8,1000s444.1,992,992,992s992-444.1,992-992S1547.9,8,1000,8z M1728.8,1433 c-5.6-1.6-10.8-4.3-16.2-6.5c-24.5-9.9-48.7-20.9-73.6-29.7c-123.3-43.5-251-55.6-380.3-46.3c-112.8,8.1-225.1,21.7-337.7,32.5 c-103.3,10-206.7,14.1-310-0.2c-30.8-4.2-61.3-10.4-92-15.7c-26.4-7.9-52.9-15.8-79.3-23.7c-16.9-7.2-33.7-15.1-50.9-21.6 c-60.1-22.6-92.5-66.6-99.6-129.3c-11.8-103.8-22.5-207.8-33.9-311.6C245,786.6,234.4,692.4,224.1,598c2.1-7.1,4.3-14.2,6.4-21.3 c18.8-18.4,38.8-13.5,59.7-3.7c62.7,29.6,128.4,50.1,196.4,62.7c88.9,16.4,178.8,20.4,268.6,13c114.2-9.4,228.2-22.6,342.3-33.4 c177.5-16.8,351.9-9.4,518.8,63.3c57.1,24.8,89.8,66.2,96.7,126.8c18.2,159.6,35.1,319.4,52.3,479.1c4.1,37.9,8.9,75.7,10.8,113.6 C1777.5,1427.6,1757.2,1441.4,1728.8,1433z"}),i.createElement("path",{fill:"#FFFFFF",d:"M1776.1,1398.1c-1.9-37.9-6.7-75.7-10.8-113.6c-17.2-159.7-34.1-319.5-52.3-479.1 c-6.9-60.6-39.6-102-96.7-126.8c-166.9-72.7-341.3-80.1-518.8-63.3c-114.1,10.8-228.1,24-342.3,33.4c-89.8,7.4-179.7,3.4-268.6-13 c-68-12.6-133.7-33.1-196.4-62.7c-20.9-9.8-40.9-14.7-59.7,3.7c-2.1,7.1-4.3,14.2-6.4,21.3c10.3,94.4,20.9,188.6,31.2,282.9 c11.4,103.8,22.1,207.8,33.9,311.6c7.1,62.7,39.5,106.7,99.6,129.3c17.2,6.5,34,14.4,50.9,21.6c26.4,7.9,52.9,15.8,79.3,23.7 c30.7,5.3,61.2,11.5,92,15.7c103.3,14.3,206.7,10.2,310,0.2c112.6-10.8,224.9-24.4,337.7-32.5c129.3-9.3,257,2.8,380.3,46.3 c24.9,8.8,49.1,19.8,73.6,29.7c5.4,2.2,10.6,4.9,16.2,6.5C1757.2,1441.4,1777.5,1427.6,1776.1,1398.1z M1000,1213.7L786.3,999.9 L1000,786.1l213.8,213.8L1000,1213.7z"}),i.createElement("rect",{x:848.9,y:848.8,transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -414.1326 1000.0044)",fill:"#04F48C",width:302.3,height:302.3}))))}const dr=i.forwardRef(ur);n.p;function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(null,arguments)}function hr(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",pr({xmlns:"http://www.w3.org/2000/svg",width:"1024px",height:"1024px",viewBox:"0 0 1024 1024",style:{shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd"},xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#43a451",d:"M 709.5,191.5 C 710.154,187.414 708.988,184.081 706,181.5C 704.438,177.986 703.605,174.319 703.5,170.5C 702.325,170.719 701.325,170.386 700.5,169.5C 699.811,167.556 699.311,165.556 699,163.5C 698.439,162.978 697.772,162.645 697,162.5C 692.518,163.709 688.351,165.375 684.5,167.5C 688.417,168.974 688.417,170.308 684.5,171.5C 682.032,170.957 679.532,170.624 677,170.5C 671.57,171.868 666.07,172.368 660.5,172C 659.773,170.601 659.273,169.101 659,167.5C 657.989,166.663 656.822,166.33 655.5,166.5C 655.16,168.991 654.16,171.158 652.5,173C 652.955,176.742 652.955,180.575 652.5,184.5C 653.5,184.5 654.5,184.5 655.5,184.5C 655.5,185.833 655.5,187.167 655.5,188.5C 654.167,188.5 652.833,188.5 651.5,188.5C 650.241,191.366 649.241,194.366 648.5,197.5C 649.302,200.449 649.636,203.449 649.5,206.5C 648.609,207.11 647.609,207.443 646.5,207.5C 644.167,207.5 641.833,207.5 639.5,207.5C 639.657,208.873 639.49,210.207 639,211.5C 637.562,208.722 637.562,206.056 639,203.5C 639.667,200.833 639.667,198.167 639,195.5C 637.92,197.996 636.586,200.33 635,202.5C 634.5,209.492 634.334,216.492 634.5,223.5C 633.351,223.209 632.684,222.376 632.5,221C 631.446,215.194 631.28,209.361 632,203.5C 633.336,199.369 634.836,195.369 636.5,191.5C 637.5,191.5 638.5,191.5 639.5,191.5C 639.351,190.448 639.517,189.448 640,188.5C 642.69,185.815 645.69,183.482 649,181.5C 648.595,177.879 648.595,174.213 649,170.5C 650.353,169.315 651.52,167.981 652.5,166.5C 654.765,165.353 657.098,165.186 659.5,166C 660.833,168.33 662.667,170.163 665,171.5C 673.815,168.673 682.315,165.173 690.5,161C 694.751,159.805 699.085,159.305 703.5,159.5C 703.335,162.85 703.502,166.183 704,169.5C 706.647,174.793 709.313,180.127 712,185.5C 712.495,187.473 712.662,189.473 712.5,191.5C 711.5,191.5 710.5,191.5 709.5,191.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c0e6c7",d:"M 687.5,197.5 C 684.34,199.063 681.174,200.729 678,202.5C 676.504,204.45 676.337,206.45 677.5,208.5C 686.296,209.14 694.962,209.807 703.5,210.5C 694.494,210.666 685.494,210.5 676.5,210C 675.484,208.323 674.484,206.657 673.5,205C 675.779,202.208 678.445,200.041 681.5,198.5C 683.5,198.167 685.5,197.833 687.5,197.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#36a445",d:"M 709.5,191.5 C 703.019,193.619 696.352,194.786 689.5,195C 688.244,195.417 687.577,196.25 687.5,197.5C 685.5,197.833 683.5,198.167 681.5,198.5C 674.486,199.005 671.32,202.672 672,209.5C 673.255,210.211 674.421,211.044 675.5,212C 682.17,212.389 688.836,212.223 695.5,211.5C 703.685,211.856 711.685,212.856 719.5,214.5C 724.828,215.996 729.828,218.329 734.5,221.5C 743.126,237.246 741.959,252.246 731,266.5C 730.506,268.134 730.34,269.801 730.5,271.5C 732.857,271.337 735.19,271.503 737.5,272C 738.275,277.676 736.608,282.676 732.5,287C 728.129,287.828 723.795,287.661 719.5,286.5C 718.408,284.404 716.741,283.071 714.5,282.5C 711.385,284.439 708.385,286.606 705.5,289C 703.323,290.202 700.989,290.702 698.5,290.5C 694.774,290.177 691.107,290.511 687.5,291.5C 688.433,295.429 688.766,299.429 688.5,303.5C 687.5,303.5 686.5,303.5 685.5,303.5C 681.208,300.543 677.208,297.21 673.5,293.5C 672.4,292.395 671.733,291.062 671.5,289.5C 674.245,289.627 676.245,288.46 677.5,286C 686.485,284.325 695.151,281.825 703.5,278.5C 703.5,277.167 703.5,275.833 703.5,274.5C 705.591,274.682 707.591,274.348 709.5,273.5C 709.88,271.979 710.046,270.313 710,268.5C 711.892,267.87 713.559,266.87 715,265.5C 716.255,261.959 716.422,258.459 715.5,255C 716.02,251.596 717.187,248.429 719,245.5C 719.5,237.507 719.666,229.507 719.5,221.5C 723.116,222.543 726.783,223.043 730.5,223C 728.167,221 725.833,219 723.5,217C 716.629,216.442 709.962,215.275 703.5,213.5C 703.5,214.5 703.5,215.5 703.5,216.5C 696.492,216.334 689.492,216.5 682.5,217C 677.883,219.988 672.883,221.322 667.5,221C 665.065,217.453 662.398,214.119 659.5,211C 661.829,207.51 662.829,203.677 662.5,199.5C 666.273,200.178 669.106,198.844 671,195.5C 671.333,195.833 671.667,196.167 672,196.5C 673.269,195.095 673.769,193.429 673.5,191.5C 678.578,189.195 683.912,187.362 689.5,186C 690.551,184.615 691.884,183.615 693.5,183C 694.444,180.281 694.777,177.448 694.5,174.5C 690.699,173.03 687.032,173.363 683.5,175.5C 681.823,177.76 679.657,179.427 677,180.5C 674.869,183.102 673.035,185.768 671.5,188.5C 672.552,188.351 673.552,188.517 674.5,189C 668.223,191.949 663.223,196.282 659.5,202C 655.617,202.454 652.284,203.954 649.5,206.5C 649.636,203.449 649.302,200.449 648.5,197.5C 649.241,194.366 650.241,191.366 651.5,188.5C 652.833,188.5 654.167,188.5 655.5,188.5C 655.5,187.167 655.5,185.833 655.5,184.5C 654.5,184.5 653.5,184.5 652.5,184.5C 652.955,180.575 652.955,176.742 652.5,173C 654.16,171.158 655.16,168.991 655.5,166.5C 656.822,166.33 657.989,166.663 659,167.5C 659.273,169.101 659.773,170.601 660.5,172C 666.07,172.368 671.57,171.868 677,170.5C 679.532,170.624 682.032,170.957 684.5,171.5C 688.417,170.308 688.417,168.974 684.5,167.5C 688.351,165.375 692.518,163.709 697,162.5C 697.772,162.645 698.439,162.978 699,163.5C 699.311,165.556 699.811,167.556 700.5,169.5C 701.325,170.386 702.325,170.719 703.5,170.5C 703.605,174.319 704.438,177.986 706,181.5C 708.988,184.081 710.154,187.414 709.5,191.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#35a444",d:"M 646.5,207.5 C 644.712,215.057 647.712,219.391 655.5,220.5C 657.479,225.983 660.813,230.483 665.5,234C 677.222,234.366 688.888,234.033 700.5,233C 705.435,238.31 708.769,244.477 710.5,251.5C 710.16,255.558 709.493,259.558 708.5,263.5C 707.305,265.297 705.638,266.297 703.5,266.5C 703.439,268.592 702.439,270.092 700.5,271C 693.818,270.606 687.818,272.272 682.5,276C 679.635,276.837 676.802,277.67 674,278.5C 672.414,277.624 670.914,276.624 669.5,275.5C 666.894,278.649 666.894,281.816 669.5,285C 669.43,285.765 669.097,286.265 668.5,286.5C 663.609,281.384 663.275,275.884 667.5,270C 672.439,270.319 676.773,268.986 680.5,266C 685.614,265.711 690.614,264.877 695.5,263.5C 699.455,261.936 701.122,258.936 700.5,254.5C 700.167,252.833 699.833,251.167 699.5,249.5C 698.026,248.564 697.026,247.23 696.5,245.5C 687.954,244.303 679.454,244.636 671,246.5C 664.537,245.093 658.037,243.76 651.5,242.5C 649.801,242.66 648.134,242.494 646.5,242C 640.574,236.957 636.574,230.791 634.5,223.5C 634.334,216.492 634.5,209.492 635,202.5C 636.586,200.33 637.92,197.996 639,195.5C 639.667,198.167 639.667,200.833 639,203.5C 637.562,206.056 637.562,208.722 639,211.5C 639.49,210.207 639.657,208.873 639.5,207.5C 641.833,207.5 644.167,207.5 646.5,207.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#529d60",d:"M 681.5,198.5 C 678.445,200.041 675.779,202.208 673.5,205C 674.484,206.657 675.484,208.323 676.5,210C 685.494,210.5 694.494,210.666 703.5,210.5C 708.232,210.378 712.898,210.878 717.5,212C 718.756,212.417 719.423,213.25 719.5,214.5C 711.685,212.856 703.685,211.856 695.5,211.5C 688.836,212.223 682.17,212.389 675.5,212C 674.421,211.044 673.255,210.211 672,209.5C 671.32,202.672 674.486,199.005 681.5,198.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#51a15e",d:"M 651.5,242.5 C 658.037,243.76 664.537,245.093 671,246.5C 679.454,244.636 687.954,244.303 696.5,245.5C 697.026,247.23 698.026,248.564 699.5,249.5C 699.833,251.167 700.167,252.833 700.5,254.5C 701.122,258.936 699.455,261.936 695.5,263.5C 699.858,258.915 700.191,254.248 696.5,249.5C 696.389,248.883 696.056,248.383 695.5,248C 693.667,247.833 691.833,247.667 690,247.5C 680.513,248.507 671.013,248.673 661.5,248C 657.602,247.004 654.269,245.171 651.5,242.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e42949",d:"M 431.5,244.5 C 436.833,245.167 442.167,245.833 447.5,246.5C 447.5,247.5 447.5,248.5 447.5,249.5C 444.873,250.831 442.54,252.664 440.5,255C 439.552,255.483 438.552,255.649 437.5,255.5C 435.182,260.768 432.849,266.102 430.5,271.5C 426.393,288.049 424.393,304.716 424.5,321.5C 426.124,321.64 427.29,320.973 428,319.5C 428.86,314.063 430.027,308.729 431.5,303.5C 435.387,298.626 438.387,293.293 440.5,287.5C 443.833,283.663 447,279.663 450,275.5C 454.044,272.694 458.21,270.027 462.5,267.5C 463.386,266.675 463.719,265.675 463.5,264.5C 466.676,263.66 469.342,261.993 471.5,259.5C 476.925,260.106 481.592,262.273 485.5,266C 490.01,268.299 494.677,270.299 499.5,272C 504.331,275.919 509.664,279.086 515.5,281.5C 517.678,283.745 520.012,285.745 522.5,287.5C 523.292,289.257 524.625,290.591 526.5,291.5C 527.452,293.045 527.785,294.712 527.5,296.5C 526.5,296.5 525.5,296.5 524.5,296.5C 512.067,295.582 500.401,297.915 489.5,303.5C 485.671,302.931 482.337,303.598 479.5,305.5C 472.262,305.893 465.262,307.393 458.5,310C 454.377,313.273 449.711,315.606 444.5,317C 443.748,317.671 443.414,318.504 443.5,319.5C 440.619,320.683 437.619,321.683 434.5,322.5C 431.058,322.032 428.391,323.198 426.5,326C 415.844,327.663 405.178,329.33 394.5,331C 391.814,334.865 388.147,336.699 383.5,336.5C 383.5,335.833 383.167,335.5 382.5,335.5C 378.231,330.733 373.231,326.9 367.5,324C 355.331,318.848 342.998,318.348 330.5,322.5C 325.063,325.148 319.396,327.314 313.5,329C 308.965,332.768 303.965,335.768 298.5,338C 296.5,338.667 294.5,338.667 292.5,338C 286.962,331.136 281.462,324.303 276,317.5C 275.516,315.087 275.85,312.754 277,310.5C 280.652,309.005 282.652,310.339 283,314.5C 288.724,320.496 295.557,321.996 303.5,319C 311.21,314.813 319.21,311.147 327.5,308C 328.059,307.275 328.392,306.442 328.5,305.5C 325.363,297.893 321.696,290.56 317.5,283.5C 315.121,281.958 312.454,281.291 309.5,281.5C 293.849,282.716 278.849,286.383 264.5,292.5C 263.558,292.392 262.725,292.059 262,291.5C 261.667,289.5 261.333,287.5 261,285.5C 258.31,283.973 256.143,281.973 254.5,279.5C 253.766,278.292 253.433,276.959 253.5,275.5C 257.648,274.901 261.315,273.568 264.5,271.5C 266.833,270.833 269.167,270.167 271.5,269.5C 276.277,268.78 280.61,266.947 284.5,264C 290.817,263.761 296.651,261.928 302,258.5C 303.766,259.233 305.599,259.567 307.5,259.5C 307.433,258.041 307.766,256.708 308.5,255.5C 325.447,250.913 342.447,247.246 359.5,244.5C 362.167,244.5 364.833,244.5 367.5,244.5C 372.833,244.5 378.167,244.5 383.5,244.5C 383.5,245.5 383.5,246.5 383.5,247.5C 388.323,244.508 393.656,243.008 399.5,243C 410.265,242.098 420.931,242.598 431.5,244.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#623f2a",d:"M 443.5,211.5 C 483.315,218.5 519.315,234.333 551.5,259C 556.613,264.289 561.779,269.456 567,274.5C 571.167,280 575.333,285.5 579.5,291C 624.47,300.835 668.803,312.502 712.5,326C 736.158,332.231 759.824,338.398 783.5,344.5C 791.306,348.32 799.306,351.32 807.5,353.5C 807.062,353.435 806.728,353.601 806.5,354C 810.97,356.047 815.637,357.714 820.5,359C 823.064,362.018 822.064,363.518 817.5,363.5C 811.576,361.981 805.576,360.981 799.5,360.5C 799.646,362.942 798.813,363.609 797,362.5C 795.556,364.155 793.722,364.822 791.5,364.5C 791.649,363.448 791.483,362.448 791,361.5C 787.28,360.275 784.78,357.941 783.5,354.5C 780.579,354.854 778.246,353.854 776.5,351.5C 773.358,353.921 770.025,354.088 766.5,352C 766.957,351.586 767.291,351.086 767.5,350.5C 764.966,349.223 762.466,349.223 760,350.5C 759.274,347.712 757.44,346.212 754.5,346C 747.78,346.252 741.446,344.919 735.5,342C 730.93,341.538 726.43,340.704 722,339.5C 719.846,340.252 717.68,340.419 715.5,340C 716.696,339.346 716.696,338.846 715.5,338.5C 713.253,339.374 710.92,339.708 708.5,339.5C 685.784,333.837 663.118,327.504 640.5,320.5C 634.801,319.114 629.135,317.281 623.5,315C 606.263,310.952 588.929,307.286 571.5,304C 569.93,302.603 568.596,301.103 567.5,299.5C 561.764,290.923 555.431,282.757 548.5,275C 538.215,267.716 528.215,260.05 518.5,252C 507.249,245.577 495.583,239.91 483.5,235C 475.23,232.074 466.897,229.574 458.5,227.5C 452.028,224.193 445.028,222.693 437.5,223C 436.833,222.667 436.167,222.333 435.5,222C 436.759,221.077 438.092,220.243 439.5,219.5C 439.192,218.692 438.692,218.025 438,217.5C 432.31,219.952 426.643,219.952 421,217.5C 419.612,218.554 418.112,218.72 416.5,218C 419.009,215.5 422.009,213.834 425.5,213C 431.523,212.641 437.523,212.141 443.5,211.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#684532",d:"M 443.5,211.5 C 437.523,212.141 431.523,212.641 425.5,213C 422.009,213.834 419.009,215.5 416.5,218C 418.112,218.72 419.612,218.554 421,217.5C 426.643,219.952 432.31,219.952 438,217.5C 438.692,218.025 439.192,218.692 439.5,219.5C 438.092,220.243 436.759,221.077 435.5,222C 436.167,222.333 436.833,222.667 437.5,223C 445.028,222.693 452.028,224.193 458.5,227.5C 441.554,224.674 424.554,222.174 407.5,220C 394.5,219.333 381.5,219.333 368.5,220C 351.719,222.362 335.052,225.362 318.5,229C 304.5,233 290.5,237 276.5,241C 260.811,247.834 244.811,254.168 228.5,260C 210.333,269.584 192,278.917 173.5,288C 156.361,298.072 139.694,308.905 123.5,320.5C 119.421,324.253 115.421,327.919 111.5,331.5C 108.053,333.397 104.72,335.563 101.5,338C 93.9368,345.395 86.6035,352.895 79.5,360.5C 80.3231,357.649 81.6565,354.982 83.5,352.5C 85.1965,351.636 86.3632,350.303 87,348.5C 87.3333,348.833 87.6667,349.167 88,349.5C 89.5068,346.996 91.0068,344.496 92.5,342C 91.4799,339.141 89.4799,337.641 86.5,337.5C 85.7999,341.999 83.2999,343.665 79,342.5C 78.0754,343.047 77.2421,343.713 76.5,344.5C 74.5925,348.414 72.2592,352.08 69.5,355.5C 69.8333,356.167 70.1667,356.833 70.5,357.5C 68.1535,358.238 65.8202,359.238 63.5,360.5C 65.1396,356.559 67.3063,352.892 70,349.5C 84.5542,333.283 100.721,318.783 118.5,306C 170.469,272.349 225.802,245.682 284.5,226C 304.11,220.482 323.777,215.482 343.5,211C 360.638,209.097 377.805,207.597 395,206.5C 403.848,206.739 412.681,207.239 421.5,208C 428.969,208.966 436.302,210.133 443.5,211.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#aea998",d:"M 538.5,286.5 C 537.481,288.507 535.815,289.84 533.5,290.5C 531.021,288.924 528.354,287.924 525.5,287.5C 524.5,287.5 523.5,287.5 522.5,287.5C 520.012,285.745 517.678,283.745 515.5,281.5C 509.664,279.086 504.331,275.919 499.5,272C 494.677,270.299 490.01,268.299 485.5,266C 481.592,262.273 476.925,260.106 471.5,259.5C 472.609,258.71 473.942,258.21 475.5,258C 471.381,256.636 467.381,254.969 463.5,253C 458.418,250.96 453.084,249.793 447.5,249.5C 447.5,248.5 447.5,247.5 447.5,246.5C 442.167,245.833 436.833,245.167 431.5,244.5C 428.754,243.749 426.087,242.749 423.5,241.5C 398.479,240.245 373.312,239.578 348,239.5C 343.127,239.705 338.461,240.705 334,242.5C 323.001,241.014 322.835,242.014 333.5,245.5C 338.342,243.966 343.175,242.633 348,241.5C 352.179,241.712 356.013,242.712 359.5,244.5C 342.447,247.246 325.447,250.913 308.5,255.5C 302.109,256.483 296.109,258.65 290.5,262C 283.572,263.031 277.239,265.531 271.5,269.5C 269.167,270.167 266.833,270.833 264.5,271.5C 262.801,271.34 261.134,271.506 259.5,272C 251.781,275.958 243.781,279.291 235.5,282C 233.167,283.667 230.833,285.333 228.5,287C 222.961,288.708 217.627,290.708 212.5,293C 210.602,294.417 208.936,295.917 207.5,297.5C 204.687,297.025 202.687,298.025 201.5,300.5C 200.127,300.343 198.793,300.51 197.5,301C 192.418,304.305 187.084,307.139 181.5,309.5C 178.999,309.489 178.832,308.822 181,307.5C 182.137,303.63 180.637,301.797 176.5,302C 178.993,300.581 181.326,299.081 183.5,297.5C 192.465,290.758 202.465,285.591 213.5,282C 240.68,265.673 269.847,253.839 301,246.5C 304.222,244.424 307.722,242.924 311.5,242C 324.095,239.842 336.761,238.176 349.5,237C 350.833,236.333 352.167,235.667 353.5,235C 389.843,229.902 425.676,232.069 461,241.5C 474.739,247.282 488.572,252.949 502.5,258.5C 515.257,266.876 527.257,276.21 538.5,286.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6dab79",d:"M 942.5,267.5 C 938.481,263.82 933.814,261.153 928.5,259.5C 924.932,260.783 921.932,262.783 919.5,265.5C 919.751,263.83 920.418,262.33 921.5,261C 925.372,256.972 929.706,256.472 934.5,259.5C 935.779,261.146 937.445,262.313 939.5,263C 941.141,264.129 942.141,265.629 942.5,267.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dbf3de",d:"M 696.5,249.5 C 700.191,254.248 699.858,258.915 695.5,263.5C 690.614,264.877 685.614,265.711 680.5,266C 676.773,268.986 672.439,270.319 667.5,270C 663.275,275.884 663.609,281.384 668.5,286.5C 669.9,287.1 670.9,288.1 671.5,289.5C 671.733,291.062 672.4,292.395 673.5,293.5C 672.417,293.539 671.417,293.873 670.5,294.5C 663.712,287.512 661.212,279.178 663,269.5C 663.5,269 664,268.5 664.5,268C 668.5,267.667 672.5,267.333 676.5,267C 677.167,266.333 677.833,265.667 678.5,265C 685.618,265.902 691.451,263.735 696,258.5C 696.498,255.518 696.665,252.518 696.5,249.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3fb148",d:"M 671.5,289.5 C 670.9,288.1 669.9,287.1 668.5,286.5C 669.097,286.265 669.43,285.765 669.5,285C 666.894,281.816 666.894,278.649 669.5,275.5C 670.914,276.624 672.414,277.624 674,278.5C 676.802,277.67 679.635,276.837 682.5,276C 687.818,272.272 693.818,270.606 700.5,271C 702.439,270.092 703.439,268.592 703.5,266.5C 705.638,266.297 707.305,265.297 708.5,263.5C 709.493,259.558 710.16,255.558 710.5,251.5C 708.769,244.477 705.435,238.31 700.5,233C 688.888,234.033 677.222,234.366 665.5,234C 660.813,230.483 657.479,225.983 655.5,220.5C 647.712,219.391 644.712,215.057 646.5,207.5C 647.609,207.443 648.609,207.11 649.5,206.5C 652.284,203.954 655.617,202.454 659.5,202C 663.223,196.282 668.223,191.949 674.5,189C 673.552,188.517 672.552,188.351 671.5,188.5C 673.035,185.768 674.869,183.102 677,180.5C 679.657,179.427 681.823,177.76 683.5,175.5C 687.032,173.363 690.699,173.03 694.5,174.5C 694.777,177.448 694.444,180.281 693.5,183C 691.884,183.615 690.551,184.615 689.5,186C 683.912,187.362 678.578,189.195 673.5,191.5C 673.769,193.429 673.269,195.095 672,196.5C 671.667,196.167 671.333,195.833 671,195.5C 669.106,198.844 666.273,200.178 662.5,199.5C 662.829,203.677 661.829,207.51 659.5,211C 662.398,214.119 665.065,217.453 667.5,221C 672.883,221.322 677.883,219.988 682.5,217C 689.492,216.5 696.492,216.334 703.5,216.5C 703.5,215.5 703.5,214.5 703.5,213.5C 709.962,215.275 716.629,216.442 723.5,217C 725.833,219 728.167,221 730.5,223C 726.783,223.043 723.116,222.543 719.5,221.5C 719.666,229.507 719.5,237.507 719,245.5C 717.187,248.429 716.02,251.596 715.5,255C 716.422,258.459 716.255,261.959 715,265.5C 713.559,266.87 711.892,267.87 710,268.5C 710.046,270.313 709.88,271.979 709.5,273.5C 707.591,274.348 705.591,274.682 703.5,274.5C 703.5,275.833 703.5,277.167 703.5,278.5C 695.151,281.825 686.485,284.325 677.5,286C 676.245,288.46 674.245,289.627 671.5,289.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3cae49",d:"M 964.5,287.5 C 962.909,290.431 960.909,293.098 958.5,295.5C 953.389,298.469 948.555,301.802 944,305.5C 941.108,304.18 939.775,301.846 940,298.5C 938.374,295.872 936.374,293.539 934,291.5C 933.517,290.552 933.351,289.552 933.5,288.5C 929.881,287.756 926.215,287.423 922.5,287.5C 921.504,287.414 920.671,287.748 920,288.5C 918.971,298.43 922.471,305.43 930.5,309.5C 929.975,310.192 929.308,310.692 928.5,311C 930.286,311.785 931.786,312.951 933,314.5C 934.321,318.784 935.488,323.117 936.5,327.5C 936.875,335.911 937.875,344.078 939.5,352C 937.443,355.3 936.443,355.133 936.5,351.5C 932.611,351.376 929.278,352.709 926.5,355.5C 925.334,353.635 925.667,351.968 927.5,350.5C 926.902,349.205 926.402,347.872 926,346.5C 925.29,347.973 924.124,348.64 922.5,348.5C 922.5,346.833 922.5,345.167 922.5,343.5C 921.167,343.5 919.833,343.5 918.5,343.5C 918.313,345.564 917.813,347.564 917,349.5C 915.088,347.006 913.254,347.173 911.5,350C 913.023,352.452 914.69,354.786 916.5,357C 914.866,357.494 913.199,357.66 911.5,357.5C 911.5,356.167 911.5,354.833 911.5,353.5C 909.856,353.286 908.356,353.62 907,354.5C 906.517,353.552 906.351,352.552 906.5,351.5C 905.325,351.719 904.325,351.386 903.5,350.5C 905.473,348.719 906.807,346.552 907.5,344C 903.541,344.158 899.541,344.325 895.5,344.5C 895.5,343.167 895.5,341.833 895.5,340.5C 902.383,340.934 909.05,340.267 915.5,338.5C 916.035,332.757 915.368,327.257 913.5,322C 913.905,321.055 914.572,320.388 915.5,320C 913.167,319.667 910.833,319.333 908.5,319C 906.717,317.261 905.05,315.428 903.5,313.5C 900.822,312.445 898.322,311.112 896,309.5C 889.911,300.167 889.244,290.501 894,280.5C 897.944,279.057 900.777,276.391 902.5,272.5C 909.49,267.7 916.823,267.366 924.5,271.5C 926.135,271.122 927.635,270.456 929,269.5C 931.935,271.192 935.102,271.858 938.5,271.5C 938.948,275.524 939.614,279.524 940.5,283.5C 941.812,278.42 944.979,275.42 950,274.5C 955.032,275.544 959.866,277.044 964.5,279C 965.679,281.796 965.679,284.629 964.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d45864",d:"M 440.5,287.5 C 438.387,293.293 435.387,298.626 431.5,303.5C 432.993,297.166 435.993,291.833 440.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#93c69c",d:"M 698.5,290.5 C 695.713,291.477 692.713,291.81 689.5,291.5C 689.5,295.833 689.5,300.167 689.5,304.5C 687.901,304.768 686.568,304.434 685.5,303.5C 686.5,303.5 687.5,303.5 688.5,303.5C 688.766,299.429 688.433,295.429 687.5,291.5C 691.107,290.511 694.774,290.177 698.5,290.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#beb6a9",d:"M 447.5,249.5 C 453.084,249.793 458.418,250.96 463.5,253C 467.381,254.969 471.381,256.636 475.5,258C 473.942,258.21 472.609,258.71 471.5,259.5C 469.342,261.993 466.676,263.66 463.5,264.5C 463.719,265.675 463.386,266.675 462.5,267.5C 458.21,270.027 454.044,272.694 450,275.5C 447,279.663 443.833,283.663 440.5,287.5C 435.993,291.833 432.993,297.166 431.5,303.5C 430.027,308.729 428.86,314.063 428,319.5C 427.29,320.973 426.124,321.64 424.5,321.5C 424.393,304.716 426.393,288.049 430.5,271.5C 432.849,266.102 435.182,260.768 437.5,255.5C 438.552,255.649 439.552,255.483 440.5,255C 442.54,252.664 444.873,250.831 447.5,249.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e32949",d:"M 244.5,287.5 C 244.167,288.833 243.833,290.167 243.5,291.5C 242.226,295.856 242.226,300.356 243.5,305C 242.2,306.58 240.866,308.08 239.5,309.5C 236.079,312.093 233.079,315.259 230.5,319C 229.552,319.483 228.552,319.649 227.5,319.5C 227.657,320.873 227.49,322.207 227,323.5C 225.624,324.705 224.458,326.038 223.5,327.5C 222.178,327.33 221.011,327.663 220,328.5C 218.956,330.715 218.29,333.048 218,335.5C 217.333,344.167 217.333,352.833 218,361.5C 218.414,361.957 218.914,362.291 219.5,362.5C 220.164,366.654 221.331,370.654 223,374.5C 223.986,373.829 225.153,373.829 226.5,374.5C 229.796,380.622 234.796,384.789 241.5,387C 252.639,386.642 263.639,384.975 274.5,382C 285.331,377.416 295.998,372.582 306.5,367.5C 307.442,367.608 308.275,367.941 309,368.5C 312.707,374.027 316.874,379.027 321.5,383.5C 325.132,387.095 327.465,391.428 328.5,396.5C 328.33,397.822 328.663,398.989 329.5,400C 326.174,400.172 322.841,400.005 319.5,399.5C 315.611,398.274 312.611,395.941 310.5,392.5C 307.273,387.592 302.94,384.259 297.5,382.5C 295.813,382.76 294.313,383.427 293,384.5C 291.953,387.881 290.453,391.047 288.5,394C 282.844,395.941 277.178,397.774 271.5,399.5C 271.082,402.439 269.582,404.772 267,406.5C 266.047,409.432 265.547,412.432 265.5,415.5C 266.873,415.343 268.207,415.51 269.5,416C 272.665,420.659 275.998,425.159 279.5,429.5C 279.66,431.199 279.494,432.866 279,434.5C 276.657,437.207 274.323,439.874 272,442.5C 271.506,444.134 271.34,445.801 271.5,447.5C 270.5,447.5 269.5,447.5 268.5,447.5C 264.659,455.6 261.325,464.1 258.5,473C 257.991,474.169 257.158,475.002 256,475.5C 255.824,478.882 255.324,482.215 254.5,485.5C 252.227,486.375 251.227,488.042 251.5,490.5C 247.21,490.198 243.21,490.864 239.5,492.5C 223.707,494.826 207.707,496.493 191.5,497.5C 175.483,497.7 159.483,497.366 143.5,496.5C 138.5,496.011 133.833,494.344 129.5,491.5C 128.449,490.778 127.782,489.778 127.5,488.5C 125.222,480.344 124.888,472.011 126.5,463.5C 128.833,463.5 131.167,463.5 133.5,463.5C 132.098,458.661 132.598,453.995 135,449.5C 136.117,450.949 136.784,452.616 137,454.5C 136.299,450.168 136.633,445.835 138,441.5C 140.401,439.218 143.234,437.718 146.5,437C 152.464,428.711 160.131,422.877 169.5,419.5C 171.325,420.651 173.325,421.318 175.5,421.5C 175.5,420.5 175.5,419.5 175.5,418.5C 174.5,418.5 173.5,418.5 172.5,418.5C 172.5,417.5 172.5,416.5 172.5,415.5C 177.536,415.47 182.536,414.97 187.5,414C 188.833,413.333 190.167,412.667 191.5,412C 188.937,411.082 186.77,411.582 185,413.5C 183.578,413.406 182.078,413.072 180.5,412.5C 183.221,410.75 185.888,409.083 188.5,407.5C 190.279,406.33 191.279,404.664 191.5,402.5C 184.506,402.137 177.506,401.803 170.5,401.5C 164.728,401.706 159.061,402.539 153.5,404C 142.159,410.576 130.492,416.409 118.5,421.5C 114.565,420.276 111.399,417.942 109,414.5C 104.679,404.291 104.346,393.958 108,383.5C 110.803,376.992 114.136,370.659 118,364.5C 122.247,359.659 126.247,354.659 130,349.5C 134.038,345.461 138.371,341.794 143,338.5C 143.483,337.552 143.649,336.552 143.5,335.5C 148.589,332.783 153.589,329.783 158.5,326.5C 159.429,325.311 159.762,323.978 159.5,322.5C 162.686,321.229 166.02,320.229 169.5,319.5C 173.543,317.436 177.876,316.103 182.5,315.5C 182.167,314.833 181.833,314.167 181.5,313.5C 183.737,312.868 185.403,311.535 186.5,309.5C 188.882,307.929 191.549,307.096 194.5,307C 196.104,303.896 198.437,301.729 201.5,300.5C 202.687,298.025 204.687,297.025 207.5,297.5C 209.833,297.5 212.167,297.5 214.5,297.5C 214.33,296.178 214.663,295.011 215.5,294C 219.338,292.526 223.338,291.526 227.5,291C 230.87,287.458 234.87,284.958 239.5,283.5C 239.281,284.675 239.614,285.675 240.5,286.5C 241.731,285.349 241.731,284.183 240.5,283C 241.563,281.812 242.897,281.312 244.5,281.5C 244.5,283.5 244.5,285.5 244.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#853d37",d:"M 524.5,296.5 C 520.833,297.167 517.167,297.833 513.5,298.5C 505.749,300.766 497.749,302.433 489.5,303.5C 500.401,297.915 512.067,295.582 524.5,296.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#df6179",d:"M 243.5,291.5 C 243.117,296.343 243.783,301.009 245.5,305.5C 244.157,307.737 242.157,309.07 239.5,309.5C 240.866,308.08 242.2,306.58 243.5,305C 242.226,300.356 242.226,295.856 243.5,291.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d34c5b",d:"M 201.5,300.5 C 198.437,301.729 196.104,303.896 194.5,307C 191.549,307.096 188.882,307.929 186.5,309.5C 185.403,311.535 183.737,312.868 181.5,313.5C 181.833,314.167 182.167,314.833 182.5,315.5C 177.876,316.103 173.543,317.436 169.5,319.5C 173.5,316.167 177.5,312.833 181.5,309.5C 187.084,307.139 192.418,304.305 197.5,301C 198.793,300.51 200.127,300.343 201.5,300.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#983536",d:"M 479.5,305.5 C 467.182,309.165 455.182,313.832 443.5,319.5C 443.414,318.504 443.748,317.671 444.5,317C 449.711,315.606 454.377,313.273 458.5,310C 465.262,307.393 472.262,305.893 479.5,305.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#faf9fb",d:"M 254.5,279.5 C 256.143,281.973 258.31,283.973 261,285.5C 261.333,287.5 261.667,289.5 262,291.5C 262.725,292.059 263.558,292.392 264.5,292.5C 278.849,286.383 293.849,282.716 309.5,281.5C 312.454,281.291 315.121,281.958 317.5,283.5C 321.696,290.56 325.363,297.893 328.5,305.5C 328.392,306.442 328.059,307.275 327.5,308C 319.21,311.147 311.21,314.813 303.5,319C 295.557,321.996 288.724,320.496 283,314.5C 282.652,310.339 280.652,309.005 277,310.5C 275.85,312.754 275.516,315.087 276,317.5C 281.462,324.303 286.962,331.136 292.5,338C 294.5,338.667 296.5,338.667 298.5,338C 303.965,335.768 308.965,332.768 313.5,329C 319.396,327.314 325.063,325.148 330.5,322.5C 342.998,318.348 355.331,318.848 367.5,324C 373.231,326.9 378.231,330.733 382.5,335.5C 382.719,336.675 382.386,337.675 381.5,338.5C 376.777,341.756 372.443,345.422 368.5,349.5C 366.49,351.171 364.157,351.838 361.5,351.5C 361.762,352.978 361.429,354.311 360.5,355.5C 355.893,358.969 350.893,361.636 345.5,363.5C 344.513,360.854 343.513,358.188 342.5,355.5C 340.926,354.369 339.259,354.202 337.5,355C 334.142,357.203 330.642,359.037 327,360.5C 326.968,363.668 328.468,366.001 331.5,367.5C 332.833,369.167 334.167,370.833 335.5,372.5C 331.413,376.922 326.746,380.589 321.5,383.5C 316.874,379.027 312.707,374.027 309,368.5C 308.275,367.941 307.442,367.608 306.5,367.5C 295.998,372.582 285.331,377.416 274.5,382C 263.639,384.975 252.639,386.642 241.5,387C 234.796,384.789 229.796,380.622 226.5,374.5C 225.308,371.438 223.808,368.438 222,365.5C 217.123,352.61 217.623,339.943 223.5,327.5C 224.458,326.038 225.624,324.705 227,323.5C 227.49,322.207 227.657,320.873 227.5,319.5C 228.552,319.649 229.552,319.483 230.5,319C 233.079,315.259 236.079,312.093 239.5,309.5C 242.157,309.07 244.157,307.737 245.5,305.5C 243.783,301.009 243.117,296.343 243.5,291.5C 243.833,290.167 244.167,288.833 244.5,287.5C 246.003,284.759 247.669,281.925 249.5,279C 251.197,278.616 252.863,278.782 254.5,279.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7465e",d:"M 223.5,327.5 C 217.623,339.943 217.123,352.61 222,365.5C 223.808,368.438 225.308,371.438 226.5,374.5C 225.153,373.829 223.986,373.829 223,374.5C 221.331,370.654 220.164,366.654 219.5,362.5C 218.914,362.291 218.414,361.957 218,361.5C 217.333,352.833 217.333,344.167 218,335.5C 218.29,333.048 218.956,330.715 220,328.5C 221.011,327.663 222.178,327.33 223.5,327.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ab1f37",d:"M 434.5,322.5 C 428.964,326.373 422.964,329.706 416.5,332.5C 415.614,333.325 415.281,334.325 415.5,335.5C 411.267,336.106 407.267,337.606 403.5,340C 399.249,342.945 395.249,346.112 391.5,349.5C 390.5,349.5 389.5,349.5 388.5,349.5C 387.628,344.774 385.962,340.44 383.5,336.5C 388.147,336.699 391.814,334.865 394.5,331C 405.178,329.33 415.844,327.663 426.5,326C 428.391,323.198 431.058,322.032 434.5,322.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#51a75f",d:"M 876.5,323.5 C 875.265,323.279 874.265,322.612 873.5,321.5C 872.208,324.619 870.708,327.619 869,330.5C 867.556,332.155 865.722,332.822 863.5,332.5C 863.5,333.5 863.5,334.5 863.5,335.5C 862.167,335.5 860.833,335.5 859.5,335.5C 861.77,332.633 864.27,329.967 867,327.5C 868.786,324.92 870.286,322.253 871.5,319.5C 873.167,319.5 874.833,319.5 876.5,319.5C 876.5,320.833 876.5,322.167 876.5,323.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dcceb7",d:"M 640.5,320.5 C 663.118,327.504 685.784,333.837 708.5,339.5C 734.442,348.135 760.775,355.969 787.5,363C 789.275,364.439 791.275,365.439 793.5,366C 801.459,367.915 809.459,369.915 817.5,372C 836.079,379.027 855.079,384.527 874.5,388.5C 891.41,394.805 908.41,400.638 925.5,406C 933.621,409.894 941.621,414.061 949.5,418.5C 949.351,419.552 949.517,420.552 950,421.5C 953.5,424.333 956.667,427.5 959.5,431C 960.448,431.483 961.448,431.649 962.5,431.5C 962.372,433.655 962.872,435.655 964,437.5C 966.795,439.751 969.128,442.418 971,445.5C 972.762,450.453 975.095,455.12 978,459.5C 984.625,476.253 986.791,493.587 984.5,511.5C 981.528,519.574 977.695,527.241 973,534.5C 963.702,542.042 953.535,548.208 942.5,553C 939.872,554.626 937.539,556.626 935.5,559C 925.886,562.808 916.552,567.142 907.5,572C 903.378,575.394 898.711,577.728 893.5,579C 883.397,583.811 873.397,588.811 863.5,594C 853.945,596.634 844.945,600.634 836.5,606C 823.435,610.027 810.435,614.36 797.5,619C 787.49,623.121 777.49,627.455 767.5,632C 751.068,636.144 735.068,641.477 719.5,648C 715.981,648.377 712.481,648.877 709,649.5C 700.931,652.48 692.764,655.147 684.5,657.5C 675.981,658.27 667.648,659.937 659.5,662.5C 657.772,662.41 656.106,662.077 654.5,661.5C 651.798,663.347 648.798,664.513 645.5,665C 637.586,666.124 629.753,667.624 622,669.5C 613.838,670.277 605.671,670.944 597.5,671.5C 594.833,671.5 592.167,671.5 589.5,671.5C 576.167,671.5 562.833,671.5 549.5,671.5C 548.5,671.5 547.5,671.5 546.5,671.5C 527.141,670.063 507.808,667.897 488.5,665C 471.77,659.261 454.77,654.261 437.5,650C 419.34,642.668 401.673,634.334 384.5,625C 367.475,614.302 352.142,601.469 338.5,586.5C 333.297,577.463 327.131,569.129 320,561.5C 317.868,555.239 315.202,549.239 312,543.5C 301.137,509.724 303.137,476.724 318,444.5C 325.908,430.096 334.908,416.43 345,403.5C 350.161,399.547 354.661,394.88 358.5,389.5C 365.909,384.133 372.909,378.299 379.5,372C 393.66,363.728 407.326,354.728 420.5,345C 433.394,339.103 446.06,332.769 458.5,326C 471.783,320.837 485.449,316.837 499.5,314C 529.363,309.172 559.363,308.172 589.5,311C 600.589,314.4 611.923,317.067 623.5,319C 628.501,319.058 633.335,319.891 638,321.5C 638.902,321.257 639.735,320.923 640.5,320.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#539e60",d:"M 945.5,320.5 C 947.902,325.44 948.902,330.773 948.5,336.5C 948.333,339.5 948.167,342.5 948,345.5C 947.878,347.437 947.045,348.77 945.5,349.5C 946.668,339.84 946.668,330.174 945.5,320.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b5b6aa",d:"M 863.5,400.5 C 863.5,401.5 863.5,402.5 863.5,403.5C 859.923,401.433 855.923,400.266 851.5,400C 843.822,399.523 836.155,399.69 828.5,400.5C 802.745,393.976 777.079,386.809 751.5,379C 742.28,377.624 733.28,375.624 724.5,373C 720.615,370.931 716.615,369.264 712.5,368C 697.802,365.127 683.135,362.127 668.5,359C 658.952,355.697 649.286,353.197 639.5,351.5C 638.848,350.275 637.681,349.608 636,349.5C 631.916,348.305 627.75,347.639 623.5,347.5C 621.05,347.702 618.717,347.369 616.5,346.5C 616.389,345.883 616.056,345.383 615.5,345C 609.859,343.858 604.193,342.858 598.5,342C 598.833,341.667 599.167,341.333 599.5,341C 594.511,340.501 589.511,340.334 584.5,340.5C 576.181,339.876 567.848,339.543 559.5,339.5C 554.544,338.172 549.211,337.505 543.5,337.5C 535.493,337.667 527.493,338 519.5,338.5C 516.41,338.522 513.743,339.188 511.5,340.5C 500.267,340.572 489.6,342.572 479.5,346.5C 472.985,347.171 467.152,349.504 462,353.5C 454.467,356.124 446.967,358.957 439.5,362C 430.598,366.95 421.598,371.617 412.5,376C 407.991,379.021 403.658,382.188 399.5,385.5C 394.167,389.167 388.833,392.833 383.5,396.5C 383.343,395.127 383.51,393.793 384,392.5C 386.172,391.491 387.338,389.824 387.5,387.5C 388.833,387.5 390.167,387.5 391.5,387.5C 391.567,386.041 391.234,384.708 390.5,383.5C 407.518,372.138 424.851,360.972 442.5,350C 448.233,346.801 454.233,344.135 460.5,342C 466.087,341.399 471.087,339.399 475.5,336C 491.155,330.87 507.155,327.037 523.5,324.5C 546.265,322.669 568.932,323.502 591.5,327C 611.914,331.186 632.247,335.853 652.5,341C 669.266,346.279 686.266,350.779 703.5,354.5C 721.946,360.898 740.613,366.398 759.5,371C 786.19,379.394 812.857,387.561 839.5,395.5C 847.448,397.423 855.448,399.09 863.5,400.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c9a19b",d:"M 584.5,340.5 C 589.511,340.334 594.511,340.501 599.5,341C 599.167,341.333 598.833,341.667 598.5,342C 604.193,342.858 609.859,343.858 615.5,345C 616.056,345.383 616.389,345.883 616.5,346.5C 605.639,344.953 594.972,342.953 584.5,340.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc5664",d:"M 559.5,339.5 C 543.491,339.5 527.491,339.834 511.5,340.5C 513.743,339.188 516.41,338.522 519.5,338.5C 527.493,338 535.493,337.667 543.5,337.5C 549.211,337.505 554.544,338.172 559.5,339.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc4a5c",d:"M 511.5,340.5 C 501.111,343.512 490.445,345.512 479.5,346.5C 489.6,342.572 500.267,340.572 511.5,340.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ea2f4e",d:"M 260.5,326.5 C 262.39,326.297 263.89,326.963 265,328.5C 270.028,335.362 274.862,342.362 279.5,349.5C 277.376,351.121 275.376,352.954 273.5,355C 272.167,355.667 270.833,355.667 269.5,355C 264.966,350.801 260.799,346.301 257,341.5C 256.002,337.527 255.669,333.527 256,329.5C 258.026,329.085 259.526,328.085 260.5,326.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3aa648",d:"M 919.5,265.5 C 921.932,262.783 924.932,260.783 928.5,259.5C 933.814,261.153 938.481,263.82 942.5,267.5C 950.215,269.555 957.548,272.722 964.5,277C 968.251,280.498 968.251,283.998 964.5,287.5C 965.679,284.629 965.679,281.796 964.5,279C 959.866,277.044 955.032,275.544 950,274.5C 944.979,275.42 941.812,278.42 940.5,283.5C 939.614,279.524 938.948,275.524 938.5,271.5C 935.102,271.858 931.935,271.192 929,269.5C 927.635,270.456 926.135,271.122 924.5,271.5C 916.823,267.366 909.49,267.7 902.5,272.5C 900.777,276.391 897.944,279.057 894,280.5C 889.244,290.501 889.911,300.167 896,309.5C 898.322,311.112 900.822,312.445 903.5,313.5C 905.05,315.428 906.717,317.261 908.5,319C 910.833,319.333 913.167,319.667 915.5,320C 914.572,320.388 913.905,321.055 913.5,322C 915.368,327.257 916.035,332.757 915.5,338.5C 909.05,340.267 902.383,340.934 895.5,340.5C 895.5,341.833 895.5,343.167 895.5,344.5C 899.541,344.325 903.541,344.158 907.5,344C 906.807,346.552 905.473,348.719 903.5,350.5C 904.325,351.386 905.325,351.719 906.5,351.5C 906.351,352.552 906.517,353.552 907,354.5C 908.356,353.62 909.856,353.286 911.5,353.5C 911.5,354.833 911.5,356.167 911.5,357.5C 913.199,357.66 914.866,357.494 916.5,357C 914.69,354.786 913.023,352.452 911.5,350C 913.254,347.173 915.088,347.006 917,349.5C 917.813,347.564 918.313,345.564 918.5,343.5C 919.833,343.5 921.167,343.5 922.5,343.5C 922.5,345.167 922.5,346.833 922.5,348.5C 924.124,348.64 925.29,347.973 926,346.5C 926.402,347.872 926.902,349.205 927.5,350.5C 925.667,351.968 925.334,353.635 926.5,355.5C 929.278,352.709 932.611,351.376 936.5,351.5C 936.443,355.133 937.443,355.3 939.5,352C 937.875,344.078 936.875,335.911 936.5,327.5C 935.488,323.117 934.321,318.784 933,314.5C 931.786,312.951 930.286,311.785 928.5,311C 929.308,310.692 929.975,310.192 930.5,309.5C 922.471,305.43 918.971,298.43 920,288.5C 920.671,287.748 921.504,287.414 922.5,287.5C 920.054,293.309 921.554,297.642 927,300.5C 927.483,301.448 927.649,302.448 927.5,303.5C 928.873,303.343 930.207,303.51 931.5,304C 937.189,308.838 941.856,314.338 945.5,320.5C 946.668,330.174 946.668,339.84 945.5,349.5C 943.816,353.366 941.482,356.866 938.5,360C 934.827,362.342 931.161,364.676 927.5,367C 924,367.167 920.5,367.333 917,367.5C 910.66,367.312 904.493,366.312 898.5,364.5C 898.5,365.5 898.5,366.5 898.5,367.5C 897.5,367.5 896.5,367.5 895.5,367.5C 895.862,372.099 894.529,376.099 891.5,379.5C 888.364,379.397 885.698,378.397 883.5,376.5C 881.631,370.394 879.465,364.394 877,358.5C 874.034,356.966 870.867,355.8 867.5,355C 863.551,352.683 859.717,350.183 856,347.5C 853.262,342.166 854.429,338.166 859.5,335.5C 860.833,335.5 862.167,335.5 863.5,335.5C 863.5,334.5 863.5,333.5 863.5,332.5C 865.722,332.822 867.556,332.155 869,330.5C 870.708,327.619 872.208,324.619 873.5,321.5C 874.265,322.612 875.265,323.279 876.5,323.5C 880.043,328.209 884.376,332.042 889.5,335C 910.497,338.173 912.83,333.007 896.5,319.5C 894.885,318.846 893.218,318.346 891.5,318C 887.256,312.977 883.256,307.644 879.5,302C 876.544,292.967 877.044,284.134 881,275.5C 886.759,267.062 894.259,260.895 903.5,257C 906.482,256.502 909.482,256.335 912.5,256.5C 913.241,259.634 914.241,262.634 915.5,265.5C 916.833,265.5 918.167,265.5 919.5,265.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf8e90",d:"M 623.5,347.5 C 627.75,347.639 631.916,348.305 636,349.5C 637.681,349.608 638.848,350.275 639.5,351.5C 633.411,352.26 628.078,350.926 623.5,347.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e32a49",d:"M 559.5,339.5 C 567.848,339.543 576.181,339.876 584.5,340.5C 594.972,342.953 605.639,344.953 616.5,346.5C 618.717,347.369 621.05,347.702 623.5,347.5C 628.078,350.926 633.411,352.26 639.5,351.5C 649.286,353.197 658.952,355.697 668.5,359C 683.135,362.127 697.802,365.127 712.5,368C 716.615,369.264 720.615,370.931 724.5,373C 733.28,375.624 742.28,377.624 751.5,379C 777.079,386.809 802.745,393.976 828.5,400.5C 851.113,408.738 874.113,416.071 897.5,422.5C 898.29,423.794 899.29,424.961 900.5,426C 905.482,427.332 910.482,428.832 915.5,430.5C 916.833,431.833 916.833,433.167 915.5,434.5C 913.018,435.067 910.684,435.734 908.5,436.5C 898.017,439.407 888.684,444.407 880.5,451.5C 879.614,452.325 879.281,453.325 879.5,454.5C 876.612,454.22 875.112,455.553 875,458.5C 873.488,459.257 872.154,460.257 871,461.5C 869.3,464.52 867.634,467.52 866,470.5C 865.219,471.944 865.386,473.277 866.5,474.5C 873.526,470.326 880.859,466.826 888.5,464C 899.848,462.33 911.181,462.33 922.5,464C 929.105,466.427 934.438,470.593 938.5,476.5C 946.121,489.697 948.621,504.031 946,519.5C 942.744,521.585 939.911,524.252 937.5,527.5C 927.487,533.017 917.487,538.85 907.5,545C 896.483,549.019 886.15,554.352 876.5,561C 868.087,564.138 859.754,567.471 851.5,571C 850.495,572.507 849.162,573.673 847.5,574.5C 843.396,575.467 839.396,576.634 835.5,578C 832.194,580.261 828.86,582.428 825.5,584.5C 814.527,588.315 803.527,592.149 792.5,596C 789.197,597.059 786.197,598.559 783.5,600.5C 762.401,608.422 741.068,615.755 719.5,622.5C 661.872,637.704 603.205,645.037 543.5,644.5C 527.459,642.991 511.459,640.491 495.5,637C 490.136,634.155 485.136,630.655 480.5,626.5C 479.614,625.675 479.281,624.675 479.5,623.5C 478.5,623.5 477.5,623.5 476.5,623.5C 476.657,622.127 476.49,620.793 476,619.5C 473.886,616.907 472.053,614.24 470.5,611.5C 470.5,610.833 470.5,610.167 470.5,609.5C 470.101,597.995 471.101,586.662 473.5,575.5C 474.5,575.5 475.5,575.5 476.5,575.5C 476.292,573.08 476.626,570.747 477.5,568.5C 477.043,567.702 476.376,567.369 475.5,567.5C 466.87,567.355 458.37,568.355 450,570.5C 448.624,570.684 447.791,571.351 447.5,572.5C 442.417,574.469 437.417,576.802 432.5,579.5C 427.83,584.167 422.83,588.501 417.5,592.5C 414.5,597.167 411.5,601.833 408.5,606.5C 405.743,607.866 403.577,607.199 402,604.5C 401.195,594.62 401.695,584.954 403.5,575.5C 404.655,568.345 404.822,561.012 404,553.5C 403.434,551.277 402.6,549.277 401.5,547.5C 400.438,543.259 398.772,539.259 396.5,535.5C 393.435,532.76 390.435,530.093 387.5,527.5C 387.5,526.5 387.5,525.5 387.5,524.5C 384.173,523.463 380.839,522.296 377.5,521C 364.154,520.833 350.821,520.333 337.5,519.5C 341.349,515.904 343.683,511.571 344.5,506.5C 346.55,503.942 348.883,501.442 351.5,499C 352.448,498.517 353.448,498.351 354.5,498.5C 354.5,497.5 354.5,496.5 354.5,495.5C 355.978,495.762 357.311,495.429 358.5,494.5C 364.144,489.756 368.644,484.09 372,477.5C 384.832,463.914 390.166,447.581 388,428.5C 384.786,420.55 381.286,412.716 377.5,405C 377.667,404.167 377.833,403.333 378,402.5C 380.182,401.064 382.016,399.397 383.5,397.5C 384.552,397.649 385.552,397.483 386.5,397C 391.027,393.301 395.361,389.468 399.5,385.5C 403.658,382.188 407.991,379.021 412.5,376C 421.598,371.617 430.598,366.95 439.5,362C 446.967,358.957 454.467,356.124 462,353.5C 467.152,349.504 472.985,347.171 479.5,346.5C 490.445,345.512 501.111,343.512 511.5,340.5C 527.491,339.834 543.491,339.5 559.5,339.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8d8d91",d:"M 382.5,335.5 C 383.167,335.5 383.5,335.833 383.5,336.5C 385.962,340.44 387.628,344.774 388.5,349.5C 389.5,349.5 390.5,349.5 391.5,349.5C 389.723,350.6 387.723,351.434 385.5,352C 377.622,360.376 368.955,367.876 359.5,374.5C 358.311,375.429 356.978,375.762 355.5,375.5C 354.908,378.127 354.575,380.794 354.5,383.5C 353.5,383.5 352.5,383.5 351.5,383.5C 352.488,375.808 350.488,369.142 345.5,363.5C 350.893,361.636 355.893,358.969 360.5,355.5C 361.429,354.311 361.762,352.978 361.5,351.5C 364.157,351.838 366.49,351.171 368.5,349.5C 372.443,345.422 376.777,341.756 381.5,338.5C 382.386,337.675 382.719,336.675 382.5,335.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db485e",d:"M 584.5,367.5 C 584.577,371.215 584.244,374.881 583.5,378.5C 575.425,376.912 567.425,375.079 559.5,373C 548.619,371.811 537.952,372.644 527.5,375.5C 529.1,374.356 530.767,373.189 532.5,372C 544.5,371.667 556.5,371.333 568.5,371C 569.025,370.308 569.692,369.808 570.5,369.5C 572.395,371.632 574.562,371.966 577,370.5C 577.5,370.833 578,371.167 578.5,371.5C 575.851,375.575 577.185,377.575 582.5,377.5C 582.336,374.813 582.503,372.146 583,369.5C 583.278,368.584 583.778,367.918 584.5,367.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#fbfafb",d:"M 645.5,444.5 C 643.647,446.375 641.813,448.375 640,450.5C 636.167,447.333 632.333,444.167 628.5,441C 622.852,439.671 617.185,438.504 611.5,437.5C 610.081,436.549 608.415,436.216 606.5,436.5C 607.374,428.293 605.041,421.293 599.5,415.5C 597.898,411.991 595.398,410.658 592,411.5C 589.753,418.049 587.753,424.715 586,431.5C 582.51,436.313 579.677,441.48 577.5,447C 577.645,447.772 577.978,448.439 578.5,449C 582.363,450.732 586.363,452.066 590.5,453C 601.64,458.724 611.806,465.891 621,474.5C 625.192,480.21 627.692,486.543 628.5,493.5C 627.399,509.531 621.066,523.031 609.5,534C 601.708,539.9 593.041,543.567 583.5,545C 572.839,545.5 562.172,545.667 551.5,545.5C 550.446,550.107 549.779,554.773 549.5,559.5C 547.01,563.323 545.677,567.657 545.5,572.5C 535.64,571.049 525.974,569.049 516.5,566.5C 514.656,564.721 513.99,562.388 514.5,559.5C 517.981,551.263 521.314,542.929 524.5,534.5C 516.663,531.778 508.663,529.445 500.5,527.5C 487.907,524.038 476.574,518.204 466.5,510C 474.12,496.37 480.62,482.203 486,467.5C 487.34,466.132 488.674,464.799 490,463.5C 491.406,464.414 492.906,465.08 494.5,465.5C 502.01,466.791 509.344,468.958 516.5,472C 517.698,474.664 519.031,477.164 520.5,479.5C 519.572,487.332 519.572,494.999 520.5,502.5C 520.261,504.467 520.594,506.301 521.5,508C 525.887,510.245 530.554,511.411 535.5,511.5C 537.493,507.818 538.66,503.818 539,499.5C 543.304,493.495 546.304,486.829 548,479.5C 551.111,475.656 552.944,471.323 553.5,466.5C 548.294,464.851 542.961,463.351 537.5,462C 522.222,454.553 510.888,443.387 503.5,428.5C 500.193,416.822 501.026,405.488 506,394.5C 509.073,390.939 511.906,387.272 514.5,383.5C 518.241,381.12 522.241,379.12 526.5,377.5C 527.298,377.043 527.631,376.376 527.5,375.5C 537.952,372.644 548.619,371.811 559.5,373C 567.425,375.079 575.425,376.912 583.5,378.5C 584.244,374.881 584.577,371.215 584.5,367.5C 585.902,363.376 586.902,359.042 587.5,354.5C 591.459,353.34 595.459,353.173 599.5,354C 605.297,355.694 610.964,357.527 616.5,359.5C 616.66,361.199 616.494,362.866 616,364.5C 610.721,371.4 606.221,378.733 602.5,386.5C 619.109,389.313 633.276,396.646 645,408.5C 647.853,413.08 649.02,418.08 648.5,423.5C 647.288,430.381 646.288,437.381 645.5,444.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c91c39",d:"M 345.5,363.5 C 350.488,369.142 352.488,375.808 351.5,383.5C 351.167,383.5 350.833,383.5 350.5,383.5C 347.753,383.813 345.086,383.48 342.5,382.5C 340.079,379.104 337.746,375.771 335.5,372.5C 334.167,370.833 332.833,369.167 331.5,367.5C 328.468,366.001 326.968,363.668 327,360.5C 330.642,359.037 334.142,357.203 337.5,355C 339.259,354.202 340.926,354.369 342.5,355.5C 343.513,358.188 344.513,360.854 345.5,363.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f71a3d",d:"M 331.5,367.5 C 330.597,365.391 329.763,363.391 329,361.5C 333,360.167 337,358.833 341,357.5C 342.847,360.406 344.014,363.573 344.5,367C 341.937,369.281 338.937,370.448 335.5,370.5C 335.5,369.5 335.5,368.5 335.5,367.5C 334.167,367.5 332.833,367.5 331.5,367.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d8435b",d:"M 514.5,383.5 C 511.906,387.272 509.073,390.939 506,394.5C 501.026,405.488 500.193,416.822 503.5,428.5C 500.061,424.962 498.728,420.629 499.5,415.5C 500.33,408.514 500.997,401.514 501.5,394.5C 504.85,394.349 506.516,392.515 506.5,389C 506.415,387.893 506.081,386.893 505.5,386C 504.062,385.781 502.729,385.281 501.5,384.5C 503.396,383.534 505.396,383.201 507.5,383.5C 507.5,384.5 507.5,385.5 507.5,386.5C 508.833,386.5 510.167,386.5 511.5,386.5C 511.5,385.5 511.5,384.5 511.5,383.5C 512.5,383.5 513.5,383.5 514.5,383.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#84828e",d:"M 335.5,372.5 C 337.746,375.771 340.079,379.104 342.5,382.5C 345.086,383.48 347.753,383.813 350.5,383.5C 345.71,386.456 341.71,390.289 338.5,395C 337.552,395.483 336.552,395.649 335.5,395.5C 335.5,396.833 335.5,398.167 335.5,399.5C 333.678,399.831 332.011,400.498 330.5,401.5C 330.88,399.302 330.213,397.635 328.5,396.5C 327.465,391.428 325.132,387.095 321.5,383.5C 326.746,380.589 331.413,376.922 335.5,372.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dbcdb6",d:"M 458.5,227.5 C 466.897,229.574 475.23,232.074 483.5,235C 495.583,239.91 507.249,245.577 518.5,252C 528.215,260.05 538.215,267.716 548.5,275C 555.431,282.757 561.764,290.923 567.5,299.5C 567.565,299.938 567.399,300.272 567,300.5C 557.232,296.2 547.732,291.533 538.5,286.5C 527.257,276.21 515.257,266.876 502.5,258.5C 488.572,252.949 474.739,247.282 461,241.5C 425.676,232.069 389.843,229.902 353.5,235C 352.167,235.667 350.833,236.333 349.5,237C 336.761,238.176 324.095,239.842 311.5,242C 307.722,242.924 304.222,244.424 301,246.5C 269.847,253.839 240.68,265.673 213.5,282C 202.465,285.591 192.465,290.758 183.5,297.5C 180.833,298.167 178.167,298.833 175.5,299.5C 175.5,300.833 175.5,302.167 175.5,303.5C 168.243,304.636 162.243,308.136 157.5,314C 122.504,332.345 98.0042,360.178 84,397.5C 79.5487,413.914 78.382,430.581 80.5,447.5C 82.8224,453.161 85.1558,458.828 87.5,464.5C 93.0045,470.333 98.3378,476.333 103.5,482.5C 109.546,486.517 115.546,490.517 121.5,494.5C 129.119,495.161 136.453,496.828 143.5,499.5C 143.5,500.5 143.5,501.5 143.5,502.5C 164.857,505.32 186.19,504.986 207.5,501.5C 205.138,500.729 202.804,499.895 200.5,499C 205.729,498.651 210.896,499.151 216,500.5C 225.16,499.024 234.327,497.358 243.5,495.5C 245.619,495.598 247.286,496.431 248.5,498C 247.787,503.143 246.954,508.31 246,513.5C 245.667,512.833 245.333,512.167 245,511.5C 243.933,512.191 242.766,512.691 241.5,513C 242.737,513.232 243.737,513.732 244.5,514.5C 241.275,515.237 237.941,515.903 234.5,516.5C 227.651,517.47 220.818,517.47 214,516.5C 174.978,524.798 137.811,519.965 102.5,502C 60.6979,471.715 50.5312,432.881 72,385.5C 75.2613,379.879 78.428,374.212 81.5,368.5C 91.2623,355.762 101.262,343.429 111.5,331.5C 115.421,327.919 119.421,324.253 123.5,320.5C 139.694,308.905 156.361,298.072 173.5,288C 192,278.917 210.333,269.584 228.5,260C 244.811,254.168 260.811,247.834 276.5,241C 290.5,237 304.5,233 318.5,229C 335.052,225.362 351.719,222.362 368.5,220C 381.5,219.333 394.5,219.333 407.5,220C 424.554,222.174 441.554,224.674 458.5,227.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b0756e",d:"M 522.5,287.5 C 523.5,287.5 524.5,287.5 525.5,287.5C 525.369,288.376 525.702,289.043 526.5,289.5C 531.385,290.563 532.719,293.397 530.5,298C 524.843,298.499 519.176,298.666 513.5,298.5C 517.167,297.833 520.833,297.167 524.5,296.5C 525.5,296.5 526.5,296.5 527.5,296.5C 527.785,294.712 527.452,293.045 526.5,291.5C 524.625,290.591 523.292,289.257 522.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d44556",d:"M 264.5,271.5 C 261.315,273.568 257.648,274.901 253.5,275.5C 253.433,276.959 253.766,278.292 254.5,279.5C 252.863,278.782 251.197,278.616 249.5,279C 247.669,281.925 246.003,284.759 244.5,287.5C 244.5,285.5 244.5,283.5 244.5,281.5C 242.897,281.312 241.563,281.812 240.5,283C 241.731,284.183 241.731,285.349 240.5,286.5C 239.614,285.675 239.281,284.675 239.5,283.5C 234.87,284.958 230.87,287.458 227.5,291C 223.338,291.526 219.338,292.526 215.5,294C 214.663,295.011 214.33,296.178 214.5,297.5C 212.167,297.5 209.833,297.5 207.5,297.5C 208.936,295.917 210.602,294.417 212.5,293C 217.627,290.708 222.961,288.708 228.5,287C 230.833,285.333 233.167,283.667 235.5,282C 243.781,279.291 251.781,275.958 259.5,272C 261.134,271.506 262.801,271.34 264.5,271.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc515e",d:"M 308.5,255.5 C 307.766,256.708 307.433,258.041 307.5,259.5C 305.599,259.567 303.766,259.233 302,258.5C 296.651,261.928 290.817,263.761 284.5,264C 280.61,266.947 276.277,268.78 271.5,269.5C 277.239,265.531 283.572,263.031 290.5,262C 296.109,258.65 302.109,256.483 308.5,255.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d34357",d:"M 423.5,241.5 C 426.087,242.749 428.754,243.749 431.5,244.5C 420.931,242.598 410.265,242.098 399.5,243C 393.656,243.008 388.323,244.508 383.5,247.5C 383.5,246.5 383.5,245.5 383.5,244.5C 378.167,244.5 372.833,244.5 367.5,244.5C 372.642,243.353 377.975,242.52 383.5,242C 396.829,241.5 410.163,241.333 423.5,241.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b5a499",d:"M 423.5,241.5 C 410.163,241.333 396.829,241.5 383.5,242C 377.975,242.52 372.642,243.353 367.5,244.5C 364.833,244.5 362.167,244.5 359.5,244.5C 356.013,242.712 352.179,241.712 348,241.5C 343.175,242.633 338.342,243.966 333.5,245.5C 322.835,242.014 323.001,241.014 334,242.5C 338.461,240.705 343.127,239.705 348,239.5C 373.312,239.578 398.479,240.245 423.5,241.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#664531",d:"M 807.5,353.5 C 819.128,356.727 830.795,359.894 842.5,363C 856.167,367.5 869.834,372 883.5,376.5C 885.698,378.397 888.364,379.397 891.5,379.5C 905.374,383.97 919.374,388.137 933.5,392C 940.337,396.253 947.337,400.253 954.5,404C 968.695,414.886 979.695,428.386 987.5,444.5C 988.912,451.892 990.578,459.225 992.5,466.5C 991.5,466.5 990.5,466.5 989.5,466.5C 984.479,456.138 978.645,446.138 972,436.5C 964.743,430.131 957.243,424.131 949.5,418.5C 941.621,414.061 933.621,409.894 925.5,406C 908.41,400.638 891.41,394.805 874.5,388.5C 855.079,384.527 836.079,379.027 817.5,372C 809.459,369.915 801.459,367.915 793.5,366C 791.275,365.439 789.275,364.439 787.5,363C 760.775,355.969 734.442,348.135 708.5,339.5C 710.92,339.708 713.253,339.374 715.5,338.5C 716.696,338.846 716.696,339.346 715.5,340C 717.68,340.419 719.846,340.252 722,339.5C 726.43,340.704 730.93,341.538 735.5,342C 741.446,344.919 747.78,346.252 754.5,346C 757.44,346.212 759.274,347.712 760,350.5C 762.466,349.223 764.966,349.223 767.5,350.5C 767.291,351.086 766.957,351.586 766.5,352C 770.025,354.088 773.358,353.921 776.5,351.5C 778.246,353.854 780.579,354.854 783.5,354.5C 784.78,357.941 787.28,360.275 791,361.5C 791.483,362.448 791.649,363.448 791.5,364.5C 793.722,364.822 795.556,364.155 797,362.5C 798.813,363.609 799.646,362.942 799.5,360.5C 805.576,360.981 811.576,361.981 817.5,363.5C 822.064,363.518 823.064,362.018 820.5,359C 815.637,357.714 810.97,356.047 806.5,354C 806.728,353.601 807.062,353.435 807.5,353.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f8f7f8",d:"M 310.5,392.5 C 310.657,393.873 310.49,395.207 310,396.5C 307.8,397.836 305.967,399.502 304.5,401.5C 305.351,405.241 306.351,408.908 307.5,412.5C 302.489,412.334 297.489,412.501 292.5,413C 290.443,417.054 288.609,421.221 287,425.5C 285.008,426.328 283.508,427.661 282.5,429.5C 281.833,429.5 281.167,429.5 280.5,429.5C 280.167,429.5 279.833,429.5 279.5,429.5C 275.998,425.159 272.665,420.659 269.5,416C 268.207,415.51 266.873,415.343 265.5,415.5C 265.547,412.432 266.047,409.432 267,406.5C 269.582,404.772 271.082,402.439 271.5,399.5C 277.178,397.774 282.844,395.941 288.5,394C 290.453,391.047 291.953,387.881 293,384.5C 294.313,383.427 295.813,382.76 297.5,382.5C 302.94,384.259 307.273,387.592 310.5,392.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d97580",d:"M 399.5,385.5 C 395.361,389.468 391.027,393.301 386.5,397C 385.552,397.483 384.552,397.649 383.5,397.5C 383.5,397.167 383.5,396.833 383.5,396.5C 388.833,392.833 394.167,389.167 399.5,385.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#913349",d:"M 328.5,396.5 C 330.213,397.635 330.88,399.302 330.5,401.5C 330.5,401.833 330.5,402.167 330.5,402.5C 326.206,403.193 322.539,402.193 319.5,399.5C 322.841,400.005 326.174,400.172 329.5,400C 328.663,398.989 328.33,397.822 328.5,396.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bdb6ac",d:"M 183.5,297.5 C 181.326,299.081 178.993,300.581 176.5,302C 180.637,301.797 182.137,303.63 181,307.5C 178.832,308.822 178.999,309.489 181.5,309.5C 177.5,312.833 173.5,316.167 169.5,319.5C 166.02,320.229 162.686,321.229 159.5,322.5C 159.762,323.978 159.429,325.311 158.5,326.5C 153.589,329.783 148.589,332.783 143.5,335.5C 143.649,336.552 143.483,337.552 143,338.5C 138.371,341.794 134.038,345.461 130,349.5C 126.247,354.659 122.247,359.659 118,364.5C 114.136,370.659 110.803,376.992 108,383.5C 104.346,393.958 104.679,404.291 109,414.5C 111.399,417.942 114.565,420.276 118.5,421.5C 130.492,416.409 142.159,410.576 153.5,404C 159.061,402.539 164.728,401.706 170.5,401.5C 177.506,401.803 184.506,402.137 191.5,402.5C 191.279,404.664 190.279,406.33 188.5,407.5C 187.127,407.343 185.793,407.51 184.5,408C 174.739,414.361 164.406,420.028 153.5,425C 151.027,426.561 149.027,428.561 147.5,431C 146.207,431.49 144.873,431.657 143.5,431.5C 140.676,436.516 137.176,441.183 133,445.5C 131.323,449.316 129.489,452.982 127.5,456.5C 126.178,456.33 125.011,456.663 124,457.5C 123.333,467.167 123.333,476.833 124,486.5C 124.129,490.118 125.962,491.785 129.5,491.5C 133.833,494.344 138.5,496.011 143.5,496.5C 144.952,497.302 146.618,497.802 148.5,498C 163.006,498.827 177.339,498.661 191.5,497.5C 207.707,496.493 223.707,494.826 239.5,492.5C 243.81,491.92 248.143,491.586 252.5,491.5C 249.808,498.919 248.141,506.586 247.5,514.5C 246.5,514.5 245.5,514.5 244.5,514.5C 243.737,513.732 242.737,513.232 241.5,513C 242.766,512.691 243.933,512.191 245,511.5C 245.333,512.167 245.667,512.833 246,513.5C 246.954,508.31 247.787,503.143 248.5,498C 247.286,496.431 245.619,495.598 243.5,495.5C 234.327,497.358 225.16,499.024 216,500.5C 210.896,499.151 205.729,498.651 200.5,499C 202.804,499.895 205.138,500.729 207.5,501.5C 186.19,504.986 164.857,505.32 143.5,502.5C 143.5,501.5 143.5,500.5 143.5,499.5C 136.453,496.828 129.119,495.161 121.5,494.5C 115.546,490.517 109.546,486.517 103.5,482.5C 98.3378,476.333 93.0045,470.333 87.5,464.5C 85.1558,458.828 82.8224,453.161 80.5,447.5C 78.382,430.581 79.5487,413.914 84,397.5C 98.0042,360.178 122.504,332.345 157.5,314C 162.243,308.136 168.243,304.636 175.5,303.5C 175.5,302.167 175.5,300.833 175.5,299.5C 178.167,298.833 180.833,298.167 183.5,297.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#84868b",d:"M 310.5,392.5 C 312.611,395.941 315.611,398.274 319.5,399.5C 322.539,402.193 326.206,403.193 330.5,402.5C 328.842,403.181 327.175,404.015 325.5,405C 328.264,406.544 328.097,407.711 325,408.5C 324.693,411.876 322.86,413.21 319.5,412.5C 319.5,413.5 319.5,414.5 319.5,415.5C 318.167,415.5 316.833,415.5 315.5,415.5C 315.278,418.504 314.278,421.171 312.5,423.5C 309.45,422.923 307.45,424.09 306.5,427C 298.297,427.557 290.297,428.39 282.5,429.5C 283.508,427.661 285.008,426.328 287,425.5C 288.609,421.221 290.443,417.054 292.5,413C 297.489,412.501 302.489,412.334 307.5,412.5C 306.351,408.908 305.351,405.241 304.5,401.5C 305.967,399.502 307.8,397.836 310,396.5C 310.49,395.207 310.657,393.873 310.5,392.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e8304d",d:"M 573.5,402.5 C 574.748,403.334 575.415,404.667 575.5,406.5C 574.18,411.05 573.346,415.716 573,420.5C 570.527,425.92 568.86,431.586 568,437.5C 567.313,439.555 566.146,441.221 564.5,442.5C 558.493,438.326 553.327,433.326 549,427.5C 548.333,424.167 548.333,420.833 549,417.5C 554.09,412.801 559.59,408.635 565.5,405C 568.457,404.721 571.123,403.887 573.5,402.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db7181",d:"M 599.5,415.5 C 605.041,421.293 607.374,428.293 606.5,436.5C 608.415,436.216 610.081,436.549 611.5,437.5C 609.396,437.799 607.396,437.466 605.5,436.5C 605.611,430.129 603.777,424.463 600,419.5C 599.51,418.207 599.343,416.873 599.5,415.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d73e53",d:"M 188.5,407.5 C 185.888,409.083 183.221,410.75 180.5,412.5C 182.078,413.072 183.578,413.406 185,413.5C 186.77,411.582 188.937,411.082 191.5,412C 190.167,412.667 188.833,413.333 187.5,414C 182.536,414.97 177.536,415.47 172.5,415.5C 172.5,416.5 172.5,417.5 172.5,418.5C 173.5,418.5 174.5,418.5 175.5,418.5C 175.5,419.5 175.5,420.5 175.5,421.5C 173.325,421.318 171.325,420.651 169.5,419.5C 160.131,422.877 152.464,428.711 146.5,437C 143.234,437.718 140.401,439.218 138,441.5C 136.633,445.835 136.299,450.168 137,454.5C 136.784,452.616 136.117,450.949 135,449.5C 132.598,453.995 132.098,458.661 133.5,463.5C 131.167,463.5 128.833,463.5 126.5,463.5C 124.888,472.011 125.222,480.344 127.5,488.5C 126.034,487.653 125.2,486.32 125,484.5C 123.881,474.945 124.714,465.612 127.5,456.5C 129.489,452.982 131.323,449.316 133,445.5C 137.176,441.183 140.676,436.516 143.5,431.5C 144.873,431.657 146.207,431.49 147.5,431C 149.027,428.561 151.027,426.561 153.5,425C 164.406,420.028 174.739,414.361 184.5,408C 185.793,407.51 187.127,407.343 188.5,407.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8b6d77",d:"M 312.5,423.5 C 310.825,426.245 309.158,428.912 307.5,431.5C 299.038,431.523 290.371,431.356 281.5,431C 280.944,430.617 280.611,430.117 280.5,429.5C 281.167,429.5 281.833,429.5 282.5,429.5C 290.297,428.39 298.297,427.557 306.5,427C 307.45,424.09 309.45,422.923 312.5,423.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e6b1b7",d:"M 793.5,420.5 C 793.793,416.563 793.46,412.73 792.5,409C 787.816,408.539 783.149,408.705 778.5,409.5C 778.5,416.167 778.5,422.833 778.5,429.5C 775.807,429.572 773.14,429.905 770.5,430.5C 764.29,428.766 757.956,428.099 751.5,428.5C 760.008,427.396 768.675,427.396 777.5,428.5C 777.5,421.5 777.5,414.5 777.5,407.5C 783.167,407.5 788.833,407.5 794.5,407.5C 794.818,412.032 794.485,416.366 793.5,420.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f9f8fa",d:"M 793.5,420.5 C 792.518,423.962 792.185,427.629 792.5,431.5C 799.607,433.404 806.773,435.404 814,437.5C 818.127,439.634 821.627,442.467 824.5,446C 826.608,446.36 828.608,447.027 830.5,448C 828.418,454.101 825.418,459.768 821.5,465C 812.773,464.417 804.107,463.251 795.5,461.5C 795.472,456.862 796.139,452.362 797.5,448C 795.091,446.293 792.425,445.46 789.5,445.5C 789.5,446.833 789.5,448.167 789.5,449.5C 787.192,457.627 785.192,465.96 783.5,474.5C 783.543,475.416 783.876,476.083 784.5,476.5C 795.796,478.909 806.796,482.743 817.5,488C 820.704,490.869 823.537,494.035 826,497.5C 827.7,513.085 822.533,525.751 810.5,535.5C 799.558,542.23 787.558,545.563 774.5,545.5C 774.504,554.889 772.837,563.889 769.5,572.5C 768.817,572.137 768.15,571.804 767.5,571.5C 764.854,570.836 762.021,570.502 759,570.5C 754.867,570.286 751.034,570.952 747.5,572.5C 746.275,571.848 745.608,570.681 745.5,569C 746.749,562.923 748.582,557.09 751,551.5C 751.497,548.854 751.664,546.187 751.5,543.5C 739.497,541.84 727.497,539.506 715.5,536.5C 714.592,534.548 714.759,532.548 716,530.5C 721.584,521.332 726.084,511.665 729.5,501.5C 735.884,501.757 742.218,502.423 748.5,503.5C 747.926,509.484 747.593,515.484 747.5,521.5C 751.474,522.805 755.474,524.138 759.5,525.5C 760.442,525.392 761.275,525.059 762,524.5C 764.57,514.257 766.403,503.924 767.5,493.5C 756.687,491.162 746.02,487.995 735.5,484C 724.591,476.673 720.425,466.506 723,453.5C 727.479,439.213 736.979,430.88 751.5,428.5C 757.956,428.099 764.29,428.766 770.5,430.5C 773.14,429.905 775.807,429.572 778.5,429.5C 778.5,422.833 778.5,416.167 778.5,409.5C 783.149,408.705 787.816,408.539 792.5,409C 793.46,412.73 793.793,416.563 793.5,420.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bdb6ab",d:"M 863.5,400.5 C 875.42,404.629 887.42,408.463 899.5,412C 905.806,412.105 911.806,413.439 917.5,416C 925.189,420.456 932.522,425.456 939.5,431C 940.793,431.49 942.127,431.657 943.5,431.5C 943.822,435.511 945.822,438.511 949.5,440.5C 953.825,445.811 957.658,451.478 961,457.5C 966.293,475.098 968.293,493.098 967,511.5C 966.3,516.733 964.133,521.233 960.5,525C 956.571,526.929 953.238,529.596 950.5,533C 948.559,534.903 946.226,535.736 943.5,535.5C 943.5,536.5 943.5,537.5 943.5,538.5C 939.947,539.397 936.614,540.897 933.5,543C 931.527,543.495 929.527,543.662 927.5,543.5C 927.64,545.124 926.973,546.29 925.5,547C 921.091,549.383 916.424,551.05 911.5,552C 885.733,564.54 860.066,577.373 834.5,590.5C 828.254,593.125 821.921,595.459 815.5,597.5C 815.5,596.167 815.5,594.833 815.5,593.5C 813.076,593.808 810.743,593.474 808.5,592.5C 812.731,590.523 817.065,589.856 821.5,590.5C 825.081,588.841 825.081,587.675 821.5,587C 822.858,586.066 824.192,585.232 825.5,584.5C 828.86,582.428 832.194,580.261 835.5,578C 839.396,576.634 843.396,575.467 847.5,574.5C 849.162,573.673 850.495,572.507 851.5,571C 859.754,567.471 868.087,564.138 876.5,561C 886.15,554.352 896.483,549.019 907.5,545C 917.487,538.85 927.487,533.017 937.5,527.5C 939.606,526.217 941.94,525.384 944.5,525C 945.893,523.829 946.727,522.329 947,520.5C 947.667,510.167 947.667,499.833 947,489.5C 944.629,486.281 945.296,483.948 949,482.5C 949.483,481.552 949.649,480.552 949.5,479.5C 946.753,479.813 944.086,479.48 941.5,478.5C 940.995,477.081 939.995,476.415 938.5,476.5C 934.438,470.593 929.105,466.427 922.5,464C 911.181,462.33 899.848,462.33 888.5,464C 880.859,466.826 873.526,470.326 866.5,474.5C 865.386,473.277 865.219,471.944 866,470.5C 867.634,467.52 869.3,464.52 871,461.5C 872.154,460.257 873.488,459.257 875,458.5C 875.112,455.553 876.612,454.22 879.5,454.5C 879.281,453.325 879.614,452.325 880.5,451.5C 888.684,444.407 898.017,439.407 908.5,436.5C 911.518,436.665 914.518,436.498 917.5,436C 920.07,433.085 919.737,430.419 916.5,428C 911.279,427.728 906.279,426.728 901.5,425C 900.529,423.519 899.196,422.685 897.5,422.5C 874.113,416.071 851.113,408.738 828.5,400.5C 836.155,399.69 843.822,399.523 851.5,400C 855.923,400.266 859.923,401.433 863.5,403.5C 863.5,402.5 863.5,401.5 863.5,400.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ad9e8b",d:"M 111.5,331.5 C 101.262,343.429 91.2623,355.762 81.5,368.5C 78.428,374.212 75.2613,379.879 72,385.5C 50.5312,432.881 60.6979,471.715 102.5,502C 137.811,519.965 174.978,524.798 214,516.5C 220.818,517.47 227.651,517.47 234.5,516.5C 225.755,518.55 216.755,519.55 207.5,519.5C 207.5,520.833 207.5,522.167 207.5,523.5C 192.232,523.423 176.898,522.923 161.5,522C 156.556,521.278 151.722,520.112 147,518.5C 142.378,519.459 142.378,520.459 147,521.5C 147.72,523.112 147.554,524.612 146.5,526C 144.671,526.273 143.171,527.107 142,528.5C 138.665,527.166 135.499,527.499 132.5,529.5C 126.156,527.829 119.823,525.996 113.5,524C 103.156,517.83 93.156,511.163 83.5,504C 77.4489,497.404 71.2822,490.904 65,484.5C 63.9811,481.128 62.4811,478.128 60.5,475.5C 59.6285,473.437 58.4618,471.437 57,469.5C 55.2578,461.942 52.9245,454.608 50,447.5C 49.3333,439.167 49.3333,430.833 50,422.5C 53.5496,406.927 59.2162,392.26 67,378.5C 71.8021,372.878 75.9688,366.878 79.5,360.5C 86.6035,352.895 93.9368,345.395 101.5,338C 104.72,335.563 108.053,333.397 111.5,331.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#942134",d:"M 279.5,429.5 C 279.833,429.5 280.167,429.5 280.5,429.5C 280.611,430.117 280.944,430.617 281.5,431C 290.371,431.356 299.038,431.523 307.5,431.5C 301.238,442.72 296.572,454.72 293.5,467.5C 291.449,473.555 289.449,479.722 287.5,486C 275.574,488.157 263.574,489.657 251.5,490.5C 251.227,488.042 252.227,486.375 254.5,485.5C 255.324,482.215 255.824,478.882 256,475.5C 257.158,475.002 257.991,474.169 258.5,473C 261.325,464.1 264.659,455.6 268.5,447.5C 269.5,447.5 270.5,447.5 271.5,447.5C 271.34,445.801 271.506,444.134 272,442.5C 274.323,439.874 276.657,437.207 279,434.5C 279.494,432.866 279.66,431.199 279.5,429.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#623d29",d:"M 79.5,360.5 C 75.9688,366.878 71.8021,372.878 67,378.5C 59.2162,392.26 53.5496,406.927 50,422.5C 49.3333,430.833 49.3333,439.167 50,447.5C 52.9245,454.608 55.2578,461.942 57,469.5C 58.4618,471.437 59.6285,473.437 60.5,475.5C 60.6551,482.297 61.6551,488.963 63.5,495.5C 61.8333,495.5 60.1667,495.5 58.5,495.5C 58.7989,493.396 58.4656,491.396 57.5,489.5C 53.7966,486.423 51.9632,482.423 52,477.5C 50.7321,474.407 48.8988,471.74 46.5,469.5C 34.7697,479.497 32.4364,491.497 39.5,505.5C 40.8924,504.395 42.059,503.061 43,501.5C 44.0429,504.757 44.5429,508.09 44.5,511.5C 45.5,511.5 46.5,511.5 47.5,511.5C 47.5,512.5 47.5,513.5 47.5,514.5C 46.325,514.281 45.325,514.614 44.5,515.5C 45.3094,517.071 45.6427,518.738 45.5,520.5C 48.7553,520.014 51.422,521.014 53.5,523.5C 54.2281,526.212 55.0615,528.879 56,531.5C 59.5502,531.842 60.7169,533.509 59.5,536.5C 55.9044,533.083 52.0711,529.75 48,526.5C 34.071,511.777 30.4044,494.777 37,475.5C 40.8984,470.37 43.7317,464.703 45.5,458.5C 37.5057,423.146 43.5057,390.48 63.5,360.5C 65.8202,359.238 68.1535,358.238 70.5,357.5C 70.1667,356.833 69.8333,356.167 69.5,355.5C 72.2592,352.08 74.5925,348.414 76.5,344.5C 77.2421,343.713 78.0754,343.047 79,342.5C 83.2999,343.665 85.7999,341.999 86.5,337.5C 89.4799,337.641 91.4799,339.141 92.5,342C 91.0068,344.496 89.5068,346.996 88,349.5C 87.6667,349.167 87.3333,348.833 87,348.5C 86.3632,350.303 85.1965,351.636 83.5,352.5C 81.6565,354.982 80.3231,357.649 79.5,360.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf9496",d:"M 127.5,456.5 C 124.714,465.612 123.881,474.945 125,484.5C 125.2,486.32 126.034,487.653 127.5,488.5C 127.782,489.778 128.449,490.778 129.5,491.5C 125.962,491.785 124.129,490.118 124,486.5C 123.333,476.833 123.333,467.167 124,457.5C 125.011,456.663 126.178,456.33 127.5,456.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#9b7775",d:"M 293.5,467.5 C 292.556,475.088 290.889,482.421 288.5,489.5C 285.454,488.115 282.454,488.281 279.5,490C 270.503,490.625 261.503,491.125 252.5,491.5C 248.143,491.586 243.81,491.92 239.5,492.5C 243.21,490.864 247.21,490.198 251.5,490.5C 263.574,489.657 275.574,488.157 287.5,486C 289.449,479.722 291.449,473.555 293.5,467.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#7d8079",d:"M 288.5,489.5 C 288.5,495.167 288.5,500.833 288.5,506.5C 275.001,510 261.334,512.667 247.5,514.5C 248.141,506.586 249.808,498.919 252.5,491.5C 261.503,491.125 270.503,490.625 279.5,490C 282.454,488.281 285.454,488.115 288.5,489.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#be6d76",d:"M 143.5,496.5 C 159.483,497.366 175.483,497.7 191.5,497.5C 177.339,498.661 163.006,498.827 148.5,498C 146.618,497.802 144.952,497.302 143.5,496.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#68341f",d:"M 63.5,495.5 C 65.7633,500.525 67.4299,505.859 68.5,511.5C 69.5,511.5 70.5,511.5 71.5,511.5C 73.7244,519.914 77.5577,527.58 83,534.5C 83.5323,537.264 84.3657,539.93 85.5,542.5C 87.396,543.466 89.396,543.799 91.5,543.5C 90.9999,547.164 92.1666,550.164 95,552.5C 95.4966,554.81 95.6633,557.143 95.5,559.5C 94.1779,559.67 93.0113,559.337 92,558.5C 89.7115,553.98 86.8782,549.813 83.5,546C 76.7694,544.697 70.4361,545.53 64.5,548.5C 61.5342,550.569 58.7009,552.902 56,555.5C 55.51,556.793 55.3433,558.127 55.5,559.5C 51.5962,559.061 49.0962,560.728 48,564.5C 46.8653,568.79 46.0319,573.123 45.5,577.5C 45.8012,584.098 48.4678,589.431 53.5,593.5C 57.1588,597.175 61.4921,599.509 66.5,600.5C 89.115,613.976 113.782,621.309 140.5,622.5C 140.5,622.833 140.5,623.167 140.5,623.5C 127.444,623.62 114.777,621.787 102.5,618C 91.0222,616.956 79.6888,615.123 68.5,612.5C 62.3956,609.614 56.3956,606.447 50.5,603C 46.2792,598.779 42.1126,594.613 38,590.5C 30.9984,577.843 32.3317,566.176 42,555.5C 47.7815,549.114 54.7815,544.78 63,542.5C 63.3494,539.669 62.1827,537.669 59.5,536.5C 60.7169,533.509 59.5502,531.842 56,531.5C 55.0615,528.879 54.2281,526.212 53.5,523.5C 51.422,521.014 48.7553,520.014 45.5,520.5C 45.6427,518.738 45.3094,517.071 44.5,515.5C 45.325,514.614 46.325,514.281 47.5,514.5C 47.5,513.5 47.5,512.5 47.5,511.5C 46.5,511.5 45.5,511.5 44.5,511.5C 44.5429,508.09 44.0429,504.757 43,501.5C 42.059,503.061 40.8924,504.395 39.5,505.5C 32.4364,491.497 34.7697,479.497 46.5,469.5C 48.8988,471.74 50.7321,474.407 52,477.5C 51.9632,482.423 53.7966,486.423 57.5,489.5C 58.4656,491.396 58.7989,493.396 58.5,495.5C 60.1667,495.5 61.8333,495.5 63.5,495.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a29080",d:"M 244.5,514.5 C 245.5,514.5 246.5,514.5 247.5,514.5C 247.177,520.8 245.844,526.8 243.5,532.5C 216.007,536.213 188.34,537.713 160.5,537C 150.797,535.593 141.463,533.093 132.5,529.5C 135.499,527.499 138.665,527.166 142,528.5C 143.171,527.107 144.671,526.273 146.5,526C 147.554,524.612 147.72,523.112 147,521.5C 142.378,520.459 142.378,519.459 147,518.5C 151.722,520.112 156.556,521.278 161.5,522C 176.898,522.923 192.232,523.423 207.5,523.5C 207.5,522.167 207.5,520.833 207.5,519.5C 216.755,519.55 225.755,518.55 234.5,516.5C 237.941,515.903 241.275,515.237 244.5,514.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bfb6ac",d:"M 390.5,383.5 C 391.234,384.708 391.567,386.041 391.5,387.5C 390.167,387.5 388.833,387.5 387.5,387.5C 387.338,389.824 386.172,391.491 384,392.5C 383.51,393.793 383.343,395.127 383.5,396.5C 383.5,396.833 383.5,397.167 383.5,397.5C 382.016,399.397 380.182,401.064 378,402.5C 377.833,403.333 377.667,404.167 377.5,405C 381.286,412.716 384.786,420.55 388,428.5C 390.166,447.581 384.832,463.914 372,477.5C 368.644,484.09 364.144,489.756 358.5,494.5C 357.311,495.429 355.978,495.762 354.5,495.5C 354.5,496.5 354.5,497.5 354.5,498.5C 353.448,498.351 352.448,498.517 351.5,499C 348.883,501.442 346.55,503.942 344.5,506.5C 339.453,510.353 336.453,515.353 335.5,521.5C 346.172,521.333 356.839,521.5 367.5,522C 374.103,524.139 380.769,525.972 387.5,527.5C 390.435,530.093 393.435,532.76 396.5,535.5C 398.772,539.259 400.438,543.259 401.5,547.5C 403.273,556.718 403.94,566.051 403.5,575.5C 401.695,584.954 401.195,594.62 402,604.5C 403.577,607.199 405.743,607.866 408.5,606.5C 411.5,601.833 414.5,597.167 417.5,592.5C 422.83,588.501 427.83,584.167 432.5,579.5C 437.417,576.802 442.417,574.469 447.5,572.5C 451.529,572.047 455.529,571.38 459.5,570.5C 461.384,570.716 463.051,571.383 464.5,572.5C 465.429,571.311 465.762,569.978 465.5,568.5C 468.247,568.187 470.914,568.52 473.5,569.5C 471.611,571.432 469.611,573.265 467.5,575C 468.448,575.483 469.448,575.649 470.5,575.5C 468.448,587.028 467.948,598.695 469,610.5C 469.383,611.056 469.883,611.389 470.5,611.5C 472.053,614.24 473.886,616.907 476,619.5C 476.49,620.793 476.657,622.127 476.5,623.5C 477.5,623.5 478.5,623.5 479.5,623.5C 479.281,624.675 479.614,625.675 480.5,626.5C 485.136,630.655 490.136,634.155 495.5,637C 511.459,640.491 527.459,642.991 543.5,644.5C 538.167,644.5 532.833,644.5 527.5,644.5C 527.5,645.5 527.5,646.5 527.5,647.5C 523.501,647.091 519.834,647.925 516.5,650C 523.192,650.453 529.859,650.119 536.5,649C 534.608,648.027 532.608,647.36 530.5,647C 540.161,646.5 549.828,646.334 559.5,646.5C 559.5,647.5 559.5,648.5 559.5,649.5C 554.167,649.5 548.833,649.5 543.5,649.5C 543.5,650.5 543.5,651.5 543.5,652.5C 532.742,653.223 522.075,653.889 511.5,654.5C 492.203,652.14 473.536,647.307 455.5,640C 451.442,639.66 447.442,638.993 443.5,638C 430.779,631.639 418.112,625.306 405.5,619C 399.708,615.042 394.375,610.542 389.5,605.5C 382.07,602.46 375.737,597.96 370.5,592C 366.822,591.991 364.655,590.157 364,586.5C 352.808,576.309 343.475,564.643 336,551.5C 335.503,548.854 335.336,546.187 335.5,543.5C 334.167,543.5 332.833,543.5 331.5,543.5C 328.79,535.693 326.457,527.693 324.5,519.5C 323.334,508.849 323.168,498.182 324,487.5C 326.37,477.347 329.037,467.347 332,457.5C 334.124,451.697 337.124,446.363 341,441.5C 341.333,439.833 341.667,438.167 342,436.5C 345.434,431.284 349.101,426.284 353,421.5C 361.973,413.86 370.306,405.527 378,396.5C 379.039,394.254 380.206,392.087 381.5,390C 383.134,389.506 384.801,389.34 386.5,389.5C 387.253,387.12 388.587,385.12 390.5,383.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#403025",d:"M 288.5,506.5 C 288.232,508.099 288.566,509.432 289.5,510.5C 289.808,512.924 289.474,515.257 288.5,517.5C 281.076,527.678 277.742,539.178 278.5,552C 278.767,556.512 279.101,561.012 279.5,565.5C 276.977,566.384 274.31,567.218 271.5,568C 261.555,569.706 251.555,570.872 241.5,571.5C 241.167,571.5 240.833,571.5 240.5,571.5C 239.879,558.317 240.879,545.317 243.5,532.5C 245.844,526.8 247.177,520.8 247.5,514.5C 261.334,512.667 275.001,510 288.5,506.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6a5345",d:"M 60.5,475.5 C 62.4811,478.128 63.9811,481.128 65,484.5C 71.2822,490.904 77.4489,497.404 83.5,504C 93.156,511.163 103.156,517.83 113.5,524C 119.823,525.996 126.156,527.829 132.5,529.5C 141.463,533.093 150.797,535.593 160.5,537C 188.34,537.713 216.007,536.213 243.5,532.5C 240.879,545.317 239.879,558.317 240.5,571.5C 200.499,571.667 160.499,571.5 120.5,571C 114.68,570.725 109.013,569.725 103.5,568C 100.726,565.746 99.0593,562.913 98.5,559.5C 97.5,559.5 96.5,559.5 95.5,559.5C 95.6633,557.143 95.4966,554.81 95,552.5C 92.1666,550.164 90.9999,547.164 91.5,543.5C 89.396,543.799 87.396,543.466 85.5,542.5C 84.3657,539.93 83.5323,537.264 83,534.5C 77.5577,527.58 73.7244,519.914 71.5,511.5C 70.5,511.5 69.5,511.5 68.5,511.5C 67.4299,505.859 65.7633,500.525 63.5,495.5C 61.6551,488.963 60.6551,482.297 60.5,475.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#846e5e",d:"M 987.5,444.5 C 989.159,445.834 990.492,447.501 991.5,449.5C 994.764,459.008 998.264,468.342 1002,477.5C 1002.67,490.167 1002.67,502.833 1002,515.5C 999.713,526.011 996.213,536.011 991.5,545.5C 990.609,544.89 989.609,544.557 988.5,544.5C 990.45,534.805 992.617,525.138 995,515.5C 998.072,498.439 996.238,482.106 989.5,466.5C 990.5,466.5 991.5,466.5 992.5,466.5C 990.578,459.225 988.912,451.892 987.5,444.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6a5244",d:"M 289.5,510.5 C 293.239,533.663 301.239,555.329 313.5,575.5C 317.818,580.14 321.651,585.14 325,590.5C 327.382,592.259 329.548,594.259 331.5,596.5C 332.386,597.325 332.719,598.325 332.5,599.5C 341.21,607.031 349.876,614.864 358.5,623C 364.846,625.574 370.179,629.574 374.5,635C 401.04,651.925 429.706,664.591 460.5,673C 462.527,675.681 465.193,677.347 468.5,678C 479.502,680.739 490.502,683.405 501.5,686C 515.597,688.012 529.597,690.512 543.5,693.5C 538.695,694.487 533.695,694.821 528.5,694.5C 528.012,697.711 528.679,700.544 530.5,703C 528.185,708.954 525.685,714.787 523,720.5C 521.666,723.589 519.499,725.922 516.5,727.5C 515.548,729.045 515.215,730.712 515.5,732.5C 513.517,732.157 512.183,732.824 511.5,734.5C 506.328,732.665 500.995,731.665 495.5,731.5C 495.5,729.833 495.5,728.167 495.5,726.5C 490.479,724.245 485.146,722.911 479.5,722.5C 479.5,721.5 479.5,720.5 479.5,719.5C 476.15,719.665 472.817,719.498 469.5,719C 468.5,718 467.5,717 466.5,716C 452.834,709.261 438.5,704.928 423.5,703C 421.506,700.28 418.839,698.78 415.5,698.5C 415.5,697.5 415.5,696.5 415.5,695.5C 411.831,696.303 409.164,695.136 407.5,692C 404.883,691.178 402.216,690.678 399.5,690.5C 399.5,689.5 399.5,688.5 399.5,687.5C 395.719,688.211 392.719,687.045 390.5,684C 388.26,683.023 385.927,682.523 383.5,682.5C 383.5,681.167 383.5,679.833 383.5,678.5C 377.238,679.33 372.904,676.997 370.5,671.5C 369.5,671.5 368.5,671.5 367.5,671.5C 367.5,670.5 367.5,669.5 367.5,668.5C 359.809,666.989 353.476,663.155 348.5,657C 338.988,651.165 330.321,644.165 322.5,636C 321.552,635.517 320.552,635.351 319.5,635.5C 318.093,631.56 315.593,628.226 312,625.5C 304.057,615.91 297.391,605.577 292,594.5C 291.092,592.561 289.592,591.561 287.5,591.5C 288.036,588.335 287.203,585.669 285,583.5C 283.634,577.243 281.8,571.243 279.5,565.5C 279.101,561.012 278.767,556.512 278.5,552C 277.742,539.178 281.076,527.678 288.5,517.5C 289.474,515.257 289.808,512.924 289.5,510.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#90442c",d:"M 95.5,559.5 C 97.2432,563.288 98.5766,567.288 99.5,571.5C 108.922,571.709 118.255,572.709 127.5,574.5C 165.494,575.5 203.494,575.833 241.5,575.5C 243.935,582.168 245.435,589.168 246,596.5C 248.032,599.368 249.865,602.368 251.5,605.5C 252.524,606.853 253.857,607.52 255.5,607.5C 255.5,609.833 255.5,612.167 255.5,614.5C 244.498,615.83 233.831,617.497 223.5,619.5C 212.767,619.747 202.1,620.747 191.5,622.5C 174.513,623.499 157.513,623.833 140.5,623.5C 140.5,623.167 140.5,622.833 140.5,622.5C 148.84,622.666 157.173,622.5 165.5,622C 165.167,621.667 164.833,621.333 164.5,621C 150.618,619.123 136.951,616.457 123.5,613C 115.204,609.132 106.537,606.132 97.5,604C 89.0839,599.973 80.5839,596.139 72,592.5C 68.9279,594.31 67.0946,596.976 66.5,600.5C 61.4921,599.509 57.1588,597.175 53.5,593.5C 48.4678,589.431 45.8012,584.098 45.5,577.5C 46.0319,573.123 46.8653,568.79 48,564.5C 49.0962,560.728 51.5962,559.061 55.5,559.5C 55.3433,558.127 55.51,556.793 56,555.5C 58.7009,552.902 61.5342,550.569 64.5,548.5C 70.4361,545.53 76.7694,544.697 83.5,546C 86.8782,549.813 89.7115,553.98 92,558.5C 93.0113,559.337 94.1779,559.67 95.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#785e50",d:"M 943.5,617.5 C 936.896,620.014 930.229,622.847 923.5,626C 919.582,627.156 915.582,627.656 911.5,627.5C 911.5,628.5 911.5,629.5 911.5,630.5C 906.213,631.342 900.88,631.676 895.5,631.5C 895.5,633.167 895.5,634.833 895.5,636.5C 892.813,636.341 890.48,637.175 888.5,639C 885.518,639.498 882.518,639.665 879.5,639.5C 879.5,640.5 879.5,641.5 879.5,642.5C 872.564,645.498 865.23,647.331 857.5,648C 856.449,649.385 855.116,650.385 853.5,651C 849.511,651.551 845.844,652.884 842.5,655C 838.848,655.499 835.182,655.665 831.5,655.5C 831.5,656.5 831.5,657.5 831.5,658.5C 829.396,658.201 827.396,658.534 825.5,659.5C 818.692,662.056 812.025,664.889 805.5,668C 803.527,668.495 801.527,668.662 799.5,668.5C 799.5,669.5 799.5,670.5 799.5,671.5C 794.167,671.5 788.833,671.5 783.5,671.5C 783.5,672.5 783.5,673.5 783.5,674.5C 776.073,676.891 768.573,679.224 761,681.5C 759.831,682.009 758.998,682.842 758.5,684C 749.084,685.616 739.751,687.616 730.5,690C 726.848,690.499 723.182,690.665 719.5,690.5C 719.5,691.5 719.5,692.5 719.5,693.5C 714.233,694.816 708.9,695.816 703.5,696.5C 703.5,697.5 703.5,698.5 703.5,699.5C 699.894,699.309 696.894,700.476 694.5,703C 689.5,703.333 684.5,703.667 679.5,704C 677.091,705.707 674.425,706.54 671.5,706.5C 671.5,707.833 671.5,709.167 671.5,710.5C 662.466,711.143 653.633,713.143 645,716.5C 637.88,717.935 630.714,718.935 623.5,719.5C 623.5,720.5 623.5,721.5 623.5,722.5C 609.873,723.938 596.539,726.771 583.5,731C 573.423,732.477 563.423,734.144 553.5,736C 545.473,740.619 536.806,743.119 527.5,743.5C 527.5,742.167 527.5,740.833 527.5,739.5C 523.733,740.074 520.733,738.907 518.5,736C 516.19,735.503 513.857,735.337 511.5,735.5C 511.5,735.167 511.5,734.833 511.5,734.5C 512.183,732.824 513.517,732.157 515.5,732.5C 515.215,730.712 515.548,729.045 516.5,727.5C 519.499,725.922 521.666,723.589 523,720.5C 525.685,714.787 528.185,708.954 530.5,703C 528.679,700.544 528.012,697.711 528.5,694.5C 533.695,694.821 538.695,694.487 543.5,693.5C 556.846,693.666 570.179,693.333 583.5,692.5C 597.523,690.107 611.523,687.607 625.5,685C 640.299,683.469 654.966,680.969 669.5,677.5C 704.396,667.48 739.229,657.147 774,646.5C 779.372,643.153 785.206,640.986 791.5,640C 834.501,624.227 877.168,607.894 919.5,591C 936.581,582.899 953.581,574.565 970.5,566C 973.567,563.352 976.734,560.852 980,558.5C 980.49,557.207 980.657,555.873 980.5,554.5C 983.248,554.598 983.914,553.598 982.5,551.5C 983.15,551.196 983.817,550.863 984.5,550.5C 984.984,553.626 986.317,556.293 988.5,558.5C 987.751,568.134 987.084,577.801 986.5,587.5C 984.301,592.204 982.968,597.204 982.5,602.5C 980.382,603.946 978.049,604.613 975.5,604.5C 975.5,605.5 975.5,606.5 975.5,607.5C 965.659,610.328 955.659,612.995 945.5,615.5C 944.287,615.747 943.62,616.414 943.5,617.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#7f4933",d:"M 95.5,559.5 C 96.5,559.5 97.5,559.5 98.5,559.5C 99.0593,562.913 100.726,565.746 103.5,568C 109.013,569.725 114.68,570.725 120.5,571C 160.499,571.5 200.499,571.667 240.5,571.5C 240.833,571.5 241.167,571.5 241.5,571.5C 241.5,572.833 241.5,574.167 241.5,575.5C 203.494,575.833 165.494,575.5 127.5,574.5C 118.255,572.709 108.922,571.709 99.5,571.5C 98.5766,567.288 97.2432,563.288 95.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5c2d1b",d:"M 279.5,565.5 C 281.8,571.243 283.634,577.243 285,583.5C 287.203,585.669 288.036,588.335 287.5,591.5C 289.592,591.561 291.092,592.561 292,594.5C 297.391,605.577 304.057,615.91 312,625.5C 315.593,628.226 318.093,631.56 319.5,635.5C 320.552,635.351 321.552,635.517 322.5,636C 330.321,644.165 338.988,651.165 348.5,657C 353.476,663.155 359.809,666.989 367.5,668.5C 367.5,669.5 367.5,670.5 367.5,671.5C 368.5,671.5 369.5,671.5 370.5,671.5C 369.544,673.516 368.21,675.349 366.5,677C 363.061,677.441 360.394,679.108 358.5,682C 356.19,682.497 353.857,682.663 351.5,682.5C 347.283,678.556 342.283,675.889 336.5,674.5C 335.614,673.675 335.281,672.675 335.5,671.5C 332.021,670.796 328.688,669.63 325.5,668C 319.37,665.066 313.704,661.399 308.5,657C 306.975,655.991 305.308,655.491 303.5,655.5C 303.719,654.325 303.386,653.325 302.5,652.5C 296.473,648.791 290.473,645.124 284.5,641.5C 282,644.375 279.333,647.041 276.5,649.5C 276.666,643.491 276.499,637.491 276,631.5C 271.097,628.465 266.93,624.632 263.5,620C 258.087,619.755 252.587,619.255 247,618.5C 239.18,619.187 231.347,619.52 223.5,619.5C 233.831,617.497 244.498,615.83 255.5,614.5C 255.5,612.167 255.5,609.833 255.5,607.5C 253.857,607.52 252.524,606.853 251.5,605.5C 249.865,602.368 248.032,599.368 246,596.5C 245.435,589.168 243.935,582.168 241.5,575.5C 241.5,574.167 241.5,572.833 241.5,571.5C 251.555,570.872 261.555,569.706 271.5,568C 274.31,567.218 276.977,566.384 279.5,565.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c67c69",d:"M 140.5,622.5 C 113.782,621.309 89.115,613.976 66.5,600.5C 67.0946,596.976 68.9279,594.31 72,592.5C 80.5839,596.139 89.0839,599.973 97.5,604C 106.537,606.132 115.204,609.132 123.5,613C 136.951,616.457 150.618,619.123 164.5,621C 164.833,621.333 165.167,621.667 165.5,622C 157.173,622.5 148.84,622.666 140.5,622.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5c3825",d:"M 68.5,612.5 C 79.6888,615.123 91.0222,616.956 102.5,618C 114.777,621.787 127.444,623.62 140.5,623.5C 157.513,623.833 174.513,623.499 191.5,622.5C 202.1,620.747 212.767,619.747 223.5,619.5C 231.347,619.52 239.18,619.187 247,618.5C 252.587,619.255 258.087,619.755 263.5,620C 266.93,624.632 271.097,628.465 276,631.5C 276.499,637.491 276.666,643.491 276.5,649.5C 277.002,653.764 278.002,657.93 279.5,662C 278.472,665.221 277.306,668.388 276,671.5C 275.667,671.167 275.333,670.833 275,670.5C 274.121,682.566 273.621,694.566 273.5,706.5C 275.012,711.882 276.846,717.215 279,722.5C 280.667,723.5 282.333,724.5 284,725.5C 284.483,726.448 284.649,727.448 284.5,728.5C 285.93,728.421 287.264,728.754 288.5,729.5C 290.488,728.711 290.821,727.545 289.5,726C 297.126,725.737 298.126,727.904 292.5,732.5C 291.614,733.325 291.281,734.325 291.5,735.5C 293.76,736.139 295.76,737.306 297.5,739C 300.233,739.758 302.733,739.258 305,737.5C 308.539,738.173 312.039,739.006 315.5,740C 315.957,740.414 316.291,740.914 316.5,741.5C 315.372,742.262 314.205,742.929 313,743.5C 310.165,742.58 307.332,741.58 304.5,740.5C 303.571,741.689 303.238,743.022 303.5,744.5C 308.456,744.436 312.623,746.102 316,749.5C 317.011,748.663 318.178,748.33 319.5,748.5C 319.5,749.5 319.5,750.5 319.5,751.5C 298.322,745.644 282.488,732.977 272,713.5C 268.908,706.207 267.408,698.54 267.5,690.5C 269.139,675.217 271.473,660.05 274.5,645C 273.207,637.084 269.54,630.417 263.5,625C 259.343,623.335 255.01,622.502 250.5,622.5C 226.107,624.425 201.774,626.758 177.5,629.5C 153.528,630.724 129.861,628.724 106.5,623.5C 95.9775,621.786 85.6442,619.286 75.5,616C 73.1417,614.724 70.8084,613.558 68.5,612.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e3d8d4",d:"M 106.5,623.5 C 129.861,628.724 153.528,630.724 177.5,629.5C 162.473,630.375 147.64,631.042 133,631.5C 130.343,630.923 127.843,629.923 125.5,628.5C 124.158,629.902 123.324,629.569 123,627.5C 120.333,628.167 117.667,628.833 115,629.5C 112.347,627.12 109.514,625.12 106.5,623.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#38a447",d:"M 76.5,628.5 C 80.3317,628.895 82.665,630.895 83.5,634.5C 82.0929,641.213 80.5929,647.88 79,654.5C 76.0916,658.461 75.2583,662.795 76.5,667.5C 79.6599,665.172 82.3266,662.339 84.5,659C 88.0185,655.982 91.6852,653.149 95.5,650.5C 94.9305,653.335 93.2639,655.001 90.5,655.5C 88.4675,662.365 83.9675,666.699 77,668.5C 75.8926,668.415 74.8926,668.081 74,667.5C 74.1596,670.047 75.3263,672.214 77.5,674C 80.9499,674.175 84.2832,674.342 87.5,674.5C 86.91,675.799 85.91,676.632 84.5,677C 85.1667,677.667 85.8333,678.333 86.5,679C 84.8333,679.667 83.1667,679.667 81.5,679C 81.9574,678.586 82.2907,678.086 82.5,677.5C 81.1349,676.544 79.6349,675.878 78,675.5C 76.2626,676.62 74.4292,677.62 72.5,678.5C 71.6143,677.675 71.281,676.675 71.5,675.5C 72.5,675.5 73.5,675.5 74.5,675.5C 74.5,674.5 74.5,673.5 74.5,672.5C 72.5,672.167 70.5,671.833 68.5,671.5C 70.2649,670.21 71.7649,668.21 73,665.5C 73.3148,662.628 73.8148,659.795 74.5,657C 73.2127,654.336 73.546,651.836 75.5,649.5C 75.2907,648.914 74.9574,648.414 74.5,648C 76.0441,647.71 77.3774,647.044 78.5,646C 78.1667,645.667 77.8333,645.333 77.5,645C 81.0954,642.12 81.9287,638.62 80,634.5C 76.7954,636.181 73.2954,637.181 69.5,637.5C 65.4322,645.868 62.4322,654.701 60.5,664C 58.0442,667.156 56.0442,670.656 54.5,674.5C 52.783,677.281 50.6163,679.614 48,681.5C 47.6667,679.5 47.3333,677.5 47,675.5C 43.8314,675.913 41.3314,677.413 39.5,680C 40.1161,682.359 41.6161,683.859 44,684.5C 44.4828,685.448 44.6495,686.448 44.5,687.5C 41.1332,686.658 38.7998,684.658 37.5,681.5C 39.7664,678.215 42.0997,674.881 44.5,671.5C 46.2391,665.559 48.9057,660.226 52.5,655.5C 53.5862,655.38 54.2528,654.713 54.5,653.5C 54.5309,648.093 57.0309,644.427 62,642.5C 62.1273,640.366 61.9607,638.199 61.5,636C 62.4176,633.239 63.0843,630.406 63.5,627.5C 67.8244,627.927 72.1578,628.261 76.5,628.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#90432c",d:"M 961.5,671.5 C 965.85,667.238 965.017,664.238 959,662.5C 954.394,663.761 950.227,665.928 946.5,669C 932.378,671.89 918.378,674.89 904.5,678C 905.056,678.383 905.389,678.883 905.5,679.5C 900.821,679.334 896.155,679.501 891.5,680C 887.471,681.276 883.471,682.442 879.5,683.5C 879.5,684.833 879.5,686.167 879.5,687.5C 878.022,687.238 876.689,687.571 875.5,688.5C 868.276,699.1 860.442,709.1 852,718.5C 850.644,719.38 849.144,719.714 847.5,719.5C 847.762,720.978 847.429,722.311 846.5,723.5C 843.268,724.73 840.601,726.73 838.5,729.5C 836.49,731.171 834.157,731.838 831.5,731.5C 831.5,732.833 831.5,734.167 831.5,735.5C 828.813,735.336 826.146,735.503 823.5,736C 802.726,746.874 780.559,752.04 757,751.5C 743.093,751.21 729.26,750.21 715.5,748.5C 700.658,749.855 685.992,752.188 671.5,755.5C 671.5,756.833 671.5,758.167 671.5,759.5C 669.396,759.201 667.396,759.534 665.5,760.5C 659.849,763.831 654.182,767.165 648.5,770.5C 645.034,773.926 641.367,777.093 637.5,780C 636.552,780.483 635.552,780.649 634.5,780.5C 634.5,781.5 634.5,782.5 634.5,783.5C 632.076,783.192 629.743,783.526 627.5,784.5C 621.617,790.398 614.951,795.065 607.5,798.5C 605.961,791.948 605.294,785.281 605.5,778.5C 604.209,778.263 603.209,778.596 602.5,779.5C 587.183,785.325 572.183,791.825 557.5,799C 543.565,803.212 529.565,807.212 515.5,811C 522.48,812.833 529.48,814.333 536.5,815.5C 536.611,816.117 536.944,816.617 537.5,817C 544.799,818.488 552.132,819.655 559.5,820.5C 543.582,824.311 527.582,824.311 511.5,820.5C 509.664,818.991 507.664,817.491 505.5,816C 503.5,815.667 501.5,815.333 499.5,815C 493.869,812.182 488.535,808.849 483.5,805C 481.122,804.489 478.788,803.822 476.5,803C 468.334,798.414 460.667,793.081 453.5,787C 445.753,783.704 438.42,779.871 431.5,775.5C 431.5,774.5 431.5,773.5 431.5,772.5C 428.299,770.823 424.965,769.323 421.5,768C 419.527,767.505 417.527,767.338 415.5,767.5C 415.439,765.408 414.439,763.908 412.5,763C 408.167,760.5 403.833,758 399.5,755.5C 392.525,752.92 385.525,750.42 378.5,748C 363.213,746.002 347.88,744.336 332.5,743C 326.881,741.012 321.214,739.179 315.5,737.5C 311.116,733.993 306.116,731.493 300.5,730C 299.87,728.108 298.87,726.441 297.5,725C 294.539,722.356 291.206,720.522 287.5,719.5C 287.908,716.401 286.741,714.067 284,712.5C 279.653,697.142 278.319,681.475 280,665.5C 282.38,657.702 283.88,649.702 284.5,641.5C 290.473,645.124 296.473,648.791 302.5,652.5C 303.386,653.325 303.719,654.325 303.5,655.5C 305.308,655.491 306.975,655.991 308.5,657C 313.704,661.399 319.37,665.066 325.5,668C 328.688,669.63 332.021,670.796 335.5,671.5C 335.281,672.675 335.614,673.675 336.5,674.5C 342.283,675.889 347.283,678.556 351.5,682.5C 355.956,686.365 361.289,688.032 367.5,687.5C 367.5,689.5 367.5,691.5 367.5,693.5C 374.822,694.828 381.488,697.662 387.5,702C 391.418,703.156 395.418,703.656 399.5,703.5C 399.626,706.595 401.293,708.428 404.5,709C 420.114,715.926 436.114,721.926 452.5,727C 457.773,728.457 463.106,729.124 468.5,729C 470.991,728.374 470.991,727.541 468.5,726.5C 468.919,725.328 469.585,724.328 470.5,723.5C 473.156,725.166 475.823,726.832 478.5,728.5C 479.429,729.689 479.762,731.022 479.5,732.5C 483.817,732.535 487.817,733.535 491.5,735.5C 494.021,734.911 496.521,734.245 499,733.5C 503.02,734.956 507.187,735.622 511.5,735.5C 513.857,735.337 516.19,735.503 518.5,736C 520.733,738.907 523.733,740.074 527.5,739.5C 527.5,740.833 527.5,742.167 527.5,743.5C 536.806,743.119 545.473,740.619 553.5,736C 563.423,734.144 573.423,732.477 583.5,731C 596.539,726.771 609.873,723.938 623.5,722.5C 623.5,721.5 623.5,720.5 623.5,719.5C 630.714,718.935 637.88,717.935 645,716.5C 653.633,713.143 662.466,711.143 671.5,710.5C 671.5,709.167 671.5,707.833 671.5,706.5C 674.425,706.54 677.091,705.707 679.5,704C 684.5,703.667 689.5,703.333 694.5,703C 696.894,700.476 699.894,699.309 703.5,699.5C 703.5,698.5 703.5,697.5 703.5,696.5C 708.9,695.816 714.233,694.816 719.5,693.5C 719.5,692.5 719.5,691.5 719.5,690.5C 723.182,690.665 726.848,690.499 730.5,690C 739.751,687.616 749.084,685.616 758.5,684C 758.998,682.842 759.831,682.009 761,681.5C 768.573,679.224 776.073,676.891 783.5,674.5C 783.5,673.5 783.5,672.5 783.5,671.5C 788.833,671.5 794.167,671.5 799.5,671.5C 799.5,670.5 799.5,669.5 799.5,668.5C 801.527,668.662 803.527,668.495 805.5,668C 812.025,664.889 818.692,662.056 825.5,659.5C 827.396,658.534 829.396,658.201 831.5,658.5C 831.5,657.5 831.5,656.5 831.5,655.5C 835.182,655.665 838.848,655.499 842.5,655C 845.844,652.884 849.511,651.551 853.5,651C 855.116,650.385 856.449,649.385 857.5,648C 865.23,647.331 872.564,645.498 879.5,642.5C 879.5,641.5 879.5,640.5 879.5,639.5C 882.518,639.665 885.518,639.498 888.5,639C 890.48,637.175 892.813,636.341 895.5,636.5C 895.5,634.833 895.5,633.167 895.5,631.5C 900.88,631.676 906.213,631.342 911.5,630.5C 911.5,629.5 911.5,628.5 911.5,627.5C 915.582,627.656 919.582,627.156 923.5,626C 930.229,622.847 936.896,620.014 943.5,617.5C 954.201,615.688 964.868,613.354 975.5,610.5C 975.5,612.833 975.5,615.167 975.5,617.5C 969.714,617.931 964.047,618.931 958.5,620.5C 955.493,618.937 953.159,619.77 951.5,623C 950.552,623.483 949.552,623.649 948.5,623.5C 948.423,626.012 949.423,628.012 951.5,629.5C 955.391,630.551 959.058,632.051 962.5,634C 964.285,637.452 966.785,640.286 970,642.5C 971.276,645.28 972.776,647.947 974.5,650.5C 975.452,652.045 975.785,653.712 975.5,655.5C 974.5,655.5 973.5,655.5 972.5,655.5C 972.782,663.617 969.115,668.95 961.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#49a059",d:"M 76.5,628.5 C 72.1578,628.261 67.8244,627.927 63.5,627.5C 63.0843,630.406 62.4176,633.239 61.5,636C 61.9607,638.199 62.1273,640.366 62,642.5C 57.0309,644.427 54.5309,648.093 54.5,653.5C 54.2528,654.713 53.5862,655.38 52.5,655.5C 55.696,645.126 58.8627,634.792 62,624.5C 62.5613,623.978 63.228,623.645 64,623.5C 67.8102,624.744 71.6436,625.911 75.5,627C 76.056,627.383 76.3893,627.883 76.5,628.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#339945",d:"M 159.5,671.5 C 159.799,669.396 159.466,667.396 158.5,665.5C 154.889,664.371 151.389,663.038 148,661.5C 147.308,662.025 146.808,662.692 146.5,663.5C 147.309,665.071 147.643,666.738 147.5,668.5C 146.167,668.5 144.833,668.5 143.5,668.5C 140.729,663.797 138.062,658.963 135.5,654C 136.294,651.976 135.961,649.976 134.5,648C 126.328,645.718 117.995,645.051 109.5,646C 108.396,647.131 108.729,647.965 110.5,648.5C 111.429,649.689 111.762,651.022 111.5,652.5C 107.019,653.037 105.686,651.37 107.5,647.5C 104.211,648.374 100.877,649.041 97.5,649.5C 106.331,642.816 116.331,640.649 127.5,643C 133.127,645.117 138.127,648.283 142.5,652.5C 143.386,653.325 143.719,654.325 143.5,655.5C 146.787,656.264 149.454,658.097 151.5,661C 153.788,661.822 156.122,662.489 158.5,663C 161.885,665.743 162.218,668.576 159.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#745342",d:"M 977.5,639.5 C 979.955,642.708 982.455,646.041 985,649.5C 985.667,653.833 985.667,658.167 985,662.5C 984.246,665.684 982.746,668.351 980.5,670.5C 980.903,666.358 981.903,662.358 983.5,658.5C 981.9,652.033 979.9,645.7 977.5,639.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6e3722",d:"M 988.5,544.5 C 989.609,544.557 990.609,544.89 991.5,545.5C 1008.77,556.802 1014.93,572.468 1010,592.5C 1007.77,596.458 1004.93,599.958 1001.5,603C 989.584,612.376 976.417,619.543 962,624.5C 961.837,626.387 962.671,627.887 964.5,629C 969.33,632.008 973.664,635.508 977.5,639.5C 979.9,645.7 981.9,652.033 983.5,658.5C 981.903,662.358 980.903,666.358 980.5,670.5C 976.773,676.069 971.773,679.902 965.5,682C 964.5,683 963.5,684 962.5,685C 957.762,685.519 953.095,686.352 948.5,687.5C 934.27,689.268 919.937,689.768 905.5,689C 904.027,688.29 903.36,687.124 903.5,685.5C 907.852,687.486 910.519,686.152 911.5,681.5C 899.993,681.264 889.326,681.931 879.5,683.5C 883.471,682.442 887.471,681.276 891.5,680C 896.155,679.501 900.821,679.334 905.5,679.5C 924.968,682.311 943.635,679.645 961.5,671.5C 969.115,668.95 972.782,663.617 972.5,655.5C 973.5,655.5 974.5,655.5 975.5,655.5C 975.785,653.712 975.452,652.045 974.5,650.5C 972.776,647.947 971.276,645.28 970,642.5C 966.785,640.286 964.285,637.452 962.5,634C 959.058,632.051 955.391,630.551 951.5,629.5C 949.423,628.012 948.423,626.012 948.5,623.5C 949.552,623.649 950.552,623.483 951.5,623C 953.159,619.77 955.493,618.937 958.5,620.5C 964.047,618.931 969.714,617.931 975.5,617.5C 975.5,615.167 975.5,612.833 975.5,610.5C 964.868,613.354 954.201,615.688 943.5,617.5C 943.62,616.414 944.287,615.747 945.5,615.5C 955.659,612.995 965.659,610.328 975.5,607.5C 975.5,606.5 975.5,605.5 975.5,604.5C 978.049,604.613 980.382,603.946 982.5,602.5C 982.968,597.204 984.301,592.204 986.5,587.5C 987.084,577.801 987.751,568.134 988.5,558.5C 986.317,556.293 984.984,553.626 984.5,550.5C 983.817,550.863 983.15,551.196 982.5,551.5C 980.535,551.052 980.202,550.052 981.5,548.5C 983.1,545.904 985.433,544.57 988.5,544.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8d4329",d:"M 989.5,559.5 C 991.796,562.986 994.796,565.986 998.5,568.5C 1002.83,576.552 1002.49,584.218 997.5,591.5C 996.5,591.5 995.5,591.5 994.5,591.5C 994.5,592.833 994.5,594.167 994.5,595.5C 993.5,595.5 992.5,595.5 991.5,595.5C 991.254,598.47 989.588,599.803 986.5,599.5C 988.529,586.36 989.529,573.027 989.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#df9686",d:"M 961.5,671.5 C 943.635,679.645 924.968,682.311 905.5,679.5C 905.389,678.883 905.056,678.383 904.5,678C 918.378,674.89 932.378,671.89 946.5,669C 950.227,665.928 954.394,663.761 959,662.5C 965.017,664.238 965.85,667.238 961.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3bab47",d:"M 95.5,650.5 C 95.8417,649.662 96.5084,649.328 97.5,649.5C 100.877,649.041 104.211,648.374 107.5,647.5C 105.686,651.37 107.019,653.037 111.5,652.5C 111.762,651.022 111.429,649.689 110.5,648.5C 108.729,647.965 108.396,647.131 109.5,646C 117.995,645.051 126.328,645.718 134.5,648C 135.961,649.976 136.294,651.976 135.5,654C 138.062,658.963 140.729,663.797 143.5,668.5C 144.833,668.5 146.167,668.5 147.5,668.5C 147.643,666.738 147.309,665.071 146.5,663.5C 146.808,662.692 147.308,662.025 148,661.5C 151.389,663.038 154.889,664.371 158.5,665.5C 159.466,667.396 159.799,669.396 159.5,671.5C 159.768,673.099 159.434,674.432 158.5,675.5C 157.022,675.238 155.689,675.571 154.5,676.5C 154.032,678.134 153.032,679.3 151.5,680C 149.567,680.251 147.734,680.751 146,681.5C 144.242,690.069 143.076,698.736 142.5,707.5C 139.732,709.428 138.898,712.095 140,715.5C 141.011,716.337 142.178,716.67 143.5,716.5C 143.5,718.833 143.5,721.167 143.5,723.5C 136.986,723.866 130.986,722.533 125.5,719.5C 125.719,718.325 125.386,717.325 124.5,716.5C 121.428,715.13 118.261,714.13 115,713.5C 115.619,710.292 116.119,706.958 116.5,703.5C 118.96,703.301 121.293,702.635 123.5,701.5C 122.865,696.913 121.865,692.413 120.5,688C 121.597,685.567 123.097,683.4 125,681.5C 127.633,677.421 126.967,674.088 123,671.5C 117.134,675.382 111.3,679.215 105.5,683C 105.966,684.299 105.966,685.799 105.5,687.5C 102.167,690.5 98.8333,693.5 95.5,696.5C 77.2053,700.063 60.2053,697.063 44.5,687.5C 44.6495,686.448 44.4828,685.448 44,684.5C 41.6161,683.859 40.1161,682.359 39.5,680C 41.3314,677.413 43.8314,675.913 47,675.5C 47.3333,677.5 47.6667,679.5 48,681.5C 50.6163,679.614 52.783,677.281 54.5,674.5C 56.0442,670.656 58.0442,667.156 60.5,664C 62.4322,654.701 65.4322,645.868 69.5,637.5C 73.2954,637.181 76.7954,636.181 80,634.5C 81.9287,638.62 81.0954,642.12 77.5,645C 77.8333,645.333 78.1667,645.667 78.5,646C 77.3774,647.044 76.0441,647.71 74.5,648C 74.9574,648.414 75.2907,648.914 75.5,649.5C 73.546,651.836 73.2127,654.336 74.5,657C 73.8148,659.795 73.3148,662.628 73,665.5C 71.7649,668.21 70.2649,670.21 68.5,671.5C 70.5,671.833 72.5,672.167 74.5,672.5C 74.5,673.5 74.5,674.5 74.5,675.5C 73.5,675.5 72.5,675.5 71.5,675.5C 71.281,676.675 71.6143,677.675 72.5,678.5C 74.4292,677.62 76.2626,676.62 78,675.5C 79.6349,675.878 81.1349,676.544 82.5,677.5C 82.2907,678.086 81.9574,678.586 81.5,679C 83.1667,679.667 84.8333,679.667 86.5,679C 85.8333,678.333 85.1667,677.667 84.5,677C 85.91,676.632 86.91,675.799 87.5,674.5C 84.2832,674.342 80.9499,674.175 77.5,674C 75.3263,672.214 74.1596,670.047 74,667.5C 74.8926,668.081 75.8926,668.415 77,668.5C 83.9675,666.699 88.4675,662.365 90.5,655.5C 93.2639,655.001 94.9305,653.335 95.5,650.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ac9c8a",d:"M 538.5,286.5 C 547.732,291.533 557.232,296.2 567,300.5C 567.399,300.272 567.565,299.938 567.5,299.5C 568.596,301.103 569.93,302.603 571.5,304C 588.929,307.286 606.263,310.952 623.5,315C 629.135,317.281 634.801,319.114 640.5,320.5C 639.735,320.923 638.902,321.257 638,321.5C 633.335,319.891 628.501,319.058 623.5,319C 611.923,317.067 600.589,314.4 589.5,311C 559.363,308.172 529.363,309.172 499.5,314C 485.449,316.837 471.783,320.837 458.5,326C 446.06,332.769 433.394,339.103 420.5,345C 407.326,354.728 393.66,363.728 379.5,372C 372.909,378.299 365.909,384.133 358.5,389.5C 354.661,394.88 350.161,399.547 345,403.5C 334.908,416.43 325.908,430.096 318,444.5C 303.137,476.724 301.137,509.724 312,543.5C 315.202,549.239 317.868,555.239 320,561.5C 327.131,569.129 333.297,577.463 338.5,586.5C 352.142,601.469 367.475,614.302 384.5,625C 401.673,634.334 419.34,642.668 437.5,650C 454.77,654.261 471.77,659.261 488.5,665C 507.808,667.897 527.141,670.063 546.5,671.5C 544.167,671.5 541.833,671.5 539.5,671.5C 539.5,675.167 539.5,678.833 539.5,682.5C 548.339,683.991 551.672,680.325 549.5,671.5C 562.833,671.5 576.167,671.5 589.5,671.5C 586.713,672.477 583.713,672.81 580.5,672.5C 580.318,674.591 580.652,676.591 581.5,678.5C 586.792,679.495 592.125,679.828 597.5,679.5C 597.5,676.833 597.5,674.167 597.5,671.5C 605.671,670.944 613.838,670.277 622,669.5C 629.753,667.624 637.586,666.124 645.5,665C 648.798,664.513 651.798,663.347 654.5,661.5C 656.106,662.077 657.772,662.41 659.5,662.5C 667.648,659.937 675.981,658.27 684.5,657.5C 692.764,655.147 700.931,652.48 709,649.5C 712.481,648.877 715.981,648.377 719.5,648C 735.068,641.477 751.068,636.144 767.5,632C 777.49,627.455 787.49,623.121 797.5,619C 810.435,614.36 823.435,610.027 836.5,606C 844.945,600.634 853.945,596.634 863.5,594C 873.397,588.811 883.397,583.811 893.5,579C 898.711,577.728 903.378,575.394 907.5,572C 916.552,567.142 925.886,562.808 935.5,559C 937.539,556.626 939.872,554.626 942.5,553C 953.535,548.208 963.702,542.042 973,534.5C 977.695,527.241 981.528,519.574 984.5,511.5C 986.791,493.587 984.625,476.253 978,459.5C 975.095,455.12 972.762,450.453 971,445.5C 969.128,442.418 966.795,439.751 964,437.5C 962.872,435.655 962.372,433.655 962.5,431.5C 961.448,431.649 960.448,431.483 959.5,431C 956.667,427.5 953.5,424.333 950,421.5C 949.517,420.552 949.351,419.552 949.5,418.5C 957.243,424.131 964.743,430.131 972,436.5C 978.645,446.138 984.479,456.138 989.5,466.5C 996.238,482.106 998.072,498.439 995,515.5C 992.617,525.138 990.45,534.805 988.5,544.5C 985.433,544.57 983.1,545.904 981.5,548.5C 980.202,550.052 980.535,551.052 982.5,551.5C 983.914,553.598 983.248,554.598 980.5,554.5C 980.657,555.873 980.49,557.207 980,558.5C 976.734,560.852 973.567,563.352 970.5,566C 953.581,574.565 936.581,582.899 919.5,591C 877.168,607.894 834.501,624.227 791.5,640C 785.206,640.986 779.372,643.153 774,646.5C 739.229,657.147 704.396,667.48 669.5,677.5C 654.966,680.969 640.299,683.469 625.5,685C 611.523,687.607 597.523,690.107 583.5,692.5C 570.179,693.333 556.846,693.666 543.5,693.5C 529.597,690.512 515.597,688.012 501.5,686C 490.502,683.405 479.502,680.739 468.5,678C 465.193,677.347 462.527,675.681 460.5,673C 429.706,664.591 401.04,651.925 374.5,635C 370.179,629.574 364.846,625.574 358.5,623C 349.876,614.864 341.21,607.031 332.5,599.5C 332.719,598.325 332.386,597.325 331.5,596.5C 329.548,594.259 327.382,592.259 325,590.5C 321.651,585.14 317.818,580.14 313.5,575.5C 301.239,555.329 293.239,533.663 289.5,510.5C 288.566,509.432 288.232,508.099 288.5,506.5C 288.5,500.833 288.5,495.167 288.5,489.5C 290.889,482.421 292.556,475.088 293.5,467.5C 296.572,454.72 301.238,442.72 307.5,431.5C 309.158,428.912 310.825,426.245 312.5,423.5C 314.278,421.171 315.278,418.504 315.5,415.5C 316.833,415.5 318.167,415.5 319.5,415.5C 319.5,414.5 319.5,413.5 319.5,412.5C 322.86,413.21 324.693,411.876 325,408.5C 328.097,407.711 328.264,406.544 325.5,405C 327.175,404.015 328.842,403.181 330.5,402.5C 330.5,402.167 330.5,401.833 330.5,401.5C 332.011,400.498 333.678,399.831 335.5,399.5C 335.5,398.167 335.5,396.833 335.5,395.5C 336.552,395.649 337.552,395.483 338.5,395C 341.71,390.289 345.71,386.456 350.5,383.5C 350.833,383.5 351.167,383.5 351.5,383.5C 352.5,383.5 353.5,383.5 354.5,383.5C 354.575,380.794 354.908,378.127 355.5,375.5C 356.978,375.762 358.311,375.429 359.5,374.5C 368.955,367.876 377.622,360.376 385.5,352C 387.723,351.434 389.723,350.6 391.5,349.5C 395.249,346.112 399.249,342.945 403.5,340C 407.267,337.606 411.267,336.106 415.5,335.5C 415.281,334.325 415.614,333.325 416.5,332.5C 422.964,329.706 428.964,326.373 434.5,322.5C 437.619,321.683 440.619,320.683 443.5,319.5C 455.182,313.832 467.182,309.165 479.5,305.5C 482.337,303.598 485.671,302.931 489.5,303.5C 497.749,302.433 505.749,300.766 513.5,298.5C 519.176,298.666 524.843,298.499 530.5,298C 532.719,293.397 531.385,290.563 526.5,289.5C 525.702,289.043 525.369,288.376 525.5,287.5C 528.354,287.924 531.021,288.924 533.5,290.5C 535.815,289.84 537.481,288.507 538.5,286.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#887765",d:"M 546.5,671.5 C 547.5,671.5 548.5,671.5 549.5,671.5C 551.672,680.325 548.339,683.991 539.5,682.5C 539.5,678.833 539.5,675.167 539.5,671.5C 541.833,671.5 544.167,671.5 546.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bab9ae",d:"M 815.5,597.5 C 815.5,598.833 815.5,600.167 815.5,601.5C 811.418,601.344 807.418,601.844 803.5,603C 792.701,606.981 781.701,610.648 770.5,614C 767.833,615.667 765.167,617.333 762.5,619C 749.244,621.946 736.244,625.613 723.5,630C 721.482,631.398 719.316,632.565 717,633.5C 693.212,638.888 668.712,644.388 643.5,650C 599.546,656.788 555.546,658.288 511.5,654.5C 522.075,653.889 532.742,653.223 543.5,652.5C 543.5,651.5 543.5,650.5 543.5,649.5C 548.833,649.5 554.167,649.5 559.5,649.5C 559.5,648.5 559.5,647.5 559.5,646.5C 549.828,646.334 540.161,646.5 530.5,647C 532.608,647.36 534.608,648.027 536.5,649C 529.859,650.119 523.192,650.453 516.5,650C 519.834,647.925 523.501,647.091 527.5,647.5C 527.5,646.5 527.5,645.5 527.5,644.5C 532.833,644.5 538.167,644.5 543.5,644.5C 603.205,645.037 661.872,637.704 719.5,622.5C 741.068,615.755 762.401,608.422 783.5,600.5C 788.568,600.867 792.902,599.367 796.5,596C 803.028,595.239 809.361,595.739 815.5,597.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c5aaa4",d:"M 825.5,584.5 C 824.192,585.232 822.858,586.066 821.5,587C 825.081,587.675 825.081,588.841 821.5,590.5C 817.065,589.856 812.731,590.523 808.5,592.5C 810.743,593.474 813.076,593.808 815.5,593.5C 815.5,594.833 815.5,596.167 815.5,597.5C 809.361,595.739 803.028,595.239 796.5,596C 792.902,599.367 788.568,600.867 783.5,600.5C 786.197,598.559 789.197,597.059 792.5,596C 803.527,592.149 814.527,588.315 825.5,584.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0475c",d:"M 475.5,567.5 C 476.376,567.369 477.043,567.702 477.5,568.5C 476.626,570.747 476.292,573.08 476.5,575.5C 475.5,575.5 474.5,575.5 473.5,575.5C 471.101,586.662 470.101,597.995 470.5,609.5C 469.343,601.01 469.176,592.343 470,583.5C 471.027,577.804 472.86,572.47 475.5,567.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e08c99",d:"M 767.5,571.5 C 760.798,571.336 754.131,571.669 747.5,572.5C 751.034,570.952 754.867,570.286 759,570.5C 762.021,570.502 764.854,570.836 767.5,571.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d65f71",d:"M 549.5,559.5 C 548.814,563.884 547.814,568.217 546.5,572.5C 544.667,572.833 542.833,573.167 541,573.5C 535.493,572.749 529.993,571.915 524.5,571C 521.714,569.499 519.047,567.999 516.5,566.5C 525.974,569.049 535.64,571.049 545.5,572.5C 545.677,567.657 547.01,563.323 549.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0a29f",d:"M 475.5,567.5 C 472.86,572.47 471.027,577.804 470,583.5C 469.176,592.343 469.343,601.01 470.5,609.5C 470.5,610.167 470.5,610.833 470.5,611.5C 469.883,611.389 469.383,611.056 469,610.5C 467.948,598.695 468.448,587.028 470.5,575.5C 469.448,575.649 468.448,575.483 467.5,575C 469.611,573.265 471.611,571.432 473.5,569.5C 470.914,568.52 468.247,568.187 465.5,568.5C 465.762,569.978 465.429,571.311 464.5,572.5C 463.051,571.383 461.384,570.716 459.5,570.5C 455.529,571.38 451.529,572.047 447.5,572.5C 447.791,571.351 448.624,570.684 450,570.5C 458.37,568.355 466.87,567.355 475.5,567.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf747f",d:"M 401.5,547.5 C 402.6,549.277 403.434,551.277 404,553.5C 404.822,561.012 404.655,568.345 403.5,575.5C 403.94,566.051 403.273,556.718 401.5,547.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7425b",d:"M 500.5,527.5 C 508.663,529.445 516.663,531.778 524.5,534.5C 521.314,542.929 517.981,551.263 514.5,559.5C 514.67,557.152 515.003,554.818 515.5,552.5C 514.077,549.725 513.411,546.725 513.5,543.5C 514.5,543.5 515.5,543.5 516.5,543.5C 516.281,544.675 516.614,545.675 517.5,546.5C 518.969,542.957 519.969,539.291 520.5,535.5C 514.535,533.538 508.535,531.538 502.5,529.5C 501.287,529.253 500.62,528.586 500.5,527.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d3556a",d:"M 715.5,536.5 C 727.497,539.506 739.497,541.84 751.5,543.5C 739.342,543.304 727.342,541.971 715.5,539.5C 715.5,538.5 715.5,537.5 715.5,536.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7475e",d:"M 777.5,497.5 C 789.573,498.776 794.073,505.443 791,517.5C 787.699,523.733 782.533,526.733 775.5,526.5C 776.689,516.88 777.356,507.213 777.5,497.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db4359",d:"M 344.5,506.5 C 343.683,511.571 341.349,515.904 337.5,519.5C 350.821,520.333 364.154,520.833 377.5,521C 380.839,522.296 384.173,523.463 387.5,524.5C 387.5,525.5 387.5,526.5 387.5,527.5C 380.769,525.972 374.103,524.139 367.5,522C 356.839,521.5 346.172,521.333 335.5,521.5C 336.453,515.353 339.453,510.353 344.5,506.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ee2447",d:"M 778.5,499.5 C 782.95,499.142 786.45,500.808 789,504.5C 789.606,507.076 789.106,509.41 787.5,511.5C 788.528,513.56 788.528,515.56 787.5,517.5C 786.808,516.975 786.308,516.308 786,515.5C 785.505,517.473 785.338,519.473 785.5,521.5C 782.412,521.639 779.745,522.639 777.5,524.5C 778.185,516.184 778.518,507.851 778.5,499.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d4929c",d:"M 520.5,479.5 C 521.898,481.596 522.898,483.929 523.5,486.5C 521.349,491.592 520.349,496.925 520.5,502.5C 519.572,494.999 519.572,487.332 520.5,479.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ed3352",d:"M 571.5,477.5 C 572.496,477.414 573.329,477.748 574,478.5C 576.381,482.968 578.381,487.635 580,492.5C 581.964,503.746 577.797,511.579 567.5,516C 563.514,516.499 559.514,516.666 555.5,516.5C 558.929,502.652 564.262,489.652 571.5,477.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cda6a2",d:"M 938.5,476.5 C 939.995,476.415 940.995,477.081 941.5,478.5C 944.086,479.48 946.753,479.813 949.5,479.5C 949.649,480.552 949.483,481.552 949,482.5C 945.296,483.948 944.629,486.281 947,489.5C 947.667,499.833 947.667,510.167 947,520.5C 946.727,522.329 945.893,523.829 944.5,525C 941.94,525.384 939.606,526.217 937.5,527.5C 939.911,524.252 942.744,521.585 946,519.5C 948.621,504.031 946.121,489.697 938.5,476.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d54961",d:"M 494.5,465.5 C 501.278,465.514 507.945,466.347 514.5,468C 515.748,469.959 517.415,471.459 519.5,472.5C 520.374,474.747 520.708,477.08 520.5,479.5C 519.031,477.164 517.698,474.664 516.5,472C 509.344,468.958 502.01,466.791 494.5,465.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ed7588",d:"M 789.5,449.5 C 788.552,458.718 786.885,467.718 784.5,476.5C 783.876,476.083 783.543,475.416 783.5,474.5C 785.192,465.96 787.192,457.627 789.5,449.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e2334e",d:"M 763.5,463.5 C 764.5,463.5 765.5,463.5 766.5,463.5C 767.496,459.446 767.162,455.446 765.5,451.5C 764.178,451.33 763.011,451.663 762,452.5C 761.501,456.152 761.335,459.818 761.5,463.5C 759.036,459.722 758.87,455.722 761,451.5C 765.104,446.76 770.271,444.427 776.5,444.5C 775.172,453.122 774.172,461.789 773.5,470.5C 769.06,469.724 765.727,467.39 763.5,463.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#eb2546",d:"M 763.5,463.5 C 762.833,463.5 762.167,463.5 761.5,463.5C 761.335,459.818 761.501,456.152 762,452.5C 763.011,451.663 764.178,451.33 765.5,451.5C 767.162,455.446 767.496,459.446 766.5,463.5C 765.5,463.5 764.5,463.5 763.5,463.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e24a64",d:"M 611.5,437.5 C 617.185,438.504 622.852,439.671 628.5,441C 632.333,444.167 636.167,447.333 640,450.5C 641.813,448.375 643.647,446.375 645.5,444.5C 645.467,450.819 642.467,453.319 636.5,452C 635.072,449.815 633.405,447.815 631.5,446C 624.76,444.545 618.093,442.878 611.5,441C 610.829,440.014 610.829,438.847 611.5,437.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d89c9a",d:"M 897.5,422.5 C 899.196,422.685 900.529,423.519 901.5,425C 906.279,426.728 911.279,427.728 916.5,428C 919.737,430.419 920.07,433.085 917.5,436C 914.518,436.498 911.518,436.665 908.5,436.5C 910.684,435.734 913.018,435.067 915.5,434.5C 916.833,433.167 916.833,431.833 915.5,430.5C 910.482,428.832 905.482,427.332 900.5,426C 899.29,424.961 898.29,423.794 897.5,422.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8c7c6a",d:"M 589.5,671.5 C 592.167,671.5 594.833,671.5 597.5,671.5C 597.5,674.167 597.5,676.833 597.5,679.5C 592.125,679.828 586.792,679.495 581.5,678.5C 580.652,676.591 580.318,674.591 580.5,672.5C 583.713,672.81 586.713,672.477 589.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e4f6e3",d:"M 119.5,691.5 C 118.38,687.983 118.38,684.316 119.5,680.5C 118.448,680.351 117.448,680.517 116.5,681C 115.636,682.697 114.303,683.863 112.5,684.5C 111.614,685.325 111.281,686.325 111.5,687.5C 110.5,687.5 109.5,687.5 108.5,687.5C 108.762,688.978 108.429,690.311 107.5,691.5C 103.879,694.133 99.8786,695.8 95.5,696.5C 98.8333,693.5 102.167,690.5 105.5,687.5C 109.589,684.917 113.256,681.75 116.5,678C 118.78,677.767 120.78,676.934 122.5,675.5C 123.11,678.714 122.277,681.714 120,684.5C 119.503,686.81 119.337,689.143 119.5,691.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#47a554",d:"M 158.5,675.5 C 154.926,678.784 151.593,682.284 148.5,686C 150.507,688.854 151.84,692.021 152.5,695.5C 152,697.5 151.5,699.5 151,701.5C 148.386,703.903 145.886,706.403 143.5,709C 142.552,709.483 141.552,709.649 140.5,709.5C 140.716,712.256 141.716,714.59 143.5,716.5C 142.178,716.67 141.011,716.337 140,715.5C 138.898,712.095 139.732,709.428 142.5,707.5C 143.076,698.736 144.242,690.069 146,681.5C 147.734,680.751 149.567,680.251 151.5,680C 153.032,679.3 154.032,678.134 154.5,676.5C 155.689,675.571 157.022,675.238 158.5,675.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#9b8474",d:"M 529.5,695.5 C 548.17,695.333 566.836,695.5 585.5,696C 576.848,697.166 568.181,698.499 559.5,700C 549.49,700.5 539.49,700.333 529.5,699.5C 529.5,698.167 529.5,696.833 529.5,695.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0897a",d:"M 305.5,694.5 C 307.564,694.687 309.564,695.187 311.5,696C 322.872,705.011 334.206,714.011 345.5,723C 353.6,726.771 361.934,729.771 370.5,732C 367.833,733 365.167,734 362.5,735C 354.167,735.667 345.833,735.667 337.5,735C 333.388,731.95 328.721,729.95 323.5,729C 317.59,723.761 312.423,717.928 308,711.5C 307.197,708.756 306.197,706.089 305,703.5C 304.264,700.408 304.431,697.408 305.5,694.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5caa66",d:"M 125.5,719.5 C 121.675,718.926 118.009,717.759 114.5,716C 112.59,715.592 111.59,714.425 111.5,712.5C 112.184,709.275 113.351,706.275 115,703.5C 117.719,701.781 119.719,699.447 121,696.5C 121.599,694.465 121.099,692.799 119.5,691.5C 119.337,689.143 119.503,686.81 120,684.5C 122.277,681.714 123.11,678.714 122.5,675.5C 120.78,676.934 118.78,677.767 116.5,678C 113.256,681.75 109.589,684.917 105.5,687.5C 105.966,685.799 105.966,684.299 105.5,683C 111.3,679.215 117.134,675.382 123,671.5C 126.967,674.088 127.633,677.421 125,681.5C 123.097,683.4 121.597,685.567 120.5,688C 121.865,692.413 122.865,696.913 123.5,701.5C 121.293,702.635 118.96,703.301 116.5,703.5C 116.119,706.958 115.619,710.292 115,713.5C 118.261,714.13 121.428,715.13 124.5,716.5C 125.386,717.325 125.719,718.325 125.5,719.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#833d25",d:"M 370.5,671.5 C 372.904,676.997 377.238,679.33 383.5,678.5C 383.5,679.833 383.5,681.167 383.5,682.5C 385.927,682.523 388.26,683.023 390.5,684C 392.719,687.045 395.719,688.211 399.5,687.5C 399.5,688.5 399.5,689.5 399.5,690.5C 402.216,690.678 404.883,691.178 407.5,692C 409.164,695.136 411.831,696.303 415.5,695.5C 415.5,696.5 415.5,697.5 415.5,698.5C 418.839,698.78 421.506,700.28 423.5,703C 438.5,704.928 452.834,709.261 466.5,716C 467.5,717 468.5,718 469.5,719C 472.817,719.498 476.15,719.665 479.5,719.5C 479.5,720.5 479.5,721.5 479.5,722.5C 485.146,722.911 490.479,724.245 495.5,726.5C 495.5,728.167 495.5,729.833 495.5,731.5C 500.995,731.665 506.328,732.665 511.5,734.5C 511.5,734.833 511.5,735.167 511.5,735.5C 507.187,735.622 503.02,734.956 499,733.5C 496.521,734.245 494.021,734.911 491.5,735.5C 487.817,733.535 483.817,732.535 479.5,732.5C 479.762,731.022 479.429,729.689 478.5,728.5C 475.823,726.832 473.156,725.166 470.5,723.5C 469.585,724.328 468.919,725.328 468.5,726.5C 470.991,727.541 470.991,728.374 468.5,729C 463.106,729.124 457.773,728.457 452.5,727C 436.114,721.926 420.114,715.926 404.5,709C 401.293,708.428 399.626,706.595 399.5,703.5C 395.418,703.656 391.418,703.156 387.5,702C 381.488,697.662 374.822,694.828 367.5,693.5C 367.5,691.5 367.5,689.5 367.5,687.5C 361.289,688.032 355.956,686.365 351.5,682.5C 353.857,682.663 356.19,682.497 358.5,682C 360.394,679.108 363.061,677.441 366.5,677C 368.21,675.349 369.544,673.516 370.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#613521",d:"M 948.5,687.5 C 938.724,689.478 928.724,690.812 918.5,691.5C 906.841,690.564 895.175,690.398 883.5,691C 872.659,715.506 855.326,733.84 831.5,746C 814.152,753.172 796.152,758.172 777.5,761C 753.155,760.998 728.822,760.665 704.5,760C 686.225,763.646 669.225,770.312 653.5,780C 630.479,795.697 607.479,811.363 584.5,827C 580.725,828.606 577.058,830.44 573.5,832.5C 569.893,833.489 566.226,833.823 562.5,833.5C 565.83,829.848 570.164,828.181 575.5,828.5C 575.5,827.5 575.5,826.5 575.5,825.5C 577.857,825.663 580.19,825.497 582.5,825C 584.032,824.3 585.032,823.134 585.5,821.5C 583.589,819.298 581.255,817.631 578.5,816.5C 587.49,812.69 596.156,808.19 604.5,803C 605.305,801.887 605.972,800.721 606.5,799.5C 607.167,799.5 607.5,799.167 607.5,798.5C 614.951,795.065 621.617,790.398 627.5,784.5C 629.743,783.526 632.076,783.192 634.5,783.5C 634.5,782.5 634.5,781.5 634.5,780.5C 635.552,780.649 636.552,780.483 637.5,780C 641.367,777.093 645.034,773.926 648.5,770.5C 654.182,767.165 659.849,763.831 665.5,760.5C 667.396,759.534 669.396,759.201 671.5,759.5C 671.5,758.167 671.5,756.833 671.5,755.5C 685.992,752.188 700.658,749.855 715.5,748.5C 729.26,750.21 743.093,751.21 757,751.5C 780.559,752.04 802.726,746.874 823.5,736C 826.146,735.503 828.813,735.336 831.5,735.5C 831.5,734.167 831.5,732.833 831.5,731.5C 834.157,731.838 836.49,731.171 838.5,729.5C 840.601,726.73 843.268,724.73 846.5,723.5C 847.429,722.311 847.762,720.978 847.5,719.5C 849.144,719.714 850.644,719.38 852,718.5C 860.442,709.1 868.276,699.1 875.5,688.5C 876.689,687.571 878.022,687.238 879.5,687.5C 879.5,686.167 879.5,684.833 879.5,683.5C 889.326,681.931 899.993,681.264 911.5,681.5C 910.519,686.152 907.852,687.486 903.5,685.5C 903.36,687.124 904.027,688.29 905.5,689C 919.937,689.768 934.27,689.268 948.5,687.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#613320",d:"M 284.5,641.5 C 283.88,649.702 282.38,657.702 280,665.5C 278.319,681.475 279.653,697.142 284,712.5C 286.741,714.067 287.908,716.401 287.5,719.5C 291.206,720.522 294.539,722.356 297.5,725C 298.87,726.441 299.87,728.108 300.5,730C 306.116,731.493 311.116,733.993 315.5,737.5C 321.214,739.179 326.881,741.012 332.5,743C 347.88,744.336 363.213,746.002 378.5,748C 385.525,750.42 392.525,752.92 399.5,755.5C 403.833,758 408.167,760.5 412.5,763C 414.439,763.908 415.439,765.408 415.5,767.5C 417.527,767.338 419.527,767.505 421.5,768C 424.965,769.323 428.299,770.823 431.5,772.5C 431.5,773.5 431.5,774.5 431.5,775.5C 438.42,779.871 445.753,783.704 453.5,787C 460.667,793.081 468.334,798.414 476.5,803C 478.788,803.822 481.122,804.489 483.5,805C 488.535,808.849 493.869,812.182 499.5,815C 501.5,815.333 503.5,815.667 505.5,816C 507.664,817.491 509.664,818.991 511.5,820.5C 515.941,821.996 519.775,824.663 523,828.5C 524.473,828.868 525.973,828.368 527.5,827C 534.833,826.333 542.167,826.333 549.5,827C 552.035,827.928 553.035,829.762 552.5,832.5C 555.881,832.46 559.214,832.793 562.5,833.5C 558.03,834.486 553.363,834.819 548.5,834.5C 548.5,833.5 548.5,832.5 548.5,831.5C 543.588,831.898 538.921,832.898 534.5,834.5C 527.159,834.666 519.826,834.5 512.5,834C 504.792,832.1 497.459,829.433 490.5,826C 468.279,813.093 446.613,799.426 425.5,785C 420.905,783.543 417.239,780.876 414.5,777C 404.505,772.897 394.838,768.231 385.5,763C 371.205,758.396 356.539,756.396 341.5,757C 333.977,755.786 326.644,753.953 319.5,751.5C 319.5,750.5 319.5,749.5 319.5,748.5C 318.178,748.33 317.011,748.663 316,749.5C 312.623,746.102 308.456,744.436 303.5,744.5C 303.238,743.022 303.571,741.689 304.5,740.5C 307.332,741.58 310.165,742.58 313,743.5C 314.205,742.929 315.372,742.262 316.5,741.5C 316.291,740.914 315.957,740.414 315.5,740C 312.039,739.006 308.539,738.173 305,737.5C 302.733,739.258 300.233,739.758 297.5,739C 295.76,737.306 293.76,736.139 291.5,735.5C 291.281,734.325 291.614,733.325 292.5,732.5C 298.126,727.904 297.126,725.737 289.5,726C 290.821,727.545 290.488,728.711 288.5,729.5C 287.264,728.754 285.93,728.421 284.5,728.5C 284.649,727.448 284.483,726.448 284,725.5C 282.333,724.5 280.667,723.5 279,722.5C 276.846,717.215 275.012,711.882 273.5,706.5C 273.621,694.566 274.121,682.566 275,670.5C 275.333,670.833 275.667,671.167 276,671.5C 277.306,668.388 278.472,665.221 279.5,662C 278.002,657.93 277.002,653.764 276.5,649.5C 279.333,647.041 282,644.375 284.5,641.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a8543a",d:"M 602.5,779.5 C 603.209,778.596 604.209,778.263 605.5,778.5C 605.294,785.281 605.961,791.948 607.5,798.5C 607.5,799.167 607.167,799.5 606.5,799.5C 598.721,803.442 591.054,807.609 583.5,812C 575.457,814.957 567.457,817.79 559.5,820.5C 552.132,819.655 544.799,818.488 537.5,817C 536.944,816.617 536.611,816.117 536.5,815.5C 542.518,816.778 548.518,816.611 554.5,815C 559.624,812.737 564.957,811.07 570.5,810C 579.201,805 587.867,800 596.5,795C 599.096,793.864 601.763,793.031 604.5,792.5C 605.097,787.706 604.43,783.373 602.5,779.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ca7e6c",d:"M 602.5,779.5 C 604.43,783.373 605.097,787.706 604.5,792.5C 601.763,793.031 599.096,793.864 596.5,795C 587.867,800 579.201,805 570.5,810C 564.957,811.07 559.624,812.737 554.5,815C 548.518,816.611 542.518,816.778 536.5,815.5C 529.48,814.333 522.48,812.833 515.5,811C 529.565,807.212 543.565,803.212 557.5,799C 572.183,791.825 587.183,785.325 602.5,779.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#63301d",d:"M 606.5,799.5 C 605.972,800.721 605.305,801.887 604.5,803C 596.156,808.19 587.49,812.69 578.5,816.5C 581.255,817.631 583.589,819.298 585.5,821.5C 585.032,823.134 584.032,824.3 582.5,825C 580.19,825.497 577.857,825.663 575.5,825.5C 575.5,826.5 575.5,827.5 575.5,828.5C 570.164,828.181 565.83,829.848 562.5,833.5C 559.214,832.793 555.881,832.46 552.5,832.5C 553.035,829.762 552.035,827.928 549.5,827C 542.167,826.333 534.833,826.333 527.5,827C 525.973,828.368 524.473,828.868 523,828.5C 519.775,824.663 515.941,821.996 511.5,820.5C 527.582,824.311 543.582,824.311 559.5,820.5C 567.457,817.79 575.457,814.957 583.5,812C 591.054,807.609 598.721,803.442 606.5,799.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a8a095",d:"M 548.5,834.5 C 543.833,834.5 539.167,834.5 534.5,834.5C 538.921,832.898 543.588,831.898 548.5,831.5C 548.5,832.5 548.5,833.5 548.5,834.5 Z"})))}const fr=i.forwardRef(hr);n.p;var mr,gr,vr;function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yr.apply(null,arguments)}function br(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",yr({"data-name":"86977684-12db-4850-8f30-233a7c267d11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,mr||(mr=i.createElement("path",{d:"M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z",fill:"#2775ca"})),gr||(gr=i.createElement("path",{d:"M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z",fill:"#fff"})),vr||(vr=i.createElement("path",{d:"M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zM1229.17 295.83c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z",fill:"#fff"})))}const wr=i.forwardRef(br);n.p;function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xr.apply(null,arguments)}function Cr(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",xr({id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 339.43 295.27",ref:t,"aria-labelledby":r},o),void 0===n?i.createElement("title",{id:r},"tether-usdt-logo"):n?i.createElement("title",{id:r},n):null,i.createElement("path",{d:"M62.15,1.45l-61.89,130a2.52,2.52,0,0,0,.54,2.94L167.95,294.56a2.55,2.55,0,0,0,3.53,0L338.63,134.4a2.52,2.52,0,0,0,.54-2.94l-61.89-130A2.5,2.5,0,0,0,275,0H64.45a2.5,2.5,0,0,0-2.3,1.45h0Z",style:{fill:"#50af95",fillRule:"evenodd"}}),i.createElement("path",{d:"M191.19,144.8v0c-1.2.09-7.4,0.46-21.23,0.46-11,0-18.81-.33-21.55-0.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25,74.24-18.15v28.91c2.78,0.2,10.74.67,21.74,0.67,13.2,0,19.81-.55,21-0.66v-28.9c42.42,1.89,74.08,9.29,74.08,18.13s-31.65,16.24-74.08,18.12h0Zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11,2.21-84.29,11.74-84.29,23.16s36.18,20.94,84.29,23.16v82.9h42.78V151.83c48-2.21,84.12-11.73,84.12-23.14s-36.09-20.93-84.12-23.15h0Zm0,0h0Z",style:{fill:"#fff",fillRule:"evenodd"}}))}const Ar=i.forwardRef(Cr),Er=(n.p,e=>{let t,{token:n="fusd",isLarge:r}=e;switch(n.toLowerCase()){case"fusd":t=(0,a.jsx)(dr,{className:(0,o.cn)("flex-shrink-0 w-[0.875rem] h-[0.875rem]",r&&"w-[24px] h-[24px] ")});break;case"flow":t=(0,a.jsx)(lr.h,{className:(0,o.cn)("flex-shrink-0 w-[0.875rem] h-[0.875rem]",r&&"w-[24px] h-[24px] ")});break;case"usdc":t=(0,a.jsx)(wr,{className:(0,o.cn)("flex-shrink-0 w-[0.875rem] h-[0.875rem]",r&&"w-[24px] h-[24px] ")});break;case"duc":t=(0,a.jsx)("div",{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:[(0,a.jsx)("rect",{y:"0.5",width:"14",height:"14",rx:"7",fill:"#762FBE"}),(0,a.jsx)("path",{d:"M7.1945 5.42609C6.33539 5.42609 5.63894 5.89039 5.63894 6.46313C5.63894 7.03587 6.33539 7.50016 7.1945 7.50016C8.05361 7.50016 8.75007 7.96446 8.75007 8.5372C8.75007 9.10994 8.05362 9.57424 7.19451 9.57424M7.1945 5.42609C7.77027 5.42609 8.27299 5.63464 8.54195 5.94461M7.1945 5.42609V4.90757M7.1945 5.42609L7.19451 9.57424M7.19451 9.57424L7.1945 10.0928M7.19451 9.57424C6.61874 9.57424 6.11602 9.36569 5.84706 9.05572M11.8612 7.50016C11.8612 10.0775 9.77183 12.1668 7.1945 12.1668C4.61717 12.1668 2.52783 10.0775 2.52783 7.50016C2.52783 4.92283 4.61717 2.8335 7.1945 2.8335C9.77183 2.8335 11.8612 4.92283 11.8612 7.50016Z",stroke:"white",strokeLinecap:"round"})]})});break;case"sloppy":case"sloppystakes":t=(0,a.jsx)(fr,{className:(0,o.cn)("flex-shrink-0 w-[0.875rem] h-[0.875rem]",r&&"w-[24px] h-[24px] ")});break;case"usdt":t=(0,a.jsx)(Ar,{className:(0,o.cn)("flex-shrink-0 w-[0.875rem] h-[0.875rem]",r&&"w-[24px] h-[24px] ")});break;default:return null}return t}),_r=e=>{let{value:t,includeParenthesis:n,classNames:r}=e;const i=an()(t).format("0,0.00");return(0,a.jsx)("span",{className:"".concat(r),children:n?"($".concat(i,")"):"$".concat(i,"}")})};var Tr=n(39744);const Sr=e=>{let{price:t,spotPriceValue:n,token:r,toolTipCustomId:i,isCreatorHub:o}=e;if(!r)return null;const s=r!==T.SupportedTokens.DUC&&r!==T.SupportedTokens.USDC;let l;switch(r){case T.SupportedTokens.FLOW:l="FLOW";break;case T.SupportedTokens.USDC:l="USDC";break;case T.SupportedTokens.DUC:l="Dapper Balance";break;default:return null}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(i,"-").concat(r,"-").concat(t,"-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.875rem",fontWeight:500,zIndex:10}}),(0,a.jsxs)("div",{"data-tooltip-id":"".concat(i,"-").concat(r,"-").concat(t,"-tooltip"),"data-tooltip-content":l,"data-tooltip-place":"right",className:"flex flex-col justify-center",children:[(0,a.jsxs)("div",{className:"flex items-center flex-shrink-0 w-auto justify-end gap-[0.25rem]",children:[(0,a.jsx)(Er,{token:r}),(0,a.jsx)("span",{className:"text-white font-montserrat ".concat(o?"text-[9.33px] 3xl:text-[16px]":"text-[1rem]"," font-[700]"),children:an()(t).format("0,0.00")})]}),s&&(n||0===n)?(0,a.jsx)("div",{className:"ml-auto text-white flex",children:(0,a.jsx)(_r,{includeParenthesis:!0,value:Number(n||0),classNames:"".concat(o?"text-[8px] 3xl:text-[12px]":"text-[.75rem]"," font-montserrat font-normal text-[#ADB5BD]")})}):null]})]})},kr=e=>{var t,n,r,o,s;let{accountSummaries:l,offerListingError:c,flowty:u}=e;const{hasChildAccounts:d,selectedAccount:p,setSelectedAccount:h,spotPrice:f,isDapper:m,flowNft:g,bestOffer:v,selectedOffer:y,isParentDapper:b,isLoadingCollectionRoyalty:w,isNftOnDapperChild:x,isNftOnNonDapperChild:C}=Ln(),A=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e,t;c&&(null!==A&&void 0!==A&&null!==(e=A.current)&&void 0!==e&&e.scrollIntoView&&(null===A||void 0===A||null===(t=A.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})))}),[c]);const E=y||v;let{fees:_,isLoading:S}=(0,qt.useGetFees)({flowty:u,nft:g||null,price:(null===E||void 0===E?void 0:E.amount)||0,token:null===E||void 0===E?void 0:E.paymentTokenName});({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}).IS_STORYBOOK&&(S=!1,_={dapper:.01*Number(null===E||void 0===E?void 0:E.amount),flowty:.02*Number(null===E||void 0===E?void 0:E.amount),royalties:.06*Number(null===E||void 0===E?void 0:E.amount),seller:Number(null===E||void 0===E?void 0:E.amount)-.09*Number(null===E||void 0===E?void 0:E.amount)});const k=null===(t=_)||void 0===t?void 0:t.flowty,P=(k||0)/((null===E||void 0===E?void 0:E.amount)||0),D=null===(n=_)||void 0===n?void 0:n.royalties,F=(D||0)/((null===E||void 0===E?void 0:E.amount)||0),N=null===(r=_)||void 0===r?void 0:r.seller;return(0,a.jsx)("div",{className:"w-full h-full flex flex-col",children:(0,a.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[d&&!b&&(0,a.jsx)(en,{selected:p,setSelected:h,label:"Pay To",summaries:l,listingType:"acceptOffer",disabledMessage:tn,selectorFilter:new Zt({flowty:u,listingType:"storefront"})}),(0,a.jsxs)("div",{className:"flex justify-between text-white items-start",children:[(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Offer Price"}),(0,a.jsx)(Sr,{price:(null===E||void 0===E?void 0:E.amount)||0,token:(null===E||void 0===E?void 0:E.paymentTokenName)||T.SupportedTokens.FLOW,spotPriceValue:Number(null===f||void 0===f?void 0:f.value)*((null===E||void 0===E?void 0:E.amount)||0),toolTipCustomId:"saleListingReceivedValue"})]}),(0,a.jsx)("div",{ref:A,children:w||S||0===k?(0,a.jsxs)("div",{className:"flex flex-col gap-[11px]",children:[(0,a.jsx)("div",{className:"w-full h-[50px] animate-pulse bg-[#edf3f60a] rounded-lg"}),(0,a.jsx)("div",{className:"w-full h-[50px] animate-pulse bg-[#edf3f60a] rounded-lg"})]}):(0,a.jsx)(H,{items:[{addOn:(0,a.jsxs)("div",{className:"flex items-start font-montserrat space-x-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"-"}),D&&(0,a.jsx)(Sr,{price:D,token:(null===E||void 0===E?void 0:E.paymentTokenName)||T.SupportedTokens.FLOW,spotPriceValue:Number(null===f||void 0===f?void 0:f.value)*D,toolTipCustomId:"saleListingCreatorRoyalty"})]}),content:(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat",children:["Transferred directly to the creator of an NFT collection. This is not a Flowty fee."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-1",notDisplay:!D,title:"Creator Royalty (".concat((100*F).toFixed(2),"%)")},{addOn:(0,a.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,a.jsx)("span",{className:"font-bold font-montserrat",children:"-"}),k&&(0,a.jsx)(Sr,{price:k,token:(null===E||void 0===E?void 0:E.paymentTokenName)||T.SupportedTokens.FLOW,spotPriceValue:Number(null===f||void 0===f?void 0:f.value)*k,toolTipCustomId:"saleListingFlowtyFee"})]}),content:(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat",children:["A fee charged by Flowty for providing the services on the platform."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-2",title:"Flowty Fee (".concat((100*P).toFixed(2),"%)")}]})}),(0,a.jsx)("hr",{className:"border-[#495057]"}),w||S||0===k?(0,a.jsx)("div",{className:"flex flex-col gap-[11px]",children:(0,a.jsx)("div",{className:"w-full h-[40px] animate-pulse bg-[#edf3f60a] rounded-lg"})}):(0,a.jsxs)("div",{className:"flex justify-between text-white items-start",children:[(0,a.jsx)("p",{children:"You'll Receive"}),N?(0,a.jsx)(Sr,{price:N,token:(null===E||void 0===E?void 0:E.paymentTokenName)||T.SupportedTokens.FLOW,spotPriceValue:Number(null===f||void 0===f?void 0:f.value)*N,toolTipCustomId:"saleListingReceivedValue"}):"-"]})]}),m&&!(null!==E&&void 0!==E&&null!==(o=E.paymentTokenName)&&void 0!==o&&o.includes(T.SupportedTokens.DUC))&&(0,a.jsx)("div",{"data-testid":"non-dapper-offer-warning",className:"text-orange-500 text-sm font-normal pb-3",children:C?"Log in with Child Non-Dapper Account to accept offer.":"Warning: Transfer NFT to Non-Dapper Wallet to accept offer."}),!m&&(null===E||void 0===E||null===(s=E.paymentTokenName)||void 0===s?void 0:s.includes(T.SupportedTokens.DUC))&&(0,a.jsx)("div",{"data-testid":"dapper-offer-warning",className:"text-orange-500 text-sm font-normal pb-3",children:x?"Log in with Child Dapper Account to accept offer.":"Warning: Transfer NFT to Dapper Wallet to accept offer."})]})})};function Pr(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function Dr(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((n=>{"undefined"===typeof e[n]?e[n]=t[n]:Pr(t[n])&&Pr(e[n])&&Object.keys(t[n]).length>0&&Dr(e[n],t[n])}))}const Fr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nr(){const e="undefined"!==typeof document?document:{};return Dr(e,Fr),e}const Ir={document:Fr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!==typeof setTimeout&&clearTimeout(e)}};function Rr(){const e="undefined"!==typeof window?window:{};return Dr(e,Ir),e}function Or(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function jr(){return Date.now()}function Mr(e,t){void 0===t&&(t="x");const n=Rr();let r,i,o;const a=function(e){const t=Rr();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}function Lr(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Br(e){return"undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ur(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(void 0!==r&&null!==r&&!Br(r)){const n=Object.keys(Object(r)).filter((e=>t.indexOf(e)<0));for(let t=0,i=n.length;t<i;t+=1){const i=n[t],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(Lr(e[i])&&Lr(r[i])?r[i].__swiper__?e[i]=r[i]:Ur(e[i],r[i]):!Lr(e[i])&&Lr(r[i])?(e[i]={},r[i].__swiper__?e[i]=r[i]:Ur(e[i],r[i])):e[i]=r[i])}}}return e}function Vr(e,t,n){e.style.setProperty(t,n)}function Hr(e){let{swiper:t,targetPosition:n,side:r}=e;const i=Rr(),o=-t.translate;let a,s=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=n>o?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{a=(new Date).getTime(),null===s&&(s=a);const e=Math.max(Math.min((a-s)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=o+c*(n-o);if(u(p,n)&&(p=n),t.wrapperEl.scrollTo({[r]:p}),u(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function zr(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function Wr(e){try{return void console.warn(e)}catch(t){}}function qr(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),n}function Gr(e,t){return Rr().getComputedStyle(e,null).getPropertyValue(t)}function Yr(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Kr(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Qr(e,t,n){const r=Rr();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Xr(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let Zr,Jr,$r;function ei(){return Zr||(Zr=function(){const e=Rr(),t=Nr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Zr}function ti(e){return void 0===e&&(e={}),Jr||(Jr=function(e){let{userAgent:t}=void 0===e?{}:e;const n=ei(),r=Rr(),i=r.navigator.platform,o=t||r.navigator.userAgent,a={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!u&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(s,"x").concat(l))>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!h&&(a.os="android",a.android=!0),(u||p||d)&&(a.os="ios",a.ios=!0),a}(e)),Jr}function ni(){return $r||($r=function(){const e=Rr(),t=ti();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),$r}var ri={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!==typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{"undefined"===typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"string"===typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};const ii=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const oi=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const ai=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":".".concat(e.params.slideClass));if(n){let t=n.querySelector(".".concat(e.params.lazyPreloaderClass));!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)),t&&t.remove())}))),t&&t.remove()}},si=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},li=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{o.includes(t.column)&&si(e,n)}))}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=o+t;a+=1){const t=(a%n+n)%n;(t<i||t>o)&&si(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(o+t,n-1);a+=1)a!==i&&(a>o||a<i)&&si(e,a)};var ci={updateSize:function(){const e=this;let t,n;const r=e.el;t="undefined"!==typeof e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n="undefined"!==typeof e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Gr(r,"padding-left")||0,10)-parseInt(Gr(r,"padding-right")||0,10),n=n-parseInt(Gr(r,"padding-top")||0,10)-parseInt(Gr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:a,wrongRTL:s}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=zr(i,".".concat(e.params.slideClass,", swiper-slide")),d=l?e.virtual.slides.length:u.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"===typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"===typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,y=e.slidesGrid.length;let b=n.spaceBetween,w=-m,x=0,C=0;if("undefined"===typeof o)return;"string"===typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*o:"string"===typeof b&&(b=parseFloat(b)),e.virtualSize=-b,u.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(Vr(r,"--swiper-centered-offset-before",""),Vr(r,"--swiper-centered-offset-after",""));const A=n.grid&&n.grid.rows>1&&e.grid;let E;A?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const _="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>"undefined"!==typeof n.breakpoints[e].slidesPerView)).length>0;for(let T=0;T<d;T+=1){let r;if(E=0,u[T]&&(r=u[T]),A&&e.grid.updateSlide(T,r,u),!u[T]||"none"!==Gr(r,"display")){if("auto"===n.slidesPerView){_&&(u[T].style[e.getDirectionLabel("width")]="");const i=getComputedStyle(r),o=r.style.transform,a=r.style.webkitTransform;if(o&&(r.style.transform="none"),a&&(r.style.webkitTransform="none"),n.roundLengths)E=e.isHorizontal()?Qr(r,"width",!0):Qr(r,"height",!0);else{const e=t(i,"width"),n=t(i,"padding-left"),o=t(i,"padding-right"),a=t(i,"margin-left"),s=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+a+s;else{const{clientWidth:t,offsetWidth:i}=r;E=e+n+o+a+s+(i-t)}}o&&(r.style.transform=o),a&&(r.style.webkitTransform=a),n.roundLengths&&(E=Math.floor(E))}else E=(o-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),u[T]&&(u[T].style[e.getDirectionLabel("width")]="".concat(E,"px"));u[T]&&(u[T].swiperSlideSize=E),f.push(E),n.centeredSlides?(w=w+E/2+x/2+b,0===x&&0!==T&&(w=w-o/2-b),0===T&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),C%n.slidesPerGroup===0&&p.push(w),h.push(w)):(n.roundLengths&&(w=Math.floor(w)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(w),h.push(w),w=w+E+b),e.virtualSize+=E+b,x=E,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width="".concat(e.virtualSize+b,"px")),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]="".concat(e.virtualSize+b,"px")),A&&e.grid.updateWrapperSize(E,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let i=p[r];n.roundLengths&&(i=Math.floor(i)),p[r]<=e.virtualSize-o&&t.push(i)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&n.loop){const t=f[0]+b;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==b){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]="".concat(b,"px")}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=e-o;p=p.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Vr(r,"--swiper-centered-offset-before","".concat(-p[0],"px")),Vr(r,"--swiper-centered-offset-after","".concat(e.size/2-f[f.length-1]/2,"px"));const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&("slide"===n.effect||"fade"===n.effect)){const t="".concat(n.containerModifierClass,"backface-hidden"),r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"===typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if("undefined"!==typeof n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height="".concat(o,"px"))},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;"undefined"===typeof r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"===typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"===typeof s&&(s=parseFloat(s));for(let l=0;l<r.length;l+=1){const e=r[l];let c=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(a+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+s),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+s),p=-(a-c),h=p+t.slidesSizesGrid[l],f=p>=0&&p<=t.size-t.slidesSizesGrid[l],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(l)),ii(e,m,n.slideVisibleClass),ii(e,f,n.slideFullyVisibleClass),e.progress=i?-u:u,e.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if("undefined"===typeof e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>zr(r,".".concat(n.slideClass).concat(e,", swiper-slide").concat(e))[0];let l,c,u;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s('[data-swiper-slide-index="'.concat(t,'"]'))}else l=s('[data-swiper-slide-index="'.concat(i,'"]'));else a?(l=t.filter((e=>e.column===i))[0],u=t.filter((e=>e.column===i+1))[0],c=t.filter((e=>e.column===i-1))[0]):l=t[i];l&&(a||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{oi(e,e===l,n.slideActiveClass),oi(e,e===u,n.slideNextClass),oi(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if("undefined"===typeof c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)"undefined"!==typeof t[o+1]?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||"undefined"===typeof i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=u(c);else if(d){const e=t.slides.filter((e=>e.column===c))[0];let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:c}),t.initialized&&li(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(".".concat(r.slideClass,", swiper-slide"));!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(".".concat(r.slideClass,", swiper-slide"))&&(i=e)}));let o,a=!1;if(i)for(let s=0;s<n.slides.length;s+=1)if(n.slides[s]===i){a=!0,o=s;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var ui={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=Mr(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform="translate3d(".concat(l,"px, ").concat(c,"px, ").concat(0,"px)"));const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,o.updateProgress(u),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Hr({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function di(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:a}=t;let s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit("transition".concat(i)),n&&o!==a){if("reset"===s)return void t.emit("slideResetTransition".concat(i));t.emit("slideChangeTransition".concat(i)),"next"===s?t.emit("slideNextTransition".concat(i)):t.emit("slidePrevTransition".concat(i))}}var pi={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration="".concat(e,"ms"),n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),di({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),di({swiper:n,runCallbacks:e,direction:t,step:"End"}))}};var hi={slideTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"===typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=o;if(!f&&!r&&!i||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;"undefined"===typeof t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/o.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(s.normalizeSlideIndex)for(let b=0;b<c.length;b+=1){const e=-Math.floor(100*v),t=Math.floor(100*c[b]),n=Math.floor(100*c[b+1]);"undefined"!==typeof c[b+1]?e>=t&&e<n-(n-t)/2?a=b:e>=t&&e<n&&(a=b+1):e>=t&&(a=b)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(p?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate()))return!1;if(!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(d||0)!==a)return!1}let y;if(a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),y=a>d?"next":a<d?"prev":"reset",p&&-v===o.translate||!p&&v===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(v),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(s.cssMode){const e=o.isHorizontal(),n=p?v:-v;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{if(!o.support.smoothScroll)return Hr({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"===typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;"undefined"===typeof t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params;let s=i.params.slidesPerView;"auto"===s?s=i.slidesPerViewDynamic():(s=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&s%2===0&&(s+=1));let l=t-e<s;if(n&&(l=l||e<Math.ceil(s/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(l=!1),l){const r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){const e=a*i.params.grid.rows;a=i.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame((()=>{i.slideTo(a,t,n,r)})),i},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;"undefined"===typeof e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;"undefined"===typeof e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(s?r.translate:-r.translate),h=o.map((e=>d(e)));let f=o[h.indexOf(p)-1];if("undefined"===typeof f&&i.cssMode){let e;o.forEach(((t,n)=>{p>=t&&(e=n)})),"undefined"!==typeof e&&(f=o[e>0?e-1:e])}let m=0;if("undefined"!==typeof f&&(m=a.indexOf(f),m<0&&(m=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-r.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(m,e,t,n)})),!0):r.slideTo(m,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return"undefined"===typeof e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;if(i.destroyed)return;"undefined"===typeof e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;const a=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(zr(n,"".concat(a,'[data-swiper-slide-index="').concat(i,'"]'))[0]),Or((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(zr(n,"".concat(a,'[data-swiper-slide-index="').concat(i,'"]'))[0]),Or((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};var fi={loopCreate:function(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{zr(r,".".concat(n.slideClass,", swiper-slide")).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},o=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(o?n.grid.rows:1),s=t.slides.length%a!==0,l=o&&t.slides.length%n.grid.rows!==0,c=e=>{for(let r=0;r<e;r+=1){const e=t.isElement?qr("swiper-slide",[n.slideBlankClass]):qr("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};if(s){if(n.loopAddBlankSlides){c(a-t.slides.length%a),t.recalcSlides(),t.updateSlides()}else Wr("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(l){if(n.loopAddBlankSlides){c(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()}else Wr("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,byController:a,byMousewheel:s}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:p,params:h}=l,{centeredSlides:f}=h;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return n&&(h.centeredSlides||0!==l.snapIndex?h.centeredSlides&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,void l.emit("loopFix");let m=h.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(h.slidesPerView,10)),f&&m%2===0&&(m+=1));const g=h.slidesPerGroupAuto?m:h.slidesPerGroup;let v=g;v%g!==0&&(v+=g-v%g),v+=h.loopAdditionalSlides,l.loopedSlides=v;const y=l.grid&&h.grid&&h.grid.rows>1;c.length<m+v?Wr("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===h.grid.fill&&Wr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let x=l.activeIndex;"undefined"===typeof o?o=l.getSlideIndex(c.filter((e=>e.classList.contains(h.slideActiveClass)))[0]):x=o;const C="next"===r||!r,A="prev"===r||!r;let E=0,_=0;const T=y?Math.ceil(c.length/h.grid.rows):c.length,S=(y?c[o].column:o)+(f&&"undefined"===typeof i?-m/2+.5:0);if(S<v){E=Math.max(v-S,g);for(let e=0;e<v-S;e+=1){const t=e-Math.floor(e/T)*T;if(y){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&b.push(t)}else b.push(T-t-1)}}else if(S+m>T-v){_=Math.max(S-(T-2*v),g);for(let e=0;e<_;e+=1){const t=e-Math.floor(e/T)*T;y?c.forEach(((e,n)=>{e.column===t&&w.push(n)})):w.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),A&&b.forEach((e=>{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),C&&w.forEach((e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():y&&(b.length>0&&A||w.length>0&&C)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),h.watchSlidesProgress&&l.updateSlidesOffset(),n)if(b.length>0&&A){if("undefined"===typeof t){const e=l.slidesGrid[x],t=l.slidesGrid[x+E]-e;s?l.setTranslate(l.translate-t):(l.slideTo(x+Math.ceil(E),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=y?b.length/h.grid.rows:b.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&C)if("undefined"===typeof t){const e=l.slidesGrid[x],t=l.slidesGrid[x-_]-e;s?l.setTranslate(l.translate-t):(l.slideTo(x-_,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=y?w.length/h.grid.rows:w.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&n})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach((e=>{const t="undefined"===typeof e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};var mi={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}};function gi(e,t,n){const r=Rr(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function vi(e){const t=this,n=Nr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void gi(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=t;if(!s)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!t.wrapperEl.contains(l))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass),p=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===Nr()||n===Rr())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const h=a.currentX,f=a.currentY;if(!gi(t,r,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=f,i.touchStartTime=jr(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const g=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function yi(e){const t=Nr(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].filter((e=>e.identifier===r.touchId))[0],!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=jr()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if("undefined"===typeof r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),"undefined"===typeof r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=f,f*=i.touchRatio,a&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const v=n.params.loop&&!i.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(v&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&v&&y&&Math.abs(f)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let b=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),f>0?(v&&y&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**w))):f<0&&(v&&y&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**w))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(f)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function bi(e){const t=this,n=t.touchEventsData;let r,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].filter((e=>e.identifier===n.touchId))[0],!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=jr(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=jr(),Or((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<o.slidesPerGroupSkip?1:o.slidesPerGroup){const e=w<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;"undefined"!==typeof l[w+e]?(h||p>=l[w]&&p<l[w+e])&&(f=w,m=l[w+e]-l[w]):(h||p>=l[w])&&(f=w,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;o.rewind&&(t.isBeginning?v=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(p-l[f])/m,b=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-o.longSwipesRatio?t.slideTo(f+b):null!==v&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f))}}function wi(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function xi(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ci(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ai(e){const t=this;ai(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Ei(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const _i=(e,t)=>{const n=Nr(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!==typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",wi,!0):e[c]("observerUpdate",wi,!0),i[l]("load",e.onLoad,{capture:!0}))};var Ti={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=vi.bind(e),e.onTouchMove=yi.bind(e),e.onTouchEnd=bi.bind(e),e.onDocumentTouchStart=Ei.bind(e),t.cssMode&&(e.onScroll=Ci.bind(e)),e.onClick=xi.bind(e),e.onLoad=Ai.bind(e),_i(e,"on")},detachEvents:function(){_i(this,"off")}};const Si=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ki={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||e.originalParams,l=Si(e,r),c=Si(e,s),u=e.params.grabCursor,d=s.grabCursor,p=r.enabled;l&&!c?(i.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()):!l&&c&&(i.classList.add("".concat(r.containerModifierClass,"grid")),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===r.grid.fill)&&i.classList.add("".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()),u&&!d?e.unsetGrabCursor():!u&&d&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if("undefined"===typeof s[t])return;const n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const h=s.direction&&s.direction!==r.direction,f=r.loop&&(s.slidesPerView!==r.slidesPerView||h),m=r.loop;h&&n&&e.changeDirection(),Ur(e.params,s);const g=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!m&&v?(e.loopCreate(t),e.updateSlides()):m&&!v&&e.loopDestroy()),e.emit("breakpoint",s)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const i=Rr(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"===typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let s=0;s<a.length;s+=1){const{point:e,value:o}=a[s];"window"===t?i.matchMedia("(min-width: ".concat(o,"px)")).matches&&(r=e):o<=n.clientWidth&&(r=e)}return r||"max"}};var Pi={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"===typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"===typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!==typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};var Di={checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},Fi={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ni(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],i=n[r];"object"===typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!==typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Ur(t,n)):Ur(t,n)):Ur(t,n)}}const Ii={eventsEmitter:ri,update:ci,translate:ui,transition:pi,slide:hi,loop:fi,grabCursor:mi,events:Ti,breakpoints:ki,checkOverflow:Di,classes:Pi},Ri={};class Oi{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=Ur({},t),e&&!t.el&&(t.el=e);const o=Nr();if(t.el&&"string"===typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((n=>{const r=Ur({},t,{el:n});e.push(new Oi(r))})),e}const a=this;a.__swiper__=!0,a.support=ei(),a.device=ti({userAgent:t.userAgent}),a.browser=ni(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const s={};a.modules.forEach((e=>{e({params:t,swiper:a,extendParams:Ni(t,s),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const l=Ur({},Fi,s);return a.params=Ur({},l,Ri,t),a.originalParams=Ur({},a.params),a.passedParams=Ur({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=Yr(zr(t,".".concat(n.slideClass,", swiper-slide"))[0]);return Yr(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=zr(e,".".concat(t.slideClass,", swiper-slide"))}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,"undefined"===typeof t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"===typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let c=s+1;c<r.length;c+=1){(t?i[c]+o[c]-i[s]<a:i[c]-i[s]<a)&&(l+=1)}else for(let c=s-1;c>=0;c-=1){i[s]-i[c]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&ai(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove("".concat(n.params.containerModifierClass).concat(r)),n.el.classList.add("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"===typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>".".concat((t.params.wrapperClass||"").trim().split(" ").join("."));let i=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(r())}return zr(n,r())[0]})();return!i&&t.params.createElements&&(i=qr("div",t.params.wrapperClass),n.append(i),zr(n,".".concat(t.params.slideClass)).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Gr(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Gr(n,"direction")),wrongRTL:"-webkit-box"===Gr(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?ai(t,e):e.addEventListener("load",(e=>{ai(t,e.target)}))})),li(t),t.initialized=!0,li(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!==typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!==typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){Ur(Ri,e)}static get extendedDefaults(){return Ri}static get defaults(){return Fi}static installModule(e){Oi.prototype.__modules__||(Oi.prototype.__modules__=[]);const t=Oi.prototype.__modules__;"function"===typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Oi.installModule(e))),Oi):(Oi.installModule(e),Oi)}}Object.keys(Ii).forEach((e=>{Object.keys(Ii[e]).forEach((t=>{Oi.prototype[t]=Ii[e][t]}))})),Oi.use([function(e){let{swiper:t,on:n,emit:r}=e;const i=Rr();let o=null,a=null;const s=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&"undefined"!==typeof i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=i.requestAnimationFrame((()=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||s()}))})),o.observe(t.el)):(i.addEventListener("resize",s),i.addEventListener("orientationchange",l))})),n("destroy",(()=>{a&&i.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],a=Rr(),s=function(e,n){void 0===n&&(n={});const r=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const n=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}));r.observe(e,{attributes:"undefined"===typeof n.attributes||n.attributes,childList:"undefined"===typeof n.childList||n.childList,characterData:"undefined"===typeof n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=Kr(t.hostEl);for(let t=0;t<e.length;t+=1)s(e[t])}s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const ji=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Mi(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Li(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{"undefined"===typeof e[n]?e[n]=t[n]:Mi(t[n])&&Mi(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Li(e[n],t[n]):e[n]=t[n]}))}function Bi(e){return void 0===e&&(e={}),e.navigation&&"undefined"===typeof e.navigation.nextEl&&"undefined"===typeof e.navigation.prevEl}function Ui(e){return void 0===e&&(e={}),e.pagination&&"undefined"===typeof e.pagination.el}function Vi(e){return void 0===e&&(e={}),e.scrollbar&&"undefined"===typeof e.scrollbar.el}function Hi(e){void 0===e&&(e="");const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function zi(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:"swiper-wrapper ".concat(e):"swiper-wrapper"}function Wi(){return Wi=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},Wi.apply(this,arguments)}function qi(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Gi(e){const t=[];return i.Children.toArray(e).forEach((e=>{qi(e)?t.push(e):e.props&&e.props.children&&Gi(e.props.children).forEach((e=>t.push(e)))})),t}function Yi(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return i.Children.toArray(e).forEach((e=>{if(qi(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=Gi(e.props.children);r.length>0?r.forEach((e=>t.push(e))):n["container-end"].push(e)}else n["container-end"].push(e)})),{slides:t,slots:n}}function Ki(e,t){return"undefined"===typeof window?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)}const Qi=(0,i.createContext)(null),Xi=(0,i.createContext)(null),Zi=()=>(0,i.useContext)(Xi),Ji=(0,i.forwardRef)((function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:a,onSwiper:s,...l}=void 0===e?{}:e,c=!1;const[u,d]=(0,i.useState)("swiper"),[p,h]=(0,i.useState)(null),[f,m]=(0,i.useState)(!1),g=(0,i.useRef)(!1),v=(0,i.useRef)(null),y=(0,i.useRef)(null),b=(0,i.useRef)(null),w=(0,i.useRef)(null),x=(0,i.useRef)(null),C=(0,i.useRef)(null),A=(0,i.useRef)(null),E=(0,i.useRef)(null),{params:_,passedParams:T,rest:S,events:k}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);const n={on:{}},r={},i={};Li(n,Fi),n._emitClasses=!0,n.init=!1;const o={},a=ji.map((e=>e.replace(/_/,""))),s=Object.assign({},e);return Object.keys(s).forEach((s=>{"undefined"!==typeof e[s]&&(a.indexOf(s)>=0?Mi(e[s])?(n[s]={},i[s]={},Li(n[s],e[s]),Li(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"===typeof e[s]?t?r["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:n.on["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:o[s]=e[s])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:o,events:r}}(l),{slides:P,slots:D}=Yi(a),F=()=>{m(!f)};Object.assign(_.on,{_containerClasses(e,t){d(t)}});const N=()=>{Object.assign(_.on,k),c=!0;const e={..._};if(delete e.wrapperClass,y.current=new Oi(e),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:h,renderExternalUpdate:!1};Li(y.current.params.virtual,e),Li(y.current.originalParams.virtual,e)}};v.current||N(),y.current&&y.current.on("_beforeBreakpoint",F);return(0,i.useEffect)((()=>()=>{y.current&&y.current.off("_beforeBreakpoint",F)})),(0,i.useEffect)((()=>{!g.current&&y.current&&(y.current.emitSlidesClasses(),g.current=!0)})),Ki((()=>{if(t&&(t.current=v.current),v.current)return y.current.destroyed&&N(),function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:a,swiper:s}=e;Bi(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),Ui(t)&&o&&(s.params.pagination.el=o,s.originalParams.pagination.el=o),Vi(t)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(n)}({el:v.current,nextEl:x.current,prevEl:C.current,paginationEl:A.current,scrollbarEl:E.current,swiper:y.current},_),s&&!y.current.destroyed&&s(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}}),[]),Ki((()=>{!c&&k&&y.current&&Object.keys(k).forEach((e=>{y.current.on(e,k[e])}));const e=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return ji.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((n=>{if(n in e&&n in t)if(Mi(e[n])&&Mi(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})),i.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})))}else e[n]!==t[n]&&a(n)})),o}(T,b.current,P,w.current,(e=>e.key));return b.current=T,w.current=P,e.length&&y.current&&!y.current.destroyed&&function(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:a,scrollbarEl:s,paginationEl:l}=e;const c=i.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:u,pagination:d,navigation:p,scrollbar:h,virtual:f,thumbs:m}=t;let g,v,y,b,w,x,C,A;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),i.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(v=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(u.pagination||!1===u.pagination)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||s)&&(u.scrollbar||!1===u.scrollbar)&&h&&!h.el&&(b=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||o)&&(u.navigation||!1===u.navigation)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const E=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),u[e].prevEl=void 0,u[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),u[e].el=void 0,t[e].el=void 0))};i.includes("loop")&&t.isElement&&(u.loop&&!r.loop?x=!0:!u.loop&&r.loop?C=!0:A=!0),c.forEach((e=>{if(Mi(u[e])&&Mi(r[e]))Object.assign(u[e],r[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in r[e])||r[e].enabled||E(e);else{const t=r[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?u[e]=r[e]:!1===t&&E(e)}})),c.includes("controller")&&!v&&t.controller&&t.controller.control&&u.controller&&u.controller.control&&(t.controller.control=u.controller.control),i.includes("children")&&n&&f&&u.virtual.enabled?(f.slides=n,f.update(!0)):i.includes("virtual")&&f&&u.virtual.enabled&&(n&&(f.slides=n),f.update(!0)),i.includes("children")&&n&&u.loop&&(A=!0),g&&m.init()&&m.update(!0);v&&(t.controller.control=u.controller.control),y&&(!t.isElement||l&&"string"!==typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(u.pagination.el=l),d.init(),d.render(),d.update()),b&&(!t.isElement||s&&"string"!==typeof s||(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),t.el.appendChild(s)),s&&(u.scrollbar.el=s),h.init(),h.updateSize(),h.setTranslate()),w&&(t.isElement&&(o&&"string"!==typeof o||(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),a&&"string"!==typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),o&&(u.navigation.nextEl=o),a&&(u.navigation.prevEl=a),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(x||A)&&t.loopDestroy(),(C||A)&&t.loopCreate(),t.update()}({swiper:y.current,slides:P,passedParams:T,changedParams:e,nextEl:x.current,prevEl:C.current,scrollbarEl:E.current,paginationEl:A.current}),()=>{k&&y.current&&Object.keys(k).forEach((e=>{y.current.off(e,k[e])}))}})),Ki((()=>{(e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())})(y.current)}),[p]),i.createElement(r,Wi({ref:v,className:Hi("".concat(u).concat(n?" ".concat(n):""))},S),i.createElement(Xi.Provider,{value:y.current},D["container-start"],i.createElement(o,{className:zi(_.wrapperClass)},D["wrapper-start"],_.virtual?function(e,t,n){if(!n)return null;const r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:"".concat(n.offset,"px")}:{top:"".concat(n.offset,"px")},{from:a,to:s}=n,l=e.params.loop?-t.length:0,c=e.params.loop?2*t.length:t.length,u=[];for(let i=l;i<c;i+=1)i>=a&&i<=s&&u.push(t[r(i)]);return u.map(((t,n)=>i.cloneElement(t,{swiper:e,style:o,key:t.props.virtualIndex||t.key||"slide-".concat(n)})))}(y.current,P,p):P.map(((e,t)=>i.cloneElement(e,{swiper:y.current,swiperSlideIndex:t}))),D["wrapper-end"]),Bi(_)&&i.createElement(i.Fragment,null,i.createElement("div",{ref:C,className:"swiper-button-prev"}),i.createElement("div",{ref:x,className:"swiper-button-next"})),Vi(_)&&i.createElement("div",{ref:E,className:"swiper-scrollbar"}),Ui(_)&&i.createElement("div",{ref:A,className:"swiper-pagination"}),D["container-end"]))}));Ji.displayName="Swiper";const $i=(0,i.forwardRef)((function(e,t){let{tag:n="div",children:r,className:o="",swiper:a,zoom:s,lazy:l,virtualIndex:c,swiperSlideIndex:u,...d}=void 0===e?{}:e;const p=(0,i.useRef)(null),[h,f]=(0,i.useState)("swiper-slide"),[m,g]=(0,i.useState)(!1);function v(e,t,n){t===p.current&&f(n)}Ki((()=>{if("undefined"!==typeof u&&(p.current.swiperSlideIndex=u),t&&(t.current=p.current),p.current&&a){if(!a.destroyed)return a.on("_slideClass",v),()=>{a&&a.off("_slideClass",v)};"swiper-slide"!==h&&f("swiper-slide")}})),Ki((()=>{a&&p.current&&!a.destroyed&&f(a.getSlideClasses(p.current))}),[a]);const y={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},b=()=>"function"===typeof r?r(y):r;return i.createElement(n,Wi({ref:p,className:Hi("".concat(h).concat(o?" ".concat(o):"")),"data-swiper-slide-index":c,onLoad:()=>{g(!0)}},d),s&&i.createElement(Qi.Provider,{value:y},i.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"===typeof s?s:void 0},b(),l&&!m&&i.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&i.createElement(Qi.Provider,{value:y},b(),l&&!m&&i.createElement("div",{className:"swiper-lazy-preloader"})))}));$i.displayName="SwiperSlide";var eo=n(33744),to=n(71993),no=n(49413);const ro={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK,io=async e=>{var t,n,r;let{listingType:i,openSearchFlowNFT:o,nftOrders:a,singleListing:s,selectedOrder:l,mixPanelFn:c,nftReceiverAddress:u,nftProviderPathIdentifier:d,isLostAndFound:p,ticketID:h,lostAndFoundCatalogIdentifier:f,enabledAutoReturn:m,ftProviderAddress:g,offer:v,offerAmount:y,offerDuration:b,privateFTPath:w,txAvailableCallback:x,token:C,setIsLoading:A,setError:E,setIsSealed:_,loanRentalActionsData:T,flowty:S}=e;if(p)try{var k,P;if(A((e=>({...e,lostAndFound:!0}))),E((e=>({...e,lostAndFound:!1}))),_((e=>({...e,lostAndFound:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{A((e=>({...e,lostAndFound:!1}))),"ERROR_TYPE_MOCK"===o.type?E((e=>({...e,lostAndFound:!0}))):_((e=>({...e,lostAndFound:!0})))}),3e3);const e=await S.redeemLostAndFound({catalogIdentifier:null!==f&&void 0!==f?f:"",nftTypeIdentifier:o.type,receiverAddress:u,ticketID:null!==h&&void 0!==h?h:"",txAvailableCallback:x});if(4===(null===e||void 0===e?void 0:e.status))return _((e=>({...e,lostAndFound:!0}))),A((e=>({...e,lostAndFound:!1}))),void c("Successful Lost And Found redeem transaction",{listingData:o,ticketID:null!==h&&void 0!==h?h:"",transferRecipient:u});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(k=e.toString())&&void 0!==k&&k.includes("Error")||null!==e&&void 0!==e&&null!==(P=e.toString())&&void 0!==P&&P.includes("Declined"))throw new Error(e)}catch(ne){var D;E((e=>({...e,lostAndFound:!0}))),A((e=>({...e,lostAndFound:!1}))),null!==ne&&void 0!==ne&&null!==(D=ne.toString())&&void 0!==D&&D.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error transfer listing transaction",{err:ne,listingData:o})}switch(i){case"purchase":const e=s||(l.purchase?l.purchase:null===a||void 0===a||null===(t=a.storefront)||void 0===t?void 0:t[0]);try{var F,N,I;if(e.nftID!==o.id)throw new Error("Order NFT is not the same as the selected NFT.");if(A((e=>({...e,purchase:!0}))),E((e=>({...e,purchase:!1}))),_((e=>({...e,purchase:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{A((e=>({...e,purchase:!1}))),_((e=>({...e,purchase:!0})))}),3e3);const t=S.tokens.getTokenInfo(e.paymentTokenName),n=await S.purchaseStorefrontListing({ftProviderAddress:g,listing:s||(l.purchase?l.purchase:null===a||void 0===a||null===(F=a.storefront)||void 0===F?void 0:F[0]),nftReceiverAddress:u,privateFTPath:w,token:t,txAvailableCallback:x});if(4===(null===n||void 0===n?void 0:n.status))return _((e=>({...e,purchase:!0}))),A((e=>({...e,purchase:!1}))),void c("Successful purchase storefront transaction",{listingData:e,token:e.paymentTokenName});if(4!==(null===n||void 0===n?void 0:n.status)&&null!==n&&void 0!==n&&null!==(N=n.toString())&&void 0!==N&&N.includes("Error")||null!==n&&void 0!==n&&null!==(I=n.toString())&&void 0!==I&&I.includes("Declined"))throw new Error(n)}catch(ne){var R;E((e=>({...e,purchase:!0}))),A((e=>({...e,purchase:!1}))),null!==ne&&void 0!==ne&&null!==(R=ne.toString())&&void 0!==R&&R.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error purchase storefront transaction",{err:ne,listingData:e,token:e.paymentTokenName})}break;case"makeOffer":try{var O,j;if(A((e=>({...e,makeOffer:!0}))),E((e=>({...e,makeOffer:!1}))),_((e=>({...e,makeOffer:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{A((e=>({...e,makeOffer:!1}))),"ERROR_TYPE_MOCK"!==o.id?_((e=>({...e,makeOffer:!0}))):E((e=>({...e,makeOffer:!0})))}),6e3);const e=new Date,t=(0,eo.default)(e,b),n=function(e){return(0,no.A)(1,arguments),Math.floor((0,to.default)(e)/1e3)}(t),r=S.tokens.getTokenIdentifier(C),i=S.tokens.getTokenInfo(C),a=await S.makeOffer({expiry:n,ftProviderAddress:g,ftProviderPathIdentifier:w,nftData:{contractAddress:null===o||void 0===o?void 0:o.contractAddress,contractName:null===o||void 0===o?void 0:o.contractName,id:null===o||void 0===o?void 0:o.id.toString(),nftOwner:null===o||void 0===o?void 0:o.owner,type:null===o||void 0===o?void 0:o.type},nftReceiverAddress:u,offerAmount:y,token:i,tokenIdentifier:r,txAvailableCallback:x});if(4===(null===a||void 0===a?void 0:a.status))return _((e=>({...e,makeOffer:!0}))),A((e=>({...e,makeOffer:!1}))),void c("Storefront offer created successful transaction",{currencyToken:C,expiry:t,listingData:o,salePrice:y});if(4!==(null===a||void 0===a?void 0:a.status)&&null!==a&&void 0!==a&&null!==(O=a.toString())&&void 0!==O&&O.includes("Error")||null!==a&&void 0!==a&&null!==(j=a.toString())&&void 0!==j&&j.includes("Declined"))throw new Error(a)}catch(ne){var M;E((e=>({...e,makeOffer:!0}))),A((e=>({...e,makeOffer:!1}))),null!==ne&&void 0!==ne&&null!==(M=ne.toString())&&void 0!==M&&M.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Storefront offer created failed transaction",{currencyToken:C,err:ne,listingData:o,salePrice:y})}break;case"cancelOffer":try{var L,B;if(A((e=>({...e,cancelOffer:!0}))),E((e=>({...e,cancelOffer:!1}))),_((e=>({...e,cancelOffer:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{A((e=>({...e,cancelOffer:!1}))),_((e=>({...e,cancelOffer:!0})))}),6e3);const e=await S.cancelOffer({offerResourceID:(null===v||void 0===v?void 0:v.offerResourceID)||"",token:C,txAvailableCallback:x});if(4===(null===e||void 0===e?void 0:e.status))return _((e=>({...e,cancelOffer:!0}))),A((e=>({...e,cancelOffer:!1}))),void c("Storefront offer cancel successful transaction",{listingData:o,offer:null===v||void 0===v?void 0:v.offerResourceID});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(L=e.toString())&&void 0!==L&&L.includes("Error")||null!==e&&void 0!==e&&null!==(B=e.toString())&&void 0!==B&&B.includes("Declined"))throw new Error(e)}catch(ne){var U;E((e=>({...e,cancelOffer:!0}))),A((e=>({...e,cancelOffer:!1}))),null!==ne&&void 0!==ne&&null!==(U=ne.toString())&&void 0!==U&&U.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Storefront offer cancel failed transaction",{err:ne,listingData:o,offer:null===v||void 0===v?void 0:v.offerResourceID})}break;case"fundLoan":const i=s||(l.fundLoan?l.fundLoan:null===a||void 0===a||null===(n=a.loan)||void 0===n?void 0:n[0]);if(i.nftID!==o.id)throw new Error("Order NFT is not the same as the selected NFT.");try{var V,H,z;if(A((e=>({...e,fundLoan:!0}))),E((e=>({...e,fundLoan:!1}))),_((e=>({...e,fundLoan:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{A((e=>({...e,fundLoan:!1}))),_((e=>({...e,fundLoan:!0})))}),6e3);const e=s||(l.fundLoan?l.fundLoan:null===a||void 0===a||null===(V=a.loan)||void 0===V?void 0:V[0]),t=S.tokens.getTokenInfo(e.paymentTokenName),n=await S.fundLoanListing({ftPrivatePathIdentifier:w,ftProviderAddress:g,listingData:e,nftData:{contractAddress:o.contractAddress,contractName:o.contractName,id:o.id.toString(),nftOwner:o.owner,type:o.type},nftReceiverAddress:u,token:t,txAvailableCallback:x});if(4===(null===n||void 0===n?void 0:n.status))return _((e=>({...e,fundLoan:!0}))),A((e=>({...e,fundLoan:!1}))),void c("Successful fund transaction",{listingData:i,token:i.paymentTokenName});if(4!==(null===n||void 0===n?void 0:n.status)&&null!==n&&void 0!==n&&null!==(H=n.toString())&&void 0!==H&&H.includes("Error")||null!==n&&void 0!==n&&null!==(z=n.toString())&&void 0!==z&&z.includes("Declined"))throw new Error(n)}catch(ne){var W;E((e=>({...e,fundLoan:!0}))),A((e=>({...e,fundLoan:!1}))),null!==ne&&void 0!==ne&&null!==(W=ne.toString())&&void 0!==W&&W.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error fund transaction",{err:ne,listingData:i,token:i.paymentTokenName})}break;case"fundRental":const p=s||(l.fundRental?l.fundRental:null===a||void 0===a||null===(r=a.rental)||void 0===r?void 0:r[0]);if(p.nftID!==o.id)throw new Error("Order NFT is not the same as the selected NFT.");try{var q,G,Y;if(A((e=>({...e,fundRental:!0}))),E((e=>({...e,fundRental:!1}))),_((e=>({...e,fundRental:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{_((e=>({...e,fundRental:!0}))),A((e=>({...e,fundRental:!1})))}),6e3);const e=S.tokens.getTokenInfo(p.paymentTokenName),t=await S.fundRentalListing({enabledAutoReturn:m,ftPrivatePathIdentifier:w,ftProviderAddress:g,listingData:s||(l.fundRental?l.fundRental:null===a||void 0===a||null===(q=a.rental)||void 0===q?void 0:q[0]),nftData:{contractAddress:o.contractAddress,contractName:o.contractName,id:o.id.toString(),nftOwner:o.owner,type:o.type},nftProviderPathIdentifier:d,nftReceiverAddress:u,token:e,txAvailableCallback:x});if(4===(null===t||void 0===t?void 0:t.status))return _((e=>({...e,fundRental:!0}))),A((e=>({...e,fundRental:!1}))),void c("Successful rent transaction",{listingData:p,token:p.paymentTokenName});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==(G=t.toString())&&void 0!==G&&G.includes("Error")||null!==t&&void 0!==t&&null!==(Y=t.toString())&&void 0!==Y&&Y.includes("Declined"))throw new Error(t)}catch(ne){var K;E((e=>({...e,fundRental:!0}))),A((e=>({...e,fundRental:!1}))),null!==ne&&void 0!==ne&&null!==(K=ne.toString())&&void 0!==K&&K.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error rent transaction",{err:ne,listingData:p,token:p.paymentTokenName})}break;case"rentalBorrower":if((null===T||void 0===T?void 0:T.nftID)!==o.id)throw new Error("Order NFT is not the same as the selected NFT.");try{var Q,X,Z;if(A((e=>({...e,rentalBorrower:!0}))),E((e=>({...e,rentalBorrower:!1}))),_((e=>({...e,rentalBorrower:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{_((e=>({...e,rentalBorrower:!0}))),A((e=>({...e,rentalBorrower:!1})))}),6e3);const e=S.tokens.getTokenInfo(null===T||void 0===T?void 0:T.paymentTokenName),t=await S.returnRental(T,e,x,null!==(Q=T.renterAddress)&&void 0!==Q?Q:"",d);if(4===(null===t||void 0===t?void 0:t.status))return _((e=>({...e,rentalBorrower:!0}))),A((e=>({...e,rentalBorrower:!1}))),void c("Successful rent transaction",{listingData:T,token:T.paymentTokenName});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==(X=t.toString())&&void 0!==X&&X.includes("Error")||null!==t&&void 0!==t&&null!==(Z=t.toString())&&void 0!==Z&&Z.includes("Declined"))throw new Error(t.toString())}catch(ne){var J;E((e=>({...e,rentalBorrower:!0}))),A((e=>({...e,rentalBorrower:!1}))),null!==ne&&void 0!==ne&&null!==(J=ne.toString())&&void 0!==J&&J.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error rent transaction",{err:ne,listingData:T,token:T.paymentTokenName})}break;case"loanBorrower":if((null===T||void 0===T?void 0:T.nftID)!==o.id)throw new Error("Order NFT is not the same as the selected NFT.");try{var $,ee;if(A((e=>({...e,loanBorrower:!0}))),E((e=>({...e,loanBorrower:!1}))),_((e=>({...e,loanBorrower:!1}))),ro)return x("mockTxId"),void setTimeout((()=>{_((e=>({...e,loanBorrower:!0}))),A((e=>({...e,loanBorrower:!1})))}),6e3);const e=S.tokens.getTokenInfo(null===T||void 0===T?void 0:T.paymentTokenName),t=await S.repayLoan({address:"0x5c57f79c6694797f",ftPrivatePathIdentifier:w,ftProviderAddress:g,fundItemID:Number(null===T||void 0===T?void 0:T.fundingResourceID),token:e,txAvailableCallback:x});if(4===(null===t||void 0===t?void 0:t.status))return _((e=>({...e,loanBorrower:!0}))),A((e=>({...e,loanBorrower:!1}))),void c("Successful rent transaction",{listingData:T,token:T.paymentTokenName});if(4!==(null===t||void 0===t?void 0:t.status)&&null!==t&&void 0!==t&&null!==($=t.toString())&&void 0!==$&&$.includes("Error")||null!==t&&void 0!==t&&null!==(ee=t.toString())&&void 0!==ee&&ee.includes("Declined"))throw new Error(t.toString())}catch(ne){var te;E((e=>({...e,loanBorrower:!0}))),A((e=>({...e,loanBorrower:!1}))),null!==ne&&void 0!==ne&&null!==(te=ne.toString())&&void 0!==te&&te.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),c("Error rent transaction",{err:ne,listingData:T,token:T.paymentTokenName})}break;default:return}},oo={activeTab:"1",closeBtnProps:{onClick:()=>{},text:""},collectionImage:null,confirmBtnProps:{onClick:()=>{},text:""},dapperOffer:null,dapperWalletNoOrder:!1,error:{fundLoan:!1,fundRental:!1,loanBorrower:!1,makeOffer:!1,purchase:!1,rentalBorrower:!1},hasBalance:!0,hasChildAccounts:!1,hasNftReceiver:new Xt,isCancelOffer:!1,isDapper:!1,isFormError:{fundLoan:!1,fundRental:!1,loanBorrower:!1,makeOffer:!1,purchase:!1,rentalBorrower:!1},isLoading:{fundLoan:!1,fundRental:!1,loanBorrower:!1,makeOffer:!1,purchase:!1,rentalBorrower:!1},isMainnet:!1,isMakeOffer:!1,isOrderListedByLoggedAccount:!1,isPrivateListing:!1,listingType:"purchase",mainAccount:void 0,mixPanelFn:()=>{},nftOwnerAccountSummary:void 0,nonCustodialOffer:null,nonDapperNoOrder:!1,offerDuration:void 0,offerTokenType:T.SupportedTokens.FLOW,offerValue:"",onCloseModal:()=>{},payWithSelectedAccount:void 0,resetModal:()=>{},royaltyRate:null,sealed:{fundLoan:!1,fundRental:!1,loanBorrower:!1,makeOffer:!1,purchase:!1,rentalBorrower:!1},selectedOrder:{fundLoan:null,fundRental:null,purchase:null},sendToSelectedAccount:void 0,setActiveTab:e=>{},setSelectedOrder:()=>{},singleOffer:void 0,strapiUrl:"",tokenProviderFilter:new Xt,transactionID:null,updateSelectedAccount:()=>{},updateSelectedOrder:()=>{},valuationData:{percentage:null,source:"",usdValue:0}},ao=(0,i.createContext)(oo),so=e=>{var t,n,r,o,s,l,c,u,d,p,h,f,m,g,v;let{accountSummaries:y,addressesWithCollectionPublic:b,children:w,collectionImage:x,flowNft:C,isLoggedUser:A,mainAccount:E,mixPanelFn:_,nftOrders:S,nftProviderPathIdentifier:k,isLostAndFound:P,isLoadingOrders:D,loanRentalActionsData:F,lostAndFoundTicketID:N,lostAndFoundCatalogIdentifier:I,offer:R,singleOffer:O,openSearchFlowNFT:j,onClose:M,purchaseType:L,resetForm:B,singleListing:U,createTransactionNotification:V,spotPrice:H,strapiUrl:z,values:W,valuation:q,isLoadingValuation:G,flowty:Y}=e;const[K,Q]=(0,i.useState)("purchase"===L?"1":"loan"===L?"2":"rental"===L||"rental"===(null===j||void 0===j||null===(t=j.orders)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.listingKind)?"3":"loan"===(null===j||void 0===j||null===(r=j.orders)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.listingKind)?"2":"1"),[X,Z]=(0,i.useState)(E||Object.values(y||{})[0]),[J,$]=(0,i.useState)(E||Object.values(y||{})[0]),[ee,te]=(0,i.useState)(null),[ne,re]=(0,i.useState)({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),[ie,oe]=(0,i.useState)({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),[ae,se]=(0,i.useState)({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),[le,ce]=(0,i.useState)({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),[ue,de]=(0,i.useState)("make-offer"===O),pe="mainnet"===Y.config.network,he=null===X||void 0===X?void 0:X.isDapper,fe=null===y||void 0===y?void 0:y[null===j||void 0===j?void 0:j.owner],me=(0,i.useMemo)((()=>"cancel-offer"===O),[O]),ge=(0,i.useMemo)((()=>Object.values(y||{}).length>1),[y]),ve=e=>te(e),ye=(0,i.useMemo)((()=>P?"lostAndFound":ue?"makeOffer":me?"cancelOffer":F?"loan"===F.type?"loanBorrower":"rentalBorrower":Boolean(U)?"storefront"===(null===U||void 0===U?void 0:U.listingKind)?"purchase":"loan"===(null===U||void 0===U?void 0:U.listingKind)?"fundLoan":"fundRental":"1"===K?"purchase":"2"===K?"fundLoan":"fundRental"),[K,L,ue,F]),[be,we]=(0,i.useState)({fundLoan:U||((null===S||void 0===S||null===(s=S.loan)||void 0===s?void 0:s[0])||null),fundRental:U||((null===S||void 0===S||null===(l=S.rental)||void 0===l?void 0:l[0])||null),purchase:U||((null===S||void 0===S||null===(c=S.storefront)||void 0===c?void 0:c[0])||null)}),xe=(0,i.useMemo)((()=>{var e,t,n;return"1"===K?(null===be||void 0===be?void 0:be.purchase)||(null===S||void 0===S||null===(e=S.storefront)||void 0===e?void 0:e[0]):"2"===K?(null===be||void 0===be?void 0:be.fundLoan)||(null===S||void 0===S||null===(t=S.loan)||void 0===t?void 0:t[0]):(null===be||void 0===be?void 0:be.fundRental)||(null===S||void 0===S||null===(n=S.rental)||void 0===n?void 0:n[0])}),[K,be,S]),Ce=(0,i.useMemo)((()=>{if(ue){const e=Y.tokens.getTokenIdentifier(W.offerTokenType);return W.offerTokenType===T.SupportedTokens.DUC&&null!==E&&void 0!==E&&E.isDapper?new Xt:new Jt({tokenIdentifier:e})}return(null===xe||void 0===xe?void 0:xe.paymentTokenName)===T.SupportedTokens.DUC&&null!==E&&void 0!==E&&E.isDapper?new Xt:new Jt({tokenIdentifier:Y.tokens.getTokenIdentifier((null===xe||void 0===xe?void 0:xe.paymentTokenName)||T.SupportedTokens.FLOW)})}),[xe,ue,W]),Ae=(0,i.useMemo)((()=>new $t(b||[])),[b]),Ee=(0,i.useMemo)((()=>{var e,t;const n=ue?qt.PaymentTokenToIdentifier[W.offerTokenType]:(null===xe||void 0===xe?void 0:xe.paymentTokenType)||"";return(null===X||void 0===X||null===(e=X.tokens)||void 0===e||null===(t=e[n])||void 0===t?void 0:t.providerPaths)||[]}),[ue,xe,X]),_e=(0,i.useMemo)((()=>{try{if(!xe)return"";const e=(0,T.getContractNameFromType)((null===xe||void 0===xe?void 0:xe.paymentTokenType)||""),t=(0,T.getContractAddressFromType)((null===xe||void 0===xe?void 0:xe.paymentTokenType)||"");return((e,t,n)=>{var r;if(!e||!e.length)return"";if(t&&n){const r="".concat(n).concat(t,"FtProviderForFlowty"),i=e.find((e=>e.identifier.includes(r)));if(i)return i.identifier}const i=e.find((e=>e.identifier.includes("ForFlowty")));return i?i.identifier:(null===e||void 0===e||null===(r=e[0])||void 0===r?void 0:r.identifier)||""})(Ee,t,e)}catch(e){return""}}),[xe,X]),Te=(null===E||void 0===E?void 0:E.address)===(null===R||void 0===R?void 0:R.flowtyStorefrontAddress),Se=(0,i.useMemo)((()=>{var e,t,n;return F?{listingKind:"loan"===F.type?"loanBorrower":"rentalBorrower",...F}:U?ue?{currentOrderSalePrice:U.amount,currentOrderTokenName:U.paymentTokenName,listingKind:"makeOffer",offerAmount:W.offerAmount,paymentTokenName:W.offerTokenType}:U:"purchase"===ye?be.purchase||(null===S||void 0===S||null===(e=S.storefront)||void 0===e?void 0:e[0]):"fundRental"===ye?be.fundRental||(null===S||void 0===S||null===(t=S.rental)||void 0===t?void 0:t[0]):"fundLoan"===ye?be.fundLoan||(null===S||void 0===S||null===(n=S.loan)||void 0===n?void 0:n[0]):"cancelOffer"===ye?{listingKind:"cancelOffer",...R}:{currentOrderSalePrice:be.purchase?be.purchase.amount:null,currentOrderTokenName:be.purchase?be.purchase.paymentTokenName:null,listingKind:"makeOffer",offerAmount:W.offerAmount,paymentTokenName:W.offerTokenType}}),[F,U,ye,be,S,W,R,ue]),{royaltyRate:ke}=(0,qt.useGetCollectionRoyalty)({flowty:Y,mixPanelFn:_,nft:C||null});(0,i.useEffect)((()=>{var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v;if(ee&&V)switch(ye){case"purchase":const x=Se;V({amount:Number(null!==(e=null===x||void 0===x?void 0:x.amount)&&void 0!==e?e:0),collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(t=j.card.images)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(r=j.card.title)&&void 0!==r?r:"",token:x.paymentTokenName,transactionID:ee,type:T.NotificationType.Transaction});break;case"makeOffer":const C=Se;V({amount:C.offerAmount,collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(i=j.card.images)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(a=j.card.title)&&void 0!==a?a:"",token:C.paymentTokenName,transactionID:ee,type:T.NotificationType.Transaction});break;case"cancelOffer":const A=Se;V({amount:Number(A.amount),collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(s=j.card.images)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(c=j.card.title)&&void 0!==c?c:"",token:A.paymentTokenName,transactionID:ee,type:T.NotificationType.Transaction});break;case"loanBorrower":const E=Se;V({amount:null!==(u=E.loanAmount)&&void 0!==u?u:0,collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(d=j.card.images)||void 0===d||null===(p=d[0])||void 0===p?void 0:p.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(h=j.card.title)&&void 0!==h?h:"",token:E.paymentTokenName,transactionID:ee,type:T.NotificationType.Transaction});break;case"fundLoan":const _=Se;V({amount:null!==(f=null===_||void 0===_?void 0:_.derivations.calculatedValues.marketplaceAmount)&&void 0!==f?f:0,collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(m=j.card.images)||void 0===m||null===(g=m[0])||void 0===g?void 0:g.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(v=j.card.title)&&void 0!==v?v:"",token:_.paymentTokenType,transactionID:ee,type:T.NotificationType.Transaction});break;case"fundRental":var y,b,w;V({amount:Number(Se.amount),collectionAddress:j.contractAddress,collectionName:j.contractName,imageUrl:(null===(y=j.card.images)||void 0===y||null===(b=y[0])||void 0===b?void 0:b.url)||"",listingType:ye,nftId:j.id,nftType:j.type,status:"PROCESSING",timestamp:Date.now(),title:null!==(w=j.card.title)&&void 0!==w?w:"",transactionID:ee,type:T.NotificationType.Transaction})}}),[ee,j,ye,Se,V]);const Pe=async()=>{await io({enabledAutoReturn:W.automaticReturn,flowty:Y,ftProviderAddress:X.address,isLostAndFound:P,listingType:ye,loanRentalActionsData:F,lostAndFoundCatalogIdentifier:I,mixPanelFn:_,nftOrders:S,nftProviderPathIdentifier:k,nftReceiverAddress:J.address,offer:R,offerAmount:+W.offerAmount,offerDuration:+W.offerDuration,openSearchFlowNFT:j,privateFTPath:_e,selectedOrder:be,setError:re,setIsLoading:se,setIsSealed:oe,singleListing:U,ticketID:N,token:W.offerTokenType,txAvailableCallback:ve})},De=()=>{de(!0)},Fe=()=>{ae.purchase||ae.fundLoan||ae.fundRental||ae.makeOffer||(re({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),oe({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),ce({fundLoan:!1,fundRental:!1,makeOffer:!1,purchase:!1}),Q("purchase"===L?"1":"loan"===L?"2":"3")),B(),M()},Ne=(0,i.useMemo)((()=>{if(he)return!0;if(ue)return(0,vn.V8)(+W.offerAmount,W.offerTokenType,X,Y);if(F)return"loan"!==F.type||(0,vn.Ng)(X,Number(null===F||void 0===F?void 0:F.repaymentDue),null===F||void 0===F?void 0:F.paymentTokenName,Y);if("fundLoan"===ye){var e,t,n;const r=U||be.fundLoan||(null===S||void 0===S||null===(e=S.loan)||void 0===e?void 0:e[0]),i=null===r||void 0===r||null===(t=r.derivations)||void 0===t||null===(n=t.calculatedValues)||void 0===n?void 0:n.marketplaceAmount;return(0,vn.R5)(X,null===r||void 0===r?void 0:r.paymentTokenType,i)}if("fundRental"===ye){var r;const e=U||be.fundRental||(null===S||void 0===S||null===(r=S.rental)||void 0===r?void 0:r[0]);return(0,vn.fy)(X,null===e||void 0===e?void 0:e.deposit,null===e||void 0===e?void 0:e.amount,(null===e||void 0===e?void 0:e.paymentTokenName)||T.SupportedTokens.FLOW,Y)}if("purchase"===ye){var i;const e=U||be.purchase||(null===S||void 0===S||null===(i=S.storefront)||void 0===i?void 0:i[0]);return(0,vn.Ng)(X,+(null===e||void 0===e?void 0:e.amount),(null===e||void 0===e?void 0:e.paymentTokenName)||T.SupportedTokens.FLOW,Y)}return!0}),[F,X,W,U,be,S,X,ue]),Ie=(0,i.useMemo)((()=>{const e=(0,T.nftTypeAndIdToLocationData)(j.type,j.id),t=window.location.origin;return"".concat(t,"/asset/").concat(e.contract.address,"/").concat(e.contract.name,"/").concat(e.resourceName,"/").concat(e.nftID)}),[j]),Re=(0,i.useMemo)((()=>{const e=window.location.origin;return"".concat(e,"/user/profile?tab=1&offersTab=1")}),[]),Oe=()=>{window.open(Re,"_blank")},je=()=>{window.open(Ie,"_blank")},Me=()=>{const e=window.location.origin,t="".concat(e,"/user/profile?tab=3");window.open(t,"_blank")},Le=()=>{const e=window.location.origin,t="".concat(e,"/user-profile/loans");window.open(t,"_blank")},Be=()=>{ce((e=>({...e,[ye]:!0})))},Ue=(0,i.useMemo)((()=>{var e,t;return!(null===be||void 0===be||null===(e=be.fundRental)||void 0===e||!e.renter)&&(null===be||void 0===be||null===(t=be.fundRental)||void 0===t?void 0:t.renter)!==(null===E||void 0===E?void 0:E.address)}),[be]),Ve=(null===xe||void 0===xe?void 0:xe.paymentTokenName)!==T.SupportedTokens.DUC&&he,He=(null===xe||void 0===xe?void 0:xe.paymentTokenName)===T.SupportedTokens.DUC&&!he&&A,ze=En(pe),We=+W.offerAmount<=0||+W.offerAmount>1e7,qe=!(null!==W&&void 0!==W&&W.offerDuration)||+(null===W||void 0===W?void 0:W.offerDuration)<ze||+(null===W||void 0===W?void 0:W.offerDuration)>_n,Ge=We||qe,Ye=(0,Gt.zy)(),Ke=(0,i.useMemo)((()=>Ye.pathname.includes("/asset/")),[Ye.pathname]),Qe=(0,i.useMemo)((()=>{var e,t,n;return P?{bgColor:"primary",disabled:Boolean(ae.lostAndFound),onClick:ie.lostAndFound?je:Pe,text:ie.lostAndFound?"VIEW ITEM":ne.lostAndFound?"TRY AGAIN":ae.lostAndFound?"CLAIMING":"CLAIM"}:"1"===K?F?{bgColor:"primary",disabled:ae.loanBorrower||ae.rentalBorrower||!Ne&&A,onClick:ie.loanBorrower||ie.rentalBorrower?je:Pe,text:ie.loanBorrower||ie.rentalBorrower?"VIEW ITEM":ae.loanBorrower?"REPAYING":ae.rentalBorrower?"RETURNING":ne.loanBorrower||ne.rentalBorrower?"TRY AGAIN":"loan"===F.type?"REPAY":"RETURN"}:ue?{bgColor:"primary",disabled:ae.makeOffer||!Ne&&A,onClick:A?ie.makeOffer?Oe:Ge?Be:Pe:qt.connectWallet,text:ie.makeOffer?"VIEW OFFERS":ae.makeOffer?"MAKING OFFER":ne.makeOffer?"TRY AGAIN":"SUBMIT OFFER"}:me?{bgColor:"primary",disabled:ae.cancelOffer||!Te,onClick:ie.cancelOffer?Oe:Pe,text:ie.cancelOffer?"VIEW OFFERS":ae.cancelOffer?"CANCELING OFFER":ne.cancelOffer?"TRY AGAIN":"CANCEL OFFER"}:{bgColor:"primary",disabled:!Boolean(U)&&(!Boolean(null===S||void 0===S?void 0:S.storefront)||0===(null===S||void 0===S||null===(e=S.storefront)||void 0===e?void 0:e.length))||ae.purchase||Ve||He||!Ne&&A,notDisplay:ie.purchase&&Ke,onClick:A?ie.purchase?je:Pe:qt.connectWallet,text:ie.purchase?"VIEW ITEM":ae.purchase?"BUYING ITEM":ne.purchase?"TRY AGAIN":"BUY"}:"2"===K?{bgColor:"primary",disabled:!Boolean(U)&&(!Boolean(null===S||void 0===S?void 0:S.loan)||0===(null===S||void 0===S||null===(t=S.loan)||void 0===t?void 0:t.length))||ae.fundLoan||he||!Ne&&A,notDisplay:ie.fundLoan&&Ke,onClick:A?ie.fundLoan?Le:Pe:qt.connectWallet,text:ie.fundLoan?"VIEW LOANS":ae.fundLoan?"FUNDING LOAN":ne.fundLoan?"TRY AGAIN":"FUND LOAN"}:{bgColor:"primary",disabled:!Boolean(U)&&(!Boolean(null===S||void 0===S?void 0:S.rental)||0===(null===S||void 0===S||null===(n=S.rental)||void 0===n?void 0:n.length))||ae.fundRental||he||Ue||!Ne&&A,notDisplay:ie.fundRental&&Ke,onClick:A?ie.fundRental?Me:Pe:qt.connectWallet,text:ie.fundRental?"VIEW RENTALS":ae.fundRental?"RENTING ITEM":ne.fundRental?"TRY AGAIN":"RENT"}}),[K,W,ae,ie,ne,ue,me,he,S,U,Ue,Ne,F,J,X,be,P]),Xe=(0,i.useMemo)((()=>P?{bgColor:"white",notDisplay:ae.lostAndFound,onClick:Fe,text:ie.lostAndFound?"CLOSE":"CANCEL"}:"1"===K?F?{bgColor:"white",notDisplay:ae.loanBorrower||ae.rentalBorrower,onClick:()=>Fe(),text:ie.loanBorrower||ie.rentalBorrower?"CLOSE":"CANCEL"}:ue?{bgColor:"white",notDisplay:ae.makeOffer,onClick:!ie.makeOffer&&A&&"make-offer"!==O||ne.makeOffer?ne.makeOffer?()=>{re((e=>({...e,makeOffer:!1})))}:()=>de(!1):()=>Fe(),text:!ie.makeOffer&&"make-offer"!==O&&A||ne.makeOffer?"BACK":"CLOSE"}:me?{bgColor:"white",notDisplay:ae.cancelOffer,onClick:()=>Fe(),text:"CLOSE"}:{bgColor:"white",notDisplay:ae.purchase,onClick:ie.purchase||ne.purchase||!A?()=>Fe():De,text:ie.purchase||ne.purchase||!A?"CLOSE":"MAKE OFFER"}:"2"===K?{bgColor:"white",notDisplay:ae.fundLoan,onClick:Fe,text:"CLOSE"}:{bgColor:"white",notDisplay:ae.fundRental,onClick:Fe,text:"CLOSE"}),[K,ie,ae,ie,ne,W,ue,F,P]),Ze=ue?(0,vn.R9)({salePrice:+W.offerAmount,spotPrice:(null===H||void 0===H?void 0:H.value)||0,token:W.offerTokenType||T.SupportedTokens.FLOW,valuation:(null===q||void 0===q?void 0:q.usdValue)||0}):(0,vn.R9)({salePrice:+(null!==be&&void 0!==be&&null!==(u=be.purchase)&&void 0!==u&&u.amount?null===be||void 0===be||null===(d=be.purchase)||void 0===d?void 0:d.amount:(null===S||void 0===S||null===(p=S.storefront)||void 0===p||null===(h=p[0])||void 0===h?void 0:h.amount)||0),spotPrice:(null===H||void 0===H?void 0:H.value)||0,token:null!==be&&void 0!==be&&null!==(f=be.purchase)&&void 0!==f&&f.paymentTokenName?(null===be||void 0===be||null===(m=be.purchase)||void 0===m?void 0:m.paymentTokenName)||T.SupportedTokens.FLOW:(null===S||void 0===S||null===(g=S.storefront)||void 0===g||null===(v=g[0])||void 0===v?void 0:v.paymentTokenName)||T.SupportedTokens.FLOW,valuation:(null===q||void 0===q?void 0:q.usdValue)||0}),Je={percentage:null!==q&&void 0!==q&&q.usdValue?Ze:null,source:(null===q||void 0===q?void 0:q.source)||"",usdValue:(null===q||void 0===q?void 0:q.usdValue)||0},$e=(0,i.useMemo)((()=>W.offerAmount),[W]),et=(0,i.useMemo)((()=>W.offerTokenType),[W]),tt=(0,i.useMemo)((()=>W.offerDuration),[W]),nt=(0,i.useMemo)((()=>null===j||void 0===j?void 0:j.bestDapperOffer),[j]),rt=(0,i.useMemo)((()=>null===j||void 0===j?void 0:j.bestNonCustodialOffer),[j]);return(0,a.jsx)(ao.Provider,{value:{activeTab:K,closeBtnProps:Xe,collectionImage:x,confirmBtnProps:Qe,dapperOffer:nt,dapperWalletNoOrder:Ve,error:ne,hasBalance:Ne,hasChildAccounts:ge,hasNftReceiver:Ae,isCancelOffer:me,isDapper:he,isFormError:le,isLoading:ae,isLoadingOrders:D,isLoadingValuation:G,isLoggedUser:A,isLostAndFound:P,isMainnet:pe,isMakeOffer:ue,isOrderListedByLoggedAccount:Te,isPrivateListing:Ue,listingType:ye,loanRentalActionsData:F,mainAccount:E,mixPanelFn:_,nftOwnerAccountSummary:fe,nonCustodialOffer:rt,nonDapperNoOrder:He,offerDuration:tt,offerTokenType:et,offerValue:$e,onCloseModal:Fe,openSearchFlowNFT:j,orderData:Se,payWithSelectedAccount:X,resetModal:()=>{de(!1)},royaltyRate:100*Number(ke),sealed:ie,selectedOrder:be,sendToSelectedAccount:J,setActiveTab:Q,setSelectedOrder:we,singleOffer:O,spotPrice:H,strapiUrl:z,tokenProviderFilter:Ce,transactionID:ee,updateSelectedAccount:(e,t)=>{"payWith"===t?Z(e):$(e)},updateSelectedOrder:e=>{we("1"===K?t=>({...t,purchase:e}):"2"===K?t=>({...t,fundLoan:e}):t=>({...t,fundRental:e}))},valuationData:Je},children:w})},lo=()=>(0,i.useContext)(ao),co=e=>{var t,n,r,i,s,l,c,u,d,p,h,f,m,g,v;let{order:y,selectedOrder:b}=e;const{spotPrice:w}=lo();return(0,a.jsx)("div",{className:(0,o.cn)("w-[288px] h-[270px] flex flex-col justify-between space-y-2 p-6 rounded-lg border border-[#495057] bg-[#ffffff14] font-montserrat cursor-pointer",{"border-primary":(null===b||void 0===b?void 0:b.listingResourceID)===y.listingResourceID}),children:(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Loan Amount"}),(0,a.jsx)("div",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:(null===y||void 0===y||null===(t=y.derivations)||void 0===t||null===(n=t.calculatedValues)||void 0===n?void 0:n.marketplaceAmount)||0,token:null===y||void 0===y?void 0:y.paymentTokenName,spotPriceValue:w?w.value*Number(null===y||void 0===y||null===(r=y.derivations)||void 0===r||null===(i=r.calculatedValues)||void 0===i?void 0:i.marketplaceAmount):void 0})})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Repayment Amount"}),(0,a.jsx)("div",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:(null===(s=y.derivations)||void 0===s||null===(l=s.calculatedValues)||void 0===l?void 0:l.totalRepayment)||0,token:y.paymentTokenName,spotPriceValue:w?w.value*Number(null===y||void 0===y||null===(c=y.derivations)||void 0===c||null===(u=c.calculatedValues)||void 0===u?void 0:u.totalRepayment):void 0})})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Loan Rate"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[(100*(null!==(d=null===y||void 0===y||null===(p=y.derivations)||void 0===p||null===(h=p.calculatedValues)||void 0===h?void 0:h.periodicInterest)&&void 0!==d?d:0)).toFixed(2),"%"]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"APR"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[an()((0,T.calcAPRInterest)(y?Number(null===y||void 0===y||null===(f=y.derivations)||void 0===f||null===(m=f.calculatedValues)||void 0===m?void 0:m.periodicInterest):0,y?Number(y.term):0)).format("0,0.00"),"%"]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Duration"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:sn(Number(null===y||void 0===y?void 0:y.term))})]}),(0,a.jsx)("div",{className:"flex w-full justify-between items-center",children:(null===y||void 0===y?void 0:y.valuations)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Blended LTV"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[an()(100*(null===(g=y.valuations)||void 0===g||null===(v=g.aggregate)||void 0===v?void 0:v.loanToValueRatio)).format("0,0.0"),"%"]})]})})]})})},uo=e=>{let{order:t,selectedOrder:n}=e;const{spotPrice:r}=lo();return(0,a.jsx)("div",{className:(0,o.cn)("w-[288px] h-[130px] flex flex-col justify-between space-y-2 p-6 rounded-lg border border-[#495057] bg-[#ffffff14] font-montserrat cursor-pointer",{"border-primary":(null===n||void 0===n?void 0:n.listingResourceID)===t.listingResourceID}),children:(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Purchase Price"}),(0,a.jsx)("div",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:t.amount,token:t.paymentTokenName,spotPriceValue:r?r.value*Number(null===t||void 0===t?void 0:t.amount):void 0})})]})})},po=e=>{var t,n,r,i;let{order:s,selectedOrder:l}=e;const{spotPrice:c}=lo();return(0,a.jsx)("div",{className:(0,o.cn)("w-[288px] h-[270px] flex flex-col justify-between p-6 rounded-lg border border-[#495057] bg-[#ffffff14] font-montserrat cursor-pointer",{"border-primary":(null===l||void 0===l?void 0:l.listingResourceID)===(null===s||void 0===s?void 0:s.listingResourceID)}),children:(0,a.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Rental Fee"}),(0,a.jsx)("div",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:null===s||void 0===s?void 0:s.amount,token:null===s||void 0===s?void 0:s.paymentTokenName,spotPriceValue:c?c.value*Number(null===s||void 0===s?void 0:s.amount):void 0})})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Refundable Deposit"}),(0,a.jsx)("div",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:null===s||void 0===s?void 0:s.deposit,token:null===s||void 0===s?void 0:s.paymentTokenName,spotPriceValue:c?c.value*Number(null===s||void 0===s?void 0:s.amount):void 0})})]}),(0,a.jsx)("div",{className:"border-gradient js-show-on-scroll"}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-start",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Total Due Upfront"}),(0,a.jsx)("span",{className:"text-white font-semibold",children:(0,a.jsx)(Sr,{price:Number(null===s||void 0===s?void 0:s.deposit)+Number(null===s||void 0===s?void 0:s.amount),token:null===s||void 0===s?void 0:s.paymentTokenName,spotPriceValue:c?c.value*Number(null===s||void 0===s?void 0:s.amount):void 0})})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"Duration"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:sn(Number(null===s||void 0===s?void 0:s.term))})]}),(null===s||void 0===s||null===(t=s.valuations)||void 0===t||null===(n=t.aggregate)||void 0===n?void 0:n.depositToValueRatio)&&(0,a.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,a.jsx)("span",{className:"text-base text-white",children:"DTV"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[null===s||void 0===s||null===(r=s.valuations)||void 0===r||null===(i=r.aggregate)||void 0===i?void 0:i.depositToValueRatio,"X"]})]})]})})},ho=e=>{let{order:t,selectedOrder:n,index:r,updateSelectedOrder:o}=e;const s=Zi(),l=(0,i.useCallback)((()=>{s.slideTo(r),o(t)}),[n,r,t,o,s]),c=(0,i.useMemo)((()=>{const e=null===t||void 0===t?void 0:t.listingKind;return"loan"===e?(0,a.jsx)(co,{order:t,selectedOrder:n}):"rental"===e?(0,a.jsx)(po,{order:t,selectedOrder:n}):"storefront"===e?(0,a.jsx)(uo,{order:t,selectedOrder:n}):null}),[t,n]);return(0,a.jsx)("div",{onClick:l,"data-testid":"carousel-card",children:c})};var fo;function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mo.apply(null,arguments)}function go(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",mo({width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,fo||(fo=i.createElement("g",{id:"Dot indictaor \xe2\x80\x94 2",opacity:.5},i.createElement("circle",{id:"Dot indictaor",cx:4,cy:4,r:4,fill:"#6C757D"}))))}const vo=i.forwardRef(go);n.p;var yo;function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}function wo(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",bo({width:6,height:10,viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,yo||(yo=i.createElement("path",{id:"Icon",fillRule:"evenodd",clipRule:"evenodd",d:"M5.70711 0.292893C6.09763 0.683417 6.09763 1.31658 5.70711 1.70711L2.41421 5L5.70711 8.29289C6.09763 8.68342 6.09763 9.31658 5.70711 9.70711C5.31658 10.0976 4.68342 10.0976 4.29289 9.70711L0.292893 5.70711C-0.0976315 5.31658 -0.0976315 4.68342 0.292893 4.29289L4.29289 0.292893C4.68342 -0.0976305 5.31658 -0.0976305 5.70711 0.292893Z",fill:"#F8F9FA"})))}const xo=i.forwardRef(wo);n.p;var Co;function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(null,arguments)}function Eo(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Ao({width:6,height:10,viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Co||(Co=i.createElement("path",{id:"Icon",fillRule:"evenodd",clipRule:"evenodd",d:"M0.292894 9.70711C-0.0976307 9.31658 -0.0976307 8.68342 0.292894 8.29289L3.58579 5L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292894C0.683417 -0.0976312 1.31658 -0.0976312 1.70711 0.292894L5.70711 4.29289C6.09763 4.68342 6.09763 5.31658 5.70711 5.70711L1.70711 9.70711C1.31658 10.0976 0.683418 10.0976 0.292894 9.70711Z",fill:"#F8F9FA"})))}const _o=i.forwardRef(Eo);n.p;var To;function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(null,arguments)}function ko(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",So({width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,To||(To=i.createElement("g",{id:"Dot indictaor \xe2\x80\x94 1"},i.createElement("circle",{id:"Dot indictaor",cx:4,cy:4,r:4,fill:"white"}))))}const Po=i.forwardRef(ko),Do=(n.p,e=>{let{itemsLength:t,setIsFirstIndex:n,hiddeArrows:r}=e;const o=Zi(),[s,l]=(0,i.useState)(o.activeIndex),c=0===s,u=s===t-1;return o.on("slideChange",(()=>{l(o.activeIndex),n(0===o.activeIndex)})),(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-2 pt-3",children:[(0,a.jsx)("div",{className:"w-[25px]",children:!c&&!r&&(0,a.jsx)("div",{className:"p-2 backdrop-blur-[6px] border-2 border-[#6c757d40] bg-[#ffffff14] cursor-pointer",onClick:()=>o.slidePrev(),children:(0,a.jsx)(xo,{})})}),Array.from({length:t}).map(((e,t)=>(0,a.jsx)("div",{className:"flex space-x-3 cursor-pointer",onClick:()=>o.slideTo(t),children:s===t?(0,a.jsx)(Po,{}):(0,a.jsx)(vo,{})},t))),(0,a.jsx)("div",{className:"w-[25px]",children:!u&&!r&&(0,a.jsx)("div",{className:"p-2 backdrop-blur-[6px] border-2 border-[#6c757d40] bg-[#ffffff14] cursor-pointer",onClick:()=>o.slideNext(),children:(0,a.jsx)(_o,{})})})]})});function Fo(e){return void 0===e&&(e=""),".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function No(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o="swiper-pagination";let a;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}}),t.pagination={el:null,bullets:[]};let s=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:r}=t.params.pagination;e&&(e=e["".concat("prev"===n?"previous":"next","ElementSibling")])&&(e.classList.add("".concat(r,"-").concat(n)),(e=e["".concat("prev"===n?"previous":"next","ElementSibling")])&&e.classList.add("".concat(r,"-").concat(n,"-").concat(n)))}function u(e){const n=e.target.closest(Fo(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const r=Yr(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;t.slideToLoop(r)}else t.slideTo(r)}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let r,o,u=t.pagination.el;u=Xr(u);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):"undefined"!==typeof t.snapIndex?(r=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let l,d,p;if(n.dynamicBullets&&(a=Qr(i[0],t.isHorizontal()?"width":"height",!0),u.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]="".concat(a*(n.dynamicMainBullets+4),"px")})),n.dynamicMainBullets>1&&void 0!==o&&(s+=r-(o||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),l=Math.max(r-s,0),d=l+(Math.min(i.length,n.dynamicMainBullets)-1),p=(d+l)/2),i.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>"".concat(n.bulletActiveClass).concat(e)))].map((e=>"string"===typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),u.length>1)i.forEach((e=>{const i=Yr(e);i===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(i>=l&&i<=d&&e.classList.add(..."".concat(n.bulletActiveClass,"-main").split(" ")),i===l&&c(e,"prev"),i===d&&c(e,"next"))}));else{const e=i[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")})),n.dynamicBullets){const e=i[l],t=i[d];for(let r=l;r<=d;r+=1)i[r]&&i[r].classList.add(..."".concat(n.bulletActiveClass,"-main").split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),o=(a*r-a)/2-p*a,s=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?s:"top"]="".concat(o,"px")}))}}u.forEach(((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(Fo(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(Fo(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let i;i=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(r+1)/p;let a=1,s=1;"horizontal"===i?a=o:s=o,e.querySelectorAll(Fo(n.progressbarFillClass)).forEach((e=>{e.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(s,")"),e.style.transitionDuration="".concat(t.params.speed,"ms")}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,r+1,p),0===o&&i("paginationRender",e)):(0===o&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=Xr(r);let o="";if("bullets"===e.type){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+="<".concat(e.bulletElement," ").concat(t.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>')),t.pagination.bullets=[],r.forEach((n=>{"custom"!==e.type&&(n.innerHTML=o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(Fo(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",r[0])}function h(){t.params.pagination=function(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((i=>{if(!n[i]&&!0===n.auto){let o=zr(e.el,".".concat(r[i]))[0];o||(o=qr("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}})),n}(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"===typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!==typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"===typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.filter((e=>Kr(e,".swiper")[0]===t.el))[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=Xr(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic")),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",u),t.enabled||n.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=Xr(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",u))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}r("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=Xr(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.pagination.enabled?m():(h(),p(),d())})),r("activeIndexChange",(()=>{"undefined"===typeof t.snapIndex&&d()})),r("snapIndexChange",(()=>{d()})),r("snapGridLengthChange",(()=>{p(),d()})),r("destroy",(()=>{f()})),r("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=Xr(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),r("lock unlock",(()=>{d()})),r("click",((e,n)=>{const r=n.target,o=Xr(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Xr(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Xr(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),p(),d()},disable:m,render:p,update:d,init:h,destroy:f})}const Io=e=>{let{orders:t,selectedOrder:n,updateSelectedOrder:r}=e;const[o,s]=(0,i.useState)(!0);return(0,a.jsx)("div",{className:"max-w-[400px]",children:(0,a.jsxs)(Ji,{slidesPerView:"auto",spaceBetween:10,effect:"slide",speed:800,centeredSlides:!o,modules:[No],children:[t.length>1&&(0,a.jsx)("span",{slot:"container-end",className:"h-32 w-32",children:(0,a.jsx)(Do,{itemsLength:t.length,setIsFirstIndex:s})}),t.map(((e,t)=>(0,a.jsx)($i,{className:"!w-auto",children:(0,a.jsx)(ho,{index:t,order:e,selectedOrder:n,updateSelectedOrder:r})},e.listingResourceID)))]})})},Ro=e=>{var t,n,r,i,o,s,l,c,u,d,p,h,f,m,g;let{listing:v}=e;const{spotPrice:y}=lo();return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3 justify-between mt-4",children:[(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Loan Amount"}),(0,a.jsx)(Sr,{token:v.paymentTokenName,price:(null===v||void 0===v||null===(t=v.derivations)||void 0===t||null===(n=t.calculatedValues)||void 0===n?void 0:n.marketplaceAmount)||0,spotPriceValue:y?y.value*Number(null===v||void 0===v||null===(r=v.derivations)||void 0===r||null===(i=r.calculatedValues)||void 0===i?void 0:i.marketplaceAmount):void 0})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Repayment Amount"}),(0,a.jsx)(Sr,{token:v.paymentTokenName,price:(null===v||void 0===v||null===(o=v.derivations)||void 0===o||null===(s=o.calculatedValues)||void 0===s?void 0:s.totalRepayment)||0,spotPriceValue:y?y.value*Number(null===v||void 0===v||null===(l=v.derivations)||void 0===l||null===(c=l.calculatedValues)||void 0===c?void 0:c.totalRepayment):void 0})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Loan Rate"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[(100*(null!==(u=null===v||void 0===v||null===(d=v.derivations)||void 0===d||null===(p=d.calculatedValues)||void 0===p?void 0:p.periodicInterest)&&void 0!==u?u:0)).toFixed(2),"%"]})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"APR Rate"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[an()((0,T.calcAPRInterest)(v?Number(null===v||void 0===v||null===(h=v.derivations)||void 0===h||null===(f=h.calculatedValues)||void 0===f?void 0:f.periodicInterest):0,v?Number(v.term):0)).format("0,0.00"),"%"]})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Duration"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:sn(Number(v.term))})]}),(0,a.jsx)("div",{className:"w-full flex justify-between",children:(null===v||void 0===v?void 0:v.valuations)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Blended LTV"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold",children:[an()(100*(null===(m=v.valuations)||void 0===m||null===(g=m.aggregate)||void 0===g?void 0:g.loanToValueRatio)).format("0,0.0"),"%"]})]})})]})},Oo=e=>{var t;let{loanOrder:n,selectedOrder:r}=e;const{updateSelectedOrder:i,isDelist:o,openSearchFlowNFT:s,orderFromChildAccount:l,isMainnet:c,collectionDisplayName:u}=Ln(),d=n?null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.flowtyStorefrontAddress:null===r||void 0===r?void 0:r.flowtyStorefrontAddress;return(0,a.jsxs)("div",{className:"flex flex-col gap-3 h-full w-full md:w-[400px]",children:[n&&n.length>1?(0,a.jsxs)(a.Fragment,{children:[o.loan&&(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Loan listing will be removed from the marketplace."}),(0,a.jsx)(Io,{updateSelectedOrder:i,orders:n,selectedOrder:r})]}):(0,a.jsxs)(a.Fragment,{children:[o.loan&&(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Loan listing will be removed from the marketplace."}),(0,a.jsx)(Ro,{listing:r})]}),o.loan&&l&&(0,a.jsxs)("div",{className:"text-orange-500 text-sm font-normal py-2",children:["NFT was listed while connected with"," ".concat(d)," as Main. Please sign in with "," ".concat(d)," ","to delist."]}),!o.loan&&(0,a.jsx)(ir,{nft:s,order:r,listingType:"storefront",isMainnet:c,collectionDisplayName:u})]})},jo={"A.0b2a3299cc857e29.TopShot":"ad3260ba-a87c-4359-a8b0-def2cc36310b","A.329feb3ab062d289.UFC_NFT":"24ed5274-68f4-42bc-8600-4a6f5fa17359","A.427ceada271aa0b1.SturdyItems":"fb3cebea-cb28-4231-9d56-ea4ecd2f8ff7","A.427ceada271aa0b1.SturdyTokens":"35c53829-12f1-4f0d-ac7f-9a9d2b7bc172","A.87ca73a41bb50ad5.Golazos":"44924327-dea6-4915-a18d-85a827c5eb51","A.8b148183c28ff88f.Gaia":"75dc054b-e405-4fbd-91c3-6dbfc0e691ca","A.e4cf4bdc1751c65d.AllDay":"567226a0-f1fe-4c9a-ba85-423d020d646a"},Mo=e=>{var t;if(!e)return null;const[n,r,i]=e.type.split("."),o="A.".concat(r,".").concat(i),a=null!==(t=jo[o])&&void 0!==t?t:null;if(!a)return null;return"https://accounts.meetdapper.com/inventory?page=1&sort=DESC&token=".concat(e.id,"&contract=").concat(o,"&dapp=").concat(a)},Lo=e=>{var t,n;let{isDapper:r,childAccounts:o,openSearchFlowNFT:c,transferFormError:u,transferReceiver:d}=e;const{transferWalletSelected:p,setTransferWalletSelected:h,transferInvalidAddress:f,setTransferInvalidAddress:m,transferSuggestedAccounts:g,hasNftReceiver:v}=Ln(),y=(0,i.useRef)(null),b=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e,t,n,r;if(u&&(u||f)&&(null!==y&&void 0!==y&&null!==(e=y.current)&&void 0!==e&&e.scrollIntoView))return void(null===y||void 0===y||null===(t=y.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}));u&&(null!==y&&void 0!==y&&null!==(n=y.current)&&void 0!==n&&n.scrollIntoView&&(null===b||void 0===b||null===(r=b.current)||void 0===r||r.scrollIntoView({behavior:"smooth"})))}),[u]);const[,w,x]=(0,l.Mt)({name:"transferReceiver"}),{setValue:C}=x,{value:A}=w,E=Mo(c),_=(0,i.useCallback)((async()=>{if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK)return;const e=await(0,qt.verifyAddress)(d);m(!e)}),[d]);(0,i.useEffect)((()=>{""!=p&&A!==p?h(""):m(!1)}),[p,A]),(0,i.useEffect)((()=>{""!=d&&_()}),[_,A,d]);const S=(0,i.useMemo)((()=>Object.values(g||{}).reduce(((e,t)=>{if((null===c||void 0===c?void 0:c.owner)===t.address)return e;return!(null!==v&&void 0!==v&&v.apply(t))?{invalid:[t,...e.invalid],valid:e.valid}:{invalid:e.invalid,valid:[t,...e.valid]}}),{invalid:[],valid:[]})),[g,v]);return(0,a.jsx)(a.Fragment,{children:r?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-base font-normal text-white",children:"NFTs in Dapper Wallet can only be transferred via Dapper's Inventory."}),(0,a.jsx)(s,{text:"VIEW IN DAPPER INVENTORY",variant:"secondary",btnSize:"small",onClick:()=>{window.open(E||"https://accounts.meetdapper.com/inventory","_blank")}})]}):(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-4",ref:y,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white",children:"Recipient"}),(0,a.jsx)(Wt,{name:"transferReceiver",valueError:u&&f,inputError:u&&f,placeholder:"Enter Wallet Address",textLeft:!0,errorMessage:u&&f?"Address Not Found":null}),o&&(null===o||void 0===o?void 0:o.length)>0&&g&&(0,a.jsxs)("div",{className:"flex flex-col gap-3 p-3 bg-[#FFFFFF14] rounded-md",children:[(0,a.jsx)("p",{className:"text-white font-normal text-xs",children:"Linked Accounts"}),null===(t=S.valid)||void 0===t?void 0:t.map(((e,t)=>{var n,r;return(0,a.jsxs)("button",{onClick:()=>{if(p===(null===e||void 0===e?void 0:e.address))return h(""),void C("");h(null===e||void 0===e?void 0:e.address),C(null===e||void 0===e?void 0:e.address)},"data-testid":"transfer-wallet-checkbox",className:"border border-[#FFFFFF1F] bg-[#606E7D33] py-3 w-full flex rounded-md group px-2 cursor-pointer",children:[(0,a.jsx)("div",{className:"flex h-full justify-center items-center px-2",children:(0,a.jsx)("div",{className:"w-5 h-5 rounded-full border-2  border-neutral-700 hover:border-white  ".concat(p===(null===e||void 0===e?void 0:e.address)?"bg-primary border-none":"bg-transparent!"," flex items-center justify-center"),children:(0,a.jsx)("div",{className:"p-[0.25rem] rounded-full absolute ".concat(p===(null===e||void 0===e?void 0:e.address)?"bg-[#031021]":"bg-transparent")})})}),(0,a.jsxs)("div",{className:"flex flex-col px-3 py-1 items-start",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"leading-none text-sm font-bold text-white",children:(0,T.truncateString)(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.name,20)||(e.isMain?"Main Account":"Child Account")}),(0,a.jsx)("img",{src:null===e||void 0===e||null===(r=e.display)||void 0===r?void 0:r.thumbnail,alt:"Wallet",className:"h-6 w-6 rounded-lg mx-2"}),(0,a.jsx)(Kt,{isMainWallet:e.isMain})]}),(0,a.jsx)("div",{className:"text-xs mt-1 text-white",children:null===e||void 0===e?void 0:e.address})]})]},"valid-".concat(null===e||void 0===e?void 0:e.address,"-").concat(t))})),null===(n=S.invalid)||void 0===n?void 0:n.map(((e,t)=>{var n,r;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{"aria-disabled":!0,className:"cursor-not-allowed items-center opacity-50 border border-[#FFFFFF1F] bg-[#606E7D33] py-3 w-full flex rounded-md group px-2",children:[(0,a.jsx)("div",{className:"flex h-full justify-center items-center px-2",children:(0,a.jsx)("div",{className:"w-5 h-5 rounded-full border-2  border-neutral-700 hover:border-white  ".concat(p===(null===e||void 0===e?void 0:e.address)?"bg-primary border-none":"bg-transparent!"," flex items-center justify-center"),children:(0,a.jsx)("div",{className:"p-[0.25rem] rounded-full absolute ".concat(p===(null===e||void 0===e?void 0:e.address)?"bg-[#031021]":"bg-transparent")})})}),(0,a.jsxs)("div",{className:"flex flex-col px-3 py-1",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"leading-none text-sm font-bold text-white",children:(0,T.truncateString)(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.name,20)||(e.isMain?"Main Account":"Child Account")}),(0,a.jsx)("img",{src:null===e||void 0===e||null===(r=e.display)||void 0===r?void 0:r.thumbnail,alt:"Wallet",className:"h-6 w-6 rounded-lg mx-2"}),(0,a.jsx)(Kt,{isMainWallet:e.isMain})]}),(0,a.jsx)("div",{className:"text-xs mt-1 text-white",children:null===e||void 0===e?void 0:e.address})]})]}),t===S.invalid.length-1&&rn?(0,a.jsx)("div",{className:"w-full border-gray-500 h-8 text-danger text-xs grid place-items-center",children:rn}):null]},"invalid-".concat(null===e||void 0===e?void 0:e.address,"-").concat(t))}))]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4 text-white font-normal",ref:b,children:(0,a.jsx)("p",{className:"text-xs text-white",children:"Note: Flowty is not responsible for any loss of assets or unexpected outcomes resulting from NFT transfers"})})]})})},Bo=e=>{let{openSearchFlowNFT:t}=e;const n=Mo(t);return(0,a.jsxs)("div",{className:"w-full flex flex-col py-4 px-3 justify-center text-white",children:[(0,a.jsx)("span",{className:"py-2 text-med font-bold",children:"Feature can only be accessed via a non-Dapper Wallet or using Account Linking"}),(0,a.jsx)("span",{className:"py-2 font-semibold text-sm md:text-nowrap",children:"Account Linking:"}),(0,a.jsx)(Gn,{size:"small",href:"https://flowty.substack.com/p/account-linking-on-flowty",text:"How to sign up for Account Linking"}),(0,a.jsx)("span",{className:"py-2 font-semibold text-sm md:text-nowrap",children:"Transfer to Non-Dapper Wallet:"}),(0,a.jsx)("span",{className:"py-2 text-xs md:text-nowrap",children:"Use button to transfer an NFT to non-Dapper Wallet via Dapper inventory"}),(0,a.jsx)("div",{className:"w-full flex justify-center pt-3",children:(0,a.jsx)(s,{text:"VIEW IN DAPPER INVENTORY",variant:"secondary",btnSize:"small",onClick:()=>{window.open(n||"https://accounts.meetdapper.com/inventory","_blank")}})})]})};const Uo=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Vo=e=>{let{title:t,text:n}=e;return(0,a.jsxs)("div",{className:"w-full flex gap-3 justify-start items-center p-5 border border-warning bg-[#ffffff1a] rounded",children:[(0,a.jsx)(Uo,{className:"w-[40px] h-[40px] text-warning"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-xs font-bold text-white",children:t}),(0,a.jsx)("p",{className:"text-xs font-normal text-white",children:n})]})]})};var Ho=n(35032);const zo=T.SUPPORTED_TOKEN_LIST,Wo=T.SUPPORTED_NON_DAPPER_TOKENS,qo=T.SUPPORTED_NON_DAPPER_TOKENS,Go=T.SUPPORTED_DAPPER_TOKENS,Yo=[T.SupportedTokens.DUC],Ko=(e,t)=>{switch(e){case"loan":case"rental":return Wo;case"storefront":return t?Go:qo;case"offer":return t?Yo:qo;default:return[]}};class Qo{constructor(e){this.params=void 0,this.params=e}apply(e){var t,n;return!(null===e||void 0===e||null===(t=e.tokens)||void 0===t||null===(n=t[this.params.tokenIdentifier])||void 0===n||!n.receiverPath)||e.isMain}}const Xo=e=>{let{name:t,selectedAccount:n,isDapper:r,orderType:o,flowty:a}=e;const s=r?T.SupportedTokens.DUC:T.SupportedTokens.USDC,[c]=(0,l.Mt)(t),u=(0,i.useMemo)((()=>n?zo.reduce(((e,t)=>({...e,[t]:new Qo({tokenIdentifier:a.tokens.getTokenIdentifier(t)}).apply(n)&&Ko(o,n.isDapper).includes(t)})),{}):{}),[n,o,r]);return(0,i.useEffect)((()=>{const e=zo.filter((e=>u[e]));if(e.includes(c.value))return;const n=e[0];c.onChange({target:{name:t,value:n}})}),[n,r]),(0,i.useEffect)((()=>{const e=zo.filter((e=>u[e]));if(!e.includes(c.value))if(r){const e=T.SupportedTokens.DUC;c.onChange({target:{name:t,value:e}})}else{const e=T.SupportedTokens.USDC;c.onChange({target:{name:t,value:e}})}}),[r]),{allTokens:zo,defaultToken:s,field:c,supportedTokensMap:u}},Zo=e=>{let{name:t,selectedAccount:n,isDapper:r,orderType:i,flowty:o}=e;const{supportedTokensMap:s,field:l,defaultToken:c,allTokens:u}=Xo({flowty:o,isDapper:r,name:t,orderType:i,selectedAccount:n});function d(e){return e===T.SupportedTokens.DUC?"Dapper Balance":e}return(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(Ho.W,{value:l.value||c,onChange:e=>{l.onChange({target:{name:t,value:e}})},children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(Ho.W.Button,{className:"w-full text-[12px] font-bold","data-testid":"token-selector",children:e=>{let{open:t}=e;return(0,a.jsxs)("div",{className:"w-full flex justify-between font-bold h-[37px] font-montserrat-bold bg-[#606E7D33] border border-[#FFFFFF1F] hover:bg-[#606E7D4D] rounded-md p-4 items-center group gap-2 text-[#F8F9FA] ".concat(t&&"border-[#FFFFFF7A]"),children:[(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)(Er,{token:l.value||c}),(0,a.jsx)("span",{className:"whitespace-nowrap font-bold font-montserrat-bold h-full flex justify-center items-center group-hover:text-white pl-2",children:d(l.value||c)})]}),(0,a.jsx)(U.A,{className:"h-7 w-7 transition-transform duration-300  ".concat(t&&"rotate-180 transform")})]})}}),(0,a.jsx)(Ho.W.Options,{className:"absolute z-10 bg-[#232D39] rounded-md mt-1 text-[#F8F9FA] border border-[#FFFFFF7A] overflow-hidden w-full p-2 text-[12px] font-bold",children:u.map((e=>s[e]?(0,a.jsx)(Ho.W.Option,{value:e,disabled:!1,className:"hover:bg-[#6C757D40] hover:text-white cursor-pointer transition-all ease-in-out duration-300 w-full py-1 flex flex-col items-end rounded-md",children:(0,a.jsxs)("div",{className:"flex w-full px-3 items-center","data-testid":"".concat(e,"-token-selector"),children:[(0,a.jsx)(Er,{token:e}),(0,a.jsx)("span",{className:"grow p-2 font-bold font-montserrat-bold text-nowrap",children:d(e)})]})},e):null))})]})})})},Jo=()=>{(0,i.useEffect)((()=>{const e=e=>{e.preventDefault()},t=document.querySelectorAll('input[type="number"]');return t.forEach((t=>{t.addEventListener("wheel",e,{passive:!1})})),()=>{t.forEach((t=>{t.removeEventListener("wheel",e)}))}}),[])},$o=e=>{let{name:t,inputError:n=!1,valueError:r=!1,placeholder:o,textLeft:s,disabled:c,validateFn:u,errorMessage:d,decimalsAllowed:p=!0,inputErrorRef:h,dataTestId:f,className:m,value:g,onChange:v,onFocus:y,min:b=0}=e;Jo();(0,i.useEffect)((()=>{var e,t;r&&(null!==h&&void 0!==h&&null!==(e=h.current)&&void 0!==e&&e.scrollIntoView&&(null===h||void 0===h||null===(t=h.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})))}),[r]);const w=null!==m&&void 0!==m?m:"h-[37px] w-full text-[14px] bg-[#606E7D33] border font-semibold justify-end rounded-md px-3 hover:bg-[#606E7D4D] focus:border-[#FFFFFF7A] focus:outline-none ".concat(n?"border-red-500 focus:border-red-500":"border-[#FFFFFF1F]","\n                ").concat(r?"text-[#FF6E25]":"text-white","\n                ").concat(s?"text-left":"text-right","\n                ").concat(c?"cursor-not-allowed border-none":"cursor-pointer"," \n                ");return(0,a.jsxs)("div",{className:"w-full relative",children:[(0,a.jsx)(l.D0,{"data-testid":null!==f&&void 0!==f?f:t,disabled:c,className:w,placeholder:o,name:t,type:"number",min:b,validate:u,onKeyDown:e=>{"ArrowUp"!==e.key&&"ArrowDown"!==e.key||e.preventDefault(),p||"."!==e.key&&","!==e.key||e.preventDefault()},onFocus:y,...g&&{value:g},...v&&{onChange:v}}),(0,a.jsx)("p",{className:"w-full text-end text-[#FF6E25] text-xs leading-[15px] absolute whitespace-nowrap",children:d})]})},ea=()=>(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-[#FFFFFF14] rounded-lg p-3",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"w-fit min-w-[18px]",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43135 2.78911C8.1195 1.56574 9.88088 1.56574 10.569 2.78911L15.5913 11.7176C16.2662 12.9175 15.3991 14.4001 14.0225 14.4001H3.97791C2.60123 14.4001 1.73414 12.9175 2.40908 11.7176L7.43135 2.78911ZM9.90011 11.7002C9.90011 12.1972 9.49717 12.6002 9.00011 12.6002C8.50305 12.6002 8.10011 12.1972 8.10011 11.7002C8.10011 11.2031 8.50305 10.8002 9.00011 10.8002C9.49717 10.8002 9.90011 11.2031 9.90011 11.7002ZM9.00011 4.50017C8.50305 4.50017 8.10011 4.90311 8.10011 5.40017V8.10017C8.10011 8.59723 8.50305 9.00017 9.00011 9.00017C9.49717 9.00017 9.90011 8.59723 9.90011 8.10017V5.40017C9.90011 4.90311 9.49717 4.50017 9.00011 4.50017Z",fill:"#FF6E25"})}),(0,a.jsx)("p",{className:"text-[12px] text-[#ADB5BD] leading-4",children:"Warning: You\u2019re listing for your child account. Delisting can only be done from the account that listed the NFT."})]}),ta=e=>{let{isDapper:t,accountSummaries:n,selectedAccount:r,setSelectedAccount:o,hasChildAccounts:s,loanFormValues:c,loanFormError:u,spotPrice:d,flowty:p}=e;const h=(0,i.useRef)(null),f="mainnet"===p.config.network,m=Cn(f),g=En(f);(0,i.useEffect)((()=>{var e,t;if(u&&(null!==h&&void 0!==h&&null!==(e=h.current)&&void 0!==e&&e.scrollIntoView))return void(null===h||void 0===h||null===(t=h.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}),[u]);const{isChildAccountAsset:v,royaltyRate:y,listingType:b}=Ln(),[w]=(0,l.Mt)({name:"tokenType"}),[x]=(0,l.Mt)({name:"amountToBorrow"}),[C]=(0,l.Mt)({name:"amountToRepay"}),A=C.value-x.value,E=A>0?T.FLOWTY_INTEREST_FEE*A:0,_=(y||0)*x.value,S=x.value+(_+E),k=(null===c||void 0===c?void 0:c.amountToBorrow)<.1||(null===c||void 0===c?void 0:c.amountToBorrow)>wn,P=(null===c||void 0===c?void 0:c.amountToRepay)<.1||(null===c||void 0===c?void 0:c.amountToRepay)>xn,D=Number(null===c||void 0===c?void 0:c.loanDuration)<m||""===(null===c||void 0===c?void 0:c.loanDuration)||Number(null===c||void 0===c?void 0:c.loanDuration)>365,F=Number(null===c||void 0===c?void 0:c.listingDuration)<g||""===(null===c||void 0===c?void 0:c.listingDuration)||Number(null===c||void 0===c?void 0:c.listingDuration)>_n;return(0,a.jsx)("div",{className:"h-full",ref:h,children:(0,a.jsxs)("div",{className:"h-full flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[s&&"loan"===b&&(0,a.jsx)(en,{selected:r,setSelected:o,label:"Pay To",summaries:n,listingType:"loan",disabledMessage:tn}),s&&v&&(0,a.jsx)(ea,{}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Token Received"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(Zo,{name:"tokenType",orderType:"loan",isDapper:t,selectedAccount:r,flowty:p})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Amount to Borrow"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)($o,{name:"amountToBorrow",valueError:u&&k,inputError:u&&k,errorMessage:u&&k?"Between ".concat(an()(.1).format("$0,0.0")," and ").concat(an()(wn).format("$0,0.00")):null})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Amount to Repay"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)($o,{name:"amountToRepay",valueError:u&&((null===c||void 0===c?void 0:c.amountToRepay)<=(null===c||void 0===c?void 0:c.amountToBorrow)||P),inputError:u&&((null===c||void 0===c?void 0:c.amountToRepay)<=(null===c||void 0===c?void 0:c.amountToBorrow)||P),errorMessage:u&&P?"Between ".concat(an()(.1).format("$0,0.0")," and ").concat(an()(xn).format("$0,0.00")):u&&(null===c||void 0===c?void 0:c.amountToRepay)<=(null===c||void 0===c?void 0:c.amountToBorrow)?"Must be greater than borrowed amount":null})})]}),(0,a.jsxs)("div",{className:"w-full flex items-start",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Loan Duration"})}),(0,a.jsxs)("div",{className:"w-1/2 flex gap-3 items-center",children:[(0,a.jsx)($o,{name:"loanDuration",valueError:u&&D,inputError:u&&D,errorMessage:u&&D?"Between ".concat(m," and ").concat(365," days"):null}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(H,{items:[{addOn:(0,a.jsx)("div",{className:"flex items-start space-x-2",children:(0,a.jsx)(Sr,{price:Number(S),token:w.value,spotPriceValue:Number(S)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"lender-funds"})}),content:(0,a.jsxs)("div",{className:"text-xs text-neutral-500 font-montserrat",children:["The amount that a lender transfers to fund your loan."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-1",title:"Lender Funds"},{addOn:(0,a.jsxs)("div",{className:"flex items-start font-montserrat space-x-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"-"}),(0,a.jsx)(Sr,{price:_,token:w.value,spotPriceValue:_*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"royaltyFee"})]}),badge:"Refundable",content:(0,a.jsxs)("div",{className:"text-xs text-neutral-500 font-montserrat",children:["If loan is repaid, royalty is returned to the lender. If the loan defaults, the royalty is transferred to the NFT creator."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-2",title:"Creator Royalty (".concat((100*(y||0)).toFixed(2),"%)")},{addOn:(0,a.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,a.jsx)("span",{className:"font-bold font-montserrat",children:"-"}),(0,a.jsx)(Sr,{price:E,token:w.value,spotPriceValue:E*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"flowtyFee"})]}),content:(0,a.jsxs)("div",{className:"text-xs text-neutral-500 font-montserrat",children:["A fee charged by Flowty for providing the services on the platform."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-3",title:"Flowty Fee"}]}),(0,a.jsx)("hr",{className:"border-[#495057]"}),(0,a.jsxs)("div",{className:"flex justify-between text-white pt-3",children:[(0,a.jsx)("p",{children:"If Funded, You'll Receive"}),(0,a.jsx)("div",{className:"flex flex-col items-end",children:(0,a.jsx)(Sr,{price:Number(x.value),token:w.value,spotPriceValue:Number(x.value)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"amountToBorrow"})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center mt-2 justify-between",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Listing Duration"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)("div",{className:"w-[9.125rem]",children:(0,a.jsx)($o,{name:"listingDuration",valueError:u&&F,inputError:u&&F,decimalsAllowed:Tn(bn),errorMessage:u&&F?"Between ".concat(g," and ").concat(_n," days"):null})}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]})]})]})})},na=e=>{let{listingDuration:t,text:n}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-base font-semibold mt-6 text-white",children:["If Your ",n]}),(0,a.jsx)("div",{className:"flex flex-col mt-4",children:(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Your Listing Will Expire On"}),(0,a.jsxs)("p",{className:"text-sm font-bold text-white",children:[" ",(0,vn.tE)(t)]})]})})]})," "]}):null},ra=e=>{let{loanFormError:t,spotPrice:n,loanStep:r,listingDuration:o}=e;const s=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e,n;t&&(null!==s&&void 0!==s&&null!==(e=s.current)&&void 0!==e&&e.scrollIntoView&&(null===s||void 0===s||null===(n=s.current)||void 0===n||n.scrollIntoView({behavior:"smooth"})))}),[t,r]);const[u]=(0,l.Mt)({name:"tokenType"}),[d]=(0,l.Mt)({name:"amountToBorrow"}),[p]=(0,l.Mt)({name:"amountToRepay"}),[h]=(0,l.Mt)({name:"loanDuration"});return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-4",ref:s,children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white",children:"If Your Loan is Funded"}),(0,a.jsxs)("div",{className:"flex flex-col mt-4 mb-6 gap-2",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"You'll Receive"}),(0,a.jsx)(Sr,{price:d.value,token:u.value,spotPriceValue:d.value*((null===n||void 0===n?void 0:n.value)||0)})]}),(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("p",{className:"text-sm font-normal text-white",children:["You'll Have"," ",(0,a.jsxs)("span",{className:"font-bold",children:[h.value," Days"]})," to Repay"]}),(0,a.jsx)(Sr,{price:p.value,token:u.value,spotPriceValue:p.value*((null===n||void 0===n?void 0:n.value)||0)})]})]}),(0,a.jsx)("hr",{className:"border-[#495057]"}),(0,a.jsx)(na,{listingDuration:o,text:"Loan is Not Funded"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-white font-normal",children:[(0,a.jsx)("p",{className:"text-xs text-white",children:"Note: Failure to fully repay this loan will lead to a loan default and forfeiture of collateral"}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsx)(c,{label:(0,a.jsx)("span",{className:"text-[#ADB5BD]",children:"Enable automatic repayment if funds available"}),name:"loanEnableAutoRepayment",id:"loanEnableAutoRepayment"})})]})]})},ia=e=>{let{isCatalog:t,isDapper:n,accountSummaries:r,selectedAccount:i,setSelectedAccount:o,hasChildAccounts:s,loanStep:l,loanFormValues:c,loanFormError:u,openSearchFlowNFT:d,flowty:p}=e;const{spotPrice:h,isParentDapper:f}=Ln();return(0,a.jsx)(a.Fragment,{children:t?!s&&n||f?(0,a.jsx)(Bo,{openSearchFlowNFT:d}):(0,a.jsx)("div",{className:"w-full h-full flex flex-col justify-between",children:1===l?(0,a.jsx)(ta,{isDapper:n,hasChildAccounts:s,selectedAccount:i,setSelectedAccount:o,accountSummaries:r,loanFormValues:c,loanFormError:u,spotPrice:h,flowty:p}):(0,a.jsx)(ra,{loanFormError:u,spotPrice:h,loanStep:l,listingDuration:Number(c.listingDuration)})}):(0,a.jsx)(Vo,{text:"Loan listings are not permitted for this NFT collection"})})},oa=e=>{let{isDapper:t,accountSummaries:n,selectedAccount:r,setSelectedAccount:o,hasChildAccounts:s,rentData:c,rentFormError:u,flowty:d}=e;const p=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e,t;u&&(null!==p&&void 0!==p&&null!==(e=p.current)&&void 0!==e&&e.scrollIntoView&&(null===p||void 0===p||null===(t=p.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})))}),[u]);const[h]=(0,l.Mt)({name:"privateListingAddr"}),{isChildAccountAsset:f,privateRentInvalidAddress:m,setPrivateRentInvalidAddress:g,mainAccount:v,listingType:y,isMainnet:b}=Ln(),w=An(b),x=En(b),C=(0,i.useCallback)((async()=>{if(""!=h.value){const e=await(0,qt.verifyAddress)(h.value);g(!e)}}),[h.value]);(0,i.useEffect)((()=>{h.value&&Boolean(h.value)&&h.value!==(null===v||void 0===v?void 0:v.address)?C():g(!1)}),[C,h.value]);const A=Number(null===c||void 0===c?void 0:c.term)<w||""===(null===c||void 0===c?void 0:c.term)||Number(null===c||void 0===c?void 0:c.term)>375,E=Number(null===c||void 0===c?void 0:c.rentalListingDuration)<x||void 0===(null===c||void 0===c?void 0:c.rentalListingDuration)||Number(null===c||void 0===c?void 0:c.rentalListingDuration)>_n;return(0,a.jsx)("div",{className:"h-full",ref:p,children:(0,a.jsxs)("div",{className:"h-full flex flex-col justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[14px]",children:[s&&"rental"===y&&(0,a.jsx)(en,{selected:r,setSelected:o,label:"Pay To",summaries:n,listingType:"rental",disabledMessage:tn}),s&&f&&(0,a.jsx)(ea,{}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Token Received"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(Zo,{name:"tokenType",orderType:"rental",isDapper:t,selectedAccount:r,flowty:d})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Rental Fee"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)($o,{name:"rentalFee",valueError:u&&(Number(c.amount)<.01||""===c.amount||Number(c.amount)>5e4),inputError:u&&(Number(c.amount)<.01||""===c.amount||Number(c.amount)>5e4),errorMessage:u&&(Number(c.amount)<.01||""===c.amount||Number(c.amount)>5e4)?"Between $0.01 - $50000":null})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Refundable Deposit"})}),(0,a.jsx)("div",{className:"w-1/2 flex gap-3 items-center",children:(0,a.jsx)($o,{name:"refundableDeposit",valueError:u&&(Number(c.deposit)<.01||Number(c.deposit)>1e6||""===c.deposit),inputError:u&&(Number(c.deposit)<.01||Number(c.deposit)>1e6||""===c.deposit),errorMessage:u&&(Number(c.deposit)<.01||Number(c.deposit)>1e6||""===c.deposit)?"Between $0.01 - $1000000":null})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Rental Duration"})}),(0,a.jsxs)("div",{className:"w-1/2 flex gap-3 items-center",children:[(0,a.jsx)($o,{name:"rentalDuration",valueError:u&&A,inputError:u&&A,errorMessage:u&&A?"Between ".concat(w," and ").concat(375," days"):null}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[14px]",children:[(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Listing Duration"})}),(0,a.jsxs)("div",{className:"w-1/2 flex gap-3 items-center",children:[(0,a.jsx)($o,{name:"rentalListingDuration",valueError:u&&E,inputError:u&&E,decimalsAllowed:Tn(bn),errorMessage:u&&E?"Between ".concat(x," and ").concat(_n," days"):null}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]}),(0,a.jsxs)("div",{className:"w-full flex items-center",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Private Listing"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(Wt,{name:"privateListingAddr",valueError:m,inputError:m,placeholder:"Wallet Address"})})]})]})]})})},aa=e=>{let{rentalFees:t,rentFormError:n,rentalListingDuration:r}=e;const o=(0,i.useRef)(null),s=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e,t,r,i;n?null!==o&&void 0!==o&&null!==(e=o.current)&&void 0!==e&&e.scrollIntoView&&(null===o||void 0===o||null===(t=o.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})):null!==s&&void 0!==s&&null!==(r=s.current)&&void 0!==r&&r.scrollIntoView&&(null===s||void 0===s||null===(i=s.current)||void 0===i||i.scrollIntoView({behavior:"smooth"}))}),[n,s]);const[c]=(0,l.Mt)({name:"tokenType"}),[u]=(0,l.Mt)({name:"privateListingAddr"}),{spotPrice:d}=Ln();return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between",ref:s,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[40px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white",children:"Payout if Your NFT is Rented"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"text-sm text-white font-normal ml-1",children:"Rental Fee"}),(0,a.jsx)(Sr,{price:Number(t.rentalFee),token:c.value,spotPriceValue:Number(t.rentalFee)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"rentalFeeTooltip"})]}),(0,a.jsx)(H,{items:[{addOn:(0,a.jsxs)("div",{className:"flex items-start font-montserrat space-x-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"-"}),(0,a.jsx)(Sr,{price:Number(t.rentalFeeRoyalty),token:c.value,spotPriceValue:Number(t.rentalFeeRoyalty)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"rentalListingCreatorRoyalty"})]}),content:(0,a.jsx)("div",{className:"text-xs text-neutral-500 font-montserrat",children:(0,a.jsxs)("p",{className:"text-gray text-sm font-normal ml-2",children:["Transferred directly to the creator of an NFT collection. This is not a Flowty fee."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]})}),id:"item-1",title:"Creator Royalty (".concat(Number(t.rentalFeeRoyalty).toFixed(2),"%)")},{addOn:(0,a.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,a.jsx)("span",{className:"font-bold font-montserrat",children:"-"}),(0,a.jsx)(Sr,{price:Number(t.flowtyFee),token:c.value,spotPriceValue:Number(t.flowtyFee)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"rentalListingFlowtyFee"})]}),content:(0,a.jsx)("div",{className:"text-xs text-neutral-500 font-montserrat",children:(0,a.jsxs)("p",{className:"text-gray text-sm font-normal ml-2",children:["A fee charged by Flowty for providing the services on the platform."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]})}),id:"item-2",title:"Flowty Fee (".concat(Number(t.flowtyFee).toFixed(2),"%)")}]}),(0,a.jsx)("hr",{className:"border-[#495057]"}),(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-white",children:"You'll Receive"}),(0,a.jsx)(Sr,{price:t.rentalFeeReceived,token:c.value,spotPriceValue:t.rentalFeeReceived*((null===d||void 0===d?void 0:d.value)||0)})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white",children:"Payout if Your NFT is Rented but not Returned"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"w-full flex items-start",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-sm text-white font-normal ml-1",children:"Refundable Deposit"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(Sr,{price:Number(t.refundableDeposit),token:c.value,spotPriceValue:Number(t.refundableDeposit)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"refundableDeposit"})})]}),(0,a.jsx)(H,{items:[{addOn:(0,a.jsxs)("div",{className:"flex items-start font-montserrat space-x-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"-"}),(0,a.jsx)(Sr,{price:Number(t.rentalDepositRoyalty),token:c.value,spotPriceValue:Number(null===t||void 0===t?void 0:t.rentalDepositRoyalty)*((null===d||void 0===d?void 0:d.value)||0),toolTipCustomId:"rentalDepositRoyalty"})]}),badge:"Refundable",content:(0,a.jsxs)("div",{className:"text-xs text-neutral-500 font-montserrat",children:[(0,a.jsx)("p",{className:"text-gray text-sm font-normal ml-2",children:"Royalty on Refundable Deposit ONLY applies if a rented NFT is not returned."}),(0,a.jsxs)("p",{className:"text-gray text-sm font-normal ml-2",children:["Transferred directly to the creator of an NFT collection. This is not a Flowty fee."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]})]}),id:"item-1",title:"Creator Royalty (".concat(Number(t.rentalFeeRoyalty).toFixed(2),"%)")}]})]}),(0,a.jsx)("hr",{className:"border-[#495057]"}),(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-white ",children:"You'll Receive"}),(0,a.jsx)(Sr,{price:t.rentalDepositReceived,token:c.value,spotPriceValue:t.rentalDepositReceived*((null===d||void 0===d?void 0:d.value)||0)})]})]})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"text-sm text-white font-normal ml-1",children:"Your Listing Will Expire On"}),(0,a.jsx)("p",{className:"text-sm font-bold text-white",children:(0,vn.tE)(r)})]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4 text-white font-normal",ref:o,children:u.value?(0,a.jsx)("div",{className:"py-2",children:(0,a.jsxs)("div",{className:"flex w-full justify-between text-sm md:text-lg bg-[#FFFFFF14] rounded-lg p-3",children:[(0,a.jsx)("span",{className:"text-sm md:text-base",children:"Private Listing Address:"}),(0,a.jsx)("span",{className:"text-sm md:text-base",children:u.value})]})}):null})]})},sa=e=>{let{isCatalog:t,isDapper:n,accountSummaries:r,selectedAccount:o,setSelectedAccount:s,hasChildAccounts:c,rentStep:u,rentData:d,rentFormError:p,openSearchFlowNFT:h,flowty:f}=e;const[m]=(0,l.Mt)({name:"rentalFee"}),[g]=(0,l.Mt)({name:"refundableDeposit"}),{royaltyRate:v,isParentDapper:y}=Ln(),b=(0,i.useMemo)((()=>m.value*(v||0)),[m,v]),w=(0,i.useMemo)((()=>g.value*(v||0)),[g,v]),x=(0,i.useMemo)((()=>g.value-w),[g]),C=(0,i.useMemo)((()=>.05*m.value),[m]),A=(0,i.useMemo)((()=>m.value-(b+C)),[m]);return(0,a.jsx)(a.Fragment,{children:t?!c&&n||y?(0,a.jsx)(Bo,{openSearchFlowNFT:h}):(0,a.jsx)("div",{className:"w-full h-full flex flex-col justify-between",children:1===u?(0,a.jsx)(oa,{isDapper:n,hasChildAccounts:c,selectedAccount:o,setSelectedAccount:s,accountSummaries:r,rentData:d,rentFormError:p,flowty:f}):(0,a.jsx)(aa,{rentalFees:{flowtyFee:C,refundableDeposit:g.value,rentalDepositReceived:x,rentalDepositRoyalty:w,rentalFee:m.value,rentalFeeReceived:A,rentalFeeRoyalty:b},rentalListingDuration:Number(d.rentalListingDuration),rentFormError:p})}):(0,a.jsx)(Vo,{text:"Rental listings are not permitted for this NFT collection"})})},la=e=>{var t,n,r,i;let{order:o}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3 justify-between mt-4",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Rental Fee"}),(0,a.jsx)(Sr,{price:null===o||void 0===o?void 0:o.amount,token:null===o||void 0===o?void 0:o.paymentTokenName})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Refundable Deposit"}),(0,a.jsx)(Sr,{price:null===o||void 0===o?void 0:o.deposit,token:null===o||void 0===o?void 0:o.paymentTokenName})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Total Due Upfront"}),(0,a.jsx)(Sr,{price:Number(null===o||void 0===o?void 0:o.deposit)+Number(null===o||void 0===o?void 0:o.amount),token:null===o||void 0===o?void 0:o.paymentTokenName})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Duration"}),(0,a.jsx)("span",{className:"text-base text-white font-bold pr-1",children:sn(Number(null===o||void 0===o?void 0:o.term))})]}),(null===o||void 0===o||null===(t=o.valuations)||void 0===t||null===(n=t.aggregate)||void 0===n?void 0:n.depositToValueRatio)&&(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"DTV"}),(0,a.jsxs)("span",{className:"text-base text-white font-bold pr-1",children:[null===o||void 0===o||null===(r=o.valuations)||void 0===r||null===(i=r.aggregate)||void 0===i?void 0:i.depositToValueRatio,"X"]})]})]})},ca=e=>{var t;let{rentalOrder:n,selectedOrder:r}=e;const{isDelist:i,openSearchFlowNFT:o,updateSelectedOrder:s,orderFromChildAccount:l,isMainnet:c,collectionDisplayName:u}=Ln(),d=n?null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.flowtyStorefrontAddress:null===r||void 0===r?void 0:r.flowtyStorefrontAddress;return(0,a.jsxs)("div",{className:"flex flex-col gap-3 h-full w-full md:w-[400px]",children:[n&&n.length>1?(0,a.jsxs)(a.Fragment,{children:[i.rent&&(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Rent listing will be removed from the marketplace."}),(0,a.jsx)(Io,{updateSelectedOrder:s,orders:n,selectedOrder:r})]}):(0,a.jsxs)(a.Fragment,{children:[i.rent&&(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Rent listing will be removed from the marketplace."}),(0,a.jsx)(la,{order:r})]}),i.rent&&l&&(0,a.jsxs)("div",{className:"text-orange-500 text-sm font-normal py-2",children:["NFT was listed while connected with"," ".concat(d)," as Main. Please sign in with "," ".concat(d)," ","to delist."]}),!i.rent&&(0,a.jsx)(ir,{nft:o,order:r,listingType:"storefront",isMainnet:c,collectionDisplayName:u})]})},ua=e=>{var t,n,r,i;let{storefrontOrder:o,selectedOrder:l}=e;const{isDelist:c,updateSelectedOrder:u,spotPrice:d,openSearchFlowNFT:p,hasOffer:h,acceptOffer:f,singleOrder:m,orderFromChildAccount:g,isMainnet:v,collectionDisplayName:y}=Ln(),b=o?null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.flowtyStorefrontAddress:null===l||void 0===l?void 0:l.flowtyStorefrontAddress;return(0,a.jsxs)("div",{className:"flex flex-col gap-3 h-full w-full md:w-[400px] justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(null===o||void 0===o?void 0:o.length)>1?(0,a.jsxs)(a.Fragment,{children:[c.sale&&(0,a.jsx)("p",{className:"text-sm font-normal text-white",children:"Sale listing will be removed from the marketplace."}),(0,a.jsx)(Io,{updateSelectedOrder:u,orders:o,selectedOrder:l})]}):(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between mt-4",children:[c.sale&&(0,a.jsx)("p",{className:"text-sm font-normal mb-4 text-white",children:"Sale listing will be removed from the marketplace."}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Purchase Price"}),(0,a.jsx)(Sr,{token:(null===o||void 0===o||null===(n=o[0])||void 0===n?void 0:n.paymentTokenName)||T.SupportedTokens.FLOW,price:(null===o||void 0===o||null===(r=o[0])||void 0===r?void 0:r.amount)||0,spotPriceValue:d?d.value*Number((null===o||void 0===o||null===(i=o[0])||void 0===i?void 0:i.amount)||0):void 0})]})]}),c.sale&&g&&(0,a.jsxs)("div",{className:"text-orange-500 text-sm font-normal py-2",children:["NFT was listed while connected with"," ".concat(b)," as Main. Please sign in with"," "," ".concat(b)," to delist."]}),!c.sale&&(0,a.jsx)(ir,{isMainnet:v,nft:p,collectionDisplayName:y,order:l,listingType:"storefront"})]}),c.sale||!h||Boolean(m)?null:(0,a.jsx)(s,{onClick:f,text:"ACCEPT BEST OFFER",variant:"secondary",bgColor:"white",btnSize:"small"})]})};var da,pa;function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ha.apply(null,arguments)}function fa(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",ha({width:59,height:35,viewBox:"0 0 59 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,da||(da=i.createElement("path",{d:"M29.5 35L3.95225 26L55.0477 26L29.5 35Z"})),pa||(pa=i.createElement("rect",{x:55,y:26,width:51,height:26,transform:"rotate(180 55 26)"})))}const ma=i.forwardRef(fa),ga=(n.p,e=>{let{percent:t,source:n,tooltip:r=!1}=e;return t<5?null:(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)(ma,{className:" fill-[#5308B2] drop-shadow-[0_0_2px_#5308B2]"}),(0,a.jsxs)("div",{className:"absolute top-[46%] left-[54%] transform -translate-x-1/2 -translate-y-1/2 text-white font-montserrat-bold font-bold",children:[t,"%"]}),r&&(0,a.jsx)("div",{onClick:e=>{e.stopPropagation()},className:"absolute hidden group-hover:block",children:(0,a.jsx)("div",{className:'relative -left-3/4 top-3 bg-[#F8F9FA] rounded-md min-w-[18rem] z-10 cursor-default before:content-[""] before:absolute before:border-[6px] before:border-transparent before:border-b-[#F8F9FA] before:bottom-full before:right-[10%]',children:(0,a.jsx)("div",{className:"p-[12px]",children:(0,a.jsxs)("p",{className:"text-sm font-normal text-black",children:["Listed Purchase Price is ",t,"% lower than Fair Market Value (FMV) per ",cn("".concat(n)),". FMV is an estimate and is not financial advice."]})})})})]})}),va=e=>{let{percent:t,source:n,isOffer:r=!1}=e;const i=un(n),o=cn(n);return t<5?null:(0,a.jsxs)("div",{className:"w-full p-[1.12rem] bg-[#ffffff] text-white bg-opacity-10 rounded-md flex items-center",children:[(0,a.jsx)("div",{className:"pr-3 height-[2.625rem]",children:(0,a.jsx)(ga,{percent:t})}),(0,a.jsxs)("div",{className:"flex flex-col py-1",children:[(0,a.jsx)("div",{className:"text-xs font-bold pb-1 pr-3",children:"Discount to Fair Market Value (FMV)"}),(0,a.jsxs)("div",{className:"text-[0.6875rem] font-normal leading-normal",children:[r?"Your Offer":"Purchase Price"," is ",t,"% lower than FMV per"," ",(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:i,className:"text-primary",children:o}),". FMV is an estimate and is not financial advice. Tag only appears if discount is 5%+."]})]})]})},ya=e=>{let{value:t,source:n}=e;const r=un(n);return(0,a.jsxs)("div",{className:"w-full flex justify-between text-white text-[14px]",children:[(0,a.jsxs)("p",{className:"font-[400]",children:["FMV (Per"," ",(0,a.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:"text-primary cursor-pointer",children:n.toUpperCase()}),")"]}),(0,a.jsxs)("p",{className:"font-[700]",children:["$",t.toFixed(2)]})]})},ba=e=>{var t,n;let{isDapper:r,accountSummaries:o,valuationData:c,saleListingError:u,orderData:d,flowty:p}=e;const h=(0,i.useRef)(null),f=(0,i.useRef)(null),m=Number(d.salePrice);(0,i.useEffect)((()=>{var e,t,n,r;u&&(m<=.01||m>1e7)?null!==h&&void 0!==h&&null!==(e=h.current)&&void 0!==e&&e.scrollIntoView&&(null===h||void 0===h||null===(t=h.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})):u&&null!==h&&void 0!==h&&null!==(n=h.current)&&void 0!==n&&n.scrollIntoView&&(null===f||void 0===f||null===(r=f.current)||void 0===r||r.scrollIntoView({behavior:"smooth"}))}),[u]);const[g]=(0,l.Mt)({name:"tokenType"}),[v]=(0,l.Mt)({name:"saleListingValue"}),{saleFees:y,isChildAccountAsset:b,hasChildAccounts:w,selectedAccount:x,setSelectedAccount:C,spotPrice:A,hasOffer:E,acceptOffer:_,isLoadingValuation:T,isLoadingGetFees:S,isMainnet:k}=Ln(),P=En(k),D=v.value,F=D&&null!==(t=Number(null===y||void 0===y?void 0:y.flowty))&&void 0!==t?t:0,N=D>0?F/D:0,I=D&&null!==(n=Number(null===y||void 0===y?void 0:y.royalties))&&void 0!==n?n:0,R=D>0?I/D:0,O=D-(I+F),j=Number(null===d||void 0===d?void 0:d.storefrontListingDuration)<P||void 0===(null===d||void 0===d?void 0:d.storefrontListingDuration)||Number(null===d||void 0===d?void 0:d.storefrontListingDuration)>_n;return(0,a.jsx)("div",{className:"w-full h-full flex flex-col",ref:h,children:(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[w&&(0,a.jsx)(en,{selected:x,setSelected:C,label:"Pay To",summaries:o,listingType:"storefront",disabledMessage:tn,selectorFilter:new Zt({flowty:p,listingType:"storefront"})}),w&&b&&(0,a.jsx)(ea,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-base font-semibold text-white",children:"Listing Price"}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(Zo,{name:"tokenType",orderType:"storefront",isDapper:r,selectedAccount:x,flowty:p})}),(0,a.jsx)($o,{name:"saleListingValue",valueError:u&&(m<.01||m>1e7),inputError:u&&(m<.01||m>1e7),errorMessage:u&&(m<.01||m>1e7)?"Between 0.01 - 10000000":null})]})]}),(0,a.jsx)("div",{children:(0,a.jsx)(H,{items:[{addOn:(0,a.jsx)("div",{className:"flex items-start font-montserrat space-x-2",children:S?(0,a.jsx)("div",{className:"w-[60px] h-[15px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-bold",children:"-"}),(0,a.jsx)(Sr,{price:I,token:g.value,spotPriceValue:Number(null===A||void 0===A?void 0:A.value)*I,toolTipCustomId:"saleListingCreatorRoyalty"})]})}),content:(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat",children:["Transferred directly to the creator of an NFT collection. This is not a Flowty fee."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-1",title:"Creator Royalty (".concat((100*R).toFixed(2),"%)")},{addOn:(0,a.jsx)("div",{className:"flex items-start space-x-2",children:S?(0,a.jsx)("div",{className:"w-[60px] h-[15px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-bold font-montserrat",children:"-"}),(0,a.jsx)(Sr,{price:F,token:g.value,spotPriceValue:Number(null===A||void 0===A?void 0:A.value)*F,toolTipCustomId:"saleListingFlowtyFee"})]})}),content:(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat",children:["A fee charged by Flowty for providing the services on the platform."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]}),id:"item-2",title:"Flowty Fee (".concat((100*N).toFixed(2),"%)")}]})}),(0,a.jsx)("hr",{className:"border-[#495057]"}),(0,a.jsxs)("div",{className:"flex justify-between text-white text-sm font-normal ml-1",children:[(0,a.jsx)("p",{children:"You'll Receive"}),(0,a.jsx)("div",{className:"flex flex-col items-end",children:S?(0,a.jsx)("div",{className:"w-[60px] h-[15px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(Sr,{price:O,token:g.value,spotPriceValue:Number(null===A||void 0===A?void 0:A.value)*O,toolTipCustomId:"saleListingReceivedValue"})})]}),(0,a.jsxs)("div",{className:"w-full flex items-center mt-auto justify-between",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Listing Duration"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)("div",{className:"w-[9.125rem]",children:(0,a.jsx)($o,{name:"storefrontListingDuration",valueError:u&&j,inputError:u&&j,decimalsAllowed:Tn(bn),errorMessage:u&&j?"Between ".concat(P," and ").concat(_n," days"):null})}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-6",ref:f,children:[T?(0,a.jsx)("div",{className:"w-full h-[28px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(a.Fragment,{children:null!==c&&void 0!==c&&c.usdValue?(0,a.jsx)(ya,{source:c.source,value:null===c||void 0===c?void 0:c.usdValue}):null}),null!==c&&void 0!==c&&c.percentage?(0,a.jsx)(va,{source:c.source,percent:(null===c||void 0===c?void 0:c.percentage)||0}):null,E?(0,a.jsx)(s,{onClick:_,text:"ACCEPT BEST OFFER",variant:"secondary",bgColor:"white",btnSize:"small"}):null]})]})})};var wa;function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(null,arguments)}function Ca(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",xa({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,wa||(wa=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 9V7C5 4.23858 7.23858 2 10 2C12.7614 2 15 4.23858 15 7V9C16.1046 9 17 9.89543 17 11V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V11C3 9.89543 3.89543 9 5 9ZM13 7V9H7V7C7 5.34315 8.34315 4 10 4C11.6569 4 13 5.34315 13 7Z",fill:"#D8D8D8"})))}const Aa=i.forwardRef(Ca),Ea=(n.p,()=>(0,a.jsx)("div",{className:"flex flex-col gap-3 w-full md:w-[400px] justify-between",children:(0,a.jsxs)("div",{className:"p-4 bg-[#FFFFFF] bg-opacity-10 w-full h-full rounded-md flex",children:[(0,a.jsx)("div",{className:"h-full pl-2",children:(0,a.jsx)(Aa,{className:"h-6 w-6"})}),(0,a.jsx)("div",{className:"w-full px-6",children:(0,a.jsxs)("div",{className:"leading-4",children:[(0,a.jsxs)("span",{className:"text-white text-xs font-normal",children:["Icon indicates that an NFT is"," "]}),(0,a.jsx)("span",{className:"text-white text-xs font-bold",children:"Locked"}),(0,a.jsxs)("span",{className:"text-white text-xs font-normal",children:[", meaning that a user cannot perform any Flowty actions on the NFT. This is usually an action taken by users on the NBA Top Shot platform",(0,a.jsx)("br",{})]})]})})]})}));var _a=n(78394);const Ta=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sa=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ka={};function Pa(e,t){return((t||ka).jsx?Sa:Ta).test(e)}const Da=/[ \t\n\f\r]/g;function Fa(e){return""===e.replace(Da,"")}var Na=n(91814),Ia=n(43551),Ra=n(1214),Oa=n(61861),ja=n(73151);const Ma=ja.default||ja,La=Ua("end"),Ba=Ua("start");function Ua(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Va(e){return e&&"object"===typeof e?"position"in e||"type"in e?za(e.position):"start"in e||"end"in e?za(e):"line"in e||"column"in e?Ha(e):"":""}function Ha(e){return Wa(e&&e.line)+":"+Wa(e&&e.column)}function za(e){return Ha(e&&e.start)+"-"+Ha(e&&e.end)}function Wa(e){return e&&"number"===typeof e?e:1}class qa extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=Va(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}qa.prototype.file="",qa.prototype.name="",qa.prototype.reason="",qa.prototype.message="",qa.prototype.stack="",qa.prototype.column=void 0,qa.prototype.line=void 0,qa.prototype.ancestors=void 0,qa.prototype.cause=void 0,qa.prototype.fatal=void 0,qa.prototype.place=void 0,qa.prototype.ruleId=void 0,qa.prototype.source=void 0;const Ga={}.hasOwnProperty,Ya=new Map,Ka=/[A-Z]/g,Qa=/-([a-z])/g,Xa=new Set(["table","tbody","thead","tfoot","tr"]),Za=new Set(["td","th"]),Ja="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $a(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const a=Array.isArray(i.children),s=Ba(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const a=Array.isArray(i.children)?n:t;return o?a(r,i,o):a(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Na.JW:Na.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=es(i,e,void 0);return o&&"string"!==typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function es(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Na.JW,e.schema=i);e.ancestors.push(t);const o=os(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&Ga.call(t.properties,i)){const o=is(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"===typeof a&&Za.has(t.tagName)?r=a:n[i]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=rs(e,t);Xa.has(t.tagName)&&(s=s.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Fa(t.value):Fa(t));var t})));return ts(e,a,o,t),ns(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}as(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Na.JW,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:os(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else as(e,t.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else as(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=rs(e,t);return ts(e,a,o,t),ns(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);as(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ns(r,rs(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ts(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ns(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function rs(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ya;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}const s=es(e,o,a);void 0!==s&&n.push(s)}return n}function is(e,t,n){const r=(0,Ia.I)(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,_a.A)(n):(0,Oa.A)(n)),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{Ma(t,r)}catch(i){if(!e.ignoreInvalidStyle){const t=i,n=new qa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ja+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Qa,ls)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ga.call(e,n)&&(t[ss(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Ra.H[r.property]||r.property:r.attribute,n]}}function os(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=Pa(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=Pa(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ga.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);as(e)}function as(e,t){const n=new qa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ja+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ss(e){let t=e.replace(Ka,cs);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function ls(e,t){return t.toUpperCase()}function cs(e){return"-"+e.toLowerCase()}const us={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ds={};function ps(e,t){const n=t||ds;return hs(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function hs(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fs(e.children,t,n)}return Array.isArray(e)?fs(e,t,n):""}function fs(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=hs(e[i],t,n);return r.join("")}function ms(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function gs(e,t){return e.length>0?(ms(e,e.length,0,t),e):t}class vs{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ys(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ys(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ys(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ys(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ys(this.left,t.reverse())}}}function ys(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function bs(e){const t={};let n,r,i,o,a,s,l,c=-1;const u=new vs(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,ws(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},u.get(r)[1].start),a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return ms(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function ws(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const xs={}.hasOwnProperty;function Cs(e){const t={};let n=-1;for(;++n<e.length;)As(t,e[n]);return t}function As(e,t){let n;for(n in t){const r=(xs.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){xs.call(r,o)||(r[o]=[]);const e=i[o];Es(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Es(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ms(e,0,0,r)}const _s=Ms(/[A-Za-z]/),Ts=Ms(/[\dA-Za-z]/),Ss=Ms(/[#-'*+\--9=?A-Z^-~]/);function ks(e){return null!==e&&(e<32||127===e)}const Ps=Ms(/\d/),Ds=Ms(/[\dA-Fa-f]/),Fs=Ms(/[!-/:-@[-`{-~]/);function Ns(e){return null!==e&&e<-2}function Is(e){return null!==e&&(e<0||32===e)}function Rs(e){return-2===e||-1===e||32===e}const Os=Ms(/\p{P}|\p{S}/u),js=Ms(/\s/);function Ms(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ls(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Rs(r))return e.enter(n),a(r);return t(r)};function a(r){return Rs(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const Bs={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ls(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Ns(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const Us={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return ms(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vs,u,d)(i)}function u(e){return r&&y(),v(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(Vs,h,f)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Ns(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;ms(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Vs={tokenize:function(e,t,n){return Ls(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Hs={tokenize:function(e,t,n){return function(t){return Rs(t)?Ls(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Ns(e)?t(e):n(e)}},partial:!0};const zs={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Ns(t)?e.check(Ws,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return bs(e),e}},Ws={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ls(e,i,"linePrefix")};function i(i){if(null===i||Ns(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const qs={tokenize:function(e){const t=this,n=e.attempt(Hs,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Ls(e,e.attempt(this.parser.constructs.flow,r,e.attempt(zs,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Gs={resolveAll:Xs()},Ys=Qs("string"),Ks=Qs("text");function Qs(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Xs("text"===e?Zs:void 0)}}function Xs(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Zs(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function Js(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function $s(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[],l=!0;const c={consume:function(e){Ns(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(v),interrupt:y(v,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"===typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},now:f,defineSkip:function(e){i[e.line]=e.column,w()},write:function(e){if(a=gs(a,e),m(),null!==a[a.length-1])return[];return b(t,0),u.events=Js(o,u.events,u),u.events}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,p=p(e)}function v(e,t){t.restore()}function y(e,t){return function(n,i,o){let a,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){h=function(){const e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{restore:a,from:i};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,w()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(p,h),i}function y(e){return l=!0,h.restore(),++d<a.length?g(a[d]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ms(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const el={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||Ns(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),Rs(t)?Ls(e,o,"whitespace")(t):o(t))}}};const tl={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Ps(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(el,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Ps(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Hs,r.interrupt?n:c,e.attempt(nl,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Rs(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Hs,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ls(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Rs(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rl,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ls(e,e.attempt(tl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},nl={tokenize:function(e,t,n){const r=this;return Ls(e,(function(e){const i=r.events[r.events.length-1];return!Rs(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},rl={tokenize:function(e,t,n){const r=this;return Ls(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const il={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Rs(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Rs(t))return Ls(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(il,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ol(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||ks(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Ns(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!Is(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||ks(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function al(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Ns(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Ns(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Rs(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function sl(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):Ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ls(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Ns(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function ll(e,t){let n;return function r(i){if(Ns(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Rs(i))return Ls(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function cl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ul={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return al.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=cl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Is(t)?ll(e,s)(t):s(t)}function s(t){return ol(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(dl,c,c)(t)}function c(t){return Rs(t)?Ls(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Ns(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},dl={tokenize:function(e,t,n){return function(t){return Is(t)?ll(e,r)(t):n(t)};function r(t){return sl(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Rs(t)?Ls(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Ns(e)?t(e):n(e)}},partial:!0};const pl={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ls(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):Ns(t)?e.attempt(hl,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Ns(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},hl={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Ls(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Ns(e)?i(e):n(e)}},partial:!0};const fl={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Is(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Ns(n)?(e.exit("atxHeading"),t(n)):Rs(n)?Ls(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Is(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},ms(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const ml={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Rs(t)?Ls(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Ns(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const gl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vl=["pre","script","style","textarea"],yl={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:R):_s(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,p):_s(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:T:p):n(i)}function h(t){return _s(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||Is(s)){const l=47===s,c=a.toLowerCase();return l||o||!vl.includes(c)?gl.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):v(s)):(i=1,r.interrupt?t(s):T(s))}return 45===s||Ts(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:T):n(i)}function g(t){return Rs(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||_s(t)?(e.consume(t),y):Rs(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||Ts(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):Rs(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Rs(t)?(e.consume(t),w):C(t)}function x(t){return t===l?(e.consume(t),l=null,A):null===t||Ns(t)?n(t):(e.consume(t),x)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Is(t)?b(t):(e.consume(t),C)}function A(e){return 47===e||62===e||Rs(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||Ns(t)?T(t):Rs(t)?(e.consume(t),_):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),D):60===t&&1===i?(e.consume(t),F):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),I):!Ns(t)||6!==i&&7!==i?null===t||Ns(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(bl,j,S)(t))}function S(t){return e.check(wl,k,j)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||Ns(t)?S(t):(e.enter("htmlFlowData"),T(t))}function D(t){return 45===t?(e.consume(t),R):T(t)}function F(t){return 47===t?(e.consume(t),a="",N):T(t)}function N(t){if(62===t){const n=a.toLowerCase();return vl.includes(n)?(e.consume(t),O):T(t)}return _s(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):T(t)}function I(t){return 93===t?(e.consume(t),R):T(t)}function R(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),R):T(t)}function O(t){return null===t||Ns(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),O)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},bl={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Hs,t,n)}},partial:!0},wl={tokenize:function(e,t,n){const r=this;return function(t){if(Ns(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const xl={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Cl={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Rs(t)?Ls(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),Rs(t)?Ls(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Ns(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Rs(t)?Ls(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Ns(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(xl,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Ns(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Rs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ls(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||Ns(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ns(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Rs(t)?Ls(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Ns(t)?e.check(xl,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Ns(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var Al=n(87566);const El={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Ts,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Ds,c):(e.enter("characterReferenceValue"),i=7,o=Ps,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Ts||(0,Al.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}};const _l={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Fs(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Tl={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ls(e,t,"linePrefix")}}};const Sl={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(cl(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(kl,c,o?c:u)(t):91===t?e.attempt(Pl,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Dl,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=gs(o,e.slice(r+1,r+s+3)),o=gs(o,[["enter",u,t]]),o=gs(o,Js(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=gs(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=gs(o,e.slice(i+1)),o=gs(o,[["exit",l,t]]),ms(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},kl={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Is(t)?ll(e,i)(t):i(t)}function i(t){return 41===t?c(t):ol(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Is(t)?ll(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?sl(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Is(t)?ll(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Pl={tokenize:function(e,t,n){const r=this;return function(t){return al.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(cl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Dl={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Fl={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Sl.resolveAll};function Nl(e){return null===e||Is(e)||js(e)?1:Os(e)?2:void 0}const Il={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Nl(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=Nl(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);Rl(d,-s),Rl(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=gs(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=gs(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=gs(l,Js(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=gs(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=gs(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ms(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function Rl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ol={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return _s(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Ts(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Ts(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ks(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Ss(t)?(e.consume(t),l):n(t)}function c(e){return Ts(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ts(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const jl={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):_s(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):_s(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Ns(t)?(a=u,N(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?F(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Ns(t)?(a=f,N(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?F(t):93===t?(e.consume(t),g):f(t)}function v(t){return null===t||62===t?F(t):Ns(t)?(a=v,N(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):Ns(t)?(a=y,N(t)):(e.consume(t),y)}function b(e){return 62===e?F(e):y(e)}function w(t){return _s(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Ts(t)?(e.consume(t),x):C(t)}function C(t){return Ns(t)?(a=C,N(t)):Rs(t)?(e.consume(t),C):F(t)}function A(t){return 45===t||Ts(t)?(e.consume(t),A):47===t||62===t||Is(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),F):58===t||95===t||_s(t)?(e.consume(t),_):Ns(t)?(a=E,N(t)):Rs(t)?(e.consume(t),E):F(t)}function _(t){return 45===t||46===t||58===t||95===t||Ts(t)?(e.consume(t),_):T(t)}function T(t){return 61===t?(e.consume(t),S):Ns(t)?(a=T,N(t)):Rs(t)?(e.consume(t),T):E(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,k):Ns(t)?(a=S,N(t)):Rs(t)?(e.consume(t),S):(e.consume(t),P)}function k(t){return t===i?(e.consume(t),i=void 0,D):null===t?n(t):Ns(t)?(a=k,N(t)):(e.consume(t),k)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Is(t)?E(t):(e.consume(t),P)}function D(e){return 47===e||62===e||Is(e)?E(e):n(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Rs(t)?Ls(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const Ml={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Sl.resolveAll};const Ll={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Ns(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Bl={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Ns(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Ns(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const Ul={42:tl,43:tl,45:tl,48:tl,49:tl,50:tl,51:tl,52:tl,53:tl,54:tl,55:tl,56:tl,57:tl,62:il},Vl={91:ul},Hl={[-2]:pl,[-1]:pl,32:pl},zl={35:fl,42:el,45:[ml,el],60:yl,61:ml,95:el,96:Cl,126:Cl},Wl={38:El,92:_l},ql={[-5]:Tl,[-4]:Tl,[-3]:Tl,33:Fl,38:El,42:Il,60:[Ol,jl],91:Ml,92:[Ll,_l],93:Sl,95:Il,96:Bl},Gl={null:[Il,Gs]},Yl={null:[42,95]},Kl={null:[]};const Ql=/[\0\t\n\r]/g;function Xl(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Zl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jl(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Xl(n.slice(t?2:1),t?16:10)}return(0,Al.s)(n)||e}const $l={}.hasOwnProperty;function ec(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:o(Z),blockQuote:o(G),characterEscape:_,characterReference:_,codeFenced:o(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Y,a),codeText:o(K,a),codeTextData:_,data:_,codeFlowValue:_,definition:o(Q),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(X),hardBreakEscape:o(J),hardBreakTrailing:o(J),htmlFlow:o($,a),htmlFlowData:_,htmlText:o($,a),htmlTextData:_,image:o(ee),label:a,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ie),reference:B,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Z),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:q,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:z,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(v),codeText:l(F),codeTextData:T,data:T,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(P),htmlFlowData:T,htmlText:l(D),htmlTextData:T,image:l(I),label:O,labelText:R,lineEnding:S,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:j,resourceTitleString:M,resource:L,setextHeading:l(E),setextHeadingLineSequence:A,setextHeadingText:C,strong:l(),thematicBreak:l()}};nc(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=i(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];$l.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||ic).call(o,void 0,e[0])}for(r.position={start:tc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:tc(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Va({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||ic).call(this,e,r[0])}n.position.end=tc(e.end)}function u(){return ps(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=cl(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function A(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:tc(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tc(e.end)}function S(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=tc(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),T.call(this,e))}function k(){this.data.atHardBreak=!0}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function I(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Zl,Jl)}(t),n.identifier=cl(t).toLowerCase()}function O(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=cl(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function V(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Xl(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=(0,Al.s)(t)}this.stack[this.stack.length-1].value+=r}function z(e){this.stack.pop().position.end=tc(e.end)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!bs(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Cs([r,...(e||{}).extensions||[]]),content:n(Bs),document:n(Us),flow:n(qs),string:n(Ys),text:n(Ks)};return t;function n(e){return function(n){return $s(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,p;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Ql.lastIndex=u,l=Ql.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function tc(e){return{line:e.line,column:e.column,offset:e.offset}}function nc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?nc(e,r):rc(e,r)}}function rc(e,t){let n;for(n in t)if($l.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ic(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Va({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Va({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Va({start:t.start,end:t.end})+") is still open")}function oc(e){const t=this;t.parser=function(n){return ec(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const ac="object"===typeof self?self:globalThis,sc=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new ac[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new ac[o](a),i)};return r})(new Map,e)(0),lc="",{toString:cc}={},{keys:uc}=Object,dc=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=cc.call(e).slice(8,-1);switch(n){case"Array":return[1,lc];case"Object":return[2,lc];case"Date":return[3,lc];case"RegExp":return[4,lc];case"Map":return[5,lc];case"Set":return[6,lc]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},pc=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},hc=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=dc(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of uc(r))!e&&pc(dc(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[i,a]of r)(e||!pc(dc(i))&&!pc(dc(a)))&&t.push([o(i),o(a)]);return n}case 6:{const t=[],n=i([a,t],r);for(const i of r)!e&&pc(dc(i))||t.push(o(i));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},fc="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?sc(hc(e,t)):structuredClone(e):(e,t)=>sc(hc(e,t));function mc(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&Ts(e.charCodeAt(n+1))&&Ts(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function gc(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vc(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const yc=function(e){if(null===e||void 0===e)return wc;if("function"===typeof e)return bc(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yc(e[n]);return bc(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return bc(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"===typeof e)return function(e){return bc(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function bc(e){return function(t,n,r){return Boolean(xc(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function wc(){return!0}function xc(e){return null!==e&&"object"===typeof e&&"type"in e}const Cc=[],Ac=!0,Ec=!1,_c="skip";function Tc(e,t,n,r){let i;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):i=t;const o=yc(i),a=r?-1:1;!function e(i,s,l){const c=i&&"object"===typeof i?i:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Cc;if((!t||o(i,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Ac,e];return null===e||void 0===e?Cc:[e]}(n(i,l)),p[0]===Ec))return p;if("children"in i&&i.children){const t=i;if(t.children&&p[0]!==_c)for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ec)return c;u="number"===typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function Sc(e,t,n,r){let i,o,a;"function"===typeof t&&"function"!==typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Tc(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}function kc(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function Pc(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}var Dc=n(44106);const Fc={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=mc(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kc(e,t);const i={src:mc(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:mc(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kc(e,t);const i={href:mc(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:mc(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Pc(n[r])}return t}(n):Pc(t),o={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Ba(t.children[1]),a=La(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:(0,Dc.E)(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Nc,yaml:Nc,definition:Nc,footnoteDefinition:Nc};function Nc(){}const Ic={}.hasOwnProperty,Rc={};function Oc(e,t){e.position&&(t.position=function(e){const t=Ba(e),n=La(e);if(t&&n)return{start:t,end:n}}(e))}function jc(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,fc(i)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Mc(e,t){const n=t.data||{},r=!("value"in t)||Ic.call(n,"hProperties")||Ic.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Lc(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Bc(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Uc(e,t){const n=function(e,t){const n=t||Rc,r=new Map,i=new Map,o=new Map,a={...Fc,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Bc(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Bc(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:jc,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(Ic.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=fc(n);return r.children=s.all(e),r}return fc(e)}return(s.options.unknownHandler||Mc)(s,e,t)},options:n,patch:Oc,wrap:Lc};return Sc(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),i=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||gc,r=e.options.footnoteBackLabel||vc,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),a=String(i.identifier).toUpperCase(),c=mc(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...fc(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Vc(e,t){return e&&"run"in e?async function(n,r){const i=Uc(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Uc(n,{file:r,...t||e})}}var Hc=n(16e3),zc=n(98043);function Wc(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var qc=n(27841);const Gc={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Yc(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Yc(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Yc(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)Yc(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Yc(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Yc(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kc={cwd:function(){return"/"}};function Qc(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Xc(e){if("string"===typeof e)e=new URL(e);else if(!Qc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Zc=["history","path","basename","stem","extname","dirname"];class Jc{constructor(e){let t;t=e?Qc(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=Kc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Zc.length;){const e=Zc[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zc.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?Gc.basename(this.path):void 0}set basename(e){eu(e,"basename"),$c(e,"basename"),this.path=Gc.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?Gc.dirname(this.path):void 0}set dirname(e){tu(this.basename,"dirname"),this.path=Gc.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?Gc.extname(this.path):void 0}set extname(e){if($c(e,"extname"),tu(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Gc.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Qc(e)&&(e=Xc(e)),eu(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?Gc.basename(this.path,this.extname):void 0}set stem(e){eu(e,"stem"),$c(e,"stem"),this.path=Gc.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new qa(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function $c(e,t){if(e&&e.includes(Gc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Gc.sep+"`")}function eu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const nu=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ru={}.hasOwnProperty;class iu extends nu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(0,qc.S)()}copy(){const e=new iu;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(zc(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(lu("data",this.frozen),this.namespace[e]=t,this):ru.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lu("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=du(e),n=this.parser||this.Parser;return au("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),au("process",this.parser||this.Parser),su("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=du(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,(function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"===typeof(a=o)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),au("processSync",this.parser||this.Parser),su("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,(0,Hc.V)(e),t=r})),uu("processSync","process",n),t}run(e,t,n){cu(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=du(t);r.run(e,a,(function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){(0,Hc.V)(e),n=t,r=!0})),uu("runSync","run",r),n}stringify(e,t){this.freeze();const n=du(t),r=this.compiler||this.Compiler;return su("stringify",r),cu(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(lu("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c(e,i)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function a(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=zc(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function c(e,n){let r=-1,i=-1;for(;++r<t.length;)if(t[r][0]===e){i=r;break}if(-1===i)t.push([e,...n]);else if(n.length>0){let[r,...o]=n;const a=t[i][1];Wc(a)&&Wc(r)&&(r=zc(!0,a,r)),t[i]=[e,r,...o]}}}}const ou=(new iu).freeze();function au(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function su(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function lu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cu(e){if(!Wc(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function uu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function du(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Jc(e)}const pu=[],hu={allowDangerousHtml:!0},fu=/^(https?|ircs?|mailto|xmpp)$/i,mu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gu(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,l=e.rehypePlugins||pu,c=e.remarkPlugins||pu,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hu}:hu,d=e.skipHtml,p=e.unwrapDisallowed,h=e.urlTransform||vu,f=ou().use(oc).use(c).use(Vc,u).use(l),m=new Jc;"string"===typeof r&&(m.value=r);for(const a of mu)Object.hasOwn(e,a.from)&&(a.from,a.to&&a.to,a.id);const g=f.parse(m);let v=f.runSync(g,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:"root"===v.type?v.children:[v]}),Sc(v,(function(e,r,i){if("raw"===e.type&&i&&"number"===typeof r)return d?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in us)if(Object.hasOwn(us,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=us[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(e,r,i)),o&&i&&"number"===typeof r)return p&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),$a(v,{Fragment:a.Fragment,components:o,ignoreInvalidStyle:!0,jsx:a.jsx,jsxs:a.jsxs,passKeys:!0,passNode:!0})}function vu(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||fu.test(e.slice(0,t))?e:""}var yu=n(50768);function bu(e,t,n){const r=yc((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([wu(e[0]),xu(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Tc(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let o=a(...d,i);if("string"===typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function wu(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function xu(e){return"function"===typeof e?e:function(){return e}}const Cu="phrasing",Au=["autolink","link","image","label"];function Eu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _u(e){this.config.enter.autolinkProtocol.call(this,e)}function Tu(e){this.config.exit.autolinkProtocol.call(this,e)}function Su(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ku(e){this.config.exit.autolinkEmail.call(this,e)}function Pu(e){this.exit(e)}function Du(e){bu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fu],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Nu]],{ignore:["link","linkReference"]})}function Fu(e,t,n,r,i){let o="";if(!Iu(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=(0,yu.D)(e,"(");let o=(0,yu.D)(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Nu(e,t,n,r){return!(!Iu(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Iu(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||js(n)||Os(n))&&(!t||47!==n)}function Ru(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ou(){this.buffer()}function ju(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=cl(this.sliceSerialize(e)).toLowerCase()}function Mu(e){this.exit(e)}function Lu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Bu(){this.buffer()}function Uu(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=cl(this.sliceSerialize(e)).toLowerCase()}function Vu(e){this.exit(e)}function Hu(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function zu(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),Wu)),a(),o}function Wu(e,t,n){return 0===t?e:(n?"":"    ")+e}Hu.peek=function(){return"["};const qu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Gu(e){this.enter({type:"delete",children:[]},e)}function Yu(e){this.exit(e)}function Ku(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}Ku.peek=function(){return"~"};var Qu=n(55744);function Xu(e,t,n){return">"+(n?"":" ")+e}function Zu(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ju(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(o=n.stack,a=n.unsafe[i],Zu(o,a.inConstruct,!0)&&!Zu(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function $u(e,t,n){return(n?"":"    ")+e}function ed(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function td(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function nd(e){return e.value||""}function rd(e,t,n,r){const i=ed(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter("title".concat(o)),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function id(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function od(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function ad(e,t){const n=ps(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function sd(e,t,n,r){const i=ed(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(ad(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter("title".concat(o)),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function ld(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function cd(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ud(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}td.peek=function(e,t,n){return n.options.emphasis||"*"},nd.peek=function(){return"<"},rd.peek=function(){return"!"},id.peek=function(){return"!"},od.peek=function(){return"`"},sd.peek=function(e,t,n){return ad(e,n)?"<":"["},ld.peek=function(){return"["};const dd=yc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pd(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}pd.peek=function(e,t,n){return n.options.strong||"*"};const hd={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),Xu);return i(),a},break:Ju,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,$u);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter("codeFencedLang".concat(a));u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter("codeFencedMeta".concat(a));u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=ed(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter("title".concat(o)),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:td,hardBreak:Ju,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Sc(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ec})),Boolean((!e.depth||e.depth<3)&&ps(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:nd,image:rd,imageReference:id,inlineCode:od,link:sd,linkReference:ld,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):cd(n);const s=e.ordered?"."===a?")":".":function(e){const t=cd(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ud(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||cd(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){const i=e.children.some((function(e){return dd(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:pd,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ud(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function fd(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function md(e){this.exit(e),this.data.inTable=void 0}function gd(e){this.enter({type:"tableRow",children:[]},e)}function vd(e){this.exit(e)}function yd(e){this.enter({type:"tableCell",children:[]},e)}function bd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wd));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wd(e,t){return"|"===t?t:e}function xd(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=hd.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=l(e,n,r),o=s([i]);return o.slice(0,o.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return(0,Qu.Q)(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function Cd(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Ad(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ed(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=hd.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const _d={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},Td={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(kd,l,s)(t):null===t||Is(t)||js(t)||45!==t&&Os(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},Sd={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(kd,t,o)(a):null===a||Is(a)||js(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},kd={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||Is(a)||js(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||Is(e)||js(e)?t(e):r(e)}function o(e){return _s(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):_s(t)?(e.consume(t),a):n(t)}},partial:!0},Pd={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ts(e)?n(e):t(e)}},partial:!0},Dd={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Od.call(r,r.previous)||Bd(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_d,e.attempt(Td,e.attempt(Sd,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Od},Fd={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&jd.call(r,r.previous)&&!Bd(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(_s(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||ks(t)||Is(t)||js(t)||Os(t)?n(t):e.attempt(Td,e.attempt(Sd,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:jd},Nd={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!Ld(t)||!Md.call(r,r.previous)||Bd(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ld(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Pd,c,l)(t):45===t||95===t||Ts(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&_s(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Md},Id={};let Rd=48;for(;Rd<123;)Id[Rd]=Nd,Rd++,58===Rd?Rd=65:91===Rd&&(Rd=97);function Od(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Is(e)}function jd(e){return!_s(e)}function Md(e){return!(47===e||Ld(e))}function Ld(e){return 43===e||45===e||46===e||95===e||Ts(e)}function Bd(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Id[43]=Nd,Id[45]=Nd,Id[46]=Nd,Id[95]=Nd,Id[72]=[Nd,Fd],Id[104]=[Nd,Fd],Id[87]=[Nd,Dd],Id[119]=[Nd,Dd];const Ud={tokenize:function(e,t,n){const r=this;return Ls(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Vd(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=cl(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Hd(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function zd(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||Is(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(cl(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Is(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Wd(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||Is(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=cl(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Is(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Ls(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function qd(e,t,n){return e.check(Hs,t,e.attempt(Ud,t,n))}function Gd(e){e.exit("gfmFootnoteDefinition")}function Yd(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=Nl(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Nl(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&ms(a,a.length,0,Js(s,e.slice(r+1,n),t)),ms(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ms(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Kd{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Qd(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Xd(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?w:s;if(o===w&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):Ns(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Rs(t)?Ls(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Is(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Rs(t)?Ls(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return Rs(t)?Ls(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Ns(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Rs(t)?Ls(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||Ns(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||Ns(n)?(e.exit("tableRow"),t(n)):Rs(n)?Ls(e,x,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||Is(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?A:C)}function A(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function Zd(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Kd;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&($d(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=Jd(p,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Jd(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],i=Jd(p,t,l,s,o,i)):0!==c[1]&&(i=Jd(p,t,c,s,o,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&$d(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Qd(t.events,o))}return e}function Jd(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},ep(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=ep(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=ep(t.events,n[2]),o=ep(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},ep(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function $d(e,t,n,r,i){const o=[],a=ep(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function ep(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const tp={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Is(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Ns(r)?t(r):Rs(r)?e.check({tokenize:np},t,n)(r):n(r)}}};function np(e,t,n){return Ls(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const rp={};function ip(e){const t=e||rp,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Cs([{text:Id},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Wd,continuation:{tokenize:qd},exit:Gd}},text:{91:{name:"gfmFootnoteCall",tokenize:zd},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vd,resolveTo:Hd}}},Yd(e),{flow:{null:{name:"table",tokenize:Xd,resolveAll:Zd}}},{text:{91:tp}}])}(t)),i.push([{transforms:[Du],enter:{literalAutolink:Eu,literalAutolinkEmail:_u,literalAutolinkHttp:_u,literalAutolinkWww:_u},exit:{literalAutolink:Pu,literalAutolinkEmail:ku,literalAutolinkHttp:Tu,literalAutolinkWww:Su}},{enter:{gfmFootnoteDefinition:Ru,gfmFootnoteDefinitionLabelString:Ou,gfmFootnoteCall:Lu,gfmFootnoteCallString:Bu},exit:{gfmFootnoteDefinition:Mu,gfmFootnoteDefinitionLabelString:ju,gfmFootnoteCall:Vu,gfmFootnoteCallString:Uu}},{canContainEols:["delete"],enter:{strikethrough:Gu},exit:{strikethrough:Yu}},{enter:{table:fd,tableData:yd,tableHeader:yd,tableRow:gd},exit:{codeText:bd,table:md,tableData:vd,tableHeader:vd,tableRow:vd}},{exit:{taskListCheckValueChecked:Cd,taskListCheckValueUnchecked:Cd,paragraph:Ad}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cu,notInConstruct:Au},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cu,notInConstruct:Au},{character:":",before:"[ps]",after:"\\/",inConstruct:Cu,notInConstruct:Au}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:zu,footnoteReference:Hu}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qu}],handlers:{delete:Ku}},xd(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ed}}]}}(t))}const op=e=>{let{...t}=e;return(0,a.jsx)("a",{...t,target:"_blank",rel:"noopener noreferrer","aria-label":"link"})},ap=e=>{let{...t}=e;return(0,a.jsx)("p",{className:"text-sm md:text-base leading-normal",...t})},sp=e=>{let{strapiUrl:t,mixPanelFn:n}=e;const{selectedMessage:r,renderTitle:o}=((e,t)=>{const[n,r]=(0,i.useState)(),o=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{o.current||(o.current=!0,(async()=>{const n=await pn("".concat(e,"/api/loading-messages"),t);if(!n||!n.data)return void(o.current=!1);const i=n.data.map((e=>({Message:e.attributes.Message,category:e.attributes.category,id:e.id}))),a=Math.floor(Math.random()*i.length);r(i[a]),o.current=!1})())}),[]),{renderTitle:()=>"Tip"===(null===n||void 0===n?void 0:n.category)||"Fact"===(null===n||void 0===n?void 0:n.category)?"Flowty ".concat(n.category,":"):"Fun ".concat(null===n||void 0===n?void 0:n.category," Fact"),selectedMessage:n}})(t,n);return(0,a.jsx)("div",{className:"".concat(r?"opacity-100":"opacity-0"," transition-opacity duration-500 ease-in-out flex flex-col justify-center w-auto md:w-[28rem] bg-[#ffffff] bg-opacity-[8%] backdrop-blur-lg rounded-lg py-2 p-4 gap-2 leading-normal"),children:r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h2",{className:"text-base font-bold text-gray-300 leading-normal",children:[o()," "]}),(0,a.jsx)(gu,{remarkPlugins:[ip],components:{a:op,p:ap},className:"text-gray-300 markdown-messages",children:r.Message})]})})},lp=e=>{let{openSearchFlowNFT:t,accountSummaries:n,flowty:r,strapiUrl:o}=e;const{activeTab:s,listingType:l,onTabChange:c,loanStep:u,rentStep:d,selectedAccount:p,setSelectedAccount:h,selectedOrder:f,hasChildAccounts:m,hasProvider:g,childAccounts:v,isCatalog:y,isDapper:b,isFormError:w,valuationData:x,isLoading:C,isUpdateListing:A,sealed:E,error:_,transactionID:T,existingPurchaseOrder:S,existingLoanOrder:k,existingRentalOrder:P,orderData:D,loanFormValues:F,transferReceiver:N,isAcceptOffer:I,selectedOffer:R,singleOrder:O,singleAction:j,isLocked:M,isDelist:L,isMainnet:B,collectionDisplayName:U,mixPanelFn:V}=Ln();let H=(0,i.useMemo)((()=>"storefront"===l?"sale":"rental"===l?"rent":l),[l]);if("rental"===l&&(H="rent"),M&&!L.sale)return(0,a.jsx)(Ea,{});if(Boolean(R)&&!_.acceptOffer&&!E.acceptOffer&&!C.acceptOffer)return(0,a.jsx)("div",{className:"h-full md:w-[400px] flex flex-col items-center justify-center",children:(0,a.jsx)(kr,{accountSummaries:n,offerListingError:Boolean(w.acceptOffer),flowty:r})});if(Boolean(O)&&!_.delist&&!E.delist&&!C.delist){if("delistSale"===j)return(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(ua,{storefrontOrder:[O]})});if("delistLoan"===j)return(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Oo,{selectedOrder:O})});if("delistRental"===j)return(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(ca,{selectedOrder:O})})}return _[H]||_.delist||_.acceptOffer?(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Kn,{transactionID:T,isMainnet:B})}):E[H]||E.delist||E.acceptOffer?(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(ar,{isMainnet:B,type:H,transactionID:T,orderData:D,nft:t,isDelist:E.delist,collectionDisplayName:U})}):C[H]||C.delist||C.acceptOffer?(0,a.jsxs)("div",{className:"h-full flex flex-col items-center relative",children:[(0,a.jsx)("div",{className:"flex-grow flex flex-col justify-center items-center",children:(0,a.jsx)(Xn,{transactionID:T,isMainnet:B})}),(0,a.jsx)("div",{className:"md:absolute bottom-0 w-full",children:(0,a.jsx)(sp,{strapiUrl:o,mixPanelFn:V})})]}):g?(0,a.jsx)("div",{className:"md:w-[400px] h-full flex flex-col gap-4",children:(0,a.jsx)(G,{activeTab:s,condensed:!0,tabs:[{content:I?(0,a.jsx)(kr,{accountSummaries:n,offerListingError:Boolean(w.acceptOffer),flowty:r}):S&&!A?(0,a.jsx)(ua,{storefrontOrder:S,selectedOrder:f.purchase}):(0,a.jsx)(ba,{accountSummaries:n,isDapper:Boolean(b),valuationData:x,saleListingError:w.sale,orderData:D,flowty:r}),id:"1",label:"Sale"},{content:k&&k.length>0&&!A?(0,a.jsx)(Oo,{loanOrder:k,selectedOrder:f.fundLoan}):(0,a.jsx)(ia,{isCatalog:y,isDapper:Boolean(b),hasChildAccounts:m,selectedAccount:p,setSelectedAccount:h,accountSummaries:n,loanStep:u,loanFormValues:F,loanFormError:w.loan,openSearchFlowNFT:t,flowty:r}),id:"2",label:"Loan"},{content:P&&!A?(0,a.jsx)(ca,{rentalOrder:P,selectedOrder:f.fundRental}):(0,a.jsx)(sa,{isCatalog:y,isDapper:Boolean(b),hasChildAccounts:m,selectedAccount:p,setSelectedAccount:h,accountSummaries:n,rentStep:d,rentData:D,rentFormError:w.rent,openSearchFlowNFT:t,flowty:r}),id:"3",label:"Rent"},{content:(0,a.jsx)(Lo,{isDapper:b,childAccounts:v,openSearchFlowNFT:t,transferFormError:w.transfer,transferReceiver:N||""}),id:"4",label:"Transfer"}],onChange:e=>{c(e)},type:"secondary"})}):(0,a.jsx)(qn,{})};var cp,up,dp=n(51572),pp=n(46855),hp=n(67687);function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(null,arguments)}function mp(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",fp({width:15,height:16,viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,cp||(cp=i.createElement("g",{id:"Frame",clipPath:"url(#clip0_10301_3203)"},i.createElement("path",{id:"Vector",d:"M7.85209 13.6724L5.69836 11.5151L4.99501 12.2194L7.8726 15.1023L10.7422 12.2265L10.0183 11.5018L7.85209 13.6724ZM12.1203 5.09494L11.4099 5.80721L13.5556 7.95738L11.3822 10.1361L12.1132 10.8671L14.997 7.97877L12.1203 5.09494ZM4.30146 5.80186L3.60346 5.10207L0.733887 7.97788L3.61059 10.8608L4.3282 10.1414L2.14861 7.95738L4.30146 5.80186ZM4.98787 3.72924L5.67875 4.42101L7.85209 2.2432L10.0388 4.43349L10.7493 3.72211L7.8726 0.839172L4.98787 3.72924Z",fill:"#6687FF"}),i.createElement("path",{id:"Vector_2",d:"M7.74695 11.705L9.58154 9.86597V6.04969L7.74695 4.21063L4.00732 7.95828H6.1673L7.75853 6.31712L7.74695 7.95739V11.705Z",fill:"#6687FF"}))),up||(up=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_10301_3203"},i.createElement("rect",{width:14.2632,height:14.2632,fill:"white",transform:"translate(0.733887 0.839172)"})))))}const gp=i.forwardRef(mp);n.p;var vp;function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yp.apply(null,arguments)}function bp(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",yp({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,vp||(vp=i.createElement("g",{id:"Frame"},i.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M4.91156 4.99926C4.91156 5.47212 4.72372 5.9256 4.38936 6.25996C4.055 6.59432 3.60152 6.78216 3.12866 6.78216V11.5365H12.6374V6.78216C12.1646 6.78216 11.7111 6.59432 11.3767 6.25996C11.0424 5.9256 10.8545 5.47212 10.8545 4.99926V2.02777H9.66594C9.66594 2.50062 9.4781 2.95411 9.14375 3.28847C8.80939 3.62283 8.3559 3.81067 7.88305 3.81067C7.41019 3.81067 6.95671 3.62283 6.62235 3.28847C6.28799 2.95411 6.10015 2.50062 6.10015 2.02777H4.91156V4.99926ZM12.6374 12.7251H3.12866V13.9137H12.6374V12.7251Z",fill:"#6687FF"}))))}const wp=i.forwardRef(bp);n.p;var xp,Cp;function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ap.apply(null,arguments)}function Ep(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Ap({width:15,height:16,viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,xp||(xp=i.createElement("g",{id:"Frame",clipPath:"url(#clip0_10301_3196)"},i.createElement("path",{id:"Vector",d:"M7.43355 5.36595C7.0911 5.37168 6.7532 5.44539 6.43948 5.58282C6.12576 5.72024 5.84248 5.91863 5.60609 6.16647C5.36841 6.41262 5.18196 6.7035 5.05755 7.02225C4.93314 7.341 4.87324 7.68128 4.88134 8.02336C4.89609 8.71369 5.18405 9.37 5.68207 9.84829C6.18008 10.3266 6.84748 10.5878 7.53785 10.5747C7.88009 10.5689 8.21778 10.4953 8.53133 10.3581C8.84489 10.2208 9.12806 10.0226 9.36443 9.77505C9.84581 9.27316 10.1043 8.61438 10.0901 7.91816C10.0756 7.22767 9.78769 6.57114 9.28965 6.09265C8.7916 5.61416 8.12408 5.35281 7.43355 5.36595Z",fill:"#6687FF"}),i.createElement("path",{id:"Vector_2",d:"M10.9103 4.51195C10.4565 4.0613 9.91811 3.70485 9.32603 3.46312C8.73395 3.2214 8.09991 3.09916 7.4604 3.10347C6.8212 3.10512 6.18867 3.23335 5.59929 3.48075C5.00992 3.72816 4.47539 4.08985 4.02654 4.54494C3.57589 4.9987 3.21944 5.53712 2.97771 6.1292C2.73598 6.72128 2.61375 7.35533 2.61805 7.99484C2.61982 8.63431 2.74827 9.26709 2.99599 9.85663C3.24371 10.4462 3.60579 10.9808 4.06131 11.4296C4.97146 12.3334 6.20265 12.8399 7.48536 12.8381H7.51032C8.14993 12.8364 8.78288 12.708 9.37259 12.4603C9.96229 12.2126 10.497 11.8504 10.946 11.3948C11.3966 10.9411 11.7531 10.4026 11.9948 9.81055C12.2365 9.21847 12.3587 8.58443 12.3544 7.94492C12.352 7.30555 12.2233 6.67296 11.9756 6.0835C11.7279 5.49405 11.3662 4.95936 10.9112 4.51017M10.461 10.9143C10.075 11.3061 9.61512 11.6174 9.10805 11.8304C8.60098 12.0434 8.05673 12.1538 7.50675 12.1552H7.48536C6.38212 12.1575 5.32309 11.7218 4.54091 10.9437C4.14928 10.5578 3.838 10.0981 3.62501 9.5912C3.41203 9.08429 3.30157 8.54022 3.30001 7.99038C3.29595 7.44036 3.40092 6.89499 3.60885 6.38578C3.81679 5.87656 4.12358 5.4136 4.51149 5.02364C4.89743 4.63202 5.35713 4.32073 5.86403 4.10775C6.37094 3.89477 6.91502 3.78431 7.46485 3.78275H7.48714C8.59699 3.78275 9.64177 4.21243 10.4316 4.99423C10.8232 5.38017 11.1345 5.83987 11.3475 6.34677C11.5605 6.85368 11.6709 7.39776 11.6725 7.94759C11.6765 8.49761 11.5716 9.04298 11.3636 9.5522C11.1557 10.0614 10.8489 10.5244 10.461 10.9143ZM14.0562 5.1948C13.876 4.76873 13.6548 4.3612 13.3957 3.97798L12.9036 4.47006C13.4749 5.35311 13.8215 6.36256 13.913 7.41033C14.0045 8.4581 13.8382 9.51235 13.4286 10.4811C13.2845 10.8243 13.11 11.154 12.9071 11.4661L13.3992 11.9582C14.1933 10.78 14.6173 9.39154 14.6169 7.97077C14.6187 7.01715 14.428 6.07298 14.0562 5.1948ZM4.97504 2.02749C5.7693 1.6918 6.62307 1.51959 7.48536 1.52115C8.72678 1.51905 9.94218 1.87701 10.9843 2.55166L11.4764 2.05958C10.2982 1.26242 8.90787 0.837281 7.48536 0.839191C6.06168 0.835906 4.67001 1.26148 3.49167 2.06047L3.98375 2.55255C4.29775 2.34813 4.62952 2.1724 4.97504 2.02749ZM9.99656 13.9141C9.20202 14.2499 8.34795 14.4221 7.48536 14.4204C6.24572 14.4224 5.03201 14.0654 3.99088 13.3926L3.49791 13.8846C4.67538 14.6802 6.06434 15.1043 7.48536 15.1024C8.91053 15.1056 10.3036 14.679 11.4826 13.8784L10.9905 13.3863C10.6755 13.5919 10.3425 13.7685 9.99567 13.9141M1.03573 7.97077C1.03337 6.72943 1.39102 5.51404 2.06536 4.47184L1.57328 3.97887C0.776263 5.15739 0.351425 6.54805 0.353778 7.97077C0.350565 9.39595 0.777112 10.789 1.57773 11.968L2.06981 11.4759C1.39275 10.4324 1.03349 9.21468 1.03573 7.97077Z",fill:"#6687FF"}))),Cp||(Cp=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_10301_3196"},i.createElement("rect",{width:14.2632,height:14.2632,fill:"white",transform:"translate(0.35376 0.839172)"})))))}const _p=i.forwardRef(Ep),Tp=(n.p,{"#1 Serial":gp,"Jersey Match":wp,"Perfect Serial":_p}),Sp=e=>{let{specialTsTraits:t}=e;return(0,a.jsx)(a.Fragment,{children:Object.entries(t).map((e=>{let[t,n]=e;const r=Tp[t];return n&&r&&(0,a.jsxs)("div",{className:"rounded-[100px] backdrop-blur-[6px] flex w-[20px] h-[20px] md:w-[24px] md:h-[24px] px-[3px] py-[2px] md:px-[4px] md:py-[3px] gap-[10px] flex-shrink-0 justify-center items-center flex-col mr-[-4px] md:mr-[-6px]",style:{background:"rgba(255, 255, 255, 0.14)"},children:[(0,a.jsx)(Tr.m_,{id:"".concat(t,"-tooltip"),style:{backgroundColor:"#F8F9FA",boxShadow:"none",color:"#031021",fontSize:"14px",fontWeight:500,zIndex:20},opacity:1,border:"none"}),(0,a.jsx)(r,{className:"h-[12px] w-[12px] md:h-[16px] md:w-[16px] flex-shrink-0","data-tooltip-id":"".concat(t,"-tooltip"),"data-tooltip-place":"top","data-tooltip-content":t})]},t)}))})},kp=["#1 Serial","Jersey Match","Perfect Serial"],Pp=e=>{let{traits:t=[]}=e;const n={"#1 Serial":!1,"Jersey Match":!1,"Perfect Serial":!1};return t.forEach((e=>{kp.includes(e.name)&&"true"===String(e.value).toLowerCase()&&(n[e.name]=!0)})),n};const Dp=n.p+"static/media/new_fallback_image.756db11552689ed90e938269ce4485c4.svg",Fp=e=>{let{listingType:t}=e;const n="uppercase font-bold text-white text-[8px] md:text-sm z-10 absolute bg-gradient-to-r top-2 md:top-4 w-4/5 h-[18px] md:h-10 -left-[19px] pl-4 flex items-center";return(0,a.jsx)(a.Fragment,{children:"loan"===t||"fundLoan"===t?(0,a.jsx)("div",{className:"".concat(n," loanListingBannerGradient"),children:"LOAN"}):"rental"===t||"fundRental"===t?(0,a.jsx)("div",{className:"".concat(n," rentalListingBannerGradient"),children:"RENT"}):null!==t&&void 0!==t&&t.includes("storefront")||"purchase"===t||"makeOffer"===t?(0,a.jsx)("div",{className:"".concat(n," buyListingBannerGradient"),children:"BUY NOW"}):null})},Np=e=>{var t,n,r,i,o;let{accountSummaries:s,nft:l}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(l.uuid,"-nft-origin-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,a.jsx)("img",{"data-tooltip-id":"".concat(l.uuid,"-nft-origin-tooltip"),"data-tooltip-content":"From ".concat((null===s||void 0===s||null===(t=s[l.owner])||void 0===t||null===(n=t.display)||void 0===n?void 0:n.name)||(null===s||void 0===s||null===(r=s[l.owner])||void 0===r?void 0:r.address)," account"),"data-tooltip-place":"top",className:"rounded-full h-6 w-6 aspect-square",src:(0,T.getImageURL)((null===s||void 0===s||null===(i=s[l.owner])||void 0===i||null===(o=i.display)||void 0===o?void 0:o.thumbnail)||""),alt:"Account owner icon"})]})},Ip=e=>{var t,n,r,o,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C;let{children:A,nft:E,listingType:_,valuationData:S,accountSummaries:k,hasProvider:P,collectionImage:D,isMainnet:F,mixPanelFn:N}=e;const[I,R]=(0,i.useState)(null),[O,j]=(0,i.useState)(!1),M=(0,T.getImageURL)((null===E||void 0===E||null===(t=E.card)||void 0===t||null===(n=t.images)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.url)||""),L=Object.keys(k||{}).length>1||!1,[B,U]=(0,i.useState)(!1),V=(0,i.useMemo)((()=>{var e,t,n;return Pp({traits:null!==(e=null===(t=E.nftView)||void 0===t||null===(n=t.traits)||void 0===n?void 0:n.traits)&&void 0!==e?e:[]})}),[null===(o=E.nftView)||void 0===o||null===(s=o.traits)||void 0===s?void 0:s.traits]),H=(0,i.useMemo)((()=>{const e=F?"A.a45ead1cf1ca9eda.FlowRewards.NFT":"A.2e7cfb413f04382f.FlowRewards.NFT";return E.type===e}),[E]),z=(0,i.useMemo)((()=>{var e,t,n,r,i,o,s;return H?(0,a.jsx)("img",{src:null===E||void 0===E||null===(e=E.card)||void 0===e||null===(t=e.images)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url,onError:()=>R(!0),alt:"".concat(null===E||void 0===E||null===(r=E.card)||void 0===r?void 0:r.title," asset"),className:"object-cover aspect-square w-[88px] h-[152px] sm:w-[178px] sm:h-[308px] m-auto"}):B?(0,a.jsx)("img",{src:Dp,onError:()=>R(!0),alt:"".concat(null===E||void 0===E||null===(i=E.card)||void 0===i?void 0:i.title," asset"),className:"object-cover aspect-square w-[152px] sm:w-full"}):I?O?(0,a.jsx)("img",{src:null!==D&&void 0!==D?D:"",onError:()=>{U(!0),R(!0)},alt:"".concat(null===E||void 0===E||null===(s=E.card)||void 0===s?void 0:s.title," asset"),className:"object-cover aspect-square w-[152px] sm:w-full"}):(0,a.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!1,className:"object-cover aspect-square w-[152px] sm:w-full",onMouseEnter:e=>{const t=e.target.play();void 0!==t&&t.then((e=>{})).catch((e=>N("ERROR_PLAYING_NFT_VIDEO",{error:e})))},onMouseLeave:e=>{const t=e.target;t.pause(),t.currentTime=0},onError:()=>{j(!0)},children:(0,a.jsx)("source",{type:"video/mp4",src:M})}):(0,a.jsx)("img",{src:M,onError:()=>R(!0),alt:"".concat(null===E||void 0===E||null===(o=E.card)||void 0===o?void 0:o.title," asset"),className:"object-cover aspect-square w-[152px] sm:w-full"})}),[B,I,O,M,E,D,H]);return(0,a.jsxs)("div",{className:"p-[16px] md:p-[19px] w-full relative flowty-nft-card rounded-lg border border-neutral-300",children:[null===S||void 0===S||!S.percentage||"storefront"!==_&&"purchase"!==_?null:(0,a.jsx)("div",{className:"absolute -top-1 right-[7%] z-40",children:(0,a.jsx)(ga,{percent:(null===S||void 0===S?void 0:S.percentage)||0,tooltip:!0,source:(null===S||void 0===S?void 0:S.source)||""})}),(0,a.jsxs)("div",{className:"flex flex-row-reverse gap-6 sm:gap-3 md:flex-col justify-between sm:justify-start",children:[(0,a.jsxs)("div",{className:"flex flex-col flex-grow sm:flex-none sm:pl-0 col-span-2 sm:order-first min-w-[0px]",children:[(0,a.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-start gap-2 max-w-[307px]",children:[null!==E&&void 0!==E&&null!==(l=E.card)&&void 0!==l&&l.additionalDetails?(0,a.jsx)("p",{className:"max-w-[110px] sm:max-w-[286px] block text-sm sm:text-lg text-white font-montserrat font-extrabold truncate pointer-events-none uppercase",children:null===E||void 0===E||null===(c=E.card)||void 0===c?void 0:c.title}):(0,a.jsxs)("div",{className:"max-w-[110px] sm:max-w-[286px] flex truncate",children:[(0,a.jsx)("p",{className:"block text-sm sm:text-lg text-white font-montserrat font-extrabold truncate pointer-events-none uppercase",children:null===E||void 0===E||null===(u=E.card)||void 0===u?void 0:u.title}),(null===E||void 0===E||null===(d=E.card)||void 0===d?void 0:d.num)&&!(null!==E&&void 0!==E&&null!==(p=E.card)&&void 0!==p&&p.title.includes("#"))&&(0,a.jsxs)("p",{className:"block text-sm sm:text-lg text-white font-montserrat font-extrabold truncate pointer-events-none uppercase ml-2",children:["#",null===E||void 0===E||null===(h=E.card)||void 0===h?void 0:h.num]})]}),(0,a.jsx)("div",{children:(null===E||void 0===E?void 0:E.isNFTCatalog)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(E.uuid,"-verified-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem",zIndex:50}}),(0,a.jsx)("img",{"data-tooltip-id":"".concat(E.uuid,"-verified-tooltip"),"data-tooltip-content":"Verified Collection from the Flow NFT catalog","data-tooltip-place":"top",alt:"Verified Collection from the Flow NFT catalog",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAPfElEQVR4Ae1bW4ydVRVea//nTEuh3Cwt7cy0BRMCDxhNfBBMhEDECzx4S1Ho9JJGilpUiJFglBAt4P2BqAkSUtoOiAQVSRQEHzD4INiIgjcC0mhnOoVS0k5L7cz5/7381uU/MwRmOGdK58XZ7en5z/4ve69vrfWttdf+SzTX5tpcm2tz7f+3Mc1223vnwmY57+wsdDaTnEVZJ8HDlPOO1vI1O2iW26wBsEgeWHhg98G1IjxALCeQ4AgHwpKBgRSYCo6HOfODrUPj99DZGw7SLLRZAaBn973nZGn9QIh6kwpN9jdTYv8WnQmOSdQe9OTwvBZvPLxyYISOcTvmABT/uWs9F8UmSLcQPzP07JoXhrBwBBxjFjhWGEShyDG1A1Lwj6vTV/+UjmE7JgAcNzTYVyb5OMTBR5apdlMIqup1TZOKnCeEpwDCrlCQtLNC/4ik4ieNcuypsf71z9Fb3I4agFP3DZ548LCswsTPg5TnoKsPkrggFCau3y4gBBMXWIVXF8guuJpDMiD02uxg6JUMVnC3MNBwcjdo47kiNR8fW3bFw3SU7agAaO7adlVOfB0eshCalvBjFSLH07NqPktoHEI4B9AECPjm2jLCAtxFAqjXuYiPwWz9I7kst1b962cMxIwBKIa33YaJrlI2F9OSz5B9lqbNPDFp166qkZ0HiFNlYqtwbfBqF5hkQdy2oKwRg2vCNMvxa9D9s1bf2h/RDFqiGbTG0LbNGPhys+uk3mpTYZeRbIYW3p3erSdLm93QlRQoZpNUTCAVzK/EkbqGaZizxsmwDHyliBYTwjvC6WNpZPuXaAatawB6hu/+JCax0ZVttJY8pNvjvM/PGRDJ8hziWroQUW1cwcPNbIFBOLCzlmvYDCU3irAOqh3Hn+QPhMVluqRn9+BHqcvWNQAY/XrXK7xQJWQ7StYhkigAYH+2+4bdKGzwmEpNsInmWiUnzXAV8vzApOcQNNdW0iZYMvch97WK5Eras+146qJ1BUDP8PZPYQ7LKaAPq3WNSz03MkhqdapBk364bRRtEfx3/RhxYRO7X+ttHgFc2+79oowaxChmFZw8lHrUOL6o+P3UResKAIx6WYig0yzY2YlryzYxkzOWd7KBE45hDj35eTkHY1g/B4Q5zFs7w+Rd1dSOBkYxlGvEKeIKBlLzOpe6aF0CIOeaNtvsY6bO3idBhObTScxF9Dt5VK/PuaR2X0ocpB+kYQ/lIDiaMH0V2KNFDC0TiZP1K8roQzaBG87oQiRqUHdtZaBvYdjlkhqdZKJT5PhZQ37KHtZrVyGpydyDo56r9WhISLiEtJHxtUIInCJPoHAdpaRwpuw6wbnF1EXr2AJ69gyea8OycJCvaZ7V8PSvQWLOb+7hAcGF57AaB0Lce1XalKi28Xb4a8cCH8jiDBtUHgXst6XItQ3aecsyLbbguj3bOgahYwDKqnwf0SRhNIjxhJ/LpHPh0YXxt47hgpubJLV79xxpL3vs32B093MTGAcVFHx/Vcl3gMwjOL3HtOw0kaVOIzwi6M3KC1ha00WdytWxCxRcfK7mLNOLOp14ei/O0bZ+kZoTzH+zglDpxREYUpaAxTis9ml6rfm7Xx+E9NdS/9rndVDI/Bt64Y4lRc/8b+HyxTqiG53xolqC1IkUBrkIJnJvJ3J1ZAHN4e2bMMuVxv61P0sd643QCnL29wih/UGEpBpPNVGqs+hxTkx1quCT5lRrUQOdhPADz79mImd++kUo+RfqAuwugTSMKjw6R0KQ/SG8qBgavKwT2d4UgPm7B1dAV1+lOuZjtAjcYe4TfGBmbhQHQESTZBiO5Ib4tUkFh3RJ3SBTXOnWTL4uMF+G8PTF1wkfrcjFC1xbjd3NTiogSG6nJ9ryKtq5ZSUdDQAn79xyMuB9FPM7xQVwobmdAE30uY9zagPkWXD0WcXLjtUd8qSMkSh82PJ+Ga0q+sJUwjtaeYHWCdhtP3O9NrBYkWv3UXwXFM3Gl0keXEAzBeDQvMY1SK/OsHpGsLj7uPJMGwzXuAlngBTmEviILQrVChgfaeDOQs/rvclB8NRYtC6YRyvhz08n/BJNc5k2+F1KgJLreoKZfopvXTV6xFhUDO+/lGYKAIZYZ77KdlkSo29Jk+J6ksnWoIJD06pJHD+D7oPRBzBYgXEQrM+shU3zRKNVkzdNJ7zm+K9k/jpU+zbXsOWRWRMOicqS5YGIDLFkzhGqPjSdFUwJQGNk2wUQdaWnLzm0bWzuwroHp7COIsKcnt9c9a1ZWvYOnFeN8fmwmVtFrYBJuaCByTZxfROzbpjOCITXU3yWFk+v+WbFN+Gefjd9aDhzpMSSYx0epTRzrHbtEb8W9OwZXdk1AHjEhZHapkhhaxP33+LxXRd55Hm/WsO2ctnqze1nnLn63+WyNTcDpFsVU1zUgyt7cNs8fM8Dlv8tia+ixVdOWetbCu3tk3Qj5rLcoigiQHIBjflVA5Z9auFJP+1iDPuKEt9VWa3oGgBMdgVHgk+xHqvrcnGB+Mqv7QJq1Nve6FkAYTNuvhkPaULo+dD8AjXjspIB6h14dqo5qOnuHRn9GsTqN8FdIPCFRgtLyStzVPCqRuGIxJk8LLbrB3Dc7gGImytMtsRksdTW5bbGXGqR95W4Bh9qAYlxfI9jkidO9bTcN/ANoHUjhDkEuIaqRrqElq/565TDDz+4oDEy+hVc36fjpmD9ZGkwSFO/IbiSgbJ/jvNqk1mrNA6G96eJYlQXAPBTJjRzCcFKPLGlx1A1rJZbLjyr4C223zTOFb+XpmnlsoFbYFI3ViyX0umrn6FphO+h0eshSi+xCw8JyuxrgAhzUUVWea0moKCwVoZs0ZQtSkQluqKXpxpqylQYov8F1FVKrFU837EnRhmvdgJNYazMo50beoYHnxrvnXozI/euuY2maztuX9DDo9dVOS+Ff1eW+hvNhC6JvLoi5uOeUPranC0mJZ9vCqQS/rRS8fephpvSAsoT5j2NB73CE6ZfYhxYgFT6Ue1jDuMAoIVZtOBnY7huHNP8bs/Q4CdoJm3X949rLFlwDQZbqtYG3sCH4W65iiyxygqKLZSymzx56R1R1nICLQkkZ0OLEnjWS9R7xT+pWwDo1FUHcPqHZL6GScANkOrA1NUlILCYC7Qwkh7DFfANQGCdYxj7lmJ4+0eom7Zzy/wGL7oasizBrxKJbaaa+DRzzm3TV7/25XAskXOYQF0g0U4zBs/afj/dsNMmQuWRV28H4jtZU88slVqAGPmp36vmlQ/ADQ6MESGrZSQag05uKoa2drQgUeGbPcUGAL0E4R0UkaFpAKxqVgUoCQMEXUIkq/2J1MkvRYSiek/B62N6n4bMvRUdfoRmCgC9feOBRqtCNkiviBGgkqIY+7OSI7Su0SC5a7QgtIGgrgD4xxAXbyh2b//gtGPIr+elZloL9S3JpvHCs7pk2nTSM3eWbGlf9hBY7zUmSZP2Fjk2UWyZ/Gop+ZvUu/EwzRgAlWbFur8By++Z0B53lfHVP80d1BLgAi3vF7UIAKDAqEXwGCzi2sbQ4MVTCd/c/fJqENViit0fZ3rP8y3rs/IH1xp2C1AzTxL9bWtwy/DNdiQ/9EvqW7vvzeRj6rBhK+x3uHxZpJ5ufgmE5IsRi80WcMxCTHMGkGIoahWJ76iWrn6o/UA1+0ZzALxxGsV6wRdZqSBPr7X2UGhIz1ZtVLrPXGehmo5mT79iYRjFxWyVqn1l75obOpGr44oQVvH3IbpuCu24uWXKsXdXmdCsLgJeECdNEGTpv/HJcmVzeOtSSY2dOG7CRd4hVZ6fNLOzYoiatC5ns0OqFAajr9Qtsi3EkqvLYnDOUYpzHmBP+7MWYHRe/NtO5eoYAOzCPpA4fcb80+2u8rU3h69azK6CJEslTeUJFV4TqUQGxHsw9XdhqkdwfATIHcm2LjZ6l/b2uAHsBU/XNIfFO1J16Z1iQaL6T8Jh/cbMz3YqV+f7Av3rhslMWzQMlhYabawweQuLSobgBc0dPGMER4iSJIo8XFmRs05lRVk9WaKikbwuDpAvOCLX912g1N4x0jKoWCnczYWQIGRLdXMsgc2S+lYPdSpWt3uDQ+yT8/WBaZ1Rx7A02Y/b6TM+OZvQnktkIzfOtVBE7fpvSu4CHrnhbS5s4kkMD7HrOpqvzaO2rr+NAmw+2vdyNwJ1BQAG+0fs6yvg7vcQGEKpW9jCyb41W9RykIKi2reCj7qKVPUqLVstM+J2LuN1EIvgPlg2n8nGCR4hLPutrO4lDqQXpCMRsitwgndRF60rACDlH1Wrqk1Ph6Vsa1tqTfsHcyuzp8w5+ibe+DBGoyDvJD6RmEqKHWK1ALUO65eJXSCetIGqe4FWYpxwF9jc09RF6wqAqtnzK5jrATd11XhsUlpJSpOjZP3s6oyooGuJqNyIk2aul6eTNtBzCtfIXuevwTLyc6Q0+PkyV2LP2eN+1OOUBmUf9a95grpo3XHA4lWHAPGdsdmhQcc0TW72XqRk5QTlCGXuQjO29qLFhEoSO0KueX87SjkhVnwpSXtaSm4a8izSqHNM2i2W2IFPvousvAj8H6IuW9cvSFR9a+/H0A+T+7cWIi0XYKUiX766OSZfsWV2RjeiijQ1pdgWy/WGgRe7rKZlo4jVt4wg9VzyAOmTdcENDI4XqZIuIOix1tJ1T1KXbUbvCJX9a74NxH9uvm0bMux+L5GeWgUpyla59l32xWqEOvPjZLskFgnK5G+W+YTcDXKd29fEaKUvL0wUhpPtpyAuy5MorT1AM2gdp8Jv2IbuurhI6XLodBGmW1qejjzACBwEaPHf8gXwg3heoFkirByRAWsHzq2YBntmlyPNVY4sIuGpfEstcQQbjtcoLCEay1X5KC1f/zjNsB0dANEaI9svhJLejdkuhwAnW6jUHEXYkyT21WPUFgFE8rpisj6rcWu1x14oUHKPFynIq5tkFJEt3dVa134cjVRcvEDjYzvojPVH6CjaWwLA69q/ti5vzKezIMeFoKaTVHADoAbFLAOVKs8s/dWKWmjd6UzGCVre0xfqEHXkz2Wr+hOE3U9vcTs2AExue++5oDFWfgDyNS1viHwBC34AoIBoFii+15Di9Qdj1DyWi+IxFE//QMewHXsAtO2/+5TGYbkagp7kLlCvJTSV9/JuvF+V1GfgFKN5vLoPGt9Dx7jNDgDadt13XIPHz8fROxE0FhrxJ3sDRBfwWttBMUjGYOpPUv/iJ4g/PEaz0GYPgMltZMvKhjSXSy70/xBQVVQvwRhepGWnvThbgs+1uTbX5tpcm2tE/wPJ2jzt/ghtYQAAAABJRU5ErkJggg==",className:"w-[20px] h-[20px] min-w-[20px]"})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[L&&(0,a.jsx)(Np,{accountSummaries:k,nft:E}),!1===P&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(E.uuid,"-view-only-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem",zIndex:10}}),(0,a.jsx)(Wn,{"data-tooltip-id":"".concat(E.uuid,"-view-only-tooltip"),"data-tooltip-content":"This profile has view-only access to this item","data-tooltip-place":"right"})]})]})]}),null!==E&&void 0!==E&&null!==(f=E.card)&&void 0!==f&&f.additionalDetails?(0,a.jsxs)(a.Fragment,{children:[null!==E&&void 0!==E&&null!==(m=E.card)&&void 0!==m&&m.additionalDetails?null===E||void 0===E||null===(g=E.card)||void 0===g||null===(v=g.additionalDetails)||void 0===v?void 0:v.map((e=>(0,a.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4 truncate",children:(0,a.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e})},e))):(0,a.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"}),(null===E||void 0===E||null===(y=E.card)||void 0===y?void 0:y.additionalDetails)&&1===(null===E||void 0===E||null===(b=E.card)||void 0===b?void 0:b.additionalDetails.length)&&(0,a.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4 truncate",children:(null===E||void 0===E||null===(w=E.card)||void 0===w?void 0:w.headerTraits)&&(null===E||void 0===E||null===(x=E.card)||void 0===x||null===(C=x.headerTraits)||void 0===C?void 0:C.map((e=>(0,a.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e.value},e.displayType))))}),(0,a.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})]})]}),(0,a.jsxs)("div",{className:"relative sm:w-full",children:[(0,a.jsx)(Fp,{listingType:_}),(0,a.jsx)("div",{className:"flex flex-row absolute top-7 md:top-16 left-1 md:left-2 z-20",children:(0,a.jsx)(Sp,{specialTsTraits:V})}),z]})]}),(0,a.jsx)("div",{className:"min-h-[10rem]",children:A})]})},Rp=e=>{let{onClick:t}=e;return(0,a.jsx)("svg",{onClick:t,className:"w-[2rem] h-[2rem] flex-shrink-0 cursor-pointer",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5313 26.7314C14.9065 27.3563 13.8934 27.3563 13.2686 26.7314L3.66858 17.1314C3.04374 16.5066 3.04374 15.4935 3.66858 14.8687L13.2686 5.26868C13.8934 4.64384 14.9065 4.64384 15.5313 5.26868C16.1562 5.89352 16.1562 6.90658 15.5313 7.53142L8.66269 14.4H27.2C28.0836 14.4 28.8 15.1164 28.8 16C28.8 16.8837 28.0836 17.6 27.2 17.6L8.66269 17.6L15.5313 24.4687C16.1562 25.0935 16.1562 26.1066 15.5313 26.7314Z",fill:"#F8F9FA"})})};var Op=n(20390);const jp=e=>{let{blockTimestamp:t,listingType:n}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("div",{className:"flex p-1 text-[#6C757D] text-sm h-[25px]",children:"Listing created on ".concat((0,Op.default)("fundRental"===n||"rental"===n?1e3*t:t,"dd MMM yyyy"))})," "]}):null},Mp=e=>{let{listingType:t,nftName:n,isPurchase:r,hasProvider:o,isDelist:s,isLostAndFound:l}=e;const c=(0,i.useMemo)((()=>{if(l)return"Claim Item -";let e="";return e=r?"purchase"===t?"Buy Now -":"fundLoan"===t?"Loan -":"fundRental"===t?"Rental -":"makeOffer"===t?"Make Offer -":"cancelOffer"===t?"Cancel Offer -":"loanBorrower"===t?"Repay Loan -":"rentalBorrower"===t?"Return Rental -":"".concat(n):o?s?"Delist -":"storefront"===t?"New Sale Listing -":"rental"===t?"New Rental Listing -":"transfer"===t?"Transfer -":"loan"===t?"New Loan Listing -":"view-only"===t?"View Only -":"acceptOffer"===t?"Accept Offer -":"":"View Only -",e}),[t,r,n,s,o]);return(0,a.jsxs)("p",{className:"text-lg md:text-2xl leading-6 text-white font-black",children:[c," ",(0,a.jsx)("span",{className:"text-neutral-500 text-lg md:text-2xl",children:n})]})},Lp=e=>{let{closeBtnProps:t,confirmBtnProps:n}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-center lg:justify-end gap-6 md:px-[40px]",children:[!(null!==t&&void 0!==t&&t.notDisplay)&&(0,a.jsx)(s,{text:(null===t||void 0===t?void 0:t.text)||"",onClick:null===t||void 0===t?void 0:t.onClick,variant:"secondary",btnSize:"small",disabled:null===t||void 0===t?void 0:t.disabled,bgColor:null===t||void 0===t?void 0:t.bgColor}),!(null!==n&&void 0!==n&&n.notDisplay)&&(0,a.jsx)(s,{text:(null===n||void 0===n?void 0:n.text)||"",onClick:null===n||void 0===n?void 0:n.onClick,variant:"secondary",btnSize:"small",disabled:null===n||void 0===n?void 0:n.disabled,bgColor:null===n||void 0===n?void 0:n.bgColor})]})})},Bp=()=>(0,a.jsx)("div",{className:"rounded flex items-center gap-1 border px-[6px] py-[4px] bg-[#69FFC03D] border-[#69FFC085]",children:(0,a.jsx)("p",{className:"text-[10px] font-[600] leading-none text-[#69FFC0CC]",children:"CLAIMABLE"})});var Up;function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(null,arguments)}function Hp(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Vp({width:16,height:9,viewBox:"0 0 16 9",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Up||(Up=i.createElement("path",{d:"M0 8.5L16 8.5L8 0.5L0 8.5Z"})))}const zp=i.forwardRef(Hp),Wp=(n.p,e=>{let{valuationSource:t}=e;return(0,a.jsx)("div",{className:"absolute hidden group-hover:block",children:(0,a.jsxs)("div",{className:"relative right-0 -top-[9rem] bg-[#FFFFFF] rounded-md min-w-[18rem] z-10 cursor-default flex flex-col",children:[(0,a.jsxs)("div",{className:"p-3",children:[(0,a.jsx)("p",{className:"font-bold text-base mb-2 text-black",children:"Fair Market Value (FMV)"}),(0,a.jsxs)("p",{className:"text-sm text-black",children:["An estimate of an NFT's value based on"," ",(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:un(t),className:"text-sm text-primary",children:cn(t)}),". FMV is an estimate and is in no way meant to construe financial advice."]})]}),(0,a.jsx)(zp,{className:"fill-[#FFFFFF]  absolute h-6 w-6 -bottom-[10px] left-[13%] rotate-180"})]})})}),qp=e=>{var t;let{price:n,spotPriceValue:r,token:i,toolTipCustomId:o}=e;if(!i)return null;const s=i!==T.SupportedTokens.DUC&&i!==T.SupportedTokens.USDC;let l;switch(null!==(t=null===i||void 0===i?void 0:i.toLowerCase())&&void 0!==t?t:""){case"fusd":l="FUSD";break;case"flow":l="FLOW";break;case"fut":l="Dapper FLOW";break;case"usdc":l="USDC";break;case"duc":l="Dapper Balance";break;case"sloppy":case"sloppystakes":l="Sloppy Stakes";break;case"usdt":l="USDT";break;default:return null}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(o,"-").concat(i,"-").concat(n,"-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.875rem",fontWeight:500,zIndex:10}}),(0,a.jsxs)("div",{"data-tooltip-id":"".concat(o,"-").concat(i,"-").concat(n,"-tooltip"),"data-tooltip-content":l,"data-tooltip-place":"right",className:"flex flex-col ".concat(r&&s?"mt-[8px]":"justify-center"),children:[(0,a.jsxs)("div",{className:"flex items-center flex-shrink-0 w-auto justify-end gap-[0.25rem]",children:[(0,a.jsx)(Er,{token:i}),(0,a.jsx)("span",{className:"text-white font-montserrat text-[1rem] font-[700]",children:(c=n,ln(c,{shouldUseDecimals:!0}))})]}),r&&s?(0,a.jsx)("div",{className:"ml-auto text-white flex",children:(0,a.jsx)(_r,{includeParenthesis:!0,value:Number(r||0)})}):null]})]});var c},Gp=e=>{let{dapperOffer:t,nonCustodialOffer:n}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col items-end gap-2",children:[(0,a.jsx)("span",{className:"text-neutral-600 text-base font-montserrat text-right",children:"Best Offer"}),(0,a.jsxs)("div",{className:"flex flex-col text-neutral-600",children:[n&&n.amount?(0,a.jsxs)("div",{className:"flex flex-row gap-1 items-center justify-between text-bold",children:[(0,a.jsx)("div",{className:"bg-[#ffffff2e] rounded flex items-center justify-center p-1 mx-1",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 9 11",fill:"none",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2479_1716)",children:[(0,a.jsx)("path",{d:"M4.3134 3.06307C3.37349 3.06307 2.45605 3.42549 1.7702 4.06839C1.01794 4.77374 0.54188 5.8154 0.268994 6.79528C0.090263 7.4362 0.000732422 8.10123 0.000732422 8.76693C0.000732422 8.96813 0.0089917 9.16767 0.0248495 9.3649C0.0443414 9.60475 0.277914 9.77093 0.510495 9.70816C0.713343 9.65365 0.926762 9.62424 1.14679 9.62424C1.59874 9.62424 2.02227 9.74714 2.38535 9.96188C2.39427 9.96717 2.40286 9.97245 2.41178 9.97741C3.00182 10.3293 3.69791 10.5225 4.44026 10.4977C6.37656 10.4337 7.95838 8.85811 8.02974 6.92214C8.10771 4.80413 6.41422 3.06274 4.31373 3.06274L4.3134 3.06307ZM4.3134 8.48083C3.37481 8.48083 2.61397 7.71998 2.61397 6.78173C2.61397 5.84348 3.37481 5.0823 4.3134 5.0823C5.25198 5.0823 6.01282 5.84315 6.01282 6.78173C6.01282 7.72031 5.25198 8.48083 4.3134 8.48083Z",fill:"#14AAFF"}),(0,a.jsx)("path",{d:"M2.78437 1.89218C2.78437 2.38212 2.52767 2.83671 2.10612 3.08647C1.84149 3.2434 1.59338 3.42874 1.36873 3.63985C0.870197 4.10699 0.498199 4.68018 0.22267 5.24842C0.168159 5.36009 0 5.32044 0 5.19622V1.89218C0 1.12341 0.62341 0.5 1.39218 0.5C2.16096 0.5 2.78437 1.12341 2.78437 1.89218Z",fill:"#0077FF"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2479_1716",children:(0,a.jsx)("rect",{width:"8.03198",height:"10",fill:"white",transform:"translate(0 0.5)"})})})]})}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(qp,{price:(null===n||void 0===n?void 0:n.amount)||0,token:null===n||void 0===n?void 0:n.paymentTokenName,toolTipCustomId:"make-offer-nonCustodial"})})]}):(0,a.jsxs)("div",{className:"flex flex-row gap-1 items-center justify-between text-bold",children:[(0,a.jsx)("div",{className:"bg-[#ffffff2e] rounded flex items-center justify-center p-1 mx-1",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 9 11",fill:"none",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2479_1716)",children:[(0,a.jsx)("path",{d:"M4.3134 3.06307C3.37349 3.06307 2.45605 3.42549 1.7702 4.06839C1.01794 4.77374 0.54188 5.8154 0.268994 6.79528C0.090263 7.4362 0.000732422 8.10123 0.000732422 8.76693C0.000732422 8.96813 0.0089917 9.16767 0.0248495 9.3649C0.0443414 9.60475 0.277914 9.77093 0.510495 9.70816C0.713343 9.65365 0.926762 9.62424 1.14679 9.62424C1.59874 9.62424 2.02227 9.74714 2.38535 9.96188C2.39427 9.96717 2.40286 9.97245 2.41178 9.97741C3.00182 10.3293 3.69791 10.5225 4.44026 10.4977C6.37656 10.4337 7.95838 8.85811 8.02974 6.92214C8.10771 4.80413 6.41422 3.06274 4.31373 3.06274L4.3134 3.06307ZM4.3134 8.48083C3.37481 8.48083 2.61397 7.71998 2.61397 6.78173C2.61397 5.84348 3.37481 5.0823 4.3134 5.0823C5.25198 5.0823 6.01282 5.84315 6.01282 6.78173C6.01282 7.72031 5.25198 8.48083 4.3134 8.48083Z",fill:"#14AAFF"}),(0,a.jsx)("path",{d:"M2.78437 1.89218C2.78437 2.38212 2.52767 2.83671 2.10612 3.08647C1.84149 3.2434 1.59338 3.42874 1.36873 3.63985C0.870197 4.10699 0.498199 4.68018 0.22267 5.24842C0.168159 5.36009 0 5.32044 0 5.19622V1.89218C0 1.12341 0.62341 0.5 1.39218 0.5C2.16096 0.5 2.78437 1.12341 2.78437 1.89218Z",fill:"#0077FF"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2479_1716",children:(0,a.jsx)("rect",{width:"8.03198",height:"10",fill:"white",transform:"translate(0 0.5)"})})})]})}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"nft-price d-flex align-items-center justify-end small ",children:(0,a.jsx)("div",{className:"text-neutral-600 text-bold text-base font-montserrat d-inline-block ms-1 text-end",children:"-"})})})]}),t&&t.amount?(0,a.jsxs)("div",{className:"flex flex-row gap-1 items-center justify-between text-bold mt-1",children:[(0,a.jsx)("div",{className:"bg-[#ffffff2e] rounded flex items-center justify-center p-1 mx-1",children:(0,a.jsx)("img",{src:(0,T.getProviderImage)("dapper"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(qp,{price:(null===t||void 0===t?void 0:t.amount)||0,token:null===t||void 0===t?void 0:t.paymentTokenName,toolTipCustomId:"make-offer-dapper"})})]}):(0,a.jsxs)("div",{className:"flex flex-row gap-1 items-center justify-between text-bold mt-1",children:[(0,a.jsx)("div",{className:"bg-[#ffffff2e] rounded flex items-center justify-center p-1 mx-1",children:(0,a.jsx)("img",{src:(0,T.getProviderImage)("dapper"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"nft-price d-flex align-items-center justify-end small ",children:(0,a.jsx)("div",{className:"text-neutral-600 text-bold text-base font-montserrat d-inline-block ms-1 text-end",children:"-"})})})]})]})]})})},Yp=()=>(0,a.jsx)("div",{className:"w-full h-[9.3rem] bg-gray-400 animate-pulse  cursor-wait rounded-md"}),Kp=e=>{let{dapperOffer:t,isLoading:n,isLoadingValuation:r,nonCustodialOffer:i,purchaseOrder:o,valuationData:s}=e;const l=dn(s.source);return(0,a.jsx)("div",{className:"h-full flex flex-col justify-between",children:n?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-start border-gradient mb-3",children:[(0,a.jsx)("p",{className:"text-white text-[14px] leading-6 mb-2 font-normal",children:"Purchase Price"}),(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:o?(0,a.jsx)(Sr,{price:(null===o||void 0===o?void 0:o.salePrice)||0,token:(null===o||void 0===o?void 0:o.paymentTokenName)||T.SupportedTokens.FLOW,toolTipCustomId:"purchase-price-tooltip"}):"-"})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[r?(0,a.jsx)("div",{className:"w-[87px] h-[56px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(a.Fragment,{children:null!==s&&void 0!==s&&s.usdValue&&s.usdValue>0?(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start h-24 relative group",children:[(0,a.jsx)("div",{className:"text-neutral-900 text-[12px] font-montserrat font-normal",children:"3rd Party FMV"}),(0,a.jsx)("div",{className:"self-center text-end py-1 w-full",children:(0,a.jsxs)("span",{className:"text-neutral-600 font-medium text-base font-montserrat w-full flex justify-start",children:["$",ln(s.usdValue,{shouldUseDecimals:!0})]})}),(0,a.jsx)(Wp,{valuationSource:l})]}):(0,a.jsx)("div",{})}),(0,a.jsx)(Gp,{dapperOffer:t,nonCustodialOffer:i})]})]})})},Qp=e=>{let{dapperOffer:t,nonCustodialOffer:n,isLoading:r,valuationData:i,offer:o,isLoadingValuation:s}=e;const l=dn(i.source);return(0,a.jsx)("div",{className:"h-full flex flex-col justify-between",children:r?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-start border-gradient mb-3",children:[(0,a.jsx)("p",{className:"text-white text-[14px] leading-6 mb-2 font-normal",children:"Offer Price"}),(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:null!==o&&void 0!==o&&o.amount?(0,a.jsx)(Sr,{price:null===o||void 0===o?void 0:o.amount,token:null===o||void 0===o?void 0:o.paymentTokenName,toolTipCustomId:"cancel-offer-price-tooltip"}):"-"})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[s?(0,a.jsx)("div",{className:"w-[87px] h-[56px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(a.Fragment,{children:null!==i&&void 0!==i&&i.usdValue&&i.usdValue>0?(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start h-24 relative group",children:[(0,a.jsx)("div",{className:"text-neutral-900 text-[12px] font-montserrat font-normal",children:"3rd Party FMV"}),(0,a.jsx)("div",{className:"self-center text-end py-1 w-full",children:(0,a.jsxs)("span",{className:"text-neutral-600 font-medium text-base font-montserrat w-full flex justify-start",children:["$",ln(i.usdValue,{shouldUseDecimals:!0})]})}),(0,a.jsx)(Wp,{valuationSource:l})]}):(0,a.jsx)("div",{})}),(0,a.jsx)(Gp,{dapperOffer:t,nonCustodialOffer:n})]})]})})},Xp=e=>{var t,n,r,i;let{isLoading:o,order:s}=e;const l=(e,t)=>{const n=new Date(1e3*e),r=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long"}).format(n),i=new Intl.DateTimeFormat("en-US",{hour:"2-digit",hour12:!0,minute:"2-digit"}).format(n);return t?r:"".concat(r,", ").concat(i)};return(0,a.jsx)("div",{className:"h-[10rem] flex flex-col justify-between",children:o?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-[#AAAAAA] leading-6 text-base font-montserrat font-normal",children:"loan"===s.type?"Loan":"Rental Fee"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"self-center text-bold text-base font-montserrat",children:(0,a.jsx)(Sr,{price:"loan"===s.type?null!==(t=null===s||void 0===s?void 0:s.loanAmount)&&void 0!==t?t:0:null!==(n=s.rentalFee)&&void 0!==n?n:0,token:null===s||void 0===s?void 0:s.paymentTokenName,toolTipCustomId:"loanRental-price-tooltip"})})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-[#AAAAAA] leading-6 text-base font-montserrat font-normal",children:"loan"===s.type?"Repayment":"Deposit"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-bold text-base font-montserrat",children:(0,a.jsx)(Sr,{price:"loan"===s.type?null!==(r=null===s||void 0===s?void 0:s.repaymentDue)&&void 0!==r?r:0:null!==(i=s.rentalRefundableDeposit)&&void 0!==i?i:0,token:null===s||void 0===s?void 0:s.paymentTokenName,toolTipCustomId:"loanRental-repayment-price-tooltip"})})})]}),(0,a.jsx)("div",{className:"my-1 border-gradient"}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-[#AAAAAA] leading-6 text-base font-montserrat font-normal",children:"loan"===s.type?"Funded":"Rented"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"font-bold text-white text-base font-montserrat",children:l(+s.settleDeadline-s.term,!0)})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-[#AAAAAA] leading-6 text-base font-montserrat font-normal",children:"Due"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"font-bold text-white text-base font-montserrat",children:l(+s.settleDeadline)})})]})]})})},Zp=e=>{var t,n,r,i,o,s,c,u,d,p;let{isLoading:h,order:f,blendedLTV:m}=e;const{royaltyRate:g}=Ln(),[v]=(0,l.Mt)({name:"amountToBorrow"}),[y]=(0,l.Mt)({name:"amountToRepay"}),b=y.value-v.value,w=b>0?T.FLOWTY_INTEREST_FEE*b:0,x=(g||0)*v.value,C=Number(v.value)+(x+w),A=(Number(y.value)+x)/C-1,E=m||100*Number(null===f||void 0===f||null===(t=f.valuations)||void 0===t||null===(n=t.aggregate)||void 0===n?void 0:n.loanToValueRatio);return(0,a.jsx)("div",{className:"h-[10rem] flex flex-col justify-between",children:h?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-center ",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-white leading-6 text-base font-montserrat font-normal",children:"Loan Amount"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:null!==f&&void 0!==f&&null!==(r=f.derivations)&&void 0!==r&&null!==(i=r.calculatedValues)&&void 0!==i&&i.marketplaceAmount&&0!=(null===f||void 0===f||null===(o=f.derivations)||void 0===o||null===(s=o.calculatedValues)||void 0===s?void 0:s.marketplaceAmount)?(0,a.jsx)(Sr,{price:null===f||void 0===f||null===(c=f.derivations)||void 0===c||null===(u=c.calculatedValues)||void 0===u?void 0:u.marketplaceAmount,token:null===f||void 0===f?void 0:f.paymentTokenName,toolTipCustomId:"loan-amount-tooltip"}):"-"})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center ",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-white text-base font-montserrat font-normal",children:"APR"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 font-medium text-base font-montserrat",children:null!==f&&void 0!==f&&f.term||y.value&&v.value&&f.term?"".concat(an()((0,T.calcAPRInterest)(null!==y&&void 0!==y&&y.value?Number(A):Number(null===f||void 0===f||null===(d=f.derivations)||void 0===d||null===(p=d.calculatedValues)||void 0===p?void 0:p.periodicInterest),f?"LISTED"===f.state?Number(f.term):Number(f.term)*T.ONE_DAY_IN_SECONDS:0)).format("0,0.00"),"% "):"-"})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("div",{className:"text-white text-base font-montserrat font-normal",children:"Duration"}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 font-medium text-base font-montserrat",children:null!==f&&void 0!==f&&f.term?sn("LISTED"===f.state?Number(f.term):Number(f.term)*T.ONE_DAY_IN_SECONDS):"-"})})]}),(0,a.jsx)("div",{className:"my-1 border-gradient"}),(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)("div",{className:"text-neutral-500 text-base font-montserrat font-normal",children:"Blended LTV"}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 font-medium text-base font-montserrat",children:E?"".concat(an()(E).format("0,0.0"),"%"):"-"})})]})]})})},Jp=e=>{let{dapperOffer:t,isLoading:n,nonCustodialOffer:r,order:o,valuationData:s,isDapper:l,isLoadingValuation:c}=e;const{spotPrice:u}=lo(),d=dn(s.source),p=(0,i.useMemo)((()=>({amount:o.offerAmount,paymentTokenName:o.paymentTokenName})),[o]),h=(0,i.useMemo)((()=>((null===r||void 0===r?void 0:r.paymentTokenName)===T.SupportedTokens.FLOW?Number(null===r||void 0===r?void 0:r.amount)*Number(null===u||void 0===u?void 0:u.value):Number(null===r||void 0===r?void 0:r.amount))>(o.paymentTokenName===T.SupportedTokens.FLOW?o.offerAmount*Number(null===u||void 0===u?void 0:u.value):o.offerAmount)),[u,o,r]);return(0,a.jsx)("div",{className:"h-full flex flex-col justify-between",children:n?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-center border-gradient mb-3",children:[(0,a.jsx)("p",{className:"text-white text-[14px] leading-6 mb-2 font-normal",children:"Purchase Price"}),(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:null!==o&&void 0!==o&&o.currentOrderSalePrice?(0,a.jsx)(Sr,{price:null===o||void 0===o?void 0:o.currentOrderSalePrice,token:(null===o||void 0===o?void 0:o.currentOrderTokenName)||T.SupportedTokens.FLOW,toolTipCustomId:"make-offer-price-tooltip"}):"-"})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[c?(0,a.jsx)("div",{className:"w-[87px] h-[56px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(a.Fragment,{children:null!==s&&void 0!==s&&s.usdValue&&s.usdValue>0?(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start h-24 relative group",children:[(0,a.jsx)("div",{className:"text-neutral-900 text-[12px] font-montserrat font-normal",children:"3rd Party FMV"}),(0,a.jsx)("div",{className:"self-center text-end py-1 w-full",children:(0,a.jsxs)("span",{className:"text-neutral-600 font-medium text-base font-montserrat w-full flex justify-start",children:["$",ln(s.usdValue,{shouldUseDecimals:!0})]})}),(0,a.jsx)(Wp,{valuationSource:d})]}):(0,a.jsx)("div",{})}),(0,a.jsx)(Gp,{dapperOffer:Boolean(l)&&p.amount>((null===t||void 0===t?void 0:t.amount)||0)?p:t,nonCustodialOffer:Boolean(l)||h?r:p})]})]})})},$p=e=>{let{isLoading:t,order:n}=e;return(0,a.jsx)("div",{className:"h-[10rem] flex flex-col justify-between",children:t?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-white leading-6 text-base font-montserrat font-normal",children:"Rental Fee"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:null!==n&&void 0!==n&&n.amount?(0,a.jsx)(Sr,{price:Number(null===n||void 0===n?void 0:n.amount),token:null===n||void 0===n?void 0:n.paymentTokenName,toolTipCustomId:"rental-fee-tooltip"}):"-"})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-white leading-6 text-base font-montserrat font-normal",children:"Refundable Deposit"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 text-bold text-base font-montserrat",children:null!==n&&void 0!==n&&n.deposit?(0,a.jsx)(Sr,{price:Number(null===n||void 0===n?void 0:n.deposit),token:null===n||void 0===n?void 0:n.paymentTokenName,toolTipCustomId:"refundable-deposit-fee-tooltip"}):"-"})})]}),(0,a.jsx)("div",{className:"my-1 border-gradient"}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-white leading-6 text-base font-montserrat font-normal",children:"Total Upfront"})}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 text-bold text-base font-montserrat",children:null!==n&&void 0!==n&&n.amount&&null!==n&&void 0!==n&&n.deposit?(0,a.jsx)(Sr,{price:Number(n.deposit)+Number(n.amount),token:null===n||void 0===n?void 0:n.paymentTokenName,toolTipCustomId:"total-upfront-tooltip"}):"-"})})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,a.jsx)("span",{className:"text-neutral-500 leading-6 text-base font-montserrat font-normal",children:"Duration"}),(0,a.jsx)("div",{className:"self-center text-end",children:(0,a.jsx)("span",{className:"text-neutral-600 leading-6 font-medium",children:null!==n&&void 0!==n&&n.term?sn("LISTED"===n.state?Number(n.term):Number(n.term)*T.ONE_DAY_IN_SECONDS):"-"})})]})]})})},eh=e=>{let{dapperOffer:t,isLoading:n,nonCustodialOffer:r,order:i,valuationData:o,isLoadingValuation:s}=e;const l=dn(o.source);return(0,a.jsx)("div",{className:"h-full flex flex-col justify-between",children:n?(0,a.jsx)(Yp,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-4 items-center border-gradient mb-3",children:[(0,a.jsx)("p",{className:"text-white text-[14px] leading-6 mb-2 font-normal",children:"Purchase Price"}),(0,a.jsx)("span",{className:"text-neutral-600 leading-6 text-bold mb-2",children:null!==i&&void 0!==i&&i.amount||null!==i&&void 0!==i&&i.salePrice?(0,a.jsx)(Sr,{price:(null===i||void 0===i?void 0:i.amount)||(null===i||void 0===i?void 0:i.salePrice),token:null===i||void 0===i?void 0:i.paymentTokenName,toolTipCustomId:"purchase-price-tooltip"}):"-"})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[s?(0,a.jsx)("div",{className:"w-[87px] h-[56px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,a.jsx)(a.Fragment,{children:null!==o&&void 0!==o&&o.usdValue&&o.usdValue>0?(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start h-24 relative group",children:[(0,a.jsx)("div",{className:"text-neutral-900 text-[12px] font-montserrat font-normal",children:"3rd Party FMV"}),(0,a.jsx)("div",{className:"self-center text-end py-1 w-full",children:(0,a.jsxs)("span",{className:"text-neutral-600 font-medium text-base font-montserrat w-full flex justify-start",children:["$",ln(o.usdValue,{shouldUseDecimals:!0})]})}),(0,a.jsx)(Wp,{valuationSource:l})]}):(0,a.jsx)("div",{})}),(0,a.jsx)(Gp,{dapperOffer:t,nonCustodialOffer:r})]})]})})},th=e=>{let{isLoading:t,isLoadingValuation:n,isDapper:r,nft:i,order:o,valuationData:s,blendedLTV:l,isTransfer:c,isLoadingOrders:u,isLostAndFound:d}=e;const p=null===o||void 0===o?void 0:o.listingKind;if(c)return null;if(d)return(0,a.jsx)("div",{className:"w-full h-[10rem] flex items-center justify-center",children:(0,a.jsx)(Bp,{})});switch(p){case"storefront":return(0,a.jsx)(eh,{isLoading:t,isLoadingValuation:n,order:o,nonCustodialOffer:null===i||void 0===i?void 0:i.bestNonCustodialOffer,dapperOffer:null===i||void 0===i?void 0:i.bestDapperOffer,valuationData:s});case"acceptOffer":return(0,a.jsx)(Kp,{isLoading:t,isLoadingValuation:n,purchaseOrder:o.purchaseOrder,nonCustodialOffer:null===i||void 0===i?void 0:i.bestNonCustodialOffer,dapperOffer:null===i||void 0===i?void 0:i.bestDapperOffer,valuationData:s});case"makeOffer":return(0,a.jsx)(Jp,{isDapper:r,isLoading:t,isLoadingValuation:n,order:o,nonCustodialOffer:null===i||void 0===i?void 0:i.bestNonCustodialOffer,dapperOffer:null===i||void 0===i?void 0:i.bestDapperOffer,valuationData:s});case"cancelOffer":return(0,a.jsx)(Qp,{isLoadingValuation:n,nonCustodialOffer:null===i||void 0===i?void 0:i.bestNonCustodialOffer,dapperOffer:null===i||void 0===i?void 0:i.bestDapperOffer,isLoading:t,offer:o,valuationData:s});case"loan":return(0,a.jsx)(Zp,{order:o,isLoading:t,blendedLTV:l});case"rental":return(0,a.jsx)($p,{order:o,isLoading:t});case"loanBorrower":case"rentalBorrower":return(0,a.jsx)(Xp,{order:o,isLoading:t});default:return u?(0,a.jsx)("div",{className:"h-[10rem] flex justify-center items-center",children:(0,a.jsx)("div",{className:"w-full h-full mt-4 animate-pulse bg-[#edf3f60a] rounded-lg"})}):(0,a.jsx)("div",{className:"h-[10rem] flex justify-center items-center",children:(0,a.jsx)("p",{className:"text-sm font-normal text-[#ADB5BD]",children:"No Listing Available"})})}},nh=e=>{var t;let{isOpen:n,isDapper:r,isLostAndFound:o,collectionImage:s,blendedLTV:l,openSearchFlowNFT:c,hasProvider:u,orderContent:d,isPurchase:p=!1,valuationData:h,onCloseModal:f,listingType:m,resetModal:g,closeBtnProps:v,confirmBtnProps:y,orderData:b,isLoadingMakeOffer:w,isLoadingOrders:x,sealedMakeOffer:C,isSingleOffer:A,isDelist:E,isLoadingValuation:_,isMainnet:S,mixPanelFn:k}=e;const P=p?"flex-col lg:flex-row-reverse lg:justify-start":"flex-col lg:flex-row",D=p?"lg:border-l":"lg:border-r",[F,N]=(0,i.useState)(!1),I=()=>N(!1),R=(0,T.nftTypeAndIdToLocationData)(c.type,c.id);return(0,a.jsx)(dp.e,{appear:!0,show:n,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",onClose:f,children:[(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{"data-testid":"flowty-listing-modal",className:"fixed max-md:h-full max-md:overflow-hidden inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center text-center",children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"modal-height transform md:rounded-xl bg-[#04070B] text-left align-middle shadow-xl transition-all w-full md:w-[33rem] lg:w-[65rem] max-md:min-h-[100svh] max-md:h-[100svh] md:border border-[#495057] max-md:flex max-md:flex-col",children:[(0,a.jsxs)(pp.l.Title,{as:"div",className:"border-b border-[#495057] px-[40px] py-[21px] md:py-8 w-full flex justify-between items-center",children:[(0,a.jsxs)("div",{className:"flex items-center gap-[24px]",children:["makeOffer"===m&&!A&&!w&&!C&&(0,a.jsx)(Rp,{onClick:()=>g&&g()}),(0,a.jsx)(Mp,{listingType:m,nftName:(null===c||void 0===c||null===(t=c.card)||void 0===t?void 0:t.title)||"",isPurchase:p,hasProvider:u,isDelist:E,isLostAndFound:o})]}),(0,a.jsx)(hp.A,{"data-testid":"close-modal-icon",onClick:f,className:"w-6 h-6 md:h-8 md:w-8 cursor-pointer fill-white"})]}),(0,a.jsxs)("div",{className:"flex ".concat(P," w-full max-md:flex-grow max-md:overflow-y-scroll max-md:overflow-x-hidden"),children:[(0,a.jsx)("div",{className:"w-full md:h-auto ".concat(D," border-[#495057] flex-col flex px-[40px] py-[24px] items-center"),children:(0,a.jsx)("div",{className:"flex w-full h-full flex-col",children:d})}),(0,a.jsxs)("div",{className:"w-full bg-[#04070B] ".concat(null!==b&&void 0!==b&&b.blockTimestamp||x&&"makeOffer"!==m?"px-[40px] md:px-[24px] pt-[24px] pb-0 md:pt-[21px] md:pb-0 min-w-[0px]":"px-[40px] md:px-[24px] py-[24px] md:pt-[21px] md:pb-[25px]"," md:px-[40px] flex justify-center items-center flex-col"),children:[(0,a.jsxs)("div",{className:"flex justify-between items-center w-full pb-4",children:[(0,a.jsx)("span",{className:"text-[16px] font-montserrat font-semibold text-neutral-500",children:"transfer"===m||"lostAndFound"===m?"NFT Preview":p?"Listing":"Listing Preview"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(Tr.m_,{id:"copyUrl",style:{backgroundColor:"#F8F9FA",color:"#04070B",zIndex:50},className:"text-sm font-medium"}),(0,a.jsx)("div",{"data-tooltip-id":"copyUrl","data-tooltip-content":"Copy URL","data-tooltip-place":"bottom",onClick:()=>{navigator.clipboard.writeText("".concat(window.location.origin,"/asset/").concat(R.contract.address,"/").concat(R.contract.name,"/").concat(R.resourceName,"/").concat(R.nftID)),N(!0),setTimeout(I,3e3)},className:"p-2 ".concat("border-[#7C7C7C]"," border-[0.3px] border-opacity-80 rounded bg-[#FFFFFF14] hover:bg-[#ffffff33] cursor-pointer"),children:F?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-[16px] h-[16px] text-primary",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"})}):(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("path",{d:"M10.0687 3.6686C10.6936 3.04377 11.7066 3.04377 12.3315 3.6686C12.9563 4.29344 12.9563 5.30651 12.3315 5.93135L9.93145 8.33135C9.30661 8.95619 8.29355 8.95619 7.66871 8.33135C7.35629 8.01893 6.84976 8.01893 6.53734 8.33135C6.22492 8.64377 6.22492 9.1503 6.53734 9.46272C7.78702 10.7124 9.81315 10.7124 11.0628 9.46272L13.4628 7.06272C14.7125 5.81304 14.7125 3.78691 13.4628 2.53723C12.2131 1.28756 10.187 1.28756 8.93734 2.53723L7.73734 3.73723C7.42492 4.04965 7.42492 4.55619 7.73734 4.8686C8.04976 5.18102 8.55629 5.18102 8.86871 4.8686L10.0687 3.6686Z",fill:"#F8F9FA"}),(0,a.jsx)("path",{d:"M6.06873 7.6686C6.69356 7.04377 7.70663 7.04377 8.33147 7.6686C8.64389 7.98102 9.15042 7.98102 9.46284 7.6686C9.77526 7.35618 9.77526 6.84965 9.46284 6.53723C8.21316 5.28756 6.18703 5.28756 4.93736 6.53723L2.53736 8.93723C1.28768 10.1869 1.28768 12.213 2.53736 13.4627C3.78703 14.7124 5.81316 14.7124 7.06284 13.4627L8.26284 12.2627C8.57526 11.9503 8.57526 11.4438 8.26284 11.1313C7.95042 10.8189 7.44389 10.8189 7.13147 11.1313L5.93147 12.3313C5.30663 12.9562 4.29357 12.9562 3.66873 12.3313C3.04389 11.7065 3.04389 10.6934 3.66873 10.0686L6.06873 7.6686Z",fill:"#F8F9FA"})]})}),(0,a.jsxs)("a",{target:"_blank",rel:"noreferrer",href:"/asset/".concat(R.contract.address,"/").concat(R.contract.name,"/").concat(R.resourceName,"/").concat(R.nftID),children:[(0,a.jsx)(Tr.m_,{id:"moreInfo",style:{backgroundColor:"#F8F9FA",color:"#04070B",zIndex:50},className:"text-sm font-medium"}),(0,a.jsx)("div",{"data-tooltip-id":"moreInfo","data-tooltip-content":"More Info","data-tooltip-place":"bottom",className:"p-2 border-[0.3px] border-[#7C7C7C] border-opacity-80 rounded bg-[#FFFFFF14] hover:bg-[#ffffff33] cursor-pointer",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("path",{d:"M8.0001 1.59998C7.55827 1.59998 7.2001 1.95815 7.2001 2.39998V3.19998C7.2001 3.6418 7.55827 3.99998 8.0001 3.99998C8.44192 3.99998 8.8001 3.6418 8.8001 3.19998V2.39998C8.8001 1.95815 8.44192 1.59998 8.0001 1.59998Z",fill:"#F8F9FA"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.2001 3.19998H5.6001C5.6001 4.52546 6.67461 5.59998 8.0001 5.59998C9.32558 5.59998 10.4001 4.52546 10.4001 3.19998H12.8001C13.6838 3.19998 14.4001 3.91632 14.4001 4.79998V12C14.4001 12.8836 13.6838 13.6 12.8001 13.6H3.2001C2.31644 13.6 1.6001 12.8836 1.6001 12V4.79998C1.6001 3.91632 2.31644 3.19998 3.2001 3.19998ZM5.2001 8.79998C5.86284 8.79998 6.4001 8.26272 6.4001 7.59998C6.4001 6.93723 5.86284 6.39998 5.2001 6.39998C4.53736 6.39998 4.0001 6.93723 4.0001 7.59998C4.0001 8.26272 4.53736 8.79998 5.2001 8.79998ZM7.16048 12C7.18672 11.8707 7.20049 11.737 7.20049 11.6C7.20049 10.4954 6.30506 9.59998 5.20049 9.59998C4.09592 9.59998 3.20049 10.4954 3.20049 11.6C3.20049 11.737 3.21426 11.8707 3.2405 12H7.16048ZM9.6001 7.19998C9.15827 7.19998 8.8001 7.55815 8.8001 7.99998C8.8001 8.4418 9.15827 8.79998 9.6001 8.79998H12.0001C12.4419 8.79998 12.8001 8.4418 12.8001 7.99998C12.8001 7.55815 12.4419 7.19998 12.0001 7.19998H9.6001ZM8.8001 10.4C8.8001 9.95815 9.15827 9.59998 9.6001 9.59998H11.2001C11.6419 9.59998 12.0001 9.95815 12.0001 10.4C12.0001 10.8418 11.6419 11.2 11.2001 11.2H9.6001C9.15827 11.2 8.8001 10.8418 8.8001 10.4Z",fill:"#F8F9FA"})]})})]})]})]}),(0,a.jsx)(Ip,{collectionImage:s,listingType:m,nft:c,valuationData:h,hasProvider:u,isMainnet:S,mixPanelFn:k,children:(0,a.jsx)(th,{isLostAndFound:o,isTransfer:"transfer"===m,isDapper:r,order:b,isLoading:!1,nft:c,valuationData:h,blendedLTV:l,isLoadingValuation:_,isLoadingOrders:x})}),x&&"makeOffer"!==m?(0,a.jsx)("div",{className:"flex p-1 text-[#6C757D] text-sm h-[25px]",children:(0,a.jsx)("div",{className:"w-[200px] h-[18px] animate-pulse bg-[#edf3f60a] rounded-lg"})}):(0,a.jsx)(a.Fragment,{children:(null===b||void 0===b?void 0:b.blockTimestamp)&&!x&&(0,a.jsx)(jp,{blockTimestamp:Number(null===b||void 0===b?void 0:b.blockTimestamp),listingType:m})})]})]}),(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row w-full items-center justify-between gap-[24px] md:gap-6 px-[40px] md:px-0 py-8 border-t border-[#495057]",children:[(0,a.jsxs)("div",{className:"w-auto hidden lg:flex gap-2 items-center lg:pl-[40px]",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] font-medium text-[16px]",children:"Need Help?"}),(0,a.jsx)("a",{href:"https://discord.gg/Fpv5sDnHWS",target:"_blank",rel:"noreferrer",className:"text-white text-[16px] font-semibold underline cursor-pointer",children:"Contact Us"})]}),(0,a.jsx)("div",{className:"w-full ".concat(p?"md:w-[480px]":"md:w-[429px]"," "),children:(0,a.jsx)(Lp,{closeBtnProps:v,confirmBtnProps:y})})]})]})})})})]})})},rh=e=>{let{isOpen:t,openSearchFlowNFT:n,hasProvider:r,orderContent:i,mixPanelFn:o}=e;const{blendedLTV:s,valuationData:l,onCloseModal:c,listingType:u,closeBtnProps:d,confirmBtnProps:p,orderData:h,singleAction:f,collectionImage:m,isDelist:g,isDapper:v,isLoadingValuation:y,isMainnet:b}=Ln();return(0,a.jsx)(nh,{collectionImage:m,isDelist:Boolean(f)||g.sale||g.loan||g.rent,blendedLTV:s,isOpen:t,openSearchFlowNFT:n,hasProvider:r,valuationData:l,onCloseModal:c,listingType:u,closeBtnProps:d,confirmBtnProps:p,orderData:h,orderContent:i,isDapper:v,isLoadingValuation:y,mixPanelFn:o,isMainnet:b})},ih=e=>{let{isOpen:t,initialListingType:n,onClose:r,accountSummaries:o,openSearchFlowNFT:s,flowNFT:c,selectedOffer:u,singleAction:d,singleOrder:p,createTransactionNotification:h,collectionDisplayName:f,nftProviderPathIdentifier:m,valuation:g,isLoadingValuation:v,hasProvider:y,collectionImage:b,spotPrice:w,strapiUrl:x,mixPanelFn:C,addressesWithCollectionPublic:A,flowty:E}=e;const _=Object.values(o||{}),S=null===_||void 0===_?void 0:_.find((e=>e.isMain)),k=(0,i.useMemo)((()=>{var e,t,n;if(s)return{loan:null===(e=s.orders)||void 0===e?void 0:e.filter((e=>"loan"===e.listingKind)),rental:null===(t=s.orders)||void 0===t?void 0:t.filter((e=>"rental"===e.listingKind)),storefront:null===(n=s.orders)||void 0===n?void 0:n.filter((e=>"storefront"===e.listingKind))}}),[s]);return(0,a.jsx)(l.l1,{initialValues:{amountToBorrow:"",amountToRepay:"",isLoadingValuation:!1,listingDuration:30,loanDuration:"",loanEnableAutoRepayment:!1,privateListingAddr:"",refundableDeposit:"",rentalDuration:"",rentalFee:"",rentalListingDuration:30,saleListingValue:"",storefrontListingDuration:30,tokenType:null!==S&&void 0!==S&&S.isDapper?T.SupportedTokens.DUC:T.SupportedTokens.USDC,transferReceiver:""},onSubmit:()=>{},validate:()=>({}),children:e=>{let{values:i,resetForm:l}=e;return(0,a.jsx)(Mn,{flowNft:c,createTransactionNotification:h,collectionDisplayName:f,nftProviderPathIdentifier:m,accountSummaries:o,addressesWithCollectionPublic:A,mainAccount:S,openSearchFlowNFT:s,nftOrders:k,selectedOffer:u,onClose:r,resetForm:l,collectionImage:null!==b&&void 0!==b?b:"",spotPrice:w,values:i,valuation:g,isLoadingValuation:v,hasProvider:y,initialListingType:n,singleAction:d,singleOrder:p,mixPanelFn:C,flowty:E,children:(0,a.jsx)(rh,{isOpen:t,openSearchFlowNFT:s,hasProvider:y,orderContent:(0,a.jsx)(lp,{openSearchFlowNFT:s,accountSummaries:o,flowty:E,strapiUrl:x}),mixPanelFn:C})})}})},oh=e=>{let{isLoanOrRental:t,isDapper:n=!1,isNonDapper:r=!1}=e;return(0,a.jsx)("div",{"data-testid":"dapper-warning-message",className:"dapper-warning bg-[#FFFFFF14] flex flex-col px-[0.75rem] py-[0.5rem] self-stretch rounded-[0.5rem]",children:(0,a.jsxs)("div",{className:"flex items-center gap-[0.5rem] self-stretch text-warning font-montserrat text-[0.75rem] font-[400] leading-[0.75rem]",children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43123 2.78899C8.11938 1.56562 9.88075 1.56562 10.5689 2.78899L15.5912 11.7175C16.2661 12.9174 15.399 14.3999 14.0223 14.3999H3.97779C2.6011 14.3999 1.73402 12.9174 2.40896 11.7175L7.43123 2.78899ZM9.89999 11.7C9.89999 12.1971 9.49704 12.6 8.99999 12.6C8.50293 12.6 8.09999 12.1971 8.09999 11.7C8.09999 11.203 8.50293 10.8 8.99999 10.8C9.49704 10.8 9.89999 11.203 9.89999 11.7ZM8.99999 4.50005C8.50293 4.50005 8.09999 4.90299 8.09999 5.40005V8.10005C8.09999 8.59711 8.50293 9.00005 8.99999 9.00005C9.49704 9.00005 9.89999 8.59711 9.89999 8.10005V5.40005C9.89999 4.90299 9.49704 4.50005 8.99999 4.50005Z",fill:"#FF6E25"})}),t?(0,a.jsxs)("span",{className:"w-fit",children:["Loans and Rentals are not supported on Dapper Wallet. Please connect with a non-Dapper Wallet to use those features. For more information on Wallets, see our"," ",(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",className:"underline",href:"https://docs.flowty.io/reference/general-platform/supported-crypto-wallets",children:"supported wallets FAQ"}),"."]}):(0,a.jsxs)("span",{className:"w-fit","data-testid":"warning-wallet-message",children:["A ",n&&"non-Dapper",r&&"Dapper"," Wallet with sufficient funds is required to proceed with this transaction. Learn more"," ",(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",className:"underline",href:"https://docs.flowty.io/reference/general-platform/supported-crypto-wallets",children:"here"}),"."]})]})})},ah=e=>{let{listings:t,selectedListing:n,updateSelectedOrder:r}=e;return(0,a.jsx)(Io,{orders:t,selectedOrder:n,updateSelectedOrder:r})},sh=e=>{let{fundLoanOrders:t,selectedOrder:n,singleLoanOrder:r,updateSelectedOrder:i}=e;return(0,a.jsxs)(a.Fragment,{children:[(r||t&&1===t.length)&&(0,a.jsx)("div",{className:"flex flex-col gap-2",children:(0,a.jsx)(Ro,{listing:t?t[0]:r})}),t&&t.length>1&&(0,a.jsx)(ah,{listings:t,selectedListing:n,updateSelectedOrder:i})]})},lh=e=>{let{rentalOrders:t,singleRentalOrder:n,selectedOrder:r,updateSelectedOrder:i,isDapper:o,isPrivateListing:s}=e;return(0,a.jsxs)("div",{className:"flex flex-col justify-between h-full gap-2",children:[t&&t.length>1&&(0,a.jsx)(Io,{orders:t,selectedOrder:r,updateSelectedOrder:i}),(n||t&&1===t.length)&&(0,a.jsx)(la,{order:t?t[0]:n}),s&&(0,a.jsxs)("div",{className:"w-full flex gap-3 justify-between items-center p-5 border border-warning bg-[#ffffff1a] rounded",children:[(0,a.jsx)(Uo,{className:"w-[40px] h-[40px] text-warning"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-xs font-bold text-white",children:"Private Listing"}),(0,a.jsxs)("p",{className:"text-xs font-normal text-white",children:["This is a private listing and can only be filled by the address"," ",r.renter]})]})]}),!o&&(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-[0.75rem] justify-end items-center self-stretch",children:(0,a.jsxs)("div",{className:"text-white text-[14px] font-montserrat font-[400] flex flex-col gap-1",children:[(0,a.jsx)("span",{children:"Notes:"}),(0,a.jsxs)("ul",{className:"list-disc list-inside px-3",children:[(0,a.jsxs)("li",{className:"leading-normal list-none",children:[(0,a.jsx)("span",{className:"mr-3",children:"\u2022"}),"Failure to return the NFT(s) before the end of the rental period will lead to forfeiture of your deposit."]}),(0,a.jsxs)("li",{className:"leading-normal list-none",children:[(0,a.jsx)("span",{className:"mr-3",children:"\u2022"}),"Flowty cannot assist if there are Flowty or third-party outages or technical problems that prevent or delay transfer of the rented NFT(s) back to your account or back to the Owner."]})]})]})})]})},ch=e=>{let{storefrontOrders:t,singleStorefrontOrder:n,selectedOrder:r}=e;const{spotPrice:i,updateSelectedOrder:o,valuationData:s}=lo();return(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&t.length>1&&(0,a.jsx)(Io,{orders:t,selectedOrder:r,updateSelectedOrder:o}),(n||t&&1===t.length)&&(0,a.jsx)("div",{className:"w-full flex flex-col justify-between my-4 gap-3",children:(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Purchase Price"}),(0,a.jsx)(Sr,{token:n?n.paymentTokenName:(null===t||void 0===t?void 0:t[0].paymentTokenName)||T.SupportedTokens.FLOW,price:n?n.amount:(null===t||void 0===t?void 0:t[0].amount)||0,spotPriceValue:i?i.value*Number(n?n.amount:(null===t||void 0===t?void 0:t[0].amount)||0):void 0})]})}),null!==s&&void 0!==s&&s.percentage?(0,a.jsx)(va,{source:s.source,percent:(null===s||void 0===s?void 0:s.percentage)||0}):null]})},uh=e=>{let{royalty:t}=e;return(0,a.jsx)("div",{className:"dapper-warning bg-[#FFFFFF14] flex flex-col px-[0.75rem] py-[0.5rem] self-stretch rounded-[0.5rem]",children:(0,a.jsxs)("div",{className:"flex items-center gap-[0.5rem] self-stretch font-montserrat text-[0.75rem] font-[400] leading-[0.75rem]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1998 8.99999C16.1998 12.9764 12.9763 16.2 8.9998 16.2C5.02335 16.2 1.7998 12.9764 1.7998 8.99999C1.7998 5.02354 5.02335 1.79999 8.9998 1.79999C12.9763 1.79999 16.1998 5.02354 16.1998 8.99999ZM9.89981 5.39999C9.89981 5.89704 9.49686 6.29999 8.9998 6.29999C8.50275 6.29999 8.0998 5.89704 8.0998 5.39999C8.0998 4.90293 8.50275 4.49999 8.9998 4.49999C9.49686 4.49999 9.89981 4.90293 9.89981 5.39999ZM8.0998 8.09999C7.60275 8.09999 7.1998 8.50293 7.1998 8.99999C7.1998 9.49704 7.60275 9.89999 8.0998 9.89999V12.6C8.0998 13.097 8.50275 13.5 8.9998 13.5H9.89981C10.3969 13.5 10.7998 13.097 10.7998 12.6C10.7998 12.1029 10.3969 11.7 9.89981 11.7V8.99999C9.89981 8.50293 9.49686 8.09999 8.9998 8.09999H8.0998Z",fill:"#F8F9FA"})}),(0,a.jsxs)("span",{className:"w-fit text-[#ADB5BD] text-[12px]",children:["If you sell this NFT, there will be a ",t.toFixed(1),"% creator royalty assessed"]})]})})},dh=e=>{let{accountSummaries:t,fundLoanOrders:n,singleLoanOrder:r,rentalOrders:i,singleRentalOrder:o,storefrontOrders:s,singleStorefrontOrder:l,isDapper:c}=e;const{payWithSelectedAccount:u,sendToSelectedAccount:d,selectedOrder:p,listingType:h,updateSelectedAccount:f,hasChildAccounts:m,updateSelectedOrder:g,isPrivateListing:v,hasBalance:y,tokenProviderFilter:b,hasNftReceiver:w,dapperWalletNoOrder:x,nonDapperNoOrder:C,isLoggedUser:A,royaltyRate:E}=lo();return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-5",children:[(0,a.jsxs)("div",{className:"h-full flex flex-col gap-3",children:[m&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(en,{selected:u,setSelected:e=>f(e,"payWith"),label:"Pay With",summaries:t,listingType:"storefront",selectorFilter:b,disabledMessage:nn}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(en,{selected:d,setSelected:e=>f(e,"sendTo"),label:"Send To",summaries:t,listingType:"storefront",selectorFilter:w,disabledMessage:rn}),"fundLoan"===h?(0,a.jsx)("p",{className:"text-white text-xs",children:"Account to receive collateral (NFT) if loan is not repaid"}):(0,a.jsx)("p",{className:"h-[14px]"})]})]}),("purchase"===h||"makeOffer"===h)&&(0,a.jsx)(ch,{storefrontOrders:s,singleStorefrontOrder:l,selectedOrder:p.purchase?p.purchase:null===s||void 0===s?void 0:s[0]}),"fundLoan"===h&&(0,a.jsx)(sh,{updateSelectedOrder:g,fundLoanOrders:n,singleLoanOrder:r,selectedOrder:p.fundLoan?p.fundLoan:null===n||void 0===n?void 0:n[0]}),"fundRental"===h&&(0,a.jsx)(lh,{updateSelectedOrder:g,rentalOrders:i,singleRentalOrder:o,selectedOrder:p.fundRental?p.fundRental:null===i||void 0===i?void 0:i[0],isDapper:c,isPrivateListing:v})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[Boolean(E)&&Number(E)>0?(0,a.jsx)(uh,{royalty:Number(E)}):(0,a.jsx)(a.Fragment,{}),!1===y&&!x&&!C&&A&&(0,a.jsx)("p",{className:"w-full text-[#FF6E25] text-sm",children:"Insufficient funds to complete the transaction!"}),(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-[0.75rem] justify-end self-stretch",children:(x||C)&&(0,a.jsx)(oh,{isLoanOrRental:"fundLoan"===h||"fundRental"===h,isDapper:c,isNonDapper:C})})]})]})},ph=e=>{var t,n,r,i,o,s,l,c,u,d,p,h;let{activeTab:f,accountSummaries:m,setActiveTab:g,nftOrders:v,isDapper:y,setSelectedOrder:b}=e;return(0,a.jsx)(G,{activeTab:f,condensed:!0,tabs:[{badgeNotification:((null===v||void 0===v||null===(t=v.storefront)||void 0===t?void 0:t.length)||0)>1?null===v||void 0===v||null===(n=v.storefront)||void 0===n||null===(r=n.length)||void 0===r?void 0:r.toString():void 0,content:Boolean(0===((null===v||void 0===v||null===(i=v.storefront)||void 0===i?void 0:i.length)||0))?(0,a.jsx)("p",{className:"w-[400px] pt-[18px] text-base font-semibold text-white",children:"No Purchase Listings available"}):(0,a.jsx)(dh,{isDapper:y,storefrontOrders:null===v||void 0===v?void 0:v.storefront,accountSummaries:m}),id:"1",label:"Sale"},{badgeNotification:((null===v||void 0===v||null===(o=v.loan)||void 0===o?void 0:o.length)||0)>1?null===v||void 0===v||null===(s=v.loan)||void 0===s||null===(l=s.length)||void 0===l?void 0:l.toString():void 0,content:Boolean(0===((null===v||void 0===v||null===(c=v.loan)||void 0===c?void 0:c.length)||0))?(0,a.jsx)("p",{className:"w-[400px] pt-[18px] text-base font-semibold text-white",children:"No Loan Listings available"}):(0,a.jsx)(dh,{isDapper:y,fundLoanOrders:null===v||void 0===v?void 0:v.loan,accountSummaries:m}),id:"2",label:"Loan"},{badgeNotification:((null===v||void 0===v||null===(u=v.rental)||void 0===u?void 0:u.length)||0)>1?null===v||void 0===v||null===(d=v.rental)||void 0===d||null===(p=d.length)||void 0===p?void 0:p.toString():void 0,content:Boolean(0===((null===v||void 0===v||null===(h=v.rental)||void 0===h?void 0:h.length)||0))?(0,a.jsx)("p",{className:"w-[400px] pt-[18px] text-base font-semibold text-white",children:"No Rental Listings available"}):(0,a.jsx)(dh,{isDapper:y,rentalOrders:null===v||void 0===v?void 0:v.rental,accountSummaries:m}),id:"3",label:"Rental"}],onChange:e=>{var t,n,r;g(e),b({fundLoan:"2"===e?null===v||void 0===v||null===(t=v.loan)||void 0===t?void 0:t[0]:null,fundRental:"3"===e?null===v||void 0===v||null===(n=v.rental)||void 0===n?void 0:n[0]:null,purchase:"1"===e?null===v||void 0===v||null===(r=v.storefront)||void 0===r?void 0:r[0]:null})},type:"secondary"})},hh=e=>{let{singleListing:t,isDapper:n,accountSummaries:r}=e;return(0,a.jsx)(a.Fragment,{children:"rental"===t.listingKind?(0,a.jsx)(dh,{isDapper:n,accountSummaries:r,singleRentalOrder:t}):"storefront"===t.listingKind?(0,a.jsx)(dh,{isDapper:n,accountSummaries:r,singleStorefrontOrder:t}):(0,a.jsx)(dh,{isDapper:n,accountSummaries:r,singleLoanOrder:t})})},fh=e=>{let{text:t}=e;return(0,a.jsx)("div",{"data-testid":"modal-warning",className:"dapper-warning bg-[#FFFFFF14] flex flex-col px-[0.75rem] py-[0.5rem] self-stretch rounded-[0.5rem]",children:(0,a.jsxs)("div",{className:"flex items-center gap-[0.5rem] self-stretch text-warning font-montserrat text-[0.75rem] font-[400] leading-[0.75rem]",children:[(0,a.jsx)("div",{children:(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43123 2.78899C8.11938 1.56562 9.88075 1.56562 10.5689 2.78899L15.5912 11.7175C16.2661 12.9174 15.399 14.3999 14.0223 14.3999H3.97779C2.6011 14.3999 1.73402 12.9174 2.40896 11.7175L7.43123 2.78899ZM9.89999 11.7C9.89999 12.1971 9.49704 12.6 8.99999 12.6C8.50293 12.6 8.09999 12.1971 8.09999 11.7C8.09999 11.203 8.50293 10.8 8.99999 10.8C9.49704 10.8 9.89999 11.203 9.89999 11.7ZM8.99999 4.50005C8.50293 4.50005 8.09999 4.90299 8.09999 5.40005V8.10005C8.09999 8.59711 8.50293 9.00005 8.99999 9.00005C9.49704 9.00005 9.89999 8.59711 9.89999 8.10005V5.40005C9.89999 4.90299 9.49704 4.50005 8.99999 4.50005Z",fill:"#FF6E25"})})}),(0,a.jsx)("p",{className:"text-[10px] leading-[12px]",children:t})]})})},mh=e=>{let{spotPrice:t,offerData:n,isOrderListedByLoggedAccount:r,nftOwnerAddress:i}=e;return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-6",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-white font-montserrat",children:"Offer Price"}),(0,a.jsx)(Sr,{price:(null===n||void 0===n?void 0:n.amount)||0,token:null===n||void 0===n?void 0:n.paymentTokenName,spotPriceValue:Number(null===t||void 0===t?void 0:t.value)*((null===n||void 0===n?void 0:n.amount)||0)})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-white font-montserrat",children:"To"}),(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:"/user/".concat(i),className:"text-eletric-green-900 font-montserrat font-bold underline",children:i})]}),(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-6",children:!r&&(0,a.jsx)(fh,{text:"Offer was made while connected with\n\t\t\t\t\t".concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress," as Main. Please sign in\n\t\t\t\t\twith ").concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress," to cancel Offer.")})})]})},gh=()=>(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-[0.75rem] justify-end items-center self-stretch",children:(0,a.jsxs)("div",{className:"text-white text-[14px] font-montserrat font-[400] flex flex-col gap-3",children:["Notes:",(0,a.jsxs)("ul",{className:"list-disc list-inside",children:[(0,a.jsx)("li",{className:"leading-normal",children:"Cancel your offers anytime from your profile"}),(0,a.jsx)("li",{className:"leading-normal",children:"To ensure a successful transaction, please maintain a sufficient token balance in your account"})]})]})}),vh=()=>(0,a.jsxs)("div",{className:"flex items-center self-end gap-[0.25rem] text-warning font-montserrat text-[10px] font-[400] leading-[0.75rem]",children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43123 2.78899C8.11938 1.56562 9.88075 1.56562 10.5689 2.78899L15.5912 11.7175C16.2661 12.9174 15.399 14.3999 14.0223 14.3999H3.97779C2.6011 14.3999 1.73402 12.9174 2.40896 11.7175L7.43123 2.78899ZM9.89999 11.7C9.89999 12.1971 9.49704 12.6 8.99999 12.6C8.50293 12.6 8.09999 12.1971 8.09999 11.7C8.09999 11.203 8.50293 10.8 8.99999 10.8C9.49704 10.8 9.89999 11.203 9.89999 11.7ZM8.99999 4.50005C8.50293 4.50005 8.09999 4.90299 8.09999 5.40005V8.10005C8.09999 8.59711 8.50293 9.00005 8.99999 9.00005C9.49704 9.00005 9.89999 8.59711 9.89999 8.10005V5.40005C9.89999 4.90299 9.49704 4.50005 8.99999 4.50005Z",fill:"#FF6E25"})}),(0,a.jsx)("p",{className:"text-[10px]",children:"Your offer is above the listing price for this item"})]}),yh=e=>{let{isDapper:t,payWithSelectedAccount:n,setPayWithSelectedAccount:r,sendToSelectedAccount:o,setSendToSelectedAccount:s,selectedAccount:l,offerDuration:c,offerValue:u,offerToken:d,accountSummaries:p,hasChildAccounts:h,isMakeOfferFormError:f,spotPrice:m,nonCustodialOffer:g,dapperOffer:v,storefrontOrders:y,flowty:b}=e;const{hasBalance:w,tokenProviderFilter:x,hasNftReceiver:C,orderData:A,valuationData:E,isMainnet:_,royaltyRate:S}=lo(),k=En(_),P=(0,i.useRef)(null),D=Number(c)<k||void 0===c||Number(c)>_n;(0,i.useEffect)((()=>{var e,t;if(f&&(u<=0||u>1e7)&&(null!==P&&void 0!==P&&null!==(e=P.current)&&void 0!==e&&e.scrollIntoView))return void(null===P||void 0===P||null===(t=P.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}),[f]);const F=(0,i.useMemo)((()=>{if(t)return Number(null===v||void 0===v?void 0:v.amount)>u;return((null===g||void 0===g?void 0:g.paymentTokenName)===T.SupportedTokens.FLOW?Number(null===g||void 0===g?void 0:g.amount)*Number(null===m||void 0===m?void 0:m.value):Number(null===g||void 0===g?void 0:g.amount))>(d===T.SupportedTokens.FLOW?u*Number(null===m||void 0===m?void 0:m.value):u)}),[A,v,g,m]);return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-5",ref:P,children:[h&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(en,{selected:n,setSelected:r,label:"Pay With",summaries:p,listingType:"storefront",selectorFilter:x,disabledMessage:nn}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:(0,a.jsx)(en,{selected:o,setSelected:s,label:"Send To",summaries:p,listingType:"storefront",selectorFilter:C,disabledMessage:rn})})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-montserrat text-base font-[600] text-white",children:"Your Offer"}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(Zo,{name:"offerTokenType",orderType:"offer",isDapper:t,selectedAccount:l,flowty:b}),(0,a.jsx)($o,{name:"offerAmount",valueError:f&&(u<=0||u>1e7)||!w,inputError:f&&(u<=0||u>1e7)||!w,errorMessage:w?f&&(u<=0||u>1e7)?"Between 0.01 - 10000000":null:"Insufficient funds to place offer"})]}),(()=>{if(!w)return!1;if(y){const e=y[0];if(d===(null===e||void 0===e?void 0:e.paymentTokenName))return(null===e||void 0===e?void 0:e.amount)<u;{const t=(null===e||void 0===e?void 0:e.paymentTokenName)===T.SupportedTokens.FLOW?Number(null===e||void 0===e?void 0:e.amount)*Number(null===m||void 0===m?void 0:m.value):Number(null===e||void 0===e?void 0:e.amount);return(d===T.SupportedTokens.FLOW?u*Number(null===m||void 0===m?void 0:m.value):u)>t}}return!1})()&&(0,a.jsx)(vh,{})]}),(0,a.jsxs)("div",{className:"flex gap-3 flex-row items-center",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Offer Duration"})}),(0,a.jsxs)("div",{className:"w-full flex gap-3 items-center",children:[(0,a.jsx)($o,{name:"offerDuration",valueError:f&&D,inputError:f&&D,decimalsAllowed:Tn(_),errorMessage:f&&D?"Between ".concat(k," and ").concat(_n," days"):null}),(0,a.jsx)("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"Days"})]})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-white text-sm font-normal font-montserrat",children:"Your Offer"}),(0,a.jsx)(Sr,{price:u,token:d,spotPriceValue:Number(null===m||void 0===m?void 0:m.value)*u})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-5 mt-4",children:[(0,a.jsx)(Gp,{dapperOffer:v,nonCustodialOffer:g}),F&&u>0&&(0,a.jsx)("div",{className:"flex justify-center w-full",children:(0,a.jsx)(fh,{text:"Your offer is lower than the current best offer."})}),null!==E&&void 0!==E&&E.percentage?(0,a.jsx)(va,{source:E.source,percent:(null===E||void 0===E?void 0:E.percentage)||0}):null]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[Boolean(S)&&Number(S)>0?(0,a.jsx)(uh,{royalty:Number(S)}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"mt-auto flex flex-col gap-10",children:(0,a.jsx)(gh,{})})]})]})]})},bh=e=>{const t=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%6e4/1e3);return t>=1?{days:t>=0?t:0,hours:n>=0?n:0}:n>=1?{hours:n>=0?n:0,mins:r>=0?r:0,secs:i>=0?i:0}:{mins:r>=0?r:0,secs:i>=0?i:0}},wh=e=>{let{countdownCurrentValue:t,isCustomColor:n}=e;const r=(0,i.useMemo)((()=>Object.entries(t).map(((e,t)=>{let[r,i]=e;return(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex flex-col justify-center",children:(0,a.jsx)("div",{className:"flex justify-center items-center gap-6",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"w-[40px] h-[40px] flex items-center justify-center flex-col border rounded-[4px] ".concat(n?"border-[#FF696985]":"border-[#DEE2E6]"),children:(0,a.jsx)("div",{className:"".concat(n?"text-[#FF6969]":"text-white"," text-[14px] font-[700]"),"data-testid":"".concat(r,"-value"),children:i})}),(0,a.jsx)("div",{className:"".concat(n?"text-[#FF6969]":"text-neutral-400"," text-[12px] font-[400] capitalize text-center"),children:r})]})})})},"".concat(i,"-").concat(t))}))),[t]);return(0,a.jsx)("div",{className:"flex gap-[14px] items-center",children:r})},xh=e=>{let{accountSummaries:t,loanRentalActionsData:n}=e;const{payWithSelectedAccount:r,updateSelectedAccount:o,hasChildAccounts:s,hasBalance:l,tokenProviderFilter:c,isLoggedUser:u,spotPrice:d}=lo(),p=(e,t)=>{const n=new Date(1e3*e),r=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(n),i=new Intl.DateTimeFormat("en-US",{hour:"2-digit",hour12:!0,minute:"2-digit"}).format(n);return t?r:"".concat(r,", ").concat(i)},h=1e3*(n.settleDeadline-(new Date).getTime()/1e3),[f,m]=(0,i.useState)(h);(0,i.useEffect)((()=>{const e=setInterval((()=>{const e=1e3*(n.settleDeadline-(new Date).getTime()/1e3);m(e)}),1e3);return()=>clearInterval(e)}),[f]);const g=(0,i.useMemo)((()=>bh(h)),[h]),v="loan"===n.type?null===n||void 0===n?void 0:n.loanAmount:n.rentalFee,y="loan"===n.type?null===n||void 0===n?void 0:n.repaymentDue:n.rentalRefundableDeposit;return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between gap-5",children:[(0,a.jsxs)("div",{className:"h-full flex flex-col gap-3",children:[s&&"loan"===n.type&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:(0,a.jsx)(en,{selected:r,setSelected:e=>o(e,"payWith"),label:"Pay With",summaries:t,listingType:"storefront",selectorFilter:c,disabledMessage:nn})}),(0,a.jsxs)("div",{className:"w-full flex flex-col gap-3 justify-between mt-4",children:[(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"loan"===n.type?"Loan Amount":"Rental Fee"}),(0,a.jsx)(Sr,{token:n.paymentTokenName,price:Number(v),spotPriceValue:d?d.value*Number(v):void 0})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"loan"===n.type?"Repayment Amount":"Refundable Deposit"}),(0,a.jsx)(Sr,{token:n.paymentTokenName,price:Number(y),spotPriceValue:d?d.value*Number(y):void 0})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"loan"===n.type?"Loan Funded Date":"Date of Rental"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:p(+n.settleDeadline-n.term,!0)})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"loan"===n.type?"Repayment Due":"Rental Due Back"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:p(+n.settleDeadline)})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"loan"===n.type?"Auto Repayment":"Auto Return"}),(0,a.jsx)("span",{className:"text-base text-white font-bold",children:n.enabledAutoRepayment?"On":"Off"})]}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)("p",{className:"font-[400] text-[14px] text-white",children:"Time Left"}),(0,a.jsx)(wh,{countdownCurrentValue:g,isCustomColor:!Boolean(g.days)})]})]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-3",children:!l&&u&&(0,a.jsx)("p",{className:"w-full text-[#FF6E25] text-sm",children:"Insufficient funds to complete the transaction!"})})]})},Ch=()=>(0,a.jsxs)("div",{className:"flex flex-col gap-6 w-full md:w-[400px] justify-between bg-[#FFFFFF14] p-3 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-white text-[15px] font-bold",children:"Why Is This NFT here? "}),(0,a.jsx)("span",{className:"text-[#ADB5BD] text-[12px] font-normal",children:"On Flow, a wallet needs to approve a collection before it can receive NFTs from that collection. This NFT is from a collection that you have not approved. To claim the NFT and approve the collection, click the Claim button."})]}),(0,a.jsx)("a",{className:"underline text-white text-[16px] font-semibold",href:"https://x.com/austin_flowty/status/1559184554090323968",target:"_blank",rel:"noreferrer",children:"Learn More"})]}),Ah=e=>{let{nftOrders:t,singleListing:n,accountSummaries:r,flowty:i,strapiUrl:o}=e;const{activeTab:s,setActiveTab:l,isMakeOffer:c,isLoading:u,error:d,sealed:p,isDapper:h,payWithSelectedAccount:f,updateSelectedAccount:m,sendToSelectedAccount:g,hasChildAccounts:v,offerDuration:y,offerValue:b,offerTokenType:w,listingType:x,isFormError:C,setSelectedOrder:A,transactionID:E,orderData:_,spotPrice:T,dapperOffer:S,nonCustodialOffer:k,isCancelOffer:P,isOrderListedByLoggedAccount:D,openSearchFlowNFT:F,isLoadingOrders:N,loanRentalActionsData:I,isMainnet:R,mixPanelFn:O,isLostAndFound:j}=lo();return N&&!c?(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsxs)("div",{className:"w-full h-full md:w-[400px] flex flex-col justify-between",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col gap-[32px]",children:[(0,a.jsx)("div",{className:"w-[234px] h-[32px] animate-pulse bg-[#edf3f60a] rounded-lg"}),(0,a.jsx)("div",{className:"w-full h-[153px] animate-pulse bg-[#edf3f60a] rounded-lg"})]}),(0,a.jsx)("div",{className:"w-full h-[32px] animate-pulse bg-[#edf3f60a] rounded-lg"})]})}):d[x]?(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Kn,{transactionID:E,isMainnet:R})}):p[x]?(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(ar,{isMainnet:R,type:x,transactionID:E,orderData:_,nft:F})}):u[x]?(0,a.jsxs)("div",{className:"h-full flex flex-col items-center justify-center mt-48 ",children:[(0,a.jsx)(Xn,{transactionID:E,isMainnet:R}),(0,a.jsx)("div",{className:"flex-grow "}),(0,a.jsx)(sp,{strapiUrl:o,mixPanelFn:O})]}):j?(0,a.jsx)(Ch,{}):(0,a.jsx)("div",{className:"w-full md:w-[400px] h-full flex flex-col gap-4 flex-shrink-0 relative",children:I?(0,a.jsx)(xh,{accountSummaries:r,loanRentalActionsData:I}):c?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(yh,{isDapper:Boolean(h),selectedAccount:f,offerValue:Number(b),offerDuration:y,offerToken:w,accountSummaries:r,hasChildAccounts:v,payWithSelectedAccount:f,setPayWithSelectedAccount:e=>m(e,"payWith"),setSendToSelectedAccount:e=>m(e,"sendTo"),sendToSelectedAccount:g,isMakeOfferFormError:C.makeOffer,spotPrice:T,dapperOffer:S,nonCustodialOffer:k,storefrontOrders:null===t||void 0===t?void 0:t.storefront,flowty:i})}):P?(0,a.jsx)(mh,{spotPrice:T,offerData:_,isOrderListedByLoggedAccount:D,nftOwnerAddress:(null===F||void 0===F?void 0:F.owner)||""}):(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(ph,{setSelectedOrder:A,activeTab:s,accountSummaries:r,setActiveTab:l,nftOrders:t,isDapper:Boolean(h)}),n&&(0,a.jsx)(hh,{singleListing:n,isDapper:Boolean(h),accountSummaries:r})]})})},Eh=e=>{let{isOpen:t,openSearchFlowNFT:n,hasProvider:r,orderContent:i,mixPanelFn:o}=e;const{valuationData:s,onCloseModal:l,listingType:c,collectionImage:u,resetModal:d,closeBtnProps:p,confirmBtnProps:h,orderData:f,isLoading:m,sealed:g,singleOffer:v,isDapper:y,isLoadingValuation:b,isLoadingOrders:w,isMainnet:x,isLostAndFound:C}=lo();return(0,a.jsx)(nh,{isLostAndFound:C,collectionImage:u,isOpen:t,openSearchFlowNFT:n,hasProvider:r,valuationData:s,onCloseModal:l,listingType:c,resetModal:d,closeBtnProps:p,confirmBtnProps:h,orderData:f,isLoadingMakeOffer:m.makeOffer,sealedMakeOffer:g.makeOffer,orderContent:i,isPurchase:!0,isSingleOffer:Boolean(v),isDapper:y,isLoadingValuation:b,isLoadingOrders:w,mixPanelFn:o,isMainnet:x})},_h=e=>{let{addressesWithCollectionPublic:t,isOpen:n,isLostAndFound:r,lostAndFoundTicketID:i,lostAndFoundCatalogIdentifier:o,isLoggedUser:s,onClose:c,flowNft:u,openSearchFlowNFT:d,accountSummaries:p,purchaseType:h,mixPanelFn:f,hasProvider:m,createTransactionNotification:g,valuation:v,isLoadingValuation:y,singleListing:b,nftOrders:w,nftProviderPathIdentifier:x,collectionImage:C,isLoadingOrders:A,offer:E,singleOffer:_,spotPrice:S,strapiUrl:k,loanRentalActionsData:P,flowty:D}=e;const F=Object.values(p||{}),N=null===F||void 0===F?void 0:F.find((e=>e.isMain));return(0,a.jsx)(l.l1,{initialValues:{automaticReturn:!1,offerAmount:"",offerDuration:30,offerTokenType:null!==N&&void 0!==N&&N.isDapper?T.SupportedTokens.DUC:T.SupportedTokens.USDC},onSubmit:()=>{},validate:()=>{},children:e=>{let{values:l,resetForm:T}=e;return(0,a.jsx)(so,{createTransactionNotification:g,accountSummaries:p,collectionImage:C,addressesWithCollectionPublic:t,isLoggedUser:s,resetForm:T,nftOrders:w,singleListing:b,offer:E,singleOffer:_,purchaseType:h,values:l,mainAccount:N,nftProviderPathIdentifier:x,openSearchFlowNFT:d,flowNft:u,valuation:v,isLoadingValuation:y,onClose:c,spotPrice:S,strapiUrl:k,mixPanelFn:f,isLoadingOrders:A,loanRentalActionsData:P,isLostAndFound:r,lostAndFoundTicketID:i,lostAndFoundCatalogIdentifier:o,flowty:D,children:(0,a.jsx)(Eh,{isOpen:n,openSearchFlowNFT:d,hasProvider:m,orderContent:(0,a.jsx)(Ah,{accountSummaries:p,singleListing:b,nftOrders:w,flowty:D,strapiUrl:k}),mixPanelFn:f})})}})};n(71408);n.p;n.p;var Th,Sh;function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kh.apply(null,arguments)}function Ph(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",kh({width:71,height:55,viewBox:"0 0 71 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Th||(Th=i.createElement("g",{clipPath:"url(#clip0)"},i.createElement("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z",fill:"#ffffff"}))),Sh||(Sh=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0"},i.createElement("rect",{width:71,height:55,fill:"white"})))))}const Dh=i.forwardRef(Ph);n.p;var Fh;function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(null,arguments)}function Ih(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Nh({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Fh||(Fh=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.00483 3.00483C3.2782 2.73146 3.72141 2.73146 3.99478 3.00483L6.9998 6.00986L10.0048 3.00483C10.2782 2.73146 10.7214 2.73146 10.9948 3.00483C11.2681 3.2782 11.2681 3.72141 10.9948 3.99478L7.98975 6.9998L10.9948 10.0048C11.2681 10.2782 11.2681 10.7214 10.9948 10.9948C10.7214 11.2681 10.2782 11.2681 10.0048 10.9948L6.9998 7.98975L3.99478 10.9948C3.72141 11.2681 3.2782 11.2681 3.00483 10.9948C2.73146 10.7214 2.73146 10.2782 3.00483 10.0048L6.00986 6.9998L3.00483 3.99478C2.73146 3.72141 2.73146 3.2782 3.00483 3.00483Z",fill:"#F8F9FA"})))}const Rh=i.forwardRef(Ih),Oh=(n.p,e=>{let{discordHandle:t,walletAddress:n,handleDiscordDisconnect:r}=e;const o=(0,i.useMemo)((()=>"undefined"!==typeof window?window.location.host.startsWith("flowty-test")?"https://testnet.flowty.io/_discord-oauth":window.location.host.startsWith("flowty-prod")?"https://www.flowty.io/_discord-oauth":"".concat(window.location.origin,"/_discord-oauth"):null),[]);return(0,a.jsxs)("div",{className:"flex justify-between w-full mt-[2rem]",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(Dh,{className:"mr-2 w-[1.5rem]"}),(0,a.jsx)("div",{className:"text-md font-semibold",children:"Discord"})]}),(0,a.jsx)("div",{className:"flex items-center transition-transform duration-300 ease-in-out",children:t?(0,a.jsxs)("div",{className:"flex h-[2rem] px-[.875rem] items-center gap-[.5rem] bg-[#ffffff14] rounded-md border border-[#6C757D]/25",children:[(0,a.jsxs)("div",{className:"text-[#ADB5BD] text-xs font-extrabold",children:["@",t]}),(0,a.jsx)("button",{onClick:r,children:(0,a.jsx)(Rh,{})})]}):(0,a.jsx)("a",{href:"https://discord.com/api/oauth2/authorize?client_id=1166104751847526512&redirect_uri=".concat(o,"&response_type=code&scope=identify"),target:"_blank",rel:"noreferrer",children:(0,a.jsx)(s,{text:"Connect",variant:"secondary",btnSize:"small",bgColor:"white",onClick:()=>he("DISCORD_CONNECT_CLICKED",{discordHandle:t,walletAddress:n})})})})]})}),jh=e=>{let{walletAddress:t,twitterHandle:n,handleTwitterDisconnect:r}=e;const o=(0,i.useMemo)((()=>"undefined"!==typeof window?window.location.host.startsWith("flowty-test")?"https://testnet.flowty.io/_twitter-oauth":window.location.host.startsWith("flowty-prod")?"https://www.flowty.io/_twitter-oauth":"".concat(window.location.origin,"/_twitter-oauth"):null),[]);return(0,a.jsxs)("div",{className:"flex justify-between w-full mt-[2rem]",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(De,{className:"mr-2 w-[1.5rem]"}),(0,a.jsx)("div",{className:"text-md font-semibold",children:"Twitter"})]}),(0,a.jsx)("div",{className:"flex items-center transition-transform duration-300 ease-in-out",children:n?(0,a.jsxs)("div",{className:"flex h-[2rem] px-[.875rem] items-center gap-[.5rem] bg-[#ffffff14] rounded-md border border-[#6C757D]/25",children:[(0,a.jsx)("a",{href:"https://twitter.com/".concat(n),target:"_blank",rel:"noreferrer",children:(0,a.jsxs)("div",{className:"text-[#ADB5BD] text-xs font-extrabold",children:["@",n]})}),(0,a.jsx)("button",{onClick:r,children:(0,a.jsx)(Rh,{})})]}):(0,a.jsx)("a",{href:"https://twitter.com/i/oauth2/authorize?response_type=code&client_id=eVpUT3cyQ0doaGJYdzF3Mk4xdUk6MTpjaQ&redirect_uri=".concat(o,"&scope=tweet.read%20users.read%20follows.read%20offline.access&state=state&code_challenge=challenge&code_challenge_method=plain"),target:"_blank",rel:"noreferrer",children:(0,a.jsx)(s,{text:"Connect",variant:"secondary",btnSize:"small",bgColor:"white",onClick:()=>he("TWITTER_CONNECT_CLICKED",{twitterHandle:n,walletAddress:t})})})})]})},Mh=e=>{let{onSignIn:t}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[0.5rem] w-[248px]",children:[(0,a.jsxs)("svg",{width:"248",height:"77",viewBox:"0 0 248 77",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"max-h-[4.78863rem] flex-shrink-0",children:[(0,a.jsx)("mask",{id:"mask0_36923_544",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"249",height:"77",children:(0,a.jsx)("path",{d:"M248.527 0H0.526855V76.6175H248.527V0Z",fill:"white"})}),(0,a.jsxs)("g",{mask:"url(#mask0_36923_544)",children:[(0,a.jsx)("path",{d:"M19.1105 18.3768C20.768 12.6914 24.5086 9.44467 30.3325 8.63867H45.8015L43.3835 18.6868H32.6802C31.99 18.6868 31.3452 18.9286 30.7458 19.4122C30.1692 19.8958 29.8014 20.5055 29.6402 21.2433L27.776 28.0447H35.4062L33.0584 38.0928H25.3229L21.0759 55.2544H9.89111L19.1105 18.3768Z",fill:"white"}),(0,a.jsx)("path",{d:"M52.9128 8.63867H64.3084L55.4693 43.307C55.4011 43.8836 55.5375 44.4003 55.8826 44.8611C56.2505 45.322 56.7465 45.5514 57.3685 45.5514H63.583L61.1319 55.2544H53.3633C50.2096 55.2544 47.7007 54.0578 45.8365 51.6625C43.9724 49.2693 43.34 46.4835 43.9373 43.3049L52.9128 8.63867Z",fill:"white"}),(0,a.jsx)("path",{d:"M74.9084 52.4231C73.1827 51.1108 71.8807 49.3272 71.0065 47.0704C69.0494 42.1662 69.4648 36.6772 72.2486 30.5991C75.979 23.8308 82.0095 20.2988 90.3423 19.9992C92.3676 19.8834 94.4281 19.9082 96.5237 20.0674C99.9295 20.367 102.509 21.202 104.259 22.5701C106.008 23.9403 107.332 25.7528 108.229 28.0096C110.186 32.9365 109.771 38.4256 106.987 44.4809C103.282 51.272 97.1333 54.839 88.5484 55.1842C86.7979 55.2999 84.8181 55.2648 82.6088 55.0808C79.2009 54.62 76.6361 53.7334 74.9084 52.421M97.9745 38.4028C98.6875 35.7782 98.7102 33.7756 98.0427 32.395C97.3752 31.0145 95.7301 30.2085 93.1054 29.977C89.6975 29.7249 86.8909 30.3118 84.6796 31.7378C82.9539 33.0729 81.8131 34.72 81.2613 36.6751C79.6721 41.9017 81.2965 44.7103 86.1304 45.1009C90.0901 45.1918 92.8988 44.6049 94.5562 43.3401C96.2819 42.0278 97.4227 40.3827 97.9745 38.4028Z",fill:"white"}),(0,a.jsx)("path",{d:"M113.65 43.3422L119.313 20.1377H130.638L124.976 43.3422C124.907 43.9188 125.044 44.4355 125.391 44.8964C125.736 45.3572 126.23 45.5866 126.875 45.5866H131.779C131.802 44.8261 131.905 44.08 132.089 43.3422L137.752 20.1377H149.077L143.414 43.3422C143.321 43.9188 143.46 44.4355 143.828 44.8964C144.173 45.3572 144.669 45.5866 145.314 45.5866H150.148L156.155 20.1377H167.687L159.193 55.2214H148.904V55.2566H141.168C136.747 55.2566 133.745 52.9894 132.155 48.4552L130.566 55.2235H126.699V55.2586H122.762C119.654 55.2586 117.191 54.062 115.372 51.6668C113.53 49.2963 112.954 46.5208 113.646 43.3443",fill:"white"}),(0,a.jsx)("path",{d:"M167.896 43.307L176.425 8.63867H187.612C185.725 16.0291 184.746 19.8503 184.677 20.1025H192.93L190.443 30.2891H182.226C181.627 32.7525 181.133 34.7944 180.743 36.4188C180.35 38.0411 179.994 39.5147 179.672 40.8394C179.35 42.1641 179.153 42.9867 179.085 43.307C179.017 43.8836 179.153 44.4003 179.5 44.8611C179.846 45.322 180.329 45.5514 180.951 45.5514H186.752L184.405 55.2544H176.878C173.792 55.2544 171.364 54.0578 169.593 51.6625C167.797 49.2693 167.233 46.4835 167.9 43.3049",fill:"white"}),(0,a.jsx)("path",{d:"M201.285 58.5362H207.225C207.847 58.5362 208.444 58.3068 209.02 57.8459C209.595 57.385 209.988 56.8663 210.194 56.2918L210.436 55.3246H202.322C199.214 55.3246 196.751 54.128 194.932 51.7327C193.113 49.3395 192.562 46.5536 193.275 43.3772L198.902 20.1375H210.263L204.635 43.3772C204.567 43.9538 204.693 44.4704 205.015 44.9313C205.36 45.3922 205.867 45.6216 206.534 45.6216H212.645L218.827 20.1375H218.895L218.93 20.0342H230.291L221.588 56.2918C220.714 59.4682 218.779 62.2541 215.787 64.6473C212.771 67.0405 209.709 68.2392 206.6 68.2392H198.832L201.283 58.5362H201.285Z",fill:"white"}),(0,a.jsx)("path",{d:"M239.434 51.024C239.434 54.4505 236.656 57.2281 233.23 57.2281C229.803 57.2281 227.025 54.4505 227.025 51.024C227.025 47.5974 229.803 44.8198 233.23 44.8198C236.656 44.8198 239.434 47.5974 239.434 51.024Z",fill:"#5BC096"})]})]}),(0,a.jsxs)("div",{className:"inline-flex flex-col items-center gap-[1.5rem] w-full",children:[(0,a.jsx)("span",{className:"font-montserrat w-ful w-[248px] text-[#ADB5BD] text-[0.75rem] font-normal text-center",children:"Sign in to view your NFTs and user profile"}),(0,a.jsx)(s,{className:"max-w-[248px] w-[90%]",onClick:t,variant:"primary",btnSize:"small",text:"SIGN IN"})]})]})};var Lh=n(52027),Bh=n.n(Lh);const Uh=e=>{let{duration:t=5e3}=e;const[n,r]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{const e=setTimeout((()=>{r(!1)}),t);return()=>clearTimeout(e)}),[t]),(0,a.jsx)(a.Fragment,{children:n&&(0,a.jsx)(Bh(),{width:1e3,style:{height:"80vh",maxWidth:"1000px",position:"fixed"},autorun:{speed:1}})})},Vh={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK,Hh={collectionDisplayName:"",contractName:"",dropPageLink:"",dropStartDateFormat:"",error:{drop:!1},isFormError:{drop:!1},isLoading:{drop:!1},isMainnet:!1,maxPerMint:10,modalNavbarProps:void 0,onCloseModal:()=>{},resetModal:()=>{},sealed:{drop:!1},submitTransaction:()=>{},transactionID:null},zh=(0,i.createContext)(Hh),Wh=e=>{let{children:t,onClose:n,resetForm:r,updateMintCount:o,showNoFundsMessage:s,maxPerMint:l,collectionDisplayName:c,contractAddress:u,contractName:d,dropID:p,phasePrice:h,mintCount:f,nftIdentifier:m,flowty:g,dropStartDateFormat:v}=e;const[y,b]=(0,i.useState)(null),[w,x]=(0,i.useState)({drop:!1}),[C,A]=(0,i.useState)({drop:!1}),[E,_]=(0,i.useState)({drop:!1}),[T,S]=(0,i.useState)({drop:!1}),k="mainnet"===g.config.network,P=k?"flowty.io":"testnet.flowty.io",D=(0,i.useMemo)((()=>"https://".concat(P,"/collection/").concat(u,"/").concat(d,"/?page=drop")),[u,d]),F=async()=>{f<1?S((e=>({...e,drop:!0}))):(async e=>{let{setIsLoading:t,setError:n,setIsFormError:r,setIsSealed:i,mixPanelFn:o,txAvailableCallback:a,contractAddress:s,contractName:l,numToMint:c,totalCost:u,paymentIdentifier:d,paymentStoragePath:p,paymentReceiverPath:h,dropID:f,dropPhaseIndex:m,nftIdentifier:g,commissionAddress:v,flowty:y}=e;if(t((e=>({...e,drop:!0}))),n((e=>({...e,drop:!1}))),r((e=>({...e,drop:!1}))),i((e=>({...e,drop:!1}))),Vh)return a("mockTxId"),void("ERROR_TYPE_MOCK"===f?setTimeout((()=>{t((e=>({...e,drop:!1}))),n((e=>({...e,drop:!0})))}),3e3):setTimeout((()=>{t((e=>({...e,drop:!1}))),i((e=>({...e,drop:!0})))}),3e3));try{var b,w;const e=await y.dropMint({commissionAddress:v,contractAddress:s,contractName:l,dropID:f,dropPhaseIndex:m,nftIdentifier:g,numToMint:c,paymentIdentifier:d,paymentReceiverPath:h,paymentStoragePath:p,totalCost:u,txAvailableCallback:a});if(4===(null===e||void 0===e?void 0:e.status))return i((e=>({...e,drop:!0}))),t((e=>({...e,drop:!1}))),void o("Drop mint successful transaction",{dropID:f,nftIdentifier:g});if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(b=e.toString())&&void 0!==b&&b.includes("Error")||null!==e&&void 0!==e&&null!==(w=e.toString())&&void 0!==w&&w.includes("Declined"))throw new Error(e)}catch(C){var x;n((e=>({...e,drop:!0}))),t((e=>({...e,drop:!1}))),null!==C&&void 0!==C&&null!==(x=C.toString())&&void 0!==x&&x.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),o("Drop mint failed transaction",{dropID:f,err:C,nftIdentifier:g})}})({commissionAddress:g.config.contractAddresses.FlowtyDrops,contractAddress:u,contractName:d,dropID:p,dropPhaseIndex:0,flowty:g,mixPanelFn:()=>{},nftIdentifier:m,numToMint:f,paymentIdentifier:g.config.getIdentifier("FlowToken","Vault"),paymentReceiverPath:"flowTokenReceiver",paymentStoragePath:"flowTokenVault",setError:x,setIsFormError:S,setIsLoading:A,setIsSealed:_,totalCost:f*h,txAvailableCallback:e=>{b(e)}})},N=(0,i.useMemo)((()=>{const e=window.location.origin,t="".concat(e,"/user/profile?collectionFilters="),n="".concat(u,".").concat(d),r={[n]:{}};return t+encodeURIComponent(JSON.stringify(r))}),[u]),I=()=>{window.open(N,"_blank")},R=()=>{x({drop:!1}),S({drop:!1}),A({drop:!1}),_({drop:!1}),b(null)},O=()=>{o&&o(1),R(),r()},j=(0,i.useMemo)((()=>{var e;return w.drop||C.drop||E.drop?C.drop?{bgColor:"primary",disabled:!0,onClick:()=>{},text:"Purchasing"}:E.drop?[{bgColor:"white",className:"w-[14rem] text-base",disabled:!1,onClick:O,text:"Buy More"},{bgColor:"primary",className:"w-[14rem] text-base",disabled:!1,onClick:I,text:"View NFT"}]:w.drop?[{bgColor:"white",className:"w-[14rem] text-lg",disabled:!1,onClick:R,text:"Back"},{bgColor:"primary",className:"w-[14rem] text-lg",disabled:!1,onClick:F,text:"Try Again"}]:void 0:{bgColor:"primary",disabled:null!==(e=f>l||s)&&void 0!==e&&e,onClick:F,text:"Confirm Purchase"}}),[C,w,E,F]);return(0,a.jsx)(zh.Provider,{value:{collectionDisplayName:c,contractName:d,dropPageLink:D,dropStartDateFormat:v,error:w,isFormError:T,isLoading:C,isMainnet:k,maxPerMint:l,modalNavbarProps:j,onCloseModal:()=>{C.drop||(x({drop:!1}),S({drop:!1}),_({drop:!1})),r(),n()},resetModal:R,sealed:E,showNoFundsMessage:s,submitTransaction:F,transactionID:y},children:t})},qh=()=>(0,i.useContext)(zh),Gh=e=>{let{imgUrl:t,price:n,name:r}=e;const[o,s]=(0,i.useState)(!1);return(0,a.jsxs)("div",{className:"flex space-x-3",children:[!o&&(0,a.jsx)("div",{className:"flex w-[48px] h-[48px] rounded-md ".concat(o?"hidden":"")}),(0,a.jsx)("img",{onLoad:()=>{s(!0)},src:t,alt:"Drop Avatar",className:"w-[48px] h-[48px] rounded-md ".concat(o?"object-fill aspect-square":"hidden")}),(0,a.jsxs)("div",{className:"flex flex-col text-white text-xl",children:[(0,a.jsx)("div",{className:" font-bold",children:r}),(0,a.jsxs)("div",{className:"text-lg font-bold space-x-2 flex flex-row",children:[(0,a.jsx)("span",{className:"text-gray-500 font-normal",children:"Price:"}),n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(lr.h,{className:"w-[16px] h-[16px] mr-1"}),(0,a.jsx)("span",{className:"text-[14px] font-semibold",children:n.toFixed(2)})," "]}):(0,a.jsx)("span",{className:"text-[14px] font-semibold",children:"Free"})]})]})]})},Yh=()=>(0,a.jsxs)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[8px]",children:[(0,a.jsx)("svg",{className:"w-[7.75rem] h-[7.75rem]",width:"124",height:"125",viewBox:"0 0 124 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 112.1C89.3932 112.1 111.6 89.8933 111.6 62.5C111.6 35.1067 89.3932 12.9 61.9999 12.9C34.6066 12.9 12.3999 35.1067 12.3999 62.5C12.3999 89.8933 34.6066 112.1 61.9999 112.1ZM53.984 45.716C51.5627 43.2947 47.6371 43.2947 45.2158 45.716C42.7946 48.1372 42.7946 52.0628 45.2158 54.4841L53.2318 62.5L45.2158 70.516C42.7946 72.9372 42.7946 76.8628 45.2158 79.2841C47.6371 81.7053 51.5627 81.7053 53.984 79.2841L61.9999 71.2681L70.0158 79.2841C72.4371 81.7053 76.3627 81.7053 78.784 79.2841C81.2052 76.8628 81.2052 72.9372 78.784 70.516L70.768 62.5L78.784 54.4841C81.2052 52.0628 81.2052 48.1372 78.784 45.716C76.3627 43.2947 72.4371 43.2947 70.0158 45.716L61.9999 53.7319L53.984 45.716Z",fill:"#FF6969"})}),(0,a.jsx)("p",{className:"text-white text-[16px] font-semibold text-center",children:"Transaction Failed"})]}),(0,a.jsxs)("div",{className:"text-white text-center text-[14px]",children:["Your transaction failed. Please try again. If you continue to have issues, please open a support in"," ",(0,a.jsx)(Gn,{text:"Discord",href:T.flowtyDiscordLink})]})]}),Kh=e=>{let{transactionID:t,isMainnet:n}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsx)("img",{className:"w-[124px] h-[124px]",src:Qn,alt:"Processing Transaction GIF "}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#F8F9FA]",children:"Transaction Processing..."}),(0,a.jsx)(Yn,{transactionID:t,isMainnet:n})]})};const Qh=e=>{let{collectionDisplayName:t,dropPageLink:n}=e;const r=function(e){let{collectionDisplayName:t,dropPageLink:n}=e;const r=encodeURIComponent(null!==t&&void 0!==t?t:"");return"https://twitter.com/intent/tweet?text=I%20just%20minted%20an%20NFT%20from%20%22".concat(r,"%22%20on%20%40flowty_io%0A%0AMinting%20is%20LIVE%20here%3A&url=").concat(n," ")}({collectionDisplayName:t,dropPageLink:n});return(0,a.jsx)(Zn,{href:r})},Xh=e=>{let{transactionID:t,dropPageLink:n,collectionDisplayName:r,isMainnet:i}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsx)("svg",{className:"w-[124px] h-[124px]",width:"124",height:"124",viewBox:"0 0 124 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 111.6C89.3932 111.6 111.6 89.3933 111.6 62C111.6 34.6067 89.3932 12.4 61.9999 12.4C34.6066 12.4 12.3999 34.6067 12.3999 62C12.3999 89.3933 34.6066 111.6 61.9999 111.6ZM84.984 53.9841C87.4052 51.5628 87.4052 47.6372 84.984 45.216C82.5627 42.7947 78.6371 42.7947 76.2158 45.216L55.7999 65.6319L47.784 57.616C45.3627 55.1947 41.4371 55.1947 39.0158 57.616C36.5946 60.0372 36.5946 63.9628 39.0158 66.3841L51.4158 78.7841C53.8371 81.2053 57.7627 81.2053 60.184 78.7841L84.984 53.9841Z",fill:"#04E5A3"})}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#F8F9FA]",children:"Transaction Successful!"}),(0,a.jsx)(Yn,{transactionID:t,isMainnet:i}),(0,a.jsx)(Qh,{dropPageLink:null!==n&&void 0!==n?n:"",collectionDisplayName:r})]})},Zh=()=>(0,a.jsxs)("div",{className:"flex justify-end gap-[4px] items-center text-lightDanger",children:[(0,a.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.93135 2.78911C8.6195 1.56574 10.3809 1.56574 11.069 2.78911L16.0913 11.7176C16.7662 12.9175 15.8991 14.4001 14.5225 14.4001H4.47791C3.10123 14.4001 2.23414 12.9175 2.90908 11.7176L7.93135 2.78911ZM10.4001 11.7002C10.4001 12.1972 9.99717 12.6002 9.50011 12.6002C9.00305 12.6002 8.60011 12.1972 8.60011 11.7002C8.60011 11.2031 9.00305 10.8002 9.50011 10.8002C9.99717 10.8002 10.4001 11.2031 10.4001 11.7002ZM9.50011 4.50017C9.00305 4.50017 8.60011 4.90311 8.60011 5.40017V8.10017C8.60011 8.59723 9.00305 9.00017 9.50011 9.00017C9.99717 9.00017 10.4001 8.59723 10.4001 8.10017V5.40017C10.4001 4.90311 9.99717 4.50017 9.50011 4.50017Z",fill:"#FF6969"})}),(0,a.jsx)("div",{className:"text-[12px] font-[400] leading-[12px]",children:"Insufficient Funds"})]}),Jh=()=>{const{modalNavbarProps:e,showNoFundsMessage:t}=(0,i.useContext)(zh);return e?Array.isArray(e)?(0,a.jsx)("div",{className:"w-full flex items-center gap-[24px]",children:e.map(((e,t)=>(0,a.jsx)(s,{text:e.text,onClick:e.onClick,variant:"secondary",btnSize:"large",disabled:e.disabled,bgColor:e.bgColor},t)))}):(0,a.jsxs)("div",{className:"w-full flex flex-col gap-1",children:[(0,a.jsx)(s,{text:e.text,onClick:e.onClick,variant:"secondary",btnSize:"large",disabled:e.disabled}),t&&(0,a.jsx)(Zh,{})]}):null};var $h,ef;function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(null,arguments)}function nf(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",tf({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,$h||($h=i.createElement("path",{d:"M12.1903 1.80995C11.6436 1.26322 10.7572 1.26322 10.2104 1.80995L4.90039 7.12V9.09991H6.88029L12.1903 3.78985C12.7371 3.24312 12.7371 2.35669 12.1903 1.80995Z",fill:"#ADB5BD"})),ef||(ef=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.40039 4.1999C1.40039 3.4267 2.02719 2.7999 2.80039 2.7999H5.60039C5.98699 2.7999 6.30039 3.1133 6.30039 3.4999C6.30039 3.8865 5.98699 4.1999 5.60039 4.1999H2.80039V11.1999H9.80039V8.3999C9.80039 8.0133 10.1138 7.6999 10.5004 7.6999C10.887 7.6999 11.2004 8.0133 11.2004 8.3999V11.1999C11.2004 11.9731 10.5736 12.5999 9.80039 12.5999H2.80039C2.02719 12.5999 1.40039 11.9731 1.40039 11.1999V4.1999Z",fill:"#ADB5BD"})))}const rf=i.forwardRef(nf);n.p;var of;function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(null,arguments)}function sf(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",af({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,of||(of=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00039 11.5999C9.09319 11.5999 11.6004 9.0927 11.6004 5.9999C11.6004 2.90711 9.09319 0.399902 6.00039 0.399902C2.9076 0.399902 0.400391 2.90711 0.400391 5.9999C0.400391 9.0927 2.9076 11.5999 6.00039 11.5999ZM5.09537 4.10493C4.822 3.83156 4.37878 3.83156 4.10542 4.10493C3.83205 4.37829 3.83205 4.82151 4.10542 5.09488L5.01044 5.9999L4.10542 6.90493C3.83205 7.17829 3.83205 7.62151 4.10542 7.89488C4.37878 8.16824 4.822 8.16824 5.09537 7.89488L6.00039 6.98985L6.90542 7.89488C7.17878 8.16824 7.622 8.16824 7.89537 7.89488C8.16873 7.62151 8.16873 7.17829 7.89537 6.90493L6.99034 5.9999L7.89537 5.09488C8.16873 4.82151 8.16873 4.37829 7.89537 4.10493C7.622 3.83156 7.17878 3.83156 6.90542 4.10493L6.00039 5.00995L5.09537 4.10493Z",fill:"#ADB5BD"})))}const lf=i.forwardRef(sf),cf=(n.p,e=>{let{mintCount:t,increaseMintCount:n,decreaseMintCount:r,updateMintCount:i,maxPerMint:o}=e;return Jo(),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex text-white h-[2.75rem]",children:[(0,a.jsx)("button",{onClick:r,className:"rounded-l-md bg-[#606E7D33] border border-[#495057] px-4 py-3 click-effect","data-testid":"decrease-mint-count",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 10C5.5 9.44772 5.94772 9 6.5 9L14.5 9C15.0523 9 15.5 9.44772 15.5 10C15.5 10.5523 15.0523 11 14.5 11L6.5 11C5.94772 11 5.5 10.5523 5.5 10Z",fill:"#F8F9FA"})})}),(0,a.jsx)("div",{className:"bg-[#606E7D33] border-y border-[#495057] w-[90px] text-center",children:(0,a.jsx)("input",{className:"bg-transparent text-white w-full h-full p-0 text-center font-montserrat py-3",type:"number",value:t,onChange:e=>i(+e.target.value),"data-testid":"mint-count",min:1,max:o>0?o:void 0})}),(0,a.jsx)("button",{onClick:n,className:"rounded-r-md bg-[#606E7D33] border border-[#495057] px-4 py-3 click-effect","data-testid":"increase-mint-count",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 5C11.0523 5 11.5 5.44772 11.5 6V9L14.5 9C15.0523 9 15.5 9.44772 15.5 10C15.5 10.5523 15.0523 11 14.5 11H11.5V14C11.5 14.5523 11.0523 15 10.5 15C9.94771 15 9.5 14.5523 9.5 14V11H6.5C5.94772 11 5.5 10.5523 5.5 10C5.5 9.44771 5.94772 9 6.5 9L9.5 9V6C9.5 5.44772 9.94771 5 10.5 5Z",fill:"#F8F9FA"})})})]}),(0,a.jsxs)("div",{className:"text-[#FF6E25] text-[10px] text-end h-[15px]",children:[t<1&&"Mint count should be greater than 0",o>0&&t>o&&"Max of ".concat(o," per transaction")]})]})}),uf=e=>{let{price:t,spotPrice:n,mintCount:r,increaseMintCount:o,decreaseMintCount:s,updateMintCount:l}=e;const{maxPerMint:c}=qh(),[u,d]=(0,i.useState)(!1);return(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start gap-4",children:[(0,a.jsxs)("div",{className:"h-[44px] flex justify-between w-full",children:[(0,a.jsxs)("div",{className:"flex items-center gap-[.375rem] text-sm font-normal text-white",children:[(0,a.jsx)("span",{children:"Quantity"}),(0,a.jsx)("button",{className:"cursor-pointer",onClick:()=>{d((e=>!e))},"data-testid":u?"drop-quantity-close":"drop-quantity-edit",children:u?(0,a.jsx)(lf,{height:14,width:14}):(0,a.jsx)(rf,{height:14,width:14})})]}),(0,a.jsx)("div",{className:"".concat(u?"":"hidden"),children:(0,a.jsx)(cf,{mintCount:r,increaseMintCount:o,decreaseMintCount:s,updateMintCount:l,maxPerMint:c})}),(0,a.jsxs)("div",{className:"flex items-center text-sm font-semibold text-white ".concat(u?"hidden":""),children:["x",r]})]}),(0,a.jsxs)("div",{className:"flex justify-between w-full",children:[(0,a.jsx)("div",{className:"text-sm font-normal text-white",children:"Total"}),(0,a.jsx)("div",{className:"text-sm font-bold text-white",children:(0,a.jsx)(Sr,{price:t*r,token:T.SupportedTokens.FLOW,spotPriceValue:((null===n||void 0===n?void 0:n.value)||0)*t*r,toolTipCustomId:"drop-quantity-total"})})]})]})},df=e=>{let{isOpen:t,phasePrice:n,spotPrice:r,dropImage:o,mintCount:s,increaseMintCount:l,decreaseMintCount:c,updateMintCount:u}=e;const{error:d,sealed:p,isLoading:h,transactionID:f,dropPageLink:m,collectionDisplayName:g,isMainnet:v,onCloseModal:y}=qh();return(0,a.jsx)(dp.e,{appear:!0,show:t,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",onClose:y,children:[(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{"data-testid":"flowty-listing-modal",className:"fixed max-md:top-[40px] inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center text-center",children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"w-full md:w-[511px] h-full flex flex-col transform rounded-lg bg-[#04070B] text-left align-middle shadow-xl transition-all border border-[#495057]",children:[(0,a.jsxs)(pp.l.Title,{as:"div",className:"border-b border-[#495057] px-[40px] py-[30px] md:py-8 w-full flex justify-between items-center",children:[(0,a.jsxs)("p",{className:"text-lg md:text-2xl leading-6 text-white font-black",children:["Purchase Confirmation"," "]}),(0,a.jsx)(hp.A,{onClick:y,className:"w-6 h-6 md:h-8 md:w-8 cursor-pointer fill-white"})]}),(0,a.jsxs)("div",{className:"w-full py-[32px] px-[40px] h-[300px] flex justify-center items-center",children:[!d.drop&&!h.drop&&!p.drop&&(0,a.jsxs)("div",{className:"flex flex-col w-full gap-[32px] py-[8px]",children:[(0,a.jsx)(Gh,{imgUrl:o,price:n,name:g}),(0,a.jsx)(uf,{price:n,spotPrice:r,mintCount:s,increaseMintCount:l,decreaseMintCount:c,updateMintCount:u})]}),h.drop&&(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Kh,{transactionID:f,isMainnet:v})}),p.drop&&(0,a.jsxs)("div",{className:"h-full flex flex-col items-center justify-center",children:[(0,a.jsx)(Xh,{transactionID:f,isMainnet:v,dropPageLink:m,collectionDisplayName:g}),(0,a.jsx)(Uh,{})]}),d.drop&&(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Yh,{})})]}),(0,a.jsx)("div",{className:"h-full w-full flex justify-center items-center border-t border-[#495057] px-[40px] py-[20px]",children:(0,a.jsx)(Jh,{})})]})})})})]})})},pf=e=>{let{isOpen:t,onClose:n,collectionDisplayName:r,contractAddress:i,contractName:o,dropID:s,dropImage:c,nftIdentifier:u,phasePrice:d,flowty:p,spotPrice:h,mintCount:f,maxPerMint:m,increaseMintCount:g,decreaseMintCount:v,updateMintCount:y,showNoFundsMessage:b}=e;return(0,a.jsx)(l.l1,{initialValues:{mintCount:null!==f&&void 0!==f?f:1},onSubmit:()=>{},validate:()=>{},children:e=>{let{resetForm:l}=e;return(0,a.jsx)(Wh,{onClose:n,resetForm:l,updateMintCount:y,showNoFundsMessage:b,maxPerMint:m,contractAddress:i,contractName:o,collectionDisplayName:r,dropID:s,phasePrice:d,mintCount:f,nftIdentifier:u,flowty:p,children:(0,a.jsx)(df,{dropImage:c,isOpen:t,phasePrice:d,spotPrice:h,mintCount:f,increaseMintCount:g,decreaseMintCount:v,updateMintCount:y})})}})};var hf=n(97776);const ff=e=>{var t,n,r;let{flowTokenBalance:o,dropData:a,flowty:s,loggedUser:l}=e;const c=null===a||void 0===a||null===(t=a.phases)||void 0===t?void 0:t[0],u=Number(null===c||void 0===c?void 0:c.maxPerMint),[d,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)(1),[m,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(null===c||void 0===c?void 0:c.hasStarted),[b,w]=(0,i.useState)(null===c||void 0===c?void 0:c.hasEnded),[x,C]=(0,i.useState)(!1),A=null===c||void 0===c?void 0:c.start,E=null===c||void 0===c?void 0:c.end,_=(0,i.useMemo)((()=>c?v||b?v&&!b?c.start||null!==c&&void 0!==c&&c.end?"ACTIVE":"NEVER_ENDING":"ENDED":"PENDING":"NO_PHASES"),[a,v,b]),T=(0,i.useMemo)((()=>"PENDING"===_?1e3*new Date(+A).getTime():1e3*new Date(+E).getTime()),[A,E,_]),[S,k]=(0,i.useState)(T-(new Date).getTime());(0,i.useEffect)((()=>{if("ENDED"===_||"NEVER_ENDING"===_)return;const e=setInterval((()=>{const e=T-(new Date).getTime();k(e),e<=1e3&&("PENDING"===_?(y(!0),k(1e3*new Date(+E).getTime()-(new Date).getTime())):w(!0))}),1e3);return()=>clearInterval(e)}),[T,S,_]);const P=(0,i.useMemo)((()=>bh(S)),[S]);function D(e){var t,n;const r=new Date(1e3*e),i=r.getDate(),o={hour:"2-digit",hour12:!0,minute:"2-digit",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timeZoneName:"short"},a=null===(t=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long"}))||void 0===t?void 0:t.format(r),s=null===(n=new Intl.DateTimeFormat("en-US",o))||void 0===n?void 0:n.format(r),l=a.replace(/\d+/,"".concat(i).concat((e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(i)));return"".concat(l," at ").concat(s.replace(/^0/,""))}const F=A?D(Number(A)):"",N=E?D(Number(E)):"",I=null===c||void 0===c||null===(n=c.quotes)||void 0===n||null===(r=n[s.config.getIdentifier("FlowToken","Vault")])||void 0===r?void 0:r.price,R=(0,i.useMemo)((()=>o<Number(I)*Number(h)),[o,I,h]);(0,i.useEffect)((()=>{g(R||!1)}),[o,I,h]);const O=e=>{e>0&&f(e)};return(0,i.useEffect)((()=>{(async()=>{try{const e=await s.scripts.getAccountCollections(null!==l&&void 0!==l?l:""),[t,n,r]=a.nftType.split(".")||[],i=e.address==="0x".concat(n)&&e.contracts.some((e=>(null===e||void 0===e?void 0:e.name)===r));C(i)}catch(e){console.log("error",e)}})()}),[l]),{closeModal:()=>{O(1),p(!1)},countdownCurrentValue:P,decreaseMintCount:()=>{1!==h&&f((e=>e>1?e-1:e))},dropEndDateFormat:N,dropPhasePrice:I,dropStartDate:A,dropStartDateFormat:F,dropStatus:_,increaseMintCount:()=>{f((e=>e+1))},isDropOwner:x,isModalOpen:d,maxPerMint:u,mintCount:h,openModal:()=>{p(!0)},setShowNoFundsMessage:g,showNoFundsMessage:m,updateMintCount:O}};var mf=n(81221),gf=n(42463);function vf(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function yf(e,t){var n=function(e){if(!wf[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"\u200e06\u200e/\u200e25\u200e/\u200e2014\u200e \u200e00\u200e:\u200e00\u200e:\u200e00"===t;wf[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return wf[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=bf[n[i].type];o>=0&&(r[o]=parseInt(n[i].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var bf={year:0,month:1,day:2,hour:3,minute:4,second:5};var wf={};function xf(e,t,n,r,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,o,a),s}var Cf=36e5,Af=6e4,Ef={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function _f(e,t,n){var r,i,o;if(!e)return 0;if(r=Ef.timezoneZ.exec(e))return 0;if(r=Ef.timezoneHH.exec(e))return Sf(o=parseInt(r[1],10))?-o*Cf:NaN;if(r=Ef.timezoneHHMM.exec(e)){o=parseInt(r[1],10);var a=parseInt(r[2],10);return Sf(o,a)?(i=Math.abs(o)*Cf+a*Af,o>0?-i:i):NaN}if(function(e){if(kf[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),kf[e]=!0,!0}catch(t){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return xf(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Tf(s,e),c=n?l:function(e,t,n){var r=e.getTime(),i=r-t,o=Tf(new Date(i),n);if(t===o)return t;i-=o-t;var a=Tf(new Date(i),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-c}return NaN}function Tf(e,t){var n=yf(e,t),r=xf(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),o=i%1e3;return r-(i-=o>=0?o:1e3+o)}function Sf(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var kf={};var Pf={X:function(e,t,n,r){var i=Df(r.timeZone,r._originalDate||e);if(0===i)return"Z";switch(t){case"X":return If(i);case"XXXX":case"XX":return Nf(i);default:return Nf(i,":")}},x:function(e,t,n,r){var i=Df(r.timeZone,r._originalDate||e);switch(t){case"x":return If(i);case"xxxx":case"xx":return Nf(i);default:return Nf(i,":")}},O:function(e,t,n,r){var i=Df(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+Ff(o,2)}(i,":");default:return"GMT"+Nf(i,":")}},z:function(e,t,n,r){var i=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return vf("short",i,r);default:return vf("long",i,r)}}};function Df(e,t){var n=e?_f(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Ff(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function Nf(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+Ff(Math.floor(i/60),2)+n+Ff(Math.floor(i%60),2)}function If(e,t){return e%60===0?(e>0?"-":"+")+Ff(Math.abs(e)/60,2):Nf(e,t)}const Rf=Pf;var Of=n(52550),jf=n(83974);var Mf=36e5,Lf=6e4,Bf=2,Uf={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Vf(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?Bf:Of(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"===typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=function(e){var t,n={},r=Uf.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=Uf.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);if(t){var i=Uf.timeZone.exec(t);i?(n.time=t.replace(i[1],""),n.timeZone=i[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,r=Uf.YYY[t],i=Uf.YYYYY[t];if(n=Uf.YYYY.exec(e)||i.exec(e),n){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Uf.YY.exec(e)||r.exec(e),n){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(i.date,r),a=o.year,s=function(e,t){if(null===t)return null;var n,r,i,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=Uf.MM.exec(e),n)return r=new Date(0),Gf(t,i=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=Uf.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=qf(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=Uf.MMDD.exec(e),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Gf(t,i,s)?(r.setUTCFullYear(t,i,s),r):new Date(NaN)}if(n=Uf.Www.exec(e),n)return Yf(t,o=parseInt(n[1],10)-1)?Hf(t,o):new Date(NaN);if(n=Uf.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Yf(t,o,l)?Hf(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,c=s.getTime(),u=0;if(i.time&&(u=function(e){var t,n,r;if(t=Uf.HH.exec(e),t)return Kf(n=parseFloat(t[1].replace(",",".")))?n%24*Mf:NaN;if(t=Uf.HHMM.exec(e),t)return Kf(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*Mf+r*Lf:NaN;if(t=Uf.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Kf(n,r,i)?n%24*Mf+r*Lf+1e3*i:NaN}return null}(i.time),isNaN(u)))return new Date(NaN);if(i.timeZone||n.timeZone){if(l=_f(i.timeZone||n.timeZone,new Date(c+u)),isNaN(l))return new Date(NaN)}else l=jf(new Date(c+u)),l=jf(new Date(c+u+l));return new Date(c+u+l)}return new Date(NaN)}function Hf(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var zf=[31,28,31,30,31,30,31,31,30,31,30,31],Wf=[31,29,31,30,31,30,31,31,30,31,30,31];function qf(e){return e%400===0||e%4===0&&e%100!==0}function Gf(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=qf(e);if(r&&n>Wf[t])return!1;if(!r&&n>zf[t])return!1}return!0}function Yf(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Kf(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var Qf=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Xf(e,t,n,r){var i=mf(r);return i.timeZone=t,function(e,t,n){var r=String(t),i=n||{},o=r.match(Qf);if(o){var a=Vf(e,i);r=o.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],o=e.replace(t,"'"+Rf[t[0]](a,t,null,i)+"'");return r?o.substring(0,n-1)+o.substring(n+1):o}),r)}return gf(e,r,i)}(function(e,t,n){var r=Vf(e,n),i=_f(t,r,!0),o=new Date(r.getTime()-i),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),n,i)}const Zf=e=>{let{collectionDisplayName:t,dropPageLink:n,dropStartDate:r,dropStatus:i,isDropOwner:o}=e;const s=function(e){let{collectionDisplayName:t,dropPageLink:n,dropStartDate:r,dropStatus:i,isDropOwner:o}=e,a="";r&&(a=Xf(new Date(1e3*parseInt(r,10)),"UTC","MMMM do, yyyy 'at' h:mm a 'UTC'"));const s=encodeURIComponent(null!==t&&void 0!==t?t:""),l="https://twitter.com/intent/tweet?text=",c={active:"Minting%20for%20%22".concat(s,"%22%20is%20LIVE%20on%20%40flowty_io%0A%0ACheck%20out%20the%20drop%20here%3A%20").concat(n),owner:"I%20just%20created%20a%20new%20collection%20called%20%22".concat(s,"%22%20using%20the%20NFT%20Launchpad%20on%20%40flowty_io!%20%F0%9F%8E%A8%0A%0AMinting%20goes%20live%20on%20").concat(a,"%20here%3A%20").concat(n),pending:"Excited%20to%20mint%20a%20new%20NFT%20from%20%22".concat(s,"%22%20on%20%40flowty_io!!%0A%0AJoin%20me%20for%20the%20drop%20on%20").concat(a,"%20here%3A%20").concat(n)};if(o)return"".concat(l).concat(c.owner);const u={ACTIVE:c.active,PENDING:c.pending};return i&&u[i]?"".concat(l).concat(u[i]):""}({collectionDisplayName:t,dropPageLink:n,dropStartDate:r,dropStatus:i,isDropOwner:o}),l="tweet-drop-page";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(l,"-tooltip"),className:"flex items-center",style:{backgroundColor:"#F8F9FA",color:"#031021",fontSize:"14px",fontWeight:500,height:"33.999px",lineHeight:"normal",padding:"12px",pointerEvents:"auto",textAlign:"center",zIndex:40},opacity:100,clickable:!1,render:()=>(0,a.jsx)(a.Fragment,{children:"Share on Twitter"})}),(0,a.jsx)("div",{"data-tooltip-id":"".concat(l,"-tooltip"),"data-tooltip-place":"top",children:(0,a.jsx)("button",{className:"border rounded p-[8px]",style:{border:"1px solid var(--Neutral-300, #495057)"},onClick:()=>{window.open(s,"_blank")},rel:"noreferrer",children:(0,a.jsx)(De,{className:"h-5 w-5"})})})]})};var Jf,$f;function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(null,arguments)}function tm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",em({xmlns:"http://www.w3.org/2000/svg",width:21,height:21,viewBox:"0 0 21 21",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Jf||(Jf=i.createElement("path",{d:"M13.3187 4.93173C14.0997 4.15069 15.3661 4.15069 16.1471 4.93173C16.9282 5.71278 16.9282 6.97911 16.1471 7.76016L13.1471 10.7602C12.3661 11.5412 11.0997 11.5412 10.3187 10.7602C9.92815 10.3696 9.29499 10.3696 8.90447 10.7602C8.51394 11.1507 8.51394 11.7839 8.90447 12.1744C10.4666 13.7365 12.9992 13.7365 14.5613 12.1744L17.5613 9.17437C19.1234 7.61228 19.1234 5.07962 17.5613 3.51752C15.9992 1.95542 13.4666 1.95542 11.9045 3.51752L10.4045 5.01752C10.0139 5.40804 10.0139 6.04121 10.4045 6.43173C10.795 6.82226 11.4282 6.82226 11.8187 6.43173L13.3187 4.93173Z",fill:"#F8F9FA"})),$f||($f=i.createElement("path",{d:"M8.3187 9.93173C9.09974 9.15069 10.3661 9.15069 11.1471 9.93173C11.5376 10.3223 12.1708 10.3223 12.5613 9.93173C12.9519 9.54121 12.9519 8.90804 12.5613 8.51752C10.9992 6.95542 8.46658 6.95542 6.90448 8.51752L3.90448 11.5175C2.34239 13.0796 2.34239 15.6123 3.90448 17.1744C5.46658 18.7365 7.99924 18.7365 9.56134 17.1744L11.0613 15.6744C11.4519 15.2839 11.4519 14.6507 11.0613 14.2602C10.6708 13.8696 10.0376 13.8696 9.64712 14.2602L8.14712 15.7602C7.36608 16.5412 6.09975 16.5412 5.3187 15.7602C4.53765 14.9791 4.53765 13.7128 5.3187 12.9317L8.3187 9.93173Z",fill:"#F8F9FA"})))}const nm=i.forwardRef(tm),rm=(n.p,e=>{let{href:t}=e;const[n,r]=(0,i.useState)(!1),o=()=>r(!1),s="share-drop-page";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(s,"-tooltip"),className:"flex items-center",style:{backgroundColor:"#F8F9FA",color:"#031021",fontSize:"14px",fontWeight:500,height:"33.999px",lineHeight:"normal",padding:"12px",pointerEvents:"auto",textAlign:"center",zIndex:40},opacity:100,clickable:!1,render:()=>(0,a.jsx)(a.Fragment,{children:"Copy Drop Page URL"})}),(0,a.jsx)("div",{"data-tooltip-id":"".concat(s,"-tooltip"),"data-tooltip-place":"top",children:(0,a.jsx)("button",{className:"border rounded p-[8px]",style:{border:"1px solid var(--Neutral-300, #495057)"},onClick:()=>{r(!0),setTimeout(o,5e3),navigator.clipboard.writeText(t)},children:n?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 text-primary",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"})}):(0,a.jsx)(nm,{className:"w-5 h-5"})})})]})}),im=e=>{var t,n;let{isDapper:r,flowTokenBalance:o,spotPrice:l,dropData:c,collectionDisplayName:u,contractAddress:d,contractName:p,sendToCollectionPage:h,flowty:f,loggedUser:m}=e;const{dropStatus:g,dropStartDateFormat:v,dropStartDate:y,dropEndDateFormat:b,dropPhasePrice:w,openModal:x,showNoFundsMessage:C,isDropOwner:A,isModalOpen:E,closeModal:_,mintCount:S,maxPerMint:k,increaseMintCount:P,decreaseMintCount:D,updateMintCount:F,countdownCurrentValue:N}=ff({dropData:c,flowTokenBalance:o,flowty:f,loggedUser:m}),[I,R]=(0,i.useState)(!1),O="ACTIVE"===g,j="PENDING"===g,M="ENDED"===g,L=O&&r,B=O||M,U="mainnet"===f.config.network,V="https://".concat(U?"flowty.io":"testnet.flowty.io","/collection/").concat(d,"/").concat(p,"/?page=drop");return(0,a.jsxs)("div",{className:"py-2 mb-8 md:py-16 flex max-lg:flex-col justify-center items-center gap-20 max-lg:gap-8","data-testid":"flowty-drop-page",children:[!I&&(0,a.jsx)("div",{className:"flex w-full h-full max-w-[648px] tablet:w-[648px] tablet:h-[648px] animate-pulse bg-[#43ff640a] rounded-[2.5rem] ".concat(I?"hidden":"object-fill aspect-square")}),(0,a.jsx)("div",{className:"my-auto w-full tablet:w-[480px] 3xl:w-[648px] ".concat(I?"object-fill aspect-square":"hidden"),children:(0,a.jsx)("img",{src:(0,T.getImageURL)(null===c||void 0===c||null===(t=c.display)||void 0===t?void 0:t.url),alt:"Drop Custom",className:"rounded-[2.5rem] w-full h-full max-w-[648px] tablet:w-[480px] tablet:h-[480px] 3xl:w-[648px] 3xl:h-[648px]",onLoad:()=>{R(!0)}})}),(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-10 w-full tablet:w-[480px] 3xl:w-[648px]",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,a.jsx)(hf.X,{dropStatus:g}),(0,a.jsxs)("div",{className:"flex flex-row gap-[12px] h-[42px]",children:[(0,a.jsx)(rm,{href:V}),(0,a.jsx)(Zf,{collectionDisplayName:u,dropPageLink:V,dropStartDate:y,dropStatus:g,isDropOwner:A})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:j?"Drop Starts (Local Time Zone)":"Drop Started (Local Time Zone)"}),(0,a.jsx)("div",{className:"flex flex-col gap-2",children:(0,a.jsx)("p",{className:"text-white text-[20px] max-tablet:text-[18px] font-bold",children:v})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:M?"Ended On":"Drop Ends (Local Time Zone)"}),(0,a.jsx)("div",{className:"flex flex-col gap-2",children:(0,a.jsx)("p",{className:"text-white text-[20px] max-tablet:text-[18px] font-bold",children:b})})]})]}),B&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:"Total Purchased"}),(0,a.jsxs)("div",{className:"flex gap-1",children:[(0,a.jsx)("p",{className:"text-white text-[24px] max-tablet:text-[18px] font-bold leading-none",children:null===c||void 0===c?void 0:c.totalMinted}),O&&(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[14px] flex items-end leading-none",children:"/ unlimited"})]})]}),(0,a.jsxs)("div",{className:"flex max-tablet:flex-col gap-14 max-tablet:gap-4 justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:"Price"}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:w?(0,a.jsx)("div",{className:"flex items-center w-auto justify-start gap-x-[0.75rem]",children:0===parseFloat(w)?(0,a.jsx)("span",{className:"text-white font-montserrat text-5xl max-tablet:text-[34px] font-[700]",children:"FREE"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(lr.h,{className:"w-[2rem] h-[2rem]"}),(0,a.jsxs)("div",{className:"flex items-end gap-1",children:[(0,a.jsx)("span",{className:"text-white font-montserrat text-5xl max-tablet:text-[34px] font-[700]",children:an()(w).format("0,0.00")}),(0,a.jsx)("h4",{className:"text-[#ADB5BD] text-1xl font-normal leading-normal",children:"FLOW"})]})]})}):"-"})]}),O&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:"Quantity"}),(0,a.jsx)(cf,{mintCount:S,increaseMintCount:P,decreaseMintCount:D,updateMintCount:F,maxPerMint:k})]})]}),(O||j)&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[18px] max-tablet:text-[14px]",children:O?"Time Left":"Countdown"}),(0,a.jsx)(wh,{countdownCurrentValue:N})]}),(0,a.jsx)("div",{className:"h-[35px] flex flex-col gap-1",children:M?(0,a.jsx)(s,{variant:"secondary",bgColor:"white",text:"VIEW LISTINGS",onClick:h}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s,{variant:"secondary",bgColor:"white",text:j?"BUY NOW \u2022 COMING SOON":"Buy now",disabled:S>k||j||O&&r||C,onClick:x}),!r&&C&&(0,a.jsx)(Zh,{}),L&&(0,a.jsx)(oh,{isLoanOrRental:!1,isDapper:!0})]})})]}),(0,a.jsx)(pf,{isOpen:E,onClose:_,collectionDisplayName:u,contractAddress:d,contractName:p,dropID:(null===c||void 0===c?void 0:c.id)||"",dropImage:(0,T.getImageURL)(null===c||void 0===c||null===(n=c.display)||void 0===n?void 0:n.url),nftIdentifier:(null===c||void 0===c?void 0:c.nftType)||"",phasePrice:+w,flowty:f,spotPrice:l,mintCount:S,increaseMintCount:P,decreaseMintCount:D,updateMintCount:F,showNoFundsMessage:C,maxPerMint:k})]})};var om,am;function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sm.apply(null,arguments)}function lm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",sm({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,om||(om=i.createElement("path",{d:"M12 2.39999C8.02356 2.39999 4.80001 5.62354 4.80001 9.59999V13.9029L3.95148 14.7515C3.60828 15.0947 3.50562 15.6108 3.69136 16.0592C3.87709 16.5076 4.31466 16.8 4.80001 16.8H19.2C19.6854 16.8 20.1229 16.5076 20.3087 16.0592C20.4944 15.6108 20.3917 15.0947 20.0485 14.7515L19.2 13.9029V9.59999C19.2 5.62354 15.9765 2.39999 12 2.39999Z",fill:"#DEE2E6"})),am||(am=i.createElement("path",{d:"M12 21.6C10.0118 21.6 8.39998 19.9882 8.39998 18H15.6C15.6 19.9882 13.9882 21.6 12 21.6Z",fill:"#DEE2E6"})))}const cm=i.forwardRef(lm);n.p;var um,dm,pm,hm,fm,mm,gm,vm,ym,bm,wm,xm,Cm,Am,Em,_m;function Tm(){return Tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tm.apply(null,arguments)}function Sm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Tm({width:159,height:132,viewBox:"0 0 159 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,um||(um=i.createElement("path",{d:"M140.088 99.6C141.911 99.6 143.388 98.1225 143.388 96.3C143.388 94.4775 141.911 93 140.088 93C138.266 93 136.788 94.4775 136.788 96.3C136.788 98.1225 138.266 99.6 140.088 99.6Z",fill:"#E3E3E3"})),dm||(dm=i.createElement("path",{d:"M79.4409 132C115.889 132 145.441 102.449 145.441 66C145.441 29.5515 115.889 0 79.4409 0C42.9924 0 13.4409 29.5515 13.4409 66C13.4409 102.449 42.9924 132 79.4409 132Z",fill:"#6C757D",fillOpacity:.4})),pm||(pm=i.createElement("path",{d:"M105.923 32H54.6527C49.7569 32 45.7881 35.3269 45.7881 39.4308V96.5692C45.7881 100.673 49.7569 104 54.6527 104H105.923C110.819 104 114.788 100.673 114.788 96.5692V39.4308C114.788 35.3269 110.819 32 105.923 32Z",fill:"#F8F9FA",fillOpacity:.14})),hm||(hm=i.createElement("path",{d:"M155.423 9.58105H122.379C120.839 9.58105 119.591 10.8956 119.591 12.5126V28.8586C119.591 30.4811 120.839 31.7956 122.379 31.7956H155.423C156.963 31.7956 158.212 30.4811 158.212 28.8586V12.5126C158.212 10.8901 156.963 9.58105 155.423 9.58105Z",fill:"#575A5D"})),fm||(fm=i.createElement("path",{d:"M101.545 42.6841L101.811 41.3681L107.201 36.1041L107.551 36.8321H102.833L103.169 35.1521H109.637L109.385 36.4681L103.995 41.7321L103.617 41.0041H108.601L108.265 42.6841H101.545Z",fill:"white"})),mm||(mm=i.createElement("path",{d:"M94.7881 45.6841L94.9401 44.9321L98.0201 41.9241L98.2201 42.3401H95.5241L95.7161 41.3801H99.4121L99.2681 42.1321L96.1881 45.1401L95.9721 44.7241H98.8201L98.6281 45.6841H94.7881Z",fill:"white"})),gm||(gm=i.createElement("path",{d:"M111.383 37.684L111.725 35.992L118.655 29.224L119.105 30.16H113.039L113.471 28H121.787L121.463 29.692L114.533 36.46L114.047 35.524H120.455L120.023 37.684H111.383Z",fill:"white"})),vm||(vm=i.createElement("path",{d:"M127.841 24.2001C129.662 24.2001 131.141 22.7206 131.141 20.9001C131.141 19.0796 129.662 17.6001 127.841 17.6001C126.021 17.6001 124.541 19.0796 124.541 20.9001C124.541 22.7206 126.021 24.2001 127.841 24.2001Z",fill:"#989EA1"})),ym||(ym=i.createElement("path",{d:"M138.841 17.6001H149.841C151.661 17.6001 153.141 19.0796 153.141 20.9001C153.141 22.7206 151.661 24.2001 149.841 24.2001H138.841C137.02 24.2001 135.541 22.7206 135.541 20.9001C135.541 19.0796 137.02 17.6001 138.841 17.6001Z",fill:"#D5D5D5"})),bm||(bm=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.9114 34.1936C27.9004 33.4071 27.8014 32.6206 27.6089 31.8231C26.9159 29.0291 23.8414 27.2361 20.5634 26.8126C17.2854 26.3891 13.8809 27.3516 12.5664 29.7826C11.8129 31.1741 11.7139 32.3731 12.0164 33.3796C12.3244 34.3861 13.0449 35.2166 14.0294 35.8656C16.7739 37.6751 21.5754 38.0436 23.7699 37.2846C24.7819 36.9326 25.7719 36.5146 26.7399 36.0306C26.1899 39.1931 24.1329 42.1851 21.3939 44.8801C15.4319 50.7431 6.18641 55.1926 1.14841 56.8316C0.878907 56.9196 0.724906 57.2166 0.812906 57.5026C0.895406 57.7831 1.18691 57.9426 1.45641 57.8546C6.59341 56.1881 16.0204 51.6396 22.0979 45.6611C25.2384 42.5701 27.4769 39.0941 27.8564 35.4421C34.9514 31.4821 40.7814 24.2936 45.7644 18.2491C45.9514 18.0291 45.9239 17.6881 45.7094 17.4956C45.4949 17.3031 45.1704 17.3251 44.9834 17.5506C40.2039 23.3531 34.6544 30.2501 27.9114 34.1936ZM26.8829 34.7711C26.9214 33.8911 26.8389 32.9946 26.6134 32.0926C26.0139 29.6726 23.2749 28.2426 20.4369 27.8796C18.6989 27.6541 16.9114 27.8411 15.5089 28.4956C14.6289 28.9081 13.9029 29.5021 13.4629 30.3161C12.8909 31.3776 12.7644 32.2906 13.0009 33.0606C13.2374 33.8361 13.8204 34.4631 14.5849 34.9636C17.0874 36.6136 21.4599 36.9601 23.4564 36.2726C24.6334 35.8656 25.7774 35.3596 26.8884 34.7711H26.8829Z",fill:"#BDBDBD"})),wm||(wm=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.0492 108.015C29.6377 107.795 30.2592 107.503 30.7377 107.074C31.3042 106.568 31.5352 105.919 31.6892 105.237C31.8872 104.357 31.9697 103.422 32.2117 102.542C32.2997 102.212 32.4702 102.091 32.5472 102.036C32.7342 101.899 32.9212 101.86 33.0972 101.877C33.3062 101.893 33.5977 101.976 33.7847 102.35C33.8122 102.405 33.8452 102.482 33.8727 102.597C33.8892 102.68 33.9002 102.933 33.9222 103.037C33.9662 103.296 34.0047 103.554 34.0432 103.813C34.1642 104.676 34.2302 105.408 34.6097 106.2C35.1212 107.278 35.6327 107.932 36.3312 108.224C37.0022 108.504 37.8107 108.455 38.8392 108.229C38.9382 108.202 39.0317 108.185 39.1307 108.163C39.5817 108.081 40.0162 108.394 40.1042 108.867C40.1922 109.34 39.9062 109.802 39.4552 109.907C39.3617 109.929 39.2682 109.951 39.1802 109.967C37.7887 110.33 36.1827 111.623 35.2477 112.75C34.9617 113.097 34.5382 114.076 34.1092 114.697C33.7902 115.154 33.4327 115.456 33.1357 115.566C32.9322 115.638 32.7672 115.627 32.6242 115.588C32.4207 115.533 32.2502 115.418 32.1237 115.236C32.0522 115.137 31.9862 115 31.9587 114.829C31.9422 114.747 31.9422 114.538 31.9422 114.439C31.8542 114.12 31.7497 113.812 31.6672 113.493C31.4802 112.728 31.1172 112.244 30.6827 111.606C30.2757 111.007 29.8412 110.633 29.1977 110.33C29.1152 110.308 28.4442 110.138 28.2077 110.039C27.8612 109.896 27.6962 109.648 27.6357 109.516C27.5312 109.296 27.5257 109.098 27.5422 108.939C27.5697 108.697 27.6742 108.493 27.8557 108.328C27.9657 108.224 28.1362 108.125 28.3617 108.075C28.5377 108.037 28.9942 108.015 29.0602 108.015H29.0492ZM32.9927 106.772C33.0257 106.843 33.0587 106.92 33.0917 106.992C33.8397 108.57 34.6812 109.45 35.6987 109.874L35.7317 109.89C35.0497 110.424 34.4337 111.018 33.9607 111.59C33.7682 111.826 33.5097 112.316 33.2292 112.816C32.9762 111.953 32.5637 111.342 32.0467 110.578C31.6507 109.995 31.2327 109.555 30.7212 109.197C31.1172 108.983 31.4967 108.73 31.8267 108.438C32.3767 107.949 32.7397 107.388 32.9872 106.772H32.9927Z",fill:"#CCC6D9"})),xm||(xm=i.createElement("path",{d:"M79.7882 43.4C69.1843 43.4 60.5882 51.9961 60.5882 62.6V74.0745L58.3254 76.3372C57.4102 77.2524 57.1364 78.6288 57.6317 79.8246C58.127 81.0203 59.2939 81.8 60.5882 81.8H98.9882C100.282 81.8 101.449 81.0203 101.945 79.8246C102.44 78.6288 102.166 77.2524 101.251 76.3372L98.9882 74.0745V62.6C98.9882 51.9961 90.392 43.4 79.7882 43.4Z",fill:"#DEE2E6"})),Cm||(Cm=i.createElement("path",{d:"M79.7881 94.6C74.4861 94.6 70.1881 90.3019 70.1881 85H89.3881C89.3881 90.3019 85.09 94.6 79.7881 94.6Z",fill:"#DEE2E6"})),Am||(Am=i.createElement("path",{d:"M67.7881 60C69.3754 62.2639 73.5976 65.4333 77.7881 60",stroke:"#3D4144",strokeWidth:2})),Em||(Em=i.createElement("path",{d:"M81.7881 60C83.3754 62.2639 87.5976 65.4333 91.7881 60",stroke:"#3D4144",strokeWidth:2})),_m||(_m=i.createElement("ellipse",{cx:79.7881,cy:71,rx:2,ry:1,fill:"#3D4144"})))}const km=i.forwardRef(Sm),Pm=(n.p,e=>{let{onMouseEnter:t,onMouseLeave:n}=e;return(0,a.jsx)("div",{"data-testid":"empty-notification-menu",onMouseEnter:t,onMouseLeave:n,className:"flex px-[28px] py-[24px] flex-col justify-center items-start gap-[10px] rounded-[6px] border-[1px] border-neutral-400 bg-notifications backdrop-blur-[50px] min-w-[339px] max-w-[339px]",children:(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[32px]",children:[(0,a.jsxs)("div",{className:"inline-flex gap-[8px] items-center w-[168px]",children:[(0,a.jsx)(cm,{}),(0,a.jsx)("span",{className:"text-neutral-700 text-[16px] font-[900] leading-[16px] text-center",children:"NOTIFICATIONS"})]}),(0,a.jsxs)("div",{className:"mx-auto flex flex-col items-center gap-[14px]",children:[(0,a.jsx)(km,{}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[8px]",children:[(0,a.jsx)("span",{className:"text-[14px] text-neutral-500 font-[700]",children:"No Notifications"}),(0,a.jsx)("span",{className:"text-[12px] text-neutral-500 font-[400] text-center",children:"You will find notifications and transaction status here"})]})]})]})})});var Dm,Fm;function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(null,arguments)}function Im(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Nm({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Dm||(Dm=i.createElement("path",{d:"M12 2.39999C8.02356 2.39999 4.80001 5.62354 4.80001 9.59999V13.9029L3.95148 14.7515C3.60828 15.0947 3.50562 15.6108 3.69136 16.0592C3.87709 16.5076 4.31466 16.8 4.80001 16.8H19.2C19.6854 16.8 20.1229 16.5076 20.3087 16.0592C20.4944 15.6108 20.3917 15.0947 20.0485 14.7515L19.2 13.9029V9.59999C19.2 5.62354 15.9765 2.39999 12 2.39999Z",fill:"#DEE2E6"})),Fm||(Fm=i.createElement("path",{d:"M12 21.6C10.0118 21.6 8.39998 19.9882 8.39998 18H15.6C15.6 19.9882 13.9882 21.6 12 21.6Z",fill:"#DEE2E6"})))}const Rm=i.forwardRef(Im);n.p;var Om,jm;function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(null,arguments)}function Lm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Mm({width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Om||(Om=i.createElement("circle",{cx:6.00907,cy:6.00907,r:6.00907,fill:"#04E5A3"})),jm||(jm=i.createElement("circle",{cx:6.00907,cy:6.00907,r:6.00907,fill:"#04E5A3"})))}const Bm=i.forwardRef(Lm),Um=(n.p,e=>{let{onClick:t,isActive:n,isPulsing:r,onMouseEnter:i,onMouseLeave:s}=e;return(0,a.jsx)("button",{onMouseEnter:i,onMouseLeave:s,onClick:t,className:(0,o.cn)("rounded-[6px] cursor-pointer border-2 border-neutral-300 flex p-[8px] justify-center items-center gap-[10px] flex-shrink-0 shadow-[0px_4px_18px_0px_rgba(0, 0, 0, 0.25)] hover:bg-dropStatusIndicatorBackground",{"bg-dropStatusIndicatorBackground":n}),children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(Rm,{className:"w-[24px] h-[24px] md:w-[28px] md:h-[28px]"}),r?(0,a.jsx)("div",{className:"absolute -top-1 -right-0","data-testid":"pulse",children:(0,a.jsx)(Bm,{className:"animate-pulse"})}):null]})})}),Vm=Um,Hm=(e,t)=>{const n=(0,i.useRef)(null),r=(0,i.useRef)(null),o=(0,i.useCallback)((n=>{n[0].isIntersecting&&t&&e()}),[e,t]);return(0,i.useEffect)((()=>(r.current&&r.current.disconnect(),r.current=new IntersectionObserver(o,{rootMargin:"0px"}),n.current&&r.current.observe(n.current),()=>{r.current&&r.current.disconnect()})),[o]),n};var zm,Wm;function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(null,arguments)}function Gm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",qm({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,zm||(zm=i.createElement("path",{d:"M12 2.39999C8.02356 2.39999 4.80001 5.62354 4.80001 9.59999V13.9029L3.95148 14.7515C3.60828 15.0947 3.50562 15.6108 3.69136 16.0592C3.87709 16.5076 4.31466 16.8 4.80001 16.8H19.2C19.6854 16.8 20.1229 16.5076 20.3087 16.0592C20.4944 15.6108 20.3917 15.0947 20.0485 14.7515L19.2 13.9029V9.59999C19.2 5.62354 15.9765 2.39999 12 2.39999Z",fill:"#DEE2E6"})),Wm||(Wm=i.createElement("path",{d:"M12 21.6C10.0118 21.6 8.39998 19.9882 8.39998 18H15.6C15.6 19.9882 13.9882 21.6 12 21.6Z",fill:"#DEE2E6"})))}const Ym=i.forwardRef(Gm);n.p;var Km,Qm;function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(null,arguments)}function Zm(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Xm({width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Km||(Km=i.createElement("circle",{cx:6.00907,cy:6.00907,r:6.00907,fill:"#04E5A3"})),Qm||(Qm=i.createElement("circle",{cx:6.00907,cy:6.00907,r:6.00907,fill:"#04E5A3"})))}const Jm=i.forwardRef(Zm);n.p;function $m(e){const t=Date.now()-e;if(t<6e4)return"Just now";if(t>6e4&&t<12e4)return"1 min ago";if(t<36e5)return"".concat(Math.floor(t/6e4)," mins ago");if(t>36e5&&t<72e5)return"1 hour ago";if(t<864e5)return"".concat(Math.floor(t/36e5)," hours ago");if(t>864e5&&t<1728e5)return"1 day ago";if(t<6048e5)return"".concat(Math.floor(t/864e5)," days ago");return new Date(e).toLocaleDateString()}const eg=e=>{var t,n;let{amount:r,transactionID:o,listingType:s,imageUrl:l,status:c,timestamp:u,title:d,transferAddress:p,id:h,token:f,nftId:m,nftType:g,queueMessage:v}=e;null!==(t=f)&&void 0!==t&&t.includes("A.")&&(f=qt.IdentifierToPaymentToken[f]);const y=function(e){let{listingType:t,amount:n,title:r,token:i,transferAddress:o}=e;const s=(0,a.jsx)("strong",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-black",children:r}),l=(0,a.jsx)(Er,{token:null===i||void 0===i?void 0:i.toLowerCase()}),c=(0,a.jsxs)("strong",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-black",children:[" ",o," "]}),u=(0,a.jsxs)("span",{className:"inline-flex items-center gap-[4px]",children:[l,(0,a.jsx)("strong",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-black",children:an()(n).format("0,0.00")})]});switch(t){case"bulkDelisting":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Bulk Delisted ",s," for sale"]});case"bulkListing":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Bulk Listed ",s," for sale at ",u]});case"storefront":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Listed ",s," for sale at ",u]});case"purchase":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Bought ",s," for ",u]});case"rental":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Listed ",s," for rent"]});case"rent":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Rented ",s," for ",u]});case"loan":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Listed ",s," for a ",u," loan"]});case"fundLoan":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Funded ",u," loan on ",s]});case"loanBorrower":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Repaid ",u," loan on ",s]});case"transfer":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Transfer ",s," to ",c]});case"makeOffer":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Make offer to buy ",s," for ",u]});case"acceptOffer":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Accepted offer ",s," for ",u]});case"cancelOffer":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Cancel offer to buy ",s," for ",u]});case"delistSale":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Delisted sale listing for ",s]});case"delistRental":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Delisted rental listing for ",s]});case"delistLoan":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Delisted loan listing for ",s]});case"fundRental":return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["You rented ",s]})}return""}({amount:null!==r&&void 0!==r?r:0,listingType:s,title:d,token:null!==(n=f)&&void 0!==n?n:"",transferAddress:p}),b=$m(u),{contract:{address:w,name:x},resourceName:C,nftID:A}=(0,T.nftTypeAndIdToLocationData)(null!==g&&void 0!==g?g:"",null!==m&&void 0!==m?m:""),E=w&&x&&C&&A;return(0,i.useEffect)((()=>{var e;v&&("PROCESSING"===c&&v({id:null!==(e=null===h||void 0===h?void 0:h.toString())&&void 0!==e?e:"",type:T.NotificationType.Transaction}))}),[h,v,c]),(0,a.jsxs)("a",{href:E?"/asset/".concat(w,"/").concat(x,"/").concat(C,"/").concat(A):void 0,className:"inline-flex items-start gap-[16px] ".concat(E?"":"pointer-events-none"),"data-testid":"notification-item-".concat(o),children:[(0,a.jsxs)("div",{className:"hidden md:block md:relative",children:[(0,a.jsx)("img",{src:null!==l&&void 0!==l?l:Qt,className:"w-[48px] h-[48px] rounded-[8px]",alt:"Notification Icon"}),(0,a.jsx)("div",{className:"absolute -top-1 -right-1",children:"PROCESSING"===c?(0,a.jsx)(Jm,{className:"animate-pulse"}):null})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] items-start flex-1",children:[(0,a.jsx)("div",{className:"flex flex-row items-center flex-wrap",children:y}),(0,a.jsxs)("div",{className:"flex gap-[8px]",children:[(0,a.jsx)(z,{text:null!==c&&void 0!==c?c:"",status:c}),(0,a.jsx)("span",{className:"text-neutral-500 text-[12px] font-[400]",children:b})]})]})]})},tg=e=>{let{title:t,imageUrl:n,listingStatus:r,token:i,nftId:o,nftType:s,flowtyStorefrontAddress:l,listingResourceID:c,transactionID:u,timestamp:d,message:p}=e;const h=$m(d),{contract:{address:f,name:m},resourceName:g,nftID:v}=(0,T.nftTypeAndIdToLocationData)(null!==s&&void 0!==s?s:"",null!==o&&void 0!==o?o:""),y=f&&m&&g&&v;return(0,a.jsxs)("a",{href:y?"/asset/".concat(f,"/").concat(m,"/").concat(g,"/").concat(v):void 0,className:"inline-flex items-start gap-[16px] ".concat(y?"":"pointer-events-none"),"data-testid":"notification-item-".concat(u),children:[(0,a.jsx)("div",{className:"hidden md:block md:relative",children:(0,a.jsx)("img",{src:null!==n&&void 0!==n?n:Qt,className:"w-[48px] h-[48px] rounded-[8px]",alt:"Notification Icon"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] items-start flex-1",children:[(0,a.jsx)("div",{className:"flex flex-row items-center flex-wrap",children:p}),(0,a.jsx)("div",{className:"flex gap-[8px]",children:(0,a.jsx)("span",{className:"text-neutral-500 text-[12px] font-[400]",children:h})})]})]})};function ng(e){let{type:t,amount:n,title:r,token:i,wallet:o,loggedUserAddress:s,timeRemaining:l,countdown:c}=e;const u=(0,a.jsx)("strong",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-black",children:r}),d=(0,a.jsx)(Er,{token:null===i||void 0===i?void 0:i.toLowerCase()}),p=(0,a.jsxs)("span",{className:"inline-flex items-center gap-[4px]",children:[d,(0,a.jsx)("strong",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-black",children:an()(n).format("0,0.00")})]});switch(t){case T.NotificationType.StorefrontPurchased:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Sold ",u," for ",p]});case T.NotificationType.OfferAccepted:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Your offer of ",p," on ",u," was accepted by"," ",o]});case T.NotificationType.OfferReceived:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["You have received a ",p," offer on ",u]});case T.NotificationType.OfferExpired:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Your offer for ",p," on ",u," has expired"]});case T.NotificationType.RentalFunded:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[u," was rented by ",o," for ",p]});case T.NotificationType.RentalReturned:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[u," was returned by ",o]});case T.NotificationType.RentalSettled:return o===s?(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["You did not return ",u," rental on time"]}):(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Your rented ",u," was not returned"]});case T.NotificationType.PrivateRental:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["A private rental listing for ",u," was created for you"]});case T.NotificationType.RentalExpirationWarning:return o===s?(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[l," to return ",u," or you will forfeit your refundable deposit"]}):(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Renter has ",l," to return ",u]});case T.NotificationType.LoanFunded:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[o," funded your ",u," loan"]});case T.NotificationType.LoanRepaid:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Borrower repaid ",p," loan on ",u]});case T.NotificationType.ListingInvalid:return(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[u," Loan listing for ",p," is no longer valid"]});case T.NotificationType.LoanSettled:return o===s?(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["You did not repay ",p," loan on ",u," on time"]}):(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Your ",p," funding of ",u," was not repaid"]});case T.NotificationType.LoanExpirationWarning:return o===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:["Borrower has ",c," to repay loan"," "]}),(0,a.jsxs)("span",{className:"min-w-4  text-[14px] font-[400]",children:["on ",u]})]}):(0,a.jsxs)("span",{className:"text-[#DEDEDE] font-montserrat text-[14px] font-[400] flex flex-row gap-[4px] items-center flex-wrap",children:[c," to repay loan on ",u]});default:return null}}const rg=e=>{let{amount:t,transactionID:n,imageUrl:r,timestamp:i,title:o,id:s,token:l,nftId:c,nftType:u,flowtyStorefrontAddress:d,listingResourceID:p,type:h,listingStatus:f,listingType:m}=e;const g=ng({amount:t,title:o,token:l,type:h});return(0,a.jsx)(tg,{title:o,imageUrl:r,listingStatus:f,token:l,nftId:c,nftType:u,flowtyStorefrontAddress:d,listingResourceID:p,transactionID:n,message:g,timestamp:i,listingType:m,type:h})},ig=e=>{let{amount:t,transactionID:n,imageUrl:r,timestamp:i,title:o,token:s,nftId:l,nftType:c,payerAddress:u,type:d,listingType:p,offerResourceID:h}=e;const f=ng({amount:t,title:o,token:s,type:d,wallet:u});return(0,a.jsx)(tg,{title:o,imageUrl:r,token:s,nftId:l,nftType:c,flowtyStorefrontAddress:u,listingResourceID:h,transactionID:n,message:f,timestamp:i,listingType:p,type:d})},og=e=>{let{rentalFee:t,transactionID:n,imageUrl:r,timestamp:i,title:o,token:s,nftId:l,nftType:c,renterAddress:u,type:d,listingType:p,listingResourceID:h,loggedUserAddress:f}=e;const m=ng({amount:t,loggedUserAddress:f,title:o,token:s,type:d,wallet:u});return(0,a.jsx)(tg,{title:o,imageUrl:r,token:s,nftId:l,nftType:c,listingResourceID:h,transactionID:n,message:m,timestamp:i,listingType:p,type:d})},ag=e=>{let{rentalFee:t,transactionID:n,imageUrl:r,timestamp:i,title:o,token:s,nftId:l,nftType:c,renterAddress:u,type:d,timeRemaining:p,listingType:h,listingResourceID:f,loggedUserAddress:m}=e;const g=ng({amount:t,loggedUserAddress:m,timeRemaining:p,title:o,token:s,type:d,wallet:u});return(0,a.jsx)(tg,{title:o,imageUrl:r,token:s,nftId:l,nftType:c,listingResourceID:f,transactionID:n,message:g,timestamp:i,listingType:h,type:d})},sg=e=>{let{amount:t,transactionID:n,imageUrl:r,timestamp:i,title:o,token:s,marketplaceAmount:l,nftId:c,nftType:u,lenderAddress:d,type:p,listingType:h,listingResourceID:f,loggedUserAddress:m}=e;const g=m===d,v=ng({amount:T.NotificationType.LoanRepaid||T.NotificationType.LoanSettled&&g?l:t,loggedUserAddress:m,title:o,token:s,type:p,wallet:d});return(0,a.jsx)(tg,{title:o,imageUrl:r,token:s,nftId:c,nftType:u,listingResourceID:f,transactionID:n,message:v,timestamp:i,listingType:h,type:p})};var lg=n(50694),cg=n(40559),ug=n(50453),dg=n(59513),pg=n(42762),hg=n(40485);const fg=e=>e instanceof hg.Dc?e.toDate():e,mg=e=>{const[t,n]=(0,i.useState)("00:00:00"),r=fg(e);return(0,i.useEffect)((()=>{const e=()=>{n(((e,t)=>{if((0,lg.A)(e,t)<=0)return"Expired";const n=(0,cg.A)(e,t),r=(0,ug.A)(e,t)%60,i=(0,dg.A)(e,t)%60,o=n>0?"".concat(String(n).padStart(2,"0"),"h "):"",a=n>0||r>0?"".concat(String(r).padStart(2,"0"),"m "):"",s=n>0||r>0||i>0?"".concat(String(i).padStart(2,"0"),"s"):"";return"".concat(o).concat(a).concat(s).trim()})(r,new Date))},t=setInterval(e,1e3);return e(),()=>clearInterval(t)}),[e]),t},gg=e=>{let{amount:t,transactionID:n,imageUrl:r,timestamp:i,title:o,token:s,nftId:l,nftType:c,lenderAddress:u,type:d,listingType:p,listingResourceID:h,loggedUserAddress:f,expiresOn:m}=e;const g=mg(m);if("Expired"===g)return null;const v=ng({amount:t,countdown:g,loggedUserAddress:f,title:o,token:s,type:d,wallet:u});return(0,a.jsx)(tg,{title:o,imageUrl:r,token:s,nftId:l,nftType:c,listingResourceID:h,transactionID:n,message:v,timestamp:i,listingType:p,type:d})},vg=(e,t,n,r)=>{switch(e){case"TRANSACTION":return(0,a.jsx)(eg,{...t,queueMessage:r});case T.NotificationType.StorefrontPurchased:return(0,a.jsx)(rg,{...t});case T.NotificationType.OfferAccepted:case T.NotificationType.OfferReceived:case T.NotificationType.OfferExpired:return(0,a.jsx)(ig,{...t,queueMessage:r});case T.NotificationType.RentalFunded:case T.NotificationType.RentalReturned:case T.NotificationType.RentalSettled:case T.NotificationType.PrivateRental:return(0,a.jsx)(og,{...t,loggedUserAddress:n,queueMessage:r});case T.NotificationType.RentalExpirationWarning:return(0,a.jsx)(ag,{...t,loggedUserAddress:n});case T.NotificationType.LoanFunded:case T.NotificationType.LoanSettled:case T.NotificationType.LoanRepaid:case T.NotificationType.ListingInvalid:return(0,a.jsx)(sg,{...t,loggedUserAddress:n,queueMessage:r});case T.NotificationType.LoanExpirationWarning:return(0,a.jsx)(gg,{...t,loggedUserAddress:n});default:return null}},yg=e=>{let{notifications:t,queueMessage:n,label:r,loggedUserAddress:i}=e;return t.length<=0?null:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-[#DEE2E6] text-[14px] font-normal mb-[16px]",children:r}),t.map(((e,r)=>(0,a.jsx)("div",{className:"".concat(r===t.length-1?"mb-0":"mb-[24px]"),children:vg(e.type,e,i,n)},"".concat(e.id,"-").concat(r))))]})},bg=yg,wg=e=>{let{notifications:t,queueMessage:n,onMouseEnter:r,hasMore:o,fetchMoreNotifications:s,onMouseLeave:l,loggedUserAddress:c}=e;const{notificationsFromToday:u,notificationsFromBeforeToday:d,pinnedNotifications:p}=(0,i.useMemo)((()=>(e=>{const t=Date.now()-864e5,n=[],r=[],i=[];return e.forEach((e=>{if(T.NotificationType.LoanExpirationWarning===e.type){const t=fg(e.expiresOn),r=new Date;if(!(0,pg.default)(t,r))return;n.push(e)}else e.timestamp>t?r.push(e):i.push(e)})),n.sort(((e,t)=>{const n=fg(e.expiresOn).getTime();return fg(t.expiresOn).getTime()-n})),r.sort(((e,t)=>t.timestamp-e.timestamp)),i.sort(((e,t)=>t.timestamp-e.timestamp)),{notificationsFromBeforeToday:i,notificationsFromToday:r,pinnedNotifications:n}})(t)),[t]),h=Hm((()=>{s&&s()}),o);return(0,a.jsx)("div",{"data-testid":"notification-menu",onMouseEnter:r,onMouseLeave:l,className:"flex flex-col justify-center items-start gap-[10px] rounded-[6px] border-[1px] border-neutral-400 bg-notifications backdrop-blur-[50px] w-max",children:(0,a.jsxs)("div",{className:"max-h-[450px] md:max-h-[700px] flex flex-col items-start gap-[24px] overflow-auto py-[24px] px-[28px]",children:[(0,a.jsxs)("div",{className:"inline-flex gap-[8px] items-center w-full md:w-[168px]",children:[(0,a.jsx)(Ym,{}),(0,a.jsx)("span",{className:"text-neutral-700 text-[16px] font-[900] leading-[16px] text-center",children:"NOTIFICATIONS"})]}),(0,a.jsx)("div",{className:"flex flex-col p-2 md:py-[18px] md:px-[24px] items-start gap-[16px] rounded-[4px] border-[1px] border-tipBorder bg-tipBg",children:(0,a.jsxs)("p",{className:"w-full md:w-[321px] text-[#DEDEDE] text-sm md:text-[14px] leading-normal",children:[(0,a.jsx)("strong",{children:"Tip:"})," Complete one transaction before starting another to limit failed transactions."]})}),(0,a.jsxs)("div",{className:"w-full md:w-[369px] flex flex-col items-start gap-[8px]",children:[p&&p.length>0&&(0,a.jsx)(bg,{label:"Expiring Soon",notifications:p,queueMessage:n,loggedUserAddress:c||""}),(0,a.jsx)(bg,{label:"Today",notifications:u,queueMessage:n,loggedUserAddress:c||""}),(0,a.jsx)(bg,{label:"Past Notifications",notifications:d,queueMessage:n,loggedUserAddress:c||""}),(0,a.jsx)("div",{className:"border-2 border-transparent",ref:h})]})]})})},xg=e=>{let{notifications:t,queueMessage:n,hasMore:r,fetchMoreNotifications:o,loading:s,loggedUserAddress:l}=e;const{setMouseExited:c,showMenuNotifications:u,toggleMenu:d}=(()=>{const[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(!1),o=(0,i.useCallback)((()=>{n&&e&&(t(!1),r(!1))}),[n,e]);return(0,i.useEffect)((()=>(window.addEventListener("click",o),()=>{window.removeEventListener("click",o)})),[o]),{closeMenu:o,setMouseExited:r,showMenuNotifications:e,toggleMenu:()=>{t(!e)}}})();return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"md:relative",children:[(0,a.jsx)(Vm,{onMouseEnter:()=>c(!1),onMouseLeave:()=>c(!0),isPulsing:void 0!==(null===t||void 0===t?void 0:t.find((e=>"PROCESSING"===e.status))),onClick:d,isActive:u}),(0,a.jsxs)("div",{className:"mt-4 px-[32px] md:px-0 fixed md:absolute mx-auto w-screen md:w-auto left-1/2 -translate-x-1/2 md:left-0 md:translate-x-0 md:right-0 flex justify-end",children:[!s&&u&&t.length>0&&(0,a.jsx)(wg,{notifications:t,queueMessage:n,hasMore:r,fetchMoreNotifications:o,onMouseEnter:()=>c(!1),onMouseLeave:()=>c(!0),loggedUserAddress:l}),!s&&u&&t.length<=0&&(0,a.jsx)(Pm,{onMouseEnter:()=>c(!1),onMouseLeave:()=>c(!0)})]})]})})},Cg=e=>{let{onDismiss:t,connectDapperWallet:n}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-row justify-between px-[18px] md:px-[64px] py-[18px] bg-[#e2e2e2] custom-opacity-dapperbar",children:[(0,a.jsx)("div",{}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center gap-[8px]",children:[(0,a.jsx)("h2",{className:"text-[#ADB5BD] font-montserrat text-[12px] md:text-[16px] font-black leading-normal tracking-[.125em] uppercase",children:"Top shot user?"}),(0,a.jsx)("button",{onClick:n,className:"uppercase text-[#F8F9FA] font-montserrat text-[12px] md:text-[16px] font-black leading-normal tracking-[.125em] underline underline-offset-[3px]",rel:"noopener noreferrer",children:"Sign in with your dapper wallet"})]}),(0,a.jsx)("button",{onClick:t,children:(0,a.jsx)("svg",{className:"justify-end",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#ADB5BD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},Ag=n.p+"static/media/BackgroundSquares.86c4b845130245523ec3.png";var Eg;function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(null,arguments)}function Tg(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",_g({xmlns:"http://www.w3.org/2000/svg",width:33,height:8,viewBox:"0 0 33 8",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Eg||(Eg=i.createElement("path",{d:"M32.3536 4.35355C32.5488 4.15829 32.5488 3.84171 32.3536 3.64645L29.1716 0.464466C28.9763 0.269204 28.6597 0.269204 28.4645 0.464466C28.2692 0.659728 28.2692 0.976311 28.4645 1.17157L31.2929 4L28.4645 6.82843C28.2692 7.02369 28.2692 7.34027 28.4645 7.53553C28.6597 7.7308 28.9763 7.7308 29.1716 7.53553L32.3536 4.35355ZM0 4.5H32V3.5H0V4.5Z",fill:"#F8F9FA"})))}const Sg=i.forwardRef(Tg);n.p;var kg,Pg,Dg,Fg;function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(null,arguments)}function Ig(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Ng({xmlns:"http://www.w3.org/2000/svg",width:18,height:16,viewBox:"0 0 18 16",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,kg||(kg=i.createElement("path",{d:"M17.9464 8.85192C17.901 8.7728 17.7885 8.73307 17.6982 8.71329C17.1786 8.71329 12.712 8.55504 12.712 3.99951C12.712 3.86104 12.5768 3.74219 12.4183 3.74219C12.261 3.74219 12.1256 3.86104 12.1256 3.99951C12.1256 8.55504 7.65842 8.71329 7.16195 8.71329C7.09435 8.71329 7.02656 8.73307 6.98149 8.7728C6.93624 8.79258 6.91352 8.83198 6.89136 8.85192C6.84611 8.93121 6.84611 9.03012 6.89136 9.1094C6.93643 9.18885 7.0491 9.24804 7.16195 9.24804C7.16195 9.24804 7.16195 9.24804 7.18448 9.24804C7.70349 9.24804 12.1481 9.40661 12.1481 13.9617C12.1481 14.1001 12.2833 14.2191 12.4416 14.2191C12.5995 14.2191 12.7346 14.1001 12.7346 13.9617C12.7346 9.42623 17.179 9.24804 17.6984 9.24804C17.8111 9.24804 17.9012 9.18885 17.9692 9.1094C18.0139 9.03012 18.0139 8.93137 17.9464 8.85192Z",fill:"url(#paint0_linear_10301_3261)"})),Pg||(Pg=i.createElement("path",{d:"M5.7327 12.0638C5.48609 12.0638 3.26696 11.9775 3.26696 9.26093C3.26696 9.10984 3.14366 8.98047 3 8.98047C2.85617 8.98047 2.73287 9.10967 2.73287 9.26093C2.73287 11.9775 0.513738 12.0638 0.26713 12.0638C0.246608 12.0638 0.246608 12.0638 0.246608 12.0638C0.102781 12.0853 0 12.1928 0 12.3439C0 12.495 0.123304 12.6243 0.26713 12.6243C0.53426 12.6243 2.73287 12.7103 2.73287 15.4268C2.73287 15.5776 2.85617 15.7073 3 15.7073C3.1233 15.7504 3.24661 15.6212 3.24661 15.4486C3.24661 12.7318 5.46574 12.6457 5.71235 12.6457H5.73287C5.8767 12.6457 6 12.5165 6 12.3439C5.99983 12.1928 5.87653 12.0638 5.7327 12.0638Z",fill:"url(#paint1_linear_10301_3261)"})),Dg||(Dg=i.createElement("path",{d:"M8.30398 3.66842C8.44798 3.66842 8.57129 3.53892 8.57129 3.36631C8.57129 3.21525 8.44798 3.08593 8.30398 3.08593C8.0577 3.08593 5.83834 2.99954 5.83834 0.280555C5.83834 0.129501 5.71504 0 5.5712 0C5.42737 0 5.30424 0.129501 5.30424 0.280555C5.30424 2.99971 3.08487 3.08593 2.83843 3.08593C2.81774 3.08593 2.81774 3.08593 2.81774 3.08593C2.6739 3.10748 2.57129 3.21525 2.57129 3.36631C2.57129 3.51736 2.6946 3.64686 2.83843 3.64686C3.10556 3.64686 5.30424 3.73308 5.30424 6.45224C5.30424 6.60329 5.42737 6.73279 5.5712 6.73279C5.69451 6.75452 5.81782 6.62502 5.81782 6.47379C5.81782 3.75463 8.03685 3.66842 8.28363 3.66842H8.30398Z",fill:"url(#paint2_linear_10301_3261)"})),Fg||(Fg=i.createElement("defs",null,i.createElement("linearGradient",{id:"paint0_linear_10301_3261",x1:6.85742,y1:8.98066,x2:18.0003,y2:8.98066,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#AA4FFF"}),i.createElement("stop",{offset:1,stopColor:"#40FFC7"})),i.createElement("linearGradient",{id:"paint1_linear_10301_3261",x1:0,y1:12.3481,x2:6,y2:12.3481,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#AA4FFF"}),i.createElement("stop",{offset:1,stopColor:"#40FFC7"})),i.createElement("linearGradient",{id:"paint2_linear_10301_3261",x1:2.57129,y1:3.36759,x2:8.57129,y2:3.36759,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#AA4FFF"}),i.createElement("stop",{offset:1,stopColor:"#40FFC7"})))))}const Rg=i.forwardRef(Ig),Og=(n.p,n.p+"static/media/AllDay.f774f346f02f3c5deddc.png"),jg=n.p+"static/media/doodles.3718dc084c6ede1a8006.png",Mg=n.p+"static/media/JollyJokers.2d5ebc9b791e4ac5a3ad.png",Lg=n.p+"static/media/ufc.a47b6148bd8785e3552b.png",Bg=n.p+"static/media/TopShot.159b45f779c7409f3d6f.png";const Ug=n.p+"static/media/GrayHover.74cc9dd72e59858b9f06f2d6e71faaae.svg",Vg=()=>{const e=[{image:Bg,url:"/collection/0x0b2a3299cc857e29/TopShot"},{image:Og,url:"/collection/0xe4cf4bdc1751c65d/AllDay"},{image:Lg,url:"/collection/0x329feb3ab062d289/UFC_NFT"},{image:jg,url:"/collection/0xe81193c424cfd3fb/Doodles"},{image:Mg,url:"/collection/0x699bf284101a76f1/JollyJokers"}];return(0,a.jsxs)("div",{style:{backgroundImage:"url(".concat(Ag,")")},className:"bg-cover bg-center bg-no-repeat flex flex-col justify-center items-center container pt-[40px] pb-[76px] relative z-10 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("h2",{className:"text-center font-montserrat text-[40px] lg:text-[64px] font-extrabold pb-[3px] md:pb-[12] lg:pb-[18px] leading-normal",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #FFF 0%, #AEAEAE 100%)",backgroundClip:"text",lineHeight:"normal !important"},children:["Buy, Sell,"," ",(0,a.jsxs)("div",{className:"block md:inline",children:[" ",(0,a.jsx)("span",{className:"font-montserrat text-[40px] lg:text-[64px] font-extrabold leading-normal",children:"Rent,"})," ",(0,a.jsx)("span",{className:"font-montserrat text-[40px] lg:text-[64px] font-normal leading-normal",children:"&"})," ",(0,a.jsx)("span",{className:"font-montserrat text-[40px] lg:text-[64px] font-extrabold leading-normal",children:"Loan"})]})]}),(0,a.jsxs)("div",{className:"mb-[3px] md:mb-[12] lg:mb-[18px] flex flex-row gap-[2px] md:gap-[4px] justify-center text-center",children:[(0,a.jsx)("h1",{className:"text-center font-montserrat text-[12px] lg:text-[18px] font-medium leading-normal",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #AA4FFF 0%, #40FFC7 100%)",backgroundClip:"text"},children:"on the highest volume marketplace for Flow NFTs"}),(0,a.jsx)(Rg,{})]}),(0,a.jsxs)("h4",{className:"text-center leading-normal font-montserrat text-[#ADB5BD] text-[12px] lg:text-[16px] font-normal",children:["In 2023, the"," ",(0,a.jsx)("span",{className:"text-center leading-normal font-montserrat text-[#ADB5BD] text-[12px] lg:text-[16px] font-bold",children:"top 5 sales"})," ","across the entire Flow Blockchain took place on Flowty"]})]}),(0,a.jsxs)("div",{className:"mt-[28px] md:mt-[50px] lg:mt-[80px]",children:[(0,a.jsx)("div",{className:"flex flex-row justify-center flex-wrap gap-[18px] md:gap-[15px] lg:gap-x-[24px]",children:e.map((e=>(0,a.jsx)("a",{href:e.url,className:"custom-bg-collections-landing rounded-[8px] border-[#343A40] hover:border-[#5E5E5E] backdrop-blur-xl w-[90px] h-[90px] md:w-[80px] md:h-[80px] lg:w-[124px] lg:h-[124px] p-[12px]",children:(0,a.jsx)("img",{src:e.image,alt:e.url,className:"w-full h-full"})},e.url)))}),(0,a.jsxs)("a",{href:"/marketplace",className:"flex flex-row justify-center items-center gap-[8px] mt-[24px] cursor-pointer",children:[(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAORSURBVHgB5VVLbE1BGP7/mTn3etUGFa3WeyMSERGJBCESsfCMVIKKhgULNhYSsZSwsGIpRKuNsPDYSFhIEAsRW89EqN62QkW0vb0958z8vpnbXldvtbUUkzuZM6/v+x/fP5foX2880YNRV+sqcbLRETnH6iHV7HsxkXvjE8jlKpPLHmeWRmFOAW+Z2QrxnTSRSzS/sevvCXJX6gyZwwDZhBNzyIkDaIrDVoRSrKUkFIicyCtheuOMvkqz934enyB3vU5Rclsx13oQoWEwjOFbQKASrCdMYrFmse9AkrNGnxhJokbiA/ykIp6HS6q4LwpkqmQMYoU14Ilfcb5L0btqZe2OSrwKl3g5Bi1+j0ljRTtyiotzfwKRYxcsdz54GEnCHDurxybI3awHyHIPDCyDeIOAjCf0SYDR7K3Hz+G7k5Scxd7bkHQJBDOpu2XqHwk0x6dxqAxYIiCicwT1RADW3lrsd6SZ9Hhac+A+3GqRkBffyUbCDaMTdLatY5GDADEgARhlMGYQktfoWVzOImw+ZLlJmewxqm7q9teg2nnwICHh1CsMvm3JdLUurSAwzu70g/i4M6xHZ1JH0tr9a4jdeXhRpZT6nrHx0f7qhgCuO5p3k+KdwhLjfOLlizg6K7yyhPsruQrrMsgSMumj7ZxQj58gFGeijmtfDOl7+fpDnQG8vW07KbcVIYoh5pB1KIGLYoMvJdxhpvZra2H7XSxB+0EVsIZ7UkoaqLbpdXlcTWfLZgh1G8AjZFt57aqipAORpvRcPHSnFKK0vvEJhgsAz+NcH5h7vSGGoovZ9quLSuhdLetRFxuQrxgVNgjsRCHBjl0CMgvSx3GZQb9X8rvW6WYKPStWK8XwcwAH8qit7iRxzWR0FRSwDPqfhGqOvAgAHGqFgvKELU07RXN39VSqyLcl+39Abu9xIY9ZP9TR70dCEWjDOxTJiqH82PCMwHL2+ic8gr6alfpQDl5JgIYYPkABFfBZQIQK3gtXTH4C912o5JBEV6zmQIYXnJxVlj6NxKsgmGyyNwDTDoxBAA0qIa9xyNA/bCjhgMtOwYpQ0UoFEiX8NabMvZF4oz/X3beqI9u7B7GogfuzgDnAWvoQKoTOWdJK4xUykLEGcK9E8tIm8VOqO/xtYgTlraN5Bh6mzSx6Gd62PIrNYgSFfj43Hz/6sKCpMNb1Cf9lZj+2LbScLNaZCMKhd4WafR/pv2g/Ae+twi162FdHAAAAAElFTkSuQmCC",alt:"Flowty Verified Collection",className:"w-[16px] h-[16px] lg:w-[24px] lg:h-[24px]"}),(0,a.jsx)("span",{className:"text-[#F8F9FA] font-montserrat leading-normal text-[14px] sm:text-[18px] font-semibold",children:"View 200+ verified Collections"}),(0,a.jsx)(Sg,{})]})]}),(0,a.jsx)("img",{src:Ug,alt:"Gray Hover",className:"h-[640px] absolute bottom-[-150px] md:bottom-[-320px] rounded-[1177px] -z-50",style:{background:"radial-gradient(50% 50% at 50% 50%, rgba(157, 157, 157, 0.19) 0%, rgba(3, 16, 33, 0.10) 99.99%, rgba(3, 16, 33, 0.00) 100%)"}})]})},Hg=()=>{const e=1440,t=1024,n=640,r=768,o=1440,a=i=>i<n?"xs":i<r?"mobile":i<t?"tablet":i<e?"laptop":i<o?"desktop":"xl",[s,l]=(0,i.useState)(a(window.innerWidth));return(0,i.useEffect)((()=>{const e=()=>{l(a(window.innerWidth))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),s};var zg;function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(null,arguments)}function qg(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Wg({width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,zg||(zg=i.createElement("path",{d:"M12.1667 4.46507L18 10.2984M18 10.2984L12.1667 16.1317M18 10.2984L3 10.2984",stroke:"#031021",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})))}const Gg=i.forwardRef(qg);n.p;var Yg,Kg;function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(null,arguments)}function Xg(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Qg({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Yg||(Yg=i.createElement("rect",{width:22,height:22,fill:"url(#pattern0_8466_48)"})),Kg||(Kg=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_8466_48",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_8466_48",transform:"scale(0.003125)"})),i.createElement("image",{id:"image0_8466_48",width:320,height:320,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAgAElEQVR4Ae2dB7huT1ndEwHRIKKCCoKggAVEjCIIKFZEo1FQFLugIIKAjRjBhl0E7CU27A2l2EtQURQ7sYAlil1jQcQWNaZM9m//37WfdebM/sq59577fees/TznvFP3nlnzzvqmz7/5N3mCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCBwtAq21f0viXWLWn/zc/2gzm4QHgSAQBBwBJzaRnkvCul3h/R0xB4EgEASOEoGe3Hq7MhXiExKRQSAIXAgEerLr7ZsyuU/YTe+JXxAIAkHguiDQk1hvX0tUH87ta3HiHgSCQBA4KAScuK7A/AqtNf6WiRPMB5XRJCYIBIEg0CPQk9aKXQS3qwwR9kDHHgSCwOEhsEJ4IjAI70b294qtNf5uUm4eTmGdJOWf1uDhFX1SFASCAAiIBIVGa+1mrbXXb63du7X2Lq21B7XWHtxae7/W2vu31t63tfaerbV3bq3dt7X2eq21m1Y32AkQ80yCendkEAgCQeCqIiCSkdzn5cRR+Grd3b619h6ttadMBPeC1tpLW2v/2lr7v+3k88/l98cTAX5ja+0DW2t3aa29SqXDiXD5hn3rlJv8IoNAEAgCOyMg4htJf4n83U3m1tpbttY+rbX2s621v2utQXD/u4jv/01+m/4gR/x/eyLAp7XW7tdae6XR93DjmyM/S8vSdd4UTuEjg0AQuMQIFEmou6mW1ykSGZFJa+1erbXHtda+v1p0/8tafCI9EZzsI0kYSPNvp67yb7XWvri1dv/qTt9IxUMaMCstku5fbsrHnC/5RwaBIBAEFgREIB1piPxEirIjGaujm/rmrbXHt9a+rbX2J9bCg8hGfyPSG7mpo/yyqSv9wsnypNba27bWbqlEW5pvPFo+MxhLnNOv+JFBIAgEgRkBIxMnOW89yYw/hMOExWOnlt8Ptdb+3IhPZDYiP9zkv4sUCSL/aZpM+ZHW2hNba28tIqy0MKM8ImnSqnTP/inuIBAEgsAqAitEKFJkKctrttYeOZHQc1trf1OE1pNdT27b/AmvMH3c3g4ZMqny6Nba3VtrtxilWRns/eQeGQSCQBA4gYDI4oTjDeNstPhuNY3tPaa19vxprI9u6b8Mxvh6spJ9G7nJX1LxJOWO/D/1XWaUXzKtJfyc1trd6JKTbuVBUnnBLnNkEAgCFwwBVXjJq5W91tobt9Y+vrX2fa21vyjygZhESiKpqy31/k2SyZK/LlJ+ao0R3sTzfrXx8HfHHASCwAEgoEreyz5p+OPWh5O7wrfWXnmazb1Ha+2jpoXM39Rae3G1+Oh+rhGdj9eNzGvxtrk7AfZh/TssuaFb/tmttXdg+YzlR1341VagMFGcyCAQBI4EAVXekstkwCj5XVhNEoggmNVljO8h02LkZ7TWWJx8rZ+e1Nwu8pPbLmkh7E9PhP2E1tpbMVlS2+00GXKKBA2T1TAjLOMWBILAASAwqMCrM54WVqRHWJa0vNrU0nuf1toP1ho8kQ1jbpDKeT8iPclt31c4SFNp/rUiQsYImcBRXk+QoGEiApzxM3dhdSLeARR9khAEggAIVGWl4urQgbnSjtBRxa54r9Fa+9BpB8cPTF3ev6qxPchGhII8hkfpVasRyQ4UyJCdJWyzu88GPJz8enMIcARc3ILAoSAgUltbD9ens7V2h2lS41GttW9vrdFSgix4RCQuy+tghadVBOhuJJx1hL/eWvvqSb53aw3in1t0HXY9+WEPAfYKFHsQOCQEvJJuMHP81BtMy0c+uLX2NdUyEqs5YfRmhTlk2afZ7Z5utuj94rR+8Iuqy38bO5Jrjfzkni7wISl90hIEHIGO+Lzl8qp1LBVHT33rtJD5fxQjOElsMzuJHKJ51/QTjod1jL/cWvuCiRDfbfpBeJ06n1Bk5zItQFe0mIPAtUBABNa/W+4u+zDYzZ+Fy/+ujqViVvdDWmvPqjE+FhCLLOguyixicLvcijMOWpBWxvt8gbbyR8L7fLmdrXzf0lr7gCJC8FtIz80j3OMWBILAFSKwVsncfWTms+ZOq0WTIMzqcgDpM3cgPieDkfmgmc/ITeN/Ltfyg7sewkOe7Cz5zulQh4dPhHinmh0/RYQqauEue2QQCAJnRECVSVKvkX2TtLCM8XGY6Ie31r65KjQtIs2GqkU0IoU1N5HEIcs+7SLA3l128oK5f3CjhfybrbXvqsMe3rSO4gLbU2TobiqHyCAQBPZEwCsSZkXv3Xs74arVx1q3h7XWnj515f57VWRaNSKDnvz6yu92Jwp3P1Sz0rsmle7eX+6S8hduf9Ba+47aEcN5h69eeEOEGmOVnMlR5RYZBILAnggUuZ2oUEZ4vTtdXRYw37Hu2PiK6Tj531FNLqkK7bILcmGs5NEf5dndMPfh3F9xXNJ6pmv8HDuBhuEFHcHVl8vGViLluadaJHgQuBwIGNmdak0YOb4CaNTODcb4GLz/y2rpecV187aK7yRw2c0j3HCjBc1aQpbQfEodEiHyk1zIrS9L2S+HJieXQeAMCKiSSI5e0Vq7de3ceHYdPa8urldcN192Qjtr/h1DmfUuzkHkgIgvb629PWOEKiuV3ZpUuMggEAR2RKDG+G5bkxscUsDYlCY3VDnXpCpt5O4IrGEpd72JlvfP1b0lXPF5W4p0jfxw37HIEywIHCcCrvyjHKgSSI7CyK2Oe79za+3DplNaGOOj1cGYlCpiLzXRIdn7q+JGriPQY7Zm9zdwgZOI8L1aa7djksTK8cS4oNwjg8CFQsDJz2YJTyh/F2ZtrI8lFxzjxIXhdLN+t9apqTKq27tGdArXS6+0MZ9GoMdrzX465g0u/Dj9Sm2zeyAtwvoRY4xwGSd0HbhQFSCZudwIuGKXwqP0OobJK4Cb525RxSUslw1xECknMLNljSUZVMSe9DaRH9WROJJekcs5YgUBx2rNvBJ1cSbey6fzCH+4tfYIypSa4SSomuI6I7fIIHC0CJRCi+CQXOxNiw6zu8uuWV3u3OCQAnYiMManrq6Ib60yyn2pfQMDYfLshoDwdKmYwlFS7i49Hma22fFjxg16t5di98Qnu/wjg8BRIiBFRpIBsy+EJyIs/9ea1u994FQ5vr5OZ3Hi04LcEQl6pYv56iMgItv3zcRTean1zjuYMPnxutaTk6rnS95LP6Qbp4ZEjrISJNFBwBEwElwUvMaHmDnkfLrfGLT41MVVZTprhdy3Aif82RBQ+ai8VH5y11s5dPZ7W2ufUHeX0PI/MU7suhNzEDgqBFyZ+4RPRy/dvK6XfEBr7Sun9Xy/bwuYveK4ua9AqkiRh4WAykmyJ0C5e6p/prX2cdNp3G9ZesEJPhomOUGK6FWvT7EHgYNDYESANQbICcQQH+v4XrplKYsIcFRpvALFfDgIqKyQa+SnMKQasx72bn9Za+3tWmtcTAX5QYSMHWv8OAR4cLX9AiXIiWvbr63C9tmXu2Z+8Z+6uJw4/NDpCPpvmGYE/7QWMKsiSKrChPhECccnVZabJLnCX4/CYmd3CUTINaSMCaM3agVChqwQ2EiCCt/rZenhxrijOHG7RAhIeUZSMGzyUxjJOoGZWV3G+H61tfaPpfWu9DL3UhUk8ngR6MvU7coVbjz64UP+z1rw/m3TMqhHTsdy3XVaV3iLuqt5lcRGujlyk35GBoEFgYGinJiVw5/Ag3DzL7RexHFJdufG17bWfql+2VFyrwAy36D++X8REVAZ99Lz2vvJThhWAzBGzJ5vxgk5jgsiXN1hYvop/XWp1uQqiUqPIy8hAqU8UhiNwWBfFGeD+ZWnuzbYssbqf7q67NyQMiPVxXU3zHkuLgJ9Wcve51juI0lYLnHigvrnTmsKP3I64ZtzHxlPZsJkGR8c6OZQly9h1U6Wd0HAFGhX0pOC0erjQvHvbq29zLozm9bwoex5Lj4CPamt5bgPJ7vCY9eP6AunH9dPmxZXv4VNmGz6kZ71WXUAPZc5MggsCBgBeuvvFBkqQi1b4EJxVvn/UWvtH6rb4uM5vVmKjcwTBEBAOuG6IrcRQvgxnswdx1ztyX7xW0kvkZ0uL+ToYWIOAicQ6JRGrTuXKBIzcVyWw+A0LT5OCuZYqr61J2WWIiNxk32k2HG7vAhIL6Q3u+gKYVhU/fNFhFz2/rpS6k6fZxKUX2QQOIWAKcypVl9disNlQ1yb+I119LyT2khxe6WWHZknCPQIuH705j5sb//rIsKnTRc6PaROq56XzfjC6lNKH4eLi4AR2k5jHhZerT4UiD/OduOaRA4pYAEzDzN0Tnoy94q7Zq/XRASBEwi4vqBTbsfcP70bPZE/rKVXnFT9qjVRwiTdTIgXt8YnZzMCHZHtNP7RxRHxoTzv3lr79upqoHyukCK9XnqYTeZemWMPAq4vIwJ0f8z9gxskyHg0R6mxhGa+7H2NHkz3d6ora++J+wEgYIWpVtxSqOZ3qkVYfiwp4JY1Fp5yHh/Kw1FGUrRe+aSgZyHAXnFjDwIg4Dom/XI3N/eIuR9m4rOomt1HLKH5JJbQeDUtvVddkTxVPzxOzAeMgJNcjX1QqKdIcJSF1hoXYNPVZQU+5/GhRDy9Yo3s25TV49RrI4LAKQRcT7aZT0XuHBQf3WQtIeOEz5vCPGk6lut+2lli9eREXaGOUHdUV1SPZI88MARUQH2BkkwVpMIo6TUuwgJmTu1lcoPxE3+kRPtIxR/FkV9kEFhDoNcbhXN3uW2SHt7NrFr46dbap7fW3rEWVXNo7ykCVN1RvVE9Uv2JPBAEvIBUkH3SBmFYTf/+deH135cmuaK4mV9R/3O/3rxJKeMXBM4bgV4/1VthIu8XpsTQIrxPDf8wDDS3+lRfqEe9ua9bsR8AAn3BeaF58mo/JS2+51fXAAXxdXyuME56vdnDufm8FTzfCwLbEJB+SoexY9bzZzXZxwG9N6e+qP6UzPigk8ghmrsC83E/ZnU5Y42j5z+mtfZf63hyFMAVozdLWSSdJD2u4klKqSKDwKEgIN2UlE5jx0xr8J9qRxPnEs6TJTactNSnQ6z7SdP4F4tCo0nP5nGI71vqkAKUUoogBRChScpfitJL+Y/koSh90hEEhMCanro7JMjzF1ODgQXVb9y3/rCHbA4EAbX4lBwvnLqJ7Y0mwvug6e4NjqXioEkKm6cnOVeCTeZd49VnIoLAwSDgej3SYxLqYTic9VO1eNqIMAQowrlWUsTmhNZ/y8OYma4uK95fs7X2fnX0fD+r2xe0Fzrm0dOH2WQfxY9bELjeCKzprKdLYdQS5OKmW1v9mrvBfV2M/Soi0IONnddL6lMWbh6crTDM6rLqnYJjAbM/FC6PCnkkK0hEELhwCOyq74RjmQzjgT837S9+V62q6Oug6mLkVULASG0hPXcbmYv47tBa+9jaucH2Hz2jQsctTxC4bAj0dcHz3/tpvPsXJxJ8lxDfVSK4ba/pCO7EokyfjSrSo7t7x+m4+Y+uru6vVYlSmCpAFWxvxz1PELhMCKguuCT/blc9QeLO9rm7V31L93cbgV2Jf0d+y5T7wJ3lLOzVZR2ftqxRkBQay1R8qYrMFKYKVwV+mZQ/eQ0C0nuRm+wuvY7QBeawVY7dpz7O95BgvpJ6nrgbEBiQ3fKrU5MbXBMI8f1AXTRE4f2rEZ8IUFIFKumFnSoRBC4LAq73o7qAv9yZAMH849OJ0xywSk+LvyyE3sBdO3lt+/XQL02t3WNvolqCt68xvh+twVkKCeJTwUF4MuOnlp8KFelKcFkUP/m8nAi4ru9j/ueaAGESkWP2af1BfCHAnRjOAonsjMREZsMmtIXT2B8LmLn0hesAOXqedXw0y0V8KliR3C6tPsW5nNUiub4MCEjHXZJv2VVfZEfixmkxHJBAD+tN6gT0GxcBzl1g1Wmr5jGOEDAyE3AitSH5+TvqXl3G+B5dhxRwvSTE5wXWm/sWXu8v+2WoAMnj5UZAuu7SCdDdMbPg+Seqh3Wfri4ujZaQnyOzwWzkpzGDhfzWQKw4dHkhvocW8bGAedTa6wuwt6uwJd3/cleN5P4yIIC+9628vi4wTMTZgJwE8xmttXu21l5xQ7WO164IiOSK1ER+kksLsPzp5nKnLufxfch0JA9jfJxgK9KiWwsJ8qdxvr4wFVbuIyUnTJ4gcBkQcF1X3UBCihob55L1z9eBB9Ttqo9L/dy1vidch4AR36kWoAetcExuPLaOpaKbyyBs3+pT4elXTdILV+bLoODJYxBYQ0D1QJJwmHloWEB8HIJKg4Mto1z/kHE+J6YrNa8QICDfRO+ezh17w+l2tcfUzg0KBdITsSFVgJLuJ7P8VMBVzhFB4NIi4HXC68WLpzr1aa21t6rTn5nV9fE9NVZmN9XTyD0RMFAB1NcPAewrGvF9ff0aoakUFKSm5rkKUX6yj4jRC/nSan0yHgQMAdUJboV7wXQq0pNbaw9srd2e6lx1VMtaRILLEBX+e1b7BBcCHQECLhMbHFBwp1pU+dTpXL6XV2HtSmwKtyat7GMMAhcWAdf/TZn8y+mah9+eCI9GBle63rLqobq7apjQK8NNJDhL1eXILQjol6IHsNYNAe7NpsuZ2blBIXxzzTpRcN6Sw07Bqlvb+40KmvB5gsBlQkB1xOVa/lkzy1FwbBmF1DTGp27uSIb8tvDdKe8V4hPgt6tZXS4U1+ksI5IT4cmPAg7Bral23C86AiPdV50YDRHhxuQGS8aeUb2smcy6+rlKegp3qoLHYR0BgVYScDWo+qqttQe31r6mjp4XwakQkT3ZuZ+bUXbseYLAZUDAdb83qx45CeLGhecQH6eevzaXGXV1c0SGQ7f12h6fEwgY6TmQrOV7h1pb9N+MuLwgVYjutma+DAqfPAYBR2BUF9RYQEJ+hGERM9tC6V09vrX2pnZQQT+54XX0lPlExY5lNwT6vYE1yPrhrbWfXCE+FawXptzWpCtGzEHgMiDQ1wXlWe7s1WU4iRsNP1mLmK1Bom7uKaJbaxXuVuMTakHAgARsgH616fSIJ1TBqKBcqtXn5Cezh+vNKvzIIHDZEOjrAnbIj21rrKJ4s5rYYHKDOujEp3q5EwkuFTuG3RGwFiBH5XB13svscnEVnkiOZrv/yV1S4Xt52ZQ++Q0CPQKqE5x0zolIXPswmtEV2e1FfmrM7F7zE3JGoCY82ML2BTUI2+/iEOGJ5GR3KT8Vci97ZYg9CBwLAq7L29KssH24f6wTWv7TtD/+PrZ7Q2v4zkR2Ij2XobUVBAQS3p2Zhc0MvnLrGgUoMpN0ouvNCuNSStDLXiliDwKHjkCvw7Ir3bL3Uv7IH5sWKH9ea+0BRXzq5mqCw7u8av2dWa5U/8vrLLJbGVvg9Jb3ba1xWxSFyIN0QoP03L7N3CuD7PX6iCBwNAhId6XzskvKHYkbkh7U37bWfrW19uWttfvbsjInPTfPLcCepazu7kSIffzYrbVnBDj/4gDO1Cx/29bad1ShoZUqRBXsWclP8SWlMEej+UnopUdAOut1oneTHT1XOBYxf0Vr7R5GYKfIrvyGxCfisvghQIGyrzQQZ7CLCCkQtrZp0kPkp0KU9IIVmcnN40gRXPbh8csTBI4JAekzDQFmbtUgwF36Lb3+namL+6XT1ZNvXUdTUcdEfJIniGxbXba6S7y54WLyxLsUdts7L6V/geMAAh4XJL/QtFGFKimi6+3ubtEXo4d3JcE9TxA4NgTQW+m0zJLkhbV8X91ae8/W2q2LoHrCOkFW+5KQyG2b3Pe9lyp8Bx6/SP+l9h1SiCpgEZaTXO/nhe9mV+xRHPePOQgcEwLSc9ULWoOM8XFCy8PqdCSt4ztBdl7vzkI4Hr/M3pCRWYQ7f/ss37kUcQpAyI9both+w+NkJTPS/dzd/RjvYF3Ti1prv1mbuNnMrbgetpxPCcIo3CnPOASBa4CAdG5XvVN4iI/9utxjzW6p17FurpPRKRI8K8F0BKhv9HL53lm/c6HjdSCyz5eLU/5lC/mhdxS8WoVSAtw57v6Hpub/I1trr18btzmW+wNaa09vrXFirYhwTX/1Pv2qYvdH/r27h4k5COyLAPo00um197j+sXvjUbacZT5stOrXK0Ai6gKLUFT3ZN9HKm6RLCs2OO+PMzk5/l5/uHE4Mf5zGvb5xqUJa2C+0TReoQMOpAwuVeBI/bnC8CvIYO9dCnh+jfQLdIvWGifIcG4givIza1rVkauToL7Zyw2vilcQ2AkBdEq6LCk92/QCfuw5k48W36zvThym/6e6oJv8/B29uS4Xe8vaJ8wmhe+axu1/rnpuv1enMzHxQg/sB6tO0h1/46qX9PQgxxv1775U9q4A+JV41yppCp6nJ59yXsjPlYaW3xdzCQsg1i8TQPMnEkTyHfYVs8/xY+uCZlbD8+h7roAjs8LtoqD16oggsCAgvXEpPXMp/yViGdD1Z9ddN2/RWuPHfTle3s2bCKWrF15HlndVXcKP46/uNc02f0pr7Xtaa788XSv7B7WukIZH/5B28kJvi5OjX1LH5n9T7el/UN8qHKVnU/qP2m+Q2deajrD/mA7FNQUgmPyQFMDPt9bewgpMBeqtQHejac5JtqyJ+swqHBaJ6t1SRBUkdjfLjlueILAPAuiM/qRn0qfeLv1Cop/Pm240/MTph/udqtW3XAC2DyFU/fPxurluDOoPjYV7T2T2qa21H2+t/VENMyn9LoWBp1n5wg8zhMjlZM8vMp2X5tR3VVcllzTtk7ejCDsogLtPm7C/QQiWFJCd82IV+Fy8/MRB4Z0A0r4pIpSEDFkVzxghTXcueWFdld4vKeXE7uYlQTEEgR0QcH2SWTrV29EziI8W1+fUxeIaczvRUvOKj667vTdbXaCO0EtSXZll1aU3qKtkf7bOBiRtPEojaZNZcs3/hpg3/PewPzK1JB/aWnu96p2pTio9G/PR5+to7F0BkFl+0RjI5QGgXR+I6rkc1liFtgBX3xCgmyRxGMClK/E2dco0pMrTF7ITnxdkBY8IAlsRkN6MdEl+vIShGVYwcM0k4+MndPtKKntX/0SAej+TGG839ai+r+7X8fqIWemWVJrXpAPSh8Hvr6ahq2+tRojSIDnX2yvJ60HGNXJSRt+npvEBVSA5cGtmxkOeXOQnkpvfqYzbt+S//Kp0fsRjrIMBZS5Y+jq7YInvK10u19IV9yCwhoDrj5sVHuL7rall9lnTshYmG3T8vOqK5KLH0vV95IAEqR+3qhUUTGqwd5j0+SM7krrqO1BGeXE3mfU+tzOMxfrFR9RECWlZ8kla98nbUYS1AiCzzMxS8N71FFCbJDNNH0GG7X0AN4PnQJT/QoKdXXGQ/CLSzdDyGX6dGLfYl5w3pTt+x48AFfgsjyq+S3SL8bFfr+seOKHlNqXXrpta0jLrsev3vmbT/7mu1BKax06HkPxGZcrTp7wiRXwiv75e9PF6O+H9T+/ms79ScwEsiVO+lzq7bx6PInytG6KZL3AF2C7K9RwOTiCjRoAANhdqD4AV+gIqYQfx5Q8ZMn3/EdPMMd9iexGFt++jPHlh7/uOhD8cBLw8t5n7VCu8iIMfflo/XzWNQX+gXSzO2HRPAifsvX7va7f6QK/no4qASG9PUEqz5Mhf+VSYTXJTfDZCkBYmRpe6rLTum8eDD1/N7i8adDEF6Jqkif4ltbZPhLVVQQRkJ2fClBugyVwSIrxba+3jp/PTGBT+m7VErbj3yrASLM5HgEBfltvsa1mixffSWivHQv1X6/TOdfKEXqOTV6tit9Y4cf3DaryRtHIZkhPUqKVHnj0M5m044K9H8Udx6A6zHviBlbYTJHi18n0w76n9iuxd7MEQWGuSgmF6nl9KEeAst2WuD+92xXU3MzNZQtf4Q2oxNQW/y9PnDXue40RgVJbuNiKDPqcc8suifW44fN06AemEDqsXY7q3+EtH95W8S3HqvfywM87IDinqk8iO/JAPdxvlS2GQI3/HBbMevd+lhyUcB6L8B9Lr63mV/gshqxDevFaTOwCYtz2E4SjvM22zkWKtASn/TupXGcVh3/Ljigj51dz2KH+E2yV/294X/+uDgMoR2Vd6EcHIndRyr823ULFrqyZrUdElyE26tRBdp3uz+5q+jtw9Pv6yK2wN73D7G0u/2IKqdCsfIkTZPe/K/5pfH3Zk1/dGfrQE2WXCD8SCidJ+IWRl7L415d6DsKbeCkcX+DHXGggHv8xSVCSzZiwZgIh/qlsk6ulXmiXdL+bjQkBlOJLkBHcnBdxePq11+8bqOdy1ZnYhPnRIf0sld507q377O3oz75xWOdxu0tf/XOlVS8/zpDxIup/M8kPK7Uqk8NM7WAPJbLhIcP6xOCsmBxevCv8day2fMi25rVr8c2vt4eeVqV6J9ItdysSsFUtnvrBm8v6+a+UpT1IY2ZF5jgsBLzuZyYHMkrj9xekgDuYAACAASURBVLTb6PtZqN9ao6czd0FLl1aJ70p1utNVvnOCXEtnuXKCyRcaEiO9VD7WyE1x1vwVf1cpLfDwvJuTnbTLazna60oxuq7xrUAoHAiQZjgZdzAFSC8FEAT4sPPMSJdu0q5fcSk2BcS4DrtaKDjSyON5U7dC+UDmOR4EVG4iANk9B0xwvKAu9bqTdHSgP6eISWGvRNp3eP8JAuS9tej/KUZ8qneS5KnPn/LZu2PXxAkYEG70KP5Ievjen/d/ZC3TuRgtQCsgEeCP2gAsGXYQHBw3M2bBKRPXRInWFNC+R9pZLzgXirmTHoiQawYhQla685CnXnmUzwoScQQI9GWG3R/W8tG15ErXUyeeoCdFQgs5renaWd07XRwR4DvXQSDKi/Lg+ilzXx9ll7+/Q+9xPPY1+/v0LdYHvpvhtkzmnBWj6xrPCojCuV+NAepXZASsgyiAaElBgLxDhSx5TQGy9J8iX/ODBOka0yJkuQ7jGaRd4y0q3F2VRvneNbxjFvP+CAhvjyk3l/hTpiyPYiyYfe03VWXtK5rpx6w7vf+V2vv3Y1dayo+VDAzV/J3t8fX8yKx6KCl3yX3113HcZNb7XRKeH5UzHf5wpZhe9fhdIXEixPfWWIS6hw4uQPgjYESA6oY6EV5TAhQgyofsyIHCcfbZHercNo4DYlcJaVc+PG+Y5b5N9vFiPzsCjvWuZaCvqavLfnbu3lAPYP4xdt04D7N0UlLfLDu6yAJjzsNUXfO8yyzSQ24Kx/gh2/aeWTtYOKnmEyZgntRa+7Y6Bks47SqVBpekg7rDBNK51G3hdk2kCqckZ/NxBaZagALcSdDBEzD4s2IcAnQSXFpl1yTxO7y0yx/pIX3cdscJGyx6/doaIF/LF3nz/JNn7MJGGHj8mM+GgLAcSd6oshD+hGP3Bot1adlzXNSyFMvK/lx6I7062vdPtDDLnR7JB9dZfuRtlGfc+jzLrvDEZTPAN9f+XerwLdnVRXrq8GEmfT5uOqjkWbXNj3covuRaiclfkri/NE0wvrfnr8/7UdprrISLkESAAtsBc6AcFLbQMQ6n1t+idAB1vQHxwqo0ighZTP3Rdb4bJ8+w5qnPL/l0N8dF7o5LzGdDQPq0SYI3rR2Ij/3nLGnh9sJTY3xFAMuP8PXQQ+ldr/9FUpx/ySGlPNvyTL77ekkcFnKDwR0rvwz3eB2kpQkGuLGVlNYgek5c6S7mtUfpIix//PCTZmbTqe8nyL3P51HZa0bqcyujyqwyLiAcKLkRhrGM16xCuK5Ktwl0FZgpBYoBGbK+6dG1hpAZY/KmvCOVV7mrBeh+jk3M+yMgjIWppNx5IxNuHPfOjiXOjrzxpvI+VL9at8qyHIjc8yezS3BA33oCxJ3F3HeoeiddFgGqHmKfcarv0stjHFzLbvjW2qN08C2lg7BMKs6n4xwqxnunq87iY9xArSCv5GS+fxwcfoXu5h+FZNx+aOYBGXIOIfuMIcIfK6VTHqUkSCkDUv49NrHvj4CwHOGLLrI5n73qTGbRzTto/dqk7zQWWmu/3+kYiEnPZBYW5J8/6R+Sw1m5h0TDTmrpYde2VJHi3BIkTa21t69urN7t3+xLDT/9eXgOUGV2/WjL4FT5VDOZzdiMKXhmMW8D6SfoihTAR9EsHhAg6UZ5XntaD8muGGa7OPqcX0s94CA8pJCbsFG8yO0IeEXzCk+LjzMhGbN9wyojVfajrIDT2PNtV1p/jpJ0DX0DD9VJ6d/n1QEkavFJzvVvoN/4023lj6EuWoDbHpWJ0iI7E073OkUix+jQAcUuit/ufmmU6TWw8GexsZ8HeIwkqEolRWF7HefBPW1a+/SLRYSqmFJC8p7nyhCQfrmka8iaM05DpkUu4lNrhzJaKvoh1zul09NYk3C6dnZNh4SHE5/r3XvxTr3f5BoRzu4Vh0kRfli2PUqDS9KgU2KO8gdoKQtA60Bk0TDdPx7PNObRozAo7FPtur1ZQZcPHaDBFGYh696t7BxTxKb5r64fB8YIpZTK/wibuG1GQNghwRNc2bnBxeLcePZwBu5ddao8vCIvZefhDsVs+tSTErO1nKIuDEZIyU9SOodkTzPXRiw/Ap15+R5YmB9rD2kBcuIzXehtj77tkjg0krj4/fgJ0MABTH5pv2YbKuYvYCgUrghkel+/0gcPTpf3U5Wp/JlZw487Gt6t7k1gVwl5Z2AaeVkflb/krjgoPFJDCXTJOMiCJVWvt4nEarjmVHltinM9/EpvFjKydHP0FWPtwmETbgpDHQMrdI7ZXw7/kG7OWJg+883FzUhQaXlwHXPFu9cefdelwnIr3TU/AOWal5mDVGYIjObxJmAEQi9ZlsA4zVIo1zwDV+EDjkH/OvcrYidvLGB9j/qh4PY6VeAej4tu94rh5m35JiyVmYoM6XFQAcct0SrhaDNa3LRS5kq8qUx6v0Ozl/6IdCAkERP3CGu1wS54CTMRIC1AxqkXktvDTAOFczS56IlyWHu8TGVWWO4iftSh4b13enrQeEGdpqLmuTK8SQIODyevfIUV8sG3ACu/sxJtAq/DCQWCCJnJo0XIkgyO6Ec5L9OjSkG+qUiy9xjIXRJ/zJzJR6/h8XXZN2fygatIYlgulMWmsjokP9Mb8rT0jFprd7EtmT1evV24qQUI3rQeaWzQK5nxkHSdtu8vRFn+n171tf+W2/muylVS/jR2HnxIWJ8pLQJIoJVkD+Xv7tgKVOEgeRhX0CUyR6Oou4AnrEyKCFk688g6bomu8S6zawXXUQsv+95MxtxNFUjdNy7kZhaTbWuvIv0zbL3VNCTCXcrseoex/JAH5QnJLDBbMVVvNimCwiDBUX9MzmkB9Im6Vt/17+n7SFY5sJ1t29N/T+kgHpOCdMFPfPd6473391VARFRmalHwd1YXZRNIAOIgYWbJyIfaUoXjBmgLosKs8GP8lNaM7ioZjQ8Ks024HpOf8rNJUmHBgokyBs9ZgjFfoOXwShf7FqDcPeyxmJX2khCSiIgVBiwlAZtdHzAW+WHm1jiOpzq1C8a+4ySoFihDXFrpsenba2VKHO4AZ2fJsvXwWMrkRDqtgAQUBfSq1aLRKvU1kASQCgVJ05wjteZFknr/iY9eQAv5VLbqbpVPmroILyo81vC7KO7SA0n0QGbySIuYZVLsFmLwn4qIni2YGXaze/mLMIZhFeeQpfLZSfLFYQ1c88qs9y6P8PS6RjyI6J5sYhAO9i2+w753YcrODZZ10UvT+1z26XA/NxOOLXUMAZ0qQ6XjaGQBJGVDMgD9pnWCBBlfewSKCkUDtLQCGdBmyn1+79GAccaEmpJRucEPZWMogcXUnPhxkbvF6IF0wMmPMeGX1DpKdh+we2Oe3FiD2XBUpT1a8iOPnh/Pc7lzsyH7cnd9hLHwRjIZwjgqY9HzAQj9d+sH59VqzJCF/dRT1d1e9mnp/bHTMPocTXZ6vo7SXIXhBIjSMRPHXkW6Lv4IENxkltL7YPgPFAFcjHPDVkrWFbwb45l/GavSc9I29ymwsBeM9nnA+FAflT9SOoAZsievbFtjtvHOK/ANnTtMj4IAlWbPkNxcdv50X1nzuMsjjIWz1zXqKGOqT64rLDnpiC72baY7tFlvyKkzn21dbi+33rwtLYRnS+Lc9VbePF9HZ1YmvLVWblTaPzNERmDJTb9OkszwMdaw/Co5MPbNo1BwT7ub+3wM7PywMLPJoPd71rFNLJ0BJz1gOHqEbS8Vdi2e/K+l7NOEnYpIV5clLVxgvxCf65bjdxHMfZkrT+aODiw9oWn5FJefM/nz9B1mYr0MhbnqmOxIHvD/ydqQwOlM/H2ZHblFGOIqHnbMvdv8spV/fIN9wOzHnusuUnk+SukZ8czUSnP2+ApgASfpGAlIFQ6SsQYq/dwK7L9TdrU8jxLEPk9SgN5dFaB2ynCKCad4sHSG1tKoVSiM16Swx/9Kn/4bm97nYUk327lYz8bfd09HVL1Xjf9e8eA4GArPY5Er5a7JB4YA2FHEsim1/PYtP+HvpLXPOxR/k1wrf+Lw3c+vH/SLQYAoV19w5UbBsVSBgdpdABNAIkF+LTh65441HrgAVt9byA+COBYl93Q6bu4us/mrFUBrkD/Wb71rtZZoLYOdP4638HQ3mT3OWc1610jyzpE7ZauHFh8/dPOViZ53mS+ytDLu9Vt2ypsWH0dI6RRylSkSfPd9+jLZN77C9+8ZpcXD8KP9QTWWO+fvQpRtX4jKVDV1ma5H4QXEpsIjjPszEE4Feb2q+Po1FCG4PLpffOE0kh2mp/JZePDj8JA60ZfKoafH2nGVn6TinEXqHZQZrVG1SFUx5e+S73Bi0LfXonmuGVC5qtJfnMoxKlxzs3I+UcbV6mfW+0vr8FbqgsbuvI4I233KT3GQV/L4e9zs75Q7bnTbGVekvC9WGStDkpRxddk+uWsFUngUJJVFFUWAAZbcJOkmMRZxp1IKfhFdWTAD5ixNt47aaHka5dWJgrPbwOahRYTMnOoHBwz9z5UR85U+ep++Maqg8uNb7EFlCQQLv+eDCoz8VI4X6odsFyWssoYU+GNHy1u11tht8ePdsVeqH8JU+F+NsjyrLnga3Kz3yY2ypyWrU6YvVjmL+CRV8LVNiU3qAoLCWyNAQCMcYZCEozLz68dMFFuA9OvhxCBCuDAkKByN7JVHkb3nH0wgQi2m5n5mJhTAT7j3Ugp6JVLvVIWUVLlhp/xonVKZmWm8i+mG5+mUWeEuqrQyJu+UIUufWN7CWliWi/A4xjIjhbXcKvh1E0rHSP5Da+0r607gi/tD1xXozPB1VP7HVCtQhYakkvCHeQSa3CXZX/zlOjm6+9YC6kVqCXZ5XAgCQig/J8HFv1qEXO3407VnFnx5hHNZr1jofZSR/nDDzKJ2Jjd+YZrseALkXOmmovPn6d1ovuAEyJKx16/lJj9YE0PC0OuI8JUU9shDePr0uJ3dTRzgsJT7hSxTKbUqaEm6rCyM5nBKHeFDIfaF64DJrMJG0pIgPhupqdy30Hc6MlitTMcEurDcIE+RvsIWLiymZk0XLQqIkHG30QPWa4/KYRTG/XozP1YsmuVaxTeq1ulquSjda/IQy22U1n3SWfE5vYZzC2nx6QARdB08vY6orqjBoHoh3FV+skviLrNLhd9VelzMa4+HUz7Ycve40smL1e0dFTgF65mtgmYKn/sHNFAPUCpEL1QHUGaFQ0KCKArvYb8xhyqyaNMrlxODuw/NozwcgluXp1OK0/vLXtjPGJSZu0oYOqAVzmG1HLigRxhLyh0pt30k3TYW1XI3DAP4bHdi94bGbYdloLRvkterTJQmfV/2kqd0TeHWZMWjxcdiYHZhcJwXKyUYE++xRufXyE/1oo+zZld45FqYfcrfw0pfJPV+vvWp6vquYXLh3CnkPlO1q4GN7Gy/EVAUOqTmhaMCUhiBKYlCEI9xBU6d4b4HVqvT2jmxcNqb3DaWhtKeUNw+rYdg7yraKTxJo8IovbKv4M8pHu9cS5OYmVeLUHgL3xtKZ72SEJ4yU4UlPNsXf67G+BjAh3Tp2i1dHqXJ0yjzKP2HVEZK5zapfPSycFBXl8M+uASMyap+L6+Xgcx93VizK7ykwmGnzlBmSPn3UuW+qd4Rf9PDN/WwYJ8TZyB7fgSHOtxjdaHtNbtF5eOhAADMCwI7IKug+nA3xLwhDmFUCbmfALDZNkaLcN5HDJgd8dESUWtkaSVdaNA7oqwfov9Y46m/agcuUA7942Ujs8qI8T2I74V13D8b5ZnBhPT0I7P80PQYr1WInmT6eOdtH6WnczuRR89XheNwEP7Yz/yUOuTCiaLHXHbhLUmctT+F6aXKSu+EBDUMhRsrLPgTOSocknf18XHHDb+1h/ez3Y2VG4z7Ud8uH/n1maZioLzT7OTDquUmAL3QVMBOgB6uB9/DY+ZX5wtqFwpKN//ydBVSlXPpjp13pTrv71VFJN8zOVU58EPBpeCcKoLCgt/o8fKRGfJjLJa47E5gaQOKrhbfCYzPO79X63uF26InnV15RG4KAwkw+80JyjxgKD3GvPYIa5fSd0n3czMkxAJ5ygl3HqS+S/1yIqwgJ4TiyRE78fjb9HDa88fS7b1a5XCU73GlIAO1ewFFoSvAPl91hVUYSApo2+MF2Yfll4xxKG6d4sQJxqGknEOFPUpwd0j0Sr6FAZhghrD4oYAI+eGgNUel6R9h/nd178YTa3kTxCfSE87zr72+v0NSDzqI8jGQM/GR+M4PPPjhvesEIpNAHP4JptJvsBz9jTAfhdtGfvizp/cTayyWs/v4tt7l8ZUm/3YfjvBy83Ay8w4ewjD++76tNU6PuelBF+x5Ja6U4xX1vap4LNzlqCfW9+lRIQH4ro8KRlLx+HWje8YSDFbSs75KLdClokpxlbaLJJW3ldavyI/KqgrL6R/3mlrRHziBSMX92pq5ZycOwwvMvLPr5B41zMC6w5kE7FsLthcUyyV/Ha64gwV/6Npn1Mw7P/LopohG5CNSQV973ZUOS+LPg1R8xXGJ37NqspHdFqwCYCyW+2c4wZnJFoWHkL11WJ84IRQWybvJg/6w+8MyFyY7GP9lGES3x6Fbs45cJH3YKy+qHESqyqauEoOj3CAHWelhTE/KIrcrkbyb/YcsDKYC39MOebzQBSPcS6py0jKh1YZd5OdmKjL7jDlxhJljrk5EqSmr+eh5FX73/gs3xtPnTxXZ3Gf9wV66/ebVs4GEdE6fxtc2EZeIZqTn8pPkPTIjefihZ5E5BATxqX6JrClvFshzWx4/Zkwcivz0rnrVRkFY6qYeutg0MLjHh1Yfl33N432Gyaxj0plLK0tp1AKTRIHoJrAnFDD1API+BaN4a1JKQ9eY9VZsGWPG+ESF3rVwrAIcfKX3tJoZ3Gm9oawiP+ReB0rofbvidqjhyIenTfkqOePSkR9uIheGc9inzqQSLeZ+iVFPfGs6KnfpvUv83C4zvSdODf+q+mFXurxsZzflr9ZkPqpmoTlzkeVkrKagoaCGB+9XuhlS0gQJ9YfwjBcz4w/xMaPNUW1p6QnkkTSFGSkbi6Q56eIvpQUlKRAKhlYhBaJHhYNdhYUcPYonpSEM7+XAVU4gmS9gGqVZbqTdzZ4X91OYY5F9Po45L2fBXPknrue9yE7E561kdXNnfajZdH7An2FLivzHWzrncqSj7uZhR2b1kFjCxJFoD6yuLukUKS/pLDcRo+vxa9T4+KNrNQA7UBj//f2qh7yfliUtWbZUQrQccEzX/r2rpck7ThCsyqHc5zTJ7VJLL5weiGqJsEbtM02RpBQolH6BIDOUAjdXNLkrjsuREuFGHMZnfr025r8W6SKdkkqzp1duLt3/GM3K8zGm/UrSrHx7WZZZhIFUy0ZECLlg5igyCIgZT39G+ub+vXkUXm7oqHRbZsbx2AAACXFfh9Lq5HeCAHuMKo/kgeEQxupoxWq8kHu9ITY2LugPN8b1GBqhO0084vffdLuwW0i3T0fshYCBSSEwyM62LQq8f2gN+sJRKQfhUJrRI2XqpRSKd7Ig9YeKCNm5sBSeCpmkyuwyhXj8CHh5llnlL9JTZWfIgKsc6eq+uHYkjXQOtzV99PC9Trpd+qkfenpHnKLDFQG3KxJaIz8nop0IaAsGGlPc6Xv+ruPXjnPIQQHGuAUFBwk+qN1wcgTrzFAKKYMrz1nMrmD+Xsx0LWgNslOFLXtMAniBY3b7omTnAFE+cU4IlA5SzpCeyptW0lvX8VSMfbEVUz++0qmroY96l7+bLijdUyY4mH0XGUsflcZFH52AZL4S+PSOXeSVfOfSx0XhBEIdi/64Knx+/egG+4OS7PpIsdakCFbjK7QIGeu4b10CreUec/rWFEFpjzxOBKpcRX60euhi3rnuJ2EVATqIDklfJHE7y+P6SHzZMTPhANlyoroOEEUPRcwiPhHhKgGOSmNNh8/iPnp/3M6IQI0xLAsop5YgU+vMNHE1JLNVdAn82UUJpVguFQ/JO2UnjMx/MrVIWRx8z1osrF/fRdnOmM1EO0AEjAApX8a9OKWF9W38MOrHUbqB5JG+IPd9XB8Vn+8wy8q6SyYHSQtkLJ0T4bnET4SocIvcBWp7/xJvm9su702YMyDAr5xHq1Xl3BfB9D3jg1rDxPidJkikQL0Soqi9omF3Re4J0MPjx8yYiPDGpK1XDk9vzMeLQI2vsV6OHQ0sM0G/ICXXl5FZOiP9w77v80fTwmWuAr13TUyMyAii44fYW4Kr5IeeHm9pXPKUe+HVoC+r2jlbjmOE6JKICCEp/kZKNyLAkQIrnKQUGokbky9saeKXmYHw+SxCisjJcJ8iU7x94pxH2ENN17XMew25fFjtpGDhPI/KXvrV6wZ2/bm+yFyvWd4ld0k86OrS4oP42FPND73vmupXJXjLz80jslx1A0uvX9cS27z7KiNQ3RMNSj+3FlFLSVEufzYprZS3l1JQl7yTcIxHMmPMPSd0jW+m7Ik4eil/yd7/kBTxkNMm/EZS6R75bXOrlQf8sLFnVo/K3nVDbi7l724y4zcy48ZECt9ji9ojpitB32SUTuVrIHcmv9F7R26Db8wEOgobt3NAgAJZ+0x1AdhwzUkbHLvDqbO00qRwklLQs0i9Q5UCKTcuePnhIkJ2lbA2irEaV0yZF0VaU7JNeV3D4Gq4d+lRel2ulsHV+P7VeEeXhxPp7f2Ec61rY/cGB2ZwJJjKVpJydp1RuSM9jLvLrHj6UXY7wzb8iLIjiUm+5X6UXbFYy9Ou8RPuAiFgysBMGRcu86uKkjFuo1k7KSZSyoiUXf7uJ3/5ld6fUH7CsEyBgXK65RwmAHlooSjm1W6I+12PIrHvO+G5eSFupc/inMiX/K+HHKVpLR21BZCDODixmmVPo0dlLv1wXfDwHk5m1yHFhwhxRy9/ua4o4EfzFL5r6e7dFVey93e7wrjEH7uHi/kIEVAhFvGwWv3fT2Z2lKDcu2xEl8JKgSXX3OVPRcDMg2JzTNRPTL/ubC1ibyTKDZn4YPWZFf5qF41XhkqniM8H2E+l1+Ip/BzG3E/Fudpp79+3y7crDIc7sJ6OLV/ohspyH1lFPhS8R3rTT87RyuQwDsawWVeo3sI1x2sXfHpMYz8SBKry3kTJtW113D/K6buspUIp91FyhR3F6zVfSs+vPJWKGeNnTi3Dx9YJHCg4ZKFW4fKr64qp9J+ntO+LqJ38cDtVOctN5OdyCat4kueZp/5bhf3dph7BJ9UPFJv5nZxU1rvIvuyxj+KhC7gzSQfZPnU6Q/EdWndaivBB9umOPQjsjEApEgSzECGRaxEzeyY5tYKTL2ip9Uo7IrmRUuPWPwqnX323s4uFcwg/gAHuagnOJGGKf4JAds7wVQxoaenThn0hQQt3Is3mfiK+koi/zOcpq5XF2YYMTbBnVzO7KiuNz6l7qrLrZV/mvd3DS5d4JzO7jE2ztZM1hcJtiNN5YpNvXWAEqkJqQmKufEWEENHTbYwQRXbl3cXsyu/hcVfFwl0VAXfOXmN73bvZrhI2lNMFOtE9vp7FYkRGRfWW4IkK24Wb/UbptnDnSoC1YZ8xvgfXZVngz0OrT2WEFAGqrLw8Me/zKDySFiYnDbGkhkX8wnMNx1UMR7jGLQgMEagKN//KKkC5QTbaZ8ysMafjfsfUMmAWlxbhWgXoK4SU3CuGwqhi4Yeb7Jg1EfOndewQy3e0ta4nwnMlC+EkaaQFAULQ/JCQVv5IK6eG8MepIPhfUXrte6sk4GGUzpGscKSTU1q4p8TPl+zLSeUzav15+e5jprvLnl1O09Y+cvRxGfrwvPTmUZ7iFgTOhEApF8rnv7pSRhSSo7foGnOsENvrVEF2laoYHl6VShI/HuyYmZVm7ReXNtE15vY6BsP7dHqaV4nhTMCsRAIn96qWy/0nbB4/dd++pA6sfU7dKcxOHO6b4Gw41rDhz3gn+6ZXD5gdfEP5JP8LBl06FOaU9HCYq4VNerh4iHPs+sfLCrOXk/z6OLvaWRfKWr471g+F8iR5Kv2um31eYg8CeyHQVy4iS8HMLGWkdQMJ0orhJF/GaDiM9aUb9gSLxFRRkHrcTeF6qTDEodVBBf2l2lXCZUScgEMlIV0LGSgPknuBsiGw3kfLTsHqR+F9avM95EbXkbPnmN2GuGnh0GKGyPnDjDt54UpSlgJ9z5QH1tWxvu7WfMfeP5vt2yIFlctsV3ikhSWMWqVqkRIed/BjrI3jqcC2f4S9l5nCuF9vVpg1Sf7ZLsePBEfh0zJWOpFK34KB8mb5OuWnMJFB4Koi4EpniioiZE3WI6c9mD9iXScqhIisrxy72D3uqBLhzxrCn5rSxskzdI05fcSJQeZZXikg9m5/L+NUEB9rKNnqB4lsyl+fF8L6wyGzkOHnTiT/7tUqgrz8myJDiEJ/Sx67sCIV/XAhIUFu+/usugtDtwt6Otzcp1F+fT4pk23lRhxuHAQv7vnlRj2lEUk+JENwV6q0iX91EbDKhZLqTwccvPHU0uEqQSowdzvQwtE4UV85+sqzya4K10viMEbI82N1+ghr1fqTfucKdVYkLM8iIZ0CzC4abn+jW05ayKuWiDgRbMobfv64nUW/vP8+tfPCSU4koTIQKYpA5K+WH2OOjEOy2JwJBvaC9y0+pbNPj6dp5KeyVZ5V5h6PXUbM7H5zdbdZc0paSRd/pPNEXs5aXokXBK45AgNSmCscH66u8WOKCLkbgQqhyqVK4fZdzF7xZFY8VTwkt2xxGsltKy1ULBHXmVsU9Q5aTrwLIuFkHbYPqvKfhfyUD5fKE5J3817GDSGtucvt+XFz5deJUKSiiReORXuBTSz5t0gDdkmZy2koPL7KQOSnySsicioMt6k9oFqfImnSpzQu+nPNlTcfCAJXCwGvgJh5b7nRPWaMEKJghwendlBJ9Hjl2cWseJJrcfCnwj2viJDTQeZL8UbjfQAAEOZJREFUppW+s+a98sWaxK+ziQLSIaLS9kEqvwhhLZ24rz19HN7FOOGTpzWZXDkgQl9Iw9zkB7FQBvwxYcXSEmZ2edeVpM3TPEonbvrBowdAS5MrH7kWlHFjkR9pF/md+YfprGWZeEHgqiKAYuuFVhlRcFpLLKh9Qh3KSqVQ5e8r0Ca7Kp6HGVVmhUOyVOe7pwkaWqOcTExLaEmn0ruLrDxxxy9LgDRLqrSo1YOUWX7bJOkkjORaeEiV/HCFI7OlEJsIZCZCz1stJfnwWrvJCd28V2nbRoCVnJ1Fn2Ymf7iqlfs3OJSUdIqYSav+Zrdd8E+YIHCwCHjFUyJN4RkvQ9EZ8+EcQPYZ/3zdKEeLaVtlVOVSbcQu4pNUmF4Sh+11HJQJcXFXCfuM5+UzpNXSuUqMVWHvV2fdMXvJo2/JrLR4fuSnsEiFc7ferHcQ38Njh3zZGkbrGlwZPxMBQjSsoWOtJkuF1EWH+Pzb/s7+23xj7dkWlkkpWnxMrty3x9ewDgGqokQeNwIotRR9lJNO6UWErOGjErPdjRnIvmJts6sCu1QcKi9mScJgh7g46YbdLNwFyzITyGNuhUiu5IEZU7qQemcZF6Fv61uyu5Sf0ux+bpa/S/xll5kTtt+wupWMTd5qmtGFpPmBYYkQLUYef/eu5oq6Ma7CIFniwww4pDsTX+nETMzSjyJqkfXiN8I8bkHgKBDYRoDKhAimJC0VxrJYLMxyD2aM9exSSUUGLhWP98jcS32Di6q5mpFdD3SLl1bUIL20GJ89IGq9yyXf80ff93S6Wf6S7jcyEw53JPfpMkPMKd86ykzn8pEGvXMXuS28vulpUj5pkX5xDXNQpnTN9aOilp5ID/fFLKwjg8ClQsAqCERIy4U1fAzwv0i1yqQqcF9JvTJ6GEWV20gShmUZHPDAImC6jCcOgqBA6pj3J9akikhA799F9t/2NOt9u4RRPIXFTouWiRG2rXF0GRM//k7FkVRcSdIvM1Lh9A7Z+zDYeRhXpBVKq5PWNGO9Ir5TsvA84X6plD6ZDQIjBKg0uE9EdMta+MvdDhCTllF4BXSzKqgqrPyqfs5CbiOpcBCJum/cKfFKlR5aheySoNvs31C8XaR/dy29HsbN/k3cFd/DMLancVTSIz+lbRTP/RSed/Mu/9P3/bvEZU82ref3n7ZCsu6Tmd2lVScSHJV13IJAEBgg4JWmWhNsiGd7HftSIcJNZNhXUFVwpFfwTeEUhzWEHPjJZA0tG06h4dF7yrqXUFyXIhd329e8lgi9R/mVlLviyY4kjJMfZo9HHM5pfNbU0vz4OjRXk1tzq25QrHEKAkFgGwJFfhorokusy9Nfo04GodIxZkeXlYrJo8pLJdWDW/94OMLK7uHkJn/27nKHMmsX6ebxTYXxeGcx6z1nlf03/T3uJ3eRmPKGuz/YFcYJkB8cxWEWHTw4jfnOlKeV2Vxe2LeVc/yDQBAYIKDWn1UqyJCKxcwmkpYGhwM8o9bBqQJ7JZdZfpJy76X8ke6nSu9ubvZ4Mm/zV7g16fH3Met9Hqd3E7kpjPwl5U44J0DhwNAAWxvvqpNqrJwynjfQ5zgFgb0QMAJUK3AZT+JFVuHYNP9etZ6Pk2f0qBLL7lJ+vezDiCggAZldKr7Hwyz3XvbhZFc42Te9g7CeBjfrPb3Ue3t3tyuMf5t3e945rIBrS9nrzPrNG1lZnCA+ymevAk/gIBAETiJgJDgcTzISpDKy0JcFzd9WR05pYfKoYqviU8FlllR47E4uMsu9D+/x5OdxcOsfZmiZqWU5DQuy6V6zjIXtgWvjm3rnmtS3r5aEAFlGw2w8p9DcTuXipSU3SfeLOQgEgTMiQIXaFlVhauaRPblsceMMPd1XAfFACCINb9XIbUQY8htJhe9Jzb9DPL6lsEge7q/l8NPPrllTLvbhCChmm7n9jkkWupk8isu7ZJYcpcvDjfwVd5Pku6SbCY7vrQMXtNd4bomPykTlMPKLWxAIAmdEYJeKRZj6o4KyiJnxKc4DZHsde2VZFkKlF0EgeyIckYJIZOSHW//oG4qnb8idxd2sMXyrNTjqsh8OKuAoeCYblGZ9T+8eScLoD//++/KTVPplp+XM5BKHt34wB0aQTi1pWUtz3INAELjOCBgJLl3m6rKxRIM1hCIDupeY+VPFF5lgd7P816QIRFLh9A7cMeNOy4+j7llLOG+32wRZ7aJgCY7eidR7R9LDjcL2/m7X+zgW66FGfEw4LXhuSm/8gkAQuI4IUFH5vCqsWi01YM+xSw+vcTZaVSJBVXxJEYeTwyaziK+X/Xvw/8paz6iJnRPde0v34l63sNGKJX2eDqVX0v3cLP8+fh+GJS2cC8iJMlwlMB8MIUyvY7Hm00EgCPQIOFl4Je3cF6IpMmQc6961hIMLdyBCiGATOThRjMw98bndw3OKM1eI0pqax9FMevd9STN5rj20bC1TWpXeXYlN4ZSWPq+QK2v57tEtaVGaFjLuyyD2IBAErgMCHcktFXXFXWQzhyO5dVAA+3w/r05CZjaWRySxj6yop4TeAeFw1iETG3fbQICkk32z/NHtnNNd6YU4IVC9U7Ins97d/d3MLPNv1cX2nIBzq/rOguV1KNZ8MggEgV0RGJEdcc/g/qA6OIC9vZxg4kThhIK7/uSO3PQoHBMwH1vdSpHM0tIrssNOt1MLvRUOSeuMZTI+Zql3r0mlVZK4dPsZh+RdHKU/r+Mz3LTbJq2+XRUx4YLA9UZgRHq9m6fR/OZWVnUzOZ2ac+t0BJevwxOJQDaYnXR2IUDicAWAWnb6rkhQEn+FgfjkzuEC37JhbaCnx818l1ldus+czcftfNxUN7xn2HCZydcxizkIBIEDRoDKu0vyukoughHxsKvkbSeCeFoduECriWeNAMt7VYiMiP8Rdr4g33WCk30mHksj7qSNG+043goy87To/WuSsJAfJzJzuTnXlK7OPtt3d8JyF7wTJggEgQNEwCq7yEdkA+FAhJxF+IU1VqauZ08+q8xXHiIm4nHRt26PE9Hp27K7xI8/COu+dXsaY4m0TD0dm9Kg77MgnPt2ydv8jQMskiQpCASB80agCEFkI6kW4Z1aa1wgxG1vf2zrCEUsm8gHP4WDsDgr783In0hIEx1mdwJUGjhJmTRwTYCIT5L3b3rkz/a6T9B3zhvjfC8IBIEDR0DkYBIyhISYlaXr+DXTOB63mkE+IrZt5KNwSAj00cCwgfj4JiQo8qP19+o1W+utUH8v5tGjMPix3xgSdYJNN/fAdTLJCwLnjkBHEiIkuq5MHnAQK0QkEhwRD24iH5fE+c7pOk72KkNEevcJUip3+XGqMpMnEJhPyvh7d0kDi5zZawyx6t0hwHPXrnwwCBwRAkaGtAK5bpJu6C5jcE5Q6q4Sj/WGrAfkXTez90NKCzHhDkytNW7Jg/x4n0jX3y3zJhLkuxwe+1oi13p3CPCIdDFJDQLnjoARFK00WoE/XIcqqBUoUuoJSISFP4/C4c5aQ7rTD6ltZ3Rx6eoy1gfRchkU5+09biLA59fylVHrj3fqvfWZmSjdrO9xn4panUsr8NwBzQeDQBA4LgSsZQZJcWcxy0p6AoRo9GDmTwTlUn6E5bgr3sfYHLtSOAqLE2A4afmZdSIL4RSnl3pv7+52wrDj45GVD0h2bmkeVykktUEgCFwXBKwVSMuJI/g5nQViGZFgTz7bSErvoYXHbhH+MOPu75JZhKj3SpKWUXp4F+ci3qeIDxIPAV4XTcpHg8CRImAkyIVMLInhGRGOiAopclojsz6Mwvs7MPNIlvVEC1Pk16eH9+H26b7+j7wcaTEk2UEgCFwPBIwA2avL1ZwvHnRze+KSfY0A5S6iEpFhl5/eMSJA3DbFhSy5w+MBlv60/q6HAuWbQeDYESgSoRt8m+nE6adUU8xbXWvE5STm5hHJuX9vVutP0v09HXIn3BPrmgB1fZeZ5mMvj6Q/CASBc0LAWlAQILPBbE3joiCN2XnrTQS0jxSp9VLv6N1ll79L+XGy890r7RCf/81rD88JvnwmCASBY0egiETLVRgL/Oi6dAnyEQFK7tsaHBGYiGxNehw3E57DDx5Ry2q00FoEqOUwGQs8dqVM+oPAtUTAWn5OIpAgrUDW6339dMjBP9R4IDOua0tknKB2Mfek18fBHzc98od4Oc6Lo/dJ39LlHeQlBHgtlSfvDgLHjgCkQR7WyKO2l2lxNCTkY3H7jvGJxERsbt/FzPcg4B+o47Porp/q6o7cjr2ckv4gEASuEQK0oja9ui4LZ60dB47yQFYiQhFXeS1C7kh1lyXlp3fJznijHidXvsWDG9dovtOm9MYvCASBIHBVELAWIgukn1stMMhIpCWiuoGibviPH6RFl1lE6f4en7BOfApHPNxFfuwx5qL191PGlDbZI4NAEAgCVxUBjbHx0jpAlbs2/k4sZURoTnNLjZOd+XMS8zAiUAiOQ1D500McyJM/Hlqez5v+3q7ScdOrmsm8LAgEgSAwQkDjaSWZcOCoK47T/0NrnRVPnRBqBdJCXHvwUwtPYdQiREKAXHDE6TJ3rt0eNxmlM25BIAgEgWuCQLfNjNNcblsXjD+ntfZyGxOkpUarD/La9ODPHwToBCk3JC1CLjjiovfba7kLGVTX11un1yTjeWkQCAKXFwG1uLpWoHZcsGWOO0WeVEdo/UnXHRbJuVwjRcLQEkS+rI7I4r28/+aUgE/U6OKly1syyXkQCALngkCRH2sCtU4QyZFTsr9Ka+1taksaLcIXVbeVlqDG8fpurogQf8YTIU+Oznp2XWzEIaknZqbdrm+fCwD5SBAIApcPgSIZ1tnxx9jfvOYOJKxliNuNyw1CvEWtG6T1xnKVl0y7Nf607hmhZcdBqX/TWvvz1trv1fH731+tyPtzU902pEnXtjDxDwJBIAhcEQJFgCI+5NwiM2Kc3Yoc18x0kzmmnuPx32g6BPVu9YcZNw5duPk+pLZP2CsCIJGDQBAIArsiUMSobvGaFFGeasWtxd/1+wkXBIJAEDgYBJzQ1hLlYUbmtXhxDwJBIAgcNAJOaGsJ9TAyr4WNexAIAkHgaBAQoSFHiV7zd3eZR/HjFgSCQBC4MAjYZMqQMC9MRpORIBAELj4Car0ZsTEBoskRTYbM8uKjkRwGgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEjhiB/w+HafN2er0wSQAAAABJRU5ErkJggg=="}))))}const Zg=i.forwardRef(Xg);n.p;var Jg=n(93322),$g=n(519),ev=n(36854),tv=n(99155),nv=n(75064),rv=n(27869),iv=n(29823),ov=n(70114),av=n(17192);function sv(e){let{onFocus:t}=e,[n,r]=(0,i.useState)(!0),o=(0,ov.a)();return n?i.createElement(av.j,{as:"button",type:"button",features:av.O.Focusable,onFocus:e=>{e.preventDefault();let n,i=50;n=requestAnimationFrame((function e(){if(i--<=0)n&&cancelAnimationFrame(n);else if(t()){if(cancelAnimationFrame(n),!o.current)return;r(!1)}else n=requestAnimationFrame(e)}))}}):null}var lv=n(33498),cv=n(9417),uv=n(61484),dv=n(43139),pv=n(21150);const hv=i.createContext(null);function fv(e){let{children:t}=e,n=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(hv.Provider,{value:n},t)}function mv(e){let t=i.useContext(hv);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],a=r;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return i.useEffect((()=>o),[]),r}var gv=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(gv||{}),vv=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(vv||{}),yv=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(yv||{});let bv={0(e,t){var n;let r=(0,lv.wl)(e.tabs,(e=>e.current)),i=(0,lv.wl)(e.panels,(e=>e.current)),o=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=(0,cv.Y)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,cv.Y)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return a;let i=(0,cv.Y)(n,{0:()=>r.indexOf(o[0]),1:()=>r.indexOf(o[o.length-1])});return{...a,selectedIndex:-1===i?e.selectedIndex:i}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>o.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,lv.wl)([...e.tabs,t.tab],(e=>e.current)),i=e.selectedIndex;return e.info.current.isControlled||(i=r.indexOf(n),-1===i&&(i=e.selectedIndex)),{...e,tabs:r,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,lv.wl)([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},wv=(0,i.createContext)(null);function xv(e){let t=(0,i.useContext)(wv);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,xv),t}return t}wv.displayName="TabsDataContext";let Cv=(0,i.createContext)(null);function Av(e){let t=(0,i.useContext)(Cv);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Av),t}return t}function Ev(e,t){return(0,cv.Y)(t.type,bv,e,t)}Cv.displayName="TabsActionsContext";let _v=i.Fragment;let Tv=pv.O5.RenderStrategy|pv.O5.Static;let Sv=(0,pv.FX)((function(e,t){var n,r;let o=(0,ev.B)(),{id:a="headlessui-tabs-tab-".concat(o),...s}=e,{orientation:l,activation:c,selectedIndex:u,tabs:d,panels:p}=xv("Tab"),h=Av("Tab"),f=xv("Tab"),m=(0,i.useRef)(null),g=(0,iv.P)(m,t);(0,tv.s)((()=>h.registerTab(m)),[h,m]);let v=mv("tabs"),y=d.indexOf(m);-1===y&&(y=v);let b=y===u,w=(0,$g._)((e=>{var t;let n=e();if(n===lv.Me.Success&&"auto"===c){let e=null==(t=(0,dv.T)(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&h.change(n)}return n})),x=(0,$g._)((e=>{let t=d.map((e=>e.current)).filter(Boolean);if(e.key===Jg.D.Space||e.key===Jg.D.Enter)return e.preventDefault(),e.stopPropagation(),void h.change(y);switch(e.key){case Jg.D.Home:case Jg.D.PageUp:return e.preventDefault(),e.stopPropagation(),w((()=>(0,lv.CU)(t,lv.BD.First)));case Jg.D.End:case Jg.D.PageDown:return e.preventDefault(),e.stopPropagation(),w((()=>(0,lv.CU)(t,lv.BD.Last)))}return w((()=>(0,cv.Y)(l,{vertical:()=>e.key===Jg.D.ArrowUp?(0,lv.CU)(t,lv.BD.Previous|lv.BD.WrapAround):e.key===Jg.D.ArrowDown?(0,lv.CU)(t,lv.BD.Next|lv.BD.WrapAround):lv.Me.Error,horizontal:()=>e.key===Jg.D.ArrowLeft?(0,lv.CU)(t,lv.BD.Previous|lv.BD.WrapAround):e.key===Jg.D.ArrowRight?(0,lv.CU)(t,lv.BD.Next|lv.BD.WrapAround):lv.Me.Error})))===lv.Me.Success?e.preventDefault():void 0})),C=(0,i.useRef)(!1),A=(0,$g._)((()=>{var e;C.current||(C.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),h.change(y),(0,uv._)((()=>{C.current=!1})))})),E=(0,$g._)((e=>{e.preventDefault()})),_=(0,i.useMemo)((()=>{var t;return{selected:b,disabled:null!=(t=e.disabled)&&t}}),[b,e.disabled]),T={ref:g,onKeyDown:x,onMouseDown:E,onClick:A,id:a,role:"tab",type:(0,rv.c)(e,m),"aria-controls":null==(r=null==(n=p[y])?void 0:n.current)?void 0:r.id,"aria-selected":b,tabIndex:b?0:-1};return(0,pv.XX)({ourProps:T,theirProps:s,slot:_,defaultTag:"button",name:"Tabs.Tab"})})),kv=(0,pv.FX)((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:a,selectedIndex:s=null,...l}=e;const c=r?"vertical":"horizontal",u=o?"manual":"auto";let d=null!==s,p=(0,nv.Y)({isControlled:d}),h=(0,iv.P)(t),[f,m]=(0,i.useReducer)(Ev,{info:p,selectedIndex:null!=s?s:n,tabs:[],panels:[]}),g=(0,i.useMemo)((()=>({selectedIndex:f.selectedIndex})),[f.selectedIndex]),v=(0,nv.Y)(a||(()=>{})),y=(0,nv.Y)(f.tabs),b=(0,i.useMemo)((()=>({orientation:c,activation:u,...f})),[c,u,f]),w=(0,$g._)((e=>(m({type:1,tab:e}),()=>m({type:2,tab:e})))),x=(0,$g._)((e=>(m({type:3,panel:e}),()=>m({type:4,panel:e})))),C=(0,$g._)((e=>{A.current!==e&&v.current(e),d||m({type:0,index:e})})),A=(0,nv.Y)(d?e.selectedIndex:f.selectedIndex),E=(0,i.useMemo)((()=>({registerTab:w,registerPanel:x,change:C})),[]);(0,tv.s)((()=>{m({type:0,index:null!=s?s:n})}),[s]),(0,tv.s)((()=>{if(void 0===A.current||f.tabs.length<=0)return;let e=(0,lv.wl)(f.tabs,(e=>e.current));e.some(((e,t)=>f.tabs[t]!==e))&&C(e.indexOf(f.tabs[A.current]))}));let _={ref:h};return i.createElement(fv,null,i.createElement(Cv.Provider,{value:E},i.createElement(wv.Provider,{value:b},b.tabs.length<=0&&i.createElement(sv,{onFocus:()=>{var e,t;for(let n of y.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),(0,pv.XX)({ourProps:_,theirProps:l,slot:g,defaultTag:_v,name:"Tabs"}))))})),Pv=(0,pv.FX)((function(e,t){let{orientation:n,selectedIndex:r}=xv("Tab.List"),i=(0,iv.P)(t);return(0,pv.XX)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),Dv=(0,pv.FX)((function(e,t){let{selectedIndex:n}=xv("Tab.Panels"),r=(0,iv.P)(t),o=(0,i.useMemo)((()=>({selectedIndex:n})),[n]);return(0,pv.XX)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})})),Fv=(0,pv.FX)((function(e,t){var n,r,o,a;let s=(0,ev.B)(),{id:l="headlessui-tabs-panel-".concat(s),tabIndex:c=0,...u}=e,{selectedIndex:d,tabs:p,panels:h}=xv("Tab.Panel"),f=Av("Tab.Panel"),m=(0,i.useRef)(null),g=(0,iv.P)(m,t);(0,tv.s)((()=>f.registerPanel(m)),[f,m,l]);let v=mv("panels"),y=h.indexOf(m);-1===y&&(y=v);let b=y===d,w=(0,i.useMemo)((()=>({selected:b})),[b]),x={ref:g,id:l,role:"tabpanel","aria-labelledby":null==(r=null==(n=p[y])?void 0:n.current)?void 0:r.id,tabIndex:b?c:-1};return b||null!=(o=u.unmount)&&!o||null!=(a=u.static)&&a?(0,pv.XX)({ourProps:x,theirProps:u,slot:w,defaultTag:"div",features:Tv,visible:b,name:"Tabs.Panel"}):i.createElement(av.j,{as:"span","aria-hidden":"true",...x})})),Nv=Object.assign(Sv,{Group:kv,List:Pv,Panels:Dv,Panel:Fv});const Iv=e=>{let{text:t}=e;return(0,a.jsx)("div",{className:"flex flex-shrink-0 items-center justify-center min-w-[47px] min-h-[47px] 2xl:min-w-[64px] 2xl:min-h-[64px] border-[1px] border-[#FAFAFA] rounded-full",children:(0,a.jsx)("span",{className:"text-[17px] lg:text-[24px] text-neutral-900 custom-shadow-steps font-[700]",children:t})})},Rv=e=>{let{step:t,text:n,subText:r,isCurrentStep:i,onClick:o}=e;return(0,a.jsxs)(Nv,{className:"ui-not-focus-visible:outline-none focus:outline-none focus-visible:outline-none flex flex-1 border-[1px] border-transparent items-center gap-[24px] p-[12px] 2xl:py-[18px] 2xl:px-[24px] z-30 ".concat(i?"bg-carouselButtonBackgroundGradient border-[1px] border-[#343A40] backdrop-blur-[21px]":"cursor-pointer customStepsBg"," rounded-[12px]"),children:[(0,a.jsx)(Iv,{text:t}),(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)("span",{className:"leading-normal text-[#F8F9FA] text-[17.6px] 2xl:text-[24px] font-[700] text-left",children:n}),(0,a.jsx)("span",{className:"leading-normal text-[#A4A4A4] text-[10.3px] 2xl:text-[14px] font-[400] text-left",children:r})]})]})},Ov=n.p+"static/media/step-01-image.475200a3546fbcb39141.png",jv=n.p+"static/media/getting-started-step-02.a158778252d755091f49.png",Mv=n.p+"static/media/getting-started-step-03.d645ff2ddfb929ff137b.png",Lv=e=>{let{direction:t,handleSeek:n}=e;return(0,a.jsx)("button",{"aria-label":t,onKeyDown:()=>n(t),className:"flex items-center justify-center w-[41px] h-[41px] rounded-full p-[8px] bg-seekStepBackground hover:opacity-80",onClick:()=>n(t),children:(0,a.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"rotate(".concat("left"===t?180:0,")"),children:(0,a.jsx)("path",{d:"M9 5.29834L16 12.2983L9 19.2983",stroke:"#F8F9FA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})};var Bv=n(23220);const Uv=[{image:Ov,step:"01",subText:"Flowty supports 5 different wallet types",text:"Sign in / Register"},{image:jv,step:"02",subText:"Check out thousands of listings from Top Shot, All Day and other collections",text:"Visit"},{image:Mv,step:"03",subText:"Use our advanced filter and sort options to find NFTs to buy!",text:"Buy Now!"}],Vv=()=>{const[e,t]=(0,i.useState)(0),n=e=>{t("left"===e?e=>0===e?Uv.length-1:e-1:e=>e===Uv.length-1?0:e+1)};return(0,a.jsx)("div",{children:(0,a.jsx)(Nv.Group,{selectedIndex:e,onChange:t,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex justify-between items-center",children:(0,a.jsx)(Nv.List,{className:"inline-flex gap-[64px] items-stretch justify-between w-full container 2xl:px-[192px]",children:Uv.map(((t,n)=>(0,a.jsx)(Rv,{step:t.step,text:t.text,subText:t.subText,isCurrentStep:n===e},t.step)))})}),(0,a.jsx)(Nv.Panels,{className:"px-[192px] mt-[63px]",children:(0,a.jsxs)("div",{className:"flex flex-col items-start rounded-[25px] relative shadow-gettingStartedBoxShadow p-[18px]",style:{background:"rgba(255, 255, 255, 0.08)",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)"},children:[(0,a.jsx)("div",{className:"absolute -right-6 top-1/2 transform -translate-y-1/2 cursor-pointer",children:(0,a.jsx)(Lv,{handleSeek:n,direction:"right"})}),(0,a.jsx)("div",{className:"absolute -left-6 top-1/2 transform -translate-y-1/2 cursor-pointer",children:(0,a.jsx)(Lv,{handleSeek:n,direction:"left"})}),Uv.map(((t,n)=>(0,a.jsx)(Nv.Panel,{static:!0,className:(0,Bv.A)("transition duration-500 ease-in-out ui-not-focus-visible:outline-none",n!==e&&"opacity-0"),"aria-hidden":n!==e,children:(0,a.jsx)("img",{alt:t.subText,src:t.image,className:"w-full rounded-[25px] ".concat(n!==e?"h-[0px]":"h-full"),style:{boxShadow:"8.194px 8.194px 40.968px 0px rgba(55, 55, 55, 0.54)"}})},t.subText)))]})})]})})})},Hv=Vv,zv=e=>{let{isUserLoggedIn:t,connectWallet:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center pt-[61px] gap-[53px] 2xl:max-w-[1920px] mx-auto rounded-[24px] relative",children:[(0,a.jsx)("div",{style:{background:"rgba(255, 255, 255, 0.04)",height:"65%"},className:"absolute top-0 left-0 w-full h-full bg-cover bg-center rounded-[24px] z-0"}),(0,a.jsxs)("div",{className:"flex flex-col items-center leading-normal z-10",children:[(0,a.jsx)("div",{className:"text-[#FFF] text-[48px] font-[800]",children:"3 Steps To Get Started"}),(0,a.jsx)("div",{className:"text-neutral-500 text-[24px] font-[400]",children:"Don't miss out on great deals and awesome features only available on Flowty!"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-start gap-[24px] z-10",children:[(0,a.jsxs)("a",{href:"https://docs.flowty.io/reference",className:"flex w-[340px] flex-1 py-[12px] px-[24px] gap-[16px] items-center justify-center rounded-[6px] border-2 border-neutral-300 hover:opacity-80",target:"_blank",rel:"noreferrer noopener",children:[(0,a.jsx)("span",{className:"text-neutral-900 text-center text-[18px] font-[900] leading-[16px]",children:"LEARN MORE"}),(0,a.jsx)(Zg,{})]}),!t&&(0,a.jsxs)("button",{onClick:n,className:"flex w-[340px] flex-1 bg-neutral-900 py-[12px] px-[24px] gap-[16px] items-center justify-center rounded-[6px] hover:opacity-80",children:[(0,a.jsx)("span",{className:"text-center text-[18px] font-[900] leading-[16px] text-navy-blue-900",children:"SIGN IN"}),(0,a.jsx)(Gg,{})]})]}),(0,a.jsx)(Hv,{})]})};var Wv=n(19388);const qv=e=>{let{isUserLoggedIn:t}=e;const[n,r]=(0,i.useState)(0);return(0,a.jsx)(Nv.Group,{selectedIndex:n,onChange:r,children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"flex flex-col flex-shrink-0 gap-[52px] items-center py-[61px] px-[18px] sm:px-[44px] pb-[200px] rounded-[24px]",style:{background:"rgba(255, 255, 255, 0.08)"},children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"text-[#FFF] text-[24px] font-[800] text-center",children:"3 Steps To Get Started"}),(0,a.jsx)("div",{className:"text-neutral-500 text-[10px] sm:text-[12px] font-[400] text-center leading-normal",children:"Don't miss out on great deals and awesome features only available on Flowty!"})]}),(0,a.jsx)(Nv.List,{className:"flex flex-col gap-[32px] self-center",children:Uv.map(((e,t)=>(0,a.jsx)(Rv,{step:e.step,text:e.text,subText:e.subText,isCurrentStep:t===n},e.step)))}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-start gap-[12px] md:gap-[24px] w-full",children:[(0,a.jsxs)("a",{href:"https://docs.flowty.io/reference",className:"flex w-full flex-1 py-[12px] px-[24px] gap-[16px] items-center justify-center rounded-[6px] border-2 border-neutral-300",target:"_blank",rel:"noreferrer noopener",children:[(0,a.jsx)("span",{className:"text-neutral-900 text-center text-[13.8px] sm:text-[18px] font-[900] leading-[16px]",children:"LEARN MORE"}),(0,a.jsx)(Zg,{})]}),!t&&(0,a.jsxs)("button",{onClick:()=>{Wv.authenticate()},className:"flex w-full flex-1 bg-neutral-900 py-[12px] px-[24px] gap-[16px] items-center justify-center rounded-[6px]",children:[(0,a.jsx)("span",{className:"text-center text-[13.8px] sm:text-[18px] font-[900] leading-[16px] text-navy-blue-900",children:"SIGN IN"}),(0,a.jsx)(Gg,{})]})]})]}),(0,a.jsx)("div",{className:"w-full rounded-[12px] px-[22px] -mt-[140px]",children:(0,a.jsx)(Nv.Panels,{children:Uv.map(((e,t)=>(0,a.jsx)(Nv.Panel,{static:!0,className:(0,Bv.$)("transition duration-500 ease-in-out ui-not-focus-visible:outline-none",t!==n&&"opacity-0"),"aria-hidden":t!==n,children:(0,a.jsx)("img",{alt:e.subText,src:e.image,className:"w-full border-2 rounded-[12px] object-cover ".concat(t!==n?"h-[0px]":"h-full"),style:{boxShadow:"8.194px 8.194px 40.968px 0px rgba(55, 55, 55, 0.54)"}})},e.subText)))})})]})})},Gv=e=>{let{isUserLoggedIn:t,connectWallet:n}=e;const[r,o]=(0,i.useState)(0);return(0,a.jsx)(Nv.Group,{selectedIndex:r,onChange:o,children:(0,a.jsxs)("div",{className:"inline-flex flex-col items-center container pt-[61px] gap-[53px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("div",{className:"text-[#FFF] text-[40px] font-[800] leading-normal",children:"3 Steps To Get Started"}),(0,a.jsx)("div",{className:"text-neutral-500 text-[18px] font-[400] leading-normal",children:"Don't miss out on great deals and awesome features only available on Flowty!"})]}),(0,a.jsx)(Nv.List,{className:"flex gap-[32px] w-full justify-center",children:Uv.map(((e,t)=>(0,a.jsx)(Rv,{step:e.step,text:e.text,subText:e.subText,isCurrentStep:t===r},e.step)))}),(0,a.jsxs)("div",{className:"flex items-center justify-start gap-[24px]",children:[(0,a.jsxs)("a",{href:"https://docs.flowty.io/reference",className:"flex w-[261px] flex-1 py-[9.2px] px-[18.5px] gap-[16px] items-center justify-center rounded-[6px] border-2 border-neutral-300",target:"_blank",rel:"noreferrer noopener",children:[(0,a.jsx)("span",{className:"text-neutral-900 text-center text-[13px] font-[900] leading-[16px]",children:"LEARN MORE"}),(0,a.jsx)(Zg,{})]}),!t&&(0,a.jsxs)("button",{onClick:n,className:"flex w-[261px] flex-1 bg-neutral-900 py-[9.2px] px-[18.5px] gap-[16px] items-center justify-center rounded-[6px]",children:[(0,a.jsx)("span",{className:"text-center text-[13px] font-[900] leading-[16px] text-navy-blue-900",children:"SIGN IN"}),(0,a.jsx)(Gg,{})]})]}),(0,a.jsx)(Nv.Panels,{children:Uv.map(((e,t)=>(0,a.jsx)(Nv.Panel,{static:!0,className:(0,Bv.$)("transition duration-500 ease-in-out ui-not-focus-visible:outline-none",t!==r&&"opacity-0"),"aria-hidden":t!==r,children:(0,a.jsx)("img",{alt:e.subText,src:e.image,className:"w-full rounded-[25px] ".concat(t!==r?"h-[0px]":"h-full"),style:{boxShadow:"8.194px 8.194px 40.968px 0px rgba(55, 55, 55, 0.54)"}})},e.subText)))})]})})},Yv=e=>{let{isUserLoggedIn:t,connectWallet:n}=e;const r=Hg();return["xl","desktop","laptop"].includes(r)?(0,a.jsx)(zv,{connectWallet:n,isUserLoggedIn:t}):["tablet"].includes(r)?(0,a.jsx)(Gv,{connectWallet:n,isUserLoggedIn:t}):(0,a.jsx)(qv,{connectWallet:n,isUserLoggedIn:t})},Kv=n.p+"static/media/SaleTag.18f8a3d5f59b7bfbaf36.png",Qv=n.p+"static/media/BackgroundSquares.86c4b845130245523ec3.png";var Xv,Zv;function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(null,arguments)}function $v(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Jv({width:23,height:24,viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,Xv||(Xv=i.createElement("rect",{x:.046875,y:.914062,width:22.7334,height:22.7334,rx:11.3667,fill:"url(#pattern0_10301_3038)"})),Zv||(Zv=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_10301_3038",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_10301_3038",transform:"scale(0.0025)"})),i.createElement("image",{id:"image0_10301_3038",width:400,height:400,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAgAElEQVR4AeydB5xjVfX4b3p9Ncm0lFdSZmYrnUV6UUBAmqh0EaWpSFMU+QkIiCgiCoI/RGAb9S/+EEUELBTpHZZd2GX7sr3NTJLX3/9z3kuymdlZWHYnk3mZm8/9vHnJJK+ce+/3nXvuuecgDy3ggiWAJYAl4AgJIEdcJb5ILAEsASwBDy1gYGEFE0sAS8AxEsDAckxV4QcslgCWAAYWBhaWAJaAYySAgeWYqsJPVywBLAEMLAwsLAEsAcdIAAPLMVWFn65YAlgCGFgYWFgCWAKOkQAGlmOqCj9dsQSwBDCwMLCwBLAEHCMBDCzHVBV+umIJYAlgYGFgYQlgCThGAhhYjqkq/HTFEsASwMDCwMISwBJwjAQwsBxTVfjpiiWAJYCBhYGFJYAl4BgJYGA5pqrw0xVLAEsAAwsDC0sAS8AxEsDAckxV4acrlgCWAAYWBhaWAJaAYySAgeWYqsJPVywBLAEMLAwsLAEsAcdIAAPLMVWFn65YAlgCGFgYWFgCWAKOkQAGlmOqCj9dsQSwBDCwMLCwBLAEHCMBDCzHVBV+umIJYAlgYGFgYQlgCThGAhhYjqkq/HTFEsASwMDCwMISwBJwjAQwsBxTVfjpiiWAJYCBhYGFJYAl4BgJYGA5pqrw0xVLAEsAAwsDC0sAS8AxEsDAckxV4acrlgCWAAYWBhaWAJaAYySAgeWYqsJPVywBLAEMLAwsLAEsAcdIAAPLMVWFn65YAlgCGFgYWFgCWAKOkQAGlmOqCj9dsQSwBDCwMLCwBLAEHCMBDCzHVBV+umIJYAlgYGFgYQlgCThGAhhYjqkq/HTFEsASwMDCwMISwBJwjAQwsBxTVfjpiiWAJYCBhYGFJYAl4BgJYGA5pqrw0xVLAEsAAwsDC0sAS8AxEsDAckxV4acrlgCWAAYWBhaWAJaAYySAgeWYqsJPVywBLAEMLAwsLAEsAcdIAAPLMVWFn65YAlgCGFgYWFgCWAKOkQAGlmOqCj9dsQSwBDCwMLCwBLAEHCMBDCzHVBV+umIJYAlgYGFgYQlgCThGAhhYjqkq/HTFEsASwMDCwMISwBJwjAQwsBxTVfjpiiWAJYCBhYGFJYAl4BgJYGA5pqrw0xVLAEsAAwsDC0sAS8AxEsDAckxV4acrlgCWAAYWBhaWAJaAYySAgeWYqsJPVywBLAEMLAwsLAEsAcdIAAPLMVWFn65YAlgCGFgYWFgCWAKOkQAGlmOqCj9dsQSwBDCwMLCwBLAEHCMBDCzHVBV+umIJYAlgYGFgYQlgCThGAhhYjqkq/HTFEsASwMDCwMISwBJwjAQwsBxTVU5/unqpelFnrdtx4hbuYvC91N8X3m+sBDCwGitfp1NmO64/66EHFS8F/XlQoXkvzfsp3urnWRedddF5J249dBbuy74X66a81W29oFyMUCv1n+P9nZcABhYG1k5KYBCtKl16MLD8FNCqHlgeCoDluK19d5V7qaLKZlZ9V6zRysXspGzxz4dKAANrqETqWx7e3w4JDAXWYIULxDtI27IGhl4KBoOO29bfyHZIBjetkZcABtbIy3ScNeVPB5YtEC9ljacGK1/1CHDK/jir37HVQTCwxlZ9OLYzDMWWZaKyzVWVrYfK1w+pauNEB+3YtvYht1bVKHFDGg0JYGCNhpQdi6HtF84nAytvWdnBbgVqVNVoDVYtZ+1TwhBagSWuUrZfVvibOy4BDKwdl904wNCOCKe+SyMmX1+s7g3HtFUVJ25ddBYxgzRH+37rG0P92Lb+c7y/8xLAwNqRPrnzcm/hI3wysGrMcqIEtkz/gWfGoFJ/OxhY9dIY2X0MLAysnZIAiqbdFO9lRLtdehnRH8v5YzlE8IgSPWzeGyt42LybybmZXG0H9BRKRJToZnLeWMGf6BnS/8foW0bwxnNey1nBy4j2Xbsp3kMLKNgZ7ZzgZ7JuggPNkeTdBOdnbM/YnZLwyHZ4px8NAws3pp2SgI/N+tisP5YLxPPQb6NpFEm5SM7HZj0xsO8gmneRnIsRAGRtBUSkEcWBMSue88W7PTGLXGQGiMYCv8by1suIPlb0MZyXzniYjJfmPbY3FnwOQkCRtIfkg7G8h+RRJO2jKxx3OibGzvVjYO1Udx07FdmsK/Eyoq1i+GM5H5t1kZyH5kMWmFxkBgZHjOBjBDfFuYg0iqYC8Zw/BoyDns9mbW3FTXHW9YOq4gEKjN2tn07ZxUunfGTaQ6X9VMZn3aOLSLuiGUuxyntI0U0IHhIDa4T7FwbWCAu0WeBo1nntYZGL5BCRQUTGRWYs+vCBWNbP8j6G85FpKFQywKRDMQ5Fu7x0JpTIRjsKdiE6u8munkh7fuwXoj1LtglUh0B3imQ7D/vtObojT7YXwjERRVPBWN5NcG5CcBOCj84BswC+uIyYBDCwRkyU47NdIlIAQ1U852IEHytGOnoi7d0+hvNEkz4qGWQzYTYdZtNEgmc7colkd7owddKeBxx05AlHn3TGl7769aO+fPqRJ5x65AmnHvXl08d+OfrE0485/pRjv3zKsSeedtQJpxx94ulfOunMo0844/BjT9t9v6OCjBiM5b0UoAqFM7bf2fhsFY27awwsDKydkkANWJatKmPZdDIuIkm0Z+mObCxZyOSn7jrtkBO+cuYPrrj+V7+5c+YDjzz6+NPPvvj6q2+9/8qbc1587Z0XX3vn5Tfee+XNOWO/vPrGu6+8/o69fen1d195c86rb8574ZU5Tz/7xnkX/Q/V0e2Jgt0q2j4RBVMoIviYbstLa6ck3LjO78QjY2DhxrRTEvDFu10sqFcuRkDRFCLSdGpCbvJ+e+7/xeNP/uaV1/5q1gOP/vu5196Zs2DJ8vXr1xf7B6RyWVYUTVE0SVIkSVFV3TBMVdWdUhTVlGS9KOmSasqGuWnAXLpq4JIrbiDbC14i441y4UQvCvMeqttLFzCwRhaLGFg71V1HtjKccrSKn5E1QeZnRRTp9LN8mzglO3mfPQ444uvnXfrr2+997pX33v9w2brNZVkzJdUsS7okG5pq6rppaLqh6aZu1Aq8NUxnFBNemm6qmqmZUPrL5vJV/aee9d0wI0QTBRRMuqI8iorhtkkuwvaDx21sxCSAgTViohybuKl3Yhy8n7VWIw/ZCn5WdJMZF5H2UuCIEIh3e2MFb6yAAl0+Nm9P2PtILkDyfiIdplNsG8dnJ+z9uYPPOOuc2+6465XX31m9bnOxpAzhj9XNW2FjGIZpoVWSdUU1i5KpGObbcxbvd8iXyETeE02HmJyH5L1MzsvkHO0lOzbbMwYWBlY9s0BHCLGw3M8VzaBICoXTKJJBUS4Q74ZPAp2eaDrMZEMU19bZM2WX/U4/4+wbbrjxySefXrBg4fr1G0slSZZlSZKqcNJNc0ip/seZfw1D0zTF0rAAXUXJlHXzyX+9PHn3A/1k0hVO+llwZQAPD8sVfmx2e+deFQbWuAWWHaaqnlawMhlFU16aD7C5AAt+VbbbOnS/aCbS3h1isyjQHmIyU/Y46IILf3TXPQ+89vrbS5YsKxbLMNYzoAx+DaGVPvi/Tnyny3JZ1WAUq1nAKsrmLbfdk8nt4gq1uSOpGrAQzaOKT1mLt7HRxB8GVos3psHDwKGx9LYaFQquaMZDweKSyspkyy8URZIeigsyfJjlhO7dz/jW9+576LH3P1i8fkO/aUHKtqCrKvDIMAxFUaooajVgGYamqrKmm5Ks2sBas6F81rmXJtITPNGknwIHNFjdzYiI4jCwRpxlGFjjHFhDERaM5X206IpmKuSqBALORNvEZHbKoUef9Mvf3vn+/CWyZqqmqaimomhVNsFfwxoyqapa/+HgUeHg/zjtnarKhqHBYLAkSSrMJ8ydv/ygL5xAted8ZDrEZi23flhciSjObQ0PR7zTjucDYmBhYA1ilpvgXFFYUhOM52B0Q6XDbbkOccr+nz/uh1fd8OQzL65ct0m29IuSVNYMXdPADG0YpqYZsvXStEEIs4hUr2c5DVGDr1eSSibMbprFkiKpZlEx//b0C5P3PChIgU9/IJaFFUhExsfCIkpvPDee4dKIe8fAGt/AGpxJAVbzUpybzPhZMZTIe4lUKMZNmXbIyd/49gN//vvcBYuLil5S1GK5JMtlRYVtTauyp8/st1tpWIM7vZPf2cBSNUNWDFkz124q/eI3f+B7dvdGrPEgm4OZCiITiOfdFO+PYWCNcP/CwBphgTbiqbIzx/wUG9ZWwAol8rAAkOFCrBBtE3eZduj1N98xd+HHm0tKWTUkTVd1zTR13ZAVtWiYCuzruqZpuq4b1svJOPr0a1dV2TR1WVVU05Q186Pl68793hUJbqInCupVqK3bjrcTTBRcJFeLurMzNYh/Wy8BDKyWB5Y9Dzho3OelBBeR9rOi7XXlJlMuIukikl4646cy4TgfinHxVPfRJ51x/yOPL129cUN/WbUGQpZ/p26aqgE+3rINrE/v5S30DUNXdV01TLOsGopuvjV3yWFHn8wmJ1ihZoTB4ZIh+Ex9Z8P7Oy8BDKxxCiywDZMZFE2FEnk/y7uIZCiRdZNdASaNAmw7N+Eb51/6t6efX7mur2y5dINfumVStyzoNrCU8QcsXVNlXYcphZKiby5p//jPK7vve0SkvbvaFetd2zGwRr5zYWCNvEyrbXdMHHmw44KlZ1nDwEAsawGrKxATULgDBduiHTk/naI6hF32PvDC7//Psy++DkqUbm7aXJQVMK3D7JgB40FL2VJ0WKBSeVudB2whVWr4W9ENoBV4byiGuWZj8c6Z/y/Ts0fQMq7XoqRWGwAG1sh3AQyskZdptb2OiSN/ArDA34rOuMmUXVC0I8imeneZdsNNv53z4eK+oiJp5kCx3N9ftEzpQKsasHTTsEsVVfY84PC9vIU+rU13AqqXrlx/5fU3U515LzMom061AWBgjXwXwMAaeZlW2+uYOPK2gBWMw6LlUCLrpTPRjlwgxqFgfOo+h15346/nfLBAM01Z0UolSdetVcowHNRMAFZlJV1t5bIFo1o3bnlsgYalwqgQFK133l905rmXwICazFjqlZ3NrBLHfesU9mOqYTj0YjCwxgRWGtd6tgUsL51BkU6iE4LtoWgHinbkd93/lv+dsXzlOvDh1k1JknRVM3RVkcuaKg8BlmqC46hqLQMerGS1wOKbT9AIgciKIhmGUVaNfz7zymFHfzUQE9wUPxhYlrO7NfRuXM2OzyNjYI1TYNlzgsE4H4hxHirZvfuBP7v1rkWrNiuGWSwW+/r6FLkMKpVSNpSyaaimPkjDUg2YKVQNCAkz3oClabDwaGN/6d77/zxhjwPAYY0RrXyFkISxmloVFpBXpw5bvI2NJjoxsFq8MQ3vh0XzbjIDo8JgnOrM9uy23w+u+vmSNf0biqBbqaoKpmVDUxVJ1yRT10DD0jXTcrQCe5bl1zBegaWqimSY5serN/ziN39o4yf5WMhXNljDshsVtmGNfOfCwBp5mY7mA+fTzsWjcFeoHRLVuEjOSm+T9bGQKAGFOom2PJEQ29Ldl1z+P3M/XDRQlBVr9fLgEZHlemVTqu4ftXBXdZ+Nh11dVUq6psiK9tHSVd+57KqEsCsKJu28ikOcsOworJ9WQa3d/Eb+7jCwRl6mY6mN8i4q5WEgmY2XEexQfP5YwU3xRFs3cjFd/KSzz73o70/+e9PmflVWrEVy44E7O3yPerl/E3i6K8acD5YefvzpVmYzwUXnbVpVo1zwLoaHmNFWytWx1B4c39oxsBxfhZ/YH3h/XEBk0k1xPlZ0U6KLrNwv2d6DPPRhR530+FPP9JVkwzRtE/sOd+Xx8UNdk4qmqfcPSM++8Gb3rvujUBeENqwHluXdDuoVnUU48/NIpzjDwGptYEHqLRRN+WNZCHgSTiIi46GtSAxUZureh9xyx/SV6/qAVqZh6CrYqvDrUySgq7KyZu2mO+6+ryu7G6wcZHK+eK+dbAI0LAyskYZU/SMZA6vFgeWmeBRJ2cEDXCQXauv20WIglu0Qp1x5/c3vf7SirJkQe0BVaj7cn9Jhx/u/dUVRVqxaf+Y5F9KdPfAYCKW8sR4MrHqsNG4fA6vFgeWP5VA0Df0qkvKx2WhHDwp1hljhhFO+9fRzr5ZUWHyj6pqiSJpatjyrWtuRamdxWy6WTNP8aPGK3fY51EtDGBkUBiWrAqw6VwZ7pU7juu74PDIGVosDK9TW66ZEL5ND4aSfgXiYXiK12+cO/+N9f166eqOkm9bcYAVYhg6xU3a2T7f076VSWZGNx596Jl2Y6iKSPjbrYYf3vcLAagRSMbBaHFheuuAmc8FEDyIgLJ+fynSJUy+6/Jp3P1wqGyasFiwV7Wh8sJ4XA+vTaKurxqrV62+46bcd/ERYPU6k/e29iKq0onpnUQwsDKwWh0sjKhiSD1N5NyH4mWyAFoj27HFfO/vPj/+rqEBEJ1k3NEO3gpQrhi5hYH0ar+D/S5auPO7Lpye4iSiacrOiN9GNaEjtBbkn8JCwkRZ3Dy1gDavFIYiinD9WCMULHoqjO3viqe4rrvnlijWbJM2s0KqSN1A1DaxhfTqvZEl/9dV3P3fwUeE4j4IdiMy42BwUcLmCtTi15TguestQsRGPovF5TAysFgeWh85CFmIr4SDRnj3smK888e8X7XXLVR/2ulgLEO4Kvz5JAn390kN/erwwaZqfyqBoEtG8i8154oV6YNkZ0jCwGoFUDKwWB5bt1+6huHBMJBL8b35/75qNxQEJgvxCDNH6YsBqwU/qrOP+f4Zhrlm76Zc339GRmRCgOU9MdLEiYkQUE62FOLyXzkABk1bWQ0G0GXv2sBFdd3weEwOrxYHlpiBHXqS9m+4q7HvYMa+9+4Gkm5C5GOhTBywrwBWkM8avbUjAMAxdNxctWvndi68k2wSIfQi0yiKKR9ZCHBeDgdXw3oSB1XARN/dJ6KZ4txVZtDM79da7Zm8cUOyFOFVagekKFCuwvEPMK/waVgIWrWDx0htvvH/Syd+MxIBNiMwAsGI5dwJsWBhYo9DUMbBaHFg+VnSRGR/DHXHCaXMWrpANc0CSNcPWrSxbVhVYFX1r2P46/j6spVm0b70GrEcf/cd+Bx0ViUFKekRm3LG8t70HA2sUUGWfAgOrxYHlprhgXEwVdrvpd3ev3DAwIMNg0EqAalveIe5VxXSF7Vd1XN4aWJqmKar5m9/dm5+4T5DhQ4k8ItLuWN4dgx3b6F6ZKMQ2rIY5N2BgOQxY9sT5oC0FuXB8tFiJbULynmrxQqC+FNGV3f/w4/7x7Mt9ZVUzIfaxFe9YMXXFGgSC3WpwjPa6jjvSu7VAWvaOnXqnLvuOdb7q/0ARtOIFDvnVJ7ytHXB7dippNezBcHVrp4O1s8NCdhxFqZ1u5ZqNl1xxQ5u4G+RzpHhYl0PzoGexFT+swYpGfcovhzWzwTcyhi4eA2sMVcb2tJJBqLIdfyxgDRtZ1McIPibdIU4896LLP1yysiSDVR3yyINWNRRYtsY10oAaejzDhHwzVQToNaxUbWqDgAWj1C1frv3qk3ZqB9yenYrdrooqi+N2QjOjBiyIv2rnNVP1eR8tOfns7xFdE2FFDi1YwbA4RGTst9tTffg7OykBDKwWAZatVdmqlo8WK4URAkyysMs+t/1x1mZZKym6JEMSUKBD84BVpRX4VVjFTshadQ6zrs++RhtYtQ+2Z8dWmrZ/a0Oqflv9LTDLNE1Ng0G0Zuglqfzsi6/uc+ixPjbrYyFcD+SeIDkXyfljuZ3sh/jn2ykBDKzWBFZleEhx0Tb+yBNOfvKZF0sqrBxUIZeECZFkxgywqvl3asCy1KraMHV7KDXoO3W+GvV+G595H/Jcw1UAt2Cvb6D/vof/LE6a5iI5G1iIyFhRpwUvM+yQ0GFNazuR0dyvYWA5rFUNO/Tb+kMPybsJzk1m2FThyutv+mj5mqJiKFa6eU2p5JioqBWWGqMblbRdg/p+w9/UTVZWzr8FWxUD02cGzUgCy9atYLmlaa5dv+7an9/Uxk+y8QQRe6LpmqrV3G48fs6OgdUiwBrW6O6nMu187wN//ltfWZWsyUDdMGXZiiFTM9xYVBo9o7thqSsVFNbgYnOqtoXPmw6sWnZrDTxGjYWLF518xjforgKEGLPsVhAAI5azx4bjBxnNvVMMrJYClofirAT0vI8RArFsOCbuud9hr7z57oAMmYoVVdd0GOMALixg1SbvoXNa9qTGK1VVy1XFi6LGLAtSW6YrK/b4hl9PRYOrnKfOvgZ2K82av5R1o6Sor7zx5pTd9w7FwGJlB3G1gdXcDjzezo6B1ZrAAlq1FciO3NkXXPLx2g1FWbOzz9trb0DJGgwscIxsDrC2EMmGhe0VppmQGdE2HtlkG4VtjVb2PKaswyAaHEE0c3NJ/uczz9PtaTtoHwonQ23dLpKz1Stswxo1bmJgOQ5Y2brs8+CBZReisxcFOyC2CcWBT2OgPRATxEl7Pfr40yvXbjBMs1SWrfkuy4psK1lbWAF7dncd/NnIvysXS7oKhn/TMFVVV22lz7DiyutGWdWKqixplj5ommVdhxlEw9T0oVvb6Day29qIVDHN/rKimqakm/2SqprmivWbrr7+RqIt7aUhiwcuzZIABpbDGl8drbI1WnkpwW9lxwnEsh5wbc+hSDIQE/Y44Ii5CxbLCkzMlyVFs16SJNVGgvVAGh1ggS+DqimSak3BAbhUDUIJggJomJuK0vJ1G+YvWzFv8dIPlixbsHzlgiUrFixZuXX5YOHybZSlHyz8zOXDjwb9ZO6ipYuWr1mwbPXchcvnLlw+f+mqp55/+RvnXxygOzGwmoUq+7wYWI4Glq1tgZLlItK23QpFUz6G89KZSHv+jHMu3thXhjUlilIul3Vdl2W5VII0Cs16qbKiyookKcViuVRUZMXUNFPRzXkLVjz+z//++va7v/+T68+7+IdnXXDx6ed897RvfefUb377tLOHKWeec+Gw5YxvffczlTPP+c6Z53znrG8NOtoZ51542tnfPuXsC0771oVfP/+SM8+7+KiTzujZ9XNBNlWLz9fcfjtuz46B1SLAcpMZW71CkaSHSvsYrj276y2/n9lXkmVZLpfL1uQguLlvS8MaHYTJZdDvNM0olhRJNsqKuWjp2n8/98YFF135+WO+xvfsTnVmo218MJEJxNPBRCaS4IYt4Xhm50sklonE01BiGbuE47ATjmeIBB9JcNE2MdKeDcU4F9Hpo5LhtpzHSjs4bnnR9BvHwHIisPJbDww9FGeNCrs8FNhZ3GSqe/eDH3vqhbJkR43RwcpugjOkqqqKoowOnrY+i6YZiqKVS2pZ0jZvll9+bc5Pfnrzvgcfy7R3BynOE03bE50okkREOpjI+xhu2FIJlWcHzBu0TXnpz1D8dKq+eOmUn4IgfJF41sdwIEwWhtj+GCQcclNc03vsOL8ADCzHASvvpYYBlotIe2neRSSDcTEQEzxU+pAvnfbCm/NgLQ6gSjd0FZbFVb23t0bJ6HxSLJZlRVM1c/nKdQ8/8vfTz/pOStwFeeO+aMYdTrsJLhDvtpK/ZxEpuBgBURyiMi5y6NZDQ/yprbdeRnCz3HZuvSxnrc3MbL1CE0XSLhLwZEdADMTzPjZvfzLOkdHc28fAciiw6rG1xYblJsGA5WO4cFvu/O9fM2/JGklWFbmsa4quKbIsa+DeAK9RMrFvRUFJhrXEa9dteuDh/zvuxNPYNtEb7iIT3SEm5yYEFOJQRHAzBW+i1x3rRnTOit8Cuf/csUFbF51FjDDMlhEQywPptmNrI2/YUZ6XyQXbJ4Q7J3nYPIpyKMq5mYI/0dPc7orPjoHlOGBlLQ2romTVWrCb4oPxnIfiUKTTHemKZybcdPu9azbLMA2nSHYaetv6bs8VNgtYmmmu3TTwyGP/OPGrX2c6RE8o4SfSnmgahVM+OheI9XrpAiJEKFQBUTlECogShtlSIqJFtNUWUAXBP7dr64JRHl9XRDdVLUzOTiwIWZ3Zbm+s4I31eGOFmsDxTlMkgIHlRGBtCbRkRea1+icpeJmcK5rxRNMhJtO9yz4P/t8Tm4oArAa/6l3V4VQ2Cm1VzjaZ2R9J5SK4g+nma+8vOvz4UzrESe5oW4BJ+6mM7Z1f9dKw7w6SOFgZHLJWbDy4R2sAOJLb7e5yEEwGp5PYbnE1sE9hYDVQuI2oYNvcbh/ZBbkPeGRpE26m4It3uwkhyIhUe+7QL375X8+9WE020VBkDQ+smrHMCr9lGpoulYu6YX708frrf/sHNjMhEON8TNpFdKJoV7gtV7EiVfxgtzjHNkKG+JjOlQAGVosAy0XnvbECCmeCjBhLFs757vffmTtfMUC5afBrKLBqp7Nj4AGwdENTVFVWypL2xDOvHHrsqchNomhHKJFFkU4U6QzEKjmTa0pWbRrUuV0LX3kjJICB1SLAQpTojxVQsCvIiJ3CpJ//+o5lH6+1g/XVCNKYnW0CS9M0XYe5SUPTFUk2dWPjpoHrb76Dm7i3i+gEBwKW91BpPwuTm1jDakT3br1jYmC1CLBcdDYQ70aRdCSe79ll3/sfeXxDX3FUsnZtE1igW5mwYFDTDEkCz68Fi5Z/5czzwm2iNQYEZ7FATCC7Jtg+GcAsPCTECxU/UQIYWI4DFswP2gbgehsWokRwFIpmqLbCwYef+PxLb/eXlVHJi/opwFIUTddNWVY1zXjqX88dfOSXvTT4XtgOrj6Gi7R3b3GDwsD6xO7aehrTZ70jDCzHA8ueKEQEjwjeFc3EkxPP/NbFC5etLqtGJcFzY4aC9lEHu0cMgpftTy9JkHVGVoxNm4u/uf2uKdMO8TEcinb5GC4Qy9q6lZ+tpPypalh2CAowvX/WBo2/39oSwMBqEWB56KwrmgnQQiq36xU/ubG/BFF9G29xrzgxVJE4FFi6bhZLkmGFlFqxav2ll18dS/d6qDQKd/hZK5aNVPYAACAASURBVBdpJOki0sF4bjCqMLAc1ixHjZIYWE5rGVXvJHtVij0qBOeGUFe0vZdo6y5M2ff+hx/vKyoqRPatJnSoEmXE/w7G4hZg2epVWVLs4DabB+RX35hzwslnhePAKR8D04L2ssFavp/hmOW02sEDugZLAAPLaV1iG8AKtXX7WTFA8vsdctzLr82RZIhDPgqvbQGrkiNLNxXVlFSzr6w//tQzk3bfP8RC6C4MrFFTSVrsRBhYLQKsSEcvhO6jhFPP+t6yjzcqKqQs1rWGR2WoJUa14GhrWBC509BVO6OfYZoDZW3d5vJtf5jZlukN0FwtX8awKtWQD1usv+Hb2UkJYGC1CLBc0Uwknm9LT/7pz367dkNR1UxFkjVVbqiSZatXtUzO1ezNACwdggYq4NNgmkXFfG/+snO+98N4pqfOd8E2VMH2ExC2k+0b/7zFJICB5UhgwbpcWOILS3PsgsKpaKKQn7TfQ488uXkAIiKoimQRpIHIGh5Yhmoaqs1KSVLKilnWzKefe/Vzhx4dSWyxpnuprI/OWQXyVA9RrGpvW6y/4dvZSQlgYLUIsKCHE5m9D/jSq2/Ol1SYIFTkspVUuTnAkspF0zQlWe0rKiXVfPAvTxV2+Zw72uEheXvZTZVWw84PblG+drJ945+3mAQwsFoEWD5G8JHcmef8YNGyjYpiyhJE7NPUcgNxVQvMUN2xFDpQr0xDlaUShGrQjJJqfry+/6e/vC2Zn+omU5bqVNOtQMMCZysSa1hOa4cNng3cFmcxsBzXUMDNvTokhKArVhQ6WJTHpnp+des9azaUy5Le3180Db1cGmioL9ZwQ0ILWJB3Xi+VSjAyNc235i464dRvhiA8AzcEWDatMLC21T/x50MkgIHlMGAhmnezoofNQ7BNCoLMeRnRywgolOjMTnrq2ZeKsmY7uPdv3AR5lBvpPDo8sEzFwpQVklkzNw4oL735weQ9DwrHxEAMUpMNaYL4LZbA9ksAA8th/QfRnIvh3ZV4mHkXbUe540Ox9L6HHfXKO+/JkF/dME1dLpaG+KGP+PBwG8CyZgl1tSyDj/uAbN72h9mdwhRwaGDAOLX9rRN/E0tgiAQwsBzWfyrTgtao0M0UXHTeTYkuMsOmCudfcvmC5R/LugbZlHVVl5VKjuURB1X1gJ8ALNPUJQXinfaV9VPO+jaRECPxrO3TMKQJ4rdYAtsvAQwshwHLzQqI5hAluuisBaysmwIDVjI/5da7pq/d1C/rmqLJiiKZuqHKjXUcHQ5YujUeBBuWrCpl1Zj30bJpBx5JJESqo9tN4jzvDmtv24+S0fkmBpbTGlBMBGCRgpvJ+ZhuDw1WIT/LT9rrwMf/8+yAoiiGrkHuQdlOCl9Vhhry95OBpWrGxr7yQ4/8vWfK50JMJsjwkOS1SbNL+LytIQEMLGcCiwK7u5cuuCnRz2SJ9uzhx3319Tnziqoq63ZyHMk0TE1peMzR2tIcy7hfW5qjAzlNc+WajVdcc2M6v4s72mGlpMaJSJ3W3sbYAwYDy2kNyNKwXDQk6QP/BhKiSsXSvededPlHK1bawFJVWZJK4IYlNzzmqK1k2dvq0hzAFuSXVs335i488ZRvsl15H5VEkaSPFVvjOY/volkSwMByHrAgmx6Ts3LkQQysSDzfzk249he3rNs8YGed0GAdn6QpupWdviGDwdpBtwEscKjY0Fd8+pkX9znoi0E6HW7LuciM10rV1ay2js/bAhLAwHIYsFCoM9Q1AZywAl3h9glugguxwu77fuG+Pz22sVhUTUPRZMPQyuWiaVg56mtoacyObhqWF4Vpq1eGAYkndF1XVH3thv7f3zVbnLhHkM0EYkIwkUcUHhI6rL2NNcZhYDmpAUEy0VjWxYqIhLyefibvCqUirHjYUSf989kXJA2ijKq6Ypq6DSyz8SGxqsCqhO6rAgvCYC1eturKq29MpHtQuM1FpeDKsYY1xkxCY41Hn3o9GFgOA5a/rYCItIvOBhM9KJT0UzzTWTjznIvmfLhQAyVHU7Qy+EBJpdEJ4Kebmm5aZ7boaBgQOFDXTVUz33zng5NPPy8a51C4zU2nwUE/hmO0O6m9fSo+Rv8LGFhOakAuRkAUhxgBpgiZHPJ3UG09XfyUn/7s1yvXbtBMU1YlWS2ZJkzSNRFYmm7Kivn4k89NO/DISIz30hkPzBVAkurRb+L4jK0kAQwsJ3UhABaR9sRzkCCHFNwER8QL6ezU2Q/+pa8k66Yhy2XV0rCsrMuNXEZYtYhZGhYMQq1i2hqWppsDReX2O2fy3bsGmLSXzoC/K5lBNN9KnQffy+hLAAPLYcCC8AysiIJJD50NxvIBkp+02wH/ffmdygJCXTVg7THYrhTFjlFcRUtD/urDAEuDUeK6dQOQI6cz7yW7PFTaExNdrOjGZixsw9o5CWBgOQxYbtYaWxE85FIleSKeO+nUcxcsXg3Lna01zzVg2SmXG4KpLQfdJrA++GDJMcefQsb5GrA88RwG1uirJC12RgwshwELEWl3LBvs6EFEBnkTyewu11x/y8o1m8H0rYHxW9MlXQcHd103jcYPCg1DqyIS1DrDsIzwuvnsf9+YsueBQTrtJVIu0hoS0jxMF3xmM1YlzXW14w0ZVNr/xbZ8JzXjalXuyDVjYO2I1HZG4jvzWxgP0llEpH2JvD+WdUXaM/mpT/3rv8WSAmwCr4aKe4E9KtyiCTVszwA46qodGcKKiVySjc0l7Ze/vTM3eS8flfSyHCLTwa4eFBNRNIUo0T1cAYVxuILIrFWs2QYqgyjAHxCQAiuejy54qTwK825CCLA5P4PJ5aT2vAN9AQPLSRUM6gmb98RzHloIxAQ/3bXX/p9/+70PqqQaAqyKIbxhsIIDy8UBU1NVWVFlRZbVsqQVJX3lur5Tzjqf7hT9bCbckUdk0pPIIhZmCX1s1sdm/cx2bq31kkzOy4huVvCynJdNW4VDkRQieA+Z89O9wVhvKN7jpbIohBdXO6k9Y2C1eG1Zs4S8r62Awkkfw1Ht4plnf2flmo0w8gM6NQFYhiKDr7sV2tSw4psWJf3t9xdM2n1fFGT8dFekPYuiHR4m46JSboqzsz37SNip33qJjJvMbL11E5yL5NxkxkV1uamOSiG7yK4J0faJHjKHQpyHtLPv5AIsoByXFpYA1rAc1r5RJAN292jKQ6XT+V1+fetdm/oliIncJGBpoFmVpVJZU1RNA3KuW7/5L397cte99ot1ie18b1ducoLrTeantolTmHRvGz+pjZ/Uzg3dtmUmJriJW28TmclQuIkJrgcKX0hwPTG+l0r2Rtt7PaToiop+pttLwbJKDKwWRpV9axhYDgOWPUvoY0Uv2bXbvoc99Z8X+opKVbVqgoalQqxAWS5LEJ5BgeAQmzYXn/7389dcd+OlP/zJZT+66pIfXXPxD6/+/k+uv+TH1114+dWXXnn9pVdef9mPt2sLX/uRVa647tIrrr7kx1dfcuVPLvnx1Rf/+LqLrvjZEcd/ozM3LcAWwIeW4FE03fLdFd8gBpbDgOVL5L2M4GM4H5U89itfn/Ph4v4SpE2FQVmVW6NpeoeQW9W5SEXRYGrSNNes3bh6zYa1G/o3bC6t21xcs7HfKsV1m8vbKuv7pOHLJnn9pvL6TeV1m4vrNg+s6RtY01dc3Sev2qT+7Nd39+z+eR+dQ5EMIngvI/pYbHR3WHv+rAjGwHJYBbvITLi9G0W7mGT+sh9fv3TlekmzSWUHZ9gyS2gBrOGrnyVJ0jRNkkDDkiSpWCwa1ok3be7XrBWFkmbKulmUtaKsKYYpaZ+hKKqpyKYiG7JiyIpWVpWSppQ0bUAzV2woX3TFz9qzu/to0UNnfWzel8jDMgBsw2ppCWBgOQxYKNgR4ya7Iu25SXvf9ofZazcUYRwIC46bAyx7CrJYLMI1gHu9Yluy7ARjigqpKEyIIaHJMriy1sfPqt8HBdE0hmwtX43KfALEgTA1FYqhmOYHi1edef73qY5eHy2iKIeinL+t8NmdvBxW+xjHGFhOa7Iw0ZaOJIRJex7wt6ef39hXroRBHgZYtbFaQx0bPuHgtn5nx8uqbuHr1c8/fd80NL00ULQdYk1TVbSyYugDsvbMS299/tiTQ6zgItI+NgsGrFgWr1VseaJhYDkLWLyX5kMxjuksHHHsyS+++l5R0sFyZduwIMBo/ZCwucDaciX1V/WZ9w1TGug3DU2Ri7ohqbpkmHq/LM948NE9DjjCR6Y9FBdMFFwkB8DCWXlaejzooQUMLIcBy01mgmyG7eo+/6Ir5i1YIdsGrLEFrBFClQ1fw1RKxRqwdFMxTH31xo1X/ezm7OS9PdG0h+SDiR7wnoe4hjiNmLPa82e+WgyszyyypmrdvCea9NOpRLrnxlvu/Hh1HwRpgIB5OoRDHisa1ggCC4aEVnZF3VqxqGpgf9fnLlj0re9clirs4iM5VzTjY/Pg9R7LQozAVlcxxvkNYmA5DFgBmgsw6dykvWc9/NjGPkitDEuONd3UNShNGBLW48m6mhHdGJoJIXMM0wq+rCqaLGn6i6+9ddQJp8QzE4KM6IpmPHQWRTlYtASZhJxVofhqP5sEMLA+m7ya2x+8NB+guUgsc+Dnj//nM6/0Qyov0KvgT4sCy7RRrJuyqsiqImlqv6Q++o+nJ+15QDjOh1iIseNj8zAkZHKQ/QwDq6UlgIHlMGD5qQzTmTv7/O+/N29JWTElWVdlDbw3xwSwQNuqd1bY+X1IB6uasqzKqqIZuqxrqzdsvvXOezv4iZ5oMsTk3ITgZ3s8VN7N5BCFh4ROas878HTBwHJSBdsaVqcw6aqf3bJy7QAEcVcMBTqyupUNC6YIqy7oIzpIG3qw+iHhCAMLTmWYqmJKEiw/gvs1zQXLV15+9Q1sV94d6QqwORThgFZkzsd0WwFqnFShO9Bjx/lPMLCa3L69lDBsAcWBycNCOSrrJgQvlfXROZgRYzOT9jjw/kee2DigyJo5UCwbpinLkCnHNCE0lVWGQsXB7w1TU1TDMBQVTHSbivIHS1cfeeJpfjrlpTNeCtKdeal8rWBmtTbRMLDGKLA8pOhn8n4m76WyHlL00TmLXJw32rn/F4594fU5Jd1UdLOsapIiW7Ea1KHAGhX9quEoVBWpXFRlRZJVzTT7ZPM/L7+1y+cO81rAsjunTSs/0W3tYDNWk5t0Q4mJgdXk2h1WvQLFgeR9dIVTVfVKRJF0kE6fce5FS1dvLptmWQVHhv7iQGsDS5HLpg4alqybmyXj7vsfSRV2GQZYpK1nYWA1uUljYLVyBWwLWNXPszatrPGg6ImmU7mpv7j1zg1FtagYNrDKsqRosqVeDR4StoSGZSiyrilgydKMvqKycsPAFdfeFM/0wHiwmjTMS8Go0A/AGhIAvpVbTkO5MGYPjjWsJrfpKpiGsWR5SN5D8rUvgM5FclP3PuSvTz1XVEzJcvrWLMu6qspV69UWG9ZoGd0bOyg0FFlTZdMwZUXrKyrzFq34ypnnheMZSM46CFi2JQsDq8ntudGkw8BqcgXXeLT1zlBa0WI4Jh78xRPfmDNf0sHALutGsSSZpqlptVSmW+LJtAawTF1T5LKmgKuZrJkvvD5n2sFfRJH2bQOryRXa6B47zo+PgdXk9r01p2qfALBo3scIHgqCmgdiWbqz57zvXb54xWrFBpailcqyqqp2gq8h84MtAixD1zVFU3RNN8uKOfv//ZXr3s1NdtUBq5JuxxoYYgNWk9tzo3mKgdXkCq7hadgdHwQXFSAFA5EOxnOxdO9v/3f6+r6iBhZ3TdUgYJQsy8aWwFFbBmitASxNlQ1NN2BIaKxZP3DtL35LJPhwW646HtySHAwDq9GwGAvHx8BqOrDArL41rYLxnK1VQXiGuOilM24ylZ+6z3MvvdFfVjTdlGQ7W6q1NhiC+NkhklsNWBAJC/ywwGt0Q596xPGnRBKQ4swGlovO1pbj2DIcC50KX0PjJICBNUaBFYhlbWBZebHSXjoTiAmHfelrr709p6xqurEFWNa6HDse8qB5wdbQsAxdla1YpUVJf+u9jz53yDF+OgXDZGvFHAZW49AwNo+MgTVGgFWnZ9EV05WLSPtZ3sdwKNzhYziyq3DRFdd+uGipTSJZVSAKlq5bK58HAcv+QmsACzQseBkb+8r3P/zXCbvt7yVSgRjYqmxa1TQsS+caksi+yZU7Nvu8o68KA6vJbdq2vFS3lnODBSwvzbvJjI/hgnERhdqDcbE9O/W2u+9fuXaDlczLqAHLii3TusAC31jw3Vi1dtNV196Uzu/iJVJWdhwYDNZrWBhYjibRdl48BtYYBZaPgdjtHiodbsuhaEe0I9ezx0F/+vt/NvaDX7umKYoiQZQoiOBXNWBVgiVXlj23hoYFA14TghR++NHyU8+8IJbs8UTTEBAZaJW3Sm1mkK9a4ptcp9vZ9/DXdkACGFhNbtxV3WrrISHnYzg3mQolsl46xaR7v3DCGc+//n5/GYKaq6oMzqK6UUkLaFvcWxFYMOCF5BPmCy+/dfDnjyMSop/iIb4oZdMqbw0JsxX1isEhkpvcnneAQZ/pJxhYTa7gbQHLS8PkoIvo9LMZH5NuE6ec/4OrFqxYVwKNAzQsAwL3GRA+2DBNiDi6xQ2rpWxY1kRCf1/5kUefmLTLviEmAzGwKLEeWDAwZCz1CgOrpaP34SQUTaaVh4a4MdUCBizraQN9z01xoUQeRbs8VDLApJP5qdf+6vYNZU1RgUy6bi0bNExFAj3Lsru3JrAMw1BVffWaDXf+cVZSmOwOdQbYnIuojQdBw3IxQgVY1cU6n+mhjb/sIAlgDavJzLJpVWsxLoa3up+AKNHL5FzRTIDmyLbs5L0OfPgvT2wcgOhX4+ylq7q2ZPnqy354DdNZ8JOCj+l2MwUXnUdMHjE2rcAty0vDusuaJPFOS0oAA6vJTbweWBateMQIUKicN1YIxrpRsJNqzx1x7MmvvT2npKjjDViaoQ5I5Tfefv/kr18QYUVXlPfSBURWaGXLyjZgYcfRliTUkJvCwBq7wEKkEIr3oGBnPNV9zne/v3z1ehnWqIyvl24a/WXpiaee3e/QY4IU5yaEQKwXA2tINx4/bzGwxiiwIKVCKOUh+XAslyns+tMbf7N2Q78y3nBlBc/pL0v3zHqoMGlakBLchBCMT0BUzh4PIrBe2ct0KnF4xk/XHZ93ioE1RoHlsVJXoUia7pzQu+t+sx5+bNNA2fKhHGcalmGu29R/7Q23dGQmBCkBRTgf043IbJ0Bq+LdXj+4Hp+deTzcNQZW04G1JU7mIBsWARnYUTgVovl9Dz7mpdfmlCBxzPh6GVYc1cUrVn3j/IuZzpyVhVAEGxYFKQht9cqaH4RKxMDCwGpyZx4PFVDNm2AtjoMpwuosYZQLxLthlpDMnHXupYuWrykp+ngjlmGakmG8PmfewUecQCTEEJODrBx0wZolrMwP1oBl5cupeb3jptuaEsAaVpPrdVvACsS7PSQfoAW6I//LX9+5bmOpWBp3JizDNPvKytP/faUwdZqPSnpI3s9ACkI3CRqW7X6FgTUenuu1e8TAajKwPFS+phrYQ8LKwJCApHshNst0Fp7+z6sbNpc03VRVWFjXki/whVUh/6CuV6I8K4pSlpT1RemGW+7IFHZFgbYAmwuwBRTivHShHli251pNjLXGjXdaTwIYWGMUWP5YzkNxIVrcc98j33xnvmb14hYGlhWZHuLIqNbLhrJhmivWbzrj/O/RXTkU7fLRIuTFofLgUlunYVWAVYf+1uuo+I5sCWBgjV1guYh0NJa/4KKfLFq61ja3Q/6Y1n1Zca80XdcVRbHRrJnm+4uWT93vMDfZBUH7SFj2HEpMrClTVZ0UnBuqkRuwGavZTbqR6xkxsJpdu3V6QbX7gendR0MWwqS42/TZj65a26eopiorkKGvRV/WmkHVHg+qKkQZNQxwGX3yuZcS4gQ32eVnYa0SinLB+ARY/Ay9wp6jqExTYGCNBy0MA2tMAGvwAAf6oZ/JQhbCvb7w4qtz+4oahGOA1DEtCyxbvbLS/4CpTlHgTleu3fDL2+8iU3lfjHeRGX+s4CIqQ0IbWPaiHHtIiIGFgdXsztxI3XKs1K6lYW0NrAALbkdHHHvmvAWrJNXy+DZ1RS62qIIFASgMw7A5JcuyTa75i5Z+7ezzI505f1xAkZSPzXsomCWEHUvD8jAZD5OxxoOV+A3WaBG325aVANawml212wCWjxESmanf+8HPVqwugrYBRqwWB5ZZTVkmSRLEqtf1/7782q4HHOZr4wFMtOAiBQ+V9zHdVSpZn2NgjYfnevUeMbCaDSwaMutVNSzLeGzFovMxXH7qvrff9UBfyVRUU5IUiBNsWgGRm6pl1UcHrO1bUdfhsuzJgR3YKooGfu0q+MbKsqpo6sBA6ZHHHhem7OViMi4yE27vQZGMh86GEhMh4qitYUEALMuGVY2YXGVZ06sVX0BDJICB1RCxbv940wWRZDhECm4m52G7gVwk56Y4L53a59Cj//rUM30lGUKKapppgN29goSGMWtwJHg7jClsZVUCoOjagCTLhinpZlE3y5op66asG5BHfue2sgLZJvoHJFk3ypImafqmzcWbfnMHneoJt3dDqEkiY4VyFzx01k0Nmx3HTqra5Ard/qrH39wBCWBgNbl9uxge0RyiRDeTczPWKjlScFNcJMEd+7Uzn33ltaIMpIAQo3ZkUVt7GQ1g1WilmqZalkuKppZVra+sLFm97t0PF785b9Hr7y14f/6S9+cv2vny8hvvfLho2Ttz58/5cKFdnvz3c6ecdT7R2R1MFKzxIFfjVG1nB1o8/omjJYCB1WRguVlhCLCsOXueTRUuvPzKuYuWlFVYkQMR3GGm0BhFDcsGFtDKNFVJKQ+Uiv1l6ZU337nsx9cc+IUv7XPIUVAO+uKIlAO/cNx+hx6z9wFH7HfoMfsecvQ+B31x2oFHCr17hBJ5Hwsqla1eeRlwaMDAcjR0dubiMbCaDyxwv6KzbvDezsPYkOL9LJ/MT/nV7X9Yu6lf1jXDyjABgdsbrF7ZRij7dFaI+AqtYCxoaiVFlnXzsSee3uegIzzRRJBOhphMkB2ZEo7zHqLTT6fCcT7ApFEogUIJorPbx4BArGEyDAMxsHamt7fAbzGwxgqwgFlkzkVCKopgXJywx/73P/rYgKIohq4ZVqYcBUaFDRsL1g48aCRoq1emqcqqtLG/b9W6jbf+/u78pL1CTIpsy3qJlJsEi/jOFw/Nh9oK0c5eyL7RVmAyU9wUh8JdLpKzi61V2cBqgY6Hb2HHJICB1WRg2TYssLVXgeVnskR79gvHfuVfL7wsGYZi6JAzFfxGVUib2vCXXoNUbcfKK21qprlizYYrrrmhLdMbYiA7BvK3gXUJlsVYsRN2YouinIuBmQcU7kKkEGjv9rB5bzxn61Z4DLhj3bv1foWB1WRggQHLMroDsCjRTfGBWJbqzJ938Q/f+XCBAswwJKkEyZ3t5IOjByzFNOH8BhS9b6C/ryS/NWf+qd+4IBLjI6wYZEQ/k/XCXAFMF+zk1vZT98V7o8kpvngvCiZRKGMlSW1yBbVen3f0HWFgNbk/WLSCWUIbWHYQd6Yzd83Pb17y8WrN8mwql4tgUdKrbk4NZFbN0G7TygYWDEQ10xyQtaefefGwo04KMRmyHaKhoihnA8sKqpfbma2P6fbGCijMoyiHojBnGu2YYh1f9DJQbFu7m+KxtuVo4uzkxWNgNRtYkaS/vRtRIiIFOyZyOCZy3bs99OjfV2/cCJgo9dtpU0sDZU1p9JBQh+lIa1qwtjVMXTfh0w395dkP/qV36r7eSNJHcn7G9nuC6AgQ9aUx251s3/jnLSYBDKxmAsv2GnXHsogEf0gPKfoInkzkp+x54Euvv91fBg+s/mKfClFldFXWABsNfm0LWLJurly36bpf3prMTvFEk26C87F5e4rAzmDakC1OjFpdktJi3Nnh28HAajKw3KyIaB7MzPFuFEmH2Gw81XviKd9ctmqdpIHxqCwP2MAyDFOD5SuNfVnAqk0Uwg64rZqGrJuLlq857exvU+1igOZgKjPR46ZEL837qYyfasjWi1PPY2ANlgAGVpOBhWjexYoQl66t101AiNGkMPWW2/64aaA8IJU1Q9VNxRoSAqcUpeEqlgGpWocCSzVhCc7r73047cDDA0wyGIfJgWCix0Nnq8DKWNga4S0G1g5rIq36QwysZgOLzIANi+AD8W5Ith5JFyZNe+GVd0uKXpLKFqpUXa9EthstYA1S4uxcW30l+eG/PMF3T/WSHYEYBHux1vSBhtXQ0qodD9/XjkkAA6vZwKK4YGcvIniI8UTyvmjm4MNPXLG6DybmjIoJXFEkcCA1zFFIVL/1KWxgfbx6w5XX3sgmRR/VCcAi0jCSrQzZarET7CTMI7htZu3sWI/Cv2qoBDCwmtklKqEyWZgiBBt2NBNPTrzwsqs39KmVyC2GpumSpimaplWzyQxSf0b8zbaANWfeR0ce95VwrMtPdwVinI8V3axYuf6RcBzdlutpQ1s/PrjjJICB1WRgeWJZ8O2m+WCi4AonsxOn/e5/Z23sk1XLvq7rqqaDm7uVVMYYBWZB0K06y77NTdU0//vKG7mJu7sjcXe0w0OlA/EcLJ2hOCsDM7jpI2bkt9hx1HFAafQFY2A1GVi1lOs+VvTTqV2nHfLP/7yo6dboz56g22ICH3F1argDGqYCAbhMWYY4erIVK2Llmo2/v2t2SpwSIDOucNLPiiiS9MFcQdpemtOgbaNbPz6+4ySAgdV8YLlj4HUZiAlEu3DMl0974+33ARg1j4ItwLIn74ajzMh9ZuiVuUjItaUrqq5pprl05drLfngtkRD9BOcj+GAsj8IpfyzrIiFyMS5YAqMmAQysZvY3cBwlLLeGaNpLZ2LJwiU/uGrJbabJywAAIABJREFU8tVNBJauVby9IJ+prtg+7u/M/eiY40/3RpJBSghQsIQQhVOBeM7LNFN6o9ZJ8InGjgQwsJrc5VCUA9/RSNJFJNP5XW69495N/VJ1LDjUJco2Zo2cOjXMkXStMhdpA0sz9KKs/f3pZ/fc93A/AX6tflJwExwKp4KJvN/SDcdOa8ZX0vISwMBqNrBo3pfIuykODFifO/TRx58u23HbmzQk1K2UYpZXPVjSdMNcv3ng93+cWZg0LcwIISbnJ7MekncTnD+WxRpWywNirN0gBlaTgeViBC8j+Fk+HOeP/crXX3r93bJiL4exg1ANcjofBQ1LlTVTh5wXmrUOSLUMWD/4n2sT6Z4gw/tJwUfnAmzOR4teRsA2rLHWn1v+ejCwmgwsD80jIh2ICUwyf8mPrl2wZGVJ0SFOH4Rv12zbe9UCr1vBi4cZx43gRxAQwjDB4m6l3Cqr2rvzFpx4yjeIhBhis+5w2kfngjGIs25nXW75HoJvcExJAAOrycAKxHMo2kW0Z5PZKb+67e71m8qKavGnScDSVchzIUmSpMiQa6soPf/am5879OhIQgi3FVA4AyElLFp5GSGQgDBVuGAJjJoEMLCa3N8CsSwKtUcSwrSDv/jg/z2xYXPJyiQqD6dh1Xt0jqBSNfhQkP0Qlljb84ObitLtf5w5ea8D/VQGljpC3CtwwvBUlhBit4Ymt59RI8UYOREGVnMbHB9uK3iIzmhcOOyok954Z37RmiEEhAyjYY0GsDTFCrxlGIqmyrqxbO36H193Iz9hDyvcVdZD5aEAs+w1zxhYzW0/4+7sGFjNrXLeTWYiCSGRnnDy1y9Yu1GSVEg/2ERggXplLc2xgfX+wiVfO+u8BNdrRXrBwGpua8FnFzCwmtsIeOSNMcnu/ORpP7n+131FyPluuW5qYHEfanQfDQ0LIvWBuV+3gGU+9+ob0w4+ItzOWyb2emAJXjrjpTPW582VIT77OJIABlZzK5t3R7qibeLUvQ/501+fHihXYiVYCXIsdNWty7HXIQ82OI38O0NRYZZQgoWEm0vyrEf+T5i4h5dOwWpByEWWd9H2kBADq7ktZ5yeHQOrmRXvpfloIueNtu978DHvzVsiAStMcCwAB4bmAAtGpLqhKaqiqSvWrP/Jz3/RLkzwstYiZ6BVNwALzFgYWM1sOWPEBD76l4GB1cxm56X5IMNT7eLXz7lk5doB23wk256jzQKWYeoqmLE0Q5/z4UcnnXkWm8r7YmBct9QrDKxmNpjRB8RYOyMGVjPbn5fmUaC9e/I+N936xw19qr0oR1Ut7/ahNqyRH/0Ne0SwXkmyaZqqZvz3lTf2PujwaBvvpm0Nyx4SVjwbLDM8b8fws3J8CX6yUrzVbDfWf+E7tqnLcowQtrW1DzKkh9jH91Jw5CABJWCdpf4gdnAbxAiIgTTUQ46A37aSBDCwRrh913ek+n3wt6RzfiYPrkyk6KWyXioboMQAkeyZNO2Jp18sqaasmYqql2VJlsuWd7tacYeyXdztVTrDYmYkP9RlGQJibdhcmv3//lqYsk80AbH6bCi4GN7F2AGRIS8ZBPNiARMQHocUwlEhEhXCBB8kwOnBxfCI5VEsg1jexWSsdBW8n+D9UbFWfBHBG4XiI0Qry1lFMrZ84PhxEbGCL8qFgxnKl6H9HBkWooRok8veAvdZHiWsgoHV0q68GFijByy7E9a2wC9SCNOZI4/52itvzJUNyK4s6waEoDLUah5Ty3/TRpW9UGck2TTMsQxDg+QXhrl89cbrfnF7GzfFTl1jo8rFZFxMzfcKgFXTgGxghaNCkOD9FMwqVmgFwIJf+alMgOQDUT4UEQNRqxBZPwnghsLkvEzOR+fst34y6yNENyWimIBYwU/w0SBH+zkmwJNhIGOABE3Nb223wBHIOMIV2krqSQvcCwbWCLfveq1qyL6H5G3dykdXeqaP4ENU+vIf/2zxsnWyBsCSIHS7MTywRkXDMgxNVhXdMOfOX37K1y8MMuApFojnhwUWKInWSK02TPPQAnDKLjEexWDfUspA5wqQfCjChyO8TRwfbQWGZ0VXPFspLGSlh6ElAd8MREGbczHWeJASI1XFyjqLACyzcOaxjkxEeCICy7NboFviW9iWBDCwRrh9D4FU7a2PFm1g1WgFIyCSi7KZe2f9aWMfmNo10yxbIYmbCCxIMa3DROXzL7299/5HeaJJD8lvBSx7VAiaUZDYou9APEJWAEjFLVRZtKoBq2bGqqhFjAgJGWMiDPpqJSbaA0xIIERAAaHRgpsVIS5rLOtmYfUiJOyBEwkoDlsXA4NQNsgzIT5IjHCFbqvn4M+bIgEMrBFu3zVCDdkJsDkwRZO8jxar8IKhk5Df9ZnnX5dU0waWrEPyCR3YZStUVqavyq712TDDuJH8SDcNRdX7S+qsBx4Vuvf0EimIfkWBlmQVe0i4BVh+UgiQcCNbxmWW8ds2gdcM4ZW3MQG1Z1GHiNpF1CaghEU3m2sMh+zCcojlUMwuPKI50NfaRNSRhQLLrXkfCamna3qWi4ERIhWGEsAaFrZhNQWlDj3pEE7V3gZjeXvfz2RhKERAl4smcl/44klz5i0CYKlguKobEtaAZQXGqjFrJOk0zLEM0PK0tRv6f3jVDR385CADAZFdJLcVsHhI+wzLoYX6RKo1x3fbtmVvK7RisqATJXNQOi36tNkmKkChm+IgDY+NJ1tHS4Ca5iIzYLxvF1FXFkq7BaxoxjKWAbPsU3ipiskfDwkd2nG287KxhjVKGpafgUCdMFPGij5GcJOZYDwXS038/o9+umLV+rJiShp4EkiyKquQ+qGqYZlG9VVRuYaBzEh+ZJhmSVGXrlh3zJfPYDt7g4wYihcsLtjWqJqGxVvW8S3A8lNgogJtyzKE2yhBTCX9l5WwCyz07q4C6sq6O7LeNtGXEAMxIcQKIZoPUZxdghQXoDkfw3lZ2PqiGT/Fw9CvIwuYawMPCX8kY1uswlEwb9nn2s4Wj7/maAlgYI0SsLwUhEK3geWlwZIdbit0iFP+cM8Dm4uSasIgUNPBrcHOrNUsYGmGvrlYmrtg6eQ9DoiwootI+9isZTMaHlhgIKdgSFgrttpV0X0s1wdrTY+dtVDwdOZQUrT0LEtpSgoomUVJAXWKqJN3twnueMYT471s2scAuULRNDhJMIIrLqKEiOJgsfJQXJDgw0TFeG8PD21Vy9G9EV/8p0oAA2vEgWXP0w91j4RcfqFOHyME4zkUavcxnJ/l9/38sf989qWNmwYgBpaiQRB101S0atrnkdSctvdYsqKtWL3u9jtn9u66n4/kwoluf6wA2V7ZYYAVIIVQmAuFM4Eo5yM5Nyu4wW2KR1TaTXGBGIwZYThpG9cTWVe6B6VFJIio0I0m96I9pqL9dkOHTENf2AcdvDc6aE+0925oUg8SsiiZcSUyHiYVpIBZoWg6bK0K8DAZMHXFLXM7ay3JpiDzGJjSrHQ+n9ri8RccLQEMrFECViCWdRFpPysCsKJdfpanUxOOP/Vbb707b6BYBsuRBMGJDdNULbv76Cx1HoIxWMlomguWLL/sx9d2CpNc4WSordtDZxHBgx3K8v+0/LCAFLZPQzjCRwkhRIueWEUDsqftvETGT3DeSNrNCl5+IuqZgiZPRXvtjg7eN3LiEclvn9F93SWTbr968oyfT3no5il//k3vQzcVpl/P/+oH7d8/mzrzhMAXD0Z774p6CojP+VPdoUTWF0n6Q11hRgh0dqNkAYaHMEIUXTEYFYJfhTWrWHOyd3S3xBe/LQlgYDUIWHV6ViXWHQwDvXTGx3BuMuWh0p35XS/84TUfr1mvaKqqa2VZquSFrwOW/Un9dghiRvatDaw335t3wslnM50FdyQVTBTAe5MCb4OtgQXmqkgGdKu4CNN/bRyKpRGdDpAZmuCpKOePplAbj6ZMRUcciM79CnnddzJ3/iR3/w2Tnvjd1OfvnvDq9NybM8T378t9+KA47/7ce7MLr97b+8ydvY/9Rpx+bfzGCyOXnI6OPwztswcS8/52gSD5aCQNsU87siiVh9KVQ+3g6+ClwBveE4GwqNtq6/jzFpAABtYIt++K37btvV03ieYi0h6K81BpDwU5U1Gks7DbATf97u6iDANBCD5leWAN0bDqUWXvjyyhhhzNMM3NRekfzzy/90FH0l0FICwjIlLwxgpVYMEiG2sqsGJ0R0QG0RkYo3XmUIeA2LSLSvmjKZISwizn7hRcu00NnnYMed0F7Q/fUHh1eu+793XPfSA374H03NmJuTOoedPJhbPoJfdHF8xgFszqnH+fMP/Bng8f6n33PvG/d2b+enPs9z8KXfZ1dORBaPJkX2fOT6RdRBKxmYoN3vJ1cMcscz7BuaI1L/wRrtYW6OqtcQsYWCPcsrcFLA+V9rO8n+XBlhzjXETnPp8//oFHn1QM0zA0XVcNCNdn6rpePyQcfWCt3rD5nvv+H9+7W7QNfC9AvYoKLjY3LLDAU7QtBx5VbaK7I+/tyLpZzk12uaguFEu5coXAIfu1XXxmYfYN3S/8MT1nZttH99Ef3ksvmM4unBlbPDu27P7YsvvZpffRi2exi6yyYAb7wb3xD6Z3fTQ79dF9mQ/vz753H//079ibL0GnfhHtNhVlsu42wQMrhMCmBsPPuOV9GoMlhwgWMI5whbZGP2+Zu8DAGuH2/QnAsseDXjoTiHE+Jn3caec988q7sm7okLwU/KwMw1BVVYPspWB9H7YM0YlG9q1hmivXbfzpL2+hO0U32QVe5mweUTlECeCgYC2yqdOwwAfK3dkN/p8sD7YqOuOiUiiWQmkOTeoOnXIU98tLJz7260lvzhA/nBWff2904T2hJTP8S6b7Ft8bWjIjunRWdOms8MLpofl3hxfcQy6eySyZTS6eSSyaQS2ZRS27j116X2rl/3XOmZl65g7hgZ/HfvBNtP+eKA1TjW4KzPz2okVInW17zMdEDKyWYdOwN4KBNUrAgs5MJEH7IDr9bCbakTv/B1fNXbxSMcwasDTrZXm6g/V92DKyhBpyNMM035+/8OzvXByJp2vA8sZ6bHeqrYEFAWHiOTcFjlEwVxjsAmDlutGBe3q++9X2mVfnX7s7PW9629y743P/0P7BH9sXTadWzA4un+VfOsO3ZHpw2czwitnRlfdTKx8ILZlBfnw/u+ohauUD0eWzgWsL7vbO+wO96P7wnLsTc2dOnP+nnqfvDF/5LXTofmjSVHdcjFJilBAiVrSZqtvXCNfmsH0Gf9hECWBgjXATr9OwwLPBNvfA6tx4zkUkPRSAIBzn24WJV93429V9EBehBixVVcFLdPBE4RBsDUHMyL41TPMf/3nhyBNOjbbxYGiLplGU88YKnnjB9nJyMeCVXrVhwQ36aNFPcESYI8JpMLF3CeiAvdA3j0n+6efc2/d0LnswvOgecvH0tuWzuj6aTs+7M7Dobs/yGf4Vs/wrZvmWz/Qum+FdNsO3fGb44/tCK2YHls30LLrHs+ie4PJZxKoHqDUPBRbOoD9+iFj+YPSD6dy7syb9566Oa78Hp8jkIvEsTQkURG6AxUPgLEbba4ZGuE6b2D/xqYdIAANrhBu3DSxLytCx7R4OBhcS7MEBNucKd4bZtDBh94ce/fvmEkSeavCrtqjHzsZTVdys8PG6Dh/qqqarmqbKsmJMf/Cv+V0PjHb0QHyYSMrHZr3MJ42zfIxAJrojwbTX1+7vyqJdJqGzvpScfW3h7Vkd82dSi2ZGlswML54RWXwvuXh6dCmwybNipne7i2fpdADc2ocCy2bH5tw74b37ex+/lfrRN9BB01A6S9IcHbEGhoksYgTb+j6kieO3rSQBDKxGAMs+JkyouRgIXweDKTrrZqz1z9E03ZHda//Pv/Dqm2BxbzCuqh7zNrbgZLbKZp9W08DSbxn9AVh9/eUbb72nq3taMAHLcRCRsZI8C26IbzW8oGCNESOGiQwiO1G2EDrh8PRtP5zwwt3JeTOYhRatls4MLJ0RWDojuGxmcPks7woA1vYX78ez0NJ70OpZvpWzqfn35uc/MOGtGdmHb6AuPAXtOskXy4SjSRTucsUEbyKPgbWtamqZzzGwhu+HO1zBloY1DLAQJQKzCM5HpmPJwilnnb9o+UpZt/ScxjJrqIZVO5thGDawTCuOu6HpKz5ee+7F/0N0TfQyopuCcZaPzUKoBhIijg5bYOUzI/jbsigloD127fr+N/f4+x2T37m/44MZ5OKZoeWDxn3+FZ8ZWKE1D6DFd6OVM4Kr76fm39s1d3rug/smvXZvfsZ1rpO+gLLdXjqFwl0+VvS3ge8FNroPW00t8yEG1vD9cIcreJvAIkFPAaOPBaxf3XbXuk39/WWpho+G7WwTWLoO85Jw3mriiTnvz//8sadC/CkLUl4GwunZ5NqWQHyM4EkIKJ1DUyeHTj2m93+v2e35e8Q3pyc+nBFZMhMI9fEsz4qZ7uUzvCtm+qz97VevPCtmBlbdh5bc4149O7LmQeajGbH37+74YAY/Z0bP83dR153vOXg/1Mm5mEykvRt8LLANaxvPlW1Vn+M+x8AaJWC5aDAGBdicj0ynC1P/8+Lr/WWlpKgN41TtwJ8ErC1fspYF/f3Jf0/a6xBEZMCGHU17GYiW98kF4ql3WMsDD99PuPny3f5514TXZwgfzGY+mhFeOtO3crZ79WzXqlmuj2d6Vsy2ymcZD66Y6Vk63b1sumfV7PDqB2KLZ8cXzgIHro9mdr0/M/23myPnfg3lIPYD2V5A4S5P7NMv+JNvB/93jEsAA+tTOuRnrb9taVguRgCFheZ9RNd+hx6z5ON1UiUnfA0aDdoZHli18aBldjd13RwYKP3y5t91ZXdzkRw4uFsW90+7fXCFhfXMUwrom8f2Pvbbqe/cz719D7f0IXLhDJjyWzUbrZmNVs9CK3cQWIFlMwMfz3avnOVZPoNYNINdNItYMiu8eAaxcBb/3qy2my9F++yKUrlQIouCHYF2ML3h0sISwMAa4fa9NbAqE4UkBwZsiqM78pdecd3qDX2aZf9uEKVqh603sQ8xwGuaZhimolgxTg1z+YrVXz31m8T/b+9MoNuqzjx+Ze3be9p36b0nybLjELIDoWyFMpNSoGUpBMIWlrY0MKct3eaUoTOlHbaWMgMdKCS2dieETksZehg6nXY6DFDWtiEQ24pt2ZK8hBBKFi/a5nzv2YohC1KQVT3z5dyjo0jP7139v/t+97v3ffe7NtgkVWEOEq1HaWkVnKyjT7qzKoufcK3k06dp7rs1+PxmdmfSsqPTOpDQD4SVGfCMJLuTZBycLGk2IcskahoPyrIxbXaLamQLGY2RTFg9ENGlwqoURJ/KMwnHwBb2l/e3XPc50tbRYmGJ3qO0BBfwvYo/DR4EoQr1VeAYwNLYQmpTgFt0UvLxp3a/s0+It6qQZZ7eHANYEFVfKB2cgNCKfLn8Zk//ijWflBn48AtLK9F61LY24Snh0SfdYaUR8fvJ9Rc6t/2zd3vUtitu6Y8bdkU1g2FVNioAq2UsIcvFZZmagQXxWemEcjhBRqNkHEJMIQg+FTGPPK7MdVP98eAfusw/uIWsXk4cnMTMCduR1degeLamUgCBVWcPS2oIzBp4JqxB8LDAbTH5lQbu5DPPf+HlNw5MwvobPmR0nkg1c9qjAWtyEub784XSgYOQJeLdfZP//uQzTGiZAKzZn/Ch4rAaR4AwXsVtV3G/fwQWM6fj1qFuqj+sTUeUmUjLSFwyCvPuMOOeSciGa3tKCMAajAOwdsfJ2wnFSMIwlLCn4tYUBEwYBuPe17vanvgRLI12eYmFgeXlOCRc0AogsD70nqz1gJmNkfmoUYjDEoAlM0ImLMraeumVX9jZl5mdbZ8J5pw/aB0DWLDQulCamIRYrKGRPT+49wGdFRLg1HLPs2pXkCxZRN+1MfhaxJCKqNNRYzqmS3VqhiLyTESWi7eMQFA7TEUNfzRg7UlIRxPUUMLVF3f1xIz9MfNA3LsjFnrmwZYrPk2CQeLwS2hPJal8Lb+iVhPj8X81BRBYdZf+yMCSUD6lOWBxL/72HfeO7t6fL0BihjKfoWH+aCWEic6ZLBMm4GGX1lIxn8/ni6Xy1HQpXypv39l/6fob5HqHsG1qlXe7xMjKnSw5bZX70dvbd2417Iqq01HDYFTbt7kCLFkurh5OCiO74/Cw1BUPaw/M3+syCXdflHkrYu+N2lNx385k2+8f1WxcR5YtJh4/odwIrCptJ9LDEFj1Bhbdyo8KA7PrcmY8LEhDbmQ9gZWPdW3bd7BYKJYL+alyaZqfCJ8vZAnulQAsPuDqELDK5eLk5GSxCNuL7Zss/ea5V5ae8km12VsTsCCI3+GR/c1pbPIHob4tdCqiGZzxsGDGPQdDQnkurh1KatMJeSYhHYaYrOqLPBObAdYYDAnJ7oQyl3Cmot6dEfubYUdP1NuTbHt+s/nvbyQnL4OHlXonAkukJKqy2giseQEWv4e7sJBQGBWCe6W1BJad/Le/evb5KT6goViY5ie753FUeGRglfJl2FGseODAgXy+OJkvj+89ENnyCwfXobXCnl1VNh1+W0CWeHyKz53DbbsrsBOWzuiHouZ0TD8QlmUjZCQiGQVg6XhgyTIJkq0NWLJsTJmOq4YSslySjHWT3TAqNA1GHX0Re2/YvrPL1xNf9Pxjru9tJKcuJz6WGJz82ux623RBzwpVb+5mOBKBVe/GzXtYhwNLYfJT9tCFl93wh1d3wiY55XIhP/HXBFapMDEBueQL5fJAZvyOux6gHH650VuThwI7PLcGlVeex/38Hu6tuKG3kx6ImAei+oGwJBchYxEyBjPuArAkuQTJCRGk1TpZsmxMMQTAUg8n5SPdgpOlzkTpgYilP+roCft7kx3/9xh3z9fI6SsJyxGLB4HVDFiZvzogsBoELCnNWH1LbvvO3X0D41PTsNvE1OT+UnGq4UNC3r3iPSyIw+KR+cr2nvU33mpw8QlwavKwrCxpC8qvOY958l72zZipp5Pe1WVIbdYPhclIhIwfApYmnSC5BJkJea8NWJp0Qp9OqrM8sPYkyFhUmYnQ6ai1Lxzo6z7hucfafvQt8okVhGWJzUtgK5162xRP2DQKILDq3rhh0n1u9ijo840+Ke31tq184KfRsXf2F/hR4PTUBA+s+ZrAEs4rjApnc0IUAVBAKxgS5vP5icnC/qnis//zh7POu8ToayMaR80eFsfI1q/1/eIe5q0Y3dOl7dtM93Uah6MArN0RMg5PCT+KhyUbhrAG9XBSMQJzWOTtmGQ0Ks9ENINhY18XD6zN7fd/m5y6AoaEFpgxRGAtYAUQWHUGFtHDlnyzAeL+FhoWD0tgvxzPqZ+6IP6zX468vbdQLh88eLAMuftmSTK/1KqcnZ90LxXg6WSxVCyX9k1MvzddjDz+5NI1Z+ucfqJz1QYsEwtJGs5d4//l/Y4dXaahpCK1yT6cpPr5IeF4hIzHJKNxfTpJDUD853GtJYzB5Nd4guxJkt0xyUiXeqhTO9hpzCXNA1HnG11LX4p677qNnLKK+EIyOyQaXMC3K/40BFZ92zcLwdawrwwkPGihgpUnhrQzsPaidc+98tpkCSa9D05OTE1MF2HL1Eb+OwQsIaZhMl9+e9/UnT/8ibt1qcLkg/3HahoSmlhi95GzTvE/ca/nzbhpKKkdiLqHuqnezfIMP4c1HiNj8JRQN5iYiWyo5SkhhJumYREi2ZMge5OS0ahquMvQ32no71QPdJmHE543422//Sl12wZy0mriayd6BoG1sKGGwKozsGRGfk8XipFQjAAsmTEoM3IWX/tVN325bzibL5cn8tOFUnF6Mj//YVjvS9c3s5aQ97CKkFymPF0sD+Tevn7j12lnQGHy8aitYUgFYQ12H/nESuem2wPbIQDdPBD3DSRNOyEOC+bdx2NkPC7PJlVDACzVUELIOFplZIMsC2EN8kwCptvfTiiyUWowYkl1mnZ1KtJdhlzSszPR/uy/KTZcTE5cTrztBDI419egeLbmUgCBVV97sHKTHzahohh+wTDMZ8Eb2utuPfGuB36S3bN339TU5DQs3ytBFqp597CEOaxZL27Ww+KHolPTpQOTxZf+1LP2oit1Tr/GFuQjxWsQBDKpujiyfLH2zi+FXg67ehKWvqinL2HvDdMDEOkOi5Z3x8loUpYBWtUKrENLc3hgqTNRU3/E3gvAUmWj2mGIdO/4jwflF68l/hCxB5SuRQgs9LBqaMELW6wqfh2k32wxeCFXH2S/C0ooDnb3pL3tKz7x2xdf/ctUfu+BA/lioVCCifd8XgjCEuI55+P1SB4WP3cGIaOThXf3TT7x1K+Xn3qO0uJVmjmid1XxGw+1B4h0twdIKEBuvqTtNw+HUtusvVFbT8SZipt3RXTpiCQHHhaUUVhLCKtzahkSCsBSDydhun08oU1HLH1hR0/YmorIMzHdUNz/eoTd9I/kjDXE5iNGRu6ANH41/QQ8WFwKoIdV3/YNwJLQHiG5sMwYhGR4lE9tZtac/ZnBkT35cnn/5FShVDwwcbAEW6gKHtZ8oGrmnEfwsHhg5fPFfKG8972pex54hG1fSXQO2JW6lgksvqHz2Rp8HPncOd7onctTP3f0Jsy9EfOumDUV4Z0smMMCYI3FJLnjydagTcMjQiGpljYdMaXC9t6weRcsWnQObet4vkv7jQ1k8RJ+O1WOGHAOq77tuenOhsCqr0lgP1FSARYdkOh8alPA5Gm/4ZZvjP1l/zQ/gZUvFianp2aHabBtzfyV9wFL+M+sh1UoltOZ3dd98atWbwfRuVoon9ICybCqL5CPUOeRegJkzUrlt65d8krMvhM2Q9Wn46Z+WJ8sZEkGZo3FyEhCkqstH5aQXgaABWeIq4ZjVH/UvCsGpT/peyMW2vZD8pkziL9dYQ5ILAEEVvW2E+mRCKwa7s/L9HA+AAAR6klEQVRqbAzAMsAEFkQ2ULDbu97W5vIvebgzuXc/hLjny6Xpwszc1XwPCYW4iUPzZLPAAueuXN4/UXjljz1nnPtZg6MVMh3P7pFTzc8UjoEU9TqfxtNOQovIZ8/uePoh12ud1uw2bS5JDcIeXzp+HwrJKAwJSa5mYMmyMZj5yiSFNDWwtDANe1tYUzGmp5v59UPsvd8kS9rl3kUyvY/QjMQCEXDV1x+PFJ0CCKx6t2/YLR22mdHY2+UGP1G7pBrX0pPPfu7lP+1+d1++XJooQP6pUrk8NZUvFsuFUrFQyh9eimVYH119OfwMwif5Qmm6JFwFHgzy/8qFQum9fROFcnnbz5+xeNooe0hh8hOdV2GuOcWwzMAqHEHiYMnJK8x3buR+97ClL67JbYFdnYdi+mySGtuqGt8COY6H4Xlf9TsSCkcCpEa7lWPdsrGkYvcWxUhCPRCz98RDL3Se0H2f5rLzidMtswR01hDRufm9qett0FpcTtHd/6KrMAKrzu1bbg2Ck6VxE71PQXFKA6e3BC+49JregeGJYhFCRvMT/IYP5QK/opCHlxBC+r7XowHoaJ/zztT7ziC4VwV+taCAyEODUN7D2vPuxEOPxJzcCRKNk6hcKmu71rG4phYMG9XQXqktCFPvTCu56FzP5u/6/hzVpaL6bFKTTcgHwyS1iQx2KkYSuuFu1UAMdnuuehdVPu0fAEs70i0bjkqGI+rRbkvmcW5HYvV/bXJ/+wtkxXJi55SWoNLAEdonMeM2X3VuzzW1hwYcjMCqs4GJDjp8paVVbgqoDAGpzqs1sxu/dntu994871gdmNg/lZ/OFwtT0yUATBkizg8vAmKqfz38DMIn06UyeFhFCKovlUqCh1UslPcfmP7zjtRNN3+dtgcVNAs7zptDRFdbxk5i5IiNI3YIiSAWhoSC9K3rW599yLsjRvV2aQajmiwkhIHN6AfDdCpiGIR5qJqApRpJSvs7temYafRxfWaLcWiLN7V18QvhRQ9+V3bumcTJaZ0hfjzrlVkCxIiT7nVuzw1gUE2XQGDV28Bmv9wahO3ddT6VIaDQM2xoVXzLk+/85aAArOkCH4RVnhnvVY+k4ztSWDco/K3gYcEEVrGcL5Tf7Bn61NpLiNSgMvqVljaiZlqMoTkpnj9cGWLiIL7cDJs/66xB4mLIWSfb7/nKCb/fxG2PmN7qMgzGTePb9GNbFf1d+p5Oy2CiJmDJMzH96BZlX6exP2YbTJr64mxqa/tLEX/k+/LPn0cWdSgcQdjgS+chtE9pDxG6pnSpH/4Da7qX8OAGKIDAqnOrVdhaiYEhKmeLnlGbAiqaWbr6k//5m+ffOwBeVRGmj2DGHfK6FMvT+Zk4qcNhdPjo7tifHH4G4ZPpEr/QmR8f8oEUQKtiofzO3v1P/eq3i5askagcWnMIIjBUPrVjSW3AMnLE0UrMjETvVVsD8LjQz5ALzuJ+/M1Tnwt3vBp27QgbUhFtGmKmTANxqh82rK/ew1IOx+jhpG2o2z24xbZ9s+PFny57JX7izx6gvryedHS0MG0KW0BuZFpopsXESc1+eMUppwWtAAKrnk0c5nT0HhiYUIzW1i6nGI2Ru+jzG/60o18Y/fEzUBCHJdBHGKkdkURHA9DRPj/iSYo8rSAzwweAVSrv3Ttxx/fuM9n8tC2kNYfkplaFqUNiENKl1qAJoXwKWwiiz8xMiytIHG6yKKi6+Ny2+25b/fRDq3Zs9fTE1D2b9dmkKbdVm44pawGWajhmSSftvVGuf8uSXU8seTEcStxt+9oNkjNPJVyb3BkkOifROZXONqk1QCivgt+jDJm1gBVAYNVwc35oOxB2S5fbQkTvU1tCRGY1Otpv+crtL7++c3Rsz3A2k80O50aGhrOZ4UwumxvP5sYz2bEjlqHhkZrKEU+SyY4N5UaGciOZ7Eg2N5rLjWazI9nMWCY7/sYbqas33EKbAalE6Wqh/Vr7UkILq7Wr1URBcWotqzO2ymz8g0IXS9w+SPPS0SY/5xT29i+uePrB9tcjpp6wOhNXjialtUy3y7LwnNG2K2rb/pjvjciSP8aCj98D6dvXrCKBNoWnTWrliN5BDG6Fsw0qQPvQw/rQJir2AxBY1d6cVVq6xeRX2EJE7dLZFxGVU0Uzq08/74JLr1l39Q2XrFu/7qprr95w4xXXbFh39YYrr71p3VU3XXHNjUcsV157U03liCe54pobL1u/4bL1115+1fWXX3XduvXXr1t//eVXbrj8yhvWnn+5x3+iyuCVU15YPGQItFBBovfXNCRUUJyOChCli5hZ4g4Ri4c4Ga23TeZgWrig/IyTTd+4LvCz+wLb45aBbsVgrGUIPCzVkYpmCPCkTR8qOj7eyvvqptU7tp74XKfxoa+T6y8kp6+CfVtNnhYTIzWzUruf2ALEzMlsQZklSDTuKs2Eh4lUAQRWnYFVaQcyo19hDKgsQbW1VWtvpR1ttLP1fcXRBh82oDhnrz7nWhqzX2kOyI2clIYBLL9aG7J3VepfzRuJkWux+GFZjIUjFq7FxMkMPo0eCszBe1vJSatkN15m2fxPzIsRV98TdP8Ww2DSmE4Y0wl6ADYWtKSTpoG4IRUx9IbNO8OwDrE35k4lvKkkk0ou3pE847nYmu773bffLPns2WTZEuIPyRwBKS1slsFCuggTR4wQzSBsYSuj58ug1QiCx8y3Agis+W3fgC1zUGGG54ZNVRTmoNwUkBkhv2Cl1NraYAhs9RObn1g5cHOMnJJitTooGi0jM3KEaScnnUQu+4z0H76kD99pe+bBwEudwT+GW7dH2T+H3du7XG9F3L1xT1/C1xPn3oq37YifsD1x4mvRxf/7aODp+1uTd3m+u9G84VKYtFq0qMUbVDr8KiOr0HsVNCs1sBBXAcAKSAwBBQUFgVWrEcV1PAKrzsASco3OJPCbZYHUwAleTPO8CrSaW0+pgatUvspGDJmgzeBbAbCEAinVWQXNytQeFc2prK3EGSRsK1m5QnLhWv1NVwS+/9XFP7lj9eM/Xv3MIx2/ezT4wibmlU7v613M62HuxU2h/374hKf+dVn07o77vuX96gbztReTtaeTlSdCvnYXI7P5lQZGqfeqKN8MsEw8sEwBYgzwHlZl2+06m7VKQfCw+VYAgTVfLbvitghv5tuQtZ7/cDYJDmBN55HREMovBzeHhWksC1/MsL+ZyujXGgJ6Q0BNcS00Q8wcTHIF2smqZarzzrJu+Lzjtg3mf7xZd89G5f1/J3vgVuW/fEV5983q71yv2Xi59orzlZ86TbJ0CQkGyOLFpL2dcCGZOwC+ldqlUrt1NDARPCwTeHaEB5bUAMyqqf54sOgUQGDNF7BE1xSOA1hKiqM1LK1hNXoWws1Ns8wysbBchmJVaq9G6dGpfZSO0+k5mYmB4NKgnyxeRJZ1kNXLyBmryDmnknPXkLPXkDNXk1NWkuUn8ITiiBu8KmL3ELdf6WxVGVmlyqVRu3UaRq1jEFiia2B1qTACq87AqvhTH5ix+oDD9Vf/7+Gt5ziApdJzRiVjUTC0hlXpwbECP4svEiOrNHA62k/pOErLUlpWr2VVNCf1tRE2SHxB4mGJJ0CYIPG1ApucHOxn4W2FHefdAeLmJJ5WBRMiRleL2avQe2VKh1blNlIcpeNkSpeC5i83Z0iIHtbhNl14nyCw5h1YTd5ojoNTlV+kpDiDijErGUoNXs+MkwVP7lhiZKRmv8YW0thCkKzKCJ8QE0PsfmCTM0hsEIugtPqlNEPUjhatR6J3SygfMXiJwUfMXmJliZVRWDgVzai0Hq3GQ+s4AxXQ6TmpxiOj4ckgDAnf95QQh4R1bs8VWzfJGwRWnQ3Mp3KHc1YmifhtvmpbVNywxlFxA4UrVipfZQUUFKfRMsIYTU4xUoPg9bASMyyUAUhRXgj9N/hgYt4RJC5+Dt4RhEgIAwMpAw2chvarKXhV6Vk55MKHdTZwgD0gsfhbKJ9c69bofbTBr9NzCrVHrvFqzEGpAaIZhCLkwMKnhFVaTdSHIbDqDCxRt4ZaKw9xWCa/xOQnZj+BaCz+DR8VNfdUM66QmZ8g57+Fx4tHKUJQ1SyJYGpMSR0q8PyRj7SCc84W6B5oTklBwbCGucovvPcILATW8SsA1LD4IRTLOgssi5+YAEYCRGQ0EEQolZunwpRD0JmZijrkMQk4mzmJAbAlg3zzUA791SzyZDQHqccQWAt62bPQfhBYx3+7Vu7Aj+0bwIrgXpl538oMtBJcJIE1Akc0Ok7LF42OU1Cw9dnRisQAIaCHyiySBH5VXKpZ/+sQFoULKdDDWujMQmAhsD6SAnKDXygCtecO9CojNY2O02s5SgOvSv1MhKcQ51l5PSrCZsd9M7TigTiXiYL7pqDAyar4bh/bLmTB/3AE1ke6XRd8+zj2D1RQnFbv1+n9Wh2n0XEqPVADwvpnKTM7HQ5fzTpZAZU+oNQLy2jA1ZIYIE5dKEJogoKCA4TDZPSMw1U5Zu54U4BUhVPCV8euM34ragUQWAis41dARs8lETBLSXFSChYnVoZvc5ml0nMChirAEkZ/Aowk/FBRRgPLBGCp5nBNQBt/DHhSlTHgEREp6nsSK38MBRBYx3+7HkPWj89XcymjoAJyvV+uh/3N5vpNlWP4pTMzHtMHxoCVsaFwjPBtBV6zIQswnJzFGbBSyY8EZ0Ic+KeQ6GQt7LaHwEJgHb8C/NAPRnMCkqQUoEoA1gfGesIBh1NMGAMeTivB85LyORgEd0xglvCq1AeEZ4KVOAZw6GBR4cwDyoV9036cfx0C6/hv149zu6n89kr8QeWTyoySMJn1gQMqs/KV44/9phIVcbQ3wp/XetpjXxS/bVoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAggs0ZiqYZ0YXggVaFoFEFgILFQAFRCNAggs0ZiqaTs9rBgq0DAFEFgILFQAFRCNAv8PTRevV3JRknkAAAAASUVORK5CYII="}))))}const ey=i.forwardRef($v);n.p;var ty,ny;function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(null,arguments)}function iy(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",ry({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,ty||(ty=i.createElement("rect",{x:.811523,y:.914062,width:22.7334,height:22.7334,rx:11.3667,fill:"url(#pattern0_10301_3039)"})),ny||(ny=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_10301_3039",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_10301_3039",transform:"scale(0.0025)"})),i.createElement("image",{id:"image0_10301_3039",width:400,height:400,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAgAElEQVR4AeydB3xb1fX4r6y9t7xlTY9MwiaMAGkZhYZRUqBQ9t6z4QcFWmhpoaVQNpSUQstebdkriRNvx3GmndhOHO9tWfvt8//f9yTZzqAJBIidm8/9vDxLsiyd++73nXPuGUhu8ZJBJEAkQCQwJSSApsSnJB+SSIBIgEhAbvESYBEFk0iASGDKSIAAa8pMFbnBEgkQCRBgEWARCRAJTBkJEGBNmakid1ciASIBAiwCLCIBIoEpIwECrCkzVeTuSiRAJECARYBFJEAkMGUkQIA1ZaaK3F2JBIgECLAIsIgEiASmjAQIsKbMVJG7K5EAkQABFgEWkQCRwJSRAAHWlJkqcnclEiASIMAiwCISIBKYMhIgwJoyU0XurkQCRAIEWARYRAJEAlNGAgRYU2aqyN2VSIBIgACLAItIgEhgykiAAGvKTBW5uxIJEAkQYBFgEQkQCUwZCRBgTZmpIndXIgEiAQIsAiwiASKBKSMBAqwpM1Xk7kokQCRAgEWARSRAJDBlJECANWWmitxdiQSIBAiwCLCIBIgEpowECLCmzFSRuyuRAJEAARYBFpEAkcCUkQAB1pSZKnJ3JRIgEiDAIsAiEiASmDISIMCaMlNF7q5EAkQCBFgEWEQCRAJTRgIEWFNmqsjdlUiASIAAiwCLSIBIYMpIgABrykwVubsSCRAJEGARYBEJEAlMGQkQYE2ZqSJ3VyIBIgECLAIsIgEigSkjAQKsKTNV5O5KJEAkQIBFgEUkQCQwZSRAgDVlporcXYkEiAQIsAiwiASIBKaMBAiwpsxUkbsrkQCRAAEWARaRAJHAlJEAAdaUmSpydyUSIBIgwCLAIhIgEpgyEiDAmjJTdYDdXf1yizTIBBEJjEuAAGtcFgcYEfbHLy6z+NMjKLPgobAGVPZiucWPjJ4ssy/L7JNb/BpnqcLs3+Ugkzi9JUCAtT+u2+l9zX3Nt5tMqxKZJYj0bmQokpm8KnuxPmem1lWG4aV374pWQYXZ/zVvTp6aBhIgwCLA2q8kgM3AidhSO0rUjqDGWayw+pAmF2lyFdYA0bCmAXq+2VcgwNqvliv5MBOBhcmltPmRLh/pC+QWr9Lm17pK1I4SpCvclYaFjcRvtgzIb00VCRBgEUbs1xLQ2IMKiyfL5M4yuWXGQrm5SGnxyU2eXS0w4qTfr6dyV1O21x+YAGuvRbZP5E7e5H9JwCO34IG0uSqbR233K61elc0nNxfJjIUae3BXv06ANf0vZgKs6T/Hu1rb++m3Vlg86eFWWPBA+lx9tl9uLhRPgiqbB2mzNY6AhLP0cT/9OlNI8lPloxJgkWt9P5KASCsJVQUKS4HCmmfICVx9x73vfFrx8co1f1365oLTzpebC/GwutO02qV5uB99qanCginxOQmwyJX9PUtAsvWkPyoZcfiod5Uida7GEcCKlSnPWVR27MlntQ9EwiyMJGEwCWM89ETYiABdIfbeh5/OKz1EaffIzAUalx9pcnTZJUibI7f7psSqIx/yG0uAAOt7Xq7kz+0aWHKTx5BTKjPma51el2fGX//2r74wMxBjhpN8iIb+OB/ioC/G9cX4OMDWgXj7CHXc6ediPcvqthXNRUqnPn+G0hn4xiuB/OKUkAABFiHI9yoBmdUjs2aMOKxbSQEKGnsQaXIMzgBS2T74qioBMJrkkgAxgCRAf5QOMVjJ2j4SH0gIEYCuMLO6pevcK29R2AqRLhtZClUuP1K7psSqIx/yG0uAAOt7Xa7feJ6mzS/uDlhIX2jMLcvS562o2zgY4/siCcypSGwowUQF6BmLDcbZGMBgku+JMJ2hZG+MH0hCS380p3ie3O6R2z0yq1uXVzJtBEW+yC4lQIBFgPW9SkAClszqlVm9UnqzpGEhTb7G6rn61ntHkkABjNHCGMNFOH6UYsIsP0qzozQ/lGCGEkyIg4EE158UBmnYFkrWtXZpcv0yW4Hc6UVaomF9r7O5S6Z8pw8SYE3zCf5Or55v8Oa7AZZXby92ume/8s6nfWFmJMFTWL2KhllsFY4k6TGWj/DQH032RRLDNAZWb5zrS/ADDHTH+aN+cg4yZiNroTLbL24dkjmdthIgwJq2U/sNaPI9/MrugKWzBU887RdbOkYTAFEOhhNU5+AwDTCcSPaExvoiseEkPUqzYyy2Cvvj7Jb+0DCLNazW4diXDc3IlIOs+chSQID1PUziD/gnCLAIsL5GAlJq3u6OX/OLu31KMgZ3Mgm9ckPhxdcsiTAQoiDMQEyAGCcMRePDiWRcdL33RGP9ieQIK/REqN44N8pDc/9YGKAjwn3Z0CyzFSBDLnZm4fj43f518tRUlwABFrm4J0lgYlKx3BzEbqadjgozLuQijb1dABhV6XoM0u8qzF6FxaO2FF12w10xDgYidJSDgWg8xgljDDtKs0MMP0hzAxTbn2R6Ka4nyfYk+PYxqo+CrpjQNkzXt/bLrG5kdmeZi/b285DXTy0JEGBNWq5Ta/K+i0+bIRGufLATqqRHvhWw0rSS4YKiWPhSdLvSVHj+5TeGRI97XMAaVpTlB6KxYZFW/QzXR7MSrbqTfFeC74pDdwK2jbK9CShft90ROERu8ajspFrDNL+eCbCm+QR/O6jh9Y8VIkktSu3rSbt731BuGfVqB2DpHf4Lrrw5DjAYZ0eTXF84itUrhhmiOVG94gcovjcp9CREWiX49jDbGRNah6jOCNRs6skyF8lMbgX+hGRMZwkQYE3n2d0nq3ey1+nbimt3wFKZ3RdceXP3KIW3BRN8ArBVOMbyQ6IxOEDx/UmuJ8F3xzmsXiX4jig/yEFTb7Sfgop1HUjlUjsCRMPaJzO+P78JAda3XYH78+x+g8+W3sXD8eh7Mvb2T6Td7eNil0xCtd0bmDf/w2U1IQZGaRhKMHGA4SQ9SLF4WzAp9IvqVXec6xRHRxQrWe0hrisKv3l0qczkFjN7Cvf285DXTy0JEGCNr5ypNXPf0afdE0hNfM3efozdAMujtnuRxnHvH/4aYmAowXUMj1EYWJhWUphon6RexVgJWG2jVFccuqJYyVJYvTidUOVSEpNwulvEBFgEWJMkILN6UXpIYJpQxSWlc014waTf3Vt4pV8vFurTuLRO72Ennlbb1DaUwPGiveHocJIdSHADCaEvjkd3nO+KcZ1RvjPKD9DQMpjsCMPFN9+nsHpRls2cP1NNnO4EWOmrap9cmuRN9ncJZICVVoWkyCZcV08il0ixFNTE9Jpv/43wO2scPrW9CClNxYccHeagL5IYpXkRWMJAAvriQm+M742NA6s9xLWHuLv++Kw+f4bc4lFYvVkmN9Gwpv1qJRrWt19v0+odkNGDh8mbZcYRmBp7UG33YxaYivTZJUhfiIxuS+FBSJ2HjB65DZcqlpmKsswehdWXZfYgQ2GW2aNxFu9u5SBjoSG3TGnzIX2+tK+ncQaximTI1ecGNE7386+9N5Dg+uJUdyQ+wkCIg85RZiAO/QnYPkp3R/jtY3x3DHoTcM+fnisoOwoZChQWj9LqzTIW7abW+7SaoN0J9gB5nACLXM2TJICMHoU1oMueoXOWIF2B0VWCVDlmV7FCn48UTp09oLYFkDbfUniQwoL7mypteKjsAbUjqLT5s8wemalIZtptAKfaEUAql9zi0WWXKG0+EVUFSOXSZgeQIfugY05p7R8b42GYhjBAf5ztDFFDSVy0r2OEHkjCEA3bx/j/lK+57YHHcssOR+psfU5plsmNdHk6ZwnuTzHdbaID/AsSYE1argf41YDDOK0BvWsGUucjRbazYA7KsmlMBVpzoTU7qLO49VavwR5UmbxIk5dlxAFZE9mksPqUNr/C6pv44A4iVVi9MpNbn1MqNZhQWL1Km89cMAsZcrODBz39z/d6YuwwC62DoUGa64+zwxRUNW5bv214S0/0i9qmBx5feuEN9wQOXajLK0PaHKTOVtp8KptPYfGoTF6Zwb3DnyM/TjMJEGARYE2SgMYezNIX6OyBXM9BemvRa2993NMXbd06sKW1r71r9Ivl9f6yI0zOoNFVorMFVVYMLIUV6zXI6EZGt8LqU9kD0iO7XCpKm0+fU4r0+Uidrcsu0Thx3T5kKNDlBE/5+aWdY2xfXOiJsX0JdgygYyy+qrHVP+vooplH+ecea/fOUdo9uKyo3YfULk1OiT6nVCa6rtR2v8JQJDO4FeZJX2eXn4E8OHUlQIBFru9xCeCQKGOB3u7xlR5eWbtpLCJwADwPDAuxOCMIwLLACbBl68DsQxbo7R6lqRB337IHVHZcm1hyZn39YlDZ/SqHV9KMtK5ipM9X2f1qR8DinvnqB8uGGQjxMMDAIAetI+EBCq6980GkylZiJ1eBwupVO0RaWYrU2cW4iLvFq3WVIE2ezOA2Z89QWnwEWF8v/6n+LAHW+HKd6nP57T+/wuIxOj0XXHbD2o1bOQABIDwWZxgOQPwBIBFnGBY4gL6h2BPP/9Oc7cP+I6NbcrpLfnfJW7+bD+PBOTTmAl12iTFvBlK5kKHA6p6DdHm/uObOERYGkrj2cT8NHRG6J8m+++UqpHFprD6diDZT/kxkLESmQmR2Kxx+ZMHOMuzmNxapbQGdLUg0rN2Iffpc5ARY02cuv/3FqrC4F5xy1rauARYgwfCJBCVwPNaxOApYCoAfHR4BwMBiAIbGEo8+85IprxRvDmrzssweSc/KMnuUtt0lIXuw012LXexyK079k8xDfU7p1iGqJyoMstAV47aHqUEWepLsQQtOyjIV2PJnIW0u0uZaCmdLPi+V3Y8MhXbPPLUjiBROjT0oNt3JQ7oComF9+8tgf34HAiwCLKleAo60UlkKBsYSLEA0SfEC1quoZBzTCtj04FmWZnmO5rG1GGdg1uEn2txzcCt5c5HSht3tyOjePbC82GmlzdXlBCVsIX2OPrf43S9qhmjoHGNHWFxBdJCCraOJOx/8c5YlV+vEXbw0jgBWsrS5MvEPiYUZAkibh4xutSMoN3mQNl9u8uymIzSZ4ukjAQKs6TOXu7wxTkijwWXUM7nHSFeodZWorLgFvNyQr7G5kcJc09jMigoUJx5FZAEAVrJ2GikzsbVz0Jzrl+mz1faiLFOBHgcrSOrVeM/BiSVrsoxFeJjcartXYXHrs/3zjjt5c8/oEAW9UW6UxTGi3WNcbXP3gtPOx4FapCAfCdSYIAECrOkNLCmZxi2Fp6dpFZRZgllmn8ZZrDB7ZcZ8uT5H7yicfehxHb3DEqoywBJE51WaXDvCSwCIMnDuJddqbAV6Z5HMmK+244hT0Y21a2Bp7CU6Z4neVaqwuJXWImOe/+1Py/tiXIiD3ijbHxc6R5kRGm6991GkLyRxVbu8CR3IDxJgTXNg4Xwa6y6AJXas8SrM3ixTgdpcYM7x3nrXA0xasZI4hZWo8X87K1nYaqQAnnnpDaU5V2svRIY8pTUTMrprYGUZvUqLDymz5eZCtd276IIrOkaTg0noDCX7YtwIA0NJWNs2mFd8OIYaiVGYoFwcyJzKfHcCrOkNLG86AXCiPZjSsJDRrbL6FRa3xubW2Qpf/Oe77I761DiudjIJMb8EgLEk/9YHX8qN2RpbgaQ0SfHuUguviY28JMNQYy9R2wJSS/qimUctr2/uDFFjPG6YKjKL7x7j5sw/BXusNHlqG+nkPO2vz737ggRYeyevDOmnzomUtIy/5kSTUGkL4n09EVhKcz7S2l97/9MoJYjW3y6UqTSwJiIMxz0kBXjt/U+N2V6dI+WWUtqk8PedNSys0EkOcrXdLzPmn3LOZWEe+uNC1xjdE2HHeOge48obtuhcAZXNhzf+FKTP4LS/PvfuCxJg7Z28pg6nMt9r18BSWEXlxeSRm4tUZrfcmPvqu5/SKRztBbBogBdffc9WUKyyFKhsHoUFB7uLfvddA0th9pryZuhcxaa80v4Y9EVhlMWjL8Z3hqimztGimUfIzUVIn6+0YGZNQYFnJE9O9r0ECLD2vUz3szW2M7D8WNUyeXHSnwFvw2ltXq296KkX30wDi03rUxPJNa5bZTzxHAAN8MIr7xpcPpk+5ZbKMntwqAHuMZEauC9OehhySlGWTWXzvf5BueRfH2WhbSDSE2FHWbj/T8/Kzfn67BK5GceCIl3BfibMaX+17O9fkABrf5+hb71idwsstSOYZSxSWr0aq09pKrzr/sdG49jK2xWt+HFcpf1cguihj3Pwz7c/1tqLsgw5SqtYgkaXL+YS7gpYFhztpbC4L7zmV02dY8MU1rC6w8wIgw3D97+sLD74OENOscLiQZocbK4Spztxuk+WAAHWNAeWpNpMpJ7kycqy+bJsOFE5y1yElSynX2Es6A/RAkAoFBJEX1YymQQA6YjxxOPBcgLNcByPXe4swFCE++niS4zZfqRxqGy4LhXSF0ihWFLguz6nTPJbmfJmyIyFKptH5/ItffOjUQZ7rIYpfBxMQPtQ8vd/XSo3F2Kj0oINVaQv1Dp2W1dr4jci5weOBAiwDghgTVRVJgJLqgMjAiv4/9NrHnjk6UicwXt/4agAEIsnpXh3jodoLJGxBAVxgzBJMTQH73203JztkxtzlaZCqZCeVGFG2itUWH1Il2/ILtPYg0ifn2Uq0Ll8v7jqtu4xrjcijDK40FVXiO2LQsXaNkNOQJ8d1DhwbT9LwSxSkO/AwdCef1MCrAMFWBlmSbWPkcUjt6eKw8gMbrUtoDAUuYsPaW7rpHmcLRhJ0BxAjGI5Hh9ZgDjNJSkOZ0RHYuFIDHMtSh1/8llyfY5Ml6syu/XZJSqbD6lzpIqjCqsP5/qpc1Q2n9Iqtne2e23uGZ9VNY4w2G8VESAiwGACesL8eVfchrIsprwZWLcyFKjtfq2jGOlJF5xpfn3uOaqkVxJgTfMLQmXyqkwpn7c05SlgGQvluK4LrnGMtPkKs1dvL0Zq1xHHnTIcpWMs9qYnOUiweGT4xQvYKmRYrHhFY4nHn3wOqSxKY57K7HYVzUEKh9xcpHEWI0OhzIRPpHLJMmMhMhRoHAFkyLvy1nvjACMM3hlsH0q29cf6ovDKe58jbbbDM0dCG64Aoc/HDCU+rMkenL1d3tPv9QRYByqwLB6E6xSX4uIwOPo8oLIGtTa/3Jh90hnnrd7UNkbDSAznPdMAIxFKyn6OJhkpuHRoeCwUCgsA/hmHmrMDSJMtN+Rj/z0uxpCncRZLhiFS5xjzZmqdQezbklt9c+YPJKA/zm8fSQwmYSCO1avmrrBn1nxcGEss9G7MLUOGAq0ziHR5KhspeTzNr8+9RSoB1jS/IHanYSmdQWTCZRWQoVBtK1bbipG2ENdx1+dqnO7ig+b/5bmXaze0xQUYjvI0QCTJS6oWLdbzk7ILkxT/zgdfaa1uhbFAY/VkmdwaRwBrWEa36M73IKNbZipS2/1qu1/j8D37z/dHWegYTUhV2/ui2Id13yPPqWwetd2Py5DqMfVUYtVjMUF6d2Vqpvms7e0yPnBeT4A1zS99lcmvMuH4gIx5lerfZfcji0eMxgrILX6FNYD0XoXZLzqhbFqnFxmcs4844epb777ixl/dsuT+ex/44423/aqqdg0HEBqLxRMMAMQTbJKHCy67zeAMZOnz9NklOKVGnSN53KXmFEiXL24O+n5+2S3DFHSN0RHAoQzdYaYvCsvrmwtKD5ebC5E215w/UwpoENvz5Kvt+MMcOEuRfNM9kQAB1jQHVrq0y47AQqIPS2by6nNmIl2hzOTVOcuwbWj1KmxFcqsb79bpXFp7kUyfbc0NmJxFKqPzkceeDicYmsfhWgzLUxzEWHjzP8scBWVamxdpsjWOgMyA1SupKpZUrwrXcc8tfuW9L3HJ9hg/xEBniOqJcj1h/p6Hn1Jai1QOrz67RCFalEqbT1THAshQIDdnUqmn+TTtyVolr8H+ViIFIoGMBLAilortFCM80+HpqVrvTq/C6KrbsJkS/fGRRJIRIELjccPt9yqNOQp9vsFZnKXDZWGwR8xRasidgXAcqfey2+7vCuOCosMMbA9T3RG2K8Z9Vd+ETPliZfc8nOooNprfR81ZCeCmpwQIsKbnvGYYtLcnuO6o2ZM2ITPR6l7s3tJm6xzuRedfPJqgaYAYw8RZFp+wsLJ2Q+mc+SaXH5dpV7o0Fr/SEkByJ9Lkal3FeTOO+O+qhu447i7RFeM6IvSIAG0jyR8vvkyTE0Rmtza3VDJUpRixlNFKNsiIBHaSAAEWAdYkCaQ0rJTPaxxYSJePDHkGl09udD3+7FK8dRiNMgCDkXiMhSgH9//hCZUpX2Mu0juCKrNH7ypVWf0aZ7HGGbztgcf6aRgFaBmKDrL42E/Dg0/9HRlyVS7R167JTYNV+ouTPlL6KfIgkQAxCXdC+AG+PDLAEuWQAZbflD/LmF+KdC61Nf+I40/uHAjh0u8U1rCSAgzHuQSAxpKP1A5rXhlSZSNtLvada3OVds8ANgPpYR6GOFyyfZiH9V0js487RWZ1Y7eXsxin76QmggCLUOnrJEA0rK+TTnoVHVCvGU+Wxo2d0wMpnFnmIhx/YM1HastVN/9qLMmHaS7KCqNxNsrBYJRb39ZrzS+Rot6zTAUyc4E+t7i2ubsrJvTT0Doa707yHRFmWyh5/nV3IJ1D4/Kr7DhwAWENC6Nq4hZB2iw9oIRPvuz/kAAB1v8Q0IHHrHFgZWgls/h12aU6rDFlI0OOraB43vyFVQ2bogyMxKkwzcUFCDPQE6JO//klSOfSZwe12QGFrejkxZe1DMVDACMCbAsnO+NsZ5T9pGZtyZEnmtwzZSY37qCTXSpqWARY5FL83xIgwPrfMjqgmDWhy45novMbGd0YWIY8jcOjNOfqne6Lrr4lREEC8BiMUqNJISbAZ6sa5hz9I6RzIbWt7IgT311W00dBZ5RtCyW6Elx3km8fo352xU3YdWUuwB3n9Xk433BXGhb2/ZOWOcRlMVkCBFgEWJMksDtgYazgMPQiPa4kY9PaCx2Fxc3b+6IcDMWTERaSANuHwqMUNHUNN7R0rd020Li1v5+GraPUIA99DHQn+c44V9G0XZcfVDp9SOtSZxcrnQEp33Bnk5AA64C6U+7hlyXAmrRc91Bq0/hlCodfm1uKzG6ky1U7Arg3qrFQ6wyqxBOFscDg8inNuUpzbkHxQQt/+vMICxFOCDMwRgujNIzSMEThMZDEozcJPQmhK8F3JTCtOuPc4aec7So9VO70I2uR3BFA5iJk9insxTKTN8uMo7eMObOQMlvnFIPmDaTiKLk+J0mAAGuSOKYxifbwqyFjAbIUYWaZCnXZJTKTGyfr6PKQNtfoCuKyoubcwxaceu3t965qaB6IchEWwiwfZiDE7Ais/sSOwOqIC60h5uO6TRfefO/MY09DVi+yerU5M5EyR2kLIkMR0rnVtmKV1S834cxEkpqzh7N24LyMAIsAa5IEFI4AMhaqHalKpEiXp3f49Q6/1uY1Zwdc7pm/ffip+g3bRpMQEyAO2Ncu0UoC1hAlDFEwmIT+pNCbFHoSeEjqVUdc2B7jexnYnoCmYebzhrY7//i80TNPnTMjyx5UOUslPQvpcWYPLrJsxuWbD5ylSL7pnkiAAIssiUkSUDgCmFmGQrlYOlln98kNuDW0XJ9z4k8Wb+0KRVgYivEhCiIsDMbpDLBGaV6klYDrxlDQmwZWdzxlDG6P8dtjsHmUbY3C5lFu4yC1ZRQqNw8cctK5yOpH6lyFvViTPUNlL0baPJU9oLb7s0zuPbmIyWsOHAkQYE1argfOxO/umyJNPg5PtweRocCUXao2udXmguzCskuuuo0CGI2wYQp3ew4zGFgRFluCIQa7rkTvlTCY5PuTQv8E3QqrVzGhI8q3R4WtUWFbArZEYcuYsD0Jm4a5NV2x9hicdfkSR8mRMrFNjqnwIKTNFTMKxwMsdvdpyeMHmgQIsAiwdpCAHxmKDNllWfoCgz2IZKbjTzrnmRffiCYhweCuE/0jURoAx4tSzCjFZGg1QmFaTQRWdzzla++I8mlgQUsYNowwTWN8JweNvYntSWgaEtb2UH/82zvzfrQYKbMxtsTyzbieBAlrmLypf6DhaefvS4C1w3I90H/U58zERbLMXrXFq7P6Tzh58dvvfcUC0BwkaAgnuBjN94UicR7CNBvlRd2KgpEkHtgYTGD1qi/Bd8fx6IwJnTFhewzao0J7BNoi0BKDpoiwOQZ1vbHNEdgUEppGYP0Au2UUnn79i2MXXYLMXoUziKzeLJsXmYlJeKBfkDswiwBrf7ggPDvMyl7+KJXl3N1xT77geM4g0hVa8mcjdZ7JWZJbNHd55QZWtASjlBClOFwMCyDGQf9YlALoj8SwMSgCK+Nr70vwPQkBq1dxwMZgHLbHYGtUaItAaxRW90a3c7B2mNkUhqYINA6ym0KwaRTqOxIdFLz6eYM1cFiWPYg0OZqcUiTWw5JydCYe5Zbx8l67lFWmWuEun82Ussk8qzDvVnoT/+7/fNvMG5KT70gCBFh7sp6/w9eIyca4E9+OI1OLCp9kkux2eRLE680sNlve+YhtCskZtAMWxyGFfzczTD6NxS83FJqcwfc/Kg8lcG7zWJKPcdgMjLJChOEjNI66GqMhxGDFSkKVqF5BX1zojfHdE1C1DdMKo6olDFilCuOxYQzWh6AxJKwZgTUj0DAMjUOwYRQa+4VHX/lEXzgPmb3IUIS3C81elRlXvMFDbKgh9dQQy6juUhqYZZm+GxncSOsnVcRGDKeQziXZqkxYhgrzzkdcrzX1d8XPQJj1HZFoD9+WAOs7hNEezEGqE7LYPXQytr4fYGU4JZ4ozEG53p2lL1Cb3Evu//NgGBdjCNOc6LTioywfZYV01BWERN1KChNNGYMJDKzuOHTFoUMcEq3aYhhYmyOTgLV2DBpHoWEUVo/g0TAMtf38pjGoao9fefdjCtcMZPCoXWU7AyvNIEwrKT4+dZRgjZOov25OM8ySKimJz2sAACAASURBVAVKnBKBFRSBhY9yTC5pEGB9nTC/XtTfxbMEWD/sfGSAtaca1q4ugh3NGZy0bPVKx129XvrKk1d7uliC2uK1ZJf8/KLrt/WGMacYGIomQklapBWPacXykm41SsGwGNc+mPZe7Va9iqTUq+awsCkMG8eEDWOQAVbdCOAxCHUDwtph2BKDT9Z2n3zRLcgWRFbfRL7sfC6FnuKoiMyw+ZE00o9kUrgnZ/+k6txL1NuBfTJRGhNej7U2aexenj/shXSg/HUCrB94pvfSJNyjTztxYe9+gWWA5RVXJj7iNWksCM6e/8nyOgpgJMaMJmgKIM5DlOUjDIdpxXDSzuCOtErwono17mjPGIOtIrCaw0JzWNg4hkfGHlw9ItSNQO0wHg0jUN3LVHdR64bh75+tts1cgJylmD6iBfe1xzSwMKqC4tg1tiZUsJnUmCMjgYkVdSaQLlW+effC3KN5Ib/+7SVAgPUDX2o7uq4yzqz0LT1zb8/c4SfnJ3u+9kfp2329lST5tvBRYXHrnUXX3nbPUIzFFWMo7LGSgBVhuAjDjYkjHXWV8l7hnUHRGOyNQRfeFoSOKGyPYtcV9l6N0wqaxmBjCPuqMLBGsfdqtUirmhFYHYaKPrZ2GCp6qPpBYWVH/MwbfqsonIds4zW5MgSRlMeJXE6dW/zIGpw4ZJZgeqTeR9Kb0oTCJBIFmDlKj+CcocyQ4bfN/PoPfMF8+zU/pd+BAOsHvv72Clji9tbXE2rHZ8Wrc3fAEp3xVjf2ylvdcqtbYSkoKJ67prmNAlyDISFAQoBQkh6OJURasWMMN0rzmQzn8TgG7LpK+9qj0rbgOK02R6A5LDSNYWBtGMVj3WRaVQ9D7Sgs60qsiULlIL+yh64e5F+tbFH7j0TWnTYT0tbrDigXf5Qc5xkPVMohtYPeJNqPKR7tCvc7MyutwVl3J8kf+Cqa0gzaqw9PgPUDX2q7ANZudCtpf0o24c4vqQBpRWNHVElLUYoASK3tjPqWOnGLzv6C9LFAYc294ubbKYAoD0PxRIwTKIAYz8V4boxhxxg2RLOjND+SThgcSIKkW0nGYJcY0d4RxVFXW6M46iqtXmFUpbxXOwGrehiqhqFikF/Zz1YNw/IeZnkPUzHI14fg9Ot/gywlCnNQZSxRmdJHU1BlCqqNQbXRLw2N0Z8Zen1QGjpDUGfAj6uNKfe8JCgsNJsX2TzI7sFHG5bbhI3U8XNRgCK8xLKrouJGgPUDrxcCrB94Ar4psMY9O2lgSUZNavllFuFO7y9BKoOqAoU1LzNU1uyukRAF0BeOJAGXuBpNJobjsQjLiMAaV68G0gVk+uJCXxxnOEthoh1RnDCYibpqFXcGm8VQBgws0R5cNzq+P1gzAhKwVg0LFSPwRTe1YkhYOQSfdsQ/76I/bwkja5ncXKYwZUaJwoQHRphEsRS8MMI0Bkwrow6PNLYws6RWslL4FSa+yKnMMSMr+WSgT4izl+zBYNoZ/wNfM3ulkkyzFxNg/cAX367sGjEq0uRBmjytM6hxBHCBFz3uhIyM7ixrQG4LIqMP6fG50lGisOIaeFLjUrnFm2X2KC0+makIGQqUVm+Wya00FY4Pc77SnK+y5CnNuRpbgSUvkB+c45lxiG/WYbMOX3DkwpNjAsQEPspzeHBshGUme69S6tUAhXUrsdwV9CSgOz7uvWqPYGNwB/Uq47paNwprh1Peq/phqB4WqoaEShFSK4aE5QPw5YDwVR//eR/3eZ+wrJsNHnuue+6prpITXCUnOIIL9IWHKVxz5M7ZSO9HthkKx2xkLkXGYpl1hsIxU2kt01lmKLUBtb5YZypR6fxKrU/SwhSGIrUtoLEH5SaPzFiYZS5S2ny4orzdj8QUa5U9gB/XF6gtRTq7LxP5JVma2Oe1Z2ET0wwQ+9vXIcDaT4Glc5YoLZhTSJurtvulvu1Kiw/jyRrQOGZonKUykxcZcbt5pMmTmzwYbSavuOS8ekdQZw/oHX61tVBtLdRY8nEh9qN+dPaFV11x46+uuGnJlTctue/hx979+Kst3YMRFmLpQjEZYEU4dkdgiSX6hihhgII+XI9hErDEDOdJ3isp8KopAptEX/v6EPa1r0tHitYPQ82QUDXEi7TiyweFFUPCV4MYWF/0w2d9wqe9/Bc9fHkXV95Or9hGfdkSe3VV669f+O/Pbn342Atu//Hl95x4yV0Hn3lN3pFnqv1Ho9x5yDYD6X3IVILMpQrH7CzbTGQskdvKdK45KlupwhxU24rleo/C4DU5S3XWgFxXqLH4s8w+ZPZlWQNqR1BtC6jMHrmuQKbJUZs84sAxqOkgVdGb9r/ivPa3FT7NPg8B1n4KLGQo0LmKFRasDuD28RYP0uUprV5cR0HpQtpCqfEf0hWobQFH4RylqShLn6cyFpldxTqrF6lc2e45Pzr9/L888/JTS1974eW3X3v/05rG5qEYjgWNcjh+PcrhMKu4AHEOF+GLc7gMQ5QXorwQ4wQpjgGHMtB4hCg+REnudgwsqXpMdxKHiWL1Coe2483BjPdKimuXjMGNIqowrURfe8MIrB6G+iGoGYKqIQF7r4YwsJYP8iKw4HMMLPi0V/ikh/+sT/iwg/pve+LDDurDDuo/2+Lvb439d3vy/a3xtzaPvVCz/YH/1t689KMrnnr74kdf/cUfXyo96+qs0gXIWoZy5qCCQ5BrFrKU4mGbYcg7VGkuRcoirbHYZCnTav0aQ1BmKclyzECWEqT3yAw4mF5r8ZmcJRqjRxpqEVhivLuYUUCA9bVxud81Hwmw9l9gZZncSJcnx821fPrsEulHhdFtyZ2hsweQJldl9hjsfpWxUK7PMdg8KkPe3INPePjR5zc0d3X3x7r7Y1KJBRpwlQUKgAGgxWMoybCAdwApHj9OCzg9MEbjQHYJWFKYaITBjbzCNDdGCxNoxadpxWeAlaFVezpnMLUzKObiSIk4KdeVSKvVYuAV9l6JwFo1wK0Y4Jf1C18OgKhewae98HEPfNgL73VS73RR/+7jPhyEDwbgnW72je3JN7Yn3+7i3ukV3urmXtmW+HtLZOmW8NIt0aXNoWfW9Dxete3Z+q4/fdW06NdPaQ85HTnnorzDkWUmssySOw7SuA5RW2arTTO1plkK4wxkKkWOWchUjIx+lXOG1lWWZSxCmty0hoX1LJFWfil9JxMP8V2vTPL+u5QAAdYPDqyJCXHjEdVaZ1BuLtI6gzpXMa5QrM/XOv0aq0dpzNPbPVk6p9HpCc4+0lN88LELz3j48RfGYpBkgRWAAzwSNCQSgiBANMFGKZbiMJuSrBBneEbA/OJETiUYPs7wSVZIciA9jrMFsXqFI7DClBCmMKpCFIwmBSltUFKvehJ8d1KsHiMGXqWAFYFtYbEkQxiaxZExBiVa4cCrYRzXXovtQUyrykF+1QC3aoBb3s8t68fG4Oe9mFafdMNH3fBBD3w4DO8PwFvdzGvbqZe3xl/eGn+1g32zD5a2JJZupV5qZ5duY17cSr+4lX5hK/N8W/KF1uTTTZGnN4Wf2TD27IbQS02xlzeGX6juXXzfi3nHXSQPLFT5FyL7PGSem5V7JLLMRfY5soIjFO4jkHM2MvmRwYMsHl12qcKSTmDEOYzSHBGT8AdeLLiF5S4xRh783iQwObF5HFhKqxcpnUqrV2XzaRwBpM2VmwuRFnPqp+dcdPl1t/3fb/5Y29CEC7+IkGJ4EAAPlgOOBZbBR5AeAYHmOQlkSZZJMCwjAMXxNC9IkML6Fwcxih2LUxKwIjREaBw4OpaEEIVHJslZLM4n0YqTivNl1KsMrVpEWuFQhrFUnnPKGBwdp1X1IA65qhBptbKfXdbHL+vjv+wVPusRPu2Gj7vgo074bxe82c6+1cm+2yO81wfv9MAb3fBap/CvDjxe3g5/b4e/tXHPtXDPbmGf2sI8uZl+rg2e2sw+0UQ/sTHxxPr4c83UC03UX1cP/6OJerpu8MU1oQc+2LDw1idKzrk9/5SrUeBEVHgkcsxFrrnYC+aciezFyB5AuPnFhGQpKWmRON1/UGNQWpIEWD/wTWN3wFLZfJIliOR2a+FMl++gC66+8+9vfPjaux919A4yuE08JhJWlNKoYhguHo/zPA+AB4e9VTzLMwxHs1iv4qXB8hyNkQU8CAzLUzSbpBiG5Tkev1uMxsUYRFpBmIKxJIyKQyp3JRVr78FdcLiuBNORYFO+9ii0i+pVa1hoCeOColKYqOS9kmg1Htc+DNVDUJUBVj8rAeurXm4HYH3YBf/tgH+L493t/DvtwpvbhNe38f9q41/bBq9shZda4e8twostgEcbLG2DZ5rhsbXM002wdBs82Sz8qTH26LrEE030Q3UjjzSOPbox9vvVgw/W9T/eHL1n5bafPvrmL//8Rtmia2XBBSj7IGQOopxZWvc8ZN0hOIuENfzAyySjQBBg7fOZyEQejr+zWBgAJyTv7AGZFNYg3tXFDXW3ylKANA6903vcSWfVrd/a3h8eiGACseKQ1CWOxxCSFCuaprFCBTzLUDzHALACz3IszXEpVNEslaDiFEOzPMfyHEWzLCdIDGNYbC0mKS6aZKTqMRKwJPVqVCzON5wYby0hGoNcR4LtiHNSpfZMKENLRNgyhnMGpUjRTJKzWENGSCXipIFVMQirBoSV/fyKAX6XtPqgA/6zXfh3O//uNu6drfzbW4W3t8Nb7fD6VvhnK/yjBf7egpn1Ygu8sBmebcLj+S3wZBMej28Q/ryOfawZ/rIZfteY+MN6+pHN3ENN9G83Jn67MXH3mrEl9SMPro8+XDPw2483//Hz1hv/9mXBqVeh3INRzkEoZzZylCFHOi1RzMuR1owU15ZeP9hUTNWfkdq+Wt0yPKRrQAxP2Q+0kvSnHb8gp+4jBFj7dhY96UIxYr6LJRUnLWaiBXFdOmOqB5/CGkD6QpXVr3YEFDhaqkBt96osBTJ9tsnlzfPPKjvoyCeef2ksTnMA4TiVZDkBgEsrUxKkRELt7sDv8IQgCDz+BywnsJxA81g1o3mgWEgykGAhQQtxRvRepfsMSo52Ma491VqiPzGpz2BHHJdpz4SJtkSE5gjfNMZvCvNihjO/blRoDAkNw8LqEaF+mBfjGHDUlYSqFQP88n4h5brqEz7rg09EX/sHPfCfbvh3Fx7vdsI7HSBySnijXXitnX91q/DPbcI/RH3qxTb4Wys83wLPtMDTW4Snt8ATzXg81gR/2QR/3iQ8sgn+sFF4aJPw+438AxuE+9dz967j713H37Oe/7+17N1rmF9Vx+6pTd5Tk7ivJv77NcklX3Yd8+t/oCPPQ7NORZ6jkHMOcpQpsks1zqDaUqQwZGfpHWprvtLmQyYvMgTUphl6Q6lO49Eb3BpTntyWi+y5yJ4ns7qVFp/ajOt5TV067IefnABr315PErBwsovckmr1LmauBUVvbkDpmoH0bq2rTGUPaB3FSJ+vsnmQyqawFGjthdb84BHHn7rkvofKa9YkOVGZ4oR4MkHTSdHKY5OJyA4Y2sMfBQEEAXgeD5bDgxYHxWJgYVqxEGdwlAPuijreZ5AfZnAvnEE6E8ogAisVxyBIwGqLCbg+X0SYCKwNIX59CANrzSjfMIxpVT/M16UDr9LAgmX9wld9qZ3BT/qET3rxzuB/e+D9HnivG4+3O/F4qwPe3C68vl34Vzv/Srvw0jZs/b3YBi+0wbOtwtOt8FSL8FSL8ORmeHwzPNYMjzbh8cgm+OMmeGgTPLgRHtgAv1kP962He9fBPeK4ay3cuRbubIQ718HtDXBjNX1zdfKOeurOqvDty3oXP/Pl7Gv+qDliMfLOxxEStgBuoZgd0Ll8CkuBDMea+jXmMrWxRG8sNpoDWnOR2povAitPZiuQW90qk58Aa58jjwDruwAWLsU3GVh+fd5spC1AZp+5YDbSF+CgKlORwlhgySvW2DCtfnbhlf969+ONrV1JAZIcdicxQkqlAuAFgUubg3vIqEkvk4CFvVQTgIV1K26cVnFGdF2x/BjLi71wcGNUqc/gxLj27oQUdZWpfYy3BXGxdtEYbBrjU8agWJIBx7WP4Gqiq4egflCoGxKqB/nKQU7aHFzZzy/v577q47/o5z/t5T/pEz7ugQ96hP9i9Up4v5N/tytFq7c64I12/rV2/p/buJe38bsE1pOb4UmRVn8RgZVRr36/cRxY965LAev/1sFda+GORuH2Nfwtq9lbVvO3reFvqWdurInfVpu4u4F+YG3y3pUDN7y95rTf/rNo0Q3IdxxyzEE5c5GjVJlTpnWUKnQemSpPacDNE2V2L3L6kKNIZsf1XVUmr9rkTacx7tsL7EB/NwKsfXwFSKiSkmlTWX5S6qyuUJ9TprD6UJbNnD9T7/BrzEUmlx8pLIsWX7yqbv1onI8yOFQqYwbSvCCZfjzPsiydTMYjkbFJHNqzHzLqlUgrAatXoiU4UbeKMxCTfO1pYE3UraS49h4KJtAKt5bYHkvRqjUstIq+9s0hflNI2BQScA2ZEQHTalhYMwgNA0L9oFA7yNcMcFUDHN4c7GfL+7hlfazoveI+6+U/6eE+6uE+7OL/0yX8u5N/v5N/p5PDxmBKvcK0emUr/4824e9bhb+1Ci+0Cc+2Cs+08Fi32sI/0Sw8vlmQdCuRVjw2Bjfwv9sgZNSrX6+Fu9eCRKsljXD7Gn7JBripjr6uKn7jauaWRv76Ouqaiug1qyJXfNF/w/KhO8qH7lrRv+TTbec980XuOb9CrsNRzqE4sMtapjD79baA0RVUZnuRvRBl+5DLL7MV41RtQ0CtD6gNPqXRR0zCfatkEWDtY2BlpmdCTjL+E1miU1ZmzHe4ZyClTWPJNzu93tKDt2ztTYpBUpI3PU7j+IPRUFhyV/EgUAzN4cdSe397xqjxV6VoJSprknqFacXtZAmKtMIBoowwwgrDTMoYHKBwn0Gph3N3UsAR7Qlc/lgszpf2XoWhNQwtIdgcguZRATeVCMH6ETzWisXaRWDhgqK1A0LNAFfZz+4ArC962E97uI+7WQysbvY/Xdy/O9n3Ori3O9i32gXJGBTVK+HlNu4fbcLSNv6FFv75Vv6ZFv7pLdgSlGj1WDP/502CpFs9jGkFv18v/G49/HY93C/qVr9eC//XKNy1FpY0wh1rMLBuXcPcuoa5eQ1z4xr2utXsNav5a1bz1zbA1fX8jY1wXS19+bKRq78avqUict2XQ5e8vQkdcSEKnIRcByNbGTIWIrUVmRyyPC9y+ZGzJMsyQ2GcodKXqvXFSqNPbtqhjv53dbFlrrppf0KA9Z1cQzvQSmHxaJ1BpM1RmPJMLi9SWBaefPa7//kyyWDTLxqjBIBEkk0kWfGElhSrzJHn+WQymUjERGfWOIz25GxnYxDTaidLMBV1JQJLotUgzQ1QfB+N49p7KKE7KXQm+M4EtCeEbbEMsERUibTaMoaBtSkkbJQKyAxPNAYxreoGhJp+vrJ/XL1a0YvVqy96WKxedbMfd0vqFffvTv69Du7d7ezbHbxIq5QxiNWrrdzSNv5vbdwLLfxzEq1E3eqxZv6xZv7RZolWfMrXvgF+t0HAtFov3Lce7l4n/F+jsKSRX9KIvVe3N8CtDdz1NbGb1zC3rOOuW01fWctcVs9eVMOctyp5ST1cUMX9YhVzQQX7y0rmlyupX5bHL10eueCd1gUPvmU/9XrkPxoVztYE5qrcpcicl2UPZllLlaaZKsMslXGGwlSy847wtKfJ9/AFCbD2MbAmVsWU5k/cCHfLjblKY47GmqcxZ7/21gctW7s5AAqjCf+jKEo6SSaTPM9LMQrxeHxsbCzzlPSCvT1KgQuS9yqzLSgZg3hPUPRbpWmFu+DgwscMDNKTHO0Tdat2Ub1qiwlSawkpRnSLWJxvU2i8oKhUkqFBzBmsG4TaAajph6oBqOjHcQyi90pIRYr28p/2Ch918ZIx+D6mlfB2By/R6o12/vXteHPwla3sy23cS23si63c31qF57fsCKy/NAmPNgt/2ohpJapX/O/XCw+u53+zTrh/vXDvOmwM3rUG61Yp9aoBblnN37EWbmqgr6qOXVwRuayGvrIRrloHl66FC+rg3Bo4rxYubIQLVsM5lXDWSu68Vewvl0WvXj5yzhsN/pv+hA4+GTkCyOLVOEv1xmKTvlinL1MZcT0cnJxo8yN7QGp18T2s5APkTxBgfWfAwlFXOGlZYcFBVXq7W2fNX/iTsxvWbw5FMKhicYZjgWNYwA51HD/FMpQUVSXGH4zHJbAsS1EUy4qh63tJrB2AJRmDSQ7ijBjEMBlYo/QkYImuK6xbieoVNgbb43hsjYO0Myj1wmmKQFN4UkmGTPljKWcQZ+EMQuUAHqsGYMUALO+DZf3wZW8qEQenDXbhuPZMHIPot4I3OkCilei9YiX16sVWIa1ecZL36vHNwgT1Cscx/GEjjmMQ1SteUq/uwV52AaOqUcDGYCPc2gA3NfA3ruZuaGCub+CuWwNX1cPFtfwFtcIFdbC4SjivHn5eB4sq4fSVcGYVnFUNZ62CC2pg0Wcji1cMX1k7cspLXxgWXYPyDlU65+p1ZWYtrsOlNuKizLiuvCNAgLXPMUqAtY+BJbcFxXpVblyjCldcCGhsbqSxq02u3z7054HRGI5NZwSeE7NmMH14ENjxMe6rkpxWe8mn9MuF9D+Ox7uNjJCOuuLGdwZjLI5jiDIQZgA3wqFwG2cpiGGQhkEa15DpSfCdca4jxm6P8e1Rri3CY3swgZnVEhE2jbFNEdgo9hlcF4Z1Y7A2DGtCUC+m4ODifBlUDeGyopWjsGIQlg/AV30YVVLa4EfdGFUf9cP73Tje6o124Y3t8GYHHq93wqvb4V/tgI3BVvbFzQxOtdnCLd0Kz7Xwz7TAU1vwzuDjm3F0qORuf1ik1UOiMfjgOvjNOuG+tfDrtdgYHHddYWMQblkNN62GG+r46+v5a+v4q+qEK2r5S2uFi2rhwlo4vwZ+Xg2La+Bn1XB2FZxVicn10wrhzAo4o0r4SRX9k1Vji1cOnfPehllX/Qk5j8wyzlar/RZrsc7sw1Fadh8yuVX5s4iGtW+ZRYC1j4GFtAX6/JmSbmXMLUFys8qUWxiY85cnn+/pH+EAxsJxDgeBAk2zODtZmAwsgZ3gXx9XstIg2tP/JV7xIEwEFjWZVhKwwpOB1ROh+hKsBCycghNjuxJ8DwW9DHQlcSnR1jAnhVy1RATcGDUC6yOAaRXGtGocS9FKqsRQOZSOZRfdVaLHipeyBT/txhnOqSTnbnivA97rgvd74d+98G4PvNElcQr+0cqmxlbu5e3wSgf8rVV4YmNSDBOVAq8ETCvRe/WnJqxbiWGi8MAGAdNqHf/rtQI2BtNRV7c3wm1r4OYGTKsbG+D6euHaOri2Dq6qhStq4dJauLgGLqqFX1TDedWYWedUCz/DwBLOrOAXVcKpFXByJZxYISxYSZ1cSS2uiJz+j9WH3vK0quxUZCi25s5ByGJ0BVUusUeZq0QsUrqPr7F9i4Cp9W4EWPv4YtK6ShRWvD2UZXLL9NkGR1Hx7CNef/vDBJ2KUZBoBQAsy+LAcwlYqZQbaaswsyH4DYGV1q7wW0vAwmVk+Am6FQcSrSJsSr2SGuGMUEJYgJAAwywMUNAV4zqjbFccepLQGmLaxtitUexu3xaHtihsDvEbR1mxjTMOZ8cBoqP86hGufpivHmJrRnBfidpRqBkRdashwCX6RN1KsgQl9erTHrGMTA+834mD2t/qAClV8F9t/KvbU9j6VzvgncEt7Iutwj/acWj7k5uopzbzTzZzTzQLUpioFMfwyCYcyvD7jSDtDP5mHYjqFd4ZlBztd6zBtMLG4Gq4sR5uWA1X18PVaVpdXgOXVcPF1cJF1cIvq/gLqoTzq4Rzq/hzKvmzK7mzKtifVnA/qRROroSFlXDMCuGYFcJPauDsquTZH22be/fzyiPORI4yXOlBX6i3BbOsAWTxEWDtWyASYO1jYGWZcck9mbHQ6ArqbIXBWYe//f6ncdE3FYnGE4mUc51lRfUKK0x8OiJUotU+0LBS6hXPcwKfcrRPoJXUcR6729O0kvoMjlDCCCX0xbieGNsTY/uTwiAF/TSufbw1RPcz0ENDRwxaw8LmUa55lNsc4reITQY3iBHt60aFten2qGtCUD3IVw/yVQN4W3BVH1/ew0rdJZb1wrJe+LJX+KKH/6SL+6iD+7BD+KBT+M924f3OlA9LDBMVXtsGr22Dl9tSsVdLt7DPNtFPb6Ke2cw+1zKBVpJuhX3tKVo9kNkZHDcGBey6ahSwbrVGwJbgauGG1XBdvXBVPVxej3WrDK0uFml1YSV3QRV3XiX/80ruZ5XsWRXMGRX0TyuZUyv4kyqEUyrhxFVwxDI4coVwTCV9woqh0z/ZcuTDr6GyEzWB+UjrVpsDKmtQZtrHV9e+XfxT8d0IsPbxJSVVB1WaCnW2IpOz6NG/voCrUyW5eILBcOIhHA6Ldh1Ps/iRyQbgTrpVJrQhcyL+ztccxtWrNLAk3SrJ4Sp9mFZSCo5IqzCDdwZHacC0SsJwAkIc9rv3xfiuMINHjOtJYA2rZZhqGaXbQnxrWEiFtouBV1vGhE0hbsMIt26IaRxkG/rp+n6qro9uGMbR7bWDfHU/W93HVfdxVQNQPQjLOik8utkvO+lPt9Mfb0t+1E59uJ3+oJ15fxv1bhv1VlvyzTb67W04AuutDniphflbM710C/vyVpyO8/Qm6slN1LObhSebhZR6NTmUQYpj+O16uG8df2+jcE8jf9cafkkjj4PaRdeVpFtdXy9cXy9cXc9fXg+X1sNldXBprXBJDX9xNXdRFX9hJfeLSva8KvacKu7sSvbMSvanlczplcyplezJFcyJy5M/LocfV8Ix5XDoCuHgVdwh5dH5X/T8fGV/2Z3PoqLjkOOgLMsMrbVUYyaBo/t4fRFg7WOB6lzF2isX9AAAIABJREFUakuR1opTYe+460FWgEgUh1nhoi8AgiAwDCPm2WBrkGJwBZhdDok76ZIwmdowqTCI3QFrIq14EViS30pMwcGJzbjclRTRLrquJFpJwBpOYGD1RtmBhDBE4SapONU5ynVG+c4o30vhjByphgxuMBGGzSNC0xC3aYhe1xev3RZa2dz/2drOD+ra3q5ser18/asrNvxr+cZ/Lt/4annTGxUt79a2/3tN74cb+pe1R1Z0xJZ3JpZ3Jr7cLo5O+sseFsOri8E6Vxf7n+3MO63x1zZH/9kUfbcHXtkGoj2Ioxme28w93cThYFFsDPLYHmwW/tQkPLKJl9ztD64Tw0TXY+8VplUjt6SB+9UaiVaC5Lq6YbXkuuKvxqjiL62HS+qEi2v5i2q4X1azkm51biUj0WpRFfuTKu6USvbkKv6kSubUGvaE5ZHjv0ouLOeOWQFHroTDq+CQSuGw8sSxXwyd+VFH3lWPIPdxKPfQLKNfZ8b9paeiIrPffmYCrH18PSGVS2f3aSyFF191i1SviuWwnwoEGBkaFgOscGIgz+MYUYrZMUY0A6RvAywpKmIisKT0ZqmOaAZYYlx7Sr0aTvJSV9SRJPSF2c4Q1RNh+xPQOcau6xhdub790ZfevefRv1125+/OuuL20y668YzLbj376rsWX3fPGZfcctqFNyw854qjT7/wkJPOnX38WcVHL/IfeZr/qEWB+Wf4jzm7eMHimQsvOOiUSw5ddOURZ199/C9vXnjJLT++7I6Fl91x/KV4nHDFXSdeffdFDzx3y/Pv/uWThlcb+95rif67Lf7vtvh7W+mn1wy/uJn5+1Z4fjP79Cb62Wb2uS3w1Gb+iSb+L03cX5qEPzdhY/DhjdxDG/jfb+RTYaLr+HvXchlg3dnA37ZauLUBG4M3irrVtXX8NbXCVXXCJXXcxfXcRXXsL2uZC2voC6qY86u5c6tYbAZWcT+t4k+tEn5cBQurhAVVwvGV/Cl13AnlkeNWRI5fmThmGTV/GXdMORxRDsdWw6z/hk5aHjvr4079OUuQ71hk9BnMPhWxCvdpgR0CrH0JLIXFo3f49Xa32pSzrXNoZCye0a1YmsExVnhzMMnhelWpcnoZUy9zImlPOwJL4MTaVxNzdHaMe5B+hU9n4UjudskSxMZg2mk1vi1IQ4iGUbGaKC53lYCBOHy8cs1vH33++NPPc884vHDmkcFDji+cPd/mm2fzzdPml8lsPmQuktl8WXY/svqQwS234zpfyFwkDp9YmmJiv/hiZC1OtYGwliFbCS574Ayi7BKUXYqcxbjmlKsM5c5E+XOVgSONs0/UzzlRM/ME/Zwf5Rx9lu+Uiy9/7K1HPtv0Zgv1egu9dH34pab4S5uSz6yLPrsh+eSG5BMb6Mc2MI+uZx9Zxz68lnloHZsJE8WhDGv5X63hRNcVf/Ma4cYG/sYG/voG4brVOI7hmlruqjru0jrmkjrm4loMrF/UsOfVMIur2XOq+bOq2EVV7OmV3CmV2Gl1YoVwfCUsqOAXrkyeUB45sSpxYg27oJydv4ybvxwO+wJmfcIdVwtzPgqd8NnQya83ohk/QY5ZWgvRsPbl+iIlkvexNBUWXG1da8l59qVXKB4SDM0JrGQAjgMKYwsrWWJ0FCbXTvadSCKBE/i0A57nxEAtnqHjAo+r+Ak8jc9xrjTPA46SYDissvFivBXFQTTJJFkhweIeEyMUF+ZwI69RGmICRDjY2hde29K7fttgeUPrI8+8duKii0x5M2QGt8YenJi8PaEfMhbUxHyjzPkOtkPqcTHfe2LQv3SexpnUJn68/zsOCpeGVaqZN+Fox+GXyOJDFr+xbMFxF9155/MfPP3llkc/3/LosvanakaeX5d4qjH510bq8UbmD/XUg+vg7jXc/zUK92yAO9bxt64VblkPN64XbtggXLuWvaI+cd064YZ1cHUtc00de20te2UVfdHK2C9Wxi+q5X+5GhbXcmdVsWfV8mdUs2dUs4uqmJ9WcKetglNWwknSKGd+tDJ+TEXsyAr6qHI4bBnMWwYHLYd5y+GgZdwhy7lDP4uc8Elf0V3/QHlHyp0zZRbcfhWZ8Xah1FMSbyJPVjom9uXe4Sny4w4SIBrWvmSWwuLW292zD51fu2YdI1agEoDleIrlkmlgpeJFJVpJxNklsMSqoZhcNJWg45FUZCmwIOBqopnBCSzDpexKmsel/igePy0dYyyGVARwsdAVDZteeP39J//x5l2/e/xHZ16ocfhwr0MrVgGyjF6ZwSM3BZSWwA7Xxw/7o9gJwm1w+fTZQbnFg5ONzT5kLUHmEuSaZzvinGOveuj8379xyeMf3vRS9e8/6/hrffSR+vjvGhL31Ybvqh67Zy19XzMs2chfvzpxQyN9TQN9WW3s8rrk5bX0pZXJy6vpy6vpa1bD1avh0jo4v5o7exW7aBV9RjX3s3qQaIV3Biu4n6wUJGD9uBxOKucWrkweXZk4ooI5vBwOXg5zl8PsFTBnGTt3OVv2OX1wOX/o56GSx79C885EOfOQFYdiZYCVZQ0QYH2bi4oAax8DS2nMWXzhZZEkE2Mo0VXO8gLN8dTeACtFMI7jqGQ8o2fFY5FoZAw/IrrA4vFoPB7lMRYxoYbHorTYDocBXIovwcNwlK1o2Hjn/X+87OYlpyy+yH/QUQprntpeZMorlpsL1XY/1geNRXKTR2XFTUZV1qDctOPN/9tcW/vkd2XGQoXVq7T5smw+hbNElT9HkTcXZc9CeQej3ENQwREo9zCUc5h8xqn+0284/NLfzr/6oRuWfvFkTd8z60KP1I3cvaLzzvKeexuTd65O3tbI3rQG7wxeWQeX18FltThA9OeVzDk17OIaOKcWJ+KcWw8/q4SfLmfPXsWfVcGfsYo7rYI9uUJYWCEsqIAFFbCwnF2wkjqyijqkgj6kHOatwLTCYzk7ZwXr+zR+UAXM/jx01FtNljNvR3mHIXvpDsDaWSxEw9pZJrt7hABrHwNLYch+6NEnWYBQPCoAzwnYguMFem+BJfaSkNQxXBeZoWg6mU6QpimawWYgdttzPCXVJhUbDrIAvSPxR5/6+2HHnewtPdhdcpDB5UFaZ5Ypz5RXrLYXIY0L6XPVdq/Un1Vjx+2O5SZfltGrMPtxb+TJ1soP/qPKHlA4cAoxMhYhkwc7zsw+pPcgeykyBfCwz0COmShXbHtjLUPmoK7sOGXpcYZ5py369TNPVHY/tzZ8//Kuu8uH7qqK3VXP31DFXFnBXVkDl1TALyqEi9bBz9fC2XVwppiC87NqWFwNiyvhrHI4c6Vw+ir+lFXcwgp+QQV3TCUeC8rZY1eyh1XSB1eyB69MAWvWSphVzs4oZ7xfJEvK+eAXY0d/1F1821Oo4EjknIkjSEWTMGUVirWGJgqWAGuiNL7+nABrHwMr3z9nVd1a3KZU7P5AswkAlmETewssmk6lOjMMw7K4lB/HCYkEJZXfo3nspQrHaFqASJJv6ehr2Nh2xfW3W3N8OnuBwYHL9ZpcuEi8yoazr5XWIoXFnWUqUFg8SqtXbi7CXe+xMYg1LGnByAwepHN//eXy/T+LzAGZrTjLXoLrt9iDCmeJNLR5sxTOoMIZVDqDSKxGLbf7kcVjKZyN02KMRcg5AxcINZVp5i466Y5nlryz8VcftN+/KnJnefTWlfTtdXBtBXtFtbC4gl5UxZxdzZ9TgxMGT1/Bn7ESzq2DReWAXVer4Mer+BMquGMr2PlV7FEV7NErufkruYMr6bmVzEHlMHcFzFoJZSuFmSvZ4ArKt1LI+4ryLosf8vnA/Cc+RcULkXNWljWQUbKkwPcs86Q6WQRYe35dEWDtY2DNOnTBcBRzhMUaEM/yFG4V+I1MwniCSibFAjTp1jgC4IYRkgercyD0VXndM0tfPe/iay25PpPDo7MVqkz5Gps7y5CTpc/TO/xI7ZIZC3HHMKs/y+RWmL0aB26LgFQ5OD7IhE1C/KA9qHUUa+wl2CrcnzQsmcWvsJfK7TNktmJk9iNDETLiSvkqux/p85EuR2kq1NjcSmMeLt1jyVca85DaoTQVYiLbgrq8eTLnHGSZg3KOQM6jZLPPmX3pwyc/8N7FLzXc9lnfLZ8P3F4Zv6qGvrCKOr+COr+aO78GFlfBopVwWjmcugpOXgU/qhDTBiv4YyvYY1Yx81cxR5Xzh6+EuZXMnEpOAtbMcihbyZWUJ/0rkt5KcH1JFa5kZn8x8uPX1qKDz0bZcwmw9uFFRYC1j4FVNu+YGIubm9Kp/bu0gzwVxrBLp3tqozAT2SCdRJO4eyAHEE+w0QQrNg3EZddffefjq2+668eLzi30z0Uau9KYY80PKo15EqeMuSU6F268qrR6DdllKqtfbsKqk8zgVpjxudzk0zqK5SaP0oJBhvmlL0S6AqQvxArXfgYsbP2ZMbbUrpkaZynuNmR0I0OBJXeG2lIkoUqhc6lNOXpznlKfrXEEVPZipbVEbg5mmUqRsRSZZymch6gLjsbkyp2Pso9EM08vPnfJj5c8d9UrVTd90nlz+diNqyKXfjV6/lehX1TS51QLP1nF/agCTvh/7L0HeBzndf57ZmZ7b1gA2ysAEmCn2FVt2Y4T23KTVVySm+s4LpLtxE2OY/9txyV/J05xVaPYwC5SEsWKtlh0oncQhQRR2ESRRNs6s3Pv+WZ3uWyyLBEkLULPPGsYJJbY2Znfvud87/eeGv6Bav7+Kv6+qsT9lfH7A9H7ArE1FfyySn5hDVtYzS0KEIUVSBRWsv6KGX8wagmw5kAiu5LNK514aFcfrHwCcpcyhuRCoVAYCvGzmed5TmFlno23/noOWDcZWJ7590xEMHJhOhYh40vjuETIx29QEqad7thoTwNLGDgRiRNaxXDufJzna492fubz/zh/6b16a77C4JQbnZTcLNbYUUnJcyhFrsKcR2scoLBQKgejcaFHQesGhUOi90v0fpygp/eLdT5a7WY0SVQRfrlw2pjBJzX4xLo7rumevNs1XkrjprX464m0bqxqVXZGYZHpcAuURJUjUeUotaiwKI2b0heITYWMNp9S5kl0hTJtIUjcMtNCUPjk1mVgKgLjPLAsAvN8UdHDklVP3v/9Tf/8+uB3Ks78w+Hxvys7/0TV1EcCoQ+i94q/v4a/r5q/L8g/EOAeKo89WMGuLheAlbgKWL7yybwa1nAkklPL68rjnpLpVdu64Z7H54D11gD6c/90Dlg3GVjewhVR0v8WbA1C0/2tgUWMWhjeIAxGvTgVEuakXpiKToX54+Nv7jsY9M5fzsizpFqLRIczxCRaR+rx8kT1jPfeS/J5yaPWz1x16DL+9E7SUxm//7VvCirBqw4ycdaV+YiA1uWDfh7o5lHaeYw2X6LOl6oxVE+q9ko1+AxojzCQw+gAkxcXGfVLIO8DRZ//0eeeLfv6waF/KDvzRPnFT9VwDwfYByv5eyv5h2uxNry/lF1bgsBaXsEvDCaKgtyicn5hGV9UxhaURz2lk+5AOCeQ0JVzxiBvO3hp7a4BWPk5yF2a2cACreeqBpaAYHxpZIzuW56Ea0/LXfedOWDdzLdcpHP8ucASPApx8p+gsGIJfiIUGzx5evveg196+nsak0uqzgVZlsbsFamRVuS4zCnhNk5d6Jkwei8A6ypIvfWLxahPBFY+6BHTOMBG45WqvTK1W6Z2yTQOqQbTX0U6G6O3UQYLGBxMTiFkLcB1xuyF4FglWf3Y/K/+z189V/fRvWOfqeE/HOTXlSTuLedXlXLrAvx9VfyqMgTWgkqusJJdUM4vKOXnlycKiKRyByLZlbymLKEL8pYDF9fsHIRVn58DVurKvDk32hywbs55FN6VdwAsYecz2a+TdCpEOb62sfVvHnk81zVfY3KBxCjXuSRaB8hzsHFOJh5e7yK4BlVXKKlr//RmvvDr/T435/mJdzRJ59S/4k156P2gJ4cuPyWs8snfSf59idYl1aSPpCxl9A6GDJRP6iydA/ROSu/CzUamfPR2+T4Ai590fW3D4wcmHilLPFSGJeGSsvg9VTwe5fyycr4oyM0LsoXlfFEpX1DG+ys4d1nIURkzBRLKMk4TSOTuv7BmZz+snAPWzbkMUm+9ew5YN/OEvgNgoUWL51jigeCI/306yq3fvEOhtwKlkmisSpOXUdlJy9yttRSltstc+2tfi6S3/s61z3AnfkcIxc/EdGqXTwpV+hSt9PNA7xcS9NHPkT60SVQJT5LeVET2CbmZLLc0yyU32kUaXFoFrQ+yl4P9YVj+xcd3jX/iSPThCv6hOn5xgFtSwxdWxJeV4y4cXBYMxueVI618Zby7IuEoj1gr44YALyuNq8rZnP3n1+7sg1WfnVNYadbclC/mgHUz79J3ACyhJZ+Kj0laFv7wwiapJkdlcmKoVnYeyCygdEiMeSC1CAriprz3fyFPgjO0yRhtNDRcPpLbFRFbyUpQh5O1JDqbVGshzT6h34dT44mkSv345X2OfmSWIofR29RZLpXRrtJZZXoPmBZAzhpY/LkvHTz/qZLQQ0eia4L8wgC7uBaFFfatKhJ5wbg3yPoqeG857yznbQHeUhHNDsbUFZy4JKYoj2a/fnbtzm5Yg6uEcz2sm3ilzQHrNgNL2BWYQA9EIsolomQn4HMbd6jNGKoFIqPCnCfLKgCFXWEukmUV/PnASt7wN/GiuZVPRQjlovTCkQEsHEp0tYQUad0SLXaphKWJK0o/Pe64xmcjPyXCpCpcOdXaFklNPkaeJZIZVdocXY5flFsEOffA8s9+pfT8p0pm7js8s7qCXVbFL6pOLAiyC8q5wgrOG4w5g3FXBW8v560BPruSN5ZFDJUxeYBlSqKyimj266fX7uqENY9B7uI5YN3EC2YOWLcfWLF4KMFzMTYe5RLheCLC8c9v2glSg8LglOldoLTicr7WzxjmgQazXCh9mkHXfoEvJ7NRjfKESIxULZn+kWtfuHD/X/v92/Yd3JFzzSHAiyFrasLKWnqhkBR9yQ4XqichAcLoBqMbDPhUwnAQqcalULuUKpdC5aYVbrHao9C51Hq7TJsLmmz8y9alsPzTnzsw8tHSiftLQ2sD8bV1/NLy6MLy2IJyLj/Auqpi9uq4PUBoFeBNQV5TGlEHYpIAR5dGpYGI+cCptbvaYM2jc8C6ibSai5dJ3orCLKbURKarP7fJGfe+nfOOJWHRPYKtQXC6s+kpOEKgFUnyI9GjyXiZRIKdmprANlaCE2yiYZZ/cctusRpbKgpzHsgtsqwCiaEAFE5Z9vx3CKxkqz5Nqyu2hqRe2k0BVuY/IXyNJzl1bv80+66kLQoiodmU1EcZvE7RykGAhY8inYv8fdLeMpBYrnRwTRJYaIOQqV0KtUOpQmZJ1V6Ryi1WObE9r7dTRjtY8sC/Bu79/OMHTv512cTa0pmVJdH7avnFpdEllSiv8gKsMxi1VcVsFXxOBW8M8toqXlYallXGxBUsXRqVB6I5B06t2d0Gax8F60L8/cleQpSEGo9Yjb8DKXKxVk2Vq0kVKQCaSEWXRINeB3L2rvt+/emTmXpn3zt/865TWFfdD8K9hDeDzgs6D6hdoPHS+jzcEWJAt7TEUCDR+0HloTQ44Fdqyhd2ruEWNrUdNA5ZToHcnA8qu0jvEekcvsJlKW87GkFZDBvNDG5PJjFk2kQFfmGyFclRjnL8C5t3SLUWkc4hlDBCm/ldjD6f1cv9SkKRBThKWIbT2kBjBa0DNZERhSHo0Emf8RZ4SWmGj0JiBBqpZFZKbpPpvAqjDw2iGTlc1739EFuCiSkVRpxcQyTvKeH75UIy/a8j4zRuidYl1tglGrdYW0DGNXtA78SRgjkLYflnnjww/uChS6sr2DXliXtK2SWVfGFlIj/A+gJxV2XEVhm3lyOwtEFeWcOLysOiyqi4PCEqZVWBePbrp1ftbof7HsNsQoMLdB6RMQ9ppXDoNF6F0i7LddNZVkaXIzZYINsOZheYXPivm12Q5ZZqXCqlXaV2K/VukckLBjyHaVGZ0piCrey9A6Prvr9XffNuBBZ+cBEXonAuknWHwsaY8iTZhbhSrvZRunxKlw9KNyjdUkMeiTFAszUorKCy4/ZahQWvIZK3SWmcIr1HkV0gM3muBtbleL5rAkIzrO3og+c5kiTDx1l+/eYdEp2FfPa6QZ+sca565+68/0vIJQDLYKMNTsboEpncjNFFG9ygc4DGDmo7rXWhc1IjPHqw2tXgIwnk8kj0foXBL9f7ZDqvlOQLz2omOm4F11oJ8gpBWwS6PNC7aIMHzEWw7LEn95++7/DkqkBidRkCa1GAz6/k/RVxdyDmqozYA3FbGW8u45WVvLSKpwJhJpgElroCgbXy5U647wmwLwKdE3c+qT2U2itWujUqj1RhB20OmCxSk02qt4IuF7QW2uhVWBfgidLaxSoHQk1uFSksjNYuMXsposUEUSlU95nX8J13McwWRu9GYKU/4dPAEphF8n9RZFFqr8RQIDXOE+nyUJyT7XiM1qkw58mz/DgXx+CkNA5plkdq8on0blrjEMLwxBr7XQcswUaf7H+jjzzZNSNf4MnROimNE3QuidEnNc8T6X0kxC7jUZdH6/PI1j8fcXt6aTXuKAIlbsye1VtRABbRWYXUDYC1IpBYVZZYWhpfUInA8lawrkDMHghbAzFLGW8q4+UVPFN5BbAEhZUElmMZ2fOUJzHMp01FoJvHqPNwWTPLC9leidGr0HtlOq9M49PI89WyPLXaL9d45HqfMjtfZfSLVQ6xwi7Ruii9I62zhJ7dbJ+cWT3z7/jJ54CVrBcYkw9LPJVTZMRVORRTMrxn5Aav2uyXG9y0xibWWmkN7jEW6Wwyk4vRWhmtVWby4B/p3SCziNS2uwxYXkabnzr8GUUrqV/0bpGedGFILAStxs2AoHFf7/CSKGE/rfHRGh+j84oNfqkpP7UqOlvYuh6wMClQUFhPHDh975HJFYHEylJuaSlXWMn7KxOu8rg9ELfiPudYThmvL+UlZTxVEacCISYYYSpYUWlMVRnL2j++Yg8pCY15lMqBLUhTEViWgG0Z5CwFzyrwLQfvErAQk72pSGxcqFIuUInzVRKPROJAXmudEr1XafApdV6Z1o3AMmJhKNJhD06mxkL47XcG3zEg7rQfnANWElhCSpywz4tWOymVQ2rI09mKGGWOSG1mVFnKLIencHnRivsLlqxxFy5fsPJBd+E9joKlOZ6FjMpqsM5XmvxKo+uuBNY8hmzcI+RCrwDZdG0TzK5yvU+o8iQaN35Hj0S4+iCJUdjlMfgRZ1ofY8gHjTflO5tVYOVKtA6xdj4qLG0e6ARgLYSlTzy+/9S6wxPLA9yKMm5xCVsQ4D0B3hFI2IJsbjCaXclmlSW0pby4PAEVMahMAospiynSwLr/MbAsQAIa88A8HxY8CA98ElY/Ag99Bt7/Cfjgp+CBj8OSD4BnDW5pNN0jNixX6RbojUVS4zzM0lE6JBq3Qu/Fj0Oy/5HRoXEf1zfV+JEABjSX3WlMmdXfZw5YSWCBDhtSIr0HyNxmRusElQ0kBkOud8mq+z73/37lN89taOkemIzyUR6P0xdwiHOE55/d/LI21w+MAaQ56qy7rYflJai6DrDkpjyF0SfTeyRqp0iJTRnUBXoPo3XS1z9cgKntDrKU4WZMeWJzASJsdrdnu8TaXAw4RGDNvwpYn9l/Zu3hqaWBxLKyRFEJl5ekVSInyGUFY8ZAzFjKqUt5piIBlVGonKaqQnQgxpRFFJUx04Hx5Xvb4f5HIXceaGxgzIe8tZav/uCBbYfW7apYd7BhyeGae0rqVu0pLfz91tzv/6fkyW/Amk+D9z7IWsjkLpZbl2DghAbDYPG06BxgRDwJtFIrEVi4iDEHrFm+Pm7/p8G1rUphIQkUFlDZpEavMtsv07topUWd7XXNW/rilp0NLe2XQiFh7S/McWESSUwSr3B21m9f3Koxe7XmPENuoUx3t/WwhJIQcxGEzca43kdW30CSJVJalUaXyuCSaWxiZa5cZZeTJrdQSl/1KDN5GD22AlW582RZefhpobQyxrflJnkXF+2NgbXk8c/sP7P6yNTiALe4PFFYynkCvLWSzwnypipWH4xoysPqkpj8CEdVxCEYhWASWFR5RB5MAeuBR8FaiGt/Bj84lyue/uGy/TUFB466yloMFc3G6hZbVZO3sik/UJ+/L2D54zbDD/4D1n0Q8pbjPDRNgVw3X6TLA5MbzB4woqRSqxxahUOtRHIJmmtOYd1+pryL6+9P//I3ApYqdx6lwRBhmcEBUqPB4v/G937af/JsmMVQKpbnw2yE5Tk8Elw4zrI8SelL8OuL90rVuZTcLNW4GGVO3vwrbQ3v8VVCr5BdI5SBSfeQ1iHV4v6YvAUrP/rpL3ztG//y7Wf+7Vvf++m3vvOTb33vp1//3o+f/t6Pv47HjzIef/xP//JvX/nWD7/+zE+/8YNffvILTzmKVtNaJ2nh/+n39F1cMDcG1tIksBZVcgvLufwy1klolVXF66o4dSCiKJtRHolLj7AQiEMwDMFJqJ6GyghVHpIHI4aDY8v3tgkKS5qdJ7MtB/+9km/+dP7ho5bDLYbKHmldj7i5X9rULa5tVtQcNTe0OGqa80ur5u/eLfny05C/CoyF4qyFtGEeGlmzEVgSrUujRGApVfg1Ass4VxLOrgKf1Yvv3T251inWu9GVo7MZrL6vfPOZaGpYFsez5IhxPB7CDFQOB28hyF7YsEOutYqVuTKtW6q1vQNg4ZAJYmsgo73uXFsDqLEDJTZ4QZqDj2qHxOhTZOWDJEeTXcCorCAz2XyLFq168A/rt0aSoWB8PJE8BFts2qQmnD3hwyBO6D9NpihOsfzgqUuM1ioxuGidfZaZdWNgLX/yE6+NrTw8Na8sPq+My69IWCsSWZW8vopXVXHyyrC0YkZeEpeUclDJQk0UqqeomhkqGKUFZknNAAAgAElEQVQrwpeB9eCjYCski3pFYFuj+e5/5h1sspd1G4L9ktoBaByE5n5o7WXaukUtbcrGFn1dva2uIm//XuM3vgeuJWBZqMpfB1k+yEKzvlTnVijtCqVdgsGwLjC6KZNnTmG9u9v+L5Z3lNoOsmxllluiyf3hz/4zzvOXZuJkkGkiTauEEH1MdihjjlUiCSzMulRaBWC9g6b7XwSwaK1LavJjy5wMUMCqTe0ApZVS5JodhcBosl3zvvSN7+589eC5ifBkOB5LTfHBc5iRSZ9OVSVjsJM2WuGbM1EWycXzTd3HRZqc5H5AYvV+Fxrqra/ntwLWx/eNLT88mV8WKyjn/AE+uyJhCCY0QV5RxUoqQ+LykKw0Li7jIJgCVu0UVRWhK0LyqpDp4MjyvS3w4KNgnS/WOKWaQrCuU3/3v/wHW2xlx4zBE7LaYerocWgZgvYB6OyBjm6mpUPa0qjqqMmqObRg32vZ3/sRLHsIBwVl50F2Pk45w467Q6LGxHpK8OKiHfetX+B77U/vuqb7lZf+5c0oYr1bbfZLtZb/+eOmCM9fnI6wxNjJ8Qis5JTmRJQnB/7fBMvxCUFhXQaW5hqn+9soCf8igCXoKdIUd8iysBeOFlCNQ6630XL90tUP/ua5DZci8VA8ESUcjwuzqvHs4eTETDwJEWBXPyb4aDQeJ6Nl/+v3G2ilSazNpTWW26aw7nnykVcRWP7ymL+M9QR4cyChreLllbw4yDKBsKgiJC6JIbCqOKiNQvUElQKWIpgBLMd8QC9+IVjXyp/5L/fhFks5AktVPSyuG4bm49A2AB19ArBErU3S7nppc2leT2NRyUHtt5+B+SvAUkgbheEgLjCgG4sYssj+AbS/v9eQ9NavaA5Y2NYV6VwKow/E+h//4jeXwqigLk6FJianU3IgOVkepy6nmMUn2EQCb0WhJBQprVKdW/reBRZZP3WA0pasCuUWuTlfZvKojNb5i5YdLg+G4skaeWJm+sLkRJxn46SUTiXnpMktOP45jKlIpA+ENo4y4/gwy6996G8YpVlmsDHa21gSfu6RV8eWHp7wlcZ9pZyrgjeUs8pgArc3B2JUIESVzxBgxaEqLgCLrplggiE6MK0ITpsODi9/pQkeehTchWB004YicKxjfvBflrKWrMpj2qrjquphScMJaBmEjn7o6IF2VFhMawu010p6apn2sqyjJUWvv2L+5nfAvgDIdHtcFjQ5IcuJj2SzDmnzzQHrLmI2Kixsw+tclMJaeM+D9a3HhCYL7pTh2RhObxbUAYbrIbC4NLOuAyyJ9j2rsKQmP6hxaiFunFQ7aK0Lq0Kp2eaaF6xtYHH09EQkGsdBZFEceU1kaXJSUIr7aZ2VYhbKr/RBtl7yfDjOS7UWuREHKUpu4yrhss8SYE15SmOeUtZewWsr4vJKjqlgcVmwIkSVhySlcUk5S4AVhpqLArBEFdOq4HTWgeEVe5vgfY9C3mLI8eK0Mfda+PGvjZVN6uoueW2/rHZQfHQA5VVnH3R2Q0enqK1d1NoETTWqE23QW0m1HnHVH164YwssXwc5+UBcuJeBZXSADg0ib61H3nt/OqewksAy2gq/88NfvTGJbZQIK2xa5jgO70ChnMFREbhIGOPZKB5XKixGZRXrMYzpPdzDYnRuidEnMfpAlis351Map8Lo+ePzmyanwsJe7pmZmZlwKMHzochMWlhl0ip9MpMbwvHMorbCVQcOVxtiPN/eNwIKs8zkAYVFZPLN8i13nR4WaknzQlj22Y+8Orr40KS7LOYq4azlvKqclVYm6HIOlwUrQlAREpdlAKv6Il17SRScFlVMqoKTWQePI7AeehR8iyDbz5gWg2st/OTXmqqjstoOaX2vrKGfaeyD9l7o6obuLqqzQ9zaKm1tlrU3yvoaYagR+iql1a8srT1ifPrrkLcITB6x3k0bnGBEyzseeqewmXyWT9GdpeDuOmBlbt8nW0mSwHLkr2g/NoZz5Xn+zYnJmfA0z8dD4ckr7jGOTdIqCSy814SSEIGlw7boexVYoLQhqshCIcgtYgOW0v/w9R9OzrBkYGwiFmMJ3i/HUWQmUtwYW8kPhEiUi7L8DMt/6we/EOOt6MLpzXrM/5rNG/LGwFr6pAAsV2lUAJayLC4KcFQFBxUcBMJUICwpZ8UVKYVVfUEAljgTWA8+Cs4FoPfKNQvBvgZ+9B+6qnp5fYe4oVtytI9u6sF2e3cndHXQnS3S1mZFS5O2s51qrqZ76iUDdVTjPm9LyfKXt8DqdZDrk+s8cq0T0/0NdjDaib1rztZwF9SDaWYJe9+EmMrCZffFeX5iOh6JosWA57mJyTfJAldSYZHvJTBQgY3jIyqs5CqhTGd9V8DC9g3WoCwb43k+yvLrN+0S4mUwXIVE+s7mTft2iYDFoCwXO+5aJyitenth99AZJFGCj0RisUicT/AzU9PptBzSVhf00+VHwcdwxccAQdZMhIvzCCxHwXIc7Ky2S3Pm3wJg0bqk012knk9rfNggTyqsx//mlZEFhybsZXFLKWuu4BXlnCjA0xU8BBIQjEFlRFwRkwTiUBWF2jAkFdakuOKCqurNrEMDqLAefBQsRaB2KZTzIXcF9YNfGYN18vo2cWOXuLGLbsFKELo7oLuF6moWtzXJWo8qOptFbXVUV42kv1p6rFxRv+eephL4yAfAnifTexRql1RtB50NmZXcrPN237474RJ697/DXaewyKoTfi4JB+m4O6Ray8GS6smpCM/z4ZkQQRQXCk2ziWRJSG5LbLIjWRBVrMCyOM8/v2m7XG8TqW04rPQdKSzSL0NixTn0o0bi/Isbd0u1Nkykwxgc1IDknSZBCLP8iSIEVAkXFq6d44HnisaRyy65OR/DKtQ2Sm769e9evBTBedQZ9CGt9GQwfZysUeCJ4nnu4sU3eZ6PxKKZwBJ+UHiMsrjP6Y1pzlO0SmIi4Vl6txA99u6v8hs9A9ndYgOdU6IskCnnSzR+nCyrc0HuQrjniQ/vOTH/8ERukNOVxpRlnKiEh5LElcCKMIEIVEegNoQ+rNoJuuqCqPK0unbMfKQbgXX/Y2BfCFqnWFUA1uXif/n33ECtqqGVaemiW7ugrYtua4P2Fuhqgu6jos5GcWcDtAaZnhqmpwq6SuljR1THjuiqd9g2/C8ULACDW6J2yTVu/MDQYaLRtSMOb/RK3zPfv+uAlZ6/kgKWS6RzSHW5b1yYETTUzMQlYlfgYjGcFJ/qxWCvBWGV/I9NYEMLb83ntmzFpX1NGlj3pL2RaJVML46R+zazXsq8XYW1/yiHIAyz/PObdktxiJ5LovFKNMmiFVGrx7b3rB7XAisZUqzxynMKKZVLqnOL1RZ/0YrD5cHJCJo/UswSWunCq4/FYyE2jiOv4/FoIoGnKxqNCt5R4UeEn0o/CvJq78GgOtePCVBGLzqPZrmHRdbdbKBHYCmU82Uqv1jjFCGwFiCw9g4VHL5kqowry+Kycl5cylOlRGFVskmFFQgzgTDUEGDVEGBVnxMFR9R1x80l7Sv2tsD9TyCwdA5GjcCSPfMLW0W1qqGZbu2Ati5o62Ba25j2ZgFYdFcD3VVHddcyA7WiY1XQXQLHjiiGSg3d+wvKdkDhAjB5xQgsj1jjZLROHNONeJ3d6+FOe/45YCWBxRKWxLCVEhFEQRxdQXPAcqWBpbQsAIVDqnMrjY73ffgTo2fOR9A8KygsXBAUzht5RLtoKDSdSCSmZqanZ8KoHKNclGwUEDylMR4d8JcfeX4yyv/w5/+jzPYyWjtNNp/fYmBJ1X6G7AdCYK148q9eGco7fNFQEVWUxmTlGCNDl/F0IIHWdqEkTAIrhArrRsByLEoDS/4vP08Cq60N2jqgrY1pbUkCq6cRgdVdCz3V1LEgc6wSeo5A3wFp/0HjsQMrGvfPAUtA5xywksAKx/hwOMrG4rjQznPxeBRnx2POunDMosJCxzzpikU5tDLNXFZY7pTCEqrC26mwaL2P0rjFOvx41+f6Pv/Fp8KxtLZKYj0DWCgsEzwfi3MRlt/z6oFHPv3kY5/7+0c+9bmPfOqzGccTH/nUEx/7JH7nQx97/JOf/aItbynIs7Hq1LsxEMo8u2kN2AYyXVZYArBQduUuhFWf/dCe455Db2rLw9KSiLSCF5fzTLkArBgEIxAMiwNhpnIGakJQOw01E1TtJbr6jKhqOKWwmlBhOReB3inSzAPrcvm//NwaqFYfbcJKkByitmamA+tB6G2guusQWL1B6AswxyrogXLoP8T07NN0vbq07tU5YM0BS9jWcFlhsaywhYSLRkLRKC7Vk0rtVgArlgJWjOen4/xzG3eRkvAOApbImAcKu0TvlWhduhzv718sFjYDCgsUV6EK21WR2PRM9MTI6Yc//IhMlaU1u0BqkOttVxwGq9xgVejxUaTKlhkcyiy3wuxTmPOIT9UFmPo0iyVPGlhiVbKHhcrO4ALLQlj92ffvHXIeeENVOiMuDUkCqY57JQuVbwdYrSv2Hk0CS+e6Blgt0N5CdbQmgdXbAL11CKzeGmagGo4hsERD5aLjJeJj+9SdexfX7M0AFvaw6LmScFavjDvnyW/Uw8LmMO614fg4DtwidyAfY+O3RmHFEuj7DnNcJrAwpwUbWMlIPGG5YLbPpPDPCeunQtM9OccFo6m8tNop17nMtoLB4bPYwsM+XmYlmOzYCXXi/29T+PYzPxEps9RGJ6PMEdpDIp1DONIDBIUxgrrcApCalSYvtpDkVuL5ypOahNHzs8UsZFOWDQzYFJeq5ou0frRTGFw46mb1kw/tGbQdOCcvnWZKZ0QBjhGWCBFYEagKQ3BGHJhhKqdQXtVNQs1Fqu4CXX1aVHVCXTdoLiHAeuAxorBcOOHCdo/0Bz+3VVYpmxqZ9maqo5XqaBa1N4k6G6G3Dvpq6R4ElmiwBvorqF5sYFFDh6UD+3U9ry2p2wNFhWBCVAlN9zlgzdY1Mds32J/7/DcCVijKx2IsloSpmzCRSNwCYAn6jQCLfwtgkZd5a1YJkY+ZwBJWJ8QGv0jvYzQumda5cPkDMdJrTwFLaLQL5EouGp6/GBo4ceZ9f/VpDN7ROSUGj1jnw5ETqJjwhQjzFNKPtMYBKkyalhp8tNqpyMoXab04mWK2FVaWBQz2K4BlFID1xP17BiwHzsrKpkVlM7h/sJIYGlBehVPAmmIqJ6B2EuouQe0Fqu48XTMuqhpS1w+YS1pWvFIPDzwGrsWgTwJL9q+/IMBqoDqaoLMZOpuYjnq6qw56a6G/hu6toXurqGOVMFBG9R2GvgMwsF88uE/f92omsGTaOYU1m9fErF5w7+DJbwQsoelO7jYUWuHwTCQi7MuZ3ZIQG1gcfxWwnt2EJSGZ7oMKS8BH6laf3Y+WaxVWGlggt6rN+RKN9a8/9sTEdHoPQNrKcFlesTwG8WzbcyjXuUBt9oM4W26ex2j9oCS2squ9oOhBBblVZ11AqRxinQcUNpnRT6vdYt3sOt2JwkJgMWpUWPgbYmyLC2wLYdWT9+7pz9l/RlI+yZTPiIIshcCKo7wKzkDVDFRNiSsnmOBFqL0EdReh9jxVd46uGRVVD6jrj5lLm1a8UgcPPIrAMrhRYdmXy/7157ZgUNlUR3Uehc4m6DzKdNZi36qvGvqrCLAqobeUHioTnyhjho5Qx/dLj+/X9726oHYnLJgHWYiqOWDN7g3wDpgyqz9yI2DFyeZb0mFnBVtDyqh9k4CVwKdNuSLwf9PaKsrxEZaLJXgh6mAqxv9xwy7iaRBMWElgEXDMruLAM5/kI0Ik5cNCNxba3JV2SmHVZvua2gamw2yC52dmZkhJSGJ4sDbE/zgSgBXD+dW7lXonrbSB0ikxFIh0BTg5TWEXm/IxsFxhxwR3lVNtWwJyG4GyoOzSwwpnfe4eAstsvQJYehfGezoXw9rPr9nVm3PglCIYYspnqECYCnKkexWGqilyTEiCl0RVF6H+Ehy9CLXnoHqcrjkpqR1Q1fVklzWu3lcP938aHAsBB1bOB/ty6Q9+Zq2sULXU0l0NVFcj1d0g6qqlu6vhWBX0V9K9Vbg4OFAGg4epgUPU4AHq+D7x4Gvavj2L6nfDokIw46ZXuQ5jphmdS2zwzvmw3vvwumOBFUkkQvFEmMfY5T9u2EUmfQoNLL8AkdsLLJHeg6PM1E6p2joxzWHpjEsSQg/rOsA6fzHy5P/zNaXeiS+ETKKlNXm0vkCSVUDrfZKsApxirfOD0iU2zQNV2tAvbEcXmDXrwMIFwSwEllASosLC73jBuRTWfn7Vrl4zARZVMYXxDMG0vJqA6gmouigJXhRVvQn1F+Dom1B3BqpH6dphSd0xVX1XdlkDAdanbgisblwWFHVV091B6K+EgQBxM1TAQAkMEloNvk4df008+Iq2b/ei+p2waP4csO7GUfW3DVi45HhDhRXmOAFYoQTakf7w0s47DVigxsB1qca1eMX70fnJ8aFQ6Lodd0FhjZ+5aPMuUOgcYo0dU0kVdlrrERG7PNBGUNtxdLbSgVMgDXmMqUAY8yXoLMG8em2Y9U2X3ilgWa8DrHVJYMmrQilgRUn3agqqJqD6IlRfuBpYNWOXgVVet/r1Wrj/KmD91FpZpmqpIQZR9IiKuoNML9IKBsqpY5VUP8orGDxADb5OD+2jTrwiHtpzGVjZmGAh17lw1KN+TmHdHZ2sOwRYHMclc5cTfJTDdnskkZiKc6EEPxG7AljCfAdGh9uAybzyWVbBNygJabUTl/mU1l//7/pwDHt98WgsVTunFwqTJSGX4Dt7hhSabKXeLlLlqrJ8tMYhM2JgqczkI6ExLgSWzkXpvKD1gTY5lzADWFdM577pqBKeEIf9maygt0qUQg8rH/SepMJa9/mVu1FhyaumqYoJKjBNVaH3ihSDSCuoPi+pelNU/QbUn4ejb0D9GagZYepOSOr6VPWd2eV1a/bXwAOfAGcR6D00KQkl//rT3GCZsrWG7q6lumupnmpxTyXTi7SCoQqqv4LqR3kFx/cjrY6/RoC1W9u3c3HDTlhUANlORj8HrLuDU+kr/nYCi+eEHhZH/ouziTibiHIEWCwf4fi3ABZugb6FwEr/c+k2ltTgQ9Gntnf0jAgdd5RXyZJQaF4lHxPECfLLX/23TG1UaLIZhUmqtTDqXJxFpLGB1KzKyWO0dkqDkfCgdeIuRa0H9F7c6pyx01vIKUu/cbPxRSawZMr5Ik0+6DKB1XcNsGZQXlWlgfWGqPosNJy7Cljqho6ciro1+6vhwY9fCawf5wZLlK1VVE819FRDb5DpDdB95TBYAUNlVH8Z1V9CDR1OAuvEK9SJPZLjL+uO7coEFp7GOYU1G1fDnfmcdwiwWJZNAyvCYrs9zF4NLLQX4CD4fFIu3WZgSfRemd7j8N9zfOQCloS4I0BoXV1BKxLVgPkNCxctkyq0Sk2WSpcrVplFarNEkyvS5GhzvSDPopTZoMgRGzwgx9ArSVbBdYBFrA+zehVRegdFFJaUbH4mPqw0sP525e4MYFVOEoVFgFV9AWrOQ/U5SdXZJLAaz0H9KagdZuqGpPW96qNtORU1NwZWJQKrrwr6UF7RfaUwWAZDZfRAOT14hBo6CCf20UReUSf3So7v0vXvXHR0e1phzQFrlkuMO0zB3XZgCfKKRcsXF4vj9rpI/DKwZjj+UpT//fodJKrhWmDN/ptFSsJrFRZOQNC5H//bb4yenkok+Fg0EY8Jmy6xPMz8j6hI/ne//+Mfnl//wktb1m/e8bsXNv1uffHvX9r+hw07nvnJr2Q6qzrbLTE4pFkeUFqFSIbbCCxaZ5Ur8hRKwTh6Q2AxwQhdOZOUV1cA6ywIwKo7eR1gkVXCVEkoKKw0sAJMbzlzrIwAq4QeKM0EFj38KnVyr/hEBrBy7IzeMQes2b8H7iRmzT6w3mouYQKDC3CyYZxDYEVYAqwMhTWdQGD97qUd6KhEiyAuESYVFqkKZ1VxkCfHdboUsIQQHvR5Sgwuqd7+2+e2RklEKMcRlYUehqRTNM0soexNmULQYhZmcRZOhOfDPN/SO0zJTVK9nVLnio0uYc+g0MwS6kFKh44KIWifvFmzeH1iwWuy0jq7XOlTKOelFJYfHMvhqh5W5SRTNU3a7URe1Zyjq89Iqs+Iqs9Aw2loPAMNY1A/TNUPiBu6lY3XU1iOpZJ//XFu1RFlayXVE4S+Stwz2FfK9JfA0GE4cYQaOkIPHqaO74MTr9HDr9LDL1Mnd4mHd+r6t6PCWkx6WDqcnk1KQvecrWEWr4zZv83e7i+fypZK3pPEcm2T6nKJDwuzrkhqu7BaL9yKf54PK2/BPfjDpI+TjpfhOOxeCTt/YthlT0QSWANir53FQygJJ6LsFMtfjPK/3bBbpEsnySTdSSmn0tt9pe/snJNOWdJkIICSPI9LnuWWGazPbtjK8nwoHOXQ1MCHpmfSiTEpnSU04DEMi0vgDqcERk5j9Rgj+7q//2//LTFg/LEsyw8qGwbDyy3v7Fd99z+FwDJitpRU5ZGp0OJPelj5CKx7P7fy5U7zwXF51TRUoPGKrr0EtW+Q4yzUnqZrxmVVY9LqMaphFBpH4egINB6nmwdFRzsVTS25wbp1B2vhgY+TxFEXo80Hx2Lpj/6PtaZU1Rake7EehGPlomMlTP8hOH4Aj6HXYeg1OPEaDO+hTuymT+6kRraLh7dqB7YSYM2HbA+j88p0flpLxhEavXMRybN7M7z7K+zdP8MNgJV9Y2AJUQRvN62hoAiBxXJ4p2YCS5i1ECPzwpBWHDfD8TPEMioAa4bjJyKJSS4JLBJ9lbaJZjJrdt+jZJddEFk6FHcElC5KmVW4fG1Nc+t0JMySQAsOVwkxsOGaXdC4U4djwxyLeViYhBWPxRLcpVAoyvML13wIlDZa6wKVHcjoHWGA2Lt/Z9/BMyCdje4ksNQYiZEC1gq477MrX243HxxNA4uqO49mq7qzUHeGqj3FVI/Kqkak1SephhFoHMajaZBuHqAbO+UIrJp1h6oJsHBUvQAs2Q//j7XmiKo9QPeivCLAOswMHIATr8Pwa0iroVfhxCtwcjc1jLSiRraKT265Blj5c8Ca3XvgHVxJs/cjtwxYOLYwFeCHfSt0YaGdHeUVGWaVBlY4zobiiWkWgTXB8hci/G9e2nWnAUtldj3y+Oen2UQEN4SjoT0yPYOzuS4H+JF4C/S7pxMM40J0XyQWFbZ2h3keFDlobsjKE7CFw3iUNiEhfvbe9Bs989sD1qSgsFLAOiMAS1Qzdl1gMU0ZwHrwY+C8DCz5j35kqy0RgCW4rkTHLgOLOo5WBgTWyMv0yV03BtacwrqTekw3urZu1vdnG1j5hcsFhXUVsITW1VXAmmYTIZYNsexMjJtm+YsRbiJ+pwELO0roVzTanvj7f5wimcgxFkNEUXnGcYNOKnH0OsAiERhslGMjLI7RPhyopdRWuTlf2FOiyC5AqaW03aw39899nhSwXFgSXqGwlsN9T6zc00YUlgCsicvAqj8FdWOi2hFZ9Ukc4NwwDM0n8GgZoFuOMU2dipbm3GDNvYer4KFHUsDyg3MRAdZhdUeAQY8ouq5SwHoNTr4mGK+ok3szgSUZKdYNblvctA0WX1sSeuZKwve+1Lo1wBJKP3RXYvmUbLSnFRZ2r1h+Go/ETDyOR4ybiicuhNlLMf7NMP+/63feCQpL2BJE/FAOg83/vy+sFzKRI7Ewh2M4+Gg4PbcxTaukwopEQvh3SEue5fnpCKa5P/aFL0qNeI0Jc3eEMTxig5fS3J75eggsgwd0fwpYgQmomqDqzkHdKWyxN5yGujHmesBiWvuZ5nZFS5OlunrtkSp430fBNY+UhElg2euOaDorCbDKqIHDTP8hemg/DO+7Eli7SANrKz1WLBnZohsqvgZYZFiOcQ5Yd4HUmm1g+YtWxIl5PUbKJQFYOF2CLA5GuUSUw3a7UANOs/xMjJuJcZMxbirGXwgnLsX4NyIEWCSDJSUZbk8PKw0sic5m8xedOH0u2a4iflE2Fsf4MIKka/boCLOysWCMkQwaIa5+/pKVxDKKAxSEYhDUDkV2we0SWdcDlguySNM9qbBOyqsnAIF1kao/C3Vj0DAODeNUwyhTd1JeMyyrPU43noDmITxa+pnWPqa5lQCrau2RyiSwDHZan4cK68c/stcf0nRWiPoD6BEdOCQaPEgP7cMG1slXgDhFqZMvwwgCix7ddiWwCiDbnWq6zwHrLkCVcPPfAmDFeDSvC8v/QspynCXJgOhrT0RYjsgrbFpNE7PoZIydjHGTUQTWxSh/TlBYVwDr1infzKY7abdjQoBEZ/MWLZuMsVPR6GRohkgnDl9ScmkwvTUn/QV2uQSBGWHxVLA8P3rmvL9oubD6KcvKE4SViAxhF2ZKp+h8K1/stQrrSmAdOiGvvggBtLYjsOpHoGEUGkaphhFRPdJKVjtINw5BywA5+pjWHlFLi6LlaE5N5dojAXjfR1BhXQksbXe5eKCCGkKPqGhwP32c0GpkD3VyLz28F4E1uosZ2UGPFdNjWyQjm3RDWxY3FRNbwxyw3HdfpntyZNZVtoabtkroK7znRsBKyiuyPjjNJoGVptVEjD8f4t+M8edC/P+8uOvW5IteywgCrMvZCWRoo0uqtXzyib/NXA1k2RjJyxEiZdKcuhyJFYnGSWwOoioc46MJ/kBJhdnulxiwaYWHyi4356POEmYd3o6PzBsqLOdSuO+xlXtazElgvQnV56n609BwEoF1dIRqGBbVI62k9f104wC09EPrALT1Uu3dTGuTvK0hp6ZibUk5vP+vwZ1PgOUD10L5T/7VfvSgpqdUPFhGDR2mju8XDe6jj78CJ/cAARZ18mV6ZPdVwNIfL17SvDUFLDexNcwprNtxuVx7t9yC78y2wspbsDJOhqFGOVwti7DobyB7BlFe4T7nZPeKn2QTeJB68FI0kQms/7WwypoAACAASURBVF5/HWDdgvQCkoHlBr0bk6q0HkrjptU4alhhsLf3HT936RLxp7FxIUKaNN2JyOIikRBZEMQXG47EWEFjYu4zHhMhNs7zX376WzK9JcNfduuU1I2uK0qPLxZ0LpnaK9f4MDtQ7yYl4RK49zMr9zSZDx1X1Fyggm9SNW/QDafg6DDxWw1TR4+LGgbl9QM4cb55AFqPQdsxaOum2juZtkZZW21ObdnaklJ4/18hsExOPJ8EWI7GQ9reEsHRTh3fJxp6jT6OtIKR3dTJl8mxC0a3M1gPbmHGN0tGN+iGNi1u2gKL80hJOAesuwZVwlU7u8DSurGHJQCLvQ6wMtrtl4E1EecuRRMXY1gMvhnjz4b52wUsVBzC+FKdl9Z6ZMZ8icYtVtnEKvPF6UicVHkcj8BKrxJiqDSJdRcs7xenQiwSCr8b4vhwnHjcWf5SmP+Hp74rVufMtnn9Rmy67veTwNKia5QAy0eA5QdHBrBqz1PBN6jas/TRMTh6HJnVeBwaB0UN/fL6fllDH91yDNp68WjvotrbmbYGWVtNTm3p2pIjVwDLXST/yb84Gg9qewVH+34CrFfoE7sBVZUArF3UyE4CLKwHmfHN0rGNc8DKfO/mSkKXSGeT6m5SSUiAFeMxeiGSUliClSHdvRLa7VPxxGQck2QuRRPk4C/G+LOhxPkofybE/9eLO4VeUuZbdQsUlkArvGk1pF1i9Et1bqnWtnT1+4QQd6QVF2HZGIEUsWNxXDiMM2hjbPz0mXN//6WvPP3Pz3zxa//091/5py/849ef+LuvPvn/PvXk3z31uS9+I2/hapAY7jxgeeE6wFoE93165d6j5sODisvAGoXGQarxBDQOQmM/ffSYvKFPdrSHbumFjh5o74b2DrqzjWmvk7dX59QdWVN2CB7+4GWFhcB6xtG0X9t3iB46KLiu6ONoaoeRnTC2izpJjpHtMLaNGS1mxjczpzZeD1gYNErp3czcKmHm7fFe/foWKCwBWOGUwkp6r1JbcELxxBQ5JmJJYF2MJS5E+fNR/myIf+MOABZjwrwXscEPSrtU45Jr7f/92xcxUiIWjcTCLNlwk945yPN8NI4jsmMJvqd/SKzQgEQj0eaI1GaFyaE0uhQml0xnl+hsKqNXYfTc2cASSkI/ODKB9QZVdZaqPUMfPYmoahqC5gGqqZ9p7JM39Mgbu+mWbujohvYu6GijO1sQWB3BnLpDa8oOwsMfAE8eZDlpox/cRdKfPuNo2keAtV9wXdG4BWcXjO2E8Z0wkpRXMFbMjKK8IsB6SX9i45LmYlISYjKyDMUvhlYTYNnfq/fpjV7XnMK6yQrLt2BFhCisTGAJGwYFR7tguZqMcYK8uhDlL0TRe4XaaiZxLsKfnuH/44UdQvM78227NQqLNnhooxfULrl5HsitErVTosrpPjYibLchmchYA+IubsxPxRaWYOgPxxO/ffZFpSFHleVg1NlirVWkszEqq1jvlBvcIM+WogE1vdno9jewUg27TIWVCaxPrdxbbz7cr6jNBFY/NA8gsJr7mKYe2dEueWMX00aA1dEJna10Z7Ooo1beEchpOLy2/BB84IMpYHnBPV/60+85ml7V9h1AK8OJV2B4DzOMDgYCrO0wshPrwbEdMFYsGksrLAKsls2wxIcBfnPAyrwl7oavZ1theYvuwVgCYg3FoIJ4IpbA3b/hOBuOo6NdcF1NxrBvdSmK2upCFL1XbxBUnYvw4wisXUI7KfMduTXAYoxeLAmVDmVOIaNxSdROi6vo1LmpBMnrI531GMfFWcQVskrwNggrDGizUhlVZhetsUgMLkrjAIWF1jikBh+jdWIEoD6ZxJD5um7j16SHdSWwcFKhoLDSwDpLVZ2mak+h36qRAKulnwCrS97YLW0SgNUJne0IrK5GprOGAOvg2vIDbwEsCtNjXk4BazuMb4fRXfToDhjblgTWqY2i0xtk4xtQYc0BK9Vqn1NYN1lheYvuCZNAlTBLklXiuDIYYZFcIUKr6Si6ri7FWAFYb0YSb0YSArBOTWPHfWya/9XzO28XsPAe1jpB45aa8kVat1TjeOzzX3njYgQDnRMcpnixYdLDIkVhWmGRRrtIaaSVJlqVo8z2g8JC6d2yrDxlzjypidgX1K7b5be6ERPfBrD6FLWZwDpG/FZXAasTOrsIsJqZ7iams0bRGchpIMD64MPXU1ivYz5fElg76ZOEVqd2wNgOAVjUqWLR+GbR6U1zwLr2jbsbgUVE1lU+rLeIl8lMaxCynlhhWowQVPD8pu04aV1tk+hxavGNgCXQSpBXwrKgIK8IrRLnwqiwTk1zGcAijdXUB8u179xsfAdvYI0DdC6RyUdpHJTaKtHkPvvi9ihuHMTzQNIXYsSrgFVhJBLjOBRZMxGuLFgvN1h1ljyQmSVGL5aW5ED8yW3KnEKR1isx5hEQY2EoCMb0Y/o7ZBojFozXIvumv+TLwBJsDYLLwURWCe/79Ko99eYjPYq6cap6BOpH0CDaSIDVegxaeuhmrAdlzZ1Uezt0t0FnK3Q10T1Hmc4qRVd5TsP+tRWvwxXAKpD+23dsza+o+9F7RZ3cS53cxQwTYJ3aBqe2wdg2wd3OjBdTpzbTBFjysQ3moU3LmzbDYh/k2MGAsyeEyEOxAYOxbvo5ucOf8O4DVkbwLi614P91pPKwyIa4hGAeSnogM7vLgueIDL/B/g3OQOX55zZuk+kxs1ysd0p0Nn/R8hgpCUNxdHjPRNlwPDETZWdiiZlYYjqKjnbBxCA02t+I8GdTx/gUezbMn5rmf53sYSGz8EiGvQgbdGax+4P/ltENCrPE7GX0NlqVpcqybNq2i2wzSscwxEi2FebGYGZDJMLzfCia+MLfPy3XO1Q5uM9GZPKJs/zYC0OThJPWYhihVOuTGnz4/HobqGyYEK90ihUOudZPyR2IM41XpvYqVF6ZGnGGQwONs0ttHIGh94PWJ1O7lRq3VEdsWSYcKw/rHl21pz67tEPZcIKqGYCGIYq026FtEF1Xrb1MS5e0qUPa2ooznHuaobsZuuup7lqmq0LRVWo5un9d+evw/veBKw+MLiy0PXmyn/2zvXWXZuAV5uQeGN4JJ3eIh7czJ7fCeDGMY6NdNLpFTLpXcGYznMGmu/LkZsuxzasbimFpHlidkO2is/CsUno31teaO6sneAtgNwesPwdY5BbFkD8c2IUmSQKsHQRY2QRYFn/R8igpCa8LrMkorgxejGHf6jw5zkURWGfCibMR/k8CK53GOUtXBqV30yaPNNcP2lyx0SbWmZesXne0tSNGArAyc2OI1EJmsSwbjbGTM+zilQ8yKiuOm9f5GI0HvexqG+gclBFbxbTGQcttILOCxg56u0jnUBo8co1HrHBINF6FIV+i8UrVXqUSD4XqdgHLiZrLWAi2FbD2sVV767JLWxWNg1RtLxwdoJqw3Y7AauuH1l66tUva3CZuw4nz0NMIvQ3QXQs91UxXubK7jADrtauB9fNv2tt2aAb3MCO74eQOks+3nTm5BcaKYXyLaHSTZGSTeGwzM460QmCNb1YNb7b1FSOwFvvBaodsJ5iJs1fnluj9jMYzS1fCHfu0dy+wBPFytcLCyie90QTVlbAKltJZ5I9uDCyR3uItWhbm+RDGtBNTe5RkXUXZ6Sh3hbyKILDS8upMCO1X41OJMyGhh7Vd8GEJv2RaYd0CYFEGj8xSAIpsRmtVmOx//YnHLkyFo5gbmpnHgOeBEBvPTzie6B89k+MpVJq8YpVDpc+XKz1SFWbAi0xukdklMnskJrdM65aq0Dcv1TmlGodM65TpMKcB1C5ZVoEgrwitvFJ0gRGFZbjFCisDWOseTQGrXwAW3TwILYMIrPY+aO2mWztkLa3itmaqqzkJrJ6aq4H18PuvUFhJYO1mRnZTuCa4nSisy8CSjm6Wjm4WjW+G03iICLDMA8X3NBbDIh/k2sDkoE0uDOfRuIQPhjuWLLP0i92NwCLb9NItkisV1jsFFqVBhZUJrJkYpjJMYzHITRNgXV4ZTNHqHCkGz4QTp2cIqia5MyF+dIr/1fO3B1jJlX4yCZ1S52rM7r/90tdjZI8zOhgEVZmcVYbtPC6BYQwToeiLW3epct2M1i7RusQqp1jtkpj9tMWHVYwlFw+7E+w+2uITZ3mUBo9S42TkuXhNm/2gdVEmP+oslVAP4kqiUK0L79QsXfr4r1xdEl4FrJqc8hZFYz9d1wdHjxFgDaC8au/DPYPt7QRYTdBN5FVvHfTWQl+VqLtC2V1iObpvXflrcENgoeVKSEAWjaC8gvEt4jGklXR0syCymHH8Qnlys2GoGH1YC7xgtoLBITLg6cVD56MI2Wfv/NyBzzwHrGuAJdR9+JiUV6m08pTEuJ7CugpYJIYBgTUVIVlXkfhElJ2I4srgxQh3gZgYUF6FUVidCvPjocR4KDEyxY0TYP3f57bdFoXF6Nw4JVBtl2X5RTqHNtv32+eL08C6fGJwSD0eZJskPxNLfPmfnhHpLaDMYYwebLLkeMHlgwI/PLxK96VH1f/4KPz1Gljmg/k+yHaIdA6d0Scm83JE1nlg9oE5Lw0siYZ0vgxuidYl1ZBJHLO28nB9YAk9rHs/vfqVWgRWUx9d1wtH++jknsF+aO/BPYPtrbKWZkl7I3Q3wLF66KuH3mroqxT1lCl6SixNrxNgPZRSWB7w+GU//4a9bbtmcBdDPKLUyHbJyW1JYJ0qzgSWeAxpJR3drBjZrDxZvKCtGIq8lMHCaO0yrVOidErmgHUH0nQ2fiXiXcRWZbLa0hNgaS3Yj7k6LOXPBxaJYQklhNyY6wALaUUqwXNhpBW22Amtxma48VDi5CQ7HuJHJvnbCSwtrkORoV5Os63g2NCZWIznhKEc6VpZqIyFmHqen5iOP/q5L0n1VonZC2YPOPLA51M//rG1L/z7R2u2rSp5dnn5cw81bfft+r/wDx+DeT7Q5apNPqXGibHu2X4we8E6T6RNyiucBGF0AwGWTH1LgKXDprscm+5EYV0GVnVOeZOyuRfqu6GpV9gzSHUcg84e6Ghn2pulrU2SjgboqYNjddBXB30CsEqUfUcsTa/dG3gNHr4RsLCBRY9uk4wUi0aKqVPFcANgEc1VXNBRDIUekd4iUdvlWqdc6ZKoXSK9D3RkGsWsAX02bsB3+Zx3scLCcgCnk4p0DonOgrvjbgaw3EVLZxK8sPkGY9qj7FQ8gdoqEr8UiV+McILrSgAW9q1C/FiIH53BY3gyMTqDwPr3Z7feLoVFaZwSgwddGhrrklUPRTk+FsexqUReEagLzSssDLHdF43xDU3dK1d/QKy2iMweyHGB3wOPf+TBw+uXBtfPb16f37fF31/s6Nlg6VhfVL9B+pXHwOMBg0OlddEKO64kmtxgKcBoOjUeSWAZ3VKN67YBy74M7v3U6leqsysIsBo6oambae1DbdXRg66rjlamo0nW3ijpqIPeOuivwaMvCH0BurdE2XfY0vzKvYFX4IMPXqmwnra3bdUM7cC4q9EdVwDrNEoq2RgWhlcdzHhxXicCS6KzSNV2pQaBJdW4cbuPAS/gd4mAv6wfvzuBlTQKCMBi9NcHltBuv27TPZFgsRoiy2bPbcRVQkqTLTI4RTpbGliTJKZ9gthEBWAJ8urNCLqucGWQFINjdxiwpEYvrbGpTG6xyvzJz/xtOIY2K9JwxyVBhDpOQkNyJXtYPL9l+6smo1ukyAGNDfzzYd3SNa89u6B+g6d3i3Voo7b/efXA84bRTYaxYnv3xkWv/wHuXwEGi0rrUmu8qux5kOUFSz7o0dYgzQCWRHvrgCXVoMIS653opTDlgwCsV4PZFUeVzT3Q0A5NnVQb2eHc2QVdbVRXC9NxVNZeJ+mohd4a6K8iRyX0V9C9h5V9By3Ne+8N7IEP3g8uP7E1CCVhClijScsVKqzRLdQpbLFLxrcIwBKN4/ogM45NdzzGivM7sCRMKyypCoUnmPxAjCN/WcR5l7/tXQcs4XwJ625JYGGipuX8RDjB86FQiGyUwxIoFucIlTAPOIWtZFEkZD8Js/ae3bRDZrDS2hyx0cVorf7FKyZi/EyCxzCGOCckXgnaKhNYyWXBUGI8zJ+cwWM0jAprZJo/McH/+/PCXsKUD4v4bm7JXEIyMNVkp5UmscrUdexELMHPhMiEZ8ymF4RWSm4lUHjNJPjfPLfFqHfKlRZRth/sruwffG1Z1QZvX7G693nN8EuyoedUQ8/rRjZKB1+wnNi2uG2n+vtfAm8eiLN0So9OnwdGH1gKwIAuM6kasQUGLAmxLL0FPSxjHuh8EjWBo84BeicCy7Ec7vvE6teqcgINqtZu6mg71dJJtXdDRyd0tUFXC9XVLOpskHXUSrtqqGPVMBDEoz8AA2VM3yEBWOsq98CH7gdvAXGTucDllf7sKXv7FvXgVhjexIxvZcaLpaPF4jG0iQJRWNLRzXD8RfkbO2B0A3OmWHRqi/RUMdX3wtLe3VDolZjsqHzVdpnOi/ZRFKfY73uXCPjL+vE5YKF3VKKzxHl+ciqMjXYuHotFUD+QERJxVBRvF1i0LgmsaY4kMcRYAVgXo1gMXogK9WBC6LWPhxJYDBJgDU/zI6HLwPrlc1euEt5CYIl0NpDppLpcuc58YSosvHZSEAqCMvmI8xUTbCzBn5uJfuqzX1LJLVqdR26dB36f6z+/v6hxS85QsWJ8o/b8Nsnoi8qR9eY3dmjGtphHtrlatxh+/R1we8QqW5bSZ9bk4ShAM6ludEirdNMdo5mJ43T27ihsuqeBpcHVAARWVj5g4ugnVu8L5lTWK9o66aY2aG2n2juhox26WqC7mepuoLvqZB3Vku4q6A/CYCUeAxUwUMIcO6g8tt/S/PK6yt0ILE9+Elhuj/TnX7W3b9EMFcPwRma8+LrAok9uEJ8uhvGN9NlianSjYmRzzontK5q2wnwPnWWjNTaxxi7Re7GUFo45YM3e9XHnPDNZHkr2sARgBWtbL16aJsUPH4vFIhGcBxPDui8RxwUxZFaykYOuURxvhbkxCT5TYQnAuhTnpxL8pTh/iQBrIs5diMTSwDoXRu8C6bWT7lWYPzHDD0/xIzP8iUn84sQE/8vntqNHXLC539Ir0qXK8YE6S5PtWnX/w0IGVpxjo1EciZpxYE3I8RiLNXTmgt2/WKO0KZR2vNuLCvN+95PCps254zvhxB9h9DkYf0E88qLkxPPioResp/Z4O7bl/uFH4HHLTJ4spc8o99BqN4osA26WEoBFdswImxBm18n9VsC6/5Or9wVyKmsVbe10Uwu0tuIWnI5W4mhvpLrr6O5aeWeVpCcA/ZUwVAFDAcDg4yPMsf2KgdctrbvXBXfCh+5LAcsBBFiOjmLNUDF1chMBVtLEkKmwpKObqZENcHYL9cZWGF6vG9q0YGiPb/PPIN9NZdkorQ3HKSGqPGDwzvWw7gp5ieuDpOOeURLaPvHoF1gy4gVFViIR5xBJUQ5pdV1goQWJAOuPG7dL9RaKlIS0zupZdM/FWGIqwV+MJS5G47htMMZeiMTejLBvRthzYe5sJO1jIL32EH98GlE1MsMfn0BgHb+U+MWz224XsBitFftxmuz/+N0L0yxa+aOYeMwluDgnHDxOAIoluCjHhhJ8a/+wXO/Qad0ILJ0D8gt03/7iysZths4XZOObpBe3is5vkp/dbDi3QzdSnNW1YVnHbv1PngYfGrI0cpdGgk537B/rEVgiLR5pT++t8GGlFJY0qbDsmNbgXAwPfHz1vkBusE7R1ko3NUFbM93ZRnbhNEFPA/TU0t3V0u5KaW8F9FfA8XIYKoehEmroiKj/dcXAPkvr7nurdl0FLNkvvubo2Kw9UUyNbBC6VILrKg0sGfExwIn1zJvb4Y2tzImXLANbVjRtpb70cfC6IMsKWhuld1CmFLDIqtGdowNuwW9yN5aEKWD5Qe8n3nEMbHAXLL44GY6ziZkZzM8UJFWExfF7cVwNQ5EltLdQXiVYlsOtghGOzwQWo7d5Fq18M8bjxHmM5eMuxfGL8+H4mxH2fDiO8iqMlqvxEC4I4prgDAJraAp11vEJJNfQJf7nz942hSU2uqRGp8xg6x0+O8PipPm40GoXjKOpMyPIrTDPP7flZbHaIlPaNCafwjIPHB5Yt2ztgefmt282DWxghp+HkeeZ4RdVg+tzB7YWdW5f+eof4W8eAn8+leVCN7zMLtf6RdrkHDPhizSwZjs/K1NhXQ9Y5bnBGmV7GwKrvYXubIGuJug5Cr310FvD9FRJuwMIrIEyOF6Kx9BhaugwM0CA1bbz3qqd8KF1mQpL9ouvOTu3aE8U06MbU/l8G8VjG6lTG+H0RlwlHN2sPrlFdOIlBNbpTYqRzfmDO1bu/Q2sWQAuJxpH9XZK7yDyCiNhyem6K0RGGoV3LbCQVuTwUmjFspnt/ufXb8a+FY4oxhTNOItN5lgCmSVYjgRUkei6OEtodRWwKIPNvXDF+SgCi3SsWAFb58NxpFUkfiacEIA1NsONTCdOziCnhqb4wUmCrUuJE5P84MXEz/54uxSWW6R30zp7rnfRsZPnL4X56QiKLGQWi8uFwtpojMNaOMJhavua939UZnCIVTZaacGQBmc+WK253/y7+ypfWthTnDWwXjX0gn7gJXvf5mXdux8MbnX/05fBagNPAZidjNErVrsUujxG7hTa7YywzZvUwqKMberp6/XmfvGWwPrYmtcrEFgdrXRLI7Q30Z3NaGrvOYqWq94apreSAKuMGiS0QmYdgeOHmYHXFAOvWhBY2+HDay8Dy+OS//IpZ+dm3fBWZmwTc2qjkICcCSzFyGbd8Bb5iY1wdguMrteObi3qLJ73y2+hec1qhyxLElgmDBqUaHBwRirf7W7B1hywksCSabMfevjDJ4ZHhDbW1Mw0DhMkwIoluExgYXxdIh5n0RcaZvk/bNiWLgnTwJpgrwDWG6HYuUgSWKdD3NgMHmlgDaaANTCB5Lq9wJKb8ymNM9u15Itf+8E3vvNvX3n6mae/+f0v/uPXv/a1bz319D8/9dS3v/r0t7/69He//NR3vvzU97749HdBniUzu2mDEyRmkGarLDgkBgryzF95YuW+/7mnu9jfuX5e+4Z7O3aue/UPlq98Qb5wOaiyKZsfsuyQ7aNMXpnOL5E5FSpcImSSpTraem9x0/1qhfXgI2ter8iuugpYDSiv+mqgr4rpDch6KqS9KWANl8Dxw9SJQ8zAa8rB16ztO64LLFfXlgxgvSQdu0JhKU9uNp7YohkmewlHXzKMbHUe+W/JI++j3V7IsQnAwlNtRL+oXOlRqXySu2x3zl0HLKHcAD3JFUGRhTvXRDqHWJ1jd8/fVLwzFI4L64OEVqiw2CSwSK89wQrAinJsmOVnOAFYVlpjQVuD3iEorExgvRlhz4awe3UmzBJ5RWg1w6aBlVZY/ZcSg5N8/6WkwkpVRrf4w9NLadw66wJGZRerbNL/j73zAG+rvvr/uVfTsra8bU3v7BDCCGHvFt5CoS/tS4FOaKGU0r600MGmrDIKZZPlGSdx9nIc25L33lOWLMvyyo6zPKR7f//n/K7kOCHlpW9d/rzFz/N77nMtJ7J9pfvR95zf95yjSRArotR6Y7gmLlwTp9TGK7QJCm1CmCZe6NQu0hjFEVbQGCWRSWx4AhsWr8LywGiwmeH65fDwt0wfPGl57/fih+6Cay9HN4M8UhOZjAYIvREirRCVJNEmScOtctVZYAl/+JcELH3I1oA5rATQGdHfZF4CM4HVVAstdUw7rcJBRzsCi+0OAgvc+8GzD/r3gWcP49ktcm0Ld28NAuvWKyEpGSKwZQXYLPJXHzF3ZGn7s6S+tbLBNZKhNeKhYDzIDGNIqBjIVHkyNN4suS9T15eZ2pFl/PAPYIqVRJkgIh70GBKyeisYsEmDQmFTzwFrdiX3V+3ZcPtJbxHy2ZRZmOiluQCrXGdToEzQV9a2CbM/z/inDQ3cpH+Cp/mc0+MnJqZO0wgJ5dUZjrzzUWa4waKKSGLCEuQ6W/Liy49O4hbhMRw6zwtLaCAzTLNXg+PUzn6K957k+k9hlt11gqC2Okm6jgZ6jvM9x7iXPswVHMwz+9sJ3rEv7ZLij6ZBGQWHSaoJrukHQyGbRaQN9lQI/rb4pQWibRBvBUsi3rGJyWBOhjgs3KHtMfDfT+8qTLfuE6Kbmdbtf3W8gyGhPgU0NpnSrFDNAJZpCVz9Hyv3lESXlSla6sUttUxbLXaPwZrBKuipAGc50+OQdhZLuvaBex9490L/LvDuYL3bRe58hSs/viXvivINcMsKSE6GiARsAWZOYF/+mc25PnowT+z8WD+YKfV8AqOr4Xg2cyiLHVor9q0VDaxTHNsU5suJ681Z3pK3aPVLsCwd9FGa6CSpxkSvc/DdK1QyhYcnzimsL/nz/Ev9cUFghZgVohXdmQozybRWTVSKOXlpWVXzJDWyHz155uTpUzzhJqbGxyfPUK835nNOTJwa57iTfu4MRz5auyEMS1KtIItT6BKTF19+ZII/7hc6tSOwhP58w7RsEGl1hsNc+ym+/xQCC5NWJ4hzjDhPkY5jga4xvutoYCawznbgpPmdLw1Y/+QPYtTYtw9hpLMJ8+hx1ov6q9UhE6UcBVYYBZZUmwBaQWEthmu+hcAqLw1rrRW31EJ7NQLLWUlpVQa9pUyPQ9JVLOrGvBV4d4N3BwxsYwe2itwbFa6NIWBdCenpEGsVRZoh2SZ57RFTe6bOnaFwrdK71ob1fQoH18LxTBheK+pfJe9fI+9bC85VBhdWO8/PfBluXglxcYr4ZFFYLHpotZRWeivo8B0rNLeYA9aXSpB/8q74R//7NLBC0ZYgr3CXyhC/BGRxSkOyXGtMXnBJ3ta9uEdGQkMWpgLCduGxU8dPTYzjqFSC8eDpAFmVvRW3yTRWRh4v01qTFl02A1hnO14FA4AKVgAAIABJREFUi5zP4M6g97RAKwSW+yTKK+cY6TmJwOo8znUdDbz4QY7gYMZJ8WrsZjddrf2P/sn/v/49q6Ftm2bU5X72kf9fv9v0z/0fgRVTUYbAaq1mOqqgowJ6qbzqRWs74yyRdO0X9xRA3x4Y2AkDO8C3XeTbFgLWelRYN18JcWZQx7HKGDCZwl9+xNa0LtKZETWYEz+Qq/Gsg+G1cDBDPpITeWBTwmh+XG9OinPD8pa8iHd/C9+5HuKiIc4cFp0kDo+XIv0tWAOALVsRWEJ31jlg/TsDi972GLB8BljJIIqRqhMZeZw4PD7SmKaPT9qxr/TQiYkpjoxPkSNjpyY4akoiZILnsUUfj1UpxyfJxxn5rCJaYUiSaWxSjSVp0WWHxzkhHhRqBqnxCn0MQjA4DSzPyYDnJO8+SWl1nO85SdqO+T8HWAKzpm+2r/gJtnyg2mrmUYL1N1+hN9i5wEpAhaWLx9pG82K45vYr95bEVJQp2urEbTUIrM5K6K2AHpRX0OtgnCXS7qIgsHy7KLC2inxbxH0bFO4NCa15Kys2IrAS08OiUnDQmcWifuWx5NbsiN4snTdb0f6xyr0m7FCedDRH3v2poX2NsSMzpW7tyrKMxL8+CTdcDEkJYLJIjdjnJ0yPNlraM/ocYNFa8a/Q9fwSXtyvXdKdehGn/dPTCis5LGKeKmaBKjJNojaz4XHhkVaQ6X/6y991uAYnqNQam+CPn548McWNE3J0Yur4JGLr+BR5b00eq4yR6m1yQ7LMkJi48NLD49wRTGDh6PnpImdsdEWNV1ReEYoq3n0Ss+yYtzrOd59AYKHIOuJ/7oPszyqs/1vAEt67gqr6Cmor4df7PGBde/vKAgFYNeL2Koa2P0ZgOWkVjquUcRZJuwvFzr2MZzf4dsLANvAFgRXetzGhLXdlRR7cfAWYhDb2ZjAaJS8/Yu3K1Xvz5J7MqJF89UA2682Q9K6Jbls7r239RfU5l+35OOKRe2FBCliMYLGxsVbQxMojbIwqHtOCegvKK6qwhLpLWis+B6yv0mfgbDMbdTUWNwQnep4FFoRbQWZk6fiD8Ihkqd4CiihFhCU+cdGPHn4id/Perv4DJ6cIDkklWHlzkicCsN5ds1ETn86o4iE8HsKiExdeeuhM4PAk0mradTVtE/We5qeB5TrBCen2nuM8CquTpPXoVPvxQNuRqX8DYM1E1czz2X5B/6nbdRpYNOk+Q2FZFsJ1t68sKIqpcCjaq8XtVF51lYKrDHod4CoBl53tLZb2FIidu4PA8m0B32aRL1/syQvvywsC65aV2F5Gb1FEp0LyPN3TjyypzExryzM2rk1vzk6uX2drzZrfmruo+BPzJ8/Aw9+BFfPBbAS1IcyYxBrixXojhGMnW1DFIa0EYNEclihUxvSv3pf4Sr1e2Dj7q/YL/Yt/H8xcirUmPGqsQiGIGJ3WuMIi5imjF4LSrIyej73llAnotFbGy3RGfVzqFTfeef+Dj9/30OPf/dEj337goe/+9NF7fvLoD3/5uxW33MVqjaCOl0UkKWKSLQsvOXCGDwJL6NQe8rULPgaatwpqKyHd3n2MdB4nnSdI69FA2zGu7Ujg2fdyqN8icWYO6/+iwvoXv5r/FK2E6zm9SyhXJ1BbAw0Jp4FVZVe0V4rbaQ+ZLjvjLsMKZ6zCKWZ790t79kp6dzH9O8G3HQY3w1C+eChf7MmlwMpeWZGLTndTEkijlSobaIzMFSuVD3wn7Mf3yB64U3HP7ep779T89Lth990BV18K81IgJRWSUkEVo9FbtVFJIDVINSZ5hA3CYySRtiCwhArT4NY2ZrK+4ld41n+9rxuwhK36CwALFBZF5HyQGRVRCyAsQaxLwlntSiPtvWkFWYxYlaAw2NBvpTOGRZmxSFiiE+uNOA5La5QYLGKdldEkTANrRjAYzF5ReSUU4vCCvMLNwTGkVccYAqvl3whYwi6hsFGInZdpDv4ruEuIwNKirQGBpYsL5rCCwCqMqS6Wd5RLOtB4BT12xu0AFy3Ece9nXfukPbslrh1M/w4Y3AqDm2Bok3hoo6Q/J7wv19ieg8C6dSWkzANplEaXIlVZIMaG/DImQUKiKDYFtPEQbULDR3wSRFkZg5lRxWt0FgY0YeFxhthUkEfLIm2gNUoibTTxek4qQ6gKmHUifMWf8OsILKFpyQyFRT+pNMmi0GK0WGMYMj2ERn4KlSI6E0aUOlo0HzwXAsxgsGldvOLAODmIc+dxtATm2qmJYeAUQdcVbgtSd+gJ3nmCpq6Oka4x0naUtB4jLUf5tqOk+eDksx/kzimsL+HOobvG5wJLH4tdnq3z4bpvXFVYFFtTLO8sFXeUMj2lWOTs3g/uQqEEh3XvkTp3Slw4wxnllW8j+DawvjyxJ1vpWW9sz1pZmQ23XoY+rGgbzqbFlns2moHCAYjhSmu4EvU+o8N3jiD80eymMkpVRonaKNKZsGxQbxJQJbjepOoZu8ahlrlfwoX66vyIOWAhrVBah2gl0iRTYM1kFoZmoWTBjCxYMBdGH8GkGHW6L14xegabtY+c5oVO7b6g6ypIK/dJvvckcVJgdY3xHcdI5xjSSgBWy1G+6dAcsP7ZWO8L3mBB4+hMhTUNrOtvvWp/YWzNfnlnKdtpZ5y0yNm9D9wFaLzq28O6d0md2xFY3i0orwY3gA/btIv7M5X9OWeBlZSMwgqpZGX0WAMo1ljlGlu40iqMXwzRyiLVYEMuEYUU6E1gCC6BaMJIDtkMYAWdz19q96Ev6XX5nJfv6wcsip4ZAMKq9/OWIK+mRVbouzNfLUGcT0v06W9ZrBRYIxO0WftpPFJgTcurkE10jKBHNASslqOk6ShpOsYjsA76n/0gb05hfc67dra+FQJW0tmQEIFlAWs63HDzyqICCiwH21nCOIugt5Dx7AP3XvDsgb5drHuHrHe7xLWV8ebDUD4MrofBnLPA6shcWZkFt16KXn+Dlc6UtyCwcL5GIkQkYQuwCBuquUgbRFhZvVWiw8pzWq5kxWmpUVYwYKKdFudjE3dhTfvyZpYKzNYF+eo/z9cOWMJLEpJLAmimgRWE198B1hdJcFosiy4fOc0Pj5PB08R3SqjCQVqFfAwE5dUYWhm6xvjO46T9GGkfIwKwGo9yLUf5xgNTz7y/fg5YX8LNMw0sqSqUw9LHQvQ0sPbG1RWGddlFXcWMq5hx72M8e6FvN3gw0c72bZe5tkrcm9mBTTC8CYZw4jw7mC3uz1D2Z5s6s66syoZbEFhMCFis3ka7PydCZBION4tOQvEVbUM2RVgZwbIQY4NY+mAkOhgEWknU5vNoJewYzCxj+hIu11fhR3wNgSUkp6Y10cyTzyqmmd+dPp8G3PTJ9LcspkVXDNGGor5T2KB9Wl5hoytaNjiDVlznccxetR0jzUdI4xFSf4RvPEKCwKIdOOd2Cf+lNwkCK9jAzyzDZp5xMANYVxYXxArA6t7PuPYzbmzGAJ5d4NnB9O8UeXbIXJsl7k2sbyMMbxCAJRrKCQEr48qqTLj1ErBaIdIMOjOjs6C1GOsWEnH4oyEJsRVN2RQtSCozRJlDCLMxBhRcNBK0SlWWaWEV8jwHU6v/0uvzFXzyrx2wguop2CX9LGhChlKaivofnGjTnJo+Ofs8xoUrBoVIEMubiZBr99BEO7quaNkg1VZc53Gu4xjfegSBhZwKAathdPLp93KFlsHTwJquzvkKvof+7/5KnwesG28RgCXvxoJBlFcIrN3g2QFe3BkUebbJXJulfRsRWCPrYTgXaJt2iReb8Jk6LwAsucamUGJfChzarA9FhZE2DAMjrNiWJ8IsnLN6TMzLVRYFTsfAYBAtSFi6TxfNW81MwP/ffQn+0d/86wgsoRsvkivYND24U0O3/zDrKezICMcLgWyaU8GEfcjPhfUTArAGz2B582eBNVNedRzDjLsArIbDpOEwKqyGw3z9gck/vn9BYH0RmE6jc+7kf74CfwdYJrCmwk03X1myJ7a+YAaw9rD9e2YAa4vcnR8E1mjeDGCtCwKreh18YzlYzIzBCDqjSGsJU2OuHRvpaJJoNBqceSMMNFMpTeFKk1SDYkquwm1EtQJXuBKBhRuaBso1OmVWpMUH5dTn/I/e8/+n//3XEVhnU1SfBRbd7JsVYHlPct6TZ7NXKK9o9mqmvGo/RlqOkNajSKuGw6QOj3z9AT8FltCrK7hBiVJLQze/aSH0F3vPYdItyOWzdMa3/rn/XeDg9PG8737Ol/T5g9dwepL2BU6EhMv0Dz13x+P85w99igSfR9jxoA7J8z4ehCtz/hFv+NDC1/Gcy4WfNIJbRTjiRltkEuhtEjW2l5GrE0QaI2bBrfPh5lsud+yJatgj69nP9GLvY9a9R4zx4HbwboMB3ByU9m2UetDKwIzkwVA2DOGEQda3LtyXldCVcU11FuawzLS7IQWWXGOTq2YAi/Zio3iyqMItGoVFHY5to6UqS1i4RRWOtFKF42aidBpYQp4LSwuDOfhz/8DzL+b0Nf+3OfnaAetzX7kvmMP6nLeFJX7+ZQf9NHV1BqcN9p8hrlOk47i/+wTpPMF3nkCPaPtxvu0Y13qEbz3CNx7ERwRglQ2ONxwllUPjT72fgyFhVKooIoVRW+XaRHG4SRpu1kamyzS28Kg0RmlilKawiBSJFqfOSLRJckOqSG2T6pLDItIk2iSR2ibWJLMaG7aBxvEqwhHnrISG8ZzVldT6j92gPlMDcD4jQhumVGOi/wMnD/2PS/hnAjoF8gbhK1jbaAA+zalQtzIh9kG7iViTLFUHj1I1nodWIj1JlKmSZdj/LxmFidqsVBsVKhMFEAoW5KPOJotIFRvSWF0KqJNBlQTqVFCnQUQKZrhjbSKN2aBJUTNGgypdHDEfkpfBzTctrymM6NjHdO8G927o3i7r3SXr3cF6sCsDDG2Fwc2igY2S/vWMN5vxZoYd2ABDGezhXPCt0RzdEt229qryTOyHZUzElntaM/ZQ1dkEWEu02IFvuuWZlO4ACqGfkKsSwj3BxDAzezVzZ/Dzuf+57/PPeQN/1b81B6zZfYUstouu7j0yPjRO+k74e8cCrlO8Z5z0nCJdJxFY7WOkTaDV0UDrER5z7QdJ8zFSM8o1HiXVBwLVh/i6w+Tjgjpl+hXY+jLcxBqSRdpEdVR6uC4VxNGM0iTR2hiliVWZpbpEidYm06coItMZpQXCzRBmBHkCq7IqItOVEemCMDmHMujhwD+ZzncIqSqMgoPAClVZXviyBLEidF6fPtIpRPgtQcfNONIfLey9Bo8zs3IhdYCqR1hB9tEBVsExVp8xnUwH4MIdK9zbQiQlU1sUKgysBFrJ1BRYtG4Uwk2gMoPGCtok0KewEWniqAWiuHlgSmUt80BjFoWZFep0WfQSMC6Bi6+E//5FStO+8Pad4NrN+grAvV3avS3MhakrQOPVZhjcJBrYKPLlsgNZ7ECm2JeB47lGMmFwrfLQJkPr6msrc+GGy8CYjJuDtMchq8fWxkKPsJlAEf6QryeAZl6HL3I+B6wL35lf5Npd6N9Y0i+/qXP0xAE/6T/FOY/7e8b8nnHSfZKn8ioILMEj2nyEa8ZEO6k9QkqHJuuOk+ojpHRksvYYKfQce31T0c9e/ijl2rvF8QtBGoeDsDRJiuh5Yl0SFr4aUqSGFKHeRaLFz22JyhJuSFHok+XaRDlWxlrF4SaZ0qJWWHVhVo0ClxBiCJZF4fM8hIzpOI5W2Or/geO0oVGmFrxCn3ekYiFZpEmdXow2ldGmwmeXLhVwJdMOUGddlGin1CfgMsTRFcvo6TJE05M4kcYs3Pl4WXQ2VDf0z2EjE5noJCbaBpEWiDDhbqAuDrRxoDaByiQ1LgbTIohPh+VXiR59lHnteemWTw0d+6BzO+PZKxvaL+rfxXbmKzw72L6tjHcL481nfRvFA3msD3PtGAwOrBX7MlgfdjpWjWwwtK6+qWETdokxzQFrNm+xOWDN5tUUaS2WJVd6jk8NYjyIBYO9Jzn3aQwJO0/wHWOcoLCmgYUZqyOk9hgpHZmqPkqqjpB9vtOOQ/7qY6TmONnaMbK5aSCrrOvib/0IItJAYRbHLsJ7OMwo0qdKIlJBbRUZElmNBcLiWJWZUZogLE6iNodpbYw8DmSxWkOKOtyiC8N1AWDRufBC4bdg9KeZYAvarPEmn3FETFgoLM45MjrMEAvZ3y9ylKoxxBMgdaGj8K2zRxRchgSIjD27gpwSaHXuEUFmwoBXj3twrCGZ0dvQq4kNZukGnEHojB4Lhmh8wgQzY06FqBSITgdjGlyyMuHFF1I3ZCSWbDM271O37ZF27WGdu1jPbsnAHnH/TujZJB/YzvZtZj2bJJ6NUu9G8UCuaCgHDmTDAZq6Gs6R9K9VDGUrfbkRbWtubtkC1y+bA9aFPtf/9zfdHLD+99fuQq+EJSpl2UE/6T0ySa0MnOsU7zpFOscCSKsTXNtxvvUYukObj3BNh3FPEGPA46TiIFdxiK84SgqHx/ePTJQe4YsPTDWcQX6VDE0U9p0o6Dn6wDN/0y283pB+DUSkQ+Q80Ngg3CyOTpNEpYn0yeEx6WKdDRRxgN0pg/3Xw/Q4XyO0hII1oU0FDokSMkEyVer0oqki3Oukf9oXOVop6VLFahRNX+CI4e2Frht1FWkRf0JwJxyxVEUfzRgMjCGSrmiRPjZYyIm/pFBQlSrSpIvU80TqBYxmHmbrhMw09o2yArYVNuOEV3UCGKziuGSxOY0xpdAKZBsWHq+4Dr5z77wPP7i8ZO+ChqKYxr3R7lKmebvCvR86dyrc+2S9u0TOrWL3VujLl/i2Mp5N4r4NYe4NCk+e1JvLDOXAoSw4nMEMrFYOZkrcnyoGcL58VMea6+o3wM2XzgHrgi/3//rBOWDNMrCMC1ccmCKeMa7vBK6eMX/3Sb5jLIC0GgtQWgUorQJNh/n6Q1zVQb7mKKk8TEoPceVHiOMwV3hgsnDUX3gwsKXvxN6hqfpJsstz2n6AlIzy2zuPvrmp/CdPv7fyPx9VpV0J2hTQp4LSCrokUJkYfVJ4/PywqFRQGcU6nAUPyliqjGaEeKH+JLhNJvTVUadKVbhk9EgF1/m59lDa6AKPzyi9nK7B/JwTwUqC+X6hRG7aNSLWnp1zIVObgkuDHRQopOJEurjpbQF8u2Pt51lUidSLRKoloFkAOhsYzKA3g9aMtBKWPlGSsAAS5kN8KpjSYd5FcO3NEff9OP6J3168Me/i8sL5dSVRVbs0bYXQtB1ad4QNloucBdC5XeXZJ+3eJnJuBtcmEXa82sR6N0r6Nyjc6xXuHJk3mxnOhsMZcCRTNLhaObRO6l0TNpihHMmNd2atLFkDt1wxl8P6X7Ppgv9xDlizDKyEBZfbm91D48Q9Fug/STqPTnWN8W3H/JhrP843H8eCwcYj1L5wiKs/xNUcJpWHeAFYjoN86RGy/0Bg3wFu30G+5BjZ4ZvMd5/c4jmzwzu5tW+iYIgv9nFb249ubBh9Pb/ysbdyvvHzp9XzrkHBFbcQFCbQJ4ljF4DKBGqzNDoVsE1lyG0YPKEbhdNZ7bPjzoQ52EgBsfrvrtD2XHCfLtSPKZS8p6YQAUYXPCI9P7Nw9nqo74UgBqcVIua81Kli1Txc6nRUUrgw7RVMfgWn4YbG4uoTMW6NSMAZYloz7soZUiSRCyB+CRjSYP5K5vZ7Nb96KubNd8zZOUkFe2yVJdHN9rDGffK2IqWrnOncJ3M7wjxlbM8+mXOfpGtnWO9OtmeLdGA79G0QH9hGK5wxdRXWl6PwZEsH0MeAwDq8TjK8VjG0TjqUIRnOCD+YZ3RmLcx+Fa66GBLmclizeYvNAWs2r6ZIa5VGJb/6UY73JOk+PD5wGoGF43DGMBhsGTsfWHWHSdMxUj7irzzElx0IFA1PFR8IFI5y+0bJ7uHArhF+zwGycxjX9kFcOwb4XQNkm3uiYIDP7zyx3XlqZ8/JDwo7Vjl67vn928oF14LKhjdnzEIMG+MXYeZLL2SvQzns6TtcYFbQlBAauoW7dWdxIJwLgAilybEJj5h2tsAjxncWgTgzjzT/ha1RLrSoATLkJ0Ke0tlrdP9xZhAqlJ4ki1ULxKpFdC0QqReI1PMYTXowTx90bCQGoWywQAQdLxZlw0q9mFSInw+2iyDtclh89eKX/jb/vYz5G3akFRSbyioia6rVTfVhHfXQXcb0V0B3CTbn6ygSO+3QtkfcU6j0FIudu6F7C7jy5Qf3gjdPfHg7YIp9A+vLlQ5ky7xZ0gEc4AyH1sKhdZKhNVLfavFIBvhWy0dy4ppXmV77NTY7jpsD1mzeYnPAms2rifUTGtO9j/zeeXiq/yRxHgm0Hhjvpt6r1mME5dVR0nAUHe11h7naQ3ztIb56lKs8wFWMBspG/Y6RQPEIt2+ELxjh946SPRRVO4bItkGy1YdrywDZ7CX5/WSzh+T3BTa7/fmuiXzneH7PqQ1txzZ3Hs+sG/rBS2uUS78JthXyBTdA5CLQzgPDIohYDPqFoEkHXTqrny/Sp7O6FLEuiVVZWYVRojQpdIkKXaJYZcI8t5Yuwbqls2GQpU9kIhLBYMOFriIL6CxY0xthYyOw6g11k84srGARr9aEmSPhQT2N0XTCl8m4/adNAU0yLm0KfqlPERnmMfoUishgVh40KWiYUiRKtCkyfZpEm4Ks1KawOmoTl8Uy+iRZXLooCncS8deLotV5cYvAdiksvQ4uvRFuuVP37MtLd+1JKy4yV5RF1lQqG2rlTfWS5gZRSxPT0gI4fb4COksY2kNG0lEi6SgSdxayXXvYvr3QT5u1D22FkS0wkg+j+TBKywaH18NgtsiXRbcF18DwKhhaJR1eqzycw4xmwODq8OEcU82n0h/eAdZEiAhOPJk2mn020pmzNXz2mvy9R+aANcvAEkckXnzDXVU9I/0nyeA4dmVoOjDReoxrPUaDwWMXAFb1KAXWCFc6zBePcPuH+X3DZO8wAmv3ENkxRLaHaJU/QDb0kzwvyfOQ9R5+vZvLdQVyXf71vVOb3P51rcdzO09tdJ5Z33Eiq+Xo0xurr3vk1St+8Kf0b/xcs+h2SLgcoi+GmGWgmw8yC2jTQJUk1iSHG9LCtInisASRPF6mEZBkAWFzTW/BOX24xWalJwk04KI7bhFmPDcIu3I2Vm9jDYmsIVEUkSQsgW5MBCVdZCKOoolMZCIwvSXWpom1aSJ9OuVmGsolTQooE6mfMxn9nBq6tOmsLi1MlyRVmRlFPIQbGW0iG5kCUWkQM0+augIlZPQ8MC4F08VgvhgW3aC4+fvSO36ufvDpeW9lXppfOH9XSWplTXxTPVQU00mo9dDZAJ1N0NEE7S3QhsBiO6tEnWWSzjJph0PWYZd27pd2F4qce6FvF/TvgIGtMLgFhjbC8EYYysOawZH1MJoDw1kwnCH2ZYh9a1nfKta3Suz9lPV8LD+Uw/SviRvKT3d8DDdcDnEYAk+jSjj57K04B6zPXpO/98gcsGYZWLLoFFZvfXPNFueRQM9hf8fhqf4p0nBwAhtdHeMFeVVzmFQfwv3BqoNc9ShXNRIoR1oFHENc0XBg/zBfMMQXDJE9QxRYgwisbQNki5ds8pLcAZLtxZXlJVkektnHZ7i5LBeX00fWdE2s7hxf1Xnqk9ax1R2nVneceq/+0KrOU6+W9j+WU37v21u+9ezqFQ+9GHvNfWC9EmKXQ+QS0M1jdPMkunSpLlWuTZUbUqmSotNZIoR+TEYwWEXRNibSwkSa2AhcIrpYg1GsRy8FTu5QWkVqm0iNtntQWUBpZtRWRm0FNf1SZcEH1RZQmSRKc1g4lp7IlMGyXhl1VzBKtOZLdKlibRryS5PC6tJk+jRFuFERFhumMYdHpUniFkLMAohdDKZLIP16mHcTXH0v85MXNL//WPNsRsxb21JyK+eVdMUUNMSVtMZVdSlLGySVDbKWNratGVobob2Brnpoq2faakV04KCss1LWWYqryyHrKZY494t797HuPeDeDu5t4MmH/k3g3QDePPCtB18ODFNgHciGkQzRYIbUt1bqWy31rVaNZoUNrJa6Po3qz7G0Zhj+9ltIScSLhtsL0za3oLv9vLtxDljnXZDP+XIOWLMMLAiLUSbMT1/xjereg65jvOcMqfAcdY5j++PGo9xMYFUd5KoOorbCeJACyz7MFQ3xhUgrfu8g2T3I7xokOymttnrJ5n4EVo6XZA6QDC9Z108y+sg6N1nr4le7+Q86x1e5yFoPWe0mH3X7/9Z25oPOyTUe8m735Ntd42+2nXq79cQ7Lcffqj/00v7eP2xueGO/81efFlz+gz+J0q7HaDHmYohbBuoUTE7rktDtFZkOMekQmYLucJUR/UoRSaHQT5joiapKcK5TkwRWCFG7ZpJYZ5PokyV67KOC9m7qfceac51Vrk2WaZIkKhta85U2UCcinnSpELEAIhdA5EIMYyMXQsQiXFELwXYZJFyEkIpbCuZLYfEtzLcfjX7ir0s+2pO2piRlfXXytvbEApe5aMBYMhRVNqSs9kFpN1Q5Zc39bEMv1HdCcwc0tyCw2hqgrZZpqxa1VUqE1Y6oknY5xN0lYifOlWBdWDPIuneJXNtEri1i10aRO0/syWP7cxlvNniz0Xg1HPReiQYzZAMILNnAas1oltK1OtaZmdKStdSxGm5cBqlpoIydA9bn0Od/8a05YM0ysJSx80ASKYpIevXTja5jpPsYaTkUaDg4Fep4Rai8IlUH+cpDfMVBrnQUl2MEg0FKK64QacXt8fG7B/mdPrJjgCCtvHx+P9nYT7L7+Swvn9nPZXj4NX3candglYv71M2tcpOPnfybzSdfbzj+XmfgfSd5p5P7ayf3l5aJNzr8f2mferX19Cstp15rO/NG2+k32k4/Vz36WsvYX9rGXm48/ErToRdqhx/Mr7n11ezYm35quPQe2fxvitMBV+79AAAgAElEQVRukaTdJEq5gUm8GhVZzHKEWvQyPMYuwxVzEUQtZA3JYh3OmGDUJtCgmYDV20QG7AVMNwTpMYL21cSWdakQNR+iF0PMEohdgoiMXw6mS3HZVoLtSki8GtKuhyW3wcV3wiXfhsvvget/DPc/r3l5w6IN9ct2daVubbZubU7c223c22Uschv298p3dUj2doeXepUVgyJ7X1jdCFPlhUo3VPZCdbekqVfR4Qrr7GGbG9mWGlFbpaitQtJeKmm3Szvtkq5i6C3CuRLuQux97N4LfXuYvl1iNzbnk/duDuvdpHBtlPdtkHrWS/pzRN4ciS8naBYdzZQMZsp9mG6XDK1hnR/FerIWNmZcX5kT8/TPId0KiekQHneevPpM5Tm+/eYU1hcn1xywZhlYeOvqrJLIZKV5Udae6tYDk+10wITQ7qr2yFlgVRzkyg9y9gNcyUGueJQvEtLtwxzSaojb5eN2+rgdA3yIVtwmD7/Bw+d4prL6pzI9/nV9U2vdU6tc/k/d/k9cgfe6Jj/uI594yAdu8qGbvOMkr7f5X26ZeKV18tV2/6vtgVfa/H9u97/UNvVM4+kna4+/2Bl4unX8qcaTv2088dvGE080jD3RdOJPTadfrj7xaumRVxyH/1xy8I/b+374oeOaJ9bMe+Bl811/MN/1e8vdf8B151Nxtz2uu/5n6pX3y5bcJltwE5NyDVivQO4kLA+tiyHhYjAtB/MlYL0Mkq6A1Ksg/TpYfBssvxuuvk9y80Oy//il9M7H2Tt/DXf+Bv7zKfivP4l/+krEk5+mvrHjsrUVV+c1X7qte4HjcLz9SGzxoZiSQ5HFI6p9A+GF/aoSn9LuCyv1hpX7wqoH5bVDsppBcfUAVPUxVV5Jw6CseVDc4JE0uCSN3VDTDBWVoqZ6UUuVqK1C1O4Qd9gllFZs935w7gPXXnBRWrl3g3sn9G2Dvi3i/q3S/s0yzyZZ/0ZZf57UizZRqTc3rD9b5suBkWwYzZT5EFjikbWS4bXKwcwk1/rLilctfO1JWDwPElMhLpkK0nPiwTlgfXE2XfBfzgFrloEF4QnSqBQcqhoeF7fwqtzixoaRidZj1Hh1hBeyV4K2qjjIoZXhIFd4kN93gCsYDewd5vYMBZBWQ4GdPm6bL7DNx28d4Ki84jb0Bzb0B3I9E9me09me8Yy+M+vc42tcE5/2Tn3iCnzoDLzTOflWx+QbHf63ushbPeTtHvKWk7zWTV7u5J5vmfpT0/izLYEXO8iLXeS5NvKHhsDv6qaerON+30x+10B+VT31q+qp3zaQJ+rJY5WBXzgmHi2dfLySe7wy8BtcU4+Xjv+q9NRjJSd+WXzs0cLDD+4cum+j6+6sjps/qr7+vfKr3i657LWCi/68c9HzW+c9tzn92fx5z23Gk+dxpb2wZd5L2xa8vGP+a7vn/82x8KOqZRlNl27oumKbZ8VO36W7Ri7aPTJv+2DS9kHjVl/8jqH4PQfj9x6K3nNIt+ugfMeIdOeIbNdoeOFhtf2otuxouOOArGRIVX1IXjYgdvRJyvtElS6m3CmpdoU1eth6p7i5l23sgdo2UWO7tKVD3t4W3tUuaq5hW6qY9gq2o5TptLPddqbHwTiLxD04vVnas1fs3C3q3Ympq/6tMLAZhunO4Eg+jGyCoQ0wmCcayJN5c8M92QpvDjOczQxnyn2ZYYMZzGgGO5IRc3xbRPm7Cz96Di6aD0YbhEVKjOnYtf3cBNYcsC6IoS/+4BywZhlYYp2NUZslkcmsIRFUppu//+j2mt72o4QW4mDHq+pD6BQtP0jKDvCOg/z+A4HCg4F9B/wIrBH/nqEAOrCGAufTisqr9f3+HM8UpdVEkFauiU9cgY96uY/c5K8dU+92k/f7yFud5JWWqVdbudc7yYttgRc7+Ze6yHPt/DOt/DMt5A9N/JP1/t83kCcbye/qyW9qyRN15IlG8ngt+Xk592AN+Uk1ebCW/Kwejz+qJA+U8Q+U8XhSHvi+Y/L7jskHSv0PlE5+v2TinpIz95RO3e2Yuss+eUfJ+LeKz9xWNP7NYly37D99c+GpGwpPXrvv5DUFJ64pOHHtvpNXFZ5cvu/Esv0nF+8bm7/vRNq+k7bCU+bCU3FFZ7QFJ1T7ToXtPyMrHpfZJ2WOKUnplMwxJXeMh5eNK0rPSIqOifYfktiPyEqPyMoPsvYBacWApGpAXOUWVbnFNS5Jba+orptp6GRbukTNHWxTq6S1g2lqgIYacVsd21IFrRXQXgFdpdBlhx47Dp3vLRI5cXqzrGe3rGenrHeH2L0dPFthYBNaGQ7kw4FNcGADjGyAYZyIIx3IDvdkK1FkZct8meG+rLBBdIqGDWYZ2ldZd7wJN14mSVvAqhNUUcmgioUYark4l1mfvTnnQsLPXpO/98gcsGYZWEgrfSKEJ2DHEn2yJCL1tvsed7SNtB3g60cCdQdJxShfcYAUDfHFo6R4lJQc9JccmNw/NL7Xd2rf0EThKIqsbd6Jbb5ASFuRDYKJoY/k9JEMD78Ws1dktZv/pJf/2Ml/6OTed5L3esjfusg7XUirNzvIG+3kL23ktTbycjt5qZ282MY/10qeaeWfbiZ/pOupJvK7JvKbBvLrRvLrBvJ4PflVHXm0jjxcRx6sIz+tJT+pIT+sIQ9U47qvmvxXFfleJfluFbmnkr+7grurPPDtMu6OssB/lHLfLA1808Hf6uBucgRusAeus/uvsXNX2QNXlHCXlwQuLeEuKQ4sK/IvK/IvLfLPL5yYVziVWjSVWOQ3FU/FFE/pSyY1JVPyojOS4nFx8bjIPiGyj59djtMix0m6xkSlx9iyw2z5QbZ8hK0YgkovVPYz1W6m2s3WuNhaJ1PXwzR0QmM7NLVBcys0tzKtTUwrzbV31DAdldBZjsDqdiCweorBVQgD+6B/t9iFM7uk3dukzm1s31YYyAcfndw1mEfH4eSyg9iSQTyUKe9bGzGcq3atjhhcH+7JEPV8EjG6Mb4rK2n3X+E710FCnCjCxIbHiTRG1piGLY/Pb5c4y++3v3dj/7s+PgesWX4DSfSJsohkYeKxWJcEoih59IKrvvXj1Tuqm0axXV/LGCnyTjZPkD2+wL4RvmQ0UDw6UTI6ZT/A7Rua2O45tcM7sXeUbB3wnwOsPpLrpsDqI2v6yBo3+dRFPuklHznJhz3kfSfS6t3us8B6vZ283kZebSN/bqPAaiUIrBYiAOupJv7JZvJEE6VVI3msAdejdeSRWvLz2iCwflRLflBD7q+htKpBVH2nmtxdRb5dSb5VSf6jgtxeSW6r4G8p428u528q5W8o5a518Fc7uCsdZEUpf6mDXFxKljnIUgdZbCeLSsjCYjK/hKTu55OKeWsJMZaQ6BJeb+eUdr/cMSUunmRKJsE+Do4J1jHOOpBZrOM0W3oSyk5C2RiUHYPyo1B+GMoPQsUIVA5BlReq+qHGDTW9TK2TqXVCXQ80dlJatVNgNTOtTcLmIHTUQKcALCqveoR0ewF4d0P/TqZvh8i1Tdy7TeLayvZtxsldvo1YiDO4HoZyYTCbHcwSDWGWPeJYPnS8EzmyPmp4fVjPKvPgJkvzupjs55FWKRaITFDHJMm0ZpHOxMYkg854wRjw35UmX8LfNQesWQYWo8YSNuGoiE5DtaW2iiPTzUtvfO6DTTW+KYdnvHSQK+yfKhrii0ZIgW+ywDe5dyhQOEoKR8meIW7nwNS2/qmtA9wWb0DYHNzg4fP60Caa4w5kuUgGWhnIml6y2kk+7uY+7KHyKkSrNzrJ653ktQ6kVVBetZLn28izLSiv/tTE/6GJf6qJ/10T+e9GBNbjlFa/rCe/oPLqoVqUVz+tJTOB9b1qBNbdVfw0sARaBYFVRqaBdWUpd4WDF4C1zHEWWAvsZH4xSS8mycUksZiYi0l8CR9ZwmlK/OElAandz5Z8BliO0xcC1kGoGEVaVfqQVtWeaWBBnRPqu0LyigKrlXrZ2+qhvRo6q86XV71FTG8B7SO6nenbDv10DWxjvFvY/nwc3jW4EYbzYCQXRjBpJfNlKgYymb5Pwg+vh9FMcH4Y6cpe3Job//Zv4ZplEBcH+hiIMEsjrIzKyKpNUkOieE5e0W6RswiyOWDNMrBC2gqZhT5JfSI2rtLYQJ6gS7n8N3/JqB0ONB0j9gF/xQFS6AvYDxPHMVJ4gGzzTG7zTO4ZJntHyBZvYIs3kN/vz+/HXHteH7fejY72HHcgu5fL7OUznGRND7+qh0dgdfN/6+be6eLf7ubf7CZ/6SKvdJA/d/AvtXMvtXMvtvHPt1F51cpTWnFPNnIzafXLevLLevJoQ0he1SCqkFa1PA0GeQwGq8l3Kvm7q3gqr3iBVt8s524tR1TdWEblVWngage30hFYYecudZDlDnKRnRfk1QI7mWdHWqWWkKQSYpmWV8UBZfGUrDgor85XWBgMCgrrPHkVAla1lwKLyqu6HsB4sBuaOoRgEJqbgcorpr2OmZZX3Q7opsFgb5GQwJL3bA9zbmf7tsPANvBtQ1/7QD7j3SgeymeGNgR97SPZoqFsOQWWcnQ99H0adnyTYWTTgq4N8R/+HhYkMpZEWYxNGWUTa00QHsOGJ+AkQa1VqsdWyHNrFq/AHLBm+f0EGhNozbKIJKkhEfcKVUYsMFQZpdHpIE8ATVLU0ps21/aX9k9UDnPFA4EtvWd2DPB7hskuWtu8fZBs8/H5/ZywNnkCeR7/+r6pnL7JbPdEtmsqyxnIcHLrevjV3dyn3dxHXYEPurh3uwJ/7eTe6uL+0sW/2sX9uSPwQof/uY6p59oDz7Vyz7WSZ2kw+Kcm8vtG7slG8ttG/r9RW/G/qsdI8NE6Kq9qyIO1/E8osITs1f1V5Puh1NXdFeSuSnJnBQaDt1Xwt5Zzt5RhPHijg7uhlLvewdO8Fb/Czl3uIJfYeUorfrGdIK1KEFUpxUFaxdtpMFjMq4sCimK/pMjPFvsprc4NCWn2ii2ltBLiwYrDVF6NoLyqHhDkFVPrQm1V18PUOzGB1SwEg63BUsG2egazVyF51UOzV0irQpzk3LtX6qTzUPu2sf1bwIed2oVgkBneyIzkscN5OGpwMFuCC30M0oEM9VCeqnvtvK4Nujceh6XJYmuqQpWgVVm0KotMYZQojEpdslxjA6UR85hzwJrVKzAHrFkGFqOzgBpnOgkRgdSQKI9MlhqSIDxebV5KTeQpbPzSB5/9YH25s2qEVB0lBcNkp5cvGCYFo+hr3+xBH8MmT0CgVW5fIMftz3JPZbomM11TGU5uTQ+/pof/tDtAaeV/rzPwTnfgzc7AG12BV7u4l7sCL3YGnu/0P9sx9Uy7/9m26Vw7BoNPNnK/beR/08j9mqauEFWhYPDnteSn1eTH1Zi6ErQVpRV/TyX/nUr+2xX8nRX8DFoFbinjbypDWl1bGpiZZb/Ezl9s55aWcEFa2ZFWySUksZi3lBCklYMYSoimmFMU+6XFU5RWfrBP0jWdwzotsWO6nS0VUlc0e1UxIx6cIa8EbcU0dDMN7RRYzUxLC81e1VN5VYXp9u6ys7n23kJwFdBRg3uY/h1s/xaRZ4uoP5/tz4eBjbRykJYNDueIB3PkAzkKb7bCS0NCb7ahL8fUkR21/XV47C5YmgxGs1xvkouiVZI4ldykVJhV2kSlLlkUboLweGx5OhcVzgHrq/ypJY1Kxj7iqgRQxoM6ntEkMJoEUBlZjRnU2GNPEj0fS+2iF6Re8593/OLFPb2nCwdI0SDZ7fFvdY1v9wRQag2STZi34tZ7uBwPl9kXyHD717oDa138p738p07ySQ//UQ/3QTf/blfgnS7+ze6gtnqli3+xM/BCB/dce+CZdv8z7dzTrfzTreRP6Gbgft/I/a4h8EQD95sGTF1hJFhHHqnjH64jD9URNDScuzN4HrDuKOdCwCKYaC/jbizjrikNXFOKuXYhGLzMHlhewl1k55dgop2f7yBpdpJsJzY7jQQdJMrO6+1EW0LCS3hZUUCM2soPdgosx0yFJQBrjC0TUHUYgrSi8qpKCAbdgraC+i6moRNXI90cbGk8Nxik8mpmMCjYRPsKoH8XDO+AYcyyi/s2SPryJP3rsWZwOFeYM4g+Bm+2xoNL5c2Jcucs6NhgzHgJbr8KFqaLramgihNrTXKdTa6xhqltak2SUp0oVlpBaQadjY1MmQPW7N6tcwprlhUWqBLEEYlYm6LF/Kss0ibMZ2U1ZnlkMi1esYkj07FYT2kVxS6JXvbNX/wle3f3WOkw2eM6U+D17x7g8jpPbnL7N/ZxuX1cZh+/Dktw+NV0Z/BjF/nQRT7o5d/rJX91cjRvxb3RTV7r5l/p4l/uJC928i+0o+vq2TYyTas/NvNPNWP2CuUV0orHbcEGgVb8z+qDwPpxNeatgjuDGAzy91Ry36nk76rkqLzihGDw5nL+Rkqr68q4q8r4lWXcyjLuitLA5Q6Oyit+aQm3qIRfYOeRVg4eaWXnTXYS6yB6O1E5eKWdyEo4SUmALZ5BK8c47hKWBjcH0cqAPoajdFtQ0Fbnbw7itmCQVu0or5paoLmZ+hgasMI5GAxWhqwMxeDcj8EgLcGBvj3Yj+HAduwb49vI9OdJ+nIlnmx2IAcGs2EwCwYzpQNZ4Z4sgys71plt7MlZ0JI7L+cvcNPlYLaAzgjSKJUhUaK3gQ5DP7EGB7JJtDbQWJmIZFFUKp7MKaw5hTW7zJ7dZ6PFrkKNvmV6lHTwhPZKx+IyHOcnNMlMxU57umSp9ZIX1uza2jhc3D+5ue3IXi+3rc+f65zcMkyy+8kHbeOr3WSdFzn1bg/3jou81RN4x0U+8KGX/ZW2qdd7yOvdQqKd/LmLvNxNXmjHvNUzLei6+n0zoduCwWBQANajdfwv6tF1Na2tqLzi768h368h91LjFVoZkFZoZRB8DN+oILdUkJvLyI1lmGu/VkBVGfUxlAq0EuQVt9CBifYUqq2sdmJ0kHgHiXQQtZ0PcxC5nRdohfLKMQVlfiidgtIJKB2HUky0s6VjIgeVV2WHoHwkmLqqGoaqQajxQo0H6mjqappWqK3aKa2aoI32Y8BcexXbWQVdFcFg0CkU4hTgnEEswdmFO4PY7iofRrfgnqArk/FkyXw5TP866XAuDKwNG81VebOiuzOTWjIXlK5K/fR5SLdBQqLEYJGrLDKlWaI245yLSDrtUW8DQxKWiEfhUaxLkqqxOHx232Bf82ebU1iz/H46B1jav8Os4Bg+OohUY9ZYltA3eqrEdNE9v3n1tQ2OzW1Hdron13edzug4taGfbBomq3q4v7WOf9AT+GSQvOWcerPb/7aTvNY59VpH4C0neaOXvNlLXu0kLzTzzzT4n23kn2kmz7WQFzoQWE+1kCeb+Seauf9u4n/dyAny6hf15JF6amenNtEf1ZIf1vCC8ereagTW96rJf1Irw7cryR1V6Lr6ZiW5tZLcXEFuKifXl/PXlXHXlpErysjl5eSyMv6SUm65g7/IwS2xY/ZqvoOkOmiW3c4bHSSulEQ7eIODVzg4mYMX2znWHqDB4CSiqmwSaVWGtIIypBVbekywiULZAagcoWsIaVU9gLSqmQ4GO5iGdqaxjWlswc3BlmBLBuzKQJ2iLNJKyF4VY9lg716sHERabceh82hqzwdPDnhymOGN0oP5spE86VBO2FCufCRHMZwDnR9G9KxLaclaVPgh8/j3YDEOXlVpreE4Jt4iosXedE4PLfbGGm9Kq6gkMCTJNEly1RywZvn+mgPWLF/QGdX5oU7noYblqLNo1/PQhyTOj4GwGJBHh0Umy2PSsA4xYakydeWSOx66/qHn3it2buvjsjpOr2o9ta7Lv2EA7Vfvd0+965z6uJ+82+N/qXHsrz3k/X7ybM2JV1u519rJ6x3oaXilnbzURp5rJH+oQ8vVk83UddV0TjBI5RX/0AxT+w+pTRS1VU2QVt+pDO4MfquS3FZOUF6VB2l1LaXVVWX85eXk0jL+0jJycRm6roTs1UIHSXcEg0GTnSQ4SEwpibDzGgcnK/GL7FMi+xQTNF6dCyzqEWVpJMiWHWXRIyqYGKjxCmnlpbRyhYJBpJUQCaKPoQW1FbRXh4LB8iCtuu0YDDr3YTDo3k1ptR082xnPZrF3k2xws9i7EbHVnwXu1eBeJRrMUB3eKOr62Ny/cblr6xX2dXD/rTA/ESw2hdaiUVolQi8KgwX0wSlEjI62fo60QYSN0aO8osOo54A1y/fXHLBm+YLOAJbwzBRb08w6F1hijTUiIV2mipdSqyFat7Q2nIITsxDil7FJV0eu+M6j7+/c4pza0DWR1zWxru3U6p7xd5qOvtd+crWbf79z8vWG4681nnyrberVxvFXmwOvtPAvNnLPN5IXW3E9TYPBJ5q5J5rJb1BekccaeUxdNfAP1yGtHqwjP64LekSF7NW91eSemqC2oj4G/luVKK+CwWAFuaGCXFeOweA1pZi9urSMX17OI61K0cqwxH42eyVYruIFWpUSnQNN7eLiyaBHtHgiuC1YOgHlVF6VnRYc7YiqssNs2bSp3Rf0MZwbDEJ9R0hbNaO2wlVHtVUV0zFjZ7DbzjhLgvJKCAY9tGDQs5XxbIauLPXgVuXQZlFflnggVzayXjycIx/MUrjWxHWtu6Qr/5I9H8F1SyDVCqlp4rhkpcKsVJixDQMOZEVgyehkRgSW3kppZUNtpUZgzYWEoc/mWbvL5oA1a5cy9Nok0tEMqJ4ovIL5LCFUPFdh4bx4kEYptCa5xizXWcKjU6WGpLC4BaCyYlu72CWgScU+drHLLdfd9+Snuz9y9H5Q1re+62RG29hH9YfWdZ5Z3Tn+fvPpj7u5d9sm3+nAKsJX2rgXmvnnmsgzDdxTdf4nGzESnA4Gf9nA/aKef6SB/3ktJ8grGgyij+H+qrORoBAMCsA6Z2eQBoPXlpFrSvkrSzHXvrycX1ZGlpWRi0r5pQ5+sQOBNc/Opdh5awlvLMFEe6SD6Et5VQknL/GLiiaY4gkQlp1m2R3B1BUtwTlbfxOUV1gz6IPqUDBY20ezV1gzSLPsVF4hquqZ1gYmFAliFc50MOgsoU2vCmYEgxRYXjS1gzNH6lovc+XI+rLDhzYqRzfIvFmyrk8S2teuaM1L/uBPcFEypKdClBHnRevMrNqEG756s0ArsdYiU1swk4UDinCIhkxjU6psCiXm4Ocy7qGbYtbusjlgzdqlpK+NMNoTR8uIaJvN85j1WWDJdbZwvU2kiFNFpcojkoAx4PPok8WR6aLIdIhMk8YvwUnuhvTwpBWgS0u9+Qf/9ccPfv3etqezS1fXjmS2nHi71PfXqkNv1h59rfb4n+tOvdhw5rnGqT81Tj7TzD3XQX7bGAjRKkBpFXi4nnu4jn+wlv9pLT/taL+/iv9+FVY4f7dqWl6d3Rn8RgUtGCznrw9pK6SVI7CiNHBxGbmoXKAVh7SyB+aXcPPsaLyy2PkEdF1h6krj4LAEp3hKABbGg/Zxhu4JCon2GQWDgrAaZctHac2g4BGlwWBtfzDXTouczwaDQWBh4+OgtuoMBoNMjwMQWGi8AhfNtQvyqn8z0InzYb4tjDNb0pcn9+Uxrgy2Z5WhLyfFlbeo7BPJb/8LLk4XL1kKBqM8CucD0caEZmxyj53aLVIN0kqmxhMWPaIYHk5PwMZ4n26zzPpN+3V+wjlgfanACumssz9UrLEqI1IlKgsOmlckyPRJYREprMaCo+dpWaLUkBR86xsSQZcoiV4M6nRQp0Utve3S//zNigf++J1n175l967pmHy39fQbLWf+0old+p6qO/m7+tN/aOV+0+inifbAr+r9j9YHHqnzP1zP/byWo6Z2DhPttfz9Vfx91Qgs6mNAmyjuDFbwd5Rzt5cHBCuD4Lq6jhqvBNfVSkfg0lL/sjKyuJxfWsYvKT0LrDQ72kTNJVx8CS8AS+UIyEv84v0T4uJxtoQuLHLGOucZwDorrzB1VTECFaFEu5C9CgELS3CCRc6tNHXViPKqtZ5pqw4CKySvMBjEnqIheYWJdtrxyrsFaM1gmHcz48oRj2wRHc6H/kztYN5879ZlFavhR7fCIivEJzAGY5jeCrJYfF30NhRWBpyhLVdZFCq6V0iBJVHjjqEYh56h1AI9Rdic031WPQ14I3ydaf0v+Nv/B4X1WWBJdcmgMGFndF0iqzIro9MhLFaqt0n1NrHWwoYngBLFl0RnBml0eFQaq04SR8wXRS4EXTpOvjEsAuNlkHoDpN6gu+5HNzz10VM7299pOfFG09jzVaPPVB/6Y92Zp+qmflc3+dvayV/XTjxWO/lozdQjNYGHqv0/qeF+WBN4oIa7rzrwX9Xc9yp5wXh1TyV3dwX37YrAHRX+28sD3yz331rO3VTGXV/OXUuNV8EKZzt3aSl3UTlZXEaWOHBR7xU6RVPsvK140lwyGeOYMpT6NQ5O4UDXFVM0xZZM0gYyQVpRYJ2G0hOhfgxBeRWklVCCg6kramXAeNAZLMHBHjLouqKpq+BcCVrkTFsy0J1BoUUflVd7GdduxoU1g4xnK/Rvxs1BWjMYPrhF5MplhjYwAznS3sy0gW1JO9+Ge66FNAtjSZRGGOVao1RllutsYiUWh+IAIYNVqkFahSnNchXKK7EWo0KJGkUW0oom41kNRdicrWFWmTUHrLNiZ5b4dTaH9c8/IXXxYKAhhBuYF6OWCJweOD20WZ+K01KjFqClK3ohxC7CL03Ll9318M/+mv/U1p7Htrgf2+75XeHBpyvPPF3r/+/y0z8rPvZw5fhDNVM/qfX/sI77fi33vRr/3ZVT3y6fuLcmcG/VxH+Wj99dNnFn2fgdZZO3lU/eWjp5U5l/GlgrS8nlDnIpbcZwWQ1JKeAXFpHlFSS9gCTuDaSXk5RyYrGfSnCMGRwnlY4zUvskU8JBEYEiwtp51j6FKyiv0Mcg0IqpOMZUHGIqD0DVKKDlaooi7ecAACAASURBVJip8UE13RYMpq6QVtDYjS0ZqOsKadWKiXZhZxBbMnRXYGc+od1V0Hi1l3HtZJ04cV7m2iztyxd7N8tGtmGLvr5sSf96hXe91J2lc+XaWnIMnz4Nd1wHZjNjMCtUJrnaJNXgtgmjs0rVmJ+iMT7mp6RqXELvvem+7KHEZTB7NWfC+udvgfOeYQ5Ysw6sf+0TCjfMBY8420ZtEkckSSKTcdap1oJzaAwXQ/y1zMK7427+5fIH37r5j1m3v7L1G6/vuPXtffdkNf5839BjlWO/qBh7sOzYT8uP/6zm1PeLDt5fcvgB+5H7So5+t/jo3UVH7io5fpfj1DeLxr5RcuqWkvEbHeM32v03OPzXOwJXlfGpO44u2D+5uIRfXEyW0pYM8Xv9kXtOzwSWvMQvLSLi/bhEJWeBdV4wyFQcocASaDUIVYMUWB6o6Z2RupoRDCKt6gVaATbnq4KuSugpAyftx9CzH3r20Wbtu8G9Xdy/U9q3RdKTJ+vdKO/PB08e+DaEje3RHdoma/80ridnXlN22Gu/hOsvBlsSE2kJU1vDlaieMMSjLUMxOaWxzTHoPIJ8yV/OAetfy5dZfzkviCpGZ8VRpnobqLHmFjRmcQTO14Jwk0ifyurSGN08UeRCccwyJnYZRC0F/SI2+VrNJXeZvvFQ4rd/ZbnzcfOdv0763lNpP37pulc23fax/Qeb2x/Z532kaOihfYM/LPD+oMB3f+Hw9wtHvldw4O6CkW/vHv2PnUPf3Dl44y7ftaWHV1QcvbxsbGnR8XkFY+lFk8llxFJKEkom4krGDUUTmsJJbUFAu4fX7yLavURaHJhWWJ8B1iE4K68EYA2EXFfoaz8bDKJHtBlpFZJXtN1VFXSVC/JK1FUs6t4v7ilgevdC307wbANXvsy3Q9a7UdyZq/JtlWEbmfXYrL3901Tv1nn2T0S/uReWLwRbIsQlgt5IQz9qXDCgvMKyGxVWC84Ba9bf0v/QE84B698EWKAyiiOSZNGpaAhSm1i9TYJdIhKl6nipMk6qjpepTTItOh6FFD7WBuEwetx/RCEWvQjH/5lXgHElJN8EC26HxXfCom/Dojvhonvgsnth2T2w4gfiWx4zfPe5xIf/tuyP2Ve/su2ad/Ys/2Dntfk1N+913lQ4fG3R8YU7D1u3j6WUk5jigL44gA1k9gfC9wZUezntHl5dwCOwzqbbz8aDUH6YqRCARetvsHvMAFMzADRvFaIVtmwPdrwSgCU050N5RRe2P0Z5RWmFA5wZl2AT3Qb9mxnPJoknX+bZFObZJKelzoqe7ET35pTiD6W/vpe62E0iXQIoYxFYUVaIomYralYQAkDZnMKa1YTUP4Qq4R/PAevfBFg4r5RGLnQsII4sxQhREQvaONDGgC6W0SewBiMbYRFF4iRnHCWvs9DuXVYsDDKkgDYRFDZ57HJZzCWSqIvBsBR0S0C7GPRLIeIiiL0cYq+A2BUQcwVEr4DoyyFqBUTTEV7pV4HlSrj+Z1e+V/GtfScu2nrIuutkRBEfZidsKQFcPDh4kYMTOTjWPgWOCVy0bPCs96ri8DnyKgisaR9DKHuF/fmwZhCzV1gziNkrKq8w1852OURdxeKeQsYZ9DEwrp3i3m1i91bVgQLozYHBTfIjO8GZJWnLMPVsnt+0IX3rO3D/bZCWCEabTG2SSGOkGhP2Yo+yojVUjwl1GU1X4aRFw1y7mP/P98scsP4/vwD/6IfM3wsJ5TFpQUhpLUJ4KIlMVsSls1FWYTGRdAA93XEHgxVppbOyhmSRPpnVJdFcfrJYmwJSk0hukoUnhevS1RELwvULZOo0UCRKdPPF+gUiw0KRYSFrWCiKWCSKWCSOmI+9CtQmTPkbr4bF90Y/vPqqPM8Khz9iPyd1EKggUEmgikAVD5UBqPKHKpyDZYOYbhc6tVccpMCalldeqPYyNQKwhOZ8QvZKaCjaTDu1C1U4VcFm7bgzaBf34CCc0JzBnax7h7x3q8y1OWx4B/SvpzO7Nsl716e6dy6uzI5580m4/hJIT4EYo0iXEK40KVXm8IhEaUwSXiI95rDk6F3AkBAficSawX/0JZv797N4BeaA9W/y/gOVSaS1yiNTwqJSsZG80kgn99hoW4gU0NJx8LpU0KUyujRWn87o0kT6dFY7j1WnQXgyKFPEmvly/fxwQ4pMawZlAijiaMdUk9D0WVBwmMinjb1QvmHPr1hthFEWFqmKmy8xrwDtclh6X9IfN1y8qT9mz4SsmDBlBCp5CqwAVASgfDJY4UyLnENWhqMgtBINbg5SUztuDnqFeJB25psOBme2ZKilufaQjwG7iRaHusfsBs9O8ODYLnnvZplrE/RmsyObYXgjODOM3RuXVubEPv84XHIRRCQo41KlEVaJwaKMS8V4kNWHRSbLtFjeHK5E+4JMjbt+mNWaA9ZcSDiL9P06P5VYZxPrsIM4ozazGotYZ5PoE1ldkgjZNI/RpAeXNpXRpLPqFJEmnVEls8pUsTpVqk2XatMlyjRQYHGJWG9m6RIZbKzeSrfJcAY9doDSWxiDmTFY2QgLE2GTRpglck1sbCJIIkHx/9o789g4rvuO/+bYmd2day+ueOwu916Sok7LseLEdt02RRIgKRr0ANIATYE0NQoUSBqg+SdImrRIGyRoCzRN0zZJi1TxFeu2JFKieC+P5bkXj+UhWYpt2Ykl27FdJyiQ4vdmd0UrlJGIWptP+gGDwYoih4/fN+/z3vzm976/uNr1QWh9P+z//fu+Nxk69hN3L0ttH/4ZmjGM/Iw9Cb5h+zHUUxlweYW0ehH9GGz3GHwYtP350EPGDrRXN+LY9sd1S4bSBJSzbyktsdIH671wgdFqHbOu5LVjjrWn5PUnYf1R5fJhR+VQa/nx/eOP+f/mL2FfNwRDmjemq20OPQRGK5gtSmvKaO0CZ4tmxup5oXaygu3KQLtt3t1RRiusO2SFdbPbSDFxC+6GI8Y+33BmSUYsqwiXEr7NDtufAP8ryr7BPkdAb3I1xTAW5stA+0EI7oGuh5r+4msdR58LnHnTPPe6NvCac/ANdfBN58DPlAE052O0YrlXoyy13bYSrdMKF1YXcW2VWxemV6rGx9XEq7c4tbPQFaszaDu1L/fD2jm4dAYuHJUunXZf7pFXjsLqU3D5CFx4zPnCcVf5UPfC0b2n/xM+8VHoSEI8LTThAsrQMFBVT/isPQZGVQ8GraApIQQSshd3CGo6CnUzqenr74ACBKw7+f6z8xvZfrdYfdebYmFoxs7Plj1R2ROpH5ghed1cEC0GBU/9SNg5q/Uz2+ON6rmCGTCioCeE1r0Q6IBgAu77yO7DF3eced1/9prZ/7J74DWVMQtLDWKdwVdufBi0l1dV95gL7ElwVZheqy6vquZ8uAvHdmrHWDuW7WJWonYZZ7vO4FovvNAHz55SL59xrZ+ApSfkZ45IV47B6qNq+VDn0vHmb30RPvQgdO2E5ii4Ag5/dTNglVYsQ93eIYibbOyg1Y4ENKGPqM8d97owueEdGJb0K26mAAHrjr//mIlgzUpQ8EYEbwR8tcMfAX8IArUD3Z1Sqt5ZPYyMU9/0SDn1lFtPOfWM4k5pVreqpWV30uXvdgQ7wNcCbd17D6819fzU03fVPfSSNPIyZF+D7Jsw+jqMvgK4sLLXVnWn9md/yY+hYi+vWJ1BZs5XK9tVezPIQleLg9WyXeh9bO8ZPCldfBqWDgtLT7kunxTWfwjl7/tXDncVjrT8+1fgww9DSwg8IS2QUDHDNskWjFHcTMNoJXjtvHa2fvTHIBiHprjgizstpBUB62Ycece+TsC6C4BVNeHCpO361tzqQMWNbxE2XNnZG5PNTB1YTr2TAevGs1vL2IdTz8hq2ql1GWa3pncoetLtTxptIUjs3Xt4zd/7utl31Tn0kjD6Moy9BuNvwNhPGbCuXg9doT8fc2q/YXvzdC1N1E5iqOYxbHRqt4vOs6R226mdle1SV046cAvOMWX9qPvCUd/FE21LR5LZQy3f/BK8/wC0hNytGYezxelq87buBCuMm5nx/Sl7JLRfodpnP3stiGcMDjqNmOmOGRo9Er7L44WA9S53wK87Ndmb1371M4tYpRQTD9l6y4EeOMwG5/rZsh8AM4IHD8nKsO/55TP7QfzxjMPTLegdqtnl8nSBFhOMNndzM6T2dx+55On9udH3invwmowrrFdxkVVdXt0ArLqbaP1hcAUfBq/XGcSsK1ZaAhOvan4Mw4APg7W6EujH0CtXTvvWe5X5x42Lp4wLJ8TJ77XnD+/u/x/3X/857NkJoTj4oi5PXNEikjvE7BJrKylvDNOsfHVI4Yfq/kHmhqyaGOdi7kCc3TC/7g22zb+fgMXZ/fero6r2nVVabQSWza8bzqqBOGMxLHtn9Y1Bq3r0asOHlBrcBXoCtITizcietOgJK4EAxPZ0HnleP/sL9/n/dQ++rAy/Ko3gAdfrodYfBmuFcHKXqrH26hacJXF2WZxlWVeMVkLBphVWRRWqdlc2sNiGwdUeYa1XXj2jV05q5cPO8pPNKydT5eP+R78Bn/wY7NkNgbDe3KGZMYezTQuklCButxSbkvY+wfp7wOvMYttx3HrMrWGxiXpUnt4SvrtEI2DdycDaaB6wcaQxllVfHdrW46qRcBoJ1UQT1HoM/q0fcIlx42HFHL6UYMZAa5e9SUegUwzE5WAQkvcmj11V+n6hnv8/deg1ZfhVefhVZfhlabi+ttoArPFnYfwZQGChmyiGrnBttQRzy7VdODW7q2rRebvOIKaJVhOvbLur9V5h/ZRj/aT3Uo+vfDg2/dTO0/8Fn/44tEcglDZbu5xKmyK3uHQ0GoNAHFpS4MPyXHXfBXso2kKhN4MZU/WoqqN1DGZ1BNjWQkocfVdTsQhYdzywqtEZO4BlB5Vts5q6R4rtSs7OUcXCl4Y3PyPO2BtG+4xGg4o/6fAlkAJGFLPeAy3Q8UDy2EtK3y+U/p8rQ2/Iw6/Jw6/KIzawbFRtrDN4GSYu4vKKVe6yaSXOLsLcIu7CqW7BQTdRsTSJNZztl4OVIajg86Cw0itVeuTVM8L6KXn1pFY55p17oit/MvzYP8NHfgtSGTG5W/EmdHe7qUWb/B26PwWuVjBCQnNa2JGyPULrzKotS6t5HooRdRhoxYcuowxYG7n/7q417s7fTsDiDFi3cJsKXgzHbPqD9fF5/QOL1Njxmk3O1525qtViJBOTVHEB4onK3iRYccwIzzzUefyy3vemMoDl5vEYeZWF3l+qFnCux9qxchemiQq5dSFXYUXn0axdmC2Kc2zPYHkGFiahPAmlMbk05lgYEZZHYW0Y1s7DWi+sncXHwNUe80KPuHJMqxwLzx3eOfSo9nefgwfvhVgS2jIIHalFd0ddWtTOoqpme7DVU93T6gYbhuuCMAc+TE9jx6Yy0hffMQUIWJuP5HesA7j/RdeB1e7w2MDKQObh7uPrZt8ryuBPxeEqsCD7MowxYN1QZ5BZ9Am5VaFaxrlaZ1CcY3UGy1OwgCVwxPKoXBqVFofQQGZ1AC4NGddysHIGSkf0pZPuwmHP0vH20vH06e+Kn/1TOLgfUh3QmlHNmOGK+s2UTSs7sm5H0zUWn6JEUL7uQAIWAWtrCrwdsK4pg6/YNZwx4l4Flm3WXvdrt3fhrMBUpV50HuaKWBXVLoxaxgLOMi6vRrEQzvIQrAzBynlp6axQOuleOyuVj3mWT0VWz7YMHrp38IfwZx+HfbugNQxtGFZ3utu9VsrOUGf7ATGvyi7GVX8M5GvE3uWtJWBtbbi+qwHIbXHvbgKsVG2FtRFYL0P2GlthXYHss8LYc4Jdxtl2QEZP0SqwarSaRw+ZwrRQnhTLY47imKPMajhXhqEyIC2fl0qnXAtnPOtnWy/169kfJMefuvf0Ifjgb0AiAW0JiHQ6gmnJHXZrUdOTktxhdAHDfTZxzAUNoLuO6CM3Pv5ufgIWf322LThVJ/WmwOp4qPv4qtl3VRm8Zhedx2T3sZdg7MfC2BVp7DkbWML4M0ItelXNusLSEsWq3VVhDorTYgmBJS2MSwtZeXFUXhpSls4rS+fkSo9rpcdaOe2deGJX9kji378O998H7QloSSv+pOgOO9wRy5tW9ajoCjmb0pivgKXkqyssG1jbS8m6pPTh5goQsAhYW1PgLcCKs6B7CurAGroqjlyVhq9Jo9dgDA1FhbHnpLEfCeM/EsYviZMXxcl1jF7lWB5DvXJX1ax9Boo5uYSoEhezwvKovDSsLA2oS+fUpV79Qp88f9g78cTe3An/334e9u6GeIfU2uHyJDxmUpSaRbnF9GcUMwauVmVHppZgVVtbeXF5dUOgnfi1/RUgYG1tuN58Ktj+fX97WnhTYFXM8z9RhrDivDR8VRp9yTYUFcZ/JI1dwmP8mRqwKgIrjMpq4TCzdttApoT+fPhmsIy0gsqwXBl0VPqV5V51qcdVPhEundo18KTjM5+Gji7YEQVPRPHFRbnF0Jj5uo42O6I/gahiLzHt2jZ2DofTwG3MimFXJKJ7gBsFCFjcdNXt4cttJ+wNwMJSPQm2wqoBa/RFafgnUvbHdvEuYRxRtYFW1ZeDbJNzEUtLVJdX01DKQWmMPQ+OCMvDwsqwuNIvr5xVl3qs8tPh6aOxY9+BT30C3wbuQAN72RtzeuOepk5RbZO0CCsdhAmiYnMajLBoRRUj6tZjGjvcOiaFErC26U1187uUgEXA2poCmwPrge4TS+b5F5WhF8XRK9LIi1L2Bdufz45b2WsrcXJVnFoRp5mbaN2cj23BQaf28iQsjDlWc7A0BPleYfG8sH5eXe8zFk7HZ5/e+fh/wAd/B4LtjuaM7I0LZkQOJsGDtqsYX0f/9dqBHoRYoUsz4oaGG5g1nS2vmP8XdyP2Lm8wAWtrw/XmU8HdcmO9HbCuKMNXxNEr8ugLUvYKVF8LXoDJtXroSmQ7nIWZEstjYJW77EI4pTGhjGW7hLVRWD6vXxyXyz3OpZ5A+XR04mjgm38P994LTfhA5/GmQW0BrU1CYIXt9M5axIoxq1akS9Ov00q2kGL1jYR3S2fxf7sSsAhYW1NgE2DFoON93ScWzfM2sJ6XR/HNIFT9+dZww2CuXmdwSZgpVZPa87OQnxKKOaE4IZbGxTLz51s5D+t9UD7jXTjrHXh83/Dx5i9/AfbeA01xlzfpb+qyfCl0oPdFIZjEDTcsrb+KLfbZ3nyj6pjpjk+CzDK0muJAHu28IYyAtbXhylt/3/6lxNsAq/95dQRRJWfxzSArOo827TBdwayrGXwzKMwsiHOlalJ7HjcMCsUJoYihK7E8KiwMimsD8nKvtdDbkj38QPaM85FPQaobmlKeHV2GGRdVrJSB1qBYBygmB5J2ZN3+M+33gNWdkixi5TDQtF7wsVSsYBzNUW+yaen2C0W3yu1QgIBFwNqaAhuB5WXv45pwhbXr5II1cKUGLHwziDW7mB8DzFRgehlm31q2Kz8tFKalwoRUxD2Dcgk34qjlQff8Gc/Uscx8757eJ+EDH4DELi3YpTnDTi0imhEwQxCISoEklghyhvRAZ7Xiqe21sOGMqDKjIpaeZxmkfpbvHsACjsQmjhQgYNH9ujUFNgVW53sZsJ5TR3Bt5Ri/LGMZZ+bHMFOBGUaruQXA7c0semU7XhVzUgHzGJBW5WHHwohRGAznzuyf7Il8/1/hNx+ESAq8sWCg0yUEVSOs7khKbRloTsqBJC6m3FFVj29wnsDIul0DVbZiohXFGmW1uJXsjasWHpSKxRGt8HUKX82l1m47BUx0EGaJTu2O6gorCpsCq768mqvA3BLMLcB8GfJ2aYkZoYDPgzawHKVRpTyilEcCc/0Hs30tX/0yPPgwdB+A6E5HqAussBKIsapcbXb9RNFo1/wdhrfLZSZt94X6Osv+Z9VrwYePjZIHKabpaNBuuashrW2n6u14eroj/ygC1tbWF3f9jQVWXPQmsdiq1a56Ymgd1YTA6jy1oA09p4w+J48/K49fFicvYujq+tqqtrzKF6CAZZzt50FHfsyVHzXmB/1zgztm+rtGe1yf/Qy89yGI7oJwNwRToLeCvx18YTEQFT1hpzeu+dNoWeVuV/S4aiTsFZMdvbJpVXUx9GGOuw0sp4GvCwlYPBKNgEXAunUFwJuAQBp8aUXHmn26FUdzTl8Muh6InV2Wx15wjD0vjz8r5p6BmRXIL0KhJC8swsy8OJOX8yWYz2OmaGkeClhdAmZGzNK4f2agdaznPfmRrsM/gD/8A0h0QWsGmlLgr9oZgzdml3et2xDaeLLPGwfhxsc9++2hHbGqVT/D5dXG79n4s/R5eypAwLr14bo9e/SdbBUCqykNftxjbGhRy4irejsW5ul6X/TcsjDxgpp93pm97JhYF6crkC/hYmpqCmZmnKWyc2FByOehXJQqZVich/y4e2nKmB8MZk/vGni647v/5vjjT0B6F7RkbEdTCZdv+I4P3wOyGtfv5F9Kv2ubKEDAImDdugIYw25Kgj/pMNs1PWKZUZceVqwIdNyf7F10jD3vHrlkjlw0R1fdE0uO6aI4Py8XClKxKC+U0ZJhIueYmlbnZmB6VH1mHgrnreJA9+xQ/Fv/Ah/6KMT2iO17hEDKxhNuDCRgUQhim4CTmsGjAlVLPH9cssJOE4Hl1sKqGYHM/cmzRSV7yT3yjDG8Zo1U9LGyYzovzs9LxbL9JCgX5l1z855C3izPqvmsWBw0Cv0tA8flr34RHngYIt3QsguspF1f2qYVAYvHm+T2tplWWLe+vri9PcHp1URfXPTFsLqXJ2RYEZfepnhC0HEwca4gTlxyjF9Ux1e1sWVnjkWsMFyVh5lZx1zeKJb0+VlnflIpZ12FgR2zfbFzRx2f+yvYdQBCXUKwE7SoYOJj4MaDU5Wo2bdLAQIWAWtLCji8MRmzGcKSN6Jb7JHQE4LOg4lz88LkRSG3Kk9WXJNLjqkSFAuwUITFBaFYchZKzvlZITcszQxYpeFofiB94gn5kU9D1z0Q6dbC+7B0mCusBbvqtLpddzxdh2sFCFhbGq5c9/3WGy9b6IKgojtCO/iibguD7rInAh0HU315x+QFcWpFmkJgKdNlKJahXBQLJaVUkssFKGDNrqbKRDLXt/Px/1Y/9kcQ7QZ/Ug2kQAmCGdHadoKzZeuNpCvcSQoQsAhYt66AbKFVnmphCXjwxVxWStWx2Cp0HOw+O69NrDtyFXVq2ZhY1KYWoFCGUgly0+rcnFicEfKjZmE0MnHO+sZXMWgV6nAYUc2MGb6UhAlTUdEXr4802YvpqfWXg/VgVv0b6MNdogAB69aH611yi7zNn4krLCPhMOLgjYMv4TCSis4S3+P3dB+b9A1XXOOLem7Byhat8aJWWIbcrJafd87l5JmRpvlseqTP/eUvwf77IdQJvphiVQu4YsVpTLbCOhFv89vpv+5CBQhYBKxbV0AxY249pehJ8CbBl5HNjMNICoEEJA685+mZ4OCiNDSjzZaa5peNyYJzriTPzmqzucDMeHg6u3NoQP/CF6FzP3N6SYMvKngjgi8keUOKFcGkeV9c8MVpc/JdSKW3+ZMJWLc+XN9G1rvkvxQzpmkpl5YEKw2+DtnTJXhwNzJk7tl3NJuYveiaK8D0JEznYCYH5aJ7uWjlhsL9PbuPnRA/+QiEd0H7PjwHYhCMQjACvpDsCTnNiMskYNGduYkCBKxNRLlLcLP1P5MBK+HSkqKZFLwILPCloTUBnXvv+WFf+9C8MDoIhXHz4qJQzMFUVpvJpsYGOx87BB/6PYjuEaIHwIjh42QwgTsQmyLgi0jeiGJFVZbOXg9abb2pdIU7QwECFgHr1hWQrZhmxJ1GTLYSojft8KTBl4C2dsh0+z7/td1nJ6P5KXnirDI94C1OBPO5SH9f+tvfht33QHK/c+eDiCorCl40fpE9UQUT2aMYv0dDvrhqJZ0m+sbcGSON/orbogABi8bDlhTApZAHt/jJ3qRiJnAjYUsbxNNw74fT//T9AyND7UOnw/2nM8P96eNP7/iHf4TOfdB5AK2pfCm1uUswY1qww+1NanrMrWNLqnbsAQLWlvrlttBhG16EgEW3xa0rIHijQlMU/GipblunO/SQ5GuCliiEDsK+jzr+5JH93/nObz91tOMrX9d+91Ow82Fo6xKbUxIaxYRUK64bcQl2+I2MpiVUIyF5EgI70LLGm5S9aHlMBylQV4CARePh1hXA9RQCK4LA8kQVo13RQ6pnh+pvB6sbmt8D6QNw4EHY9wCkDwqh+8CdFOxELSMkmBG3lTD1uMedNJ1xt55QTASWfcgMWIIvSW8J62OVPpDj6K2PVbp7bAVwkYUHKomOVBiNikieqOTLCP5OCGZgRwrPwYzgz0i+zEbdNvpS1c32Nn4D0WqjGvSZgEXAapQC9dz0Gz7QqCMFtqIAPRI2asRupVfoZ0kBUmBTBQhYBCxSgBTgRgECFjddtemEs22/WLeFueHDtm0wNYwLBQhYBCxSgBTgRgECFjddxcUESI0kBRqqAAGLgEUKkALcKEDA4qarGjpx0cVJAS4UIGARsEgBUoAbBQhY3HQVFxMgNZIUaKgCBCwCFilACnCjAAGLm65q6MRFFycFuFCAgEXAIgVIAW4UIGBx01VcTIDUSFKgoQoQsAhYpAApwI0CBCxuuqqhExddnBTgQgECFgGLFCAFuFGAgMVNV3ExAVIjSYGGKkDAImCRAqQANwoQsLjpqoZOXHRxUoALBQhYBCxSgBTgRgECFjddxcUESI0kBRqqAAGLgEUKkALcKEDA4qarGjpx0cVJAS4UIGARsEgBUoAbBQhY3HQVFxMgNZIUaKgCBCwCFilACnCjAAGLm65q6MRFFycFuFCAgEXAIgVIAW4UIGBx01VcTIDUSFKgoQoQsAhYpAApwI0CBCxuuqqhExddnBTgQgECFgGLL7thLwAAAitJREFUFCAFuFGAgMVNV3ExAVIjSYGGKkDAImCRAqQANwoQsLjpqoZOXHRxUoALBQhYBCxSgBTgRgECFjddxcUESI0kBRqqAAGLgEUKkALcKEDA4qarGjpx0cVJAS4UIGARsEgBUoAbBQhY3HQVFxMgNZIUaKgCBCwCFilACnCjAAGLm65q6MRFFycFuFCAgEXAIgVIAW4UIGBx01VcTIDUSFKgoQoQsAhYpAApwI0CBCxuuqqhExddnBTgQgECFgGLFCAFuFGAgMVNV3ExAVIjSYGGKkDAImCRAqQANwoQsLjpqoZOXHRxUoALBQhYBCxSgBTgRgECFjddxcUESI0kBRqqAAGLgEUKkALcKEDA4qarGjpx0cVJAS4UIGARsEgBUoAbBQhY3HQVFxMgNZIUaKgCBCwCFilACnCjAAGLm65q6MRFFycFuFCAgEXAIgVIAW4UIGBx01VcTIDUSFKgoQoQsAhYpAApwI0CBCxuuqqhExddnBTgQgECFgGLFCAFuFGAgMVNV3ExAVIjSYGGKkDAImCRAqQANwoQsLjpqoZOXHRxUoALBQhYBCxSgBTgRgECFjddxcUESI0kBRqqAAGLgEUKkALcKEDA4qarGjpx0cVJAS4UIGARsEgBUoAbBQhY3HQVFxMgNZIUaKgCBCwCFilACnCjAAGLm65q6MRFFycFuFCAgEXAIgVIAW4UIGBx01VcTIDUSFKgoQoQsAhYpAApwI0C/w/9Tq/ll0etMwAAAABJRU5ErkJggg=="}))))}const oy=i.forwardRef(iy);n.p;const ay=n.p+"static/media/GreenHover.dbca8233d7dd03a4689afe3b645ea67e.svg";const sy=n.p+"static/media/TopGreenHover.6d43ee798a8512983bda58f6b978b43c.svg",ly=n.p+"static/media/backgroundGradient.6d6942058658fa5e0b7d.png",cy=e=>{var t;let{saleItem:n,isLoading:r}=e;return(0,a.jsxs)("div",{className:"grid md:grid-cols-2 mx-auto",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[16px] md:gap-[38px] relative z-10 overflow-hidden bg-cover bg-center bg-no-repeat py-[54px] rounded-t-[8px] md:rounded-l-[8px] 2xl:rounded-l-[0px]",style:{background:"\n\t\t\t\t\t  url(".concat(Qv,"),\n\t\t\t\t\t  radial-gradient(50% 50% at 50% 50%, rgba(9, 185, 255, 0.08) 0%, rgba(3, 16, 33, 0.03) 99.99%, rgba(3, 16, 33, 0) 100%)\n\t\t\t\t\t")},children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row md:flex-col items-center md:items-start justify-start gap-x-[8px] flex-wrap sm:flex-nowrap",children:[(0,a.jsx)("p",{className:"recent-text text-[22px] md:text-[26px] tracking-[4px] leading-normal md:tracking-[5px] uppercase text-MontserratBold",children:"Featured"}),(0,a.jsx)("p",{className:"font-montserrat text-[22px] md:text-[44px] font-extrabold leading-normal tracking-[4px] md:tracking-[1.74px] uppercase",children:"Purchase"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[7px]",children:[(0,a.jsx)("img",{src:sy,alt:"Top Green Hover",className:"h-[640px] absolute top-[-320px] left-[-100px] rounded-[1177px] -z-50",style:{background:"radial-gradient(50% 50% at 50% 50%, rgba(9, 185, 255, 0.08) 0%, rgba(3, 16, 33, 0.03) 99.99%, rgba(3, 16, 33, 0.00) 100%)"}}),r?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"w-[242px] lg:w-[200px] py-[2rem] bg-gray-400 animate-pulse"}),(0,a.jsx)("div",{className:"flex justify-start lg:justify-end",children:(0,a.jsx)("div",{className:"w-[100px] h-[25px] bg-gray-400 animate-pulse"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{className:"text-right ml-auto text-[14px] tracking-[0.5px] leading-normal font-normal text-white opacity-80 max-w-[16em] truncate",href:null===n||void 0===n?void 0:n.attributes.nft_detail_link,children:null===n||void 0===n?void 0:n.attributes.nft_name}),(0,a.jsx)("a",{className:"text-right ml-auto text-[12px] tracking-[0.5px] leading-normal font-normal text-white opacity-80 max-w-[16em] truncate",href:null===n||void 0===n?void 0:n.attributes.nft_detail_link,children:null===n||void 0===n?void 0:n.attributes.nft_description}),(0,a.jsx)("div",{style:{backgroundImage:"url(".concat(Kv,")")},className:"bg-auto bg-center bg-no-repeat saleTagPadding",children:(0,a.jsx)("p",{className:"font-montserrat text-[28px] lg:text-[33px] font-bold leading-normal tracking-[1px] lg:tracking-[1.32px]",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #000 0%, #505050 100%)",backgroundClip:"text"},children:null===n||void 0===n?void 0:n.attributes.salePrice})}),(0,a.jsxs)("div",{className:"flex flex-col justify-end items-end",children:[(0,a.jsxs)("a",{className:"text-left lg:text-right text-[13px] tracking-[0.5px] leading-normal font-normal text-white opacity-80",href:null===n||void 0===n?void 0:n.attributes.buyerUrl,children:["Buyer: ",null===n||void 0===n?void 0:n.attributes.buyerName]}),(0,a.jsxs)("a",{className:"text-left lg:text-right text-[13px] tracking-[0.5px] leading-normal font-normal text-white opacity-80",href:null===n||void 0===n?void 0:n.attributes.nft_detail_link,children:["Purchased: ",null===n||void 0===n?void 0:n.attributes.purchase_date]})]})]})]}),r?(0,a.jsx)("div",{className:"h-[39px] bg-gray-400 animate-pulse w-[244px]"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"font-montserrat font-extrabold text-[22px] lg:text-[26px] leading-normal tracking-[0.64px] lg:tracking-[0.9px]",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"var(--text-gradient, linear-gradient(90deg, rgba(255, 255, 255, 0.78) 38.95%, rgba(255, 255, 255, 0.24) 99.95%))",backgroundClip:"text"},children:null===n||void 0===n?void 0:n.attributes.hashtag}),(0,a.jsx)("img",{src:ay,alt:"Green Hover",className:"h-[846px] absolute bottom-[-400px] rounded-[1177px] -z-50 left-[-100px]",style:{background:"radial-gradient(50% 50% at 50% 50%, rgba(157, 157, 157, 0.19) 0%, rgba(3, 16, 33, 0.10) 99.99%, rgba(3, 16, 33, 0.00) 100%)"}})]})]}),(0,a.jsxs)("div",{style:{backgroundImage:"url(".concat(ly,")")},className:"bg-cover bg-center bg-no-repeat flex flex-row justify-around 2xl:justify-center items-center py-[54px] relative z-10 rounded-b-[8px] md:rounded-r-[8px] md:rounded-b-[0px]",children:[r?(0,a.jsx)("div",{className:"w-[185px] h-[320px] p-[9px] rounded-[8px] block md:absolute customPaddingVideo -mt-[83px] md:mt-[0px] animate-pulse bg-gray-400 cursor-wait"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"w-[24px] h-[24px] z-0 md:z-10 hidden sm:block sm:absolute top-[8px] right-[8px] rounded-[3px]",src:null===n||void 0===n?void 0:n.attributes.collectionImage.data.attributes.url,alt:"Collection Name"}),(0,a.jsx)("div",{className:"p-[9px] rounded-[8px] block md:absolute customPaddingVideo -mt-[83px] md:mt-[0px] custom-video-border",style:{backdropFilter:"blur(19.63503074645996px)",background:"linear-gradient(153deg, rgba(205, 205, 205, 0.31) 0%, rgba(255, 255, 255, 0.19) 100%)"},children:(0,a.jsx)("video",{src:null===n||void 0===n||null===(t=n.attributes.videoUrl.data)||void 0===t?void 0:t[0].attributes.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto",className:"w-[169px] h-[300px] rounded-[8px]"})})]}),r?(0,a.jsx)("div",{className:"py-[43px] z-10 rounded-[8px] h-[320px] w-[80px] items-center gap-[43px] customPaddingAttr -mt-[83px] md:mt-[0px] bg-gray-400 animate-pulse cursor-wait"}):(0,a.jsx)("div",{className:"py-[43px] z-10 rounded-[8px] flex flex-col justify-center items-center gap-[43px] customPaddingAttr -mt-[83px] md:mt-[0px] custom-attributes-border",style:{backdropFilter:"blur(13px)",background:"linear-gradient(177deg, rgba(4, 7, 11, 0.80) 0.35%, rgba(41, 72, 113, 0.80) 99.69%)"},children:null===n||void 0===n?void 0:n.attributes.recent_big_sale_attributes.data.map(((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col gap-[7px] text-center mx-auto",children:[(0,a.jsx)("img",{src:e.attributes.imgUrl.data.attributes.url,alt:e.attributes.name,className:"h-[26px] w-[26px] mx-auto"}),(0,a.jsx)("p",{className:"text-white text-[7.6px] font-montserrat font-light tracking-[0.3px] leading-normal text-center w-[80px] px-1",children:e.attributes.name})]},t)))}),(0,a.jsxs)("div",{className:"absolute bottom-[8px] right-[8px] flex flex-row gap-x-[5px] items-center",children:[(0,a.jsx)("span",{className:"font-montserrat font-normal leading-[0.23px]",style:{color:"rgba(0, 0, 0, 0.75)"},children:"Powered By"}),(0,a.jsx)(ey,{}),(0,a.jsx)(oy,{})]})]})]})};var uy;function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(null,arguments)}function py(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",dy({width:59,height:15,viewBox:"0 0 59 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,uy||(uy=i.createElement("path",{id:"Arrow 3",d:"M58.7071 8.33797C59.0976 7.94744 59.0976 7.31428 58.7071 6.92375L52.3431 0.559792C51.9526 0.169267 51.3195 0.169267 50.9289 0.559792C50.5384 0.950316 50.5384 1.58348 50.9289 1.97401L56.5858 7.63086L50.9289 13.2877C50.5384 13.6782 50.5384 14.3114 50.9289 14.7019C51.3195 15.0925 51.9526 15.0925 52.3431 14.7019L58.7071 8.33797ZM0 8.63086H58V6.63086H0V8.63086Z",fill:"white"})))}const hy=i.forwardRef(py);n.p;var fy,my;function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gy.apply(null,arguments)}function vy(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",gy({width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,fy||(fy=i.createElement("rect",{x:.84375,y:.837891,width:34,height:34,fill:"url(#pattern0_10669_294)"})),my||(my=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_10669_294",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_10669_294",transform:"scale(0.00390625)"})),i.createElement("image",{id:"image0_10669_294",width:256,height:256,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7Z159CVFke8/wSLIvskui4oiOLIqiwrIoKA4ItvgqOM2uPH0CS7AE3gqo448RpZxXMZ5zwUUBUWwWURkhmUEFBRkUfalGwRaQLpbeqHp7u/8kfXjtc3vdzPq3qq6VffG55zf6T6n8kZGZWVFZUZmRkDQCJKeL+koSVdKelLSo5LOkLTZsHUbFpI2lfRNSQ9JmlW0zVGSnj9s3YJgYIqX/khJV0taosl5TNKBw9a1aSQdIunxKdpkiaRrirYLYxB0B+dLPxnflrTJsPWvm6J9vluiXZYUbRnGIGgnA7z0yzJX0j9J2mjY91Q1kjaRdLKkeQO0TxiDoB1U+NJPxkJJ35f0qmHf5yBIMkmvkXR2cU9VEsagAmzYCnQJSZsCBwOHArvTTPvNAC4BLgQuMbOnG6izbyQtD+wGvInUVi9qqOrfAz8EzjSzexqqs/OEAchQfF0mXvrdGG6bPQZcDvyq+LvBzOYNUR8krQLsBOwC7Aq8FlhnmCoB15KMwblm9sAQdWk9YQAmofjSH0I7XvpeLAJuBn4N3AHcBdwNzDCzuVVWJGlVYDPSF/3Fxd8rgL8CVqiyrgoJY5ChrR27cTr00nuZAzwIPArMBmYV/06MGJ4EJqYTKwKrFf9fBVgTWKv493nApsAajWhdH2EMJqHrnXwglpnT7wYsN1yNggYJnwFjaAAa/tI/CJwLbAgcVmM9o8jZwCMkA71pjfWM9chgLAyApPWAd9DcS/+j4u9aM1si6WjgpMzv5tD9YbYXz70ebWYnS1qO9MwOKf6aMgbfNbPHaqwrqBtJq0o6XYNtPvEwQ9KpknaX9CzjIukIh4xtJR0o6Seqfs28DSyUdL7SPW7rKP+hSdrRlNr4VKU2r5N5kk5Tcn4GXUPpoMntNXaQGZJOkbSbJnnpl9HlnQ55uyxV/nmS3ifpIkkLaruD+lmgdA+HK43CJu5vV8dv35FpU1Nq+1NUrzG4TWnaGHQFSatLuqPGTnG6Mi/9Mvq8wSHzDVP8dg1Jh0r6Ws33VBW3K+l6iKTVp7inNznk7FuifU1pVFAXt011L12nreu3g/JF0jp1XexgZipR/mFHmUkPApnZHNKc9IfwjBPz1cDOxd+OwLA655+BG4DrSXsRfmFmf3D8znPoydNmAJiZJG3vLd8HWwP/BHy4xjqGwsg5ASVtDNxPWtvuWwy922YRsIGZ/cmp0wYkj3YvPmdmJzj1W1r2csDzga1IRm8rYGNgI2AD0jr+2mXlktpgFmkfwUzgIdJLeSdpw9FdpA1HZQzhhM6fBz6VKba+mT3qlLdWoWevD9oSBlvmXQhsZmYzB5DROkZxBHAY/b38D5A89z8EDgQ+2aPsCsC+wPedsh8lGY1e7b25U9ZfYGZLgOnF32VTlZO0EmmTzwqFLpMxcW2emT3Vjz5Ocve6EHi8hLz9yPflU0nPa2IJ+IUl5AM8p/jdv5b8XdAkSqfovEzXJI48SXs6fntGSb1y8/drq2+NdiLpV5m2uK2kvDMcz2uvZX6zo9LR67scv53gzEobIqgeSZdlHuIcSV9S8kRPOsyXtIKkJzJy7i+p108y8v6sNJwfaSQtpxQSrRfnlZR5f0beE5KmHBVK2kHSF5TCkvXiZ4O3QLsYxQ431fB26eufNLNfTjV/NbNFwKUZOZur3Dn02zPXVwO2LCGvq7wQyK2t59rqGYpnkJtSXNrrGLWZ3QgcT77vLPbq1RVG0QD8PnN9bdIJthxXOMq82lFmgjscZV5eQl5X2c5Rxm0A8D2DKxxltgXWzZQpNTXpAqNoAK53lNnTUeZqR5kyEXt+6yjzmhLyuornhfW01QS7O8r8wlHG0yd+7SjTKUbRAFzhKON50W4Fcst8r3DImeAm0rp5L/YoIa+r7JW5PofU9l5embk+C/idQ47HAFzlKBMMG+U9uzPl2Mkn6eKMnCdVwnGnvINykaQ1B7v79iJpbUmLq3K0yedQvNghx4o+0Yu7Brv7djKKIwDIW+r1Sbu7ctyYub4q8AKXRonctGJ5YJ8S8rrGPuT73DUl5HkcirlnCKkvrJ8pc6VLo44xqgbA87A88/dbHGXKOO48c9FDSsjrGp578/heJvC0vecZevpCGIAO4Zmr7ego4+k82zrKTHAVaY7bizdJem4JmZ1AKXjo/plisyk3z36Zo8zNjjKevhAGoCuY2f2kcNq98BweuQPIbYl1byktttfm5qSrAW/0yuwQ+5Mfrl9kZgtLyMxNv54inV3IsUPm+n1mlutPnWQkDUBBbslmO6UY9lNSbAianpGzRRmlAM8utw+UlNkFnhXgYxLOLSkzt3Hq/uIZTknRB3JTCc/ScicZZQOQW0teBV/Sinsz18vu3rsYWJAps48kz2alTiBpO1K+gF7MB8putd0ic/0+h4ytSH2hF2X2JXSKUTYAHu/vSxxl7s9c30TScxxyADCzJ4GLcsWAo7wyO4DnXi4ok8ugaPONM8Xud4jyxI3w9KVOMsoG4CZHma0cZXJfkeVJUX/L8GVHmbdJ6uuIcJso7uGtjqKeNlmaDUlt3wvPCMBjAGIE0EEeJCW/6IXHAHgi0zzPUeYZzOxK8p1qJeDkMnJbyimke+nFDWbmWSJdmty6PfieXc4AzDazXDCXzjKyBqA46Xd3pphnCuCJSrNevsiz8HzxDpX0+j5ktwJJewMHOYqe1od4j9H9o6NM7iPgWUXoLCNrAApyJ/A8DjxPbPh+DMBZ+IzLl8r4GNpCobPHyM0EzumjCk+be9p3i8z1kdwCPMGoG4Dcw9tQ+TMBtYwAzGwB8M+Ooi8jhbPqGqcB2zjK/Z8+w48NbACKZ79RRkYYgA6TS/O0EvmAmbmde5Df4DIV/0JeR4AjJL2nzzoaRymmv2fdfzrwlT6r8URCnp25vi55/8RIbgCaYNQNgMd5k/sCeJamcuvIk1KMAo5zFv+KJM+W1aFS6PgNZ/FjBgg+urKjzLzMdc/qzcg6AGH0DYDHC9zTABRbU3Ohovreu29mZ9Ijmu8ydVwmabd+66obSTuTNvN42uNnZnb2ANXl6liY2wWILz+BJ89BZwkDkA8DBfkvyaCHdz6Eb6SxNnCppNYdGS5WKy7HNzefg2+K0Itcm+eeGfjyJcQIoMN4Yst75u+5Ayq5eWRPzOxu4CPO4qsBP5V0nFoQRbgIynE8aYvzas6fHWFmnk06vcitjEwZBHQpPM9+pDMED70D1YmZzScfydXTCXIrBUt8GvWowOxbwPecxVcAPgdcImlokYQlvYA05P9H8rvyJviWmXnvsxe5Nvdkvco9+wVmNnKRgJdmpA1AQW4o2AoDUPA+4Fclyr8O+J2kzzQZQ0DSKpJOJMXaKzMduYbBh/7PqFGBjJzz1jON6DTjYAByc2uPBz9nAKrojBMjlrcA95T42XOBTwP3STpeksen0ReS1pV0AmmP/Qn4PPET3AUcWGHKsSZGAO7DSV1lHAxAzop7OnEu71xVIwCKfed7kM9vsCwbkIbiMyT9QNLBVYwKiq/9IZJ+QFoTPxHfPvyluRXYw8w8W3PdqmWue/Je5nw3Iz8CGMXkoMuSM3KeCDS5UcJ8py4uzOwhpVx2l+ALV7U0q5ASpB4GLJB0A/BL0uGjGaRlramco+uRjthuRoqSs2tR/yBOzuuBN5hZmWSfHqqY2uWe/ch/IMfBAOQ6b09vsaSVyTu4cqcOS2NmjxaHab5Nmhb0w8qkxBme5Bl1cC7wHjPL5UPoh1ybryBppcyUI7dSMNDqThcYeQtH/iHm5qSeL0nlBgDAzGaTTtMdiW9Zqy0sAo4FDq3p5Qdfm+eeXW4E0LlDWGUZBwMwZVbYglwnWMNRRy0GANKxZjM7nRRSy5NfcNjcRprvnzRV8tWK8JzRyCVZyRn/MABdptgok90ymrnuOXeeO3QyMGZ2NSl45XG00zk1l/TV397Mrm2gPk+b555d7tn3dcajS4y0ASA5tXJ+jpxzyuPxbmS7qJktNLMvkHIRfBufA7NuFgL/D9im+Oo3pdNMR5mcAcjt8ltZkme7cGcZdQOQCxoJ+fMCHgPg6YyVYWb3m9l7SFGNT6XGKUgP/gx8CXiBmR0+hLj5niXFnAF4yCHDc2Cos4QByHeC3HFhaNgATGBmD5jZx0g6vh2YRn5eOwgLgPOBvwM2MrNPmNmwTst52jz37DwGwNOHOsuoLwNWMQLIReZdiO/QUW0UocbPAs6StBZpI9GrSMt/O1Nux97SzCclWLmatI33qmJlog08TloZ6eXk3SIjIwzAsBWomVzAxycdy1RbZK7PqNnbXQozm0UaCUyDZzLfbEgyZJuRPONrTfHzWcXfA6SY+o+YWWW7HKvEzJZIeoDe6cG2yMiYJ2kWU7cH+CJHd5ZRNwA7Za575q1bZK7nMgcNleI02x+KvzKpt7vAvQxgAApm0NsAtD4K0yCMrA+gCPiYS/rYM+OLpBXJTwFabQBGnGzatuIZ9iKXnyEMQEfZElgnUyaX8unF5DeDDBrYIuifnAFYkfwQPtcH1pc0sisBo2wAdnaUyT18T/752xxlgnq43VFm28z1GxwyPH2pk4yyAdgvc13kDUCu8wDc4lMnqAFP2+ee4W/JHy3O9aWgTUhaXtIf1Zvs3F3SRRkZsx2JRYKakGSS/px5Rhc65NyVkfHgqD7nUR0B7E5+F9iVvS4WD/yVGRm3tGkJcNwo2v7WTLFdHS/vVZnrmzCi04BRNQAHOMr8PHP9heRDXP/Gp05QI7lnsC69lwoh3xfA16c6x8gZAKWNL4dmii0h/9A9CTjKBPAM6sFz8vBVmes/Jx89+m9HcRowcgYA2J+0460XV5lZLumnJ9rtqG2s6SIeA7B3r4tFuLIrMjK2Av7aqVMwLCT9POPQkaQjHHIezMjwZB0KGkDSI5lnlT2wJOn9jn4zrYn7CfpE0i6Oh7hQ0gYZOds45PygqfsKeqMUBTlHz+VApZDnCzIylkjarqn7aoJRmwJ8xlHmPDPLHSX1OHwudZQJmsHjxOsZWLWYBvwoI8NIORiCtiHpdY6vgCS91iHrNw45z2/ivoI8kjZ1PK/sjj9Jezj70OuauK/AiaSVJd3ueHA3KuPJlbSF0lCvF7m156BhJP3O8fxzy4FIus4h5yblDxl1glGZApwIvMRR7vOOjTvvJJ9W6lyXVkGTnOco805HmS84yrwcON5RLqgbSa+RtMhhtW9VJp22Uqrr+xyyRsoRNApI2t7x3KYr7RPpJceURoo5npa0S1P3F0yCpE0kPex4WJL0Boe8fR1yuhCbfyyRdKfj+b3RIeevnX3qAWVWlIKakLSqpF85H9TFTpmXOmSFF7ilKKVJz3G5U9Z5zr71X2owNXsASHqO82WVpLmSsnHdJO3skLVI4f1vLZKeL990MJsrUckZPMfZxy5QR52CndvbrGRtzwb+xvmTo8zsNIfcnwBvzhS7yMze5KzXhZJf4gXk01hBCtLZVxhuSWuQtkh7ciVO7zenn1L0nA0dRWcD91YddFTp+O/+mWKXmtm+DlkfAL7urPpc4O2ZZKTBIEhaS9JVTqssSVco4/gr5O7tlJedP5a8n7crv+V4WW6S4wu2VB2rSfq2pKdK1PGUpG9KWq1EPbtLurnkvTwo6W39td6UerzRWbfHF2CSflrifi6TtHqV9xMUSNpa0u9LPIyHJWVjuisFD7nJIe8mVXgaTNIhyu83mIq5krZx1GHyT5Um4xLnvWxb6NQPSyQdPHiL/oU+no1ct8kxbJe0jqR7StzP7cpsOw5KIuldykd+WZoFknZ1yvYcApGkt1Z8T56NK734jqOO1wxYh+SbL58xYB2VhlWT9FZnvR92yttB0rwS9zNbFY9sxhKlLZ65sFzLsljSYU75a0ia6ZB5mzLrxyXva9VCz0H4naOeowasQ5I+6qjntgHrWCxp1Wpa95lRnWe0+JicyT8lHaC09l+G8yV5UssNjVbuBJS0iqQTSBF3y867P2xmZzvLnowv+edxRYKNqliRwdvek7u+Cs+0R8agCWasAhn/X1h6Vsc5iq4LnOKU+RPgcPIBRJfmAOB2SccqlgrzKH0ZP6zyjjEpzSWPLFHXAU6516qGSDDy7TjsxTmOOl4/YB2SlA2CIelHA9ZxTzWt+hc6mdKz8/C3JeS+X76lxmWZLulDCkPwbCRtLulESY/20bBSGpp59nlP1LeRs67Fqmm7Z9EZ+mWRHD4OpaGwxyE2FdfLt4qym/p7KSb4YDWt+iy9dpVvqvUnldjfIelQ5WMHTMVMSZ8uU99IImklSW9TWjoZZD78hEoszyl9GX7mlP1vNbfB/5I0v+T9/lHSQSXq2EjS5SXrkKT/kORZz5+o52DlQ7EvyzxJx/bXem69vuHU5XI5jN1Scl/bx/0uzWKlfvhWSZ7pXC0MZSOQpHcBJwGD7qO+BTjIzO4uUffRRd05HgO2LgJF1IakNYFXAB5n1MPAdWa2sI96tialOvNsBLrDzEqfeZC0EulePI6vJ0j3MqdsPSV1WpeUQSgX4Rng02Z2YgnZm5GCiLyiT/UmeBg42sy+O6CcdqN02s5rkXuxRNLXVdJzrPSV8o423l1TMwQNI+k9JfpVqeU7pZHsKSX6VS++qhKjkM4h6aQKGuk+ORxTk9S9u/xrubnQUEHHkHSu89kvkLRnH/J3ly8oTQ5PPILuUTTQIFZynqTPqcT21KXq3kp+B+N0OdeGg+6gtKNvhrMP/EnSS/uo47mSPiX/IaLJqM3xPFQkXTxAg5yhPr2mkjZWPvfbBIskvabqew/agVLMP+9qxX0D9Ln1JX1NKQJ1P1xQ9b0PFSXrW/brP19pnv+iAep9gcrt446z/iOOpM+W6A/TJb14gLo2U/IPlNnGLiUjtVaV9z1UJO1X4ubvkXSCBoy0onRA5Q8l6j1fo+yACYBnHNHTSvSLRyRtP2Cda0v6pMqd/3h9Vfc8dCS923HD50naUxXsupP0CqV93l5+qz58C0E3kbS6fCdAJ3hCUi6/oLfuVyodtc7xrirqawXynbjbq6K6DlY5J8z9kjatou6gOyhFD5peop/MlfR3FdW9uaO+91dRV46RGfJKWkHSF4EfAt6gDI8C+5nZg/VpFrQRM3uAlOzzEedPVgHOUnJIj8x+/pEwAEre2quAY/Dvbnwc2NfMbq9NsaDVFDtI30jqC17+HrhK0pb1aNUsnTcAkg4EbgB2K/GzmcBeZnZjPVoFXaHoA68l9QkvOwO/UcVBYoZBZw2AUtTWC4Af49vnPcEDwJ5mFum9AgDM7BZgL6DMVHBt4PtKB3r6XqoeNp0zAMVc/6Okg0BlI/TeDLyqn4MuwWhTTAV3AX5T8qevB34v6YuSVq5es3rpjAFQWr89BLgJOA0ou2w3Ddi9cP4EwbMws4dII4ELS/50RZL/6WalI+6VhY+rm9YbgOKL/w7gVpKHPxsNdxmWkJKHHmRmc6vWLxgtzOxJ4C3A50l9pwxbAd8jhQF7r4Z4zr9VqI99AEqbNd4n6W7Hb6dipiKXe9AnSjtYBwn6MV0pxN2ay8jd3PHbRvYBVBaIsQqUhk77kJZaDiStvfbLz4F3F8O6ziFpPdKc9KXA84C1gLmkjDp3Aje2ZQlT6eTc9qSAI2sCqwKzgD+SgnH8su7AKnVgZpdI2hH4DrB3HyI2A74MnCxpGnAm8LMKVewG8o0AfqJye/enYrbSyKGLac/WlnSkpF/LlzTkQUmnagiJKCS9TNJpkh5y6LlYKb7gR9XBQy5KYeQ+qMGO+U4wU9KZjnKNjAAaQf7kG4NysVKYpk6hFA35c+q/gy1ROkuRTYJaga4vUTLW/WY1mq10Im+Q0d1QUFp69saTHJQwACW4U9Khw77PflA6o35/Re2wQNIxqieM+XJKwS7K5BjsxX2SXl21nk0gaR+VS1PXD2EAHDwh6ePqqLdV0kdUPtuMh2mq8AurNEIpm6HJw9OS/kdVejaJUizAo5VGNHUQBqAHc5Q2XnQ2dJek4ytuk2W5WhWk21LKLnx1zbp+qoo2HQZK6eWOUfoYVUkYgEn4k6T/rWWWVbqGpA9U1B45fqoBNqUoJRZpas57eJVt3DRKDtzPqjpDEAZgKW5T8iBXlkByWEjaWdXNoz18dgBd/7FBPRcoLbl1GqUR0/tVLuDIZIy9AZgv6Sx11FE0GZJWlHRLnx3iyT5/97Sk7frQdQf1n+6rX11vktSqvSmDIGkvSeeoP4M/lgZgsaRfKH3t1x223lWjtCvMy5NK6+x7qBj5SHqO0jLcx+WPdCxJl/eh61Ul5N9Z6PQSFQ5ZpS/hnpJOV4qm4+VDVbf7sJG0lqR3SrpAfqfv2BmAkzRgINA2o/T198aln6ZMXvlC3jHyf6XdIyklo+PhaaVglz1TiCuFZr/QKXN6Tl6XUcrVeIKjHcbOAJTOxtIl5E9H/nWVS1K5v3xflTNLyPyeQ95ClUvKurz8aeH+xiu3i0ja0tEGERNwxPAElPxP4MNm5j6FZmYXAZ9wFD1QKXlnT5Ti3b3FIe9jZnaxoxwAZrYYOAK40lG885F2ukIYgAZQ2pn32kyxxcBHzGxRH1V8GciFN1sV2NUhazfyh7BuAr7qkPUXFPf2QSB3j/uog2c5ukibDICGrUCNbAGsnylzoZn9vh/hxYjhNEdRTxrrnR1l/rnMKGVpihOMP80UW590ki6omTYZgFHGc0hn0HxwF5IPYOFJc5Ursxi4yKXR1HjutfaDTUEYgKbwBC3t6+s/gZn9iXxkW8/Sak7XR8zsCZ9WU+K51zKBXoM+CQPQDFnnG/4EFb3IBd3w7KTMHax62KlLLzzBQTp3XLiLhAFohly46QVAFZGLcl/4eQ4Z92WuVxFR2fN19+gaDEibDMAoOwGvAv7Q4/qPzeypQSpQ2oGXczTOcoj6JlP7EgT83zJ6TYEnF6NH12BA2mQARpbi5X47MGeSy78Djqqgmr2B3Mm/e3JCzOw3wJE82wgION7MruhLu79kH0eZeyuoJ8gwMgcv2o6ZXakUu+9dwHbAk8AvgTPNbH4FVXgiIrkcjWb2ZUlXA+8FtgRmAGeY2bUD6AeAUvKMN2eKzScMQCOEAWiQIgvx56uWK2lrUiTlXiwB/ssr08xuIOVcrJqPkaIc9+IXfW6ICkrSpinAKPsAakPp+OzXSNlpenGdmT3WgEpTIunFwLGOopfUrUuQaJMBCPrjdFI6qxxn1KxHTyStQ9oAtHqm6CLgrPo1CiAMQGdRitJ7OumATY7Hge/WrNKUSNoY+A98OxHPNrMq9kQEDsIH0EEkrQF8CzjI+ZOTzezPNao0JZK2B84HNncUf5qUxzFoiDaNAMIH4EDSzqQU1t6X/w58B4UqRSmbzkdJKx2elx/SIaM7a1QrWIY2GYCgB0qx+U8GrgFe5PzZPOBtg24yKotSrsD/JBkezzZogOuJr3/jxBSgAxQRcr6M/0sKaUR1eLGc1whFMJFjSJ5+74sP6XzBQWa2oBbFgikJA9BiJG1BevHf1MfPTzSz71er0dRI2p+k65YlfzoXeEuxRyJomJgCtBCltFPHkbYJl335BRxnZp+pXLHJKku57n9MikdQ9uV/HNjHzK6rXrPAQ5tGAOEEBCTtDfwr8NI+fr4YOMLMvlGtVs9GKXLvEcDngNX6EPEQsJ+Z3VKpYkEp2mQAxhqltOan4vfuL8tDwDvMrHQOgLJI2g/4F/qP2vNz4O/NLBfAJKiZmAK0AEnvJA33+335LwN2qvvll7S6pH8jxfTr5+VfBHyW9OWPl78FxAhgiBQber4JHNyniFkkr/u/m1mtUyhJOwFnAy/sU8SNwPvN7NfVaRUMSpsMwFj5ACRtSgqu+fI+RZwDHGlmVYTo6kmxDPl9fCHFlmUu8BngtDjh1z7aZADGBkkvAq4ANunj57cB/9PMLqtUqSmQ9G5SFKB+0oyfA3zCzB6oVKmgMsIH0DCSnkeaQ5d9+ecAHwe2a/DlfyPw75R/+W8F9jazw+LlbzcxAmgQScuTDsZ4t/JCmhqdARzb5Cm5Yjvv2ZTrI7OATwNfjeF+NwgD0CwfAHYvUf4W4ANVhOIqQ5GW6yuUW9//DnC0mf2xHq2COmiTARhpJ6Ck9UibZlzFSbn3PjGk/fGHkc9lOMEskpE6p0Z9gppokwEYdT4IrO0o9xjwD2Y2rWZ9enG0s9x1pNOG2WjDQTsJA9AcnvTgkJbavi1VMiBaTIro+wPgdDNbmPuBpJcBOzjlbw1cX5Gu80nOwy+Z2aVVCAzyhAFoAEkbAds4iz+3+KuK9YAdgT0kHeDI6rt3Cdlr9K/Ws1gb2Bh4naR/MLNvVSg7mII2LQOOsg9g22ErQDpV6Nlx+LK6FclgwGnFLsmgZtpkAEaZDYatQMFejjJt0HUNYKdhKzEOhAFohrZMtTZylOmSrsGAhAFohtuHrUCBR48u6RoMSJsMwCj7AK4DGt3MMwmLSAd6cnydlK58mNwC/HbIOowFbTIAI0txVPcw0jLXMHiaFCkoG33HzO4C3kY6xTcMZgCHOVYrggpoy3xv5DGzByTtCBwC7EK1S31TsRiYDvyozGYdMztP0lYkQ/BC+jsJWJb5wM2kzEDDMj5jRxiABjGzp0nD8Mai9fZLEWfgS8PWI6iXmAIEwRjTJgMwyk7AIGglbTIAQRA0TBiAIBhjwgAEwRjTJgMQPoAgaJg2GYAgCBomDEAQjDFhAIJgjGmTAQgfQBA0TJsMQBAEDRMGIAjGmDAAQTDGhAEIgjGmTQYgnIBB0DBtMgBBEDRMGIAgGGPCAATBGNMmAxA+gCBomDYZgCAIGiYMQBCMMWEAgmCMaZMBCB9AEDRMmwxAEAQNEwYgCMaYMABBMMaEAQiCMaZNBiCcgEHQMG0yAEEQNEwYgCAYY8IABMEY0yYDED6AIGiYNhmAIAgaJgxAEIwxYQCCYIxpkwEIH0AQNEybDEAQBA0TIw+FjwAAAp1JREFUBiAIxpgwAEEwxoQBCIIxpk0GIJyAQdAwbTIAQRA0TBiAIBhjwgAEwRjTJgMQPoAgaJg2GYAgCBomDEAQjDFhAIJgjGmTAQgfQBA0TJsMQBAEDRMGIAjGmDAAQTDGhAEIgjGmTQYgnIBB0DBtMgBBEDRMGIAgGGPCAATBGNMmAxA+gCBomDYZgCAIGiYMQBCMMWEAgmCMCQMQBGNMmwxAOAGDoGHaZACCIGiYMABBMMaEAQiCMaZNBiB8AEHQMG0yAEEQNEwYgCAYY8IABMEY0yYDED6AIGiYNhmAIAgaJgxAEIwxYQCCYIwJAxAEY0ybDEA4AYOgYdpkAIIgaJgwAEEwxoQBCIIxpk0GIHwAQdAwbTIAQRA0TBiAIBhjwgAEwRjTJgMQPoAgaJg2GYAgCBomDEAQjDFhAIJgjAkDEARjTFMGYIGjzMq1axEE7eC5jjLza9eC5gzAw44yO9SuRRC0gx0dZTzvTDeQtI3y/FbSSsPWNQjqRNJKkm5yvA8vHbaulSFpOUmPOG76fEnrDFvfIKgDSetImuZ4Dx6W1MjofIUmKjGzJZIuAA7PFD0AuFfSJcAMYEntygVB/SwHbAbsB6zpKD/NzBrp+9ZEJQCSdgOuaaq+IOgoAnYzs181UVljy4Bmdi1wXlP1BUFH+VFTLz80OAIAkPQi4HpgrSbrDYKOMAvYyczubarCRjcCmdndwGHAoibrDYIOsBh4e5MvPwxhJ6CZXQq8F3iq6bqDoKU8BbzbzC5uuuJGpwBLI2l34IfAxsPSIQhawB+AQwsfWeMM7SyAmV0DbAUcC8welh5BMCTmAicBLx3Wyw9DHAEsjaTVSGukbwb+CtgQ2ICW6BcEAyJgJml77y3ABcAlZvbkULUC/hsUs+pYADEWDgAAAABJRU5ErkJggg=="}))))}const yy=i.forwardRef(vy);n.p;var by;function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wy.apply(null,arguments)}function xy(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",wy({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,by||(by=i.createElement("g",{id:"Icon/Solid/diamond-trait"},i.createElement("path",{id:"Vector",d:"M10.0006 6.99792C10.0006 6.99792 9.78892 6.99982 9.6453 7.14533L3.14438 13.6444C3.09821 13.6912 3.06175 13.7467 3.0371 13.8077C3.01245 13.8687 3.0001 13.9339 3.00076 13.9997C3.00076 14.1282 3.04611 14.2548 3.14438 14.353L15.6473 26.8541C15.7437 26.9524 15.8722 26.9996 16.0007 26.9996C16.0663 26.9999 16.1313 26.9872 16.1919 26.9622C16.2526 26.9372 16.3077 26.9005 16.3541 26.8541L28.8532 14.353C28.9003 14.3068 28.9376 14.2516 28.9631 14.1908C28.9886 14.13 29.0017 14.0647 29.0017 13.9987C29.0017 13.9327 28.9886 13.8675 28.9631 13.8066C28.9376 13.7458 28.9003 13.6906 28.8532 13.6444L22.3523 7.14343C22.2588 7.05092 22.1324 6.9993 22.0008 6.99983H10.0006V6.99792ZM10.4995 7.99952H14.8574L10.5014 12.7203L10.4995 7.99952ZM17.1421 7.99952H21.5V12.7203L17.1421 7.99952ZM16.0007 8.23765L20.8575 13.4988H11.1439L16.0007 8.23765ZM9.49978 8.70635V13.4988H4.70725L9.49978 8.70635ZM22.5016 8.70635L27.2942 13.4988H22.4997L22.5016 8.70635ZM4.70536 14.5004H9.68309L14.2791 24.0723L4.70536 14.5004ZM10.7943 14.5004H21.2033L15.9988 25.3441L10.7943 14.5004ZM22.3126 14.5004H27.2923L17.7185 24.0723L22.3126 14.5004Z",fill:"white"}),i.createElement("path",{id:"Vector_2",d:"M4.0005 26.5007C4 26.6332 3.94701 26.7601 3.85315 26.8536C3.75929 26.9471 3.63219 26.9996 3.4997 26.9996C3.36721 26.9996 3.24011 26.9471 3.14625 26.8536C3.05238 26.7601 2.9994 26.6332 2.9989 26.5007C2.9989 26.3679 3.05166 26.2405 3.14558 26.1466C3.2395 26.0526 3.36688 25.9999 3.4997 25.9999C3.56546 25.9999 3.63059 26.0128 3.69135 26.038C3.7521 26.0632 3.80731 26.1001 3.85382 26.1466C3.90032 26.1931 3.93721 26.2483 3.96237 26.309C3.98754 26.3698 4.0005 26.4349 4.0005 26.5007Z",fill:"white"}),i.createElement("path",{id:"Vector_3",d:"M5.00012 26.5006C5.00012 26.9996 5.49903 26.9996 5.49903 26.9996H10.4994C10.8339 26.9996 11.0002 26.7501 11.0002 26.5006C11.0002 26.2493 10.8339 25.9999 10.4994 25.9999H5.49903C5.49903 25.9999 5.00012 25.9998 5.00012 26.5006Z",fill:"white"}),i.createElement("path",{id:"Vector_4",d:"M10.0006 28.4982C10.0004 28.5639 10.0131 28.6291 10.038 28.69C10.0629 28.7508 10.0996 28.8062 10.146 28.8528C10.1923 28.8995 10.2474 28.9366 10.308 28.962C10.3687 28.9874 10.4338 29.0006 10.4995 29.0009C10.6323 29.0009 10.7597 28.9481 10.8536 28.8542C10.9476 28.7603 11.0003 28.6329 11.0003 28.5001C11.0003 28.3672 10.9476 28.2399 10.8536 28.1459C10.7597 28.052 10.6323 27.9993 10.4995 27.9993C10.367 27.9998 10.2401 28.0528 10.1466 28.1466C10.0531 28.2405 10.0006 28.3676 10.0006 28.5001V28.4982Z",fill:"white"}),i.createElement("path",{id:"Vector_5",d:"M9.00088 28.5001C9.00088 28.999 8.50009 28.999 8.50009 28.999H6.50068C6.16618 28.999 5.99988 28.7495 5.99988 28.5001C5.99988 28.2506 6.16618 27.9993 6.50068 27.9993H8.50009C8.50009 27.9993 9.00088 27.9993 9.00088 28.5001Z",fill:"white"}),i.createElement("path",{id:"Vector_6",d:"M28.001 5.49933C28.001 5.36684 28.0535 5.23975 28.147 5.14588C28.2405 5.05202 28.3674 4.99904 28.4999 4.99854C28.6327 4.99854 28.7601 5.0513 28.854 5.14522C28.9479 5.23913 29.0007 5.36651 29.0007 5.49933C29.0007 5.63215 28.9479 5.75953 28.854 5.85345C28.7601 5.94737 28.6327 6.00013 28.4999 6.00013C28.3674 5.99963 28.2405 5.94665 28.147 5.85278C28.0535 5.75892 28.001 5.63183 28.001 5.49933Z",fill:"white"}),i.createElement("path",{id:"Vector_7",d:"M26.9994 5.4993C26.9994 4.99851 26.5005 4.99854 26.5005 4.99854H21.5001C21.1675 4.99854 20.9993 5.24985 20.9993 5.4993C20.9993 5.74876 21.1675 6.00013 21.5001 6.00013H26.5005C26.5005 6.00013 26.9994 6.0001 26.9994 5.4993Z",fill:"white"}),i.createElement("path",{id:"Vector_8",d:"M22.0009 3.49994C22.0009 3.36712 21.9481 3.23974 21.8542 3.14583C21.7603 3.05191 21.6329 2.99915 21.5001 2.99915C21.3672 2.99915 21.2399 3.05191 21.1459 3.14583C21.052 3.23974 20.9993 3.36712 20.9993 3.49994C20.9998 3.63243 21.0527 3.75933 21.1466 3.85284C21.2405 3.94635 21.3676 3.99885 21.5001 3.99885C21.6326 3.99885 21.7597 3.94635 21.8535 3.85284C21.9474 3.75933 22.0004 3.63243 22.0009 3.49994Z",fill:"white"}),i.createElement("path",{id:"Vector_9",d:"M22.9987 3.49997C22.9987 2.99917 23.4995 2.99915 23.4995 2.99915H25.5008C25.8334 2.99915 25.9997 3.24863 25.9997 3.49997C25.9997 3.74942 25.8334 3.99889 25.5008 3.99889H23.4995C23.4995 3.99889 22.9987 3.99888 22.9987 3.49997Z",fill:"white"}),i.createElement("path",{id:"Vector_10",d:"M16.4996 5.49929C16.4996 5.63178 16.4471 5.75887 16.3536 5.85274C16.2601 5.9466 16.1332 5.99958 16.0007 6.00008C15.8679 6.00008 15.7405 5.94732 15.6466 5.8534C15.5527 5.75949 15.4999 5.63211 15.4999 5.49929C15.4999 5.36647 15.5527 5.23909 15.6466 5.14517C15.7405 5.05125 15.8679 4.99849 16.0007 4.99849C16.1332 4.99899 16.2601 5.05197 16.3536 5.14584C16.4471 5.2397 16.4996 5.36679 16.4996 5.49929ZM15.001 3.99879C15.001 4.13161 14.9483 4.25899 14.8543 4.3529C14.7604 4.44682 14.6331 4.49958 14.5002 4.49958C14.3674 4.49958 14.24 4.44682 14.1461 4.3529C14.0522 4.25899 13.9994 4.13161 13.9994 3.99879C13.9999 3.86629 14.0529 3.7394 14.1468 3.64589C14.2406 3.55238 14.3677 3.49988 14.5002 3.49988C14.6327 3.49988 14.7598 3.55238 14.8537 3.64589C14.9475 3.7394 15.0005 3.86629 15.001 3.99879ZM18.0001 3.99879C18.0001 4.13161 17.9474 4.25899 17.8535 4.3529C17.7595 4.44682 17.6322 4.49958 17.4993 4.49958C17.3669 4.49908 17.24 4.4461 17.1465 4.35224C17.0529 4.25837 17.0004 4.13128 17.0004 3.99879C17.0009 3.86662 17.0537 3.74001 17.1471 3.64655C17.2406 3.5531 17.3672 3.50038 17.4993 3.49988C17.6318 3.49988 17.7589 3.55238 17.8528 3.64589C17.9467 3.7394 17.9996 3.86629 18.0001 3.99879ZM4.0005 17.0006C4 17.1331 3.94701 17.26 3.85315 17.3535C3.75929 17.447 3.63219 17.4995 3.4997 17.4995C3.36688 17.4995 3.2395 17.4468 3.14558 17.3528C3.05166 17.2589 2.9989 17.1315 2.9989 16.9987C2.9994 16.8662 3.05238 16.7393 3.14625 16.6458C3.24011 16.5523 3.36721 16.4998 3.4997 16.4998C3.63219 16.4998 3.75929 16.5523 3.85315 16.6458C3.94701 16.7393 4 16.8662 4.0005 16.9987V17.0006ZM29.0007 17.0006C29.0002 17.1331 28.9472 17.26 28.8533 17.3535C28.7595 17.447 28.6324 17.4995 28.4999 17.4995C28.3674 17.499 28.2405 17.446 28.147 17.3522C28.0535 17.2583 28.001 17.1312 28.001 16.9987C28.0015 16.8666 28.0542 16.74 28.1476 16.6465C28.2411 16.553 28.3677 16.5003 28.4999 16.4998C28.6324 16.4998 28.7595 16.5523 28.8533 16.6458C28.9472 16.7393 29.0002 16.8662 29.0007 16.9987V17.0006ZM3.99861 10.9986C3.99861 11.1311 3.9461 11.2582 3.8526 11.3521C3.75909 11.4459 3.63219 11.4989 3.4997 11.4994C3.36688 11.4994 3.2395 11.4466 3.14558 11.3527C3.05166 11.2588 2.9989 11.1314 2.9989 10.9986C2.9994 10.8661 3.05238 10.7392 3.14625 10.6457C3.24011 10.5522 3.36721 10.4997 3.4997 10.4997C3.63219 10.4997 3.75929 10.5522 3.85315 10.6457C3.94701 10.7392 4 10.8661 4.0005 10.9986H3.99861ZM29.0007 10.9986C29.0007 11.1314 28.9479 11.2588 28.854 11.3527C28.7601 11.4466 28.6327 11.4994 28.4999 11.4994C28.3674 11.4989 28.2405 11.4459 28.147 11.3521C28.0535 11.2582 28.001 11.1311 28.001 10.9986C28.0015 10.8664 28.0542 10.7398 28.1476 10.6464C28.2411 10.5529 28.3677 10.5002 28.4999 10.4997C28.6324 10.4997 28.7595 10.5522 28.8533 10.6457C28.9472 10.7392 29.0002 10.8661 29.0007 10.9986ZM9.00091 6.00008C9.00041 6.13258 8.94743 6.25947 8.85356 6.35298C8.7597 6.44649 8.63261 6.49899 8.50011 6.49899C8.36762 6.49899 8.24053 6.44649 8.14666 6.35298C8.0528 6.25947 7.99981 6.13258 7.99931 6.00008C7.99931 5.93432 8.01227 5.8692 8.03744 5.80844C8.0626 5.74768 8.09949 5.69247 8.146 5.64597C8.1925 5.59946 8.24771 5.56258 8.30847 5.53741C8.36923 5.51224 8.43435 5.49929 8.50011 5.49929C8.63293 5.49929 8.76031 5.55205 8.85423 5.64597C8.94815 5.73989 9.00091 5.86727 9.00091 6.00008ZM9.00091 21.9991C9.00091 22.132 8.94815 22.2593 8.85423 22.3533C8.76031 22.4472 8.63293 22.4999 8.50011 22.4999C8.36729 22.4999 8.23991 22.4472 8.146 22.3533C8.05208 22.2593 7.99931 22.132 7.99931 21.9991C7.99981 21.8666 8.0528 21.7398 8.14666 21.6462C8.24053 21.5527 8.36762 21.5002 8.50011 21.5002C8.63261 21.5002 8.7597 21.5527 8.85356 21.6462C8.94743 21.7398 9.00041 21.8666 9.00091 21.9991ZM24.0003 21.9991C24.0003 22.132 23.9475 22.2593 23.8536 22.3533C23.7597 22.4472 23.6323 22.4999 23.4995 22.4999C23.367 22.4994 23.2401 22.4465 23.1466 22.3526C23.0531 22.2587 23.0006 22.1316 23.0006 21.9991C23.0011 21.867 23.0538 21.7404 23.1472 21.6469C23.2407 21.5535 23.3673 21.5007 23.4995 21.5002C23.632 21.5002 23.7591 21.5527 23.8529 21.6462C23.9468 21.7398 23.9998 21.8666 24.0003 21.9991ZM16.4996 28.5001C16.4996 28.6326 16.4471 28.7596 16.3536 28.8535C16.2601 28.9474 16.1332 29.0004 16.0007 29.0009C15.8679 29.0009 15.7405 28.9481 15.6466 28.8542C15.5527 28.7603 15.4999 28.6329 15.4999 28.5001C15.4999 28.4343 15.5129 28.3692 15.5381 28.3084C15.5632 28.2477 15.6001 28.1924 15.6466 28.1459C15.6931 28.0994 15.7483 28.0625 15.8091 28.0374C15.8698 28.0122 15.935 27.9993 16.0007 27.9993C16.1332 27.9998 16.2601 28.0527 16.3536 28.1466C16.4471 28.2405 16.4996 28.3676 16.4996 28.5001Z",fill:"white"}))))}const Cy=i.forwardRef(xy),Ay=(n.p,e=>{let{sales:t,isLoading:n}=e;return(0,a.jsx)("div",{className:"flex flex-col gap-[18px]",children:n?null===t||void 0===t?void 0:t.map(((e,t)=>(0,a.jsx)("div",{className:"flex flex-row items-center bg-gray-400 animate-pulse cursor-wait h-[90px] rounded-[10px]"},t))):null===t||void 0===t?void 0:t.map(((e,t)=>(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between px-[24px] py-[11px] rounded-[10px]",style:{background:"rgba(255, 255, 255, 0.08)",boxShadow:"0px 4.11px 18.494px 0px rgba(0, 0, 0, 0.25)"},children:[(0,a.jsxs)("a",{href:e.attributes.assetDetailUrl,className:"flex flex-row items-center top-sales-spacing",children:[(0,a.jsx)("img",{src:e.attributes.image.data[0].attributes.url,alt:e.attributes.assetTitle,className:"top-sales-image rounded-[10px]"}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px] truncate",children:[(0,a.jsxs)("p",{className:"flex flex-row items-center",children:[(0,a.jsx)("span",{className:"text-[#ADB5BD] font-bold top-sales-title truncate leading-normal",children:e.attributes.assetTitle}),(0,a.jsx)("span",{className:"text-[#ADB5BD] font-bold top-sales-title leading-normal ml-1",children:e.attributes.serial})]}),(0,a.jsx)("p",{className:"text-[#ADB5BD] top-sales-subtitle leading-normal font-medium",children:e.attributes.series})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px] w-[70px] lg:w-[100px]",children:[(0,a.jsx)("p",{className:"text-[#A4A4A4] font-normal top-sales-describer leading-normal",children:"Sales Price"}),(0,a.jsxs)("p",{className:"text-[#ADB5BD] font-bold top-sales-value leading-normal",children:["$",an()(e.attributes.salePrice).format("0,0")]})]}),(0,a.jsxs)("a",{href:e.attributes.buyerUrl,className:"flex flex-col gap-[6px] w-[110px]",children:[(0,a.jsx)("p",{className:"text-[#A4A4A4] font-normal top-sales-describer leading-normal",children:"Buyer"}),(0,a.jsx)("p",{className:"text-[#ADB5BD] font-bold top-sales-value leading-normal",children:e.attributes.buyerName})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6px] ",children:[(0,a.jsx)("p",{className:"text-[#A4A4A4] font-normal top-sales-describer leading-normal",children:"Purchased On"}),(0,a.jsx)("p",{className:"text-[#ADB5BD] font-bold top-sales-value leading-normal",children:e.attributes.purchasedOn})]})]},t)))})}),Ey=e=>{let{sales:t,isLoading:n}=e;return(0,a.jsx)("div",{className:"flex flex-row gap-[8px] overflow-x-auto",children:n?null===t||void 0===t?void 0:t.map(((e,t)=>(0,a.jsx)("div",{className:"flex-shrink-0 flex flex-col items-start justify-between p-[12px] h-[190px] w-[224px] rounded-[12px] gap-[8px] whitespace-nowrap cursor-wait bg-gray-400 animate-pulse"},t))):null===t||void 0===t?void 0:t.map(((e,t)=>(0,a.jsxs)("div",{className:"flex-shrink-0 flex flex-col items-start justify-between p-[12px] rounded-[12px] gap-[8px] whitespace-nowrap",style:{backdropFilter:"blur(21.03209114074707px)",background:"linear-gradient(153deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%)",boxShadow:"0px 4.11px 18.494px 0px rgba(0, 0, 0, 0.25)"},children:[(0,a.jsxs)("a",{href:e.attributes.assetDetailUrl,className:"flex flex-row gap-x-[10px]",children:[(0,a.jsx)("img",{src:e.attributes.image.data[0].attributes.url,alt:e.attributes.assetTitle,className:"w-[54px] h-[54px] rounded-[4px]"}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[4px] justify-around",children:[(0,a.jsx)("p",{className:"text-[#F8F9FA] font-black uppercase text-[14px] tracking-[1.12px] leading-normal",children:e.attributes.assetTitle}),(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[11px] font-normal leading-normal",children:e.attributes.serial}),(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[11px] font-normal leading-normal",children:e.attributes.series})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-around gap-[8px] px-[12px] py-[8px] rounded-[12px] w-full min-w-[200px]",style:{background:"linear-gradient(153deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%)"},children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] font-semibold",children:"Price"}),(0,a.jsxs)("p",{className:"text-white font-bold text-[16px] leading-normal",children:["$",an()(e.attributes.salePrice).format("0,0")]})]}),(0,a.jsxs)("a",{href:e.attributes.buyerUrl,className:"flex flex-row items-center justify-between",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px] font-normal leading-normal",children:"Buyer"}),(0,a.jsx)("p",{className:"text-[#CED4DA] text-[12px] font-medium leading-normal",children:e.attributes.buyerName})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px] font-normal leading-normal",children:"Purchased On"}),(0,a.jsx)("p",{className:"text-[#CED4DA] text-[12px] font-medium leading-normal",children:e.attributes.purchasedOn})]})]})]},t)))})},_y=e=>{let{topSalesData:t,isLoading:n,recentBigSaleData:r}=e;return(0,a.jsx)("div",{className:"container pt-[60px] 2xl:max-w-[1920px] mx-auto",children:(0,a.jsxs)("div",{className:"grid 2xl:grid-cols-2 gap-[26px] 2xl:gap-[36px] my-auto mx-auto",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(cy,{saleItem:r,isLoading:n}),(0,a.jsxs)("div",{className:"w-full overflow-x-scroll mt-[26px] lg:mt-[32px]",children:[(0,a.jsxs)("a",{href:"https://www.flowty.io/collection/0x0b2a3299cc857e29/TopShot",className:"flex flex-row items-center justify-start gap-x-[12px]",children:[(0,a.jsx)("span",{className:"text-white font-montserrat text-[21px] sm:text-[26px] font-bold leading-normal whitespace-nowrap",children:"Explore NBA Topshot"}),(0,a.jsx)(hy,{})]}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-[13px] mt-[12px] lg:mt-[32px] 2xl:justify-between items-stretch",children:[(0,a.jsxs)("a",{href:"https://www.flowty.io/collection/0x0b2a3299cc857e29/TopShot?collectionFilters=%7B%220x0b2a3299cc857e29.TopShot%22%3A%7B%22%231+Serial%22%3A%7B%22True%22%3Atrue%7D%7D%7D",className:"p-[7.2px] flex flex-row items-center justify-center gap-[10px] rounded-[5px] customCollectionStyle min-h-[81px] lg:min-h-[75px] w-full",children:[(0,a.jsx)("div",{className:"px-[23.4px] py-[25.2px] flex flex-col items-center justify-center bg-[#04070B] rounded-[5px]",children:(0,a.jsx)("span",{className:"text-[#DEE2E6] text-[24px] font-montserrat font-black leading-[10px]",children:"#1"})}),(0,a.jsxs)("div",{className:"flex flex-col w-full gap-[8px] md:gap-[10px] justify-center",children:[(0,a.jsx)("span",{className:"text-[#CED4DA] text-[14px] font-montserrat font-black leading-[10px]",children:"Serial"}),(0,a.jsx)("span",{className:"text-[#A4A4A4] text-[11px] font-montserrat font-normal leading-normal",children:"View all #1 Top Shot moments"})]})]}),(0,a.jsxs)("a",{href:"https://www.flowty.io/collection/0x0b2a3299cc857e29/TopShot?collectionFilters=%7B%220x0b2a3299cc857e29.TopShot%22%3A%7B%22Jersey+Match%22%3A%7B%22True%22%3Atrue%7D%7D%7D",className:"p-[7.2px] flex flex-row items-center justify-center gap-[10px] rounded-[5px] customCollectionStyle min-h-[81px] lg:min-h-[75px] w-full",children:[(0,a.jsx)("div",{className:"px-[20px] py-[13px] flex flex-col items-center justify-center bg-[#04070B] rounded-[5px]",children:(0,a.jsx)(yy,{className:"w-[34px] h-[34px]"})}),(0,a.jsxs)("div",{className:"flex flex-col w-full gap-[8px] md:gap-[10px] justify-center",children:[(0,a.jsx)("span",{className:"text-[#CED4DA] text-[14px] font-montserrat font-black leading-[10px]",children:"Jersey Match"}),(0,a.jsx)("span",{className:"text-[#A4A4A4] text-[11px] font-montserrat font-normal leading-normal",children:"View all jersey serial Top Shot moments"})]})]}),(0,a.jsxs)("a",{href:"https://www.flowty.io/collection/0x0b2a3299cc857e29/TopShot?collectionFilters=%7B%220x0b2a3299cc857e29.TopShot%22%3A%7B%22Tier%22%3A%7B%22Rare%22%3Atrue%7D%7D%7D",className:"p-[7.2px] flex flex-row items-center justify-center gap-[10px] rounded-[5px] customCollectionStyle min-h-[81px] lg:min-h-[75px] w-full",children:[(0,a.jsx)("div",{className:"px-[20px] py-[14px] flex flex-col items-center justify-center bg-[#04070B] rounded-[5px]",children:(0,a.jsx)(Cy,{className:"w-[32px] h-[32px]"})}),(0,a.jsxs)("div",{className:"flex flex-col w-full gap-[8px] md:gap-[10px] justify-center",children:[(0,a.jsx)("span",{className:"text-[#CED4DA] text-[14px] font-montserrat font-black leading-[10px]",children:"Rares"}),(0,a.jsx)("span",{className:"text-[#A4A4A4] text-[11px] font-montserrat font-normal leading-normal",children:"View all rare tier Top Shot moments"})]})]})]})]})]}),(0,a.jsxs)("div",{className:"overflow-x-auto flex flex-col",children:[(0,a.jsx)("h4",{className:"text-white font-montserrat text-[26px] font-bold leading-normal",children:"Recent Top Sales"}),(0,a.jsx)("div",{className:"hidden 2xl:block mt-[12px] lg:mt-[26px] 2xl:mt-[4px]",children:(0,a.jsx)(Ay,{sales:t,isLoading:n})}),(0,a.jsx)("div",{className:"block 2xl:hidden mt-[12px]",children:(0,a.jsx)(Ey,{sales:t,isLoading:n})})]})]})})},Ty=n.p+"static/media/Blocto_logo.8c13acccac6d07aa5401.png",Sy=n.p+"static/media/Dapperlabs_logo.682a45fa243225584380.png",ky=n.p+"static/media/DMX_logo.5b0b99bf2998e78ef013.png",Py=n.p+"static/media/Doodles_logo.3af8586e089a40a83303.png",Dy=n.p+"static/media/Flow_logo.3c3ab2662ac1d8aacebf.png",Fy=n.p+"static/media/Flunks_logo.8916c7b49d9b08658b60.png",Ny=n.p+"static/media/LiveToken_logo.3a5cf0686beccbb1ac13.png",Iy=n.p+"static/media/NBATS_logo.e0a676dde272b72d9748.png";const Ry=n.p+"static/media/NFLAD_logo.1eaffdbe9f9856370c318bc8c6d8114f.svg",Oy=n.p+"static/media/UFCStrike_logo.21317637c212baf860ed.png",jy=e=>{let{direction:t="left",speed:n="fast",pauseOnHover:r=!0,className:s}=e;const l=i.useRef(null),c=i.useRef(null),u=[{alt:"Ballerz",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAAApCAYAAABQrDlEAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABY0SURBVHhe7VwHjF5Vdj5/neYKJuDYrHEv2BgIARYrVAlIgAXTI9GLFhYIIV4jmmTjDcRgwLACIogQBmxwRO+4sSB2jQFD6BgCmF0J1tgz7mU8f7n5vvv+8+bM9ftnfq93o1lpvpk7t51z7rn3nXduee9NSkQcQg960O2QrsQ96EG3Q49x9qDbosc4e9Bt0WOcPei26DHOHnRb9BhnD7oteoyzB90WqVRanHNIIMOY9vqzf/pHOfvnV0qmoVEylVPQIkJWyqBJSQnEmRQqXAZ8Tvbc0ixZpNOkcln8gq5ESeUon3aSdmnZli7Kg0+/KPPmzkFditIi4cD9998vBx98sJRKJSiFunJZ0ulIOeYJmybq6+vl4YcfltmzZ3co9x2qoFevXnLffffJ2LFjfV7rSM9gaYlFixbJjTfeWMlFdKR59dVXZffdd/dlqkexWJTDDjvMl3UF0t99991yxBFHSFtbW6VUZNOmTXLJJZfId999F8sNdbK48sor5cILL/TjFEL5KINgnmPIsXzzzTfl2muv9eWMzzjjjA7taNshVB/K+fzzz+X888/foR3qf9VVV0lra6vPW4RyVZ4F84ccckgl1wEwm3SW1C6Vyrjjjz/WTX/la9f/ukWufsqrrmHKElc3hekFCIt8unHqItcw9XXXNGWh2+Oql91H4ya5lqHjEMa7NcPGuTVDJ7h1Q/d1zfuMdc0jJrqWkfu7ljET3fr9DnGbbvx3d9aZp/v2NEBht3jxYuiYDAyuD5pWMH3nnXd2kKXyGJju3bu3e//992P6atC6+fPn7yCP4YcffnAwCE+jKBQKcTsaa2AeF7RDHQx/Bx3WrVvn9t133w501QLrZ86cWeFsB2VW65uWP/vss7E+cAS+TOs0DvsXYvny5bGOVtebb765QpEMqxvTNq9QWaqjT+MPLLcYW/SDD82V6c+vkA3by1JMZ6VULoKyBJ/opOBQBppCqQivUZBWpEupVph3QUqFopRL28UV2iRVbJViCTHEO3Bm4J5z6Tzkp6TttcVy6fEnstkYbJftVwPrVD/G6FyHcoWli/obyVZYXiKsS4ot6D0I5dO2NFZoXtvSOp0VFCGv5pOgdCE/wTIrx8LSW32sLI3ZP61LkqX1hK239Emx1cGmCaVT2Gubjm4AdI7GioKmfn0whxckD0XSJQhOZ6SEkIKQLK5NlsJhtGQuw/iKxTwMsyx5CC3DINPFMujzkqnDkqA+L9l8gzgsDwrIS2MT8hkZUI+0gZdljIYIlbawg3TeeefJRx99JN98841cccUVvozy4FHliy++kHfffVdGjx7ty8mjBkaEA0Ucd9xx8uGHH/opbPLkyb4spGOesqizrdN0ku5JbbEslBHyhnw2H/IxH/JrXmmVRmMNhJZrUGg9x/Hjjz+Wr776Su69915fptdC6avFhMohNM16W65gWRrOjCmYJhJYKFJWKtPg15gu7SslUy74NWU5lSWfpMrwmCgb2CsnQwY0St2QvUV+Mljyg/eRzMgR0foTSpdgmOW6JinVw5gb8pLO56TckIOBejExbOes0hZKE3aE68D99ttPhg0bJnvttZevZxgyZIiMGTPGrzWbmpo8bdhGEvr27SsTJ070vJQdtqnyWa51mrd0IarRsExh0wqlD+MQyhu2oXkGTWcymThvaSythdI1NjbKhAkTZOTIkTJ06FBfFt5cSVB5pFN6y5PET/tJc+pFrRcAE5IcfpxsZxFaxtSMbUsZZWWB96wswtvQwMTBe8iSfzlIlt34DzLmxbnSZ8kr0u83i6Xfmwskd9YJInX1kqqDIcJ7pnJZGGZeio0N2MU0SIHLilTGywoRKrp69Wof1qxZE8cbNmzoQJc0oNVAfpWlYe3atZXadqjMUG44sIqu2udgJ11I2wbjJNkKrUtqS/v0448/duif5jlmKl/1sO0x3rhxo+ex/C0tLZ4ubFPz5Nu8ebMP4bhqaG5ujmXYmUvBcqsHQR1ByR04GkJZya8QQQiDpf04qceaEncZp/40pt0U1pzFkuw/qFFevnR/Gb17ozTCGzp4wzIMzzVgZw7BTf8xTerPwpSYg7fNZiXb0BseM40YRgqjzZZhsJXOEaqQQjtOTJo0yXsxDZxarr766g67VfJbGUyzc4QOCsEBPOigg7w3VVkjRoyQk08+2ddbWJmMVYbVTWHbDqF1frCDC0NZLEtqh2Deyta6kI4YP36879O4cePi/jFomrt8gnzKb2UTl112mQwfPjzmZTj22GP9zau0VgeCeZ6GcKYaNWqU56EOys8xPuCAAzx92J7Cltt+RdM6AFb8RN7MwQhBJZk0NkoY1FyZ6wqRAqYDzO2yR2Mf2atPztPSuHlchO7C4Aq0cUln6sSNHAXjhBH2zkixCWtQrDuL2wvifv+9FLdujdqoQBUKO05wYLCjjcP69ev9HW47QTBvB4wXXcu0nAZCfpXJNI9yKI9Ikqmx1cmC5SGfha0L0+TVm4gI5TAflqkeoT7si/aNgWk7brwxFWwzqT+k2bJlSwde9bgK5bNl27Zt822Slrz0tipD466Q1AbmmqiQO2lsZVCDwaqUFeEtScbzyBTqMjBMnnEW8MPSaDMV3fkp7OT9VF2m/4W8LHZbWOu5bL1kNm2U4tffiny2Qgqr/oDK9gtikTRgPBc8+uij5ZhjjvHxUUcd5deEIS3zdtDZ2ZAmvNAhktoPsbMyq0HlMN4ZGdVojzzySB/sODHWNNeKiqSpVRHqU8uYKMinvGzj0EMP9W3zGlooHW+Gt956S5YuXVqpiRDL8H8DZPBTxmYoDY8JFydl2hx26Fh0Sq4uK32xloRvonmivsLkO4U8dvZEOoO16sZmKXyzUkorVopbtx6FIIbS3l23979TPPPMM7J48WIflixZIq+//rpMmzYtXtQrmFZvWQ06hVrDUHTG191B3RcsWODHhg8ROE42sHzGjBmdGqWCskKD1LGxY5RktFZ+HnuMRx55xLf98ssv78DLsGLFCjn88MP90i1RXiUGIm/mj0ABb2dYe6bgPenoMlg/ZrG+HLJ7ncyavC81BTOI4Wm9x6WoSgO4L8S1bBD53z9ImlMmDLVIY0V5Kt4IdT1QRDhYYSd1WmS6Wp2WM9Zg6TWvUJruDtXR9iXsh4XOLDouIZTe8tm05Q1lE6FcpSGf1UsR6hrS+MOijoVpmJrDzM6jdzBl0pLDFN0AL9kH3rMhk5P+DTxyIhUNDJ6wslblLM+Delp2ulDCZgjmm4kGzh8vIdDosToA/46dS0KocJj/8ssv5dFHH5Wnn37an0+ynoFthp6irq7On4tefPHFctFFF/mYj+NOPfXUCkUEldHdEeoYGkxSH5LGRcHND8eD46JjdOaZZ/rHxOTj2nHevHkyf/58eeONNypcEXTMuIwg3wUXXCD9+vWr1LaDG9mHHnpIHn/8cf9IWEHeUH8Ak6x5FLVha9HJpS+6LB9RXvcb1/uGRW63ab91e0z/rdt7xjL3019/4FZv2e6cfwJViiLExTIffUWBZW0PzHEtfzvcrRkyxofVQ0a6NXuPds17j3QfPzJXJ/Y4JD2+xJ1YSXWELZ89e3YHORqefPLJCkU7LB/T1eQrcIFieXx8GYKPL22bXYXXXnutwtkOXHCH3W0ifVK47bbbKpzVEfaT4ONL8vNaY3fty6qh2rjwMXCoj7UdGL176qmnKtTJwDqzA78NKktjfwuBh5GHd8z5jNRnM1IHh1iXq5cGzPUN2bI0Ib+ltSDPfrIGpk7C6PUNxhmamwdEQl4hHW2MfAkSeR5P8e4AWYkklbrOACV9bPULwTqlS4LlDeUx35nsvyaE/Qz7yDW6pm19GBOsT0JYbuUQzBeLfHzTDlvPdDYbPV0krDwrS2PU0nTa1wrrthal//VLZI++DZLDlJzHBicHqlwmyxN7ccjwnZobjhgoF/zd4MjI+AoSjLKEBrCVogXLlum3Suv8/wY9pnPs/r3tcg2L3fz3v5omEy84h5wxuOHhTjPErFmz/FEFoR3g+dlpp53mB/y9996TV155xb99tHDhQh8IeE45/fTTfZo8yqsDEg9AJZ8Evm3DKYiA55SBAwf6tIIXIpfTI7WuAc/pH49a8KiFGwI+Lq0F8Jzx20UWt956a2wY2lcGTuGM+SiX0zHr+Ojx8ssvj2lD2HFSsIyH7A888ICf5j/99FO/nCI4lZ9wwgn+batTTjnFX58Q06dP94a5fft2ueWWW7w8QnUNEbWPOvyNw9ptRZeastANmvE7N+yWZW7EzKVuzO3vufF3LHUT7nnf/f29y93A6b9zv3r1a+/+S5gBGEcTQcm/2bL5yn91awcNc2uHjPZTestPxrjmoVE6mtbndWiTodpbSbvtttsOtJMnT058gwadjml0WtcpyutYZbqqVv7XNK1jd5xIbwMuuI/1rSTC9t2OVRJsOXbgsdwZM2ZUSpPBa6Vt2xCWhflow+130NEimd6xMZuThnxK6jCV16XziEtSj81EDlP1yuYtsgo78TIcBmWRq4Qdu7/Ptm6XbY8+JNuefBGV8KF0l6ki6rGBKsKdw2vSUWOrxJuiJiQt3nlXYaAquXYklZFWY02HqFZeK2wbnQHXqUNMhP0LZYSyLW8SutKBsDIsPdOss2VW56Rywj6tS4J67xBhmc2zLfDxZQ5e1OiYgcdH9Zi661N5uOEMAvJ1jbK9mJKPvt0oLau2imyHIM7t/lC+HL+Q3DJkrLReMx1b9m343QpjbMPtkJF8Cbv0TCsCphraJy/IjrruEtgxTvMhtMOM+TIspzPuJDWce+65ctNNN8U0doBqBXmSLixh85q2ZfaGUhkKzdtYeZXO0hNKp7Bp1iXd7CqDL23zNIM7dr7QzPG57rrr/BO0sN2uQIO94YYbYjnV0KmuHBxtkHGZxoYNUSbPdWZO+taVZFPrZlm1bqOceeAAOXvSQDlt0p4yfnATNj0YLLpAPlWCcWeOPUJy/3yaNJx1ujSed7bI3wyU1LY2KWHtWsagpMp5rEmRrq1/HlRYlQ5jC5bZC619srSYhv1RCA+HNcydO1deeOGFCkWy7K5AHj+YCR7C5qvJ1nLSJtFoeWeyLK/ShTwExyiJjuCBPcfjsccekzlz5vjx4REd14khbVdgO88//3wsx8LKsPppWm8g/I0uaHxWmS5j+s7xsbjU1adl7da0bN1SkF//bJQ8fs4EmXfORHny3APl1PF7it8KwNJSnOMhoc+8OdJ0/93SeO+d0uuu26Xfg/8puRE/oU+WdDGPv23+jDN6fLnjHZwEKqxKM6biaoRJHdOOhx6C5aRJGlwtUxrCyq6GkNbeHArVw8oOUe2msvTVyjVf7cZgvULTSbIsrZVDuVYGYeurQWWH14EI+UmrgdAbiKc7AB9FRgx8wbhXPod1Z17Wb2qVz75ZLf919gQ5+8Bop8qjI5gLJSJVQuPIo31yQx1v4ikuFbgzP3C81E39JZIlBNx9gh1/KXo+H619uwZ338uWLYsDn8POnDkzPhoh7MAqkgyYqGVgiVBeErhTpz7vvPOOD2+//bYPqusnn3wi55wTnUpou7Z9pvv06eN30aSnDNtPylq+fLnccccdiX3VPjLPZ9SktzIYVB/u8pP6Tl6VqSGEbdPSdgYa5RNPPBGPj+pjx0rz+mzd6qdp/OVxEoO4La0lN+7uD9zYWctcFrv21M+fd0t/v9nv1IrgIKJNmx7AI1+M0j5UEoxI3/raArd2n/Guecgo/03R6sFj3P889qhvy4Zqu/UQukunPgyaJsLduqUhsHby3xSxHoMb006YMKFCEUF5utqtK7SdpBOE66+/PpaxYMGCSml7G1a/asCyI5bR1SG86qLQ9HPPPRfLCL8hUpx44okxjYbhw4e75ubmCkU7XnrppZhm2rRpldJkaDuhboTmbZsMvD58vQNp3oEIuBlgZtKyfrN8/ccW2CvuKuzcxWEHBNArUk5008AzYnfj92kZpP2787wT+cf/Rl60TC+K3ToouVvPprBJouusYVqPdO4I3pHoUIc7mXmCa0p7R1sawvJZhGVJNNUQjUfkSZKmMCuL7asuWl5LWyqXtHZMmLZ5hcpU3QgdI+ZtWmFpLViW1E4SbRJUrsYhn83b8SN9tKVRAkSt2zbLj99v8OvIDOwtVTEk0sFFYs3YPkB8ETkyQCofyfB1+OWUD7OBhcJ8U1lsnrBjR+Cac0sbTToaoM6geulgarv2YvHT4MGDB/uXZO+5556YhmDadp5prbd0uwIrnwjl2jxpQ3oi1KmaDMZhfxgsfViv0HQoW2FpkxDyV5Oj0Hrlq0V+6Dwqb69REC54OS03/fLf5KKjRkihVJC2YsF/TSklGAfpYMreGCsCmPagicNQWerr8MsNFr1yuQiD3rxRMhu2iENcd+TRMu+DZRFfBeSxSoWwxhiCL7iuWrVKVq5c2eGlVivTxrZcoUdQSQMe0naFkN56A5u2UJ4wVlCvanVEUlkI0ihdNT06Q2fGliSvFp0sVH7HvsI+vYejd0xF26JfXP4LGXH4yX6abC3n5adDm6RvfR3MzUkBXjIDl0ozVW9ZDf7T4HWrpO2zbyWD5UKxLiMLf/yjzLr9TmlrK2Jh0T7N8Z8q8MN6O/V1BT5G41HFXXfd5TukHWPMx3l8VMhHehw8lvEt75NOOqnDW+EEP9XgI1A+SlTwURsfufGYiTL5TuKAAQNi+dpWZ+AHYdzMUEfS8p8q8IVgnreqTl2BevAfIlxzzTVeBr8wrfZPFZKgelLG1KlTfZn9pwraH34EyM80uLHSMmLQoEF+durfv39cxre7eOw0ZcoUn+djXn4GwseXvH619k3bJ/gPNQhtm3Gshw6zS+cwTcNjcmftn+VUGuHqFIQ8r/SeFPXR/wHpGvyIg98maY587IBO14QdkD8HbCeT5CbVVysjwvJaYPu4s7ydYWdkVaO1/SKS6MJrVA2hrFrRVT9gcj6C6SAg4w0TU3QWBhR/CkyvChmOZ0YwzEiZGgzTC+c/sUESmya2k0phU4RU2GkqqZ3UeFdQrdOUbQdFYy2zMcG0Ld8Z2D5amRp3BdIl8eyMHmG7mrYyWGbpFPbGsgjzO6OPRWd8bCNddt5UvAHCbcJ+8oj5Hz5QXvlgjfVcl6qoaDansXUODAUaibic97ZMOCmCP6nDOkB/SmeT5BGhLJsnTUiXpENSvhaEdLaNWkA6hlqnyWqw7Wra6sYy20et01jrCaXTvEJ5/5xI05PRAvlRMP2nK2MD5Pfw8IzYJ/gm4Um94TLJNJ8K+Vzn8GtOGLr/tJh5xEylHJYOsbxd72S1AQvzCm2DsfJZ2s500LZqgdJV06NW1NperdA+WLlMq55arrHts9JpXqG8GteKJHqVzxpHg6MRRcjCJot89gMbhbeDm6Tf9CI8E7ZC6bKUqFtH/apC5bNRrj8L3lO3d1CV+f+AbSupXZYRSfp0xfuXRGd6dQbVM4yTUK2u1rY7k/2ngM1C4ww8WRlrTAj20zzXk/RsnIqjXTxI0TCoPYcqUJmqu4D3tvSgPoPgvWZtvF2hlkFX7Mrg7Uw7Sah1c9EdsSvjtivwphIle9CD7gSR/wPho1Tx9CsUGgAAAABJRU5ErkJggg==",url:"/collection/0x8b148183c28ff88f/Gaia"},{alt:"Blocto",src:Ty,url:"https://blocto.io/"},{alt:"Dapperlabs",src:Sy,url:"https://www.dapperlabs.com/"},{alt:"DMX",src:ky,url:"/collection/0xe3ad6030cbaff1c2/DimensionX"},{alt:"Doodles",src:Py,url:"/collection/0xe81193c424cfd3fb/Doodles"},{alt:"Flow",src:Dy,url:"https://flow.com/"},{alt:"Flunks",src:Fy,url:"/collection/0x807c3d470888cc48/Flunks"},{alt:"LiveToken",src:Ny,url:"https://livetoken.co/"},{alt:"NBATS",src:Iy,url:'/collection/0x0b2a3299cc857e29/TopShot?collectionFilters=%7B"0x0b2a3299cc857e29.TopShot"%3A%7B"%231+Serial"%3A%7B"True"%3Atrue%7D%7D%7D'},{alt:"NFLAD",src:Ry,url:'/collection/0xe4cf4bdc1751c65d/AllDay?collectionFilters=%7B"0xe4cf4bdc1751c65d.AllDay"%3A%7B"%231+Serial"%3A%7B"True"%3Atrue%7D%7D%7D'},{alt:"UFCStrike",src:Oy,url:"/collection/0x329feb3ab062d289/UFC_NFT"}];(0,i.useEffect)((()=>{!function(){if(l.current&&c.current){Array.from(c.current.children).forEach((e=>{const t=e.cloneNode(!0);c.current&&c.current.appendChild(t)})),h(),f(),p(!0)}}()}),[]);const[d,p]=(0,i.useState)(!1);const h=()=>{l.current&&("left"===t?l.current.style.setProperty("--animation-direction","forwards"):l.current.style.setProperty("--animation-direction","reverse"))},f=()=>{l.current&&("fast"===n?l.current.style.setProperty("--animation-duration","20s"):"normal"===n?l.current.style.setProperty("--animation-duration","40s"):l.current.style.setProperty("--animation-duration","80s"))};return(0,a.jsx)("div",{ref:l,className:(0,o.cn)("scroller relative overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_20%,white_80%,transparent)] opacity-80",s),children:(0,a.jsx)("ul",{ref:c,className:(0,o.cn)("flex flex-row items-center shrink-0 gap-[52px] flex-nowrap md:px-[120px] lg:px-[240px]",d&&"animate-scroll ",r&&"hover:[animation-play-state:paused]"),children:[...Array(2)].map(((e,t)=>(0,a.jsx)(i.Fragment,{children:u.map(((e,n)=>(0,a.jsx)("img",{src:e.src,alt:e.alt,className:"grayscale shrink-0 max-h-[32px] cursor-pointer",onClick:()=>{return t=e.url,void(window.location.href=t);var t}},"".concat(e.alt,"-").concat(n,"-").concat(t))))},t)))})})},My=e=>{let{topSalesData:t,isLoadingTopSalesData:n}=e;return(0,a.jsx)("div",{className:"container py-[40px] md:py-[80px] lg:py-[128px]",children:(0,a.jsxs)("div",{className:"flex flex-col justify-start gap-[20px] md:gap-[60px] lg:gap-[80px]",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h4",{className:"font-extrabold text-[32px] md:text-[40px] lg:text-[48px] leading-normal text-montserrat",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #FFF 0%, #AEAEAE 100%)",backgroundClip:"text"},children:"Why Flowty?"}),(0,a.jsx)("p",{className:"text-white font-normal text-[11px] md:text-[18px] lg:text-[24px] leading-normal text-montserrat",children:"Best-in-class marketplace with low fees and useful features"})]}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 my-auto mx-auto md:px-[88px] gap-[20px] md:gap-[88px]",children:[(0,a.jsx)("div",{className:"flex flex-col gap-[24px] my-auto",children:[{description:"Save money by selling on Flowty",icon:"2.5%",style:"text-[20px] md:text-[40px] lg:text-[40px]",title:"Seller Fees"},{description:"Find liquidity by listing your NFTs for any price",icon:"<$1",style:"text-[20px] md:text-[40px] lg:text-[40px]",title:"List NFTs for <$1"},{description:"Save time by listing multiple NFTs in one transaction",icon:"75",style:"text-[20px] md:text-[40px] lg:text-[40px]",title:"Bulk List Up To 75 NFTs"},{description:"List with confidence using FMV for NBA Top Shot and NFL All Day",icon:"FMV",style:"text-[18px] md:text-[34px] lg:text-[38px]",title:"Fair Market Value"}].map((e=>(0,a.jsxs)("div",{className:"flex flex-row items-center gap-[32px]",children:[(0,a.jsx)("div",{className:"flex items-center justify-center p-[12px] md:p-[21px] lg:p-[24px] rounded-[9px] h-[59px] w-[69px] md:h-[108px] md:w-[126px] lg:h-[120px] lg:w-[140px] flex-shrink-0",style:{backdropFilter:"blur(21.80327796936035px)",border:"1.038px solid #343A40"},children:(0,a.jsx)("span",{className:"font-montserrat leading-normal font-bold text-[#F8F9FA] custom-shadow-feature ".concat(e.style),children:e.icon})}),(0,a.jsxs)("div",{className:"text-container",children:[(0,a.jsx)("h3",{className:"title text-[18px] font-semibold",children:e.title}),(0,a.jsx)("p",{className:"description text-[14px] text-[#a0a0a0]",children:e.description})]})]},e.title)))}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-around xs:w-full lg:w-auto my-[26px] md:my-[0px]",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[26px] md:gap-[32px] xs:w-full lg:w-auto",children:[(0,a.jsx)("div",{className:"text-container",children:(0,a.jsx)("h3",{className:"title text-[18px] font-semibold",children:"Total Sales Volume"})}),(0,a.jsx)("div",{className:(0,o.cn)("flex items-center justify-center p-[12px] md:p-[21px] lg:p-[24px] rounded-[9px] flex-shrink-0 w-full",{"bg-gray-400 animate-pulse":n}),style:{backdropFilter:"blur(21.80327796936035px)",border:"1.038px solid #343A40"},children:(0,a.jsx)("span",{className:"font-montserrat leading-normal font-bold text-[#F8F9FA] text-[26px] md:text-[46px] lg:text-[52px] custom-shadow-feature",style:{opacity:n?0:1},children:n?an()(1e6).format("0,0"):"$".concat(an()(null===t||void 0===t?void 0:t["Total Sales Volume"]).format("0,0"))})}),(0,a.jsx)("div",{className:"text-container",children:(0,a.jsx)("h3",{className:"title text-[18px] font-semibold",children:"Total Transactions"})}),(0,a.jsx)("div",{className:(0,o.cn)("flex items-center justify-center p-[12px] md:p-[21px] lg:p-[24px] rounded-[9px] flex-shrink-0 w-full",{"bg-gray-400 animate-pulse":n}),style:{backdropFilter:"blur(21.80327796936035px)",border:"1.038px solid #343A40"},children:(0,a.jsx)("span",{className:"font-montserrat leading-normal font-bold text-[#F8F9FA] text-[26px] md:text-[46px] lg:text-[52px] custom-shadow-feature",style:{opacity:n?0:1},children:n?an()(1e6).format("0,0"):an()(null===t||void 0===t?void 0:t["Total Transactions"]).format("0,0")})})]})})]}),(0,a.jsx)("div",{className:"2xl:max-w-[1920px] mx-auto",children:(0,a.jsx)(jy,{})})]})})},Ly=n.p+"static/media/ash.89b17291cd95ace86fad.png",By=n.p+"static/media/austin.9277e4448e3df20dfd84.png",Uy=n.p+"static/media/egt.470d5dbd867c3577cf52.png",Vy=n.p+"static/media/felipe.9cddb944c220c8acee28.png",Hy=n.p+"static/media/michael.1897498777e5c311d675.png",zy=()=>{const e=[{image:Hy,name:"MBL267",twitterUrl:"https://twitter.com/mbl267_NFT"},{image:By,name:"AUSTIN",twitterUrl:"https://twitter.com/austin_flowty"},{image:Vy,name:"FRLABS33",twitterUrl:"https://twitter.com/Frlabs33"},{image:Ly,name:"WEB3ASHLEE",twitterUrl:"https://twitter.com/web3ashlee"},{image:Uy,name:"EGT",twitterUrl:"https://twitter.com/egt_flow"},{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAQJElEQVR4nO3cMcplSxXF8Z6LRsaC4ExEwcTUSMTMKZg4DDEQhQ42GDmIHT9wGH7Gjyf21XdPr3Xq/ApW2n1u1dr/s3ZVne/TfLMfZA54gAfmgXPwKf0AZA54gAcGAJkACHiAB1YCZAIg4AEeGC0wEwABD/DA2gNkAiDgAR4YhyBMAAQ8wAPrFJgJgIAHeGBcg2ECIOABHlj3AJkACHiAB8ZFaCYAAh7ggfUlCBMAAQ/wwPgUjgmAgAd4YH0LzARAwAP7+DnwxxCY4PFFwAP72DkAwIJFIHPAAwuATAAEPMADIwEyARDwAA+sFpgJgIAHeGDsATIBEPAAD6xDECboB8GnT5+qlZ4f2oo5cApcsAgnKg04AMx7YG4gACxYhBOVBhwA5j0wNxAAFizCiUoDDgDzHpgbCAALFuFEpQEHgHkPzA0EgAWLcKLSgAPAvAfmBgLAgkU4UWnAAWDeA3MDAWDBIpyoNOAAMO+BuYEAsGARTlQacACY98DcQABYsAgnKg04AMx7YG4gACxYhAa9GzA//8mPqgWoec81CAALFqFBAChRToEPAbBgUp4oAATAKfAhABZMyhMFgAA4BT4EwIJJeaIAEACnwIcAWDApTxQAAuAU+BAACybliQJAAJwCHwJgwaQ8UQAIgFPgQwAsmJQnCgABcAp8CIAFk/JEASAAToEPAbBgUk7SKV9utMsneHvP+kg/AAFgGl4AuI+tQwA8fYElQAAs8OGUCgALFgEA8wlOC7xxrwJgwYScJgkQANMenGJJgAWLAID5BCcBbtyrAFgwIadJAgTAtAenWBJgwSIAYD7BSYAb9yoAFkzIaZIAATDtwSmWBFiwCACYT3AS4Ma9CoAFE3IXSXb3lC9GNl4736qj9AMQAKahBID72DoEwLsunC884jCTADdeBwBYMIkAmAfLXaQF3q4gkX4A+j8XTgKMwwwA9/b1C4AFiwCAeTAB4MY9DYAFE3IXSYB5mEmAe/86Sj8AAWAaSgC4j61DALzrwtkDjMNMAtx4HQBgwSQCYB4sd5FT4O0KEukHoHslu9/89e9vVRpIrQLKBcAnwhEA8/BpEAAuAKZhBIDfLUwJEADnpMCRfgCSANNpq1ES4ALgE+GoBc7Dp0EAuACYhhEAfrcwtcAAOCcFjvQDkASYTluNkgAXAJ8IRy1wHj4NAsAFwDSMAPC7hakFBsA5KXCkH4AkwHTaapQEuAD4RDimWuBXk92v/vQ5ojSQAHDPrLf0AxAAAqAEOAAIhhKgBKgFXgnwyalQC6wFtge4WuA0iADQHqA9wD0/cKQfgCRAe4D2AAcAwVALbA/QHuBKgE9OhfYA7QHaA1wtcBpEAGgP0B7gnh840g9AEqA9QHuAA4Bnw7D9jxykvvDwxYhP5kYCzAMKAPPw8smcb4bna9dlGgxPkQQIgP5owsbrEAABUAt8kPzVmAXA9FtEAsy3vv5qzH/fW077f0qlBQZAhyAFSU4CXABMvw0kwHyCkwC1wCMBHhi1XYMBQAnwI12HWmAAdAhS0LpqgbcjmKQf4CmSACVAANx4HQIgAH6v6xTpPT6nwK7BDADm3xynJUAAzLezV65b2v9TKi0wAAJgAcgAcAEw/TaQALXAaaBJgCsBHhm1tcD2AAHwI12HWmAAtAdYkNwkwO0IJukHeIokQAkQADdehwAIgBJgQXKTALcjmKQf4CmSACVAANx4HQIgAEqABclNAtyOYJJ+gKcolQD/9Y8fvqT0Fxy+GHENZgAwDyoAzMPJJ3Ovw9CXIPv9gkkaDE+RBNildOuqBd54TQIgAGqBby4JcAEw/RaRAPOJTgL0xxBGAsyDTguch5sW2F+DGS1w2V6DU+A49OwB5utgyuQQBABdgynYy7MHuACYfhtIgPlkJgE6BBkJ8MCorQWOQ08LnK+DKZMW+KYA9IUHULoGswCYfoMAYD7NPTkpuge4EmAabhJgHlQA6B7gaIHzoNMC56ElAboHOK/WZRoMT5E9wDzMtMD5OpgyASAAxiHTrPQenz3ABcD0W0ICzIMIAB2CjAR446jtGkwcZhJgvg6mTFpgAIxDplnpFlcLvACYfktIgHkQAaAWeCTA81tgX3icrVd94ILzaoHT0ALAPDBOEwBuVzBJP8BTJAHm4dMgANx4LQIgAMZB8FQB4MahB4AAGAfBUwWAG4ceAAJgHARPFQBuHHoACIBxEDxVALhx6AEgAMZB8FQBYB56AAiAcRA8VQC4cegBIADGQfBUAeDGoQeAgYl+9QuPVwvk1YL7/S/+/JLagfDqv/frP/ztJaWezxceG4ceAAIgAALgRxo+DfIliAQoAUqAH2kQAeDh0gJrgbXAG69DCRAA7QHaA4yDZ0qkBZYAtcBa4I80iADwcGmBtcBa4I3XoQQIgFpgLXAcPFMiLbAEqAXWAn+kQQSAh0sLrAXWAm+8DiXAN0/gP3/7x5f08oIc8iXIj3/2y7cq9SXIu3+HL0E2Dr1v1Vv6Ae4uAARAANx4HQIgAEqAEmAcKHMzSYASoBZYC/yRBhEA3lRaYC2wFnjjdSgBAqAWWAscB8rcTFpgCVALrAX+SIMIAG8qLbAWWAu88TqUAAFQC6wFjgNlbiYtsASoBdYCf6RBBIAFk9Ggd38J8qp++oMfvKR3/7/v1m9/95eXlJo/X4JsV72lH4AAEAC/+4JTFwuATzSBBCgBAuBKgGkQAaAWWAu85weO9AOQBKgF1gIPAIKhFtghiD3AlQCfnArtAdoDtAe4WuA0iADQHqA9wD0/cKQfgCRAe4D2AAcAwVALbA/QHuBKgFLh+74YeVWvfsmQ+mIk9Xzv/n99CbJV9a0FvuvCASAAFvhwbi4ALFgEAJQAfQq3AJiGyp0kAUqAaQ/OAZIACxYBACVACXABMA2VO0kClADTHpwDJAEWLAIASoAS4AJgGip3kgQoAaY9OAdIAixYBACUACXABcA0VO4kCVACTHtwDpAEePoCh74EebfePVK/w5cgG68JACyYeAAEwP8Gw7Rv5iGSAE9fYAlQAizw4ZQKAAsWAQC1wBLgAmAaFidKApQA0x6cYkmABYsAgBKgBLgAmIbFiZIAJcC0B6dYEmDBIgCgBCgBLgCmYXGiJEAJMO3BZkmABYsAgBKgBLgAmIbFiTolAZ4iX4JsV32kH4AAMA0lANzH1iEAnr7AEmAcehLgxusAAAsmGwDzAEpLC7xdASH9AHTxAkuAcegB4NbWOQAWLAIA5sEEgBv3KgAWTMhpkgDz0JMAt7c+0g9AAJiGEgDuY+sQAE9fYHuAcehJgBuvAwAsmGwAzAMoLafA2xUQ0g9AFy+wBBiHHgBubZ0DYMEiAGAeTAC4ca8CYMGEnCYJMA89CXB76yP9AASAaSgB4D62DgHw9AW2BxiHngS48ToAwILJBsA8gNJyCrxdASH9AHTxAkuAcegB4NbWOQAWLAIA5sEEgBv3KgAWTMhpkgDz0JMAt7c+0g9AAJiGEgDuY+sQAE9f4Bf3ACVFyW4K/AqABZNykgBQa5v24BRLAixYBADMt6b29jbuVQAsmJDTJAECYNqDUywJsGARADCf4CTAjXsVAAsm5DRJgACY9uAUSwIsWAQAzCc4CXDjXgXAggk5TRIgAKY9OMWSAAsWAQDzCU4C3LhXAbBgQk6TBAiAaQ9OsSTAgkVoAOCv/vT5JT3tixF/vmrjHgbAgom6qwAQANMenGJJgAWLAID5pCcBbtyrAFgwIadJAgTAtAenWBJgwSIAYD7pSYAb9yoAFkzIaZIAATDtwSmWBFiwCACYT3oS4Ma9CoAFE3KaJEAATHtwiiUBFiwCAOaTngS4ca8CYMGEnCYJEADTHpxiSYAFi3AnAL77i5F2pdePFgCZAAABEAxHAmQCCVACFAhWC8wEWmAtsEAw9gCZwB6gPUCBYB2CMIFDEIcgAsE4BWYCp8BOgQWCdQ3m6SZwDcY1mLQHp1juARYsAgDm7/u5B7hxrwJgwYScJgkQANMenGJJgN8THCm9OlIATCk1fxLqxmEGgIHkBIB56AFgHiRzU0mAACgBSoAfaRABYNuboSDlaYElQIc0KwECoD1ALfB/fiGmg8LcXFpgCVALrAX+SIMIANveDAVtrhZYC6wFXgkQALXAWmAt8GiBJUD3AF2DsQe49gC1wC5CuwfoEGQcglyzt/e0i7zpC8zm71q/pPfUp1SPOwVuBwIAmj8AXAAEQAnQC0QCHAlQAtQCS9Ba4NUCa4HtAdpCsAc49gDtAToEsYfqEGQdgjgEcQr85EMkp8DrFNgp8H0L2Ck6AI5rMK7BPDXBACAADgACIAC6R6kFXhehT73g/O49nXeP9vkzL5Li+BIEAAHQi0FSXJ/CSYASoGT8/gQ9T/s09pgfUt7CafXMyx18NQW1DIAAaA/QHiAAfiMBSoAOQRyCSIAfWmAtsFNgp+Na4G/sAdoDdA3G9SB7gB8OQRyCuAf48PuRDkHWKbBT4PML3UVoABzXYO57DebdBfz58+e36t2gfLfaxyn+m4KrKa7BHHgNBgAB8A7+mwIoASAAfnFIgF3jlBfwFEAJAAHwiwMAuwYA7j25ccwPOeQN/OoAwK5xiv+moJYBEAC/OACwawDg3pMbx/yQQ97Arw4A7Bqn+G8KahkAAfCLAwC7BgDuPblxzA855A386gDArnGK/6aglgEQAL84ALBrAODekxvH/JBD3sDGPccp/puCWgZAADRuNgBw78mNY37IIW9g457jFP9NQS0DIAAaNxsAuPfkxjE/5JA3sHHPcYr/pqCWARAAjZsNANx7cuOYH3LIG9i45zjFf1NQywAIgMbNBgDuPblxzA855A1s3HOc4r8pqGUABEDjZgMA957cOOaHHPIGThXmu3XK8737d7T7bwpqGQAB8KsXJgB+nXkGwI1DTwIsfgO/ewBg1zwD4MahB4AAKAEC4IcW2B6gBKgFlgA/2QO8f5Q9pAVJJRN7gF9nntv9NwW1rAUGwLcNAOx60QDgxqFnD7D4DZwqTAnw68wzAG4cegAIgAD45gGAG4cZAB7wBk4VpgT4dea53X9TACUA/H+i7CEGbB/v/h3t/967/992/00BlAAQAGtHO7AAEADHHuB938Dtox1YAAiAA4AAeNVoBxYAAuAAIABeNdqBBYAAOAAIgFeNdmABIAAOAALgVaMdWAAIgAOAAHjVaAcWAALgACAAXjXagQWAADgACIBXjXZgASAADgAC4FWjHVgACIADgAB41WgHFgAC4AAgAF412oEFgAA4AAiAV412YAEgAA4AAuBVox1YAAiAA4AAeNVoBxYAAuAAIABeNdqBBYAAOAAIgFeNdmABIAAOAALgVaMdWAAIgAOAAHjVaAcWAALgACAAXjXagQWAADgACIBXjXZgASAADgAC4FWjHVgACIADgAB41WgHFgAC4AAgAF412oEFgAA4AAiAV412YAEgAA4AAuBVox1YAAiAA4AAeNVoBxYAAuAAIABeNdqBBYAAOAAIgFeNdmABIADO/wDAfwP19epPTL8KngAAAABJRU5ErkJggg==",name:"TREVOR",twitterUrl:"https://twitter.com/jamesdillonbond"}];return(0,a.jsxs)("div",{className:"container mx-auto py-[40px] md:py-[80px] lg:py-[128px] 2xl:max-w-[1920px]",children:[(0,a.jsx)("h2",{className:"text-center font-extrabold text-[18px] md:text-[32px] md:text-4xl leading-normal text-white",children:"Built For Collectors, By Collectors"}),(0,a.jsx)("div",{className:"mt-[40px] md:mt-[52px] lg-mt-[64px] grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-y-[24px] md:gap-[60px] justify-items-center",children:e.map((e=>(0,a.jsxs)("a",{target:"_blank",href:e.twitterUrl,rel:"noopener noreferrer",className:"flex flex-col items-center gap-[12px] md:gap-[16px] group opacity-60 hover:opacity-100",children:[(0,a.jsx)("img",{src:e.image,alt:e.name,className:"rounded-full w-[107px] h-[107px] md:w-[140px] md:h-[140px]"}),(0,a.jsxs)("div",{className:"flex flex-row justify-center items-center",children:[(0,a.jsx)("span",{className:"font-montserrat text-[#6C757D] text-[14px] md:text-[18px] leading-normal font-bold group-hover:text-[#CED4DA]",children:e.name}),(0,a.jsx)("span",{className:"font-montserrat text-[#6C757D] text-[14px] md:text-[18px] leading-normal mx-[8px] font-bold group-hover:text-[#CED4DA]",children:"|"}),(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",className:"hidden group-hover:block",children:[(0,a.jsx)("g",{clipPath:"url(#clip0_10410_653)",children:(0,a.jsx)("path",{d:"M11.8608 9.06426L19.1424 0.599976H17.4169L11.0943 7.9494L6.04445 0.599976H0.220032L7.85641 11.7136L0.220032 20.5897H1.94564L8.62249 12.8285L13.9555 20.5897H19.7799L11.8604 9.06426H11.8608ZM9.49737 11.8115L8.72365 10.7048L2.5674 1.89899H5.21783L10.186 9.0056L10.9597 10.1123L17.4177 19.3498H14.7673L9.49737 11.8119V11.8115Z",fill:"#CED4DA"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_10410_653",children:(0,a.jsx)("rect",{width:"19.5599",height:"20",fill:"white",transform:"translate(0.220032 0.599976)"})})})]}),(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",className:"block group-hover:hidden",children:[(0,a.jsx)("g",{clipPath:"url(#clip0_10772_360)",children:(0,a.jsx)("path",{d:"M12.1398 8.46429L19.4214 0H17.6959L11.3733 7.34942L6.32344 0H0.499023L8.13541 11.1136L0.499023 19.9897H2.22463L8.90149 12.2285L14.2345 19.9897H20.0589L12.1394 8.46429H12.1398ZM9.77637 11.2115L9.00264 10.1049L2.84639 1.29901H5.49682L10.465 8.40562L11.2387 9.51229L17.6967 18.7498H15.0463L9.77637 11.212V11.2115Z",fill:"#6C757D"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_10772_360",children:(0,a.jsx)("rect",{width:"19.5599",height:"20",fill:"white",transform:"translate(0.499023)"})})})]})]})]},e.name)))})]})},Wy="tweet-container_root__Sxgvo",qy="tweet-container_article__e4JJt",Gy=e=>{let{className:t,children:n}=e;return(0,a.jsx)("div",{className:(0,Bv.A)("react-tweet-theme",Wy,t),children:(0,a.jsx)("article",{className:qy,children:n})})},Yy="skeleton_skeleton__gqg0q",Ky=e=>{let{style:t}=e;return(0,a.jsx)("span",{className:Yy,style:t})},Qy="tweet-skeleton_root__azpSu",Xy=()=>(0,a.jsxs)(Gy,{className:Qy,children:[(0,a.jsx)(Ky,{style:{height:"3rem",marginBottom:"0.75rem"}}),(0,a.jsx)(Ky,{style:{height:"6rem",margin:"0.5rem 0"}}),(0,a.jsx)("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),(0,a.jsx)(Ky,{style:{height:"2rem"}}),(0,a.jsx)(Ky,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),Zy="tweet-not-found_root__QcNr6",Jy=e=>(0,a.jsx)(Gy,{children:(0,a.jsxs)("div",{className:Zy,children:[(0,a.jsx)("h3",{children:"Tweet not found"}),(0,a.jsx)("p",{children:"The embedded tweet could not be found\u2026"})]})}),$y=e=>(0,a.jsx)("img",{...e}),eb="tweet-header_header__T5Ru4",tb="tweet-header_avatar__RjCko",nb="tweet-header_avatarOverflow__btbFn",rb="tweet-header_avatarSquare__ikIus",ib="tweet-header_avatarShadow__zRDOS",ob="tweet-header_author__2i2H6",ab="tweet-header_authorLink__pL-2c",sb="tweet-header_authorVerified__9qljv",lb="tweet-header_authorLinkText__ws5jH",cb="tweet-header_authorMeta__NZig7",ub="tweet-header_authorFollow__ZAXOk",db="tweet-header_username__huB3P",pb="tweet-header_follow__3VTPa",hb="tweet-header_separator__B5ekw",fb="tweet-header_brand__Z15oq",mb="tweet-header_twitterIcon__LW2In",gb="icons_verified__WrHff",vb=()=>(0,a.jsx)("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:gb,children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),yb=()=>(0,a.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:gb,children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),bb=()=>(0,a.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:gb,children:(0,a.jsxs)("g",{children:[(0,a.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[(0,a.jsx)("stop",{offset:"0",stopColor:"#f4e72a"}),(0,a.jsx)("stop",{offset:".539",stopColor:"#cd8105"}),(0,a.jsx)("stop",{offset:".68",stopColor:"#cb7b00"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#f4ec26"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#f4e72a"})]}),(0,a.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[(0,a.jsx)("stop",{offset:"0",stopColor:"#f9e87f"}),(0,a.jsx)("stop",{offset:".406",stopColor:"#e2b719"}),(0,a.jsx)("stop",{offset:".989",stopColor:"#e2b719"})]}),(0,a.jsxs)("g",{clipRule:"evenodd",fillRule:"evenodd",children:[(0,a.jsx)("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),(0,a.jsx)("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),(0,a.jsx)("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),wb="verified-badge_verifiedOld__NiegU",xb="verified-badge_verifiedBlue__jYFkW",Cb="verified-badge_verifiedGovernment__a+3-t",Ab=e=>{let{user:t,className:n}=e;const r=t.verified||t.is_blue_verified||t.verified_type;let i=(0,a.jsx)(vb,{}),o=xb;if(r)switch(t.is_blue_verified||(o=wb),t.verified_type){case"Government":i=(0,a.jsx)(yb,{}),o=Cb;break;case"Business":i=(0,a.jsx)(bb,{}),o=null}return r?(0,a.jsx)("div",{className:(0,Bv.A)(n,o),children:i}):null},Eb=e=>{let{tweet:t,components:n}=e;var r;const i=null!=(r=null==n?void 0:n.AvatarImg)?r:$y,{user:o}=t;return(0,a.jsxs)("div",{className:eb,children:[(0,a.jsxs)("a",{href:t.url,className:tb,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:(0,Bv.A)(nb,"Square"===o.profile_image_shape&&rb),children:(0,a.jsx)(i,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),(0,a.jsx)("div",{className:nb,children:(0,a.jsx)("div",{className:ib})})]}),(0,a.jsxs)("div",{className:ob,children:[(0,a.jsxs)("a",{href:t.url,className:ab,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:lb,children:(0,a.jsx)("span",{title:o.name,children:o.name})}),(0,a.jsx)(Ab,{user:o,className:sb})]}),(0,a.jsxs)("div",{className:cb,children:[(0,a.jsx)("a",{href:t.url,className:db,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsxs)("span",{title:"@".concat(o.screen_name),children:["@",o.screen_name]})}),(0,a.jsxs)("div",{className:ub,children:[(0,a.jsx)("span",{className:hb,children:"\xb7"}),(0,a.jsx)("a",{href:o.follow_url,className:pb,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),(0,a.jsx)("a",{href:t.url,className:fb,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:mb,children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},_b="tweet-in-reply-to_root__kzkrx",Tb=e=>{let{tweet:t}=e;return(0,a.jsxs)("a",{href:t.in_reply_to_url,className:_b,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",t.in_reply_to_screen_name]})},Sb="tweet-link_root__NxGGl",kb=e=>{let{href:t,children:n}=e;return(0,a.jsx)("a",{href:t,className:Sb,target:"_blank",rel:"noopener noreferrer nofollow",children:n})},Pb="tweet-body_root__0LeXg",Db=e=>{let{tweet:t}=e;return(0,a.jsx)("p",{className:Pb,children:t.entities.map(((e,t)=>{switch(e.type){case"hashtag":case"mention":case"url":case"symbol":return(0,a.jsx)(kb,{href:e.href,children:e.text},t);case"media":return;default:return(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)}}))})},Fb=e=>"https://twitter.com/".concat(e.user.screen_name,"/status/").concat(e.id_str),Nb=e=>"https://twitter.com/".concat("string"===typeof e?e:e.user.screen_name),Ib=e=>"https://twitter.com/intent/like?tweet_id=".concat(e.id_str),Rb=e=>"https://twitter.com/intent/tweet?in_reply_to=".concat(e.id_str),Ob=e=>"https://twitter.com/intent/follow?screen_name=".concat(e.user.screen_name),jb=e=>"https://twitter.com/".concat(e.in_reply_to_screen_name,"/status/").concat(e.in_reply_to_status_id_str),Mb=(e,t)=>{const n=new URL(e.media_url_https),r=n.pathname.split(".").pop();return r?(n.pathname=n.pathname.replace(".".concat(r),""),n.searchParams.set("format",r),n.searchParams.set("name",t),n.toString()):e.media_url_https},Lb=e=>e>999999?"".concat((e/1e6).toFixed(1),"M"):e>999?"".concat((e/1e3).toFixed(1),"K"):e.toString();function Bb(e){const t=Array.from(e.text),n=[{indices:e.display_text_range,type:"text"}];return Ub(n,"hashtag",e.entities.hashtags),Ub(n,"mention",e.entities.user_mentions),Ub(n,"url",e.entities.urls),Ub(n,"symbol",e.entities.symbols),e.entities.media&&Ub(n,"media",e.entities.media),function(e,t){e.entities.media&&e.entities.media[0].indices[0]<e.display_text_range[1]&&(e.display_text_range[1]=e.entities.media[0].indices[0]);const n=t.at(-1);n&&n.indices[1]>e.display_text_range[1]&&(n.indices[1]=e.display_text_range[1])}(e,n),n.map((e=>{const n=t.slice(e.indices[0],e.indices[1]).join("");switch(e.type){case"hashtag":return Object.assign(e,{href:(i=e,"https://twitter.com/hashtag/".concat(i.text)),text:n});case"mention":return Object.assign(e,{href:Nb(e.screen_name),text:n});case"url":case"media":return Object.assign(e,{href:e.expanded_url,text:e.display_url});case"symbol":return Object.assign(e,{href:(r=e,"https://twitter.com/search?q=%24".concat(r.text)),text:n});default:return Object.assign(e,{text:n})}var r,i}))}function Ub(e,t,n){for(const r of n)for(const[n,i]of e.entries()){if(i.indices[0]>r.indices[0]||i.indices[1]<r.indices[1])continue;const o=[{...r,type:t}];i.indices[0]<r.indices[0]&&o.unshift({indices:[i.indices[0],r.indices[0]],type:"text"}),i.indices[1]>r.indices[1]&&o.push({indices:[r.indices[1],i.indices[1]],type:"text"}),e.splice(n,1,...o);break}}const Vb="tweet-media_root__MvDCj",Hb="tweet-media_rounded__mrLU-",zb="tweet-media_mediaWrapper__qXnM9",Wb="tweet-media_grid2Columns__cfKn0",qb="tweet-media_grid3__jRcJj",Gb="tweet-media_grid2x2__oMNuS",Yb="tweet-media_mediaContainer__zfh3H",Kb="tweet-media_mediaLink__bJbI7",Qb="tweet-media_skeleton__oYegj",Xb="tweet-media_image__cH5Ah",Zb="tweet-media-video_anchor__5PODy",Jb="tweet-media-video_videoButton__f96+H",$b="tweet-media-video_videoButtonIcon__mmq70",ew="tweet-media-video_watchOnTwitter__jV45L",tw="tweet-media-video_viewReplies__lVKK2",nw=e=>{let{tweet:t,media:n}=e;const[r,o]=(0,i.useState)(!0),[s,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),d=(e=>{const t=(e=>{const{variants:t}=e.video_info,n=t.filter((e=>"video/mp4"===e.content_type)).sort(((e,t)=>{var n,r;return(null!=(n=t.bitrate)?n:0)-(null!=(r=e.bitrate)?r:0)}));return n})(e);return t.length>1?t[1]:t[0]})(n);let p=0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("video",{className:Xb,poster:Mb(n,"small"),controls:!r,muted:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{p&&window.clearTimeout(p),s||l(!0),c&&u(!1)},onPause:()=>{p&&window.clearTimeout(p),p=window.setTimeout((()=>{s&&l(!1),p=0}),100)},onEnded:()=>{u(!0)},children:(0,a.jsx)("source",{src:d.url,type:d.content_type})}),r&&(0,a.jsx)("button",{type:"button",className:Jb,"aria-label":"View video on X",onClick:e=>{const t=e.currentTarget.previousSibling;e.preventDefault(),o(!1),l(!0),t.play(),t.focus()},children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:$b,"aria-hidden":"true",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 12L4 2v20l17-10z"})})})}),!s&&!c&&(0,a.jsx)("div",{className:ew,children:(0,a.jsx)("a",{href:t.url,className:Zb,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),c&&(0,a.jsx)("a",{href:t.url,className:(0,Bv.A)(Zb,tw),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},rw=e=>(0,a.jsx)("img",{...e}),iw=(e,t)=>{let n=56.25;return 1===t&&(n=100/e.original_info.width*e.original_info.height),2===t&&(n*=2),{width:"photo"===e.type?void 0:"unset",paddingBottom:"".concat(n,"%")}},ow=e=>{let{tweet:t,components:n,quoted:r}=e;var o,s,l;const c=null!=(l=null==(o=t.mediaDetails)?void 0:o.length)?l:0;var u;const d=null!=(u=null==n?void 0:n.MediaImg)?u:rw;return(0,a.jsx)("div",{className:(0,Bv.A)(Vb,!r&&Hb),children:(0,a.jsx)("div",{className:(0,Bv.A)(zb,c>1&&Wb,3===c&&qb,c>4&&Gb),children:null==(s=t.mediaDetails)?void 0:s.map((e=>(0,a.jsx)(i.Fragment,{children:"photo"===e.type?(0,a.jsxs)("a",{href:t.url,className:(0,Bv.A)(Yb,Kb),target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:Qb,style:iw(e,c)}),(0,a.jsx)(d,{src:Mb(e,"small"),alt:e.ext_alt_text||"Image",className:Xb,draggable:!0})]},e.media_url_https):(0,a.jsxs)("div",{className:Yb,children:[(0,a.jsx)("div",{className:Qb,style:iw(e,c)}),(0,a.jsx)(nw,{tweet:t,media:e})]},e.media_url_https)},e.media_url_https)))})})},aw=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"}),sw="tweet-info-created-at_root__MrWJK",lw=e=>{let{tweet:t}=e;const n=new Date(t.created_at),r=(e=>{const t=(e=>{const t={};for(const n of e)t[n.type]=n.value;return t})(aw.formatToParts(e)),n="".concat(t.hour,":").concat(t.minute," ").concat(t.dayPeriod),r="".concat(t.month," ").concat(t.day,", ").concat(t.year);return"".concat(n," \xb7 ").concat(r)})(n);return(0,a.jsx)("a",{className:sw,href:t.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:(0,a.jsx)("time",{dateTime:n.toISOString(),children:r})})},cw="tweet-info_info__eNBHK",uw="tweet-info_infoLink__gkCcM",dw="tweet-info_infoIcon__hw5BT",pw=e=>{let{tweet:t}=e;return(0,a.jsxs)("div",{className:cw,children:[(0,a.jsx)(lw,{tweet:t}),(0,a.jsx)("a",{className:uw,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:dw,children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]})},hw="tweet-actions_actions__W9K0e",fw="tweet-actions_like__XeZEh",mw="tweet-actions_reply__He+ag",gw="tweet-actions_copy__-nw4M",vw="tweet-actions_likeIconWrapper__512jd",yw="tweet-actions_likeCount__7QIQn",bw="tweet-actions_replyIconWrapper__FRWtD",ww="tweet-actions_copyIconWrapper__WOJoi",xw="tweet-actions_likeIcon__3ztQd",Cw="tweet-actions_replyIcon__ZYnMi",Aw="tweet-actions_copyIcon__RbyF0",Ew="tweet-actions_replyText__Cdcu1",_w="tweet-actions_copyText__J7Aqg",Tw=e=>{let{tweet:t}=e;const[n,r]=(0,i.useState)(!1),[o,s]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(n){const e=setTimeout((()=>{r(!1),s(!0)}),6e3);return()=>clearTimeout(e)}}),[n]),(0,a.jsxs)("button",{type:"button",className:gw,"aria-label":"Copy link",onClick:()=>{navigator.clipboard.writeText(t.url),r(!0)},children:[(0,a.jsx)("div",{className:ww,children:n?(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:Aw,"aria-hidden":"true",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:Aw,"aria-hidden":"true",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),(0,a.jsx)("span",{className:_w,children:n?"Copied!":o?"Copy link to Tweet":"Copy link"})]})},Sw=e=>{let{tweet:t}=e;const n=Lb(t.favorite_count);return(0,a.jsxs)("div",{className:hw,children:[(0,a.jsxs)("a",{className:fw,href:t.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Like. This Tweet has ".concat(n," likes"),children:[(0,a.jsx)("div",{className:vw,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:xw,"aria-hidden":"true",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),(0,a.jsx)("span",{className:yw,children:n})]}),(0,a.jsxs)("a",{className:mw,href:t.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[(0,a.jsx)("div",{className:bw,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:Cw,"aria-hidden":"true",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),(0,a.jsx)("span",{className:Ew,children:"Reply"})]}),(0,a.jsx)(Tw,{tweet:t})]})},kw="tweet-replies_replies__MFJYA",Pw="tweet-replies_link__F2H2s",Dw="tweet-replies_text__UK6tu",Fw=e=>{let{tweet:t}=e;return(0,a.jsx)("div",{className:kw,children:(0,a.jsx)("a",{className:Pw,href:t.url,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("span",{className:Dw,children:0===t.conversation_count?"Read more on X":1===t.conversation_count?"Read ".concat(Lb(t.conversation_count)," reply"):"Read ".concat(Lb(t.conversation_count)," replies")})})})},Nw="quoted-tweet-container_root__PJSCP",Iw="quoted-tweet-container_article__rWv4X",Rw=e=>{let{tweet:t,children:n}=e;return(0,a.jsx)("div",{className:Nw,onClick:e=>{e.preventDefault(),window.open(t.url,"_blank")},children:(0,a.jsx)("article",{className:Iw,children:n})})},Ow={header:"quoted-tweet-header_header__6T5I6",avatar:"quoted-tweet-header_avatar__zUptr",avatarSquare:"quoted-tweet-header_avatarSquare__dPNVg",author:"quoted-tweet-header_author__tg5QZ",authorText:"quoted-tweet-header_authorText__hkMh+",username:"quoted-tweet-header_username__abup6"},jw=e=>{let{tweet:t}=e;const{user:n}=t;return(0,a.jsxs)("div",{className:Ow.header,children:[(0,a.jsx)("a",{href:t.url,className:Ow.avatar,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("div",{className:(0,Bv.A)(Ow.avatarOverflow,"Square"===n.profile_image_shape&&Ow.avatarSquare),children:(0,a.jsx)($y,{src:n.profile_image_url_https,alt:n.name,width:20,height:20})})}),(0,a.jsxs)("div",{className:Ow.author,children:[(0,a.jsx)("div",{className:Ow.authorText,children:(0,a.jsx)("span",{title:n.name,children:n.name})}),(0,a.jsx)(Ab,{user:n}),(0,a.jsx)("div",{className:Ow.username,children:(0,a.jsxs)("span",{title:"@".concat(n.screen_name),children:["@",n.screen_name]})})]})]})},Mw="quoted-tweet-body_root__i-Tgv",Lw=e=>{let{tweet:t}=e;return(0,a.jsx)("p",{className:Mw,children:t.entities.map(((e,t)=>(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)))})},Bw=e=>{let{tweet:t}=e;var n;return(0,a.jsxs)(Rw,{tweet:t,children:[(0,a.jsx)(jw,{tweet:t}),(0,a.jsx)(Lw,{tweet:t}),(null==(n=t.mediaDetails)?void 0:n.length)?(0,a.jsx)(ow,{quoted:!0,tweet:t}):null]})},Uw=e=>{let{tweet:t,components:n}=e;var r;const o=(0,i.useMemo)((()=>(e=>({...e,url:Fb(e),user:{...e.user,url:Nb(e),follow_url:Ob(e)},like_url:Ib(e),reply_url:Rb(e),in_reply_to_url:e.in_reply_to_screen_name?jb(e):void 0,entities:Bb(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:Fb(e.quoted_tweet),entities:Bb(e.quoted_tweet)}:void 0}))(t)),[t]);return(0,a.jsxs)(Gy,{children:[(0,a.jsx)(Eb,{tweet:o,components:n}),o.in_reply_to_status_id_str&&(0,a.jsx)(Tb,{tweet:o}),(0,a.jsx)(Db,{tweet:o}),(null==(r=o.mediaDetails)?void 0:r.length)?(0,a.jsx)(ow,{tweet:o,components:n}):null,o.quoted_tweet&&(0,a.jsx)(Bw,{tweet:o.quoted_tweet}),(0,a.jsx)(pw,{tweet:o}),(0,a.jsx)(Sw,{tweet:o}),(0,a.jsx)(Fw,{tweet:o})]})};var Vw=n(12898);const Hw=()=>{},zw=Hw(),Ww=Object,qw=e=>e===zw,Gw=e=>"function"==typeof e,Yw=(e,t)=>({...e,...t}),Kw=new WeakMap;let Qw=0;const Xw=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(Ww(e)!==e||r||n==RegExp)i=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Kw.get(e),i)return i;if(i=++Qw+"~",Kw.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=Xw(e[o])+",";Kw.set(e,i)}if(n==Ww){i="#";const t=Ww.keys(e).sort();for(;!qw(o=t.pop());)qw(e[o])||(i+=o+":"+Xw(e[o])+",");Kw.set(e,i)}}return i},Zw=new WeakMap,Jw={},$w={},ex="undefined",tx=typeof window!=ex,nx=typeof document!=ex,rx=(e,t)=>{const n=Zw.get(e);return[()=>!qw(t)&&e.get(t)||Jw,r=>{if(!qw(t)){const i=e.get(t);t in $w||($w[t]=i),n[5](t,Yw(i,r),i||Jw)}},n[6],()=>!qw(t)&&t in $w?$w[t]:!qw(t)&&e.get(t)||Jw]};let ix=!0;const[ox,ax]=tx&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hw,Hw],sx={isOnline:()=>ix,isVisible:()=>{const e=nx&&document.visibilityState;return qw(e)||"hidden"!==e}},lx={initFocus:e=>(nx&&document.addEventListener("visibilitychange",e),ox("focus",e),()=>{nx&&document.removeEventListener("visibilitychange",e),ax("focus",e)}),initReconnect:e=>{const t=()=>{ix=!0,e()},n=()=>{ix=!1};return ox("online",t),ox("offline",n),()=>{ax("online",t),ax("offline",n)}}},cx=!i.useId,ux=!tx||"Deno"in window,dx=e=>tx&&typeof window.requestAnimationFrame!=ex?window.requestAnimationFrame(e):setTimeout(e,1),px=ux?i.useEffect:i.useLayoutEffect,hx="undefined"!==typeof navigator&&navigator.connection,fx=!ux&&hx&&(["slow-2g","2g"].includes(hx.effectiveType)||hx.saveData),mx=e=>{if(Gw(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Xw(e):"",t]};let gx=0;const vx=()=>++gx;var yx=3,bx=0,wx=2,xx=1;async function Cx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o,a]=t,s=Yw({populateCache:!0,throwOnError:!0},"boolean"===typeof a?{revalidate:a}:a||{});let l=s.populateCache;const c=s.rollbackOnError;let u=s.optimisticData;const d=s.throwOnError;if(Gw(i)){const e=i,t=[],n=r.keys();for(const i of n)!/^\$(inf|sub)\$/.test(i)&&e(r.get(i)._k)&&t.push(i);return Promise.all(t.map(p))}return p(i);async function p(e){const[n]=mx(e);if(!n)return;const[i,a]=rx(r,n),[p,h,f,m]=Zw.get(r),g=()=>{const t=p[n];return(Gw(s.revalidate)?s.revalidate(i().data,e):!1!==s.revalidate)&&(delete f[n],delete m[n],t&&t[0])?t[0](2).then((()=>i().data)):i().data};if(t.length<3)return g();let v,y=o;const b=vx();h[n]=[b,0];const w=!qw(u),x=i(),C=x.data,A=x._c,E=qw(A)?C:A;if(w&&(u=Gw(u)?u(E,C):u,a({data:u,_c:E})),Gw(y))try{y=y(E)}catch(_){v=_}if(y&&(e=>Gw(e.then))(y)){if(y=await y.catch((e=>{v=e})),b!==h[n][0]){if(v)throw v;return y}v&&w&&(e=>"function"===typeof c?c(e):!1!==c)(v)&&(l=!0,a({data:E,_c:zw}))}if(l&&!v)if(Gw(l)){const e=l(y,E);a({data:e,error:zw,_c:zw})}else a({data:y,error:zw,_c:zw});if(h[n][1]=vx(),Promise.resolve(g()).then((()=>{a({_c:zw})})),!v)return y;if(d)throw v}}const Ax=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Ex=(e,t)=>{if(!Zw.has(e)){const n=Yw(lx,t),r={},i=Cx.bind(zw,e);let o=Hw;const a={},s=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const i=a[t];if(i)for(const e of i)e(n,r)},c=()=>{if(!Zw.has(e)&&(Zw.set(e,[r,{},{},{},i,l,s]),!ux)){const t=n.initFocus(setTimeout.bind(zw,Ax.bind(zw,r,0))),i=n.initReconnect(setTimeout.bind(zw,Ax.bind(zw,r,1)));o=()=>{t&&t(),i&&i(),Zw.delete(e)}}};return c(),[e,i,c,o]}return[e,Zw.get(e)[4]]},[_x,Tx]=Ex(new Map),Sx=Yw({onLoadingSlow:Hw,onSuccess:Hw,onError:Hw,onErrorRetry:(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!qw(o)&&a>o||setTimeout(r,s,i)},onDiscarded:Hw,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:fx?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:fx?5e3:3e3,compare:(e,t)=>Xw(e)==Xw(t),isPaused:()=>!1,cache:_x,mutate:Tx,fallback:{}},sx),kx=(e,t)=>{const n=Yw(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=Yw(i,a))}return n},Px=(0,i.createContext)({}),Dx=tx&&window.__SWR_DEVTOOLS_USE__,Fx=Dx?window.__SWR_DEVTOOLS_USE__:[],Nx=e=>Gw(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Ix=Fx.concat((e=>(t,n,r)=>e(t,n&&function(){const[e]=mx(t),[,,,r]=Zw.get(_x);if(e.startsWith("$inf$"))return n(...arguments);const i=r[e];return qw(i)?n(...arguments):(delete r[e],i)},r)));Dx&&(window.__SWR_DEVTOOLS_REACT__=i);const Rx=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ox={dedupe:!0},jx=(Ww.defineProperty((e=>{const{value:t}=e,n=(0,i.useContext)(Px),r=Gw(t),o=(0,i.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,i.useMemo)((()=>r?o:kx(n,o)),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(zw);s&&!l.current&&(l.current=Ex(s(a.cache||_x),o));const c=l.current;return c&&(a.cache=c[0],a.mutate=c[1]),px((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,i.createElement)(Px.Provider,Yw(e,{value:a}))}),"defaultValue",{value:Sx}),Mx=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:s,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:h}=n,[f,m,g,v]=Zw.get(r),[y,b]=mx(e),w=(0,i.useRef)(!1),x=(0,i.useRef)(!1),C=(0,i.useRef)(y),A=(0,i.useRef)(t),E=(0,i.useRef)(n),_=()=>E.current,T=()=>_().isVisible()&&_().isOnline(),[S,k,P,D]=rx(r,y),F=(0,i.useRef)({}).current,N=qw(s)?n.fallback[y]:s,I=(e,t)=>{for(const n in F){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!qw(e[r]))return!1;if(!o(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},R=(0,i.useMemo)((()=>{const e=!!y&&!!t&&(qw(l)?!_().isPaused()&&!a&&(!!qw(c)||c):l),n=t=>{const n=Yw(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=S(),i=D(),o=n(r),s=r===i?o:n(i);let u=o;return[()=>{const e=n(S());return I(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]}),[r,y]),O=(0,Vw.useSyncExternalStore)((0,i.useCallback)((e=>P(y,((t,n)=>{I(n,t)||e()}))),[r,y]),R[0],R[1]),j=!w.current,M=f[y]&&f[y].length>0,L=O.data,B=qw(L)?N:L,U=O.error,V=(0,i.useRef)(B),H=h?qw(L)?V.current:L:B,z=!(M&&!qw(U))&&(j&&!qw(l)?l:!_().isPaused()&&(a?!qw(B)&&c:qw(B)||c)),W=!!(y&&t&&j&&z),q=qw(O.isValidating)?W:O.isValidating,G=qw(O.isLoading)?W:O.isLoading,Y=(0,i.useCallback)((async e=>{const t=A.current;if(!y||!t||x.current||_().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!g[y]||!s.dedupe,c=()=>cx?!x.current&&y===C.current&&w.current:y===C.current,u={isValidating:!1,isLoading:!1},d=()=>{k(u)},p=()=>{const e=g[y];e&&e[1]===i&&delete g[y]},h={isValidating:!0};qw(S().data)&&(h.isLoading=!0);try{if(l&&(k(h),n.loadingTimeout&&qw(S().data)&&setTimeout((()=>{a&&c()&&_().onLoadingSlow(y,n)}),n.loadingTimeout),g[y]=[t(b),vx()]),[r,i]=g[y],r=await r,l&&setTimeout(p,n.dedupingInterval),!g[y]||g[y][1]!==i)return l&&c()&&_().onDiscarded(y),!1;u.error=zw;const e=m[y];if(!qw(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&c()&&_().onDiscarded(y),!1;const s=S().data;u.data=o(s,r)?s:r,l&&c()&&_().onSuccess(r,y,n)}catch(v){p();const e=_(),{shouldRetryOnError:t}=e;e.isPaused()||(u.error=v,l&&c()&&(e.onError(v,y,e),(!0===t||Gw(t)&&t(v))&&(_().revalidateOnFocus&&_().revalidateOnReconnect&&!T()||e.onErrorRetry(v,y,e,(e=>{const t=f[y];t&&t[0]&&t[0](yx,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return a=!1,d(),!0}),[y,r]),K=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cx(r,C.current,...t)}),[]);if(px((()=>{A.current=t,E.current=n,qw(L)||(V.current=L)})),px((()=>{if(!y)return;const e=Y.bind(zw,Ox);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(y,f,(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==bx){const n=Date.now();_().revalidateOnFocus&&n>t&&T()&&(t=n+_().focusThrottleInterval,e())}else if(n==xx)_().revalidateOnReconnect&&T()&&e();else{if(n==wx)return Y();if(n==yx)return Y(r)}}));return x.current=!1,C.current=y,w.current=!0,k({_k:b}),z&&(qw(B)||ux?e():dx(e)),()=>{x.current=!0,n()}}),[y]),px((()=>{let e;function t(){const t=Gw(u)?u(S().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){S().error||!d&&!_().isVisible()||!p&&!_().isOnline()?t():Y(Ox).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,d,p,y]),(0,i.useDebugValue)(H),a&&qw(B)&&y){if(!cx&&ux)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,E.current=n,x.current=!1;const e=v[y];if(!qw(e)){const t=K(e);Rx(t)}if(!qw(U))throw U;{const e=Y(Ox);qw(H)||(e.status="fulfilled",e.value=!0),Rx(e)}}return{mutate:K,get data(){return F.data=!0,H},get error(){return F.error=!0,U},get isValidating(){return F.isValidating=!0,q},get isLoading(){return F.isLoading=!0,G}}},function(){const e=Yw(Sx,(0,i.useContext)(Px));for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const[o,a,s]=Nx(n),l=kx(e,s);let c=Mx;const{use:u}=l,d=(u||[]).concat(Ix);for(let i=d.length;i--;)c=d[i](c);return c(o,a||l.fetcher||null,l)});var Mx;class Lx extends Error{constructor(e){let{message:t,status:n,data:r}=e;super(t),this.name="TwitterApiError",this.status=n,this.data=r}}const Bx=jx.default||jx;async function Ux(e){let[t,n]=e;const r=await fetch(t,n),i=await r.json();if(r.ok)return i.data||null;throw new Lx({message:'Failed to fetch tweet at "'.concat(t,'" with "').concat(r.status,'".'),data:i,status:r.status})}const Vx=e=>{let{id:t,apiUrl:n,fallback:r=(0,a.jsx)(Xy,{}),components:i,fetchOptions:o,onError:s}=e;const{data:l,error:c,isLoading:u}=((e,t,n)=>{const{isLoading:r,data:i,error:o}=Bx((()=>t||e?[t||e&&"".concat("https://react-tweet.vercel.app","/api/tweet/").concat(e),n]:null),Ux,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:Boolean(r||void 0===i&&!o),data:i,error:o}})(t,n,o);if(u)return r;if(c||!l){const e=(null==i?void 0:i.TweetNotFound)||Jy;return(0,a.jsx)(e,{error:s?s(c):c})}return(0,a.jsx)(Uw,{tweet:l,components:i})};var Hx=n(62215);const zx=e=>{let{tweetIds:t,isLoading:n,className:r}=e;return(0,a.jsxs)("div",{className:"py-[40px] md:py-[80px] lg:py-[116px]",style:{background:"rgba(255, 255, 255, 0.04)"},children:[(0,a.jsx)("h4",{className:"container mx-auto md:px-[113px] lg:px-[178px] text-[18px] lg:text-[32px] md:text-[24px] font-montserrat text-white font-extrabold leading-normal",children:"Trusted and Loved by Many"}),(0,a.jsx)(Hx.A,{className:(0,o.cn)("relative overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_20%,white_80%,transparent)]",r),children:(0,a.jsx)("ul",{className:(0,o.cn)("flex flex-row shrink-0 lg:gap-x-[28px] flex-nowrap gap-x-[24px] mt-[20px] md:mt-[40px] items-center md:items-start"),children:t.map((e=>(0,a.jsx)("div",{"data-theme":"dark",className:"px-[15px] md:py-[10px] rounded-[7px]",style:{border:"0.861px solid #343A40)"},children:(0,a.jsx)(Vx,{id:e})},e)))})})]})};var Wx,qx,Gx=n(83906);function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yx.apply(null,arguments)}function Kx(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",Yx({width:225,height:77,viewBox:"0 0 249 77",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("mask",{id:"mask0_35709_544",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:249,height:77},Wx||(Wx=i.createElement("path",{d:"M248.527 0H0.526855V76.6175H248.527V0Z",fill:"white"}))),qx||(qx=i.createElement("g",{mask:"url(#mask0_35709_544)"},i.createElement("path",{d:"M19.1105 18.3768C20.768 12.6914 24.5086 9.44467 30.3325 8.63867H45.8015L43.3835 18.6868H32.6802C31.99 18.6868 31.3452 18.9286 30.7458 19.4122C30.1692 19.8958 29.8014 20.5055 29.6402 21.2433L27.776 28.0447H35.4062L33.0584 38.0928H25.3229L21.0759 55.2544H9.89111L19.1105 18.3768Z",fill:"white"}),i.createElement("path",{d:"M52.9128 8.63867H64.3084L55.4693 43.307C55.4011 43.8836 55.5375 44.4003 55.8826 44.8611C56.2505 45.322 56.7465 45.5514 57.3685 45.5514H63.583L61.1319 55.2544H53.3633C50.2096 55.2544 47.7007 54.0578 45.8365 51.6625C43.9724 49.2693 43.34 46.4835 43.9373 43.3049L52.9128 8.63867Z",fill:"white"}),i.createElement("path",{d:"M74.9084 52.4231C73.1827 51.1108 71.8807 49.3272 71.0065 47.0704C69.0494 42.1662 69.4648 36.6772 72.2486 30.5991C75.9789 23.8308 82.0095 20.2988 90.3423 19.9992C92.3676 19.8834 94.4281 19.9082 96.5237 20.0674C99.9295 20.367 102.509 21.202 104.259 22.5701C106.008 23.9403 107.332 25.7528 108.229 28.0096C110.186 32.9365 109.771 38.4256 106.987 44.4809C103.282 51.272 97.1333 54.839 88.5484 55.1842C86.7979 55.2999 84.8181 55.2648 82.6088 55.0808C79.2009 54.62 76.6361 53.7334 74.9084 52.421M97.9745 38.4028C98.6875 35.7782 98.7102 33.7756 98.0427 32.395C97.3752 31.0145 95.7301 30.2085 93.1054 29.977C89.6975 29.7249 86.8909 30.3118 84.6796 31.7378C82.9539 33.0729 81.8131 34.72 81.2613 36.6751C79.6721 41.9017 81.2965 44.7103 86.1304 45.1009C90.0901 45.1918 92.8987 44.6049 94.5562 43.3401C96.2819 42.0278 97.4227 40.3827 97.9745 38.4028Z",fill:"white"}),i.createElement("path",{d:"M113.65 43.3422L119.313 20.1377H130.638L124.976 43.3422C124.907 43.9188 125.044 44.4355 125.391 44.8964C125.736 45.3572 126.23 45.5866 126.875 45.5866H131.779C131.802 44.8261 131.905 44.08 132.089 43.3422L137.752 20.1377H149.077L143.414 43.3422C143.321 43.9188 143.46 44.4355 143.828 44.8964C144.173 45.3572 144.669 45.5866 145.314 45.5866H150.148L156.155 20.1377H167.687L159.193 55.2214H148.904V55.2566H141.168C136.747 55.2566 133.745 52.9894 132.155 48.4552L130.566 55.2235H126.699V55.2586H122.762C119.654 55.2586 117.191 54.062 115.372 51.6668C113.53 49.2963 112.954 46.5208 113.646 43.3443",fill:"white"}),i.createElement("path",{d:"M167.896 43.307L176.425 8.63867H187.612C185.725 16.0291 184.746 19.8503 184.677 20.1025H192.93L190.443 30.2891H182.226C181.627 32.7525 181.133 34.7944 180.743 36.4188C180.35 38.0411 179.994 39.5147 179.672 40.8394C179.35 42.1641 179.153 42.9867 179.085 43.307C179.017 43.8836 179.153 44.4003 179.5 44.8611C179.846 45.322 180.329 45.5514 180.951 45.5514H186.752L184.405 55.2544H176.878C173.792 55.2544 171.364 54.0578 169.593 51.6625C167.797 49.2693 167.233 46.4835 167.9 43.3049",fill:"white"}),i.createElement("path",{d:"M201.285 58.5362H207.225C207.847 58.5362 208.444 58.3068 209.02 57.8459C209.595 57.385 209.988 56.8663 210.194 56.2918L210.436 55.3246H202.322C199.214 55.3246 196.751 54.128 194.932 51.7327C193.113 49.3395 192.562 46.5536 193.275 43.3772L198.902 20.1375H210.263L204.635 43.3772C204.567 43.9538 204.693 44.4704 205.015 44.9313C205.36 45.3922 205.867 45.6216 206.534 45.6216H212.645L218.827 20.1375H218.895L218.93 20.0342H230.291L221.588 56.2918C220.714 59.4682 218.779 62.2541 215.787 64.6473C212.771 67.0405 209.709 68.2392 206.6 68.2392H198.832L201.283 58.5362H201.285Z",fill:"white"}),i.createElement("path",{d:"M239.434 51.024C239.434 54.4505 236.656 57.2281 233.23 57.2281C229.803 57.2281 227.025 54.4505 227.025 51.024C227.025 47.5974 229.803 44.8198 233.23 44.8198C236.656 44.8198 239.434 47.5974 239.434 51.024Z",fill:"#5BC096"}))))}const Qx=i.forwardRef(Kx);n.p;var Xx=n(30339),Zx=n(61824),Jx=n(44808),$x=n(71276),eC=n(27404),tC=n(50305);var nC=n(55197),rC=n(52661),iC=n(58566),oC=n(53703),aC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aC||{}),sC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sC||{}),lC=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(lC||{});function cC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,lv.wl)(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let uC={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=cC(e),i=(0,iC.X)(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=cC(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=cC(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},dC=(0,i.createContext)(null);function pC(e){let t=(0,i.useContext)(dC);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,pC),t}return t}function hC(e,t){return(0,cv.Y)(t.type,uC,e,t)}dC.displayName="MenuContext";let fC=i.Fragment;let mC=pv.O5.RenderStrategy|pv.O5.Static;let gC=i.Fragment;let vC=(0,pv.FX)((function(e,t){let{__demoMode:n=!1,...r}=e,o=(0,i.useReducer)(hC,{__demoMode:n,menuState:n?0:1,buttonRef:(0,i.createRef)(),itemsRef:(0,i.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:s,buttonRef:l},c]=o,u=(0,iv.P)(t);(0,Jx.j)([l,s],((e,t)=>{var n;c({type:1}),(0,lv.Bm)(t,lv.MZ.Loose)||(e.preventDefault(),null==(n=l.current)||n.focus())}),0===a);let d=(0,$g._)((()=>{c({type:1})})),p=(0,i.useMemo)((()=>({open:0===a,close:d})),[a,d]),h={ref:u};return i.createElement(dC.Provider,{value:o},i.createElement(nC.El,{value:(0,cv.Y)(a,{0:nC.Uw.Open,1:nC.Uw.Closed})},(0,pv.XX)({ourProps:h,theirProps:r,slot:p,defaultTag:fC,name:"Menu"})))})),yC=(0,pv.FX)((function(e,t){var n;let r=(0,ev.B)(),{id:o="headlessui-menu-button-".concat(r),...a}=e,[s,l]=pC("Menu.Button"),c=(0,iv.P)(s.buttonRef,t),u=(0,Zx.L)(),d=(0,$g._)((e=>{switch(e.key){case Jg.D.Space:case Jg.D.Enter:case Jg.D.ArrowDown:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:iC.B.First})));break;case Jg.D.ArrowUp:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:iC.B.Last})))}})),p=(0,$g._)((e=>{if(e.key===Jg.D.Space)e.preventDefault()})),h=(0,$g._)((t=>{if((0,rC.l)(t.currentTarget))return t.preventDefault();e.disabled||(0===s.menuState?(l({type:1}),u.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),l({type:0})))})),f=(0,i.useMemo)((()=>({open:0===s.menuState})),[s]),m={ref:c,id:o,type:(0,rv.c)(e,s.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=s.itemsRef.current)?void 0:n.id,"aria-expanded":0===s.menuState,onKeyDown:d,onKeyUp:p,onClick:h};return(0,pv.XX)({ourProps:m,theirProps:a,slot:f,defaultTag:"button",name:"Menu.Button"})})),bC=(0,pv.FX)((function(e,t){var n,r;let o=(0,ev.B)(),{id:a="headlessui-menu-items-".concat(o),...s}=e,[l,c]=pC("Menu.Items"),u=(0,iv.P)(l.itemsRef,t),d=(0,$x.g)(l.itemsRef),p=(0,Zx.L)(),h=(0,nC.O_)(),f=null!==h?(h&nC.Uw.Open)===nC.Uw.Open:0===l.menuState;(0,i.useEffect)((()=>{let e=l.itemsRef.current;e&&0===l.menuState&&e!==(null==d?void 0:d.activeElement)&&e.focus({preventScroll:!0})}),[l.menuState,l.itemsRef,d]),function(e){let{container:t,accept:n,walk:r,enabled:o=!0}=e,a=(0,i.useRef)(n),s=(0,i.useRef)(r);(0,i.useEffect)((()=>{a.current=n,s.current=r}),[n,r]),(0,tv.s)((()=>{if(!t||!o)return;let e=(0,dv.T)(t);if(!e)return;let n=a.current,r=s.current,i=Object.assign((e=>n(e)),{acceptNode:n}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)r(l.currentNode)}),[t,o,a,s])}({container:l.itemsRef.current,enabled:0===l.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let m=(0,$g._)((e=>{var t,n;switch(p.dispose(),e.key){case Jg.D.Space:if(""!==l.searchQuery)return e.preventDefault(),e.stopPropagation(),c({type:3,value:e.key});case Jg.D.Enter:if(e.preventDefault(),e.stopPropagation(),c({type:1}),null!==l.activeItemIndex){let{dataRef:e}=l.items[l.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,lv.Fh)(l.buttonRef.current);break;case Jg.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:iC.B.Next});case Jg.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:iC.B.Previous});case Jg.D.Home:case Jg.D.PageUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:iC.B.First});case Jg.D.End:case Jg.D.PageDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:iC.B.Last});case Jg.D.Escape:e.preventDefault(),e.stopPropagation(),c({type:1}),(0,oC.e)().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Jg.D.Tab:e.preventDefault(),e.stopPropagation(),c({type:1}),(0,oC.e)().nextFrame((()=>{(0,lv.p9)(l.buttonRef.current,e.shiftKey?lv.BD.Previous:lv.BD.Next)}));break;default:1===e.key.length&&(c({type:3,value:e.key}),p.setTimeout((()=>c({type:4})),350))}})),g=(0,$g._)((e=>{if(e.key===Jg.D.Space)e.preventDefault()})),v=(0,i.useMemo)((()=>({open:0===l.menuState})),[l]),y={"aria-activedescendant":null===l.activeItemIndex||null==(n=l.items[l.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=l.buttonRef.current)?void 0:r.id,id:a,onKeyDown:m,onKeyUp:g,role:"menu",tabIndex:0,ref:u};return(0,pv.XX)({ourProps:y,theirProps:s,slot:v,defaultTag:"div",features:mC,visible:f,name:"Menu.Items"})})),wC=(0,pv.FX)((function(e,t){let n=(0,ev.B)(),{id:r="headlessui-menu-item-".concat(n),disabled:o=!1,...a}=e,[s,l]=pC("Menu.Item"),c=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===r,u=(0,i.useRef)(null),d=(0,iv.P)(t,u);(0,tv.s)((()=>{if(s.__demoMode||0!==s.menuState||!c||0===s.activationTrigger)return;let e=(0,oC.e)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s.__demoMode,u,c,s.menuState,s.activationTrigger,s.activeItemIndex]);let p=(0,eC.q)(u),h=(0,i.useRef)({disabled:o,domRef:u,get textValue(){return p()}});(0,tv.s)((()=>{h.current.disabled=o}),[h,o]),(0,tv.s)((()=>(l({type:5,id:r,dataRef:h}),()=>l({type:6,id:r}))),[h,r]);let f=(0,$g._)((()=>{l({type:1})})),m=(0,$g._)((e=>{if(o)return e.preventDefault();l({type:1}),(0,lv.Fh)(s.buttonRef.current)})),g=(0,$g._)((()=>{if(o)return l({type:2,focus:iC.B.Nothing});l({type:2,focus:iC.B.Specific,id:r})})),v=(0,tC.J)(),y=(0,$g._)((e=>v.update(e))),b=(0,$g._)((e=>{v.wasMoved(e)&&(o||c||l({type:2,focus:iC.B.Specific,id:r,trigger:0}))})),w=(0,$g._)((e=>{v.wasMoved(e)&&(o||c&&l({type:2,focus:iC.B.Nothing}))})),x=(0,i.useMemo)((()=>({active:c,disabled:o,close:f})),[c,o,f]);return(0,pv.XX)({ourProps:{id:r,ref:d,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:y,onMouseEnter:y,onPointerMove:b,onMouseMove:b,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:x,defaultTag:gC,name:"Menu.Item"})})),xC=Object.assign(vC,{Button:yC,Items:bC,Item:wC});var CC;function AC(){return AC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AC.apply(null,arguments)}function EC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",AC({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,CC||(CC=i.createElement("path",{d:"M6.66663 3.99996H3.99996C3.26358 3.99996 2.66663 4.59691 2.66663 5.33329V12C2.66663 12.7363 3.26358 13.3333 3.99996 13.3333H10.6666C11.403 13.3333 12 12.7363 12 12V9.33329M9.33329 2.66663H13.3333M13.3333 2.66663V6.66663M13.3333 2.66663L6.66663 9.33329",stroke:"#DEE2E6",strokeLinecap:"round",strokeLinejoin:"round"})))}const _C=i.forwardRef(EC);n.p;var TC;function SC(){return SC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SC.apply(null,arguments)}function kC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",SC({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,TC||(TC=i.createElement("g",{id:"Icon/Outline/external-link",opacity:.7},i.createElement("path",{id:"Icon",d:"M6.66669 3.99999H4.00002C3.26364 3.99999 2.66669 4.59694 2.66669 5.33332V12C2.66669 12.7364 3.26364 13.3333 4.00002 13.3333H10.6667C11.4031 13.3333 12 12.7364 12 12V9.33332M9.33335 2.66666H13.3334M13.3334 2.66666V6.66666M13.3334 2.66666L6.66669 9.33332",stroke:"#ADB5BD",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))))}const PC=i.forwardRef(kC);n.p;var DC;function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(null,arguments)}function NC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",FC({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,DC||(DC=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",fill:"#F8F9FA"})))}const IC=i.forwardRef(NC);n.p;var RC;function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OC.apply(null,arguments)}function jC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",OC({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,RC||(RC=i.createElement("g",{id:"noun-wrench-888740 1"},i.createElement("path",{id:"Vector",d:"M18.2417 5.72914L16.5458 7.42497L14.9417 7.10414L14.6208 5.49997L16.3167 3.80414C15.4 3.57497 14.3917 3.80414 13.6583 4.49164C12.8333 5.31664 12.65 6.59997 13.1083 7.6083L7.60832 13.1083C6.59998 12.6041 5.31665 12.7875 4.49165 13.6583C3.75832 14.3916 3.52915 15.4 3.80415 16.3166L5.49998 14.6208L7.10415 14.9416L7.42498 16.5458L5.72915 18.2416C6.64582 18.4708 7.65415 18.2416 8.38748 17.5541C9.21248 16.7291 9.39582 15.4458 8.93748 14.4375L14.4375 8.93747C15.4458 9.44164 16.7292 9.2583 17.5542 8.38747C18.2417 7.65414 18.4708 6.6458 18.2417 5.72914Z",fill:"white"}))))}const MC=i.forwardRef(jC);n.p;var LC;function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BC.apply(null,arguments)}function UC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",BC({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,LC||(LC=i.createElement("g",{id:"noun-wrench-888740 1"},i.createElement("path",{id:"Vector",d:"M18.2417 5.72917L16.5458 7.425L14.9417 7.10417L14.6208 5.5L16.3167 3.80417C15.4 3.575 14.3917 3.80417 13.6583 4.49167C12.8333 5.31667 12.65 6.6 13.1083 7.60834L7.60832 13.1083C6.59998 12.6042 5.31665 12.7875 4.49165 13.6583C3.75832 14.3917 3.52915 15.4 3.80415 16.3167L5.49998 14.6208L7.10415 14.9417L7.42498 16.5458L5.72915 18.2417C6.64582 18.4708 7.65415 18.2417 8.38748 17.5542C9.21248 16.7292 9.39582 15.4458 8.93748 14.4375L14.4375 8.9375C15.4458 9.44167 16.7292 9.25834 17.5542 8.3875C18.2417 7.65417 18.4708 6.64584 18.2417 5.72917Z",fill:"white"}))))}const VC=i.forwardRef(UC);n.p;var HC,zC;function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WC.apply(null,arguments)}function qC(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",WC({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,HC||(HC=i.createElement("rect",{id:"image 203",width:22,height:22,fill:"url(#pattern0_8307_5697)"})),zC||(zC=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_8307_5697",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_8307_5697",transform:"scale(0.003125)"})),i.createElement("image",{id:"image0_8307_5697","data-name":"image.png",width:320,height:320,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAgAElEQVR4Ae2dB7huT1ndEwHRIKKCCoKggAVEjCIIKFZEo1FQFLugIIKAjRjBhl0E7CU27A2l2EtQURQ7sYAlil1jQcQWNaZM9m//37WfdebM/sq59577fees/TznvFP3nlnzzvqmz7/5N3mCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCBwtAq21f0viXWLWn/zc/2gzm4QHgSAQBBwBJzaRnkvCul3h/R0xB4EgEASOEoGe3Hq7MhXiExKRQSAIXAgEerLr7ZsyuU/YTe+JXxAIAkHguiDQk1hvX0tUH87ta3HiHgSCQBA4KAScuK7A/AqtNf6WiRPMB5XRJCYIBIEg0CPQk9aKXQS3qwwR9kDHHgSCwOEhsEJ4IjAI70b294qtNf5uUm4eTmGdJOWf1uDhFX1SFASCAAiIBIVGa+1mrbXXb63du7X2Lq21B7XWHtxae7/W2vu31t63tfaerbV3bq3dt7X2eq21m1Y32AkQ80yCendkEAgCQeCqIiCSkdzn5cRR+Grd3b619h6ttadMBPeC1tpLW2v/2lr7v+3k88/l98cTAX5ja+0DW2t3aa29SqXDiXD5hn3rlJv8IoNAEAgCOyMg4htJf4n83U3m1tpbttY+rbX2s621v2utQXD/u4jv/01+m/4gR/x/eyLAp7XW7tdae6XR93DjmyM/S8vSdd4UTuEjg0AQuMQIFEmou6mW1ykSGZFJa+1erbXHtda+v1p0/8tafCI9EZzsI0kYSPNvp67yb7XWvri1dv/qTt9IxUMaMCstku5fbsrHnC/5RwaBIBAEFgREIB1piPxEirIjGaujm/rmrbXHt9a+rbX2J9bCg8hGfyPSG7mpo/yyqSv9wsnypNba27bWbqlEW5pvPFo+MxhLnNOv+JFBIAgEgRkBIxMnOW89yYw/hMOExWOnlt8Ptdb+3IhPZDYiP9zkv4sUCSL/aZpM+ZHW2hNba28tIqy0MKM8ImnSqnTP/inuIBAEgsAqAitEKFJkKctrttYeOZHQc1trf1OE1pNdT27b/AmvMH3c3g4ZMqny6Nba3VtrtxilWRns/eQeGQSCQBA4gYDI4oTjDeNstPhuNY3tPaa19vxprI9u6b8Mxvh6spJ9G7nJX1LxJOWO/D/1XWaUXzKtJfyc1trd6JKTbuVBUnnBLnNkEAgCFwwBVXjJq5W91tobt9Y+vrX2fa21vyjygZhESiKpqy31/k2SyZK/LlJ+ao0R3sTzfrXx8HfHHASCwAEgoEreyz5p+OPWh5O7wrfWXnmazb1Ha+2jpoXM39Rae3G1+Oh+rhGdj9eNzGvxtrk7AfZh/TssuaFb/tmttXdg+YzlR1341VagMFGcyCAQBI4EAVXekstkwCj5XVhNEoggmNVljO8h02LkZ7TWWJx8rZ+e1Nwu8pPbLmkh7E9PhP2E1tpbMVlS2+00GXKKBA2T1TAjLOMWBILAASAwqMCrM54WVqRHWJa0vNrU0nuf1toP1ho8kQ1jbpDKeT8iPclt31c4SFNp/rUiQsYImcBRXk+QoGEiApzxM3dhdSLeARR9khAEggAIVGWl4urQgbnSjtBRxa54r9Fa+9BpB8cPTF3ev6qxPchGhII8hkfpVasRyQ4UyJCdJWyzu88GPJz8enMIcARc3ILAoSAgUltbD9ens7V2h2lS41GttW9vrdFSgix4RCQuy+tghadVBOhuJJx1hL/eWvvqSb53aw3in1t0HXY9+WEPAfYKFHsQOCQEvJJuMHP81BtMy0c+uLX2NdUyEqs5YfRmhTlk2afZ7Z5utuj94rR+8Iuqy38bO5Jrjfzkni7wISl90hIEHIGO+Lzl8qp1LBVHT33rtJD5fxQjOElsMzuJHKJ51/QTjod1jL/cWvuCiRDfbfpBeJ06n1Bk5zItQFe0mIPAtUBABNa/W+4u+zDYzZ+Fy/+ujqViVvdDWmvPqjE+FhCLLOguyixicLvcijMOWpBWxvt8gbbyR8L7fLmdrXzf0lr7gCJC8FtIz80j3OMWBILAFSKwVsncfWTms+ZOq0WTIMzqcgDpM3cgPieDkfmgmc/ITeN/Ltfyg7sewkOe7Cz5zulQh4dPhHinmh0/RYQqauEue2QQCAJnRECVSVKvkX2TtLCM8XGY6Ie31r65KjQtIs2GqkU0IoU1N5HEIcs+7SLA3l128oK5f3CjhfybrbXvqsMe3rSO4gLbU2TobiqHyCAQBPZEwCsSZkXv3Xs74arVx1q3h7XWnj515f57VWRaNSKDnvz6yu92Jwp3P1Sz0rsmle7eX+6S8hduf9Ba+47aEcN5h69eeEOEGmOVnMlR5RYZBILAnggUuZ2oUEZ4vTtdXRYw37Hu2PiK6Tj531FNLqkK7bILcmGs5NEf5dndMPfh3F9xXNJ6pmv8HDuBhuEFHcHVl8vGViLluadaJHgQuBwIGNmdak0YOb4CaNTODcb4GLz/y2rpecV187aK7yRw2c0j3HCjBc1aQpbQfEodEiHyk1zIrS9L2S+HJieXQeAMCKiSSI5e0Vq7de3ceHYdPa8urldcN192Qjtr/h1DmfUuzkHkgIgvb629PWOEKiuV3ZpUuMggEAR2RKDG+G5bkxscUsDYlCY3VDnXpCpt5O4IrGEpd72JlvfP1b0lXPF5W4p0jfxw37HIEywIHCcCrvyjHKgSSI7CyK2Oe79za+3DplNaGOOj1cGYlCpiLzXRIdn7q+JGriPQY7Zm9zdwgZOI8L1aa7djksTK8cS4oNwjg8CFQsDJz2YJTyh/F2ZtrI8lFxzjxIXhdLN+t9apqTKq27tGdArXS6+0MZ9GoMdrzX465g0u/Dj9Sm2zeyAtwvoRY4xwGSd0HbhQFSCZudwIuGKXwqP0OobJK4Cb525RxSUslw1xECknMLNljSUZVMSe9DaRH9WROJJekcs5YgUBx2rNvBJ1cSbey6fzCH+4tfYIypSa4SSomuI6I7fIIHC0CJRCi+CQXOxNiw6zu8uuWV3u3OCQAnYiMManrq6Ib60yyn2pfQMDYfLshoDwdKmYwlFS7i49Hma22fFjxg16t5di98Qnu/wjg8BRIiBFRpIBsy+EJyIs/9ea1u994FQ5vr5OZ3Hi04LcEQl6pYv56iMgItv3zcRTean1zjuYMPnxutaTk6rnS95LP6Qbp4ZEjrISJNFBwBEwElwUvMaHmDnkfLrfGLT41MVVZTprhdy3Aif82RBQ+ai8VH5y11s5dPZ7W2ufUHeX0PI/MU7suhNzEDgqBFyZ+4RPRy/dvK6XfEBr7Sun9Xy/bwuYveK4ua9AqkiRh4WAykmyJ0C5e6p/prX2cdNp3G9ZesEJPhomOUGK6FWvT7EHgYNDYESANQbICcQQH+v4XrplKYsIcFRpvALFfDgIqKyQa+SnMKQasx72bn9Za+3tWmtcTAX5QYSMHWv8OAR4cLX9AiXIiWvbr63C9tmXu2Z+8Z+6uJw4/NDpCPpvmGYE/7QWMKsiSKrChPhECccnVZabJLnCX4/CYmd3CUTINaSMCaM3agVChqwQ2EiCCt/rZenhxrijOHG7RAhIeUZSMGzyUxjJOoGZWV3G+H61tfaPpfWu9DL3UhUk8ngR6MvU7coVbjz64UP+z1rw/m3TMqhHTsdy3XVaV3iLuqt5lcRGujlyk35GBoEFgYGinJiVw5/Ag3DzL7RexHFJdufG17bWfql+2VFyrwAy36D++X8REVAZ99Lz2vvJThhWAzBGzJ5vxgk5jgsiXN1hYvop/XWp1uQqiUqPIy8hAqU8UhiNwWBfFGeD+ZWnuzbYssbqf7q67NyQMiPVxXU3zHkuLgJ9Wcve51juI0lYLnHigvrnTmsKP3I64ZtzHxlPZsJkGR8c6OZQly9h1U6Wd0HAFGhX0pOC0erjQvHvbq29zLozm9bwoex5Lj4CPamt5bgPJ7vCY9eP6AunH9dPmxZXv4VNmGz6kZ71WXUAPZc5MggsCBgBeuvvFBkqQi1b4EJxVvn/UWvtH6rb4uM5vVmKjcwTBEBAOuG6IrcRQvgxnswdx1ztyX7xW0kvkZ0uL+ToYWIOAicQ6JRGrTuXKBIzcVyWw+A0LT5OCuZYqr61J2WWIiNxk32k2HG7vAhIL6Q3u+gKYVhU/fNFhFz2/rpS6k6fZxKUX2QQOIWAKcypVl9disNlQ1yb+I119LyT2khxe6WWHZknCPQIuH705j5sb//rIsKnTRc6PaROq56XzfjC6lNKH4eLi4AR2k5jHhZerT4UiD/OduOaRA4pYAEzDzN0Tnoy94q7Zq/XRASBEwi4vqBTbsfcP70bPZE/rKVXnFT9qjVRwiTdTIgXt8YnZzMCHZHtNP7RxRHxoTzv3lr79upqoHyukCK9XnqYTeZemWMPAq4vIwJ0f8z9gxskyHg0R6mxhGa+7H2NHkz3d6ora++J+wEgYIWpVtxSqOZ3qkVYfiwp4JY1Fp5yHh/Kw1FGUrRe+aSgZyHAXnFjDwIg4Dom/XI3N/eIuR9m4rOomt1HLKH5JJbQeDUtvVddkTxVPzxOzAeMgJNcjX1QqKdIcJSF1hoXYNPVZQU+5/GhRDy9Yo3s25TV49RrI4LAKQRcT7aZT0XuHBQf3WQtIeOEz5vCPGk6lut+2lli9eREXaGOUHdUV1SPZI88MARUQH2BkkwVpMIo6TUuwgJmTu1lcoPxE3+kRPtIxR/FkV9kEFhDoNcbhXN3uW2SHt7NrFr46dbap7fW3rEWVXNo7ykCVN1RvVE9Uv2JPBAEvIBUkH3SBmFYTf/+deH135cmuaK4mV9R/3O/3rxJKeMXBM4bgV4/1VthIu8XpsTQIrxPDf8wDDS3+lRfqEe9ua9bsR8AAn3BeaF58mo/JS2+51fXAAXxdXyuME56vdnDufm8FTzfCwLbEJB+SoexY9bzZzXZxwG9N6e+qP6UzPigk8ghmrsC83E/ZnU5Y42j5z+mtfZf63hyFMAVozdLWSSdJD2u4klKqSKDwKEgIN2UlE5jx0xr8J9qRxPnEs6TJTactNSnQ6z7SdP4F4tCo0nP5nGI71vqkAKUUoogBRChScpfitJL+Y/koSh90hEEhMCanro7JMjzF1ODgQXVb9y3/rCHbA4EAbX4lBwvnLqJ7Y0mwvug6e4NjqXioEkKm6cnOVeCTeZd49VnIoLAwSDgej3SYxLqYTic9VO1eNqIMAQowrlWUsTmhNZ/y8OYma4uK95fs7X2fnX0fD+r2xe0Fzrm0dOH2WQfxY9bELjeCKzprKdLYdQS5OKmW1v9mrvBfV2M/Soi0IONnddL6lMWbh6crTDM6rLqnYJjAbM/FC6PCnkkK0hEELhwCOyq74RjmQzjgT837S9+V62q6Oug6mLkVULASG0hPXcbmYv47tBa+9jaucH2Hz2jQsctTxC4bAj0dcHz3/tpvPsXJxJ8lxDfVSK4ba/pCO7EokyfjSrSo7t7x+m4+Y+uru6vVYlSmCpAFWxvxz1PELhMCKguuCT/blc9QeLO9rm7V31L93cbgV2Jf0d+y5T7wJ3lLOzVZR2ftqxRkBQay1R8qYrMFKYKVwV+mZQ/eQ0C0nuRm+wuvY7QBeawVY7dpz7O95BgvpJ6nrgbEBiQ3fKrU5MbXBMI8f1AXTRE4f2rEZ8IUFIFKumFnSoRBC4LAq73o7qAv9yZAMH849OJ0xywSk+LvyyE3sBdO3lt+/XQL02t3WNvolqCt68xvh+twVkKCeJTwUF4MuOnlp8KFelKcFkUP/m8nAi4ru9j/ueaAGESkWP2af1BfCHAnRjOAonsjMREZsMmtIXT2B8LmLn0hesAOXqedXw0y0V8KliR3C6tPsW5nNUiub4MCEjHXZJv2VVfZEfixmkxHJBAD+tN6gT0GxcBzl1g1Wmr5jGOEDAyE3AitSH5+TvqXl3G+B5dhxRwvSTE5wXWm/sWXu8v+2WoAMnj5UZAuu7SCdDdMbPg+Seqh3Wfri4ujZaQnyOzwWzkpzGDhfzWQKw4dHkhvocW8bGAedTa6wuwt6uwJd3/cleN5P4yIIC+9628vi4wTMTZgJwE8xmttXu21l5xQ7WO164IiOSK1ER+kksLsPzp5nKnLufxfch0JA9jfJxgK9KiWwsJ8qdxvr4wFVbuIyUnTJ4gcBkQcF1X3UBCihob55L1z9eBB9Ttqo9L/dy1vidch4AR36kWoAetcExuPLaOpaKbyyBs3+pT4elXTdILV+bLoODJYxBYQ0D1QJJwmHloWEB8HIJKg4Mto1z/kHE+J6YrNa8QICDfRO+ezh17w+l2tcfUzg0KBdITsSFVgJLuJ7P8VMBVzhFB4NIi4HXC68WLpzr1aa21t6rTn5nV9fE9NVZmN9XTyD0RMFAB1NcPAewrGvF9ff0aoakUFKSm5rkKUX6yj4jRC/nSan0yHgQMAdUJboV7wXQq0pNbaw9srd2e6lx1VMtaRILLEBX+e1b7BBcCHQECLhMbHFBwp1pU+dTpXL6XV2HtSmwKtyat7GMMAhcWAdf/TZn8y+mah9+eCI9GBle63rLqobq7apjQK8NNJDhL1eXILQjol6IHsNYNAe7NpsuZ2blBIXxzzTpRcN6Sw07Bqlvb+40KmvB5gsBlQkB1xOVa/lkzy1FwbBmF1DTGp27uSIb8tvDdKe8V4hPgt6tZXS4U1+ksI5IT4cmPAg7Bral23C86AiPdV50YDRHhxuQGS8aeUb2smcy6+rlKegp3qoLHYR0BgVYScDWo+qqttQe31r6mjp4XwakQkT3ZuZ+bUXbseYLAZUDAdb83qx45CeLGhecQH6eevzaXGXV1c0SGQ7f12h6fEwgY6TmQrOV7h1pb9N+MuLwgVYjutma+DAqfPAYBR2BUF9RYQEJ+hGERM9tC6V09vrX2pnZQQT+54XX0lPlExY5lNwT6vYE1yPrhrbWfXCE+FawXptzWpCtGzEHgMiDQ1wXlWe7s1WU4iRsNP1mLmK1Bom7uKaJbaxXuVuMTakHAgARsgH616fSIJ1TBqKBcqtXn5Cezh+vNKvzIIHDZEOjrAnbIj21rrKJ4s5rYYHKDOujEp3q5EwkuFTuG3RGwFiBH5XB13svscnEVnkiOZrv/yV1S4Xt52ZQ++Q0CPQKqE5x0zolIXPswmtEV2e1FfmrM7F7zE3JGoCY82ML2BTUI2+/iEOGJ5GR3KT8Vci97ZYg9CBwLAq7L29KssH24f6wTWv7TtD/+PrZ7Q2v4zkR2Ij2XobUVBAQS3p2Zhc0MvnLrGgUoMpN0ouvNCuNSStDLXiliDwKHjkCvw7Ir3bL3Uv7IH5sWKH9ea+0BRXzq5mqCw7u8av2dWa5U/8vrLLJbGVvg9Jb3ba1xWxSFyIN0QoP03L7N3CuD7PX6iCBwNAhId6XzskvKHYkbkh7U37bWfrW19uWttfvbsjInPTfPLcCepazu7kSIffzYrbVnBDj/4gDO1Cx/29bad1ShoZUqRBXsWclP8SWlMEej+UnopUdAOut1oneTHT1XOBYxf0Vr7R5GYKfIrvyGxCfisvghQIGyrzQQZ7CLCCkQtrZp0kPkp0KU9IIVmcnN40gRXPbh8csTBI4JAekzDQFmbtUgwF36Lb3+namL+6XT1ZNvXUdTUcdEfJIniGxbXba6S7y54WLyxLsUdts7L6V/geMAAh4XJL/QtFGFKimi6+3ubtEXo4d3JcE9TxA4NgTQW+m0zJLkhbV8X91ae8/W2q2LoHrCOkFW+5KQyG2b3Pe9lyp8Bx6/SP+l9h1SiCpgEZaTXO/nhe9mV+xRHPePOQgcEwLSc9ULWoOM8XFCy8PqdCSt4ztBdl7vzkI4Hr/M3pCRWYQ7f/ss37kUcQpAyI9both+w+NkJTPS/dzd/RjvYF3Ti1prv1mbuNnMrbgetpxPCcIo3CnPOASBa4CAdG5XvVN4iI/9utxjzW6p17FurpPRKRI8K8F0BKhv9HL53lm/c6HjdSCyz5eLU/5lC/mhdxS8WoVSAtw57v6Hpub/I1trr18btzmW+wNaa09vrXFirYhwTX/1Pv2qYvdH/r27h4k5COyLAPo00um197j+sXvjUbacZT5stOrXK0Ai6gKLUFT3ZN9HKm6RLCs2OO+PMzk5/l5/uHE4Mf5zGvb5xqUJa2C+0TReoQMOpAwuVeBI/bnC8CvIYO9dCnh+jfQLdIvWGifIcG4givIza1rVkauToL7Zyw2vilcQ2AkBdEq6LCk92/QCfuw5k48W36zvThym/6e6oJv8/B29uS4Xe8vaJ8wmhe+axu1/rnpuv1enMzHxQg/sB6tO0h1/46qX9PQgxxv1775U9q4A+JV41yppCp6nJ59yXsjPlYaW3xdzCQsg1i8TQPMnEkTyHfYVs8/xY+uCZlbD8+h7roAjs8LtoqD16oggsCAgvXEpPXMp/yViGdD1Z9ddN2/RWuPHfTle3s2bCKWrF15HlndVXcKP46/uNc02f0pr7Xtaa788XSv7B7WukIZH/5B28kJvi5OjX1LH5n9T7el/UN8qHKVnU/qP2m+Q2deajrD/mA7FNQUgmPyQFMDPt9bewgpMBeqtQHejac5JtqyJ+swqHBaJ6t1SRBUkdjfLjlueILAPAuiM/qRn0qfeLv1Cop/Pm240/MTph/udqtW3XAC2DyFU/fPxurluDOoPjYV7T2T2qa21H2+t/VENMyn9LoWBp1n5wg8zhMjlZM8vMp2X5tR3VVcllzTtk7ejCDsogLtPm7C/QQiWFJCd82IV+Fy8/MRB4Z0A0r4pIpSEDFkVzxghTXcueWFdld4vKeXE7uYlQTEEgR0QcH2SWTrV29EziI8W1+fUxeIaczvRUvOKj667vTdbXaCO0EtSXZll1aU3qKtkf7bOBiRtPEojaZNZcs3/hpg3/PewPzK1JB/aWnu96p2pTio9G/PR5+to7F0BkFl+0RjI5QGgXR+I6rkc1liFtgBX3xCgmyRxGMClK/E2dco0pMrTF7ITnxdkBY8IAlsRkN6MdEl+vIShGVYwcM0k4+MndPtKKntX/0SAej+TGG839ai+r+7X8fqIWemWVJrXpAPSh8Hvr6ahq2+tRojSIDnX2yvJ60HGNXJSRt+npvEBVSA5cGtmxkOeXOQnkpvfqYzbt+S//Kp0fsRjrIMBZS5Y+jq7YInvK10u19IV9yCwhoDrj5sVHuL7rall9lnTshYmG3T8vOqK5KLH0vV95IAEqR+3qhUUTGqwd5j0+SM7krrqO1BGeXE3mfU+tzOMxfrFR9RECWlZ8kla98nbUYS1AiCzzMxS8N71FFCbJDNNH0GG7X0AN4PnQJT/QoKdXXGQ/CLSzdDyGX6dGLfYl5w3pTt+x48AFfgsjyq+S3SL8bFfr+seOKHlNqXXrpta0jLrsev3vmbT/7mu1BKax06HkPxGZcrTp7wiRXwiv75e9PF6O+H9T+/ms79ScwEsiVO+lzq7bx6PInytG6KZL3AF2C7K9RwOTiCjRoAANhdqD4AV+gIqYQfx5Q8ZMn3/EdPMMd9iexGFt++jPHlh7/uOhD8cBLw8t5n7VCu8iIMfflo/XzWNQX+gXSzO2HRPAifsvX7va7f6QK/no4qASG9PUEqz5Mhf+VSYTXJTfDZCkBYmRpe6rLTum8eDD1/N7i8adDEF6Jqkif4ltbZPhLVVQQRkJ2fClBugyVwSIrxba+3jp/PTGBT+m7VErbj3yrASLM5HgEBfltvsa1mixffSWivHQv1X6/TOdfKEXqOTV6tit9Y4cf3DaryRtHIZkhPUqKVHnj0M5m044K9H8Udx6A6zHviBlbYTJHi18n0w76n9iuxd7MEQWGuSgmF6nl9KEeAst2WuD+92xXU3MzNZQtf4Q2oxNQW/y9PnDXue40RgVJbuNiKDPqcc8suifW44fN06AemEDqsXY7q3+EtH95W8S3HqvfywM87IDinqk8iO/JAPdxvlS2GQI3/HBbMevd+lhyUcB6L8B9Lr63mV/gshqxDevFaTOwCYtz2E4SjvM22zkWKtASn/TupXGcVh3/Ljigj51dz2KH+E2yV/294X/+uDgMoR2Vd6EcHIndRyr823ULFrqyZrUdElyE26tRBdp3uz+5q+jtw9Pv6yK2wN73D7G0u/2IKqdCsfIkTZPe/K/5pfH3Zk1/dGfrQE2WXCD8SCidJ+IWRl7L415d6DsKbeCkcX+DHXGggHv8xSVCSzZiwZgIh/qlsk6ulXmiXdL+bjQkBlOJLkBHcnBdxePq11+8bqOdy1ZnYhPnRIf0sld507q377O3oz75xWOdxu0tf/XOlVS8/zpDxIup/M8kPK7Uqk8NM7WAPJbLhIcP6xOCsmBxevCv8day2fMi25rVr8c2vt4eeVqV6J9ItdysSsFUtnvrBm8v6+a+UpT1IY2ZF5jgsBLzuZyYHMkrj9xekgDuYAACAASURBVLTb6PtZqN9ao6czd0FLl1aJ70p1utNVvnOCXEtnuXKCyRcaEiO9VD7WyE1x1vwVf1cpLfDwvJuTnbTLazna60oxuq7xrUAoHAiQZjgZdzAFSC8FEAT4sPPMSJdu0q5fcSk2BcS4DrtaKDjSyON5U7dC+UDmOR4EVG4iANk9B0xwvKAu9bqTdHSgP6eISWGvRNp3eP8JAuS9tej/KUZ8qneS5KnPn/LZu2PXxAkYEG70KP5Ievjen/d/ZC3TuRgtQCsgEeCP2gAsGXYQHBw3M2bBKRPXRInWFNC+R9pZLzgXirmTHoiQawYhQla685CnXnmUzwoScQQI9GWG3R/W8tG15ErXUyeeoCdFQgs5renaWd07XRwR4DvXQSDKi/Lg+ilzXx9ll7+/Q+9xPPY1+/v0LdYHvpvhtkzmnBWj6xrPCojCuV+NAepXZASsgyiAaElBgLxDhSx5TQGy9J8iX/ODBOka0yJkuQ7jGaRd4y0q3F2VRvneNbxjFvP+CAhvjyk3l/hTpiyPYiyYfe03VWXtK5rpx6w7vf+V2vv3Y1dayo+VDAzV/J3t8fX8yKx6KCl3yX3113HcZNb7XRKeH5UzHf5wpZhe9fhdIXEixPfWWIS6hw4uQPgjYESA6oY6EV5TAhQgyofsyIHCcfbZHercNo4DYlcJaVc+PG+Y5b5N9vFiPzsCjvWuZaCvqavLfnbu3lAPYP4xdt04D7N0UlLfLDu6yAJjzsNUXfO8yyzSQ24Kx/gh2/aeWTtYOKnmEyZgntRa+7Y6Bks47SqVBpekg7rDBNK51G3hdk2kCqckZ/NxBaZagALcSdDBEzD4s2IcAnQSXFpl1yTxO7y0yx/pIX3cdscJGyx6/doaIF/LF3nz/JNn7MJGGHj8mM+GgLAcSd6oshD+hGP3Bot1adlzXNSyFMvK/lx6I7062vdPtDDLnR7JB9dZfuRtlGfc+jzLrvDEZTPAN9f+XerwLdnVRXrq8GEmfT5uOqjkWbXNj3covuRaiclfkri/NE0wvrfnr8/7UdprrISLkESAAtsBc6AcFLbQMQ6n1t+idAB1vQHxwqo0ighZTP3Rdb4bJ8+w5qnPL/l0N8dF7o5LzGdDQPq0SYI3rR2Ij/3nLGnh9sJTY3xFAMuP8PXQQ+ldr/9FUpx/ySGlPNvyTL77ekkcFnKDwR0rvwz3eB2kpQkGuLGVlNYgek5c6S7mtUfpIix//PCTZmbTqe8nyL3P51HZa0bqcyujyqwyLiAcKLkRhrGM16xCuK5Ktwl0FZgpBYoBGbK+6dG1hpAZY/KmvCOVV7mrBeh+jk3M+yMgjIWppNx5IxNuHPfOjiXOjrzxpvI+VL9at8qyHIjc8yezS3BA33oCxJ3F3HeoeiddFgGqHmKfcarv0stjHFzLbvjW2qN08C2lg7BMKs6n4xwqxnunq87iY9xArSCv5GS+fxwcfoXu5h+FZNx+aOYBGXIOIfuMIcIfK6VTHqUkSCkDUv49NrHvj4CwHOGLLrI5n73qTGbRzTto/dqk7zQWWmu/3+kYiEnPZBYW5J8/6R+Sw1m5h0TDTmrpYde2VJHi3BIkTa21t69urN7t3+xLDT/9eXgOUGV2/WjL4FT5VDOZzdiMKXhmMW8D6SfoihTAR9EsHhAg6UZ5XntaD8muGGa7OPqcX0s94CA8pJCbsFG8yO0IeEXzCk+LjzMhGbN9wyojVfajrIDT2PNtV1p/jpJ0DX0DD9VJ6d/n1QEkavFJzvVvoN/4023lj6EuWoDbHpWJ0iI7E073OkUix+jQAcUuit/ufmmU6TWw8GexsZ8HeIwkqEolRWF7HefBPW1a+/SLRYSqmFJC8p7nyhCQfrmka8iaM05DpkUu4lNrhzJaKvoh1zul09NYk3C6dnZNh4SHE5/r3XvxTr3f5BoRzu4Vh0kRfli2PUqDS9KgU2KO8gdoKQtA60Bk0TDdPx7PNObRozAo7FPtur1ZQZcPHaDBFGYh696t7BxTxKb5r64fB8YIpZTK/wibuG1GQNghwRNc2bnBxeLcePZwBu5ddao8vCIvZefhDsVs+tSTErO1nKIuDEZIyU9SOodkTzPXRiw/Ap15+R5YmB9rD2kBcuIzXehtj77tkjg0krj4/fgJ0MABTH5pv2YbKuYvYCgUrghkel+/0gcPTpf3U5Wp/JlZw487Gt6t7k1gVwl5Z2AaeVkflb/krjgoPFJDCXTJOMiCJVWvt4nEarjmVHltinM9/EpvFjKydHP0FWPtwmETbgpDHQMrdI7ZXw7/kG7OWJg+883FzUhQaXlwHXPFu9cefdelwnIr3TU/AOWal5mDVGYIjObxJmAEQi9ZlsA4zVIo1zwDV+EDjkH/OvcrYidvLGB9j/qh4PY6VeAej4tu94rh5m35JiyVmYoM6XFQAcct0SrhaDNa3LRS5kq8qUx6v0Ozl/6IdCAkERP3CGu1wS54CTMRIC1AxqkXktvDTAOFczS56IlyWHu8TGVWWO4iftSh4b13enrQeEGdpqLmuTK8SQIODyevfIUV8sG3ACu/sxJtAq/DCQWCCJnJo0XIkgyO6Ec5L9OjSkG+qUiy9xjIXRJ/zJzJR6/h8XXZN2fygatIYlgulMWmsjokP9Mb8rT0jFprd7EtmT1evV24qQUI3rQeaWzQK5nxkHSdtu8vRFn+n171tf+W2/muylVS/jR2HnxIWJ8pLQJIoJVkD+Xv7tgKVOEgeRhX0CUyR6Oou4AnrEyKCFk688g6bomu8S6zawXXUQsv+95MxtxNFUjdNy7kZhaTbWuvIv0zbL3VNCTCXcrseoex/JAH5QnJLDBbMVVvNimCwiDBUX9MzmkB9Im6Vt/17+n7SFY5sJ1t29N/T+kgHpOCdMFPfPd6473391VARFRmalHwd1YXZRNIAOIgYWbJyIfaUoXjBmgLosKs8GP8lNaM7ioZjQ8Ks024HpOf8rNJUmHBgokyBs9ZgjFfoOXwShf7FqDcPeyxmJX2khCSiIgVBiwlAZtdHzAW+WHm1jiOpzq1C8a+4ySoFihDXFrpsenba2VKHO4AZ2fJsvXwWMrkRDqtgAQUBfSq1aLRKvU1kASQCgVJ05wjteZFknr/iY9eQAv5VLbqbpVPmroILyo81vC7KO7SA0n0QGbySIuYZVLsFmLwn4qIni2YGXaze/mLMIZhFeeQpfLZSfLFYQ1c88qs9y6P8PS6RjyI6J5sYhAO9i2+w753YcrODZZ10UvT+1z26XA/NxOOLXUMAZ0qQ6XjaGQBJGVDMgD9pnWCBBlfewSKCkUDtLQCGdBmyn1+79GAccaEmpJRucEPZWMogcXUnPhxkbvF6IF0wMmPMeGX1DpKdh+we2Oe3FiD2XBUpT1a8iOPnh/Pc7lzsyH7cnd9hLHwRjIZwjgqY9HzAQj9d+sH59VqzJCF/dRT1d1e9mnp/bHTMPocTXZ6vo7SXIXhBIjSMRPHXkW6Lv4IENxkltL7YPgPFAFcjHPDVkrWFbwb45l/GavSc9I29ymwsBeM9nnA+FAflT9SOoAZsievbFtjtvHOK/ANnTtMj4IAlWbPkNxcdv50X1nzuMsjjIWz1zXqKGOqT64rLDnpiC72baY7tFlvyKkzn21dbi+33rwtLYRnS+Lc9VbePF9HZ1YmvLVWblTaPzNERmDJTb9OkszwMdaw/Co5MPbNo1BwT7ub+3wM7PywMLPJoPd71rFNLJ0BJz1gOHqEbS8Vdi2e/K+l7NOEnYpIV5clLVxgvxCf65bjdxHMfZkrT+aODiw9oWn5FJefM/nz9B1mYr0MhbnqmOxIHvD/ydqQwOlM/H2ZHblFGOIqHnbMvdv8spV/fIN9wOzHnusuUnk+SukZ8czUSnP2+ApgASfpGAlIFQ6SsQYq/dwK7L9TdrU8jxLEPk9SgN5dFaB2ynCKCad4sHSG1tKoVSiM16Swx/9Kn/4bm97nYUk327lYz8bfd09HVL1Xjf9e8eA4GArPY5Er5a7JB4YA2FHEsim1/PYtP+HvpLXPOxR/k1wrf+Lw3c+vH/SLQYAoV19w5UbBsVSBgdpdABNAIkF+LTh65441HrgAVt9byA+COBYl93Q6bu4us/mrFUBrkD/Wb71rtZZoLYOdP4638HQ3mT3OWc1610jyzpE7ZauHFh8/dPOViZ53mS+ytDLu9Vt2ypsWH0dI6RRylSkSfPd9+jLZN77C9+8ZpcXD8KP9QTWWO+fvQpRtX4jKVDV1ma5H4QXEpsIjjPszEE4Feb2q+Po1FCG4PLpffOE0kh2mp/JZePDj8JA60ZfKoafH2nGVn6TinEXqHZQZrVG1SFUx5e+S73Bi0LfXonmuGVC5qtJfnMoxKlxzs3I+UcbV6mfW+0vr8FbqgsbuvI4I233KT3GQV/L4e9zs75Q7bnTbGVekvC9WGStDkpRxddk+uWsFUngUJJVFFUWAAZbcJOkmMRZxp1IKfhFdWTAD5ixNt47aaHka5dWJgrPbwOahRYTMnOoHBwz9z5UR85U+ep++Maqg8uNb7EFlCQQLv+eDCoz8VI4X6odsFyWssoYU+GNHy1u11tht8ePdsVeqH8JU+F+NsjyrLnga3Kz3yY2ypyWrU6YvVjmL+CRV8LVNiU3qAoLCWyNAQCMcYZCEozLz68dMFFuA9OvhxCBCuDAkKByN7JVHkb3nH0wgQi2m5n5mJhTAT7j3Ugp6JVLvVIWUVLlhp/xonVKZmWm8i+mG5+mUWeEuqrQyJu+UIUufWN7CWliWi/A4xjIjhbXcKvh1E0rHSP5Da+0r607gi/tD1xXozPB1VP7HVCtQhYakkvCHeQSa3CXZX/zlOjm6+9YC6kVqCXZ5XAgCQig/J8HFv1qEXO3407VnFnx5hHNZr1jofZSR/nDDzKJ2Jjd+YZrseALkXOmmovPn6d1ovuAEyJKx16/lJj9YE0PC0OuI8JUU9shDePr0uJ3dTRzgsJT7hSxTKbUqaEm6rCyM5nBKHeFDIfaF64DJrMJG0pIgPhupqdy30Hc6MlitTMcEurDcIE+RvsIWLiymZk0XLQqIkHG30QPWa4/KYRTG/XozP1YsmuVaxTeq1ulquSjda/IQy22U1n3SWfE5vYZzC2nx6QARdB08vY6orqjBoHoh3FV+skviLrNLhd9VelzMa4+HUz7Ycve40smL1e0dFTgF65mtgmYKn/sHNFAPUCpEL1QHUGaFQ0KCKArvYb8xhyqyaNMrlxODuw/NozwcgluXp1OK0/vLXtjPGJSZu0oYOqAVzmG1HLigRxhLyh0pt30k3TYW1XI3DAP4bHdi94bGbYdloLRvkterTJQmfV/2kqd0TeHWZMWjxcdiYHZhcJwXKyUYE++xRufXyE/1oo+zZld45FqYfcrfw0pfJPV+vvWp6vquYXLh3CnkPlO1q4GN7Gy/EVAUOqTmhaMCUhiBKYlCEI9xBU6d4b4HVqvT2jmxcNqb3DaWhtKeUNw+rYdg7yraKTxJo8IovbKv4M8pHu9cS5OYmVeLUHgL3xtKZ72SEJ4yU4UlPNsXf67G+BjAh3Tp2i1dHqXJ0yjzKP2HVEZK5zapfPSycFBXl8M+uASMyap+L6+Xgcx93VizK7ykwmGnzlBmSPn3UuW+qd4Rf9PDN/WwYJ8TZyB7fgSHOtxjdaHtNbtF5eOhAADMCwI7IKug+nA3xLwhDmFUCbmfALDZNkaLcN5HDJgd8dESUWtkaSVdaNA7oqwfov9Y46m/agcuUA7942Ujs8qI8T2I74V13D8b5ZnBhPT0I7P80PQYr1WInmT6eOdtH6WnczuRR89XheNwEP7Yz/yUOuTCiaLHXHbhLUmctT+F6aXKSu+EBDUMhRsrLPgTOSocknf18XHHDb+1h/ez3Y2VG4z7Ud8uH/n1maZioLzT7OTDquUmAL3QVMBOgB6uB9/DY+ZX5wtqFwpKN//ydBVSlXPpjp13pTrv71VFJN8zOVU58EPBpeCcKoLCgt/o8fKRGfJjLJa47E5gaQOKrhbfCYzPO79X63uF26InnV15RG4KAwkw+80JyjxgKD3GvPYIa5fSd0n3czMkxAJ5ygl3HqS+S/1yIqwgJ4TiyRE78fjb9HDa88fS7b1a5XCU73GlIAO1ewFFoSvAPl91hVUYSApo2+MF2Yfll4xxKG6d4sQJxqGknEOFPUpwd0j0Sr6FAZhghrD4oYAI+eGgNUel6R9h/nd178YTa3kTxCfSE87zr72+v0NSDzqI8jGQM/GR+M4PPPjhvesEIpNAHP4JptJvsBz9jTAfhdtGfvizp/cTayyWs/v4tt7l8ZUm/3YfjvBy83Ay8w4ewjD++76tNU6PuelBF+x5Ja6U4xX1vap4LNzlqCfW9+lRIQH4ro8KRlLx+HWje8YSDFbSs75KLdClokpxlbaLJJW3ldavyI/KqgrL6R/3mlrRHziBSMX92pq5ZycOwwvMvLPr5B41zMC6w5kE7FsLthcUyyV/Ha64gwV/6Npn1Mw7P/LopohG5CNSQV973ZUOS+LPg1R8xXGJ37NqspHdFqwCYCyW+2c4wZnJFoWHkL11WJ84IRQWybvJg/6w+8MyFyY7GP9lGES3x6Fbs45cJH3YKy+qHESqyqauEoOj3CAHWelhTE/KIrcrkbyb/YcsDKYC39MOebzQBSPcS6py0jKh1YZd5OdmKjL7jDlxhJljrk5EqSmr+eh5FX73/gs3xtPnTxXZ3Gf9wV66/ebVs4GEdE6fxtc2EZeIZqTn8pPkPTIjefihZ5E5BATxqX6JrClvFshzWx4/Zkwcivz0rnrVRkFY6qYeutg0MLjHh1Yfl33N432Gyaxj0plLK0tp1AKTRIHoJrAnFDD1API+BaN4a1JKQ9eY9VZsGWPG+ESF3rVwrAIcfKX3tJoZ3Gm9oawiP+ReB0rofbvidqjhyIenTfkqOePSkR9uIheGc9inzqQSLeZ+iVFPfGs6KnfpvUv83C4zvSdODf+q+mFXurxsZzflr9ZkPqpmoTlzkeVkrKagoaCGB+9XuhlS0gQJ9YfwjBcz4w/xMaPNUW1p6QnkkTSFGSkbi6Q56eIvpQUlKRAKhlYhBaJHhYNdhYUcPYonpSEM7+XAVU4gmS9gGqVZbqTdzZ4X91OYY5F9Po45L2fBXPknrue9yE7E561kdXNnfajZdH7An2FLivzHWzrncqSj7uZhR2b1kFjCxJFoD6yuLukUKS/pLDcRo+vxa9T4+KNrNQA7UBj//f2qh7yfliUtWbZUQrQccEzX/r2rpck7ThCsyqHc5zTJ7VJLL5weiGqJsEbtM02RpBQolH6BIDOUAjdXNLkrjsuREuFGHMZnfr025r8W6SKdkkqzp1duLt3/GM3K8zGm/UrSrHx7WZZZhIFUy0ZECLlg5igyCIgZT39G+ub+vXkUXm7oqHRbZsbx2AAACXFfh9Lq5HeCAHuMKo/kgeEQxupoxWq8kHu9ITY2LugPN8b1GBqhO0084vffdLuwW0i3T0fshYCBSSEwyM62LQq8f2gN+sJRKQfhUJrRI2XqpRSKd7Ig9YeKCNm5sBSeCpmkyuwyhXj8CHh5llnlL9JTZWfIgKsc6eq+uHYkjXQOtzV99PC9Trpd+qkfenpHnKLDFQG3KxJaIz8nop0IaAsGGlPc6Xv+ruPXjnPIQQHGuAUFBwk+qN1wcgTrzFAKKYMrz1nMrmD+Xsx0LWgNslOFLXtMAniBY3b7omTnAFE+cU4IlA5SzpCeyptW0lvX8VSMfbEVUz++0qmroY96l7+bLijdUyY4mH0XGUsflcZFH52AZL4S+PSOXeSVfOfSx0XhBEIdi/64Knx+/egG+4OS7PpIsdakCFbjK7QIGeu4b10CreUec/rWFEFpjzxOBKpcRX60euhi3rnuJ2EVATqIDklfJHE7y+P6SHzZMTPhANlyoroOEEUPRcwiPhHhKgGOSmNNh8/iPnp/3M6IQI0xLAsop5YgU+vMNHE1JLNVdAn82UUJpVguFQ/JO2UnjMx/MrVIWRx8z1osrF/fRdnOmM1EO0AEjAApX8a9OKWF9W38MOrHUbqB5JG+IPd9XB8Vn+8wy8q6SyYHSQtkLJ0T4bnET4SocIvcBWp7/xJvm9su702YMyDAr5xHq1Xl3BfB9D3jg1rDxPidJkikQL0Soqi9omF3Re4J0MPjx8yYiPDGpK1XDk9vzMeLQI2vsV6OHQ0sM0G/ICXXl5FZOiP9w77v80fTwmWuAr13TUyMyAii44fYW4Kr5IeeHm9pXPKUe+HVoC+r2jlbjmOE6JKICCEp/kZKNyLAkQIrnKQUGokbky9saeKXmYHw+SxCisjJcJ8iU7x94pxH2ENN17XMew25fFjtpGDhPI/KXvrV6wZ2/bm+yFyvWd4ld0k86OrS4oP42FPND73vmupXJXjLz80jslx1A0uvX9cS27z7KiNQ3RMNSj+3FlFLSVEufzYprZS3l1JQl7yTcIxHMmPMPSd0jW+m7Ik4eil/yd7/kBTxkNMm/EZS6R75bXOrlQf8sLFnVo/K3nVDbi7l724y4zcy48ZECt9ji9ojpitB32SUTuVrIHcmv9F7R26Db8wEOgobt3NAgAJZ+0x1AdhwzUkbHLvDqbO00qRwklLQs0i9Q5UCKTcuePnhIkJ2lbA2irEaV0yZF0VaU7JNeV3D4Gq4d+lRel2ulsHV+P7VeEeXhxPp7f2Ec61rY/cGB2ZwJJjKVpJydp1RuSM9jLvLrHj6UXY7wzb8iLIjiUm+5X6UXbFYy9Ou8RPuAiFgysBMGRcu86uKkjFuo1k7KSZSyoiUXf7uJ3/5ld6fUH7CsEyBgXK65RwmAHlooSjm1W6I+12PIrHvO+G5eSFupc/inMiX/K+HHKVpLR21BZCDODixmmVPo0dlLv1wXfDwHk5m1yHFhwhxRy9/ua4o4EfzFL5r6e7dFVey93e7wrjEH7uHi/kIEVAhFvGwWv3fT2Z2lKDcu2xEl8JKgSXX3OVPRcDMg2JzTNRPTL/ubC1ibyTKDZn4YPWZFf5qF41XhkqniM8H2E+l1+Ip/BzG3E/Fudpp79+3y7crDIc7sJ6OLV/ohspyH1lFPhS8R3rTT87RyuQwDsawWVeo3sI1x2sXfHpMYz8SBKry3kTJtW113D/K6buspUIp91FyhR3F6zVfSs+vPJWKGeNnTi3Dx9YJHCg4ZKFW4fKr64qp9J+ntO+LqJ38cDtVOctN5OdyCat4kueZp/5bhf3dph7BJ9UPFJv5nZxU1rvIvuyxj+KhC7gzSQfZPnU6Q/EdWndaivBB9umOPQjsjEApEgSzECGRaxEzeyY5tYKTL2ip9Uo7IrmRUuPWPwqnX323s4uFcwg/gAHuagnOJGGKf4JAds7wVQxoaenThn0hQQt3Is3mfiK+koi/zOcpq5XF2YYMTbBnVzO7KiuNz6l7qrLrZV/mvd3DS5d4JzO7jE2ztZM1hcJtiNN5YpNvXWAEqkJqQmKufEWEENHTbYwQRXbl3cXsyu/hcVfFwl0VAXfOXmN73bvZrhI2lNMFOtE9vp7FYkRGRfWW4IkK24Wb/UbptnDnSoC1YZ8xvgfXZVngz0OrT2WEFAGqrLw8Me/zKDySFiYnDbGkhkX8wnMNx1UMR7jGLQgMEagKN//KKkC5QTbaZ8ysMafjfsfUMmAWlxbhWgXoK4SU3CuGwqhi4Yeb7Jg1EfOndewQy3e0ta4nwnMlC+EkaaQFAULQ/JCQVv5IK6eG8MepIPhfUXrte6sk4GGUzpGscKSTU1q4p8TPl+zLSeUzav15+e5jprvLnl1O09Y+cvRxGfrwvPTmUZ7iFgTOhEApF8rnv7pSRhSSo7foGnOsENvrVEF2laoYHl6VShI/HuyYmZVm7ReXNtE15vY6BsP7dHqaV4nhTMCsRAIn96qWy/0nbB4/dd++pA6sfU7dKcxOHO6b4Gw41rDhz3gn+6ZXD5gdfEP5JP8LBl06FOaU9HCYq4VNerh4iHPs+sfLCrOXk/z6OLvaWRfKWr471g+F8iR5Kv2um31eYg8CeyHQVy4iS8HMLGWkdQMJ0orhJF/GaDiM9aUb9gSLxFRRkHrcTeF6qTDEodVBBf2l2lXCZUScgEMlIV0LGSgPknuBsiGw3kfLTsHqR+F9avM95EbXkbPnmN2GuGnh0GKGyPnDjDt54UpSlgJ9z5QH1tWxvu7WfMfeP5vt2yIFlctsV3ikhSWMWqVqkRIed/BjrI3jqcC2f4S9l5nCuF9vVpg1Sf7ZLsePBEfh0zJWOpFK34KB8mb5OuWnMJFB4Koi4EpniioiZE3WI6c9mD9iXScqhIisrxy72D3uqBLhzxrCn5rSxskzdI05fcSJQeZZXikg9m5/L+NUEB9rKNnqB4lsyl+fF8L6wyGzkOHnTiT/7tUqgrz8myJDiEJ/Sx67sCIV/XAhIUFu+/usugtDtwt6Otzcp1F+fT4pk23lRhxuHAQv7vnlRj2lEUk+JENwV6q0iX91EbDKhZLqTwccvPHU0uEqQSowdzvQwtE4UV85+sqzya4K10viMEbI82N1+ghr1fqTfucKdVYkLM8iIZ0CzC4abn+jW05ayKuWiDgRbMobfv64nUW/vP8+tfPCSU4koTIQKYpA5K+WH2OOjEOy2JwJBvaC9y0+pbNPj6dp5KeyVZ5V5h6PXUbM7H5zdbdZc0paSRd/pPNEXs5aXokXBK45AgNSmCscH66u8WOKCLkbgQqhyqVK4fZdzF7xZFY8VTwkt2xxGsltKy1ULBHXmVsU9Q5aTrwLIuFkHbYPqvKfhfyUD5fKE5J3817GDSGtucvt+XFz5deJUKSiiReORXuBTSz5t0gDdkmZy2koPL7KQOSnySsicioMt6k9oFqfImnSpzQu+nPNlTcfCAJXCwGvgJh5b7nRPWaMEKJghwendlBJ9Hjl2cWseJJrcfCnwj2viJDTQeZL8UbjfQAAEOZJREFUppW+s+a98sWaxK+ziQLSIaLS9kEqvwhhLZ24rz19HN7FOOGTpzWZXDkgQl9Iw9zkB7FQBvwxYcXSEmZ2edeVpM3TPEonbvrBowdAS5MrH7kWlHFjkR9pF/md+YfprGWZeEHgqiKAYuuFVhlRcFpLLKh9Qh3KSqVQ5e8r0Ca7Kp6HGVVmhUOyVOe7pwkaWqOcTExLaEmn0ruLrDxxxy9LgDRLqrSo1YOUWX7bJOkkjORaeEiV/HCFI7OlEJsIZCZCz1stJfnwWrvJCd28V2nbRoCVnJ1Fn2Ymf7iqlfs3OJSUdIqYSav+Zrdd8E+YIHCwCHjFUyJN4RkvQ9EZ8+EcQPYZ/3zdKEeLaVtlVOVSbcQu4pNUmF4Sh+11HJQJcXFXCfuM5+UzpNXSuUqMVWHvV2fdMXvJo2/JrLR4fuSnsEiFc7ferHcQ38Njh3zZGkbrGlwZPxMBQjSsoWOtJkuF1EWH+Pzb/s7+23xj7dkWlkkpWnxMrty3x9ewDgGqokQeNwIotRR9lJNO6UWErOGjErPdjRnIvmJts6sCu1QcKi9mScJgh7g46YbdLNwFyzITyGNuhUiu5IEZU7qQemcZF6Fv61uyu5Sf0ux+bpa/S/xll5kTtt+wupWMTd5qmtGFpPmBYYkQLUYef/eu5oq6Ma7CIFniwww4pDsTX+nETMzSjyJqkfXiN8I8bkHgKBDYRoDKhAimJC0VxrJYLMxyD2aM9exSSUUGLhWP98jcS32Di6q5mpFdD3SLl1bUIL20GJ89IGq9yyXf80ff93S6Wf6S7jcyEw53JPfpMkPMKd86ykzn8pEGvXMXuS28vulpUj5pkX5xDXNQpnTN9aOilp5ID/fFLKwjg8ClQsAqCERIy4U1fAzwv0i1yqQqcF9JvTJ6GEWV20gShmUZHPDAImC6jCcOgqBA6pj3J9akikhA799F9t/2NOt9u4RRPIXFTouWiRG2rXF0GRM//k7FkVRcSdIvM1Lh9A7Z+zDYeRhXpBVKq5PWNGO9Ir5TsvA84X6plD6ZDQIjBKg0uE9EdMta+MvdDhCTllF4BXSzKqgqrPyqfs5CbiOpcBCJum/cKfFKlR5aheySoNvs31C8XaR/dy29HsbN/k3cFd/DMLancVTSIz+lbRTP/RSed/Mu/9P3/bvEZU82ref3n7ZCsu6Tmd2lVScSHJV13IJAEBgg4JWmWhNsiGd7HftSIcJNZNhXUFVwpFfwTeEUhzWEHPjJZA0tG06h4dF7yrqXUFyXIhd329e8lgi9R/mVlLviyY4kjJMfZo9HHM5pfNbU0vz4OjRXk1tzq25QrHEKAkFgGwJFfhorokusy9Nfo04GodIxZkeXlYrJo8pLJdWDW/94OMLK7uHkJn/27nKHMmsX6ebxTYXxeGcx6z1nlf03/T3uJ3eRmPKGuz/YFcYJkB8cxWEWHTw4jfnOlKeV2Vxe2LeVc/yDQBAYIKDWn1UqyJCKxcwmkpYGhwM8o9bBqQJ7JZdZfpJy76X8ke6nSu9ubvZ4Mm/zV7g16fH3Met9Hqd3E7kpjPwl5U44J0DhwNAAWxvvqpNqrJwynjfQ5zgFgb0QMAJUK3AZT+JFVuHYNP9etZ6Pk2f0qBLL7lJ+vezDiCggAZldKr7Hwyz3XvbhZFc42Te9g7CeBjfrPb3Ue3t3tyuMf5t3e945rIBrS9nrzPrNG1lZnCA+ymevAk/gIBAETiJgJDgcTzISpDKy0JcFzd9WR05pYfKoYqviU8FlllR47E4uMsu9D+/x5OdxcOsfZmiZqWU5DQuy6V6zjIXtgWvjm3rnmtS3r5aEAFlGw2w8p9DcTuXipSU3SfeLOQgEgTMiQIXaFlVhauaRPblsceMMPd1XAfFACCINb9XIbUQY8htJhe9Jzb9DPL6lsEge7q/l8NPPrllTLvbhCChmm7n9jkkWupk8isu7ZJYcpcvDjfwVd5Pku6SbCY7vrQMXtNd4bomPykTlMPKLWxAIAmdEYJeKRZj6o4KyiJnxKc4DZHsde2VZFkKlF0EgeyIckYJIZOSHW//oG4qnb8idxd2sMXyrNTjqsh8OKuAoeCYblGZ9T+8eScLoD//++/KTVPplp+XM5BKHt34wB0aQTi1pWUtz3INAELjOCBgJLl3m6rKxRIM1hCIDupeY+VPFF5lgd7P816QIRFLh9A7cMeNOy4+j7llLOG+32wRZ7aJgCY7eidR7R9LDjcL2/m7X+zgW66FGfEw4LXhuSm/8gkAQuI4IUFH5vCqsWi01YM+xSw+vcTZaVSJBVXxJEYeTwyaziK+X/Xvw/8paz6iJnRPde0v34l63sNGKJX2eDqVX0v3cLP8+fh+GJS2cC8iJMlwlMB8MIUyvY7Hm00EgCPQIOFl4Je3cF6IpMmQc6961hIMLdyBCiGATOThRjMw98bndw3OKM1eI0pqax9FMevd9STN5rj20bC1TWpXeXYlN4ZSWPq+QK2v57tEtaVGaFjLuyyD2IBAErgMCHcktFXXFXWQzhyO5dVAA+3w/r05CZjaWRySxj6yop4TeAeFw1iETG3fbQICkk32z/NHtnNNd6YU4IVC9U7Ins97d/d3MLPNv1cX2nIBzq/rOguV1KNZ8MggEgV0RGJEdcc/g/qA6OIC9vZxg4kThhIK7/uSO3PQoHBMwH1vdSpHM0tIrssNOt1MLvRUOSeuMZTI+Zql3r0mlVZK4dPsZh+RdHKU/r+Mz3LTbJq2+XRUx4YLA9UZgRHq9m6fR/OZWVnUzOZ2ac+t0BJevwxOJQDaYnXR2IUDicAWAWnb6rkhQEn+FgfjkzuEC37JhbaCnx818l1ldus+czcftfNxUN7xn2HCZydcxizkIBIEDRoDKu0vyukoughHxsKvkbSeCeFoduECriWeNAMt7VYiMiP8Rdr4g33WCk30mHksj7qSNG+043goy87To/WuSsJAfJzJzuTnXlK7OPtt3d8JyF7wTJggEgQNEwCq7yEdkA+FAhJxF+IU1VqauZ08+q8xXHiIm4nHRt26PE9Hp27K7xI8/COu+dXsaY4m0TD0dm9Kg77MgnPt2ydv8jQMskiQpCASB80agCEFkI6kW4Z1aa1wgxG1vf2zrCEUsm8gHP4WDsDgr783In0hIEx1mdwJUGjhJmTRwTYCIT5L3b3rkz/a6T9B3zhvjfC8IBIEDR0DkYBIyhISYlaXr+DXTOB63mkE+IrZt5KNwSAj00cCwgfj4JiQo8qP19+o1W+utUH8v5tGjMPix3xgSdYJNN/fAdTLJCwLnjkBHEiIkuq5MHnAQK0QkEhwRD24iH5fE+c7pOk72KkNEevcJUip3+XGqMpMnEJhPyvh7d0kDi5zZawyx6t0hwHPXrnwwCBwRAkaGtAK5bpJu6C5jcE5Q6q4Sj/WGrAfkXTez90NKCzHhDkytNW7Jg/x4n0jX3y3zJhLkuxwe+1oi13p3CPCIdDFJDQLnjoARFK00WoE/XIcqqBUoUuoJSISFP4/C4c5aQ7rTD6ltZ3Rx6eoy1gfRchkU5+09biLA59fylVHrj3fqvfWZmSjdrO9xn4panUsr8NwBzQeDQBA4LgSsZQZJcWcxy0p6AoRo9GDmTwTlUn6E5bgr3sfYHLtSOAqLE2A4afmZdSIL4RSnl3pv7+52wrDj45GVD0h2bmkeVykktUEgCFwXBKwVSMuJI/g5nQViGZFgTz7bSErvoYXHbhH+MOPu75JZhKj3SpKWUXp4F+ci3qeIDxIPAV4XTcpHg8CRImAkyIVMLInhGRGOiAopclojsz6Mwvs7MPNIlvVEC1Pk16eH9+H26b7+j7wcaTEk2UEgCFwPBIwA2avL1ZwvHnRze+KSfY0A5S6iEpFhl5/eMSJA3DbFhSy5w+MBlv60/q6HAuWbQeDYESgSoRt8m+nE6adUU8xbXWvE5STm5hHJuX9vVutP0v09HXIn3BPrmgB1fZeZ5mMvj6Q/CASBc0LAWlAQILPBbE3joiCN2XnrTQS0jxSp9VLv6N1ll79L+XGy890r7RCf/81rD88JvnwmCASBY0egiETLVRgL/Oi6dAnyEQFK7tsaHBGYiGxNehw3E57DDx5Ry2q00FoEqOUwGQs8dqVM+oPAtUTAWn5OIpAgrUDW6339dMjBP9R4IDOua0tknKB2Mfek18fBHzc98od4Oc6Lo/dJ39LlHeQlBHgtlSfvDgLHjgCkQR7WyKO2l2lxNCTkY3H7jvGJxERsbt/FzPcg4B+o47Porp/q6o7cjr2ckv4gEASuEQK0oja9ui4LZ60dB47yQFYiQhFXeS1C7kh1lyXlp3fJznijHidXvsWDG9dovtOm9MYvCASBIHBVELAWIgukn1stMMhIpCWiuoGibviPH6RFl1lE6f4en7BOfApHPNxFfuwx5qL191PGlDbZI4NAEAgCVxUBjbHx0jpAlbs2/k4sZURoTnNLjZOd+XMS8zAiUAiOQ1D500McyJM/Hlqez5v+3q7ScdOrmsm8LAgEgSAwQkDjaSWZcOCoK47T/0NrnRVPnRBqBdJCXHvwUwtPYdQiREKAXHDE6TJ3rt0eNxmlM25BIAgEgWuCQLfNjNNcblsXjD+ntfZyGxOkpUarD/La9ODPHwToBCk3JC1CLjjiovfba7kLGVTX11un1yTjeWkQCAKXFwG1uLpWoHZcsGWOO0WeVEdo/UnXHRbJuVwjRcLQEkS+rI7I4r28/+aUgE/U6OKly1syyXkQCALngkCRH2sCtU4QyZFTsr9Ka+1taksaLcIXVbeVlqDG8fpurogQf8YTIU+Oznp2XWzEIaknZqbdrm+fCwD5SBAIApcPgSIZ1tnxx9jfvOYOJKxliNuNyw1CvEWtG6T1xnKVl0y7Nf607hmhZcdBqX/TWvvz1trv1fH731+tyPtzU902pEnXtjDxDwJBIAhcEQJFgCI+5NwiM2Kc3Yoc18x0kzmmnuPx32g6BPVu9YcZNw5duPk+pLZP2CsCIJGDQBAIArsiUMSobvGaFFGeasWtxd/1+wkXBIJAEDgYBJzQ1hLlYUbmtXhxDwJBIAgcNAJOaGsJ9TAyr4WNexAIAkHgaBAQoSFHiV7zd3eZR/HjFgSCQBC4MAjYZMqQMC9MRpORIBAELj4Car0ZsTEBoskRTYbM8uKjkRwGgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEjhiB/w+HafN2er0wSQAAAABJRU5ErkJggg=="}))))}const GC=i.forwardRef(qC),YC=(n.p,()=>(0,a.jsxs)("div",{className:"flex flex-col rounded-t-[4px] rounded-b-[4px] bg-[#FFFFFF] bg-opacity-5 min-w-[218px]",children:[(0,a.jsxs)("a",{href:"https://docs.flowty.io/reference/",target:"_blank",rel:"noreferrer",id:"faq",className:"cursor-pointer flex justify-between items-center uppercase font-montserrat text-[12px] py-[12px] px-[16px] font-bold text-white group",onClick:()=>he("Clicked on FAQ page link for guides"),children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-start gap-x-[8px]",children:[(0,a.jsx)(Zg,{className:"w-[22px] h-[22px] group-hover:hidden"}),(0,a.jsx)(GC,{className:"w-[22px] h-[22px] opacity-70 hidden group-hover:block"}),(0,a.jsx)("span",{className:"group-hover:text-[#ADB5BD] text-white font-black tracking-wider",children:"Product Docs"})]}),(0,a.jsx)(_C,{className:"w-[16px] h-[16px] group-hover:hidden"}),(0,a.jsx)(PC,{className:"w-[16px] h-[16px] hidden group-hover:block"})]}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"2",viewBox:"0 0 200 2",fill:"none",className:"w-3/4 mx-auto",children:(0,a.jsx)("path",{d:"M0 1H200",stroke:"#333333",strokeWidth:"1px"})}),(0,a.jsxs)("a",{href:"https://docs.flowty.io/reference/general-platform/troubleshooting",target:"_blank",rel:"noreferrer",id:"troubleshooting",className:"cursor-pointer flex justify-between items-center uppercase font-montserrat text-[12px] py-[12px] px-[16px] font-bold group",onClick:()=>{he("Clicked on Troubleshooting page link")},children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-start gap-x-[8px] group-hover:text-white text-[#ADB5BD]",children:[(0,a.jsx)(MC,{className:"w-[22px] h-[22px] group-hover:hidden"}),(0,a.jsx)(VC,{className:"w-[22px] h-[22px] opacity-70 hidden group-hover:block"}),(0,a.jsx)("span",{className:"group-hover:text-[#ADB5BD] text-white font-black tracking-wider",children:"Troubleshoot"})]}),(0,a.jsx)(_C,{className:"w-[16px] h-[16px] group-hover:hidden"}),(0,a.jsx)(PC,{className:"w-[16px] h-[16px] hidden group-hover:block"})]})]})),KC=e=>{let{className:t}=e;const[n,r]=(0,i.useState)(!1),s=e=>{r(e)},l=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&r(!1)};return n&&(document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[n]),(0,a.jsx)(Yt.A,{className:"relative ".concat(t),ref:l,children:(0,a.jsxs)(xC,{as:"div",className:"relative cursor-pointer text-left",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,a.jsxs)(xC.Button,{className:"flex items-center justify-center transform cursor-pointer rounded-md p-0 duration-300 ease-in-out gap-x-[8px]",children:["HELP ",(0,a.jsx)(IC,{className:""})]}),(0,a.jsx)(dp.e,{show:n,as:i.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.jsx)(xC.Items,{className:(0,o.cn)("absolute z-10 mt-[8px] inline-flex p-[4px] flex-col justify-center items-start border border-[#6C757D] border-opacity-25 bg-[#04070b] bg-opacity-80 rounded-[4px] backdrop-blur-sm"),children:(0,a.jsx)(YC,{})})})]})})},QC=e=>{let{selectedItem:t}=e;return(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center flex-shrink-0"),children:[(0,a.jsx)("a",{href:"/",className:"flex items-center",children:(0,a.jsx)(Qx,{className:"h-full w-28 mr-[16px] ml-[-6px]"})}),(0,a.jsx)("ul",{className:(0,o.cn)("flex list-none"),children:Object.entries(Xx.C).map((e=>{let[n,r]=e;return(0,a.jsx)("li",{className:"py-[12px] ".concat(t===n?"pl-[12px] pr-[24px]":"px-[24px]"),children:(0,a.jsxs)(Gx.N_,{to:r,className:"flex items-center hover-nav-item transform text-size-[.875rem] rounded-md tracking-wider whitespace-nowrap font-black uppercase text-white duration-300 ease-in-out gap-[8px]","aria-current":t===n?"page":void 0,children:[t===n&&(0,a.jsx)("div",{className:"rounded bg-[#04E5A3] h-[14px] w-1"}),n]})},n)}))}),(0,a.jsx)(KC,{className:"py-[12px] px-[24px]"})]})},XC=n.p+"static/media/WalletGrouped.ca76b06097a0b32ff829.png",ZC=e=>{let{isLoading:t,logUser:n}=e;return(0,a.jsx)("button",{onClick:n,disabled:t,className:"inline-flex py-[8px] px-[18px] items-center gap-2 rounded-lg border-2 border-[var(--Neutral-300,#495057)] shadow-[0_4px_18px_rgba(0,0,0,0.25)] sm:min-w-[220px] mx-auto ".concat(!t&&"hover:border-[var(--Neutral-300,#6C757D)] hover:bg-opacity-5 hover:bg-white"),children:t?(0,a.jsx)("div",{className:"flex justify-center items-center h-full mx-auto py-1 min-w-[40px]",children:(0,a.jsx)("div",{className:"spinner w-[14px] h-[14px] sm:w-[24px] sm:h-[24px] border-4 border-gray-200 rounded-full border-t-transparent animate-spin"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"text-[var(--Neutral-700,#DEE2E6)] text-center font-montserrat text-sm font-black leading-[16px]",children:["SIGN IN ",(0,a.jsx)("span",{className:"hidden sm:inline-block",children:"WITH"})]}),(0,a.jsx)("div",{className:"hidden sm:flex flex-row items-center h-[32px]",children:(0,a.jsx)("img",{src:XC,alt:"Dapper Wallet Icon",className:"max-w-[80px] rounded-full"})}),(0,a.jsx)("span",{className:"hidden sm:block text-[var(--Neutral-700,#DEE2E6)] text-center font-montserrat text-sm font-semibold leading-[16px]",children:"+2"})]})})};const JC=n.p+"static/media/defaultProfileImage.e70fd45310525e8aed61d90f67910926.svg";const $C=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));const eA=n.p+"static/media/missing-collection-image-icon.e324899d7a657fe78203a28ae205a218.svg",tA=e=>{let{childAccounts:t}=e;const n=(0,Gt.zy)();return(0,a.jsx)("div",{children:t&&t.length>=1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center mt-[16px] md:mt-[24px] md:justify-between gap-3 md:gap-5 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsxs)("span",{className:"mr-2 text-[1.125rem] text-white font-montserrat text-nowrap font-normal",children:["Linked Accounts (",t.length,")"]}),(0,a.jsx)("div",{className:"bg-[#ffffffba] rounded-md px-1.5 py-0.35",children:(0,a.jsx)("p",{className:"leading-[14px] text-[#031021] font-montserrat-bold font-black text-[0.625rem]",children:"CHILD"})})]}),(0,a.jsxs)("a",{className:"flex flex-row hover-filter-text",href:"/user/profile",children:[(0,a.jsx)("span",{className:"text-primary font-montserrat font-[1rem] mr-2 whitespace-nowrap",children:"View All"}),(0,a.jsx)($C,{className:"w-[1.125rem] h-[1.125rem] text-primary"})]})]}),(0,a.jsx)("div",{className:"flex flex-row my-2 md:my-3 gap-3 mx-auto overflow-x-auto styled-scroll-wallet cursor-pointer",children:t.map((e=>{var t,r;let i=null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.name;if(null!==e&&void 0!==e&&e.display){var o,s;i=(null===(o=e.display)||void 0===o?void 0:o.name.length)>8?(null===(s=e.display)||void 0===s?void 0:s.name.substring(0,8))+"...":i}return(0,a.jsxs)(Gx.N_,{reloadDocument:n.pathname.includes("/profile"),className:"flex-shrink-0 bg-[#ffffff1f] border border-secondary rounded-lg my-auto flex flex-col items-center justify-center border-[#ffffff36] mb-1 visited:bg-[#ffffff33] hover:bg-[#ffffff33] hover:border p-[1rem] overflow-hidden text-center whitespace-nowrap cursor-pointer group gap",to:'/user/profile?walletAddresses=%5B"'.concat(e.address,'"%5D'),children:[(0,a.jsx)("img",{className:"w-[2.4rem] h-[2.4rem] rounded-[0.25rem]",src:null===(r=e.display)||void 0===r?void 0:r.thumbnail,alt:"thumbnail",onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src=eA}}),(0,a.jsx)("p",{className:"font-montserrat text-white text-[0.625rem] font-normal group-hover:text-white leading-3",children:i})]},e.address)}))})]})})},nA=e=>{let{address:t}=e;const[n,r]=(0,i.useState)(!1),o=()=>r(!1);return(0,a.jsxs)("button",{"data-tooltip-id":"copy-wallet-tooltip","data-tooltip-content":"Copy Wallet Address","data-tooltip-place":"right",className:"btn-copy flex items-center group text-white",onClick:()=>{r(!0),setTimeout(o,5e3),navigator.clipboard.writeText(null!==t&&void 0!==t?t:"")},children:[(0,a.jsx)("span",{className:"text-[#DEDEDE] font-normal text-[0.875rem] md:text-[14px] mr-[0.25rem]",children:t}),(0,a.jsx)("div",{className:"px-1",children:n?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-[14px] h-[14px] text-primary",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"})}):(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:(0,a.jsx)("path",{d:"M9.1875 10.5625V12.5312C9.1875 12.8937 8.89369 13.1875 8.53125 13.1875H2.84375C2.48131 13.1875 2.1875 12.8937 2.1875 12.5312V5.09375C2.1875 4.73131 2.48131 4.4375 2.84375 4.4375H3.9375C4.23562 4.4375 4.52794 4.46235 4.8125 4.51009M9.1875 10.5625H11.1562C11.5187 10.5625 11.8125 10.2687 11.8125 9.90625V7.0625C11.8125 4.46113 9.9205 2.30166 7.4375 1.88509C7.15294 1.83735 6.86062 1.8125 6.5625 1.8125H5.46875C5.10631 1.8125 4.8125 2.10631 4.8125 2.46875V4.51009M9.1875 10.5625H5.46875C5.10631 10.5625 4.8125 10.2687 4.8125 9.90625V4.51009M11.8125 8.375V7.28125C11.8125 6.19394 10.9311 5.3125 9.84375 5.3125H8.96875C8.60631 5.3125 8.3125 5.01869 8.3125 4.65625V3.78125C8.3125 2.69394 7.43106 1.8125 6.34375 1.8125H5.6875",stroke:"#DEDEDE",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},rA=e=>{let{userFlowBalance:t,userUsdcBalance:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-start gap-y-[19px]",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("span",{children:(0,a.jsx)(Er,{isLarge:!0,token:"FLOW"})}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:an()(t).format("0,0.00")}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:"FLOW"})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("span",{children:(0,a.jsx)(Er,{isLarge:!0,token:"USDC"})}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:an()(n).format("0,0.00")}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:"USDC"})]})]})},iA=e=>{let{disconnectWallet:t,user:n,isDapper:r,childAccounts:o}=e;return(0,a.jsxs)(xC,{as:"div",id:"user-nav-dropdown",className:"relative inline-block text-left z-50",children:[(0,a.jsx)(xC.Button,{"data-testid":"logged-user-button",className:"inline-flex py-[8px] px-[12px] md:px-[18px] items-center gap-2 rounded-[6px] border-2 border-[var(--Neutral-300,#495057)] shadow-[0_4px_18px_rgba(0,0,0,0.25)] mx-auto hover:border-[var(--Neutral-300,#6C757D)] hover:bg-opacity-5 hover:bg-white max-h-[48px]",children:(0,a.jsxs)("div",{className:"flex flex-row items-center ",children:[(0,a.jsx)("span",{className:"text-[var(--Neutral-700,#DEE2E6)] text-center font-montserrat text-sm font-black leading-[16px] mr-4",children:"MY ACCOUNT"}),(0,a.jsx)("div",{className:"new-avatar-container w-[24px] h-[24px] md:w-[32px] md:h-[32px]",children:(0,a.jsx)("img",{src:(null===n||void 0===n?void 0:n.userAvatar)||JC,className:"rounded-[4px]",alt:"User Flowty Avatar"})}),(0,a.jsx)("div",{className:"ml-[4px]",children:(0,a.jsx)("svg",{className:"w-[18px] h-[18px] md:w-[20px] md:h-[20px]",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",fill:"white"})})})]})}),(0,a.jsx)(dp.e,{as:i.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.jsxs)(xC.Items,{className:"absolute right-[16px] max-w-[300px] translate-x-[16px] md:max-w-none md:right-0 md:origin-top-right md:translate-x-0 focus:outline-none mt-2 p-6 px-7 flex-col justify-center items-start gap-[var(--25,10px)] rounded-[6px] border border-[var(--Neutral-400,#6C757D)] bg-[#04070b] backdrop-blur-[50px]",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("div",{className:"new-avatar-container w-[35px] h-[35px] md:w-[48px] md:h-[48px]",children:(0,a.jsx)("img",{src:(null===n||void 0===n?void 0:n.userAvatar)||JC,className:"rounded-[8px]",alt:"User Flowty Avatar"})}),(0,a.jsx)(Gx.N_,{className:"ml-3 font-bold text-white font-montserrat-bold",to:"/user/profile",children:(0,a.jsx)("span",{className:"text-white text-center font-montserrat text-[14px] md:text-[18px] font-black leading-normal truncate ".concat(!(null!==n&&void 0!==n&&n.userName)&&"lowercase"),children:(null===n||void 0===n?void 0:n.userName)||(null===n||void 0===n?void 0:n.userAddress)||""})})]}),(0,a.jsxs)("div",{className:"my-[24px] md:mb-[38px]",children:[(0,a.jsxs)("div",{className:"w-full md:w-96 px-[24px] py-[18px] md:mt-[16px] rounded-[10px] bg-[#ffffff1f] gap-[16px]",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("div",{className:"h-[36px] w-[36px] mr-2 flex items-center",children:(0,a.jsx)("img",{src:(0,T.getProviderImage)(String(null===n||void 0===n?void 0:n.authServiceUid)),className:"rounded-md",alt:"Provide Logo"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-base font-black text-white font-montserrat-bold",children:(0,T.getProviderName)(String(null===n||void 0===n?void 0:n.authServiceUid))}),(0,a.jsx)(nA,{address:null===n||void 0===n?void 0:n.userAddress})]})]}),!r&&(0,a.jsx)("div",{className:"mt-[19px]",children:(0,a.jsx)(rA,{userFlowBalance:null===n||void 0===n?void 0:n.userFlowBalance,userUsdcBalance:null===n||void 0===n?void 0:n.userUsdcBalance})})]}),(0,a.jsx)(tA,{childAccounts:o})]}),(0,a.jsx)("div",{className:"border-gradient"}),(0,a.jsxs)("div",{className:"flex flex-col pt-4",children:[(0,a.jsx)(Gx.N_,{to:"/user/profile",className:"text-sm font-bold text-white uppercase duration-300 ease-in-out transform font-montserrat-bold hover-nav-item",children:"Profile"}),(0,a.jsxs)("div",{className:"flex flex-row gap-[6px] mt-2",children:[(0,a.jsx)(Gx.N_,{to:"/user/creator-hub",className:"flex gap-[6px]  text-sm font-bold text-white uppercase duration-300 ease-in-out transform font-montserrat-bold hover-nav-item",children:"Creator Hub"}),(0,a.jsx)(z,{text:"NEW",type:"primary",size:"small"})]}),(0,a.jsx)(Gx.N_,{to:"/user-profile",className:"mt-2 text-sm font-bold text-white uppercase duration-300 ease-in-out transform font-montserrat-bold hover-nav-item",children:"User Activity"}),(0,a.jsx)(Gx.N_,{to:"/settings",className:"mt-2 text-sm font-bold text-white uppercase duration-300 ease-in-out transform font-montserrat-bold hover-nav-item",children:"Settings"}),(0,a.jsx)("button",{onClick:t,className:"mt-2 font-montserrat-bold text-[#ff2f2f] hover-nav-item-red uppercase font-bold transform duration-300 ease-in-out text-left text-sm",children:"Sign out"})]})]})})]})},oA=e=>{let{isLogged:t,isLoading:n,logUser:r,notifications:s,hasMore:l,queueNotification:c,loadingNotifications:u,fetchMoreNotifications:d,loggedUserAddress:p,disconnectWallet:h,user:f,isDapper:m,childAccounts:g}=e;const v=(0,i.useMemo)((()=>t?t&&!n?(0,a.jsx)(iA,{disconnectWallet:h,user:f,isDapper:m,childAccounts:g}):void 0:(0,a.jsx)(ZC,{isLoading:n,logUser:r})),[t,n]);return(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center justify-items-end flex-shrink-0 relative z-[999] gap-[12px] md:gap-[16px]"),children:[t&&!n&&(0,a.jsx)(xg,{fetchMoreNotifications:d,loading:u,hasMore:l,notifications:s,queueMessage:c,loggedUserAddress:p}),v]})},aA=e=>{let{bgColor:t,isLogged:n=!1,authLoading:r,logUser:o,selectedItem:s,notificationData:l,registerHeight:c,loggedUserAddress:u,disconnectWallet:d,childAccounts:p,isDapper:h,user:f}=e;const m="".concat(t," bg-darkBg flex flex-col w-full items-center fixed top-0 left-1/2 -translate-x-1/2 z-40 font-black text-white py-[18px]"),g=(0,i.useRef)(null),v=()=>{g.current&&c&&c(g.current.offsetHeight)};return(0,i.useEffect)((()=>{v();const e=()=>{v()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[g,c]),(0,a.jsx)("div",{className:m,ref:g,"data-testid":"navbar-component",children:(0,a.jsxs)("nav",{className:"px-12 flex justify-between items-center w-full gap-[16px] relative h-[40px]",children:[(0,a.jsx)(QC,{selectedItem:s}),(0,a.jsx)(oA,{loadingNotifications:l.loadingNotifications,hasMore:l.hasMore,fetchMoreNotifications:l.fetchMoreNotifications,notifications:l.notifications,queueNotification:l.queueNotification,isLoading:r,isLogged:n,logUser:o,loggedUserAddress:u||"",disconnectWallet:d,childAccounts:p,isDapper:h,user:f})]})})},sA=e=>{let{bgColor:t,isLogged:n=!1,authLoading:r,logUser:o,registerHeight:s,notificationData:l,selectedItem:c,loggedUserAddress:u,disconnectWallet:d,childAccounts:p,isDapper:h,user:f}=e;const m="".concat(t," py-[18px] flex flex-col w-full items-center fixed top-0 left-1/2 -translate-x-1/2 z-50 font-black text-white"),g=(0,i.useRef)(null),v=()=>{g.current&&s&&s(g.current.offsetHeight)};return(0,i.useEffect)((()=>{v();const e=()=>{v()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[g,s]),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:m,ref:g,"data-testid":"navbar-component",children:(0,a.jsxs)("nav",{className:"flex w-full justify-between relative px-12 h-[40px]",children:[(0,a.jsx)(QC,{selectedItem:c}),(0,a.jsx)(oA,{fetchMoreNotifications:l.fetchMoreNotifications,loadingNotifications:l.loadingNotifications,hasMore:l.hasMore,notifications:l.notifications,queueNotification:l.queueNotification,isLogged:n,logUser:o,isLoading:r,loggedUserAddress:u||"",disconnectWallet:d,childAccounts:p,isDapper:h,user:f})]})})})};var lA;function cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(null,arguments)}function uA(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",cA({width:26,height:32,viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,lA||(lA=i.createElement("g",{id:"Property 1=fullWhiteIcon"},i.createElement("path",{id:"Vector",d:"M7.44221 7.60666C8.43894 4.18646 10.6898 2.23392 14.1938 1.74902H23.5006L22.0459 7.79423H15.6056C15.1905 7.79423 14.8024 7.9399 14.4422 8.23024C14.096 8.52157 13.8745 8.88774 13.7778 9.33173L12.6563 13.4244H17.2468L15.8341 19.4696H11.1807L8.62551 29.794H1.89487L7.44221 7.60666Z",fill:"white"}),i.createElement("path",{id:"Vector_2",d:"M17.6409 27.5551C17.6409 29.1256 16.3678 30.3997 14.7964 30.3997C13.225 30.3997 11.9519 29.1266 11.9519 27.5551C11.9519 25.9837 13.225 24.7106 14.7964 24.7106C16.3678 24.7106 17.6409 25.9837 17.6409 27.5551Z",fill:"#5BC096"}))))}const dA=i.forwardRef(uA);n.p;const pA=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))})),hA=e=>{let{setSidebarNavigation:t,isMobile:n}=e;return(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center gap-[12px] flex-shrink-0"),children:[(0,a.jsx)("button",{onClick:()=>t(300),role:"menu",children:(0,a.jsx)(pA,{className:"w-[32px] h-[32px]"})}),(0,a.jsx)("a",{href:"/",className:"flex items-center",children:n?(0,a.jsx)(dA,{}):(0,a.jsx)(Qx,{className:"mr-[16px] h-full w-28"})})]})};var fA;function mA(){return mA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mA.apply(null,arguments)}function gA(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",mA({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,fA||(fA=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L10 8.58579L14.2929 4.29289C14.6834 3.90237 15.3166 3.90237 15.7071 4.29289C16.0976 4.68342 16.0976 5.31658 15.7071 5.70711L11.4142 10L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L10 11.4142L5.70711 15.7071C5.31658 16.0976 4.68342 16.0976 4.29289 15.7071C3.90237 15.3166 3.90237 14.6834 4.29289 14.2929L8.58579 10L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289Z",fill:"white"})))}const vA=i.forwardRef(gA),yA=(n.p,e=>{let{width:t,navItems:n,selectedItem:r,isLogged:o,onClose:s}=e;return(0,a.jsx)(dp.e,{appear:!0,show:!0,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",onClose:s,children:[(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"bg-[#04070B]",style:{height:"100vh",left:0,position:"fixed",top:0,width:t,zIndex:999},children:[(0,a.jsx)("button",{onClick:s,className:"py-[18px] pl-[14px]",children:(0,a.jsx)(vA,{className:"h-[32px] w-[32px]"})}),(0,a.jsxs)("div",{className:"absolute mt-[.31rem] pl-[14px] pt-3 flex flex-col gap-4",children:[Object.entries(n).map((e=>{let[t,n]=e;return(0,a.jsx)("div",{children:(0,a.jsxs)("a",{href:"Profile"===t?o?n:"/signIn":n,className:"font-montserrat flex items-center hover-nav-item text-sm leading-[.875rem] rounded-md py-3 ".concat(r===t?"pl-3":"pl-6","  font-black uppercase text-white duration-300 ease-in-out"),"aria-current":r===t?"page":void 0,children:[r===t&&(0,a.jsx)("div",{className:"rounded bg-[#04E5A3] w-[.875rem] h-[.25rem] rotate-90"}),"Profile"===t?"My Profile":t]})},t)})),(0,a.jsxs)("div",{className:"pl-6",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"2",viewBox:"0 0 200 2",fill:"none",className:"w-full mx-auto text-center",children:(0,a.jsx)("path",{d:"M0 1H200",stroke:"#343A40",strokeWidth:"1px"})}),(0,a.jsx)("p",{className:"text-[var(--Neutral-500,#ADB5BD)] font-montserrat text-sm font-black leading-[.875rem] uppercase mt-[24px] mb-[12px]",children:"HELP"}),(0,a.jsx)(YC,{})]})]})]})})})]})})}),bA=e=>{let{bgColor:t,isLogged:n=!1,notificationData:r,authLoading:o,logUser:s,registerHeight:l,selectedItem:c,loggedUserAddress:u,disconnectWallet:d,childAccounts:p,isDapper:h,user:f}=e;const[m,g]=(0,i.useState)(0),v=(0,i.useRef)(null),y=()=>{v.current&&l&&l(v.current.offsetHeight)};(0,i.useEffect)((()=>{y();const e=()=>{y()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[v,l]);const b="".concat(t," py-[18px] flex flex-col w-full items-center fixed top-0 left-1/2 -translate-x-1/2 z-50 font-black text-white");return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{ref:v,className:b,"data-testid":"navbar-component",children:[(0,a.jsxs)("nav",{className:"container flex w-full justify-between h-[40px]",children:[(0,a.jsx)(hA,{setSidebarNavigation:g,isMobile:!0}),(0,a.jsx)(oA,{fetchMoreNotifications:r.fetchMoreNotifications,loadingNotifications:r.loadingNotifications,hasMore:r.hasMore,notifications:r.notifications,queueNotification:r.queueNotification,isLoading:o,isLogged:n,logUser:s,loggedUserAddress:u||"",disconnectWallet:d,childAccounts:p,isDapper:h,user:f})]}),m?(0,a.jsx)(yA,{isLogged:n,width:m,onClose:()=>g(0),navItems:Xx.C,selectedItem:c}):null]})})},wA=e=>{let{bgColor:t,isLogged:n=!1,registerHeight:r,authLoading:o,notificationData:s,logUser:l,selectedItem:c,loggedUserAddress:u,disconnectWallet:d,childAccounts:p,isDapper:h,user:f}=e;const[m,g]=(0,i.useState)(0),v=(0,i.useRef)(null),y=()=>{v.current&&r&&r(v.current.offsetHeight)};(0,i.useEffect)((()=>{y();const e=()=>{y()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[v,r]),(0,i.useEffect)((()=>{}),[m]);const b="".concat(t," py-[18px] flex flex-col w-full items-center fixed top-0 left-1/2 -translate-x-1/2 z-50 font-black text-white");return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{ref:v,className:b,"data-testid":"navbar-component",children:[(0,a.jsxs)("nav",{className:"container flex w-full justify-between h-[40px]",children:[(0,a.jsx)(hA,{setSidebarNavigation:()=>g(300)}),(0,a.jsx)(oA,{fetchMoreNotifications:s.fetchMoreNotifications,loadingNotifications:s.loadingNotifications,notifications:s.notifications,hasMore:s.hasMore,queueNotification:s.queueNotification,isLoading:o,isLogged:n,logUser:l,loggedUserAddress:u||"",disconnectWallet:d,childAccounts:p,isDapper:h,user:f})]}),m?(0,a.jsx)(yA,{isLogged:n,width:m,onClose:()=>g(0),navItems:Xx.C,selectedItem:c}):null]})})},xA=e=>{let{isLandingPage:t,isCreatePage:n,isLogged:r,notificationData:o,authLoading:s,logUser:l,selectedItem:c,registerHeight:u,loggedUserAddress:d,disconnectWallet:p,childAccounts:h,isDapper:f,user:m}=e;const g=Hg(),[v,y]=i.useState(n?"bg-transparent":"bg-[#04070B]");i.useEffect((()=>{const e=()=>{const e=window.scrollY||window.pageYOffset;y(0===e?t?"bg-blur-light":"bg-[#04070B]":"bg-blur")};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]);const b=window.location.pathname.includes("/marketplace"),w={authLoading:s,bgColor:v,childAccounts:h,disconnectWallet:p,isDapper:f,isLandingPage:t,isLogged:r,isMarketplacePage:b,logUser:l,loggedUserAddress:d,notificationData:o,registerHeight:u,selectedItem:c,user:m};return(0,i.useCallback)((()=>{switch(g){case"xs":case"mobile":return(0,a.jsx)(bA,{...w});case"tablet":return(0,a.jsx)(wA,{...w});case"laptop":return(0,a.jsx)(sA,{...w});default:return(0,a.jsx)(aA,{...w})}}),[g,w])()};var CA=n(55503);let AA=function(e){return e[e.WelcomeCreatorHubTab=0]="WelcomeCreatorHubTab",e[e.CustomizeCollectionFirstTab=1]="CustomizeCollectionFirstTab",e[e.CustomizeCollectionSecondTab=2]="CustomizeCollectionSecondTab",e[e.CustomizeDropTab=3]="CustomizeDropTab",e[e.ConfirmationTab=4]="ConfirmationTab",e}({});const EA=(e,t)=>{var n;const r={...e,dropThumbnailImage:e.dropThumbnailImage&&t?{...e.dropThumbnailImage,fileBase64:void 0}:null,nftBannerImage:Boolean(null===(n=e.nftBannerImage)||void 0===n?void 0:n.fileCid)||e.nftBannerImage&&t?{...e.nftBannerImage,fileBase64:void 0}:null,nftImage:e.nftImage&&t?{...e.nftImage,fileBase64:void 0}:null,nftThumbnailImage:e.nftThumbnailImage&&t?{...e.nftThumbnailImage,fileBase64:void 0}:null};localStorage.setItem("creatorHubCache",JSON.stringify(r))},_A=async()=>{await localStorage.removeItem("creatorHubCache")},TA=e=>{var t,n,r,o;let{creatorHubId:s,changeSelectedFormTab:l,loggedIsDapper:c=!1,isLoggedUser:u=!1,flowty:d,logOutFn:p,mixPanelFn:h,onCloseModal:f,resetForm:m,uploadImageFn:g,values:v}=e;const y=(0,Gt.Zp)(),[b,w]=(0,i.useState)(null),[x,C]=(0,i.useState)(null),[A,E]=(0,i.useState)(null),[_,T]=(0,i.useState)(null),[S,k]=(0,i.useState)({isCreating:!1,isError:!1,isSuccess:!1}),[P,D]=(0,i.useState)(!1),F=async()=>{D(!0),p(),await(0,qt.connectWallet)()};(0,i.useEffect)((()=>{u&&P&&D(!1)}),[u,P]);const N=(0,CA.h)(v.collectionName),I=async()=>{if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK&&(w("mockTxId"),"ERROR_TYPE_MOCK"===s?(k((e=>({...e,isCreating:!0,isError:!1}))),setTimeout((()=>k((e=>({...e,isCreating:!1,isError:!0})))),3e3)):(k((e=>({...e,isCreating:!0}))),setTimeout((()=>k((e=>({...e,isCreating:!1,isSuccess:!0})))),3e3))),g){var e,t,n,r;let s=null===(e=v.nftImage)||void 0===e?void 0:e.fileCid,w=null===(t=v.nftThumbnailImage)||void 0===t?void 0:t.fileCid,I=null===(n=v.nftBannerImage)||void 0===n?void 0:n.fileCid,O=null===(r=v.dropThumbnailImage)||void 0===r?void 0:r.fileCid;k((e=>({...e,isCreating:!0,isError:!1})));try{var i,o,a,c,u,d;if(Boolean(null===(i=v.nftBannerImage)||void 0===i?void 0:i.fileCid)&&null!==(o=v.nftImage)&&void 0!==o&&o.file&&(null===(a=v.nftImage)||void 0===a?void 0:a.fileBase64)===(null===(c=v.nftThumbnailImage)||void 0===c?void 0:c.fileBase64)&&(null===(u=v.nftImage)||void 0===u?void 0:u.fileBase64)===(null===(d=v.dropThumbnailImage)||void 0===d?void 0:d.fileBase64)){var p;const e=await g(null===(p=v.nftImage)||void 0===p?void 0:p.file);s=null===e||void 0===e?void 0:e.cid,w=null===e||void 0===e?void 0:e.cid,O=null===e||void 0===e?void 0:e.cid}else{var m,y,b,x,C,A,E,_,T;if(null!==(m=v.nftImage)&&void 0!==m&&m.file&&"FLOWTY_DEFAULT_IMAGE"!==(null===(y=v.nftImage)||void 0===y?void 0:y.file.name)){var S;const e=await g(null===(S=v.nftImage)||void 0===S?void 0:S.file);s=null===e||void 0===e?void 0:e.cid}if(null!==(b=v.nftThumbnailImage)&&void 0!==b&&b.file&&"FLOWTY_DEFAULT_IMAGE"!==(null===(x=v.nftThumbnailImage)||void 0===x?void 0:x.file.name)){var P;const e=await g(null===(P=v.nftThumbnailImage)||void 0===P?void 0:P.file);w=null===e||void 0===e?void 0:e.cid}if(!Boolean(null===(C=v.nftBannerImage)||void 0===C?void 0:C.fileCid)&&null!==(A=v.nftBannerImage)&&void 0!==A&&A.file&&"FLOWTY_DEFAULT_IMAGE"!==(null===(E=v.nftBannerImage)||void 0===E?void 0:E.file.name)){var D;const e=await g(null===(D=v.nftBannerImage)||void 0===D?void 0:D.file);I=null===e||void 0===e?void 0:e.cid}if(null!==(_=v.dropThumbnailImage)&&void 0!==_&&_.file&&"FLOWTY_DEFAULT_IMAGE"!==(null===(T=v.dropThumbnailImage)||void 0===T?void 0:T.file.name)){var F;const e=await g(null===(F=v.dropThumbnailImage)||void 0===F?void 0:F.file);O=null===e||void 0===e?void 0:e.cid}}}catch(N){console.log("ERROR uploading creator hub images",N),h("error uploading images",{collectionBannerCid:I,collectionThumbnailCid:w,dropImageCid:O,error:N,nftImageCid:s}),k((e=>({...e,isCreating:!1,isError:!0})))}Boolean(s)&&Boolean(w)&&Boolean(I)&&Boolean(O)?R(I,w,O,s):(h("ERROR - Collection not submited, missing image",{collectionBannerCid:I,collectionThumbnailCid:w,dropImageCid:O,nftImageCid:s}),f(),l(AA.CustomizeCollectionFirstTab))}},R=async(e,t,n,r)=>{var i,o,a,l,c,u,p,f,m,g;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK)return void("ERROR_TYPE_MOCK"===s?(k((e=>({...e,isCreating:!0,isError:!1}))),setTimeout((()=>k((e=>({...e,isCreating:!1,isError:!0})))),3e3)):(k((e=>({...e,isCreating:!0}))),setTimeout((()=>k((e=>({...e,isCreating:!1,isSuccess:!0})))),3e3)));const y={collectionBannerImageMediaType:"image/png",collectionDescription:v.collectionDescription,collectionDiscordHandle:v.discordHandle,collectionExternalURL:v.collectionWebsiteURL,collectionInstagramHandle:v.instagramHandle,collectionName:v.collectionName,collectionPageBannerImage:null!==(i=null===(o=v.nftBannerImage)||void 0===o?void 0:o.fileCid)&&void 0!==i?i:String(e),collectionRoyalty:Number(v.royalty),collectionSquareImage:null!==(a=null===(l=v.nftThumbnailImage)||void 0===l?void 0:l.fileCid)&&void 0!==a?a:String(t),collectionSquareImageMediaType:"image/png",collectionTwitterHandle:v.twitterHandle,contractName:N},b={nftData:[],nftDescription:v.collectionDescription,nftEditions:null,nftExternalURL:v.collectionWebsiteURL,nftName:v.collectionName,nftThumbnail:null!==(c=null===(u=v.nftImage)||void 0===u?void 0:u.fileCid)&&void 0!==c?c:String(r),nftTraits:null},x={dropDescription:"",dropMedias:null,dropMinters:[],dropName:"",dropNftType:null,dropThumbnail:null!==(p=null===(f=v.dropThumbnailImage)||void 0===f?void 0:f.fileCid)&&void 0!==p?p:String(n),dropTotalMinted:null},A=[{phaseEndDate:Math.floor(Number(null===(m=v.dropEndDateTime)||void 0===m?void 0:m.dateTime)/1e3),phasePrice:Number(v.mintPrice),phaseStartDate:Math.floor(Number(null===(g=v.dropStartDateTime)||void 0===g?void 0:g.dateTime)/1e3)}];try{var _,S;k((e=>({...e,isCreating:!0,isError:!1})));const e=await d.createOpenEdition({collectionDetails:y,dropDetails:x,nftDetails:b,phaseDetails:A,txAvailableCallback:e=>w(e)});if(4===(null===e||void 0===e?void 0:e.status)){k((e=>({...e,isCreating:!1,isSuccess:!0})));const t=e.events.find((e=>"flow.AccountCreated"===e.type||"flow.AccountContractAdded"===e.type));return t&&(C("/collection/".concat(t.data.address,"/").concat(N,'?orderFilters=%7B"all"%3A%7B%7D%7D&sort=%7B"direction"%3A"desc"%2C"listingKind"%3Anull%2C"path"%3A"blockTimestamp"%7D&page=drop')),E("/collection/".concat(t.data.address,"/").concat(N,"?page=drop"))),await _A(),T(null),void h("Successful storefront listing transaction",{collectionCreatedData:{collectionDetails:y,dropDetails:x,nftDetails:b,phaseDetails:A}})}if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(_=e.toString())&&void 0!==_&&_.includes("Error")||null!==e&&void 0!==e&&null!==(S=e.toString())&&void 0!==S&&S.includes("Declined"))throw new Error(e.errorMessage)}catch(D){var P;D instanceof Error&&D.message.includes("Amount withdrawn must be less")&&T("Insufficient FLOW balance to complete transaction. Please add .01 FLOW to your wallet and retry."),k((e=>({...e,isCreating:!1,isError:!0}))),null!==D&&void 0!==D&&null!==(P=D.toString())&&void 0!==P&&P.includes("Popup failed to open")&&await fn().fire({background:"#031021",color:"#FFFFFF",confirmButtonColor:"#FF6969",icon:"error",showConfirmButton:!0,text:"Pop-up blocker is enabled. Please allow pop-ups and try again.",timer:5e3}),h("Error storefront listing transaction",{collectionCreatedData:{collectionDetails:y,dropDetails:x,nftDetails:b,phaseDetails:A},err:D})}},O=()=>{m(),k({isCreating:!1,isError:!1,isSuccess:!1}),w(null),T(null),f()},j=()=>{x&&y(x)},M=()=>{y("/user/creator-hub")},L=Boolean(null===(t=v.nftImage)||void 0===t?void 0:t.fileCid)&&Boolean(null===(n=v.nftThumbnailImage)||void 0===n?void 0:n.fileCid)&&Boolean(null===(r=v.nftBannerImage)||void 0===r?void 0:r.fileCid)&&Boolean(null===(o=v.dropThumbnailImage)||void 0===o?void 0:o.fileCid),B=(0,i.useMemo)((()=>{if(c)return{bgColor:"primary",disabled:!1,onClick:F,text:P?(0,a.jsx)("div",{className:"spinner w-[14px] h-[14px] sm:w-[20px] sm:h-[20px] border-4 border-black rounded-full border-t-transparent animate-spin"}):"Sign In With A Different Wallet"};if(!u)return{bgColor:"primary",disabled:!1,onClick:F,text:P?(0,a.jsx)("div",{className:"spinner w-[14px] h-[14px] sm:w-[20px] sm:h-[20px] border-4 border-black rounded-full border-t-transparent animate-spin"}):"Sign In"};const{isCreating:e,isError:t,isSuccess:n}=S;return e||t||n?e?{bgColor:"primary",disabled:!0,onClick:()=>{},text:"Building Collection"}:n?[{bgColor:"white",className:"w-[14rem] text-base",disabled:!1,onClick:j,text:"Visit Drop Page"},{bgColor:"primary",className:"w-[14rem] text-base",disabled:!1,onClick:M,text:"Creator Hub"}]:t?[{bgColor:"white",className:"w-[14rem] text-lg",disabled:!1,onClick:O,text:"Back"},{bgColor:"primary",className:"w-[14rem] text-lg",disabled:!1,onClick:L?()=>R():()=>I(),text:"Try Again"}]:void 0:{bgColor:"primary",disabled:!1,onClick:L?()=>R():()=>I(),text:"Accept And Continue"}}),[S,c,u,R,I,v]);return{collectionPageTwitterURL:A,collectionPageURL:x,collectionState:S,directToDropPage:j,errMessage:_,modalNavProps:B,onCloseModal:f,transactionID:b}},SA=e=>{let{modalNavProps:t}=e;return t?Array.isArray(t)?(0,a.jsx)("div",{className:"w-full flex items-center gap-[24px]",children:t.map(((e,t)=>(0,a.jsx)(s,{text:e.text,onClick:e.onClick,variant:"secondary",btnSize:"large",disabled:e.disabled,bgColor:e.bgColor},t)))}):(0,a.jsx)("div",{className:"w-full flex flex-col gap-1",children:(0,a.jsx)(s,{text:t.text,onClick:t.onClick,variant:"secondary",btnSize:"large",disabled:t.disabled,className:"h-[35px] flex items-center justify-center px-4"})}):null},kA=e=>{let{errMessage:t}=e;return(0,a.jsxs)("div",{className:"w-full md:w-[400px] flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[8px]",children:[(0,a.jsx)("svg",{className:"w-[7.75rem] h-[7.75rem]",width:"124",height:"125",viewBox:"0 0 124 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 112.1C89.3932 112.1 111.6 89.8933 111.6 62.5C111.6 35.1067 89.3932 12.9 61.9999 12.9C34.6066 12.9 12.3999 35.1067 12.3999 62.5C12.3999 89.8933 34.6066 112.1 61.9999 112.1ZM53.984 45.716C51.5627 43.2947 47.6371 43.2947 45.2158 45.716C42.7946 48.1372 42.7946 52.0628 45.2158 54.4841L53.2318 62.5L45.2158 70.516C42.7946 72.9372 42.7946 76.8628 45.2158 79.2841C47.6371 81.7053 51.5627 81.7053 53.984 79.2841L61.9999 71.2681L70.0158 79.2841C72.4371 81.7053 76.3627 81.7053 78.784 79.2841C81.2052 76.8628 81.2052 72.9372 78.784 70.516L70.768 62.5L78.784 54.4841C81.2052 52.0628 81.2052 48.1372 78.784 45.716C76.3627 43.2947 72.4371 43.2947 70.0158 45.716L61.9999 53.7319L53.984 45.716Z",fill:"#FF6969"})}),(0,a.jsx)("p",{className:"text-white text-[16px] font-semibold text-center",children:"Transaction Failed"})]}),(0,a.jsx)("p",{className:"text-[#F8F9FA] text-center text-[14px] leading-normal font-[400]",children:t||(0,a.jsxs)(a.Fragment,{children:[" ","Your transaction failed. Please try again. If you continue to have issues, please open a support in"," ",(0,a.jsx)(Gn,{text:"Discord",href:T.flowtyDiscordLink})]})})]})};var PA=n(64191);const DA=e=>{let{values:t,collectionPageTwitterURL:n}=e;const r=function(e){var t;let{values:n,collectionPageTwitterURL:r}=e,i="";null!==n&&void 0!==n&&n.dropStartDateTime&&(i=Xf(new Date(null===n||void 0===n?void 0:n.dropStartDateTime.dateTime),"UTC","MMMM do, yyyy 'at' h:mm a 'UTC'"));const o=encodeURIComponent(null!==(t=null===n||void 0===n?void 0:n.collectionName)&&void 0!==t?t:""),a=encodeURIComponent(null!==r&&void 0!==r?r:"");return"https://twitter.com/intent/tweet?text=I%20just%20created%20a%20new%20collection%20called%20%22".concat(o,"%22%20using%20the%20NFT%20Launchpad%20on%20%40flowty_io%21%20\ud83c\udfa8%0A%0AMinting%20goes%20live%20on%20").concat(i,"%20here%3A%20").concat(null===a||void 0===a?void 0:a.trim()," ")}({collectionPageTwitterURL:n,values:t});return(0,a.jsx)(Zn,{href:r})},FA=e=>{let{transactionID:t,values:n,collectionPageTwitterURL:r,isMainnet:o,mixPanelFn:s}=e;const[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(null);return(0,i.useEffect)((()=>{(async()=>{try{const e=await pn("https://storage.googleapis.com/flowty-images/drops/animation.json",s);d(e)}catch(e){s("Error fetching animation data",e)}})()}),[]),(0,a.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-[8px] font-montserrat",children:[l?(0,a.jsx)("svg",{className:"w-[7.75rem] h-[7.75rem]",width:"124",height:"124",viewBox:"0 0 124 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9999 111.6C89.3932 111.6 111.6 89.3933 111.6 62C111.6 34.6067 89.3932 12.4 61.9999 12.4C34.6066 12.4 12.3999 34.6067 12.3999 62C12.3999 89.3933 34.6066 111.6 61.9999 111.6ZM84.984 53.9841C87.4052 51.5628 87.4052 47.6372 84.984 45.216C82.5627 42.7947 78.6371 42.7947 76.2158 45.216L55.7999 65.6319L47.784 57.616C45.3627 55.1947 41.4371 55.1947 39.0158 57.616C36.5946 60.0372 36.5946 63.9628 39.0158 66.3841L51.4158 78.7841C53.8371 81.2053 57.7627 81.2053 60.184 78.7841L84.984 53.9841Z",fill:"#04E5A3"})}):(0,a.jsx)(PA.A,{eventListeners:[{callback:()=>c(!0),eventName:"complete"}],options:{animationData:u,autoplay:!0,loop:!1,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},height:108.5,width:108.5}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#F8F9FA]",children:"Transaction Successful!"}),(0,a.jsx)(Yn,{transactionID:t,isMainnet:o}),r&&(0,a.jsx)(DA,{collectionPageTwitterURL:r,values:n})]})};var NA;function IA(){return IA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IA.apply(null,arguments)}function RA(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",IA({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,NA||(NA=i.createElement("g",{id:"Icon/Solid/exclamation"},i.createElement("path",{id:"Icon",fillRule:"evenodd",clipRule:"evenodd",d:"M7.43135 2.78862C8.1195 1.56525 9.88088 1.56525 10.569 2.78862L15.5913 11.7171C16.2662 12.917 15.3991 14.3996 14.0225 14.3996H3.97791C2.60123 14.3996 1.73414 12.917 2.40908 11.7171L7.43135 2.78862ZM9.90011 11.6997C9.90011 12.1967 9.49717 12.5997 9.00011 12.5997C8.50305 12.5997 8.10011 12.1967 8.10011 11.6997C8.10011 11.2026 8.50305 10.7997 9.00011 10.7997C9.49717 10.7997 9.90011 11.2026 9.90011 11.6997ZM9.00011 4.49968C8.50305 4.49968 8.10011 4.90263 8.10011 5.39968V8.09968C8.10011 8.59674 8.50305 8.99968 9.00011 8.99968C9.49717 8.99968 9.90011 8.59674 9.90011 8.09968V5.39968C9.90011 4.90263 9.49717 4.49968 9.00011 4.49968Z",fill:"#FF6E25"}))))}const OA=i.forwardRef(RA),jA=(n.p,()=>(0,a.jsxs)("div",{className:"flex flex-col space-y-10",children:[(0,a.jsx)("div",{className:"text-[#DEE2E6]",children:"This will finalize the creation of your NFT collection on the Flow blockchain. Please ensure that all details are correct before proceeding. Once submitted, you will not be able to edit the collection or minting details."}),(0,a.jsxs)("div",{className:"text-[#FF6E25] px-3 py-2 flex space-x-3 items-center bg-[#ffffff14] rounded-lg",children:[(0,a.jsx)("div",{children:(0,a.jsx)(OA,{})}),(0,a.jsx)("div",{className:"text-sm",children:"Once you submit your collection, you will no longer be able to make any edits or changes"})]})]})),MA=()=>(0,a.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,a.jsx)("div",{className:"font-bold text-[18px] text-white",children:"Non-Dapper Wallet Required"}),(0,a.jsx)("div",{className:"text-[#DEE2E6]",children:"To complete the creation of this NFT Collection, a non-Dapper wallet is required"}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"font-montserrat text-[14px] mb-6 text-white uppercase font-bold",children:"Examples of Supported Wallets:"}),(0,a.jsxs)("div",{className:"flex items-center space-x-4 text-[#CED4DA]",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("img",{src:ge,className:"img-fluid",alt:"Blocto Logo"})}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAkCAYAAAAAa43JAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAwOSURBVHgB7VsJcFRVFj2/s7AECCRhJyEB2WQxFDIEEGcIm8JMoSKIDAJS1ICyiKXWCFGBCJbCKIUKyCIQhWGRQFAUEAQcFIPAjKNxWIQKmxBiQsi+9597Xuf//HTS3WlqnFCSU3X7//ffkt/33Xffufd1gFrUCDR4CV3XA+TSXeTesms7kSARG+4MFIpcFzktclLknyLnNU3TvRmk2ooXhUfKZYrICJG2uIVJ+42iWOS4SLzIWpmArOp08qg8UXiYXF4VGSvij1q4Q5pIjMg6mYASdw3dKl6UHi2XD0VaoRbeYKfIDFH+VVcNXCpelP4iHJbuW6myuAj6he+gX/wRyEoF8nPEw/sAdRtCa90JWtjdQIt2uMNxVmSiKD+xqsoqFS9Kj5XLy5Uq8rOhJyZAP7wRKMiBLt01+dQdnczh+AzN20H700xoHfvgDoZYJHqL8k87V1RSvCh9jFw2wcnS9WO7YP8iDlpmKkvQK3aqNJiuSUlEa9sDtjFzgeA2qA7k7+PKlSvw9/dH8+bNUV3cvHkTN27cQFhYGHx9fXEb4SeRnqL8XOvDChRQvnRPuayBVekFYuWfLIM94W/iVn5RKjcsnJat6eVTYEyHrmbAMQ36pSSUrp4J/ey3qA5ef/11DBkyBH379lX3uu6ZpR05cgTDhg3DoEGDMGLECOTl5eE2QgeRePkeFYiJM/deJNLI+kDfuwr2o/FK0R/8cB1//08aSuxlytANZeum1Zug3susHjkZsG9bBD3533CHlJQUrFmzBgUFBbDb7diwYYOyfk9YvHgxrl+/ribpzJkz2LVrF24zDBF5xPrAVHwZg3nQWqkn7oT92MdKqR//lIFOMRtw7+IEzLkYiBMpdF9K86b1G0Vq/fi1bCw464OdZ29IUf5MYS7sW2XryPzF5dvRVVDhBjgB2dnZ8IS0tDS35dsA1PPLouOG1gcGZlpb6ulXYP9sZZkl60gt8UHnzp3RpUsXLNm8G+eiZ+PFb2/i6M9ZSPolD0lp+fgxLQ/7L2RizvFMnP79LMTGH8aBgpByyxf2Y/9sOW4FhYWFWLduHZ5++mls2bKlWn1KS0uxfv16zJgxAx999BFqGEL1MMgoKF8uMxEKx3IwQReD4gLeKT9eKE3r1Kmj6nx8fPDnSZMRPexBJCUlIT03FyUlJaJbDcHBwZgbGYnGjRurtrYSGUNr4LB60b1+JhF66gVozcLhDd5++20sX+6YtD179sBms2HMmDFu+7D9W2+9pe53796NnJwcPPnkk6hBTBRJ4I2xiT4hEmBW37gK/fQ3oiW7afHpgaEICAioMErLli2VuEOBDFEqQ/hoBucRp7R3DbQJi+AN9u3bZ97Tl+/fv9+j4p19Pa2+hhV/n7x7I6YVDFcTZa3Vz0vep7jQLF/LKUKrqKG4FTz+3Dz843JWBa6ppwjDyr0JbxASElKh3LRpU499nNt4Q09/JQSLdOONr8wAld/dWqsnfweDqdDNvHMyBeu3x2L+qwvhLehni7IzcHhSH3Rv3sAxbl6Ww91ERFZ7nPnz52PatGm4cOECIsWVzZ4922OfmJgYPPvsszh37pzq88Ybb7hsy009V1wmVzXdmCcYzKt+/frwAjQ/+vmjdDXURmNrLZViKJ1Xe8NgxMWVv/SOHTsU7asKDz/8MO666y4sWbLEfBbg74OwxnXLx6e7SbvileK5sR8+fFhtssZe4wndu3dXLqmoqKjKPnRZX3/9tdoLjh07phRZt25d9OnTR01sz549K7TnHvH+++9j586dygCIiIgIFUPMnDmzkit2gQh+UPHUSMWsY76DwjmSAPLZoj0eeOABs5r3LVq0wMqVK03qxmiRAQwnpEmTJqqe97Seu0VpGflpCKzjq0ZU7j7fM010RnJyMi5duqSYVbNmzarV5/Lly6pfjx491HsZKC4uVisgLi5O3RugJX/55Zc4efIkXnjhBUycOFE956qZPn26ihOc3+m9995TGz7HCg8P9/RKilJWHVvr5W6Gt6W+la0lNjYWs2bNwqlTpxT/btOmDUJDQ3Ho0CEVzNACuMxpVfwi1zfNRXgTY1l6n8r/6quv8NRTTylezw198+bNHr+ktU9gYCASEhKUhRJU1tq1a132pXUvXbpURdE0Km7KnEQDfMYVYsQdFy9eVJPEFcZ0hxvYjI8iOE5VylGvgal82r0/KWEZaOGZmZnqnhvegAEDMHLkSPTq1Ut9wYULF2LZsmXKX5Je5ufnq2VeWGpEtmVKr98I3oDc3Qimrl27ppa7J2zdutXsw3c26Cit16p0rkoqbd68eRVWNl0UXdv27dsrKH3UqFE4cOAADh48iAkTJih6TVD57iazDOqghBbPEDRDxFyHWtO2kmM5BSMODcpNMX0r/RhdCK3dGe3bt1d5k/T0dMXjuSzpC7mU29T3g1J6Ga3UglvDG3ACrahOPsa5jVGmVRrGQ7z77rsYPny4uqdlb9y4EUePHsWjjz6qVoh1kqdOnYo5c+aY5QULFigDo5shuBInT56s9goXuMgPW9lJyY/WGq1dpMO3O0ro7JOF77//XpXq1auH/v37Y9WqVVV+eQZSJ06cUPdc2lyqZ374Du3oZpTSRfzrQmvVETUFWrwBUkyrlRPjx4/HihUrEB0drVzJ+fPnzbrRo0dXaEulW5+lpqZWmNQqcIgfBm+qkKzX2t8L3a9OWWoX6NeyPg7GbzLr6VYGDx6slM/AhsktLktSR7qYq1evqiU3dOhQ9eJZSd8Is/E1UwdaeA+gjlc07H8K57Qx39sVnKllVW2tGVTWu8mokon8S41b9oDHe+XZKXEDWpf+pqIa1/ND27P7Eb+9PN9Bt8LNkzQvMTERmzZtUtlEUr6uXbuqqJJ0bPnSNzEyMLs8X+PrB+0P41GTICsyQCJA12KAiouPj8czzzyDzz//XD1r1678NI1U2hnWZ9z4g4KC4AJHjMNwNfVSuCyztFduhxsttAenqbyKEcGO7hiE2BUx0taGR2RzMdC2bVslVSFuw3oEJG7FPZGtTDejdYqCJvS0JtGvXz80aNBAMRfitddeU+nnDh06qD2K1JArlffdunVTOX4SBoL7Gy2amypXg2FwBrjxumE1Hxg31jX3JqyKDwmDbcR02HctLbNWG17p2wr741/FnL0JGDj6CcVo6POt4EuRxu3bEof7cpMwxFC69NfqNYJt8GS4gqZpLp8511ldgHOdqz5GuWPHjnj++edVNExw82dg5Axu6HSh3Cy3bdum2BQnZPXq1UqcwdOvKVOmwAW4UXxqFHwtL3VQlLYHlpy81ncUtJRk6Mc/UZZuFxnSPlhi3mv4ZnMM3nmnBKVBoQ76KdDzMmFPvYSoFgF4JSIIPrYQU+nw84dt1F/lmCXE1YupjY7C5U+QexuriZZHCmeA7swALZiUzwAjVqONtQ8NxcCkSZPUcSGzntYzAFMxsg+QxxuxAscno2E2tiqwHS2fK8kFYkTHZqTmY60RC+Co40TMiEnrJIfVBbnQfz7tsNoyCWtcD/1aNUT/JqXo1yBfyQBxbQNCAxERVN9hkYZ7kZSD7aHnJEVwD9yBq4c+kpszI9+XXnpJ7SEEI09yaVrg2LFjFfMwNklOCiNalh977DG1v5Bbcx/iJLIPUxm0XD8/P/PvRUVFoXfv3or+0rpZx8TawIEDVTxy//33m20bNWqkWA6RkZGh6DVdSuvWrTFu3DgVA9DiXYA/dlok1NPcmat92G0//qnj1wU56aqbrgiPVj6EuthIUB0FXmw+0EK7isuaIcGA+/RxTYOK5ASRf1snpypwhZAy8spV6eFwnQFRtFh7ivWhq593MA05t1K9nCDpiTtgT5RcfiEDGl1ZtSOno5UzF5ZaREAbNAlaeCQdMu5QMGz+XbV+3kGI4jmF80QYovlUalBSBP2KjCWip12iuUgrUW7DEGhNmkPr0Fvi4Nvbwv8PSBYZ59UPmgzIBDB3TApU+xM+78DjssdF6RmuGrj1AdLxC7lwR2Qiogi18ARm0v4i8kd3Sie8+Zm2xPmYKvIQaleAFaSITE4xrP9QFF6t35bcyj8mcMvvBcc/JvD8MByOs8Tb6ndzvxLII5gZZKDBH6Uy73JL/5hQixrCfwFUXhLdeybqswAAAABJRU5ErkJggg==",className:"img-fluid",alt:"Lilico Logo"})})]})]})]}),LA=e=>{let{isOpen:t,onCloseModal:n,flowty:r,isLoggedUser:o,loggedIsDapper:s=!1,creatorHubId:l,logOutFn:c,mixPanelFn:u,changeSelectedFormTab:d,resetForm:p,uploadImageFn:h,values:f}=e;const{collectionState:m,modalNavProps:g,transactionID:v,collectionPageTwitterURL:y,errMessage:b}=TA({changeSelectedFormTab:d,creatorHubId:l,flowty:r,isLoggedUser:o,logOutFn:c,loggedIsDapper:s,mixPanelFn:u,onCloseModal:n,resetForm:p,uploadImageFn:h,values:f}),{isCreating:w,isError:x,isSuccess:C}=m,A="mainnet"===r.config.network,E=(0,i.useMemo)((()=>{if(!y)return null;return"https://".concat(A?"flowty.io":"testnet.flowty.io").concat(y)}),[y]),_=(0,i.useMemo)((()=>(0,a.jsx)("p",{className:"text-lg md:text-2xl leading-6 text-white font-black",children:s?"Wallet Not Supported":o?w||x||C?w?"Creating Collection":C?"Collection Created":x?"Collection Creation Failed":"Create Collection":"Confirm Collection Creation":"Wallet Required"})),[w,x,C,s,o]);return(0,a.jsx)(dp.e,{appear:!0,show:t,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",onClose:()=>{C&&(_A(),p(),d(AA.WelcomeCreatorHubTab)),n()},children:[(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{"data-testid":"creator-hub-modal",className:"fixed max-md:top-[40px] inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center text-center",children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"w-full md:w-[511px] max-h-[500px] h-full flex flex-col transform rounded-lg bg-[#04070B] text-left align-middle shadow-xl transition-all border border-[#495057]",children:[(0,a.jsxs)(pp.l.Title,{as:"div",className:"border-b border-[#495057] px-[40px] py-[30px] md:py-8 w-full flex justify-between items-center",children:[_,(0,a.jsx)(hp.A,{onClick:n,className:"w-6 h-6 md:h-8 md:w-8 cursor-pointer fill-white"})]}),(0,a.jsx)("div",{className:"w-full py-[32px] px-[40px]",children:!o||s?(0,a.jsx)(MA,{}):(0,a.jsxs)(a.Fragment,{children:[!w&&!C&&!x&&(0,a.jsx)(jA,{}),w&&(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(Xn,{transactionID:v,isMainnet:A})}),C&&(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(FA,{isMainnet:A,transactionID:v,values:f,collectionPageTwitterURL:E,mixPanelFn:u})}),x&&(0,a.jsx)("div",{className:"h-full flex flex-col items-center justify-center",children:(0,a.jsx)(kA,{errMessage:b})})]})}),(0,a.jsx)("div",{className:"h-full w-full flex justify-center items-center border-t border-[#495057] px-[40px] py-[18px]",children:(0,a.jsx)(SA,{modalNavProps:g})})]})})})})]})})},BA={activeConfirmationPreviewTab:"",changeSelectedFormTab:()=>{},collectionUrlPathname:"",confirmationPageMobilePreviewTabs:[],confirmationPagePreviewTabs:[],errors:{},formTab:AA.WelcomeCreatorHubTab,handleSubmit:()=>{},hasViewedDropPage:!1,mixPanelFn:(e,t)=>{},moveToPreviousTab:()=>{},onConfirmationPageTabClick:()=>{},setFieldError:(e,t)=>{},setHasViewedDropPage:()=>{},touched:{}},UA=(0,i.createContext)(BA),VA=e=>{let{children:t,mixPanelFn:n,loggedUser:r,flowtyMarketplaceFee:o,uploadIPFSImage:s,values:l,spotPrice:c,errors:u,formTab:d,changeSelectedFormTab:p,moveToPreviousTab:h,handleSubmit:f,setFieldError:m,touched:g,promotion:v}=e;const{activeConfirmationPreviewTab:y,confirmationPagePreviewTabs:b,confirmationPageMobilePreviewTabs:w,onConfirmationPageTabClick:x}=(()=>{const e=Hg(),t="xs"===e||"mobile"===e,[n,r]=(0,i.useState)(t?"Collection":"Collection Page"),o=["Collection Page","Drop Page"],a=["Collection","Drop"],s=e=>{r(e)};return(0,i.useMemo)((()=>({activeConfirmationPreviewTab:n,confirmationPageMobilePreviewTabs:a,confirmationPagePreviewTabs:o,onConfirmationPageTabClick:s})),[n,o])})(),[C,A]=(0,i.useState)(!1),E=l.collectionName.split(" ").map(((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1))).join("");return(0,a.jsx)(UA.Provider,{value:{activeConfirmationPreviewTab:y,changeSelectedFormTab:p,collectionUrlPathname:"".concat(null!==r&&void 0!==r?r:"your_address","/").concat(E),confirmationPageMobilePreviewTabs:w,confirmationPagePreviewTabs:b,errors:u,flowtyMarketplaceFee:o,formTab:d,handleSubmit:()=>{EA(l,Boolean(r)),f()},hasViewedDropPage:C,loggedUser:r,mixPanelFn:n,moveToPreviousTab:()=>{EA(l,Boolean(r)),h()},onConfirmationPageTabClick:x,promotion:v,setFieldError:m,setHasViewedDropPage:A,spotPrice:c,touched:g,uploadImage:async e=>{try{return await s(e)}catch(t){return n("error uploading image",{error:t}),console.error("error uploading image",t),null}}},children:t})},HA=()=>(0,i.useContext)(UA),zA=e=>{let{promotionId:t,title:n,message:r,primaryButton:o,secondaryButton:l,image:c,handleClose:u,isVisible:d}=e;const p=Hg(),h=(0,Gt.zy)(),f=(0,Gt.Zp)();return(0,a.jsx)(dp.e,{appear:!0,show:d,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",static:!0,onClose:()=>null,children:[(0,a.jsx)(dp.e.Child,{enter:"transition duration-000 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:i.Fragment,children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{className:"fixed w-screen max-md:h-full max-md:overflow-hidden inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center",children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-1000",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"shadow-xl max-md:min-h-[100svh] max-md:h-[100svh] flex flex-col w-[90vw] h-full md:h-auto max-md:w-full md:w-[600px] lg:w-[764px] bg-[#04070B] md:rounded-[10px] md:border border-[#343A40]",children:[(0,a.jsxs)(pp.l.Title,{as:"div",className:"flex flex-row justify-between px-[25px] py-[20px] 3xl:px-[39px] 3xl:py-[36px]",children:[(0,a.jsx)("h2",{className:"text-white font-montserrat text-12px md:text-[20px] 3xl:text-[24px] font-black leading-none [text-shadow:0px_4px_4px_rgba(0,0,0,0.25)]",children:n}),(0,a.jsx)(Rh,{className:"cursor-pointer w-[22px] h-[22px]",onClick:u})]}),(0,a.jsxs)("div",{className:"max-md:flex-grow overflow-y-scroll md:max-h-[75vh] 3xl:max-h-full flex flex-col py-4 px-[25px] md:py-[36px] md:px-[38px] gap-[10px] md:gap-[40px] border border-r-0 border-l-0 border-t-solid [border-top-color:#343A40] border-b-solid [border-bottom-color:#343A40]",children:[(0,a.jsx)("img",{src:c,alt:"promotion",className:"w-auto h-auto","aria-label":t}),r]}),(0,a.jsxs)("div",{className:"flex md:h-full justify-center items-center gap-[24px] py-[20px] 3xl:py-[30px] px-[25px] md:px-[38px] 3xl:px-[24px]",children:[l&&(0,a.jsx)(s,{className:"w-full text-[10px] py-0 3xl:text-[14px]",text:"xs"===p?null===l||void 0===l?void 0:l.mobileLabel:null===l||void 0===l?void 0:l.label,variant:"secondary",bgColor:"white",onClick:()=>{window.open(null===l||void 0===l?void 0:l.redirectUrl)}}),o&&(0,a.jsx)(s,{className:"w-full text-[10px] py-0 3xl:text-[14px]",text:"xs"===p?o.mobileLabel:null===o||void 0===o?void 0:o.label,variant:"primary",onClick:()=>{"/create"!==h.pathname?(f(null===o||void 0===o?void 0:o.redirectUrl),u()):u()}})]})]})})})})]})})};var WA,qA,GA;function YA(){return YA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YA.apply(null,arguments)}function KA(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",YA({xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,WA||(WA=i.createElement("path",{d:"M23.4549 12.6984C23.4549 11.3221 23.2099 10.0025 22.7607 8.78178C22.4537 12.3786 20.5361 14.2261 18.5325 13.3658C16.6556 12.5595 17.9204 9.41652 18.0138 7.91677C18.1714 5.37447 18.0058 2.46441 13.3878 0.0449219C15.3067 3.71587 13.61 5.99653 11.8306 6.13536C9.85633 6.28954 8.04822 4.43871 8.71566 1.43521C6.55448 3.02773 6.49174 5.7082 7.15851 7.44222C7.85399 9.24966 7.13048 10.7514 5.4345 10.9183C3.53896 11.1052 2.48573 8.88857 3.45686 5.35645C1.77624 7.33543 0.761719 9.89842 0.761719 12.6984C0.761719 18.965 5.84165 24.0449 12.1083 24.0449C18.3749 24.0449 23.4549 18.965 23.4549 12.6984Z",fill:"url(#paint0_linear_8414_6714)"})),qA||(qA=i.createElement("path",{d:"M19.0459 16.0347C19.1447 18.0931 17.3366 18.9 16.3634 18.5102C14.9578 17.9476 15.3349 16.9811 14.9731 14.9788C14.6114 12.9765 13.2211 11.5862 11.1634 10.9741C12.6651 15.2011 10.3311 16.7589 9.10763 17.0372C7.85817 17.3215 6.60271 17.0365 6.45921 14.3627C5.00151 15.8138 4.09912 17.8214 4.09912 20.04C4.09912 20.2857 4.11447 20.5273 4.13583 20.7675C6.18489 22.7926 8.99951 24.0447 12.1085 24.0447C15.2174 24.0447 18.032 22.7926 20.0811 20.7675C20.1025 20.5273 20.1178 20.2857 20.1178 20.04C20.1178 18.5803 19.728 17.2127 19.0459 16.0347Z",fill:"#031021"})),GA||(GA=i.createElement("defs",null,i.createElement("linearGradient",{id:"paint0_linear_8414_6714",x1:.761719,y1:12.0449,x2:23.4549,y2:12.0449,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#FF9E3F"}),i.createElement("stop",{offset:1,stopColor:"#D24E65"})))))}const QA=i.forwardRef(KA),XA=(n.p,e=>{let{onClick:t}=e;return(0,a.jsxs)("button",{onClick:t,className:"w-fit cursor-pointer flex items-center gap-[13.398px] rounded-[4.466px] bg-[#FFFFFF0A] border-[1.117px] border-[#FF9E3F] p-[6.699px_13.398px]",children:[(0,a.jsx)(QA,{className:"w-[22.693px] h-[24px]"})," ",(0,a.jsx)("div",{className:"font-montserrat text-[13.398px] font-semibold leading-[17.864px]",children:(0,a.jsx)("span",{style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #FF9E3F 0%, #D24E65 100%)",backgroundClip:"text"},children:"20K FLOW Giveaway"})})]})}),ZA=e=>{let{promotion:t}=e;const[n,r]=(0,i.useState)(!1),o=()=>{r((e=>!e))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(XA,{onClick:o}),(0,a.jsx)(zA,{promotionId:null===t||void 0===t?void 0:t.promotionId,title:null===t||void 0===t?void 0:t.title,message:null===t||void 0===t?void 0:t.message,primaryButton:null===t||void 0===t?void 0:t.primaryButton,secondaryButton:null===t||void 0===t?void 0:t.secondaryButton,image:null===t||void 0===t?void 0:t.image,handleClose:o,isVisible:n})]})};var JA,$A,eE;function tE(){return tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tE.apply(null,arguments)}function nE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",tE({xmlns:"http://www.w3.org/2000/svg",width:32,height:33,viewBox:"0 0 32 33",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,JA||(JA=i.createElement("path",{d:"M11.2 5.19824C10.3164 5.19824 9.60001 5.91459 9.60001 6.79824C9.60001 7.6819 10.3164 8.39824 11.2 8.39824H20.8C21.6837 8.39824 22.4 7.6819 22.4 6.79824C22.4 5.91459 21.6837 5.19824 20.8 5.19824H11.2Z",fill:"#F8F9FA"})),$A||($A=i.createElement("path",{d:"M6.40001 11.5982C6.40001 10.7146 7.11636 9.99824 8.00001 9.99824H24C24.8837 9.99824 25.6 10.7146 25.6 11.5982C25.6 12.4819 24.8837 13.1982 24 13.1982H8.00001C7.11636 13.1982 6.40001 12.4819 6.40001 11.5982Z",fill:"#F8F9FA"})),eE||(eE=i.createElement("path",{d:"M3.20001 17.9982C3.20001 16.2309 4.6327 14.7982 6.40001 14.7982H25.6C27.3673 14.7982 28.8 16.2309 28.8 17.9982V24.3982C28.8 26.1656 27.3673 27.5982 25.6 27.5982H6.40001C4.6327 27.5982 3.20001 26.1656 3.20001 24.3982V17.9982Z",fill:"#F8F9FA"})))}const rE=i.forwardRef(nE);n.p;var iE;function oE(){return oE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oE.apply(null,arguments)}function aE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",oE({xmlns:"http://www.w3.org/2000/svg",width:32,height:33,viewBox:"0 0 32 33",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,iE||(iE=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 29.1986C23.0693 29.1986 28.8 23.4679 28.8 16.3986C28.8 9.32939 23.0693 3.59863 16 3.59863C8.93077 3.59863 3.20001 9.32939 3.20001 16.3986C3.20001 23.4679 8.93077 29.1986 16 29.1986ZM17 9.99863C17 9.44635 16.5523 8.99863 16 8.99863C15.4477 8.99863 15 9.44635 15 9.99863V16.3986C15 16.6638 15.1054 16.9182 15.2929 17.1057L19.8184 21.6312C20.2089 22.0217 20.8421 22.0217 21.2326 21.6312C21.6231 21.2407 21.6231 20.6075 21.2326 20.217L17 15.9844V9.99863Z",fill:"#F8F9FA"})))}const sE=i.forwardRef(aE);n.p;var lE,cE,uE;function dE(){return dE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dE.apply(null,arguments)}function pE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",dE({xmlns:"http://www.w3.org/2000/svg",width:32,height:33,viewBox:"0 0 32 33",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,lE||(lE=i.createElement("path",{d:"M13.4934 12.2672C13.7411 12.1021 14.047 11.9545 14.4 11.8402L14.4 14.557C14.047 14.4428 13.7411 14.2952 13.4934 14.1301C12.9108 13.7417 12.8 13.3809 12.8 13.1986C12.8 13.0164 12.9108 12.6556 13.4934 12.2672Z",fill:"#F8F9FA"})),cE||(cE=i.createElement("path",{d:"M17.6 20.957L17.6 18.2403C17.953 18.3545 18.259 18.5021 18.5066 18.6672C19.0892 19.0556 19.2 19.4164 19.2 19.5986C19.2 19.7809 19.0892 20.1417 18.5066 20.5301C18.259 20.6952 17.953 20.8428 17.6 20.957Z",fill:"#F8F9FA"})),uE||(uE=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 29.1986C23.0693 29.1986 28.8 23.4679 28.8 16.3986C28.8 9.32939 23.0693 3.59863 16 3.59863C8.93077 3.59863 3.20001 9.32939 3.20001 16.3986C3.20001 23.4679 8.93077 29.1986 16 29.1986ZM17.6 8.39863C17.6 7.51498 16.8837 6.79863 16 6.79863C15.1164 6.79863 14.4 7.51498 14.4 8.39863V8.54582C13.4055 8.7326 12.4856 9.09315 11.7184 9.60461C10.5637 10.3744 9.60001 11.6136 9.60001 13.1986C9.60001 14.7837 10.5637 16.0229 11.7184 16.7927C12.4856 17.3041 13.4055 17.6647 14.4 17.8514L14.4 20.9574C13.7744 20.7543 13.3107 20.4497 13.0507 20.15C12.4716 19.4826 11.461 19.411 10.7936 19.9901C10.1262 20.5693 10.0546 21.5798 10.6337 22.2472C11.5337 23.2844 12.8953 23.968 14.4 24.2508L14.4 24.3986C14.4 25.2823 15.1163 25.9986 16 25.9986C16.8836 25.9986 17.6 25.2823 17.6 24.3987L17.6 24.2514C18.5946 24.0647 19.5145 23.7041 20.2817 23.1927C21.4364 22.4229 22.4 21.1837 22.4 19.5986C22.4 18.0136 21.4363 16.7744 20.2817 16.0046C19.5145 15.4931 18.5946 15.1326 17.6 14.9458L17.6 11.8398C18.2256 12.043 18.6894 12.3476 18.9494 12.6472C19.5285 13.3147 20.539 13.3862 21.2065 12.8071C21.8739 12.228 21.9455 11.2175 21.3663 10.55C20.4664 9.51282 19.1047 8.82928 17.6 8.54641V8.39863Z",fill:"#F8F9FA"})))}const hE=i.forwardRef(pE);n.p;var fE;function mE(){return mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mE.apply(null,arguments)}function gE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",mE({xmlns:"http://www.w3.org/2000/svg",width:32,height:33,viewBox:"0 0 32 33",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,fE||(fE=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0693 2.06494H15.9307C14.7327 2.0649 13.7337 2.06488 12.9407 2.17149C12.1036 2.28404 11.3479 2.5316 10.7406 3.13889C10.1333 3.74618 9.88575 4.50192 9.7732 5.33897C9.69678 5.90746 9.67515 7.2669 9.66904 8.43249C6.97271 8.52056 5.3538 8.83532 4.22875 9.96037C2.66666 11.5225 2.66666 14.0367 2.66666 19.0649C2.66666 24.0932 2.66666 26.6075 4.22875 28.1695C5.79084 29.7316 8.305 29.7316 13.3333 29.7316H18.6667C23.6949 29.7316 26.2092 29.7316 27.7712 28.1695C29.3333 26.6075 29.3333 24.0932 29.3333 19.0649C29.3333 14.0367 29.3333 11.5225 27.7712 9.96037C26.6461 8.83532 25.0273 8.52056 22.3309 8.43249C22.3248 7.2669 22.3032 5.90746 22.2268 5.33897C22.1143 4.50192 21.8667 3.74618 21.2593 3.13889C20.6521 2.5316 19.8964 2.28404 19.0593 2.17149C18.2663 2.06488 17.2673 2.0649 16.0693 2.06494ZM20.3305 8.40078C20.3245 7.27192 20.3053 6.05704 20.2447 5.60548C20.1619 4.99018 20.0189 4.72686 19.8452 4.5531C19.6715 4.37934 19.4081 4.23638 18.7928 4.15366C18.1488 4.06708 17.2853 4.06494 16 4.06494C14.7147 4.06494 13.8512 4.06708 13.2072 4.15366C12.5919 4.23638 12.3286 4.37934 12.1548 4.5531C11.9811 4.72686 11.8381 4.99018 11.7554 5.60548C11.6947 6.05704 11.6755 7.27192 11.6694 8.40078C12.1913 8.39828 12.7451 8.39828 13.3333 8.39828H18.6667C19.2549 8.39828 19.8087 8.39828 20.3305 8.40078ZM16 12.7316C16.5523 12.7316 17 13.1793 17 13.7316V13.7452C18.4517 14.1109 19.6667 15.2556 19.6667 16.8427C19.6667 17.3949 19.2189 17.8427 18.6667 17.8427C18.1144 17.8427 17.6667 17.3949 17.6667 16.8427C17.6667 16.3307 17.0989 15.6205 16 15.6205C14.9011 15.6205 14.3333 16.3307 14.3333 16.8427C14.3333 17.3548 14.9011 18.0649 16 18.0649C17.8465 18.0649 19.6667 19.3447 19.6667 21.2872C19.6667 22.8743 18.4517 24.0189 17 24.3847V24.3983C17 24.9505 16.5523 25.3983 16 25.3983C15.4477 25.3983 15 24.9505 15 24.3983V24.3847C13.5483 24.0189 12.3333 22.8743 12.3333 21.2872C12.3333 20.7349 12.781 20.2872 13.3333 20.2872C13.8856 20.2872 14.3333 20.7349 14.3333 21.2872C14.3333 21.7992 14.9011 22.5093 16 22.5093C17.0989 22.5093 17.6667 21.7992 17.6667 21.2872C17.6667 20.7751 17.0989 20.0649 16 20.0649C14.1535 20.0649 12.3333 18.7853 12.3333 16.8427C12.3333 15.2556 13.5483 14.1109 15 13.7452V13.7316C15 13.1793 15.4477 12.7316 16 12.7316Z",fill:"#F8F9FA"})))}const vE=i.forwardRef(gE),yE=(n.p,()=>{const{handleSubmit:e,promotion:t}=HA();return(0,a.jsx)("div",{className:"w-full container creator-hub-wrapper bg-[#04070B] flex flex-col gap-12 justify-between max-lg:pt-[92px]",children:(0,a.jsxs)("div",{className:"flex h-full overflow-scroll",children:[(0,a.jsx)("div",{className:"lg:hidden w-full fixed top-[-60px] left-0 bg-cover bg-no-repeat bg-center max-lg:min-h-[200px] justify-center z-4",style:{backgroundImage:"url(https://storage.googleapis.com/flowty-images/drops/mobileBgCreatorHub.webp)",backgroundPositionY:"bottom"}}),(0,a.jsxs)("div",{className:"w-fit flex items-center gap-[180px] 3xl:gap-[250px] m-auto",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[30px] 3xl:gap-[40px] w-fit max-w-[374px] tablet:max-w-max",children:[(0,a.jsx)("div",{className:"flex flex-col gap-[30px] 3xl:gap-[40px]",children:(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[t&&t.length>0&&(0,a.jsx)(ZA,{promotion:t[0]}),(0,a.jsxs)("h1",{className:"text-white font-bold text-[24px] tablet:text-[34px] 3xl:text-[40px] leading-10 3xl:leading-tight",style:{WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",background:"linear-gradient(90deg, #FFF 0%, #AEAEAE 100%)",backgroundClip:"text"},"data-testid":"welcome-to-flowty",children:["Welcome to Flowty","'","s Self-",(0,a.jsx)("br",{}),"Service NFT Launchpad!"]}),(0,a.jsxs)("p",{className:"text-[12px] 3xl:text-[14px] text-[#CED4DA] font-semibold leading-5",children:["Whether you are an experienced or a first-time NFT creator, you can"," ",(0,a.jsxs)("span",{className:"font-bold text-[12px] 3xl:text-[14px]",children:["create ",(0,a.jsx)("br",{className:"hidden tablet:flex"})," a new NFT collection for FREE in less than 5 minutes"]})," ","by providing:"]})]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-[20px] 3xl:gap-[36px]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-[14px]",children:[(0,a.jsx)("div",{className:"rounded-lg p-[8px] 3xl:p-[17px] border border-[#ADB5BD]",children:(0,a.jsx)(rE,{className:"w-7 h-7 3xl:w-[32px] 3xl:h-[32px]"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[16px] 3xl:text-[20px] text-[#F8F9FA] font-bold",children:"Collection Details"}),(0,a.jsx)("span",{className:"text-[12px] 3xl:text-[14px] text-[#CED4DA]",children:"Design your NFT collection by customizing images and more"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[14px]",children:[(0,a.jsx)("div",{className:"rounded-lg p-[8px] 3xl:p-[17px] border border-[#ADB5BD]",children:(0,a.jsx)(hE,{className:"w-7 h-7 3xl:w-[32px] 3xl:h-[32px]"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[16px] 3xl:text-[20px] text-[#F8F9FA] font-bold",children:"Mint Price"}),(0,a.jsx)("span",{className:"text-[12px] 3xl:text-[14px] text-[#CED4DA]",children:"Amount collectors pay to mint one of your NFTs"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[14px]",children:[(0,a.jsx)("div",{className:"rounded-lg p-[8px] 3xl:p-[17px] border border-[#ADB5BD]",children:(0,a.jsx)(vE,{className:"w-7 h-7 3xl:w-[32px] 3xl:h-[32px]"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[16px] 3xl:text-[20px] text-[#F8F9FA] font-bold",children:"Royalty %"}),(0,a.jsx)("span",{className:"text-[12px] 3xl:text-[14px] text-[#CED4DA]",children:"Share of Flowty marketplace sales of your NFTs that you receive"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[14px]",children:[(0,a.jsx)("div",{className:"rounded-lg p-[8px] 3xl:p-[17px] border border-[#ADB5BD]",children:(0,a.jsx)(sE,{className:"w-7 h-7 3xl:w-[32px] 3xl:h-[32px]"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[16px] 3xl:text-[20px] text-[#F8F9FA] font-bold",children:"Drop Details"}),(0,a.jsx)("span",{className:"text-[12px] 3xl:text-[14px] text-[#CED4DA]",children:"When and where collectors mint your NFT on Flowty"})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] 3xl:gap-[24px]",children:[(0,a.jsxs)("p",{className:"text-[14px] 3xl:text-[16px] text-[#ADB5BD] font-medium leading-6",children:["Post-drop you can do as much or as little as you want for NFT"," ",(0,a.jsx)("br",{}),"holders and collectors will be able to buy, sell, or hold your NFTs"]}),(0,a.jsx)("p",{className:"text-[14px] 3xl:text-[16px] text-[#ADB5BD] font-medium",children:"Try it today! As a reminder, there is no cost to launch a collection"})]}),(0,a.jsx)(s,{type:"submit",onClick:e,text:"GET STARTED",variant:"secondary",bgColor:"white"})]}),(0,a.jsx)("div",{className:"[320px] 3xl:w-[430px] hidden lg:flex",children:(0,a.jsx)("img",{src:"https://storage.googleapis.com/flowty-images/drops/rocketWelcomeView.webp",alt:"rocket with a sunset background",className:"max-w-[320px] 3xl:max-w-[430px] hidden lg:flex"})})]})]})})}),bE=()=>(0,a.jsx)("div",{className:"flex flex-col gap-6 flex-1 w-full pr-2",children:(0,a.jsx)(CA.w,{})});var wE,xE,CE;function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AE.apply(null,arguments)}function EE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",AE({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,wE||(wE=i.createElement("rect",{x:.5,y:.5,width:15,height:15,rx:7.5,fill:"white"})),xE||(xE=i.createElement("rect",{x:.5,y:.5,width:15,height:15,rx:7.5,stroke:"#F8F9FA"})),CE||(CE=i.createElement("path",{d:"M11.3337 5.5L6.75033 10.0833L4.66699 8",stroke:"#6E6E6E",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})))}const _E=i.forwardRef(EE);n.p;var TE,SE;function kE(){return kE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kE.apply(null,arguments)}function PE(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",kE({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,TE||(TE=i.createElement("rect",{x:.5,y:.5,width:19,height:19,rx:9.5,fill:"#6E6E6E"})),SE||(SE=i.createElement("rect",{x:.5,y:.5,width:19,height:19,rx:9.5,stroke:"#F8F9FA"})))}const DE=i.forwardRef(PE),FE=(n.p,e=>{let{value:t,name:n,disabled:r}=e;const[i]=(0,l.Mt)({name:n,type:"radio",value:t}),o=i.checked;return(0,a.jsxs)("button",{className:"flex items-center gap-2 ".concat(r?"pointer-events-none":""," "),onClick:()=>i.onChange({target:{name:n,value:t}}),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||i.onChange({target:{name:n,value:t}})},tabIndex:0,children:[(0,a.jsx)("input",{type:"radio",name:n,value:t,disabled:r,checked:o,onChange:()=>i.onChange({target:{name:n,value:t}}),className:"hidden"}),(0,a.jsx)("div",{className:"".concat(o?"h-[16px] w-[16px]":"h-[20px] w-[20px]"," transition-all duration-300 flex items-center justify-center"),children:o?(0,a.jsx)(_E,{className:"h-full w-full"}):(0,a.jsx)(DE,{className:"h-full w-full"})})]})}),NE=e=>{let{name:t,value:n,image:r,description:i,labelMapping:o,pillContent:s,disabled:l,isLarge:c}=e;return(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsxs)("div",{className:"".concat(l?"cursor-not-allowed opacity-40 border-[#495057]":"cursor-pointer"," flex flex-1 flex-col border rounded-lg border-[#ADB5BD] w-full h-full ").concat(!c&&"gap-[8px]"),style:{backdropFilter:"blur(21.03209114074707px)",background:l?"linear-gradient(153deg, rgba(255, 255, 255, 0.12)0%, rgba(255, 255, 255, 0.06)100%)":"linear-gradient(153deg, rgba(255, 255, 255, 0.16)0%, rgba(255, 255, 255, 0.08)100%)"},children:[(0,a.jsxs)("div",{className:"flex w-full ".concat(c?"p-[10.67px] 3xl:p-[16px]":"px-[10px] pt-[10px]"," justify-between items-center"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 3xl:gap-3",children:[(0,a.jsx)("div",{className:"bg-[#575656]  border-[#434242] ".concat(c?"p-[5.33px] 3xl-p[8px] border-[4px]":"p-1 3xl:p-[5.333px] border-[2.667px]"," rounded-[2.667px] 3xl:rounded-md"),children:(0,a.jsx)(r,{className:"w-[17.333px] h-[17.333px] 3xl:max-w-[26px] 3xl:max-h-[26px]","aria-label":n})}),(0,a.jsx)("div",{className:"".concat(c?"text-[14px] 3xl:text-[18px]":"text-[8px] 3xl:text-xs font-semibold"," text-white leading-[18.667px] 3xl:leading-7"),children:o[n]})]}),(0,a.jsx)(FE,{name:t,value:n,disabled:l})]}),c&&(0,a.jsx)("hr",{className:"w-full ".concat(l?"bg-[#495057]":"bg-[#ADB5BD]")}),(0,a.jsxs)("div",{className:"".concat(c?"p-[10px] 3xl:p-4 gap-[10px] 3xl:gap-4":"px-[10px] pb-[18px] gap-2"," flex flex-col text-[#ADB5BD]"),children:[(0,a.jsx)("p",{className:"".concat(c?"leading-[13px] 3xl:leading-5 text-[12px] 3xl:text-[14px]":"text-xs 3xl:text-[14px] leading-5"),children:i}),s&&(0,a.jsx)("div",{className:"w-[100px] h-[25px]"})]})]}),s&&(0,a.jsx)("div",{className:"absolute ".concat(c?"bottom-[12px] left-[12px] 3xl:bottom-[15px] 3xl:left-[15px]":"bottom-[10px] left-[10px] 3xl:bottom-[10px] 3xl:left-[10px]"," flex text-gray-100 justify-start bg-[#757575] w-fit border border-[#757575] text-[10px] 3xl:text-[12px] rounded-[10.667px] 3xl:rounded-[16px] ").concat(c?"py-[1.333px] 3xl:py-[2px] px-[6.667px] 3xl:px-[10px]":"py-[2px] px-[10px]"," leading-[13.333px] 3xl:leading-[20px] opacity-100"),children:s})]})},IE=e=>{let{options:t,classNames:n,isLarge:r=!1}=e;return(0,a.jsx)("div",{className:"flex ".concat(n," ").concat(r?"gap-4 3xl:gap-6":"gap-3"),children:t.map((e=>(0,a.jsx)(NE,{name:e.name,labelMapping:e.labelMapping,value:e.value,image:e.image,description:e.description,pillContent:e.pillContent,disabled:e.disabled,isLarge:r},e.value)))})},RE=e=>{let{name:t,title:n,className:r,isOptional:i=!1,toolTip:o,inputError:s=!1,errorMessage:l}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] w-full",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("div",{className:"text-white text-xs 3xl:text-lg font-bold",children:n}),o]}),i&&(0,a.jsx)("div",{className:"text-[#6C757D] text-xs 3xl:text-lg font-bold",children:"(Optional)"})]}),(0,a.jsx)(Wt,{disabled:"creatorWalletAddress"===t,name:t,className:r,inputError:s,errorMessage:l})]})};var OE=n(5982),jE=n.n(OE),ME=n(65587),LE=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function BE(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=LE.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var UE=[".DS_Store","Thumbs.db"];function VE(e){return"object"===typeof e&&null!==e}function HE(e){return GE(e.target.files).map((function(e){return BE(e)}))}function zE(e){return(0,ME.sH)(this,void 0,void 0,(function(){return(0,ME.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return BE(e)}))]}}))}))}function WE(e,t){return(0,ME.sH)(this,void 0,void 0,(function(){var n;return(0,ME.YH)(this,(function(r){switch(r.label){case 0:return e.items?(n=GE(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(YE))]):[3,2];case 1:return[2,qE(KE(r.sent()))];case 2:return[2,qE(GE(e.files).map((function(e){return BE(e)})))]}}))}))}function qE(e){return e.filter((function(e){return-1===UE.indexOf(e.name)}))}function GE(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function YE(e){if("function"!==typeof e.webkitGetAsEntry)return QE(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ZE(t):QE(e)}function KE(e){return e.reduce((function(e,t){return(0,ME.fX)((0,ME.fX)([],(0,ME.zs)(e),!1),(0,ME.zs)(Array.isArray(t)?KE(t):[t]),!1)}),[])}function QE(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=BE(t);return Promise.resolve(n)}function XE(e){return(0,ME.sH)(this,void 0,void 0,(function(){return(0,ME.YH)(this,(function(t){return[2,e.isDirectory?ZE(e):JE(e)]}))}))}function ZE(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return(0,ME.sH)(o,void 0,void 0,(function(){var o,a,s;return(0,ME.YH)(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=l.sent(),e(o),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(XE)),r.push(s),i(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function JE(e){return(0,ME.sH)(this,void 0,void 0,(function(){return(0,ME.YH)(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=BE(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var $E=n(51557);function e_(e){return function(e){if(Array.isArray(e))return a_(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t_(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 n_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t_(Object(n),!0).forEach((function(t){r_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||o_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o_(e,t){if(e){if("string"===typeof e)return a_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a_(e,t):void 0}}function a_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s_="file-invalid-type",l_="file-too-large",c_="file-too-small",u_="too-many-files",d_=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:s_,message:"File type must be ".concat(t)}},p_=function(e){return{code:l_,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},h_=function(e){return{code:c_,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},f_={code:u_,message:"Too many files"};function m_(e,t){var n="application/x-moz-file"===e.type||(0,$E.A)(e,t);return[n,n?null:d_(t)]}function g_(e,t,n){if(v_(e.size))if(v_(t)&&v_(n)){if(e.size>n)return[!1,p_(n)];if(e.size<t)return[!1,h_(t)]}else{if(v_(t)&&e.size<t)return[!1,h_(t)];if(v_(n)&&e.size>n)return[!1,p_(n)]}return[!0,null]}function v_(e){return void 0!==e&&null!==e}function y_(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function b_(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function w_(e){e.preventDefault()}function x_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!y_(e)&&t&&t.apply(void 0,[e].concat(r)),y_(e)}))}}function C_(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function A_(e){return/^.*\.[\w]+$/.test(e)}var E_=["children"],__=["open"],T_=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],S_=["refKey","onChange","onClick"];function k_(e){return function(e){if(Array.isArray(e))return F_(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||D_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D_(e,t){if(e){if("string"===typeof e)return F_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F_(e,t):void 0}}function F_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N_(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 I_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N_(Object(n),!0).forEach((function(t){R_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O_(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}var j_=(0,i.forwardRef)((function(e,t){var n=e.children,r=B_(O_(e,E_)),o=r.open,a=O_(r,__);return(0,i.useImperativeHandle)(t,(function(){return{open:o}}),[o]),i.createElement(i.Fragment,null,n(I_(I_({},a),{},{open:o})))}));j_.displayName="Dropzone";var M_={disabled:!1,getFilesFromEvent:function(e){return(0,ME.sH)(this,void 0,void 0,(function(){return(0,ME.YH)(this,(function(t){return VE(e)&&VE(e.dataTransfer)?[2,WE(e.dataTransfer,e.type)]:function(e){return VE(e)&&VE(e.target)}(e)?[2,HE(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,zE(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};j_.defaultProps=M_,j_.propTypes={children:jE().func,accept:jE().objectOf(jE().arrayOf(jE().string)),multiple:jE().bool,preventDropOnDocument:jE().bool,noClick:jE().bool,noKeyboard:jE().bool,noDrag:jE().bool,noDragEventsBubbling:jE().bool,minSize:jE().number,maxSize:jE().number,maxFiles:jE().number,disabled:jE().bool,getFilesFromEvent:jE().func,onFileDialogCancel:jE().func,onFileDialogOpen:jE().func,useFsAccessApi:jE().bool,autoFocus:jE().bool,onDragEnter:jE().func,onDragLeave:jE().func,onDragOver:jE().func,onDrop:jE().func,onDropAccepted:jE().func,onDropRejected:jE().func,onError:jE().func,validator:jE().func};var L_={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function B_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=I_(I_({},M_),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,C=t.noKeyboard,A=t.noDrag,E=t.noDragEventsBubbling,_=t.onError,T=t.validator,S=(0,i.useMemo)((function(){return function(e){if(v_(e))return Object.entries(e).reduce((function(e,t){var n=i_(t,2),r=n[0],i=n[1];return[].concat(e_(e),[r],e_(i))}),[]).filter((function(e){return C_(e)||A_(e)})).join(",")}(n)}),[n]),k=(0,i.useMemo)((function(){return function(e){if(v_(e)){var t=Object.entries(e).filter((function(e){var t=i_(e,2),n=t[0],r=t[1],i=!0;return C_(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(A_)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=i_(t,2),r=n[0],i=n[1];return n_(n_({},e),{},r_({},r,i))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),P=(0,i.useMemo)((function(){return"function"===typeof v?v:V_}),[v]),D=(0,i.useMemo)((function(){return"function"===typeof g?g:V_}),[g]),F=(0,i.useRef)(null),N=(0,i.useRef)(null),I=P_((0,i.useReducer)(U_,L_),2),R=I[0],O=I[1],j=R.isFocused,M=R.isFileDialogActive,L=(0,i.useRef)("undefined"!==typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),B=function(){!L.current&&M&&setTimeout((function(){N.current&&(N.current.files.length||(O({type:"closeDialog"}),D()))}),300)};(0,i.useEffect)((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[N,M,D,L]);var U=(0,i.useRef)([]),V=function(e){F.current&&F.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,i.useEffect)((function(){return w&&(document.addEventListener("dragover",w_,!1),document.addEventListener("drop",V,!1)),function(){w&&(document.removeEventListener("dragover",w_),document.removeEventListener("drop",V))}}),[F,w]),(0,i.useEffect)((function(){return!r&&b&&F.current&&F.current.focus(),function(){}}),[F,b,r]);var H=(0,i.useCallback)((function(e){_?_(e):console.error(e)}),[_]),z=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(k_(U.current),[e.target]),b_(e)&&Promise.resolve(o(e)).then((function(t){if(!y_(e)||E){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=i_(m_(e,n),1)[0],o=i_(g_(e,r,i),1)[0],a=s?s(e):null;return t&&o&&!a}))}({files:t,accept:S,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:T});O({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return H(e)}))}),[o,u,H,E,S,s,a,l,c,T]),W=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=b_(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1}),[p,E]),q=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return F.current&&F.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(O({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),b_(e)&&d&&d(e))}),[F,d,E]),G=(0,i.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=P_(m_(e,S),2),i=t[0],o=t[1],l=P_(g_(e,s,a),2),c=l[0],u=l[1],d=T?T(e):null;if(i&&c&&!d)n.push(e);else{var p=[o,u];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[f_]})})),n.splice(0)),O({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&f&&f(n,t)}),[O,l,S,s,a,c,h,f,m,T]),Y=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],b_(e)&&Promise.resolve(o(e)).then((function(t){y_(e)&&!E||G(t,e)})).catch((function(e){return H(e)})),O({type:"reset"})}),[o,G,H,E]),K=(0,i.useCallback)((function(){if(L.current){O({type:"openDialog"}),P();var e={multiple:l,types:k};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){G(e,null),O({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?H(e):(L.current=!1,N.current?(N.current.value=null,N.current.click()):H(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(D(e),O({type:"closeDialog"}))}))}else N.current&&(O({type:"openDialog"}),P(),N.current.value=null,N.current.click())}),[O,P,D,y,G,H,k,l]),Q=(0,i.useCallback)((function(e){F.current&&F.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[F,K]),X=(0,i.useCallback)((function(){O({type:"focus"})}),[]),Z=(0,i.useCallback)((function(){O({type:"blur"})}),[]),J=(0,i.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[x,K]),$=function(e){return r?null:e},ee=function(e){return C?null:$(e)},te=function(e){return A?null:$(e)},ne=function(e){E&&e.stopPropagation()},re=(0,i.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,h=O_(e,T_);return I_(I_(R_({onKeyDown:ee(x_(o,Q)),onFocus:ee(x_(a,X)),onBlur:ee(x_(s,Z)),onClick:$(x_(l,J)),onDragEnter:te(x_(c,z)),onDragOver:te(x_(u,W)),onDragLeave:te(x_(d,q)),onDrop:te(x_(p,Y)),role:"string"===typeof i&&""!==i?i:"presentation"},n,F),r||C?{}:{tabIndex:0}),h)}}),[F,Q,X,Z,J,z,W,q,Y,C,A,r]),ie=(0,i.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,i.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=O_(e,S_);return I_(I_({},R_({accept:S,multiple:l,type:"file",style:{display:"none"},onChange:$(x_(r,Y)),onClick:$(x_(i,ie)),tabIndex:-1},n,N)),o)}}),[N,n,l,Y,r]);return I_(I_({},R),{},{isFocused:j&&!r,getRootProps:re,getInputProps:oe,rootRef:F,inputRef:N,open:$(K)})}function U_(e,t){switch(t.type){case"focus":return I_(I_({},e),{},{isFocused:!0});case"blur":return I_(I_({},e),{},{isFocused:!1});case"openDialog":return I_(I_({},L_),{},{isFileDialogActive:!0});case"closeDialog":return I_(I_({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return I_(I_({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return I_(I_({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return I_({},L_);default:return e}}function V_(){}var H_=n(22119);var z_=function(){return z_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},z_.apply(this,arguments)};Object.create;function W_(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var q_=n(88043),G_=n.n(q_),Y_="-ms-",K_="-moz-",Q_="-webkit-",X_="comm",Z_="rule",J_="decl",$_="@import",eT="@keyframes",tT="@layer",nT=Math.abs,rT=String.fromCharCode,iT=Object.assign;function oT(e){return e.trim()}function aT(e,t){return(e=t.exec(e))?e[0]:e}function sT(e,t,n){return e.replace(t,n)}function lT(e,t,n){return e.indexOf(t,n)}function cT(e,t){return 0|e.charCodeAt(t)}function uT(e,t,n){return e.slice(t,n)}function dT(e){return e.length}function pT(e){return e.length}function hT(e,t){return t.push(e),e}function fT(e,t){return e.filter((function(e){return!aT(e,t)}))}var mT=1,gT=1,vT=0,yT=0,bT=0,wT="";function xT(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:mT,column:gT,length:a,return:"",siblings:s}}function CT(e,t){return iT(xT("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function AT(e){for(;e.root;)e=CT(e.root,{children:[e]});hT(e,e.siblings)}function ET(){return bT=yT>0?cT(wT,--yT):0,gT--,10===bT&&(gT=1,mT--),bT}function _T(){return bT=yT<vT?cT(wT,yT++):0,gT++,10===bT&&(gT=1,mT++),bT}function TT(){return cT(wT,yT)}function ST(){return yT}function kT(e,t){return uT(wT,e,t)}function PT(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DT(e){return mT=gT=1,vT=dT(wT=e),yT=0,[]}function FT(e){return wT="",e}function NT(e){return oT(kT(yT-1,OT(91===e?e+2:40===e?e+1:e)))}function IT(e){for(;(bT=TT())&&bT<33;)_T();return PT(e)>2||PT(bT)>3?"":" "}function RT(e,t){for(;--t&&_T()&&!(bT<48||bT>102||bT>57&&bT<65||bT>70&&bT<97););return kT(e,ST()+(t<6&&32==TT()&&32==_T()))}function OT(e){for(;_T();)switch(bT){case e:return yT;case 34:case 39:34!==e&&39!==e&&OT(bT);break;case 40:41===e&&OT(e);break;case 92:_T()}return yT}function jT(e,t){for(;_T()&&e+bT!==57&&(e+bT!==84||47!==TT()););return"/*"+kT(t,yT-1)+"*"+rT(47===e?e:_T())}function MT(e){for(;!PT(TT());)_T();return kT(e,yT)}function LT(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function BT(e,t,n,r){switch(e.type){case tT:if(e.children.length)break;case $_:case J_:return e.return=e.return||e.value;case X_:return"";case eT:return e.return=e.value+"{"+LT(e.children,r)+"}";case Z_:if(!dT(e.value=e.props.join(",")))return""}return dT(n=LT(e.children,r))?e.return=e.value+"{"+n+"}":""}function UT(e,t,n){switch(function(e,t){return 45^cT(e,0)?(((t<<2^cT(e,0))<<2^cT(e,1))<<2^cT(e,2))<<2^cT(e,3):0}(e,t)){case 5103:return Q_+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Q_+e+e;case 4789:return K_+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q_+e+K_+e+Y_+e+e;case 5936:switch(cT(e,t+11)){case 114:return Q_+e+Y_+sT(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q_+e+Y_+sT(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q_+e+Y_+sT(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Q_+e+Y_+e+e;case 6165:return Q_+e+Y_+"flex-"+e+e;case 5187:return Q_+e+sT(e,/(\w+).+(:[^]+)/,Q_+"box-$1$2"+Y_+"flex-$1$2")+e;case 5443:return Q_+e+Y_+"flex-item-"+sT(e,/flex-|-self/g,"")+(aT(e,/flex-|baseline/)?"":Y_+"grid-row-"+sT(e,/flex-|-self/g,""))+e;case 4675:return Q_+e+Y_+"flex-line-pack"+sT(e,/align-content|flex-|-self/g,"")+e;case 5548:return Q_+e+Y_+sT(e,"shrink","negative")+e;case 5292:return Q_+e+Y_+sT(e,"basis","preferred-size")+e;case 6060:return Q_+"box-"+sT(e,"-grow","")+Q_+e+Y_+sT(e,"grow","positive")+e;case 4554:return Q_+sT(e,/([^-])(transform)/g,"$1"+Q_+"$2")+e;case 6187:return sT(sT(sT(e,/(zoom-|grab)/,Q_+"$1"),/(image-set)/,Q_+"$1"),e,"")+e;case 5495:case 3959:return sT(e,/(image-set\([^]*)/,Q_+"$1$`$1");case 4968:return sT(sT(e,/(.+:)(flex-)?(.*)/,Q_+"box-pack:$3"+Y_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q_+e+e;case 4200:if(!aT(e,/flex-|baseline/))return Y_+"grid-column-align"+uT(e,t)+e;break;case 2592:case 3360:return Y_+sT(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,aT(e.props,/grid-\w+-end/)}))?~lT(e+(n=n[t].value),"span",0)?e:Y_+sT(e,"-start","")+e+Y_+"grid-row-span:"+(~lT(n,"span",0)?aT(n,/\d+/):+aT(n,/\d+/)-+aT(e,/\d+/))+";":Y_+sT(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return aT(e.props,/grid-\w+-start/)}))?e:Y_+sT(sT(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return sT(e,/(.+)-inline(.+)/,Q_+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dT(e)-1-t>6)switch(cT(e,t+1)){case 109:if(45!==cT(e,t+4))break;case 102:return sT(e,/(.+:)(.+)-([^]+)/,"$1"+Q_+"$2-$3$1"+K_+(108==cT(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lT(e,"stretch",0)?UT(sT(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return sT(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return Y_+n+":"+r+s+(i?Y_+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===cT(e,t+6))return sT(e,":",":"+Q_)+e;break;case 6444:switch(cT(e,45===cT(e,14)?18:11)){case 120:return sT(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Q_+(45===cT(e,14)?"inline-":"")+"box$3$1"+Q_+"$2$3$1"+Y_+"$2box$3")+e;case 100:return sT(e,":",":"+Y_)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return sT(e,"scroll-","scroll-snap-")+e}return e}function VT(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case J_:return void(e.return=UT(e.value,e.length,n));case eT:return LT([CT(e,{value:sT(e.value,"@","@"+Q_)})],r);case Z_:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(aT(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":AT(CT(e,{props:[sT(t,/:(read-\w+)/,":"+K_+"$1")]})),AT(CT(e,{props:[t]})),iT(e,{props:fT(n,r)});break;case"::placeholder":AT(CT(e,{props:[sT(t,/:(plac\w+)/,":"+Q_+"input-$1")]})),AT(CT(e,{props:[sT(t,/:(plac\w+)/,":"+K_+"$1")]})),AT(CT(e,{props:[sT(t,/:(plac\w+)/,Y_+"input-$1")]})),AT(CT(e,{props:[t]})),iT(e,{props:fT(n,r)})}return""}))}}function HT(e){return FT(zT("",null,null,null,[""],e=DT(e),0,[0],e))}function zT(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",w=i,x=o,C=r,A=b;g;)switch(f=y,y=_T()){case 40:if(108!=f&&58==cT(A,d-1)){-1!=lT(A+=sT(NT(y),"&","&\f"),"&\f",nT(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:A+=NT(y);break;case 9:case 10:case 13:case 32:A+=IT(f);break;case 92:A+=RT(ST()-1,7);continue;case 47:switch(TT()){case 42:case 47:hT(qT(jT(_T(),ST()),t,n,l),l);break;default:A+="/"}break;case 123*m:s[c++]=dT(A)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(A=sT(A,/\f/g,"")),h>0&&dT(A)-d&&hT(h>32?GT(A+";",r,n,d-1,l):GT(sT(A," ","")+";",r,n,d-2,l),l);break;case 59:A+=";";default:if(hT(C=WT(A,t,n,c,u,i,s,b,w=[],x=[],d,o),o),123===y)if(0===u)zT(A,t,C,C,w,o,d,s,x);else switch(99===p&&110===cT(A,3)?100:p){case 100:case 108:case 109:case 115:zT(e,C,C,r&&hT(WT(e,C,C,0,0,i,s,b,i,w=[],d,x),x),i,x,d,s,r?w:x);break;default:zT(A,C,C,C,[""],x,0,s,x)}}c=u=h=0,m=v=1,b=A="",d=a;break;case 58:d=1+dT(A),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ET())continue;switch(A+=rT(y),y*m){case 38:v=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(dT(A)-1)*v,v=1;break;case 64:45===TT()&&(A+=NT(_T())),p=TT(),u=d=dT(b=A+=MT(ST())),y++;break;case 45:45===f&&2==dT(A)&&(m=0)}}return o}function WT(e,t,n,r,i,o,a,s,l,c,u,d){for(var p=i-1,h=0===i?o:[""],f=pT(h),m=0,g=0,v=0;m<r;++m)for(var y=0,b=uT(e,p+1,p=nT(g=a[m])),w=e;y<f;++y)(w=oT(g>0?h[y]+" "+b:sT(b,/&\f/g,h[y])))&&(l[v++]=w);return xT(e,t,n,0===i?Z_:s,l,c,u,d)}function qT(e,t,n,r){return xT(e,t,n,X_,rT(bT),uT(e,2,-2),0,r)}function GT(e,t,n,r,i){return xT(e,t,n,J_,uT(e,0,r),uT(e,r+1,-1),r,i)}var YT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KT="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_ATTR)||"data-styled",QT="active",XT="data-styled-version",ZT="6.1.12",JT="/*!sc*/\n",$T="undefined"!=typeof window&&"HTMLElement"in window,eS=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY)),tS=(new Set,Object.freeze([])),nS=Object.freeze({});function rS(e,t,n){return void 0===n&&(n=nS),e.theme!==n.theme&&e.theme||t||n.theme}var iS=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),oS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aS=/(^-|-$)/g;function sS(e){return e.replace(oS,"-").replace(aS,"")}var lS=/(a)(d)/gi,cS=52,uS=function(e){return String.fromCharCode(e+(e>25?39:97))};function dS(e){var t,n="";for(t=Math.abs(e);t>cS;t=t/cS|0)n=uS(t%cS)+n;return(uS(t%cS)+n).replace(lS,"$1-$2")}var pS,hS=5381,fS=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},mS=function(e){return fS(hS,e)};function gS(e){return dS(mS(e)>>>0)}function vS(e){return e.displayName||e.name||"Component"}function yS(e){return"string"==typeof e&&!0}var bS="function"==typeof Symbol&&Symbol.for,wS=bS?Symbol.for("react.memo"):60115,xS=bS?Symbol.for("react.forward_ref"):60112,CS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ES={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_S=((pS={})[xS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pS[wS]=ES,pS);function TS(e){return("type"in(t=e)&&t.type.$$typeof)===wS?ES:"$$typeof"in e?_S[e.$$typeof]:CS;var t}var SS=Object.defineProperty,kS=Object.getOwnPropertyNames,PS=Object.getOwnPropertySymbols,DS=Object.getOwnPropertyDescriptor,FS=Object.getPrototypeOf,NS=Object.prototype;function IS(e,t,n){if("string"!=typeof t){if(NS){var r=FS(t);r&&r!==NS&&IS(e,r,n)}var i=kS(t);PS&&(i=i.concat(PS(t)));for(var o=TS(e),a=TS(t),s=0;s<i.length;++s){var l=i[s];if(!(l in AS||n&&n[l]||a&&l in a||o&&l in o)){var c=DS(t,l);try{SS(e,l,c)}catch(e){}}}}return e}function RS(e){return"function"==typeof e}function OS(e){return"object"==typeof e&&"styledComponentId"in e}function jS(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function MS(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function LS(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function BS(e,t,n){if(void 0===n&&(n=!1),!n&&!LS(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=BS(e[r],t[r]);else if(LS(t))for(var r in t)e[r]=BS(e[r],t[r]);return e}function US(e,t){Object.defineProperty(e,"toString",{value:t})}function VS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var HS=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw VS(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(JT);return t},e}(),zS=new Map,WS=new Map,qS=1,GS=function(e){if(zS.has(e))return zS.get(e);for(;WS.has(qS);)qS++;var t=qS++;return zS.set(e,t),WS.set(t,e),t},YS=function(e,t){qS=t+1,zS.set(e,t),WS.set(t,e)},KS="style[".concat(KT,"][").concat(XT,'="').concat(ZT,'"]'),QS=new RegExp("^".concat(KT,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),XS=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ZS=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(JT),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(QS);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(YS(u,c),XS(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},JS=function(e){for(var t=document.querySelectorAll(KS),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(KT)!==QT&&(ZS(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function $S(){return n.nc}var ek=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(KT,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(KT,QT),r.setAttribute(XT,ZT);var a=$S();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},tk=function(){function e(e){this.element=ek(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw VS(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),nk=function(){function e(e){this.element=ek(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),rk=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ik=$T,ok={isServer:!$T,useCSSOMInjection:!eS},ak=function(){function e(e,t,n){void 0===e&&(e=nS),void 0===t&&(t={});var r=this;this.options=z_(z_({},ok),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&$T&&ik&&(ik=!1,JS(this)),US(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return WS.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(KT,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(JT)},o=0;o<n;o++)i(o);return r}(r)}))}return e.registerId=function(e){return GS(e)},e.prototype.rehydrate=function(){!this.server&&$T&&JS(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(z_(z_({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new rk(n):t?new tk(n):new nk(n)}(this.options),new HS(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(GS(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(GS(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(GS(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sk=/&/g,lk=/^\s*\/\/.*$/gm;function ck(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ck(e.children,t)),e}))}function uk(e){var t,n,r,i=void 0===e?nS:e,o=i.options,a=void 0===o?nS:o,s=i.plugins,l=void 0===s?tS:s,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===Z_&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(sk,n).replace(r,c))})),a.prefix&&u.push(VT),u.push(BT);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(lk,""),c=HT(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(c=ck(c,a.namespace));var d,p=[];return LT(c,function(e){var t=pT(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||VS(15),fS(e,t.name)}),hS).toString():"",d}var dk=new ak,pk=uk(),hk=i.createContext({shouldForwardProp:void 0,styleSheet:dk,stylis:pk}),fk=(hk.Consumer,i.createContext(void 0));function mk(){return(0,i.useContext)(hk)}function gk(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=mk().styleSheet,a=(0,i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,i.useMemo)((function(){return uk({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,i.useEffect)((function(){G_()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,i.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:s}}),[e.shouldForwardProp,a,s]);return i.createElement(hk.Provider,{value:l},i.createElement(fk.Provider,{value:s},e.children))}var vk=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pk);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,US(this,(function(){throw VS(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=pk),this.name+e.hash},e}(),yk=function(e){return e>="A"&&e<="Z"};function bk(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;yk(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var wk=function(e){return null==e||!1===e||""===e},xk=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!wk(o)&&(Array.isArray(o)&&o.isCss||RS(o)?r.push("".concat(bk(i),":"),o,";"):LS(o)?r.push.apply(r,W_(W_(["".concat(i," {")],xk(o),!1),["}"],!1)):r.push("".concat(bk(i),": ").concat((t=i,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in YT||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ck(e,t,n,r){return wk(e)?[]:OS(e)?[".".concat(e.styledComponentId)]:RS(e)?!RS(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ck(e(t),t,n,r):e instanceof vk?n?(e.inject(n,r),[e.getName(r)]):[e]:LS(e)?xk(e):Array.isArray(e)?Array.prototype.concat.apply(tS,e.map((function(e){return Ck(e,t,n,r)}))):[e.toString()];var i}function Ak(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(RS(n)&&!OS(n))return!1}return!0}var Ek=mS(ZT),_k=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ak(e),this.componentId=t,this.baseHash=fS(Ek,t),this.baseStyle=n,ak.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=jS(r,this.staticRulesId);else{var i=MS(Ck(this.rules,e,t,n)),o=dS(fS(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=jS(r,o),this.staticRulesId=o}else{for(var s=fS(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=MS(Ck(u,e,t,n));s=fS(s,d+c),l+=d}}if(l){var p=dS(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=jS(r,p)}}return r},e}(),Tk=i.createContext(void 0);Tk.Consumer;var Sk={};new Set;function kk(e,t,n){var r=OS(e),o=e,a=!yS(e),s=t.attrs,l=void 0===s?tS:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":sS(e);Sk[n]=(Sk[n]||0)+1;var r="".concat(n,"-").concat(gS(ZT+n+Sk[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return yS(e)?"styled.".concat(e):"Styled(".concat(vS(e),")")}(e):d,h=t.displayName&&t.componentId?"".concat(sS(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(e,t){return g(e,t)&&v(e,t)}}else m=g}var y=new _k(n,h,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,c=e.target,u=i.useContext(Tk),d=mk(),p=e.shouldForwardProp||d.shouldForwardProp,h=rS(t,u,a)||nS,f=function(e,t,n){for(var r,i=z_(z_({},t),{className:void 0,theme:n}),o=0;o<e.length;o+=1){var a=RS(r=e[o])?r(i):r;for(var s in a)i[s]="className"===s?jS(i[s],a[s]):"style"===s?z_(z_({},i[s]),a[s]):a[s]}return t.className&&(i.className=jS(i.className,t.className)),i}(r,t,h),m=f.as||c,g={};for(var v in f)void 0===f[v]||"$"===v[0]||"as"===v||"theme"===v&&f.theme===h||("forwardedAs"===v?g.as=f.forwardedAs:p&&!p(v,m)||(g[v]=f[v]));var y=function(e,t){var n=mk();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=jS(s,l);return y&&(b+=" "+y),f.className&&(b+=" "+f.className),g[yS(m)&&!iS.has(m)?"class":"className"]=b,g.ref=n,(0,i.createElement)(m,g)}(w,e,t)}b.displayName=p;var w=i.forwardRef(b);return w.attrs=f,w.componentStyle=y,w.displayName=p,w.shouldForwardProp=m,w.foldedComponentIds=r?jS(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)BS(e,i[r],!0);return e}({},o.defaultProps,e):e}}),US(w,(function(){return".".concat(w.styledComponentId)})),a&&IS(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Pk(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var Dk=function(e){return Object.assign(e,{isCss:!0})};function Fk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(RS(e)||LS(e))return Dk(Ck(Pk(tS,W_([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ck(r):Dk(Ck(Pk(r,t)))}function Nk(e,t,n){if(void 0===n&&(n=nS),!t)throw VS(1,t);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,n,Fk.apply(void 0,W_([r],i,!1)))};return r.attrs=function(r){return Nk(e,t,z_(z_({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Nk(e,t,z_(z_({},n),r))},r}var Ik=function(e){return Nk(kk,e)},Rk=Ik;iS.forEach((function(e){Rk[e]=Ik(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ak(e),ak.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var i=r(MS(Ck(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&ak.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function Ok(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=MS(Fk.apply(void 0,W_([e],t,!1))),i=gS(r);return new vk(i,r)}var jk,Mk,Lk,Bk,Uk,Vk,Hk,zk,Wk;(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=$S(),r=MS([n&&'nonce="'.concat(n,'"'),"".concat(KT,'="true"'),"".concat(XT,'="').concat(ZT,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw VS(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw VS(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[KT]="",t[XT]=ZT,t.dangerouslySetInnerHTML={__html:n},t),o=$S();return o&&(r.nonce=o),[i.createElement("style",z_({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ak({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw VS(2);return i.createElement(gk,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw VS(3)}})(),"__sc-".concat(KT,"__");const qk="#4fa94d",Gk={"aria-busy":!0,role:"progressbar"},Yk=Rk.div(jk||(jk=(0,H_.A)(["\n  display: ",";\n"])),(e=>e.$visible?"flex":"none")),Kk=242.776657104492,Qk=Ok(Mk||(Mk=(0,H_.A)(["\n12.5% {\n  stroke-dasharray: ","px, ","px;\n  stroke-dashoffset: -","px;\n}\n43.75% {\n  stroke-dasharray: ","px, ","px;\n  stroke-dashoffset: -","px;\n}\n100% {\n  stroke-dasharray: ","px, ","px;\n  stroke-dashoffset: -","px;\n}\n"])),33.98873199462888,Kk,26.70543228149412,84.97182998657219,Kk,84.97182998657219,2.42776657104492,Kk,240.34889053344708),Xk=(Rk.path(Lk||(Lk=(0,H_.A)(["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"])),2.42776657104492,Kk,Qk,1.6),(e,t,n)=>{const r=Math.max(e,t),i=-n-r/2+1,o=2*n+r;return[i,i,o,o].join(" ")}),Zk=e=>{let{height:t=80,width:n=80,color:r=qk,secondaryColor:i=qk,ariaLabel:o="oval-loading",wrapperStyle:s,wrapperClass:l,visible:c=!0,strokeWidth:u=2,strokeWidthSecondary:d}=e;return(0,a.jsx)(Yk,{style:s,$visible:c,className:l,"data-testid":"oval-loading","aria-label":o,...Gk,children:(0,a.jsx)("svg",{width:n,height:t,viewBox:Xk(Number(u),Number(d||u),20),xmlns:"http://www.w3.org/2000/svg",stroke:r,"data-testid":"oval-svg",children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsxs)("g",{transform:"translate(1 1)",strokeWidth:Number(d||u),"data-testid":"oval-secondary-group",children:[(0,a.jsx)("circle",{strokeOpacity:".5",cx:"0",cy:"0",r:20,stroke:i,strokeWidth:u}),(0,a.jsx)("path",{d:(p=20,["M"+p+" 0c0-9.94-8.06",p,p,p].join("-")),children:(0,a.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"1s",repeatCount:"indefinite"})})]})})})});var p},Jk=Ok(Bk||(Bk=(0,H_.A)(["\nto {\n   transform: rotate(360deg);\n }\n"]))),$k=(Rk.svg(Uk||(Uk=(0,H_.A)(["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: 0.75s;\n"])),Jk),Rk.polyline(Vk||(Vk=(0,H_.A)(["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0) {\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1) {\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2) {\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3) {\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4) {\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5) {\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6) {\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7) {\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8) {\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9) {\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11) {\n    stroke-opacity: 0.92;\n  }\n"])),(e=>e.width)),Ok(Hk||(Hk=(0,H_.A)(["\nto {\n   stroke-dashoffset: 136;\n }\n"]))));Rk.polygon(zk||(zk=(0,H_.A)(["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"])),$k),Rk.svg(Wk||(Wk=(0,H_.A)(["\n  transform-origin: 50% 65%;\n"])));var eP,tP=n(15957);function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nP.apply(null,arguments)}function rP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",nP({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,eP||(eP=i.createElement("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",fill:"#ADB5BD"})))}const iP=i.forwardRef(rP);n.p;var oP,aP,sP,lP;function cP(){return cP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cP.apply(null,arguments)}function uP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",cP({width:47,height:46,viewBox:"0 0 47 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,oP||(oP=i.createElement("rect",{x:3.5,y:3,width:40,height:40,rx:20,fill:"#F2F4F7"})),aP||(aP=i.createElement("rect",{x:3.5,y:3,width:40,height:40,rx:20,stroke:"#F9FAFB",strokeWidth:6})),sP||(sP=i.createElement("g",{clipPath:"url(#clip0_6804_3713)"},i.createElement("path",{d:"M26.8335 26.3332L23.5002 22.9999M23.5002 22.9999L20.1669 26.3332M23.5002 22.9999V30.4999M30.4919 28.3249C31.3047 27.8818 31.9467 27.1806 32.3168 26.3321C32.6868 25.4835 32.7637 24.5359 32.5354 23.6388C32.307 22.7417 31.7865 21.9462 31.0558 21.3778C30.3251 20.8094 29.4259 20.5005 28.5002 20.4999H27.4502C27.198 19.5243 26.7278 18.6185 26.0752 17.8507C25.4225 17.0829 24.6042 16.4731 23.682 16.0671C22.7597 15.661 21.7573 15.4694 20.7503 15.5065C19.7433 15.5436 18.7578 15.8085 17.8679 16.2813C16.9779 16.7541 16.2068 17.4225 15.6124 18.2362C15.018 19.05 14.6158 19.9879 14.436 20.9794C14.2563 21.9709 14.3036 22.9903 14.5746 23.961C14.8455 24.9316 15.3329 25.8281 16.0002 26.5832",stroke:"#475467",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}))),lP||(lP=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_6804_3713"},i.createElement("rect",{width:20,height:20,fill:"white",transform:"translate(13.5 13)"})))))}const dP=i.forwardRef(uP),pP=(n.p,e=>{var t,n,r,s;let{title:c,name:u,imageType:d,toolTip:p,inputError:h,errorMessage:f,uploadImageFn:m,setFieldError:g,isLoggedUser:v=!1}=e;const[y,,{setValue:b}]=(0,l.Mt)(u),[w,x]=(0,i.useState)(!1),[C,A]=(0,i.useState)(!1),[E,_]=(0,i.useState)(null),[T,S]=(0,i.useState)(null),[k,P]=(0,i.useState)(!1),D=(0,i.useCallback)((async e=>{x(!0);const t=e[0];if(t){if(t.size>5e6)return g(u,"Max. file size 5MB"),_("Max. file size 5MB"),void x(!1);_(null);const e=new FileReader;e.onloadend=async()=>{const n=new Image;if(n.src=e.result,n.onload=async()=>{const{width:e,height:t}=n;S("THUMBNAIL"===d&&e/t!==1?"For optimal display, we recommend using a square image (1:1 aspect ratio)":"BANNER"===d&&e/t!==4?"For optimal display, we recommend using an image with a 4:1 aspect ratio":null)},m&&v){const n=await m(t);if(!n)return P(!0),g(u,"Failed to upload image"),void x(!1);const r={file:t,fileBase64:e.result,fileCid:String(null===n||void 0===n?void 0:n.cid),fileName:t.name};P(!1),b(r),x(!1)}else b({file:t,fileBase64:e.result,fileCid:null,fileName:t.name}),x(!1)},e.readAsDataURL(t)}else x(!1)}),[]),{getRootProps:F,getInputProps:N}=B_({accept:{"image/gif":[],"image/jpeg":[],"image/png":[],"image/svg+xml":[],"image/webp":[]},maxFiles:1,onDrop:D});return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-[8px] font-montserrat",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("div",{className:"text-white text-xs 3xl:text-lg font-bold",children:c}),p]}),(0,a.jsx)("div",{className:(0,o.cn)("bg-[linear-gradient(153deg,_#ffffff12_0%,_#ffffff0a_100%)] overflow-hidden w-full h-[128px] space-y-1 flex flex-col items-center justify-center rounded-lg border border-[#495057] cursor-pointer",{"border-[#495057]":!h,"border-[#FF6E25]":h||E||k}),...F(),children:y.value&&(y.value.fileBase64||y.value.fileCid)?(0,a.jsxs)("div",{className:"w-full h-[94px] px-[24px] flex justify-between",children:[(0,a.jsxs)("div",{className:"w-full flex items-center gap-[24px]",children:[(0,a.jsx)("img",{src:null!==(t=y.value)&&void 0!==t&&t.fileCid?"".concat(tP.n).concat(null===(n=y.value)||void 0===n?void 0:n.fileCid):y.value.fileBase64,alt:"uploaded",className:"rounded-lg ".concat(C?"":"hidden"," ").concat("BANNER"===d?"w-[240px] h-[60px]":"w-[94px] h-[94px]"),onLoad:()=>{A(!0)}}),(0,a.jsx)("div",{className:"w-[94px] h-[94px] rounded-lg animate-pulse bg-[#edf3f60a] ".concat(C?"hidden":"")}),(0,a.jsx)("p",{className:"text-white max-w-[180px] text-xs 3xl:text-sm overflow-hidden text-ellipsis",children:null===(r=y.value)||void 0===r?void 0:r.fileName})]}),(0,a.jsx)("button",{"data-testid":"delete-image",className:"self-start",onClick:e=>{e.stopPropagation(),b(null)},children:(0,a.jsx)(iP,{className:" h-5 w-5 3xl:h-6 3xl:w-6"})})]}):(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)("input",{...N(),"data-testid":u}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center w-full h-full gap-2 3xl:gap-4",children:[(0,a.jsx)("div",{children:w?(0,a.jsx)(Zk,{width:40,height:46,color:"#6C757D",secondaryColor:"#000"}):(0,a.jsx)(dP,{})}),(0,a.jsxs)("div",{className:"gap-[2.667px] 3xl:gap-1",children:[(0,a.jsxs)("div",{className:"text-[9.333px] leading-[13.333px] 3xl:text-sm 3xl:leading-5 text-center",children:[(0,a.jsx)("span",{className:"text-white text-[9.333px] leading-[13.333px] 3xl:text-sm 3xl:leading-5",children:"Click to Upload"}),(0,a.jsx)("span",{className:"text-[#6C757D] ml-1 text-[9.333px] leading-[13.333px] 3xl:text-sm 3xl:leading-5",children:"or drag and drop"})]}),(0,a.jsx)("div",{className:"text-[#6C757D] text-[8px] 3xl:text-xs leading-3 3xl:leading-5 text-center",children:"SVG, PNG, JPG, WEBP or GIF (max. 800x400px)"})]})]})]})}),k&&(0,a.jsxs)("p",{"data-testid":"".concat(u,"-error"),className:"w-auto text-end text-[#FF6E25] text-xs font-[400] ml-auto",children:["Image error. If this issue persists, contact us via"," ",(0,a.jsx)("a",{href:"https://discord.com/invite/flowty",target:"_blank",rel:"noreferrer",className:"text-white hover:underline",children:"Discord"})," ","or"," ",(0,a.jsx)("a",{href:"https://x.com/flowty_io",target:"_blank",rel:"noreferrer",className:"text-white hover:underline",children:"Twitter"}),"."]}),!k&&(f||E||T)&&(0,a.jsx)("p",{"data-testid":"".concat(u,"-error"),className:"w-full text-end text-[#FF6E25] text-xs whitespace-nowrap font-[400]",children:null!==(s=null!==f&&void 0!==f?f:E)&&void 0!==s?s:T})]})}),hP=(e,t,n)=>t[e]&&!!n[e],fP=(e,t,n)=>t[e]?n[e]:null;var mP=n(43619);let gP=function(e){return e.SingleImage="SINGLE_IMAGE",e.MultiImage="MULTI_IMAGE",e}({}),vP=function(e){return e.OpenEdition="OPEN_EDITION",e.LimitedEdition="LIMITED_EDITION",e}({});const yP=[Bt().shape({collectionEditionType:mt().oneOf(Object.values(vP)),collectionType:mt().oneOf(Object.values(gP))}),Bt().shape({collectionDescription:Tt().required("Please enter a description").max(2e3,"Description must be 2000 characters or less").test({message:"Description should be less than 200 words",test:e=>!(e.split(" ").length>200)}),collectionName:Tt().required("Please enter a collection name").max(50,"Collection name must be 50 characters or less").matches(/^[A-Za-z]/,"Collection name must begin with a letter"),nftImage:mt().required("Please upload an NFT image").test({message:"Please upload an NFT image",test:e=>{const t=e;return!(!t||!t.fileBase64&&!t.fileCid)}})}),Bt().shape({discordHandle:Tt().notRequired(),instagramHandle:Tt().notRequired(),nftBannerImage:mt().required("Please upload a banner image").test({message:"Please upload a banner image",test:e=>{const t=e;return!(!t||!t.fileBase64&&!t.fileCid)}}),nftThumbnailImage:mt().required("Please upload a thumbnail image").test({message:"Please upload a thumbnail image",test:e=>{const t=e;return!(!t||!t.fileBase64&&!t.fileCid)}}),twitterHandle:Tt().notRequired(),websiteURL:Tt().notRequired()}),Bt().shape({dropEndDateTime:Bt().shape({dateTime:kt().required("End Date & Time must be after Start Date & Time").test({message:"End Date & Time must be after Start Date & Time",test:function(e){var t;return e>(null===(t=this.options.context)||void 0===t?void 0:t.dropStartDateTime.dateTime)}}).test({message:"End date must be no more than 7 days from Start date",test:(e,t)=>{var n;const r=null===(n=t.options.context)||void 0===n?void 0:n.dropStartDateTime.dateTime;return!((0,mP.A)(e,r)>7)}})}),dropStartDateTime:Bt().shape({dateTime:kt().required("Please choose a Start Date & Time ").test({message:"Start date must be no more than 7 days from today",test:e=>!((0,mP.A)(e,Date.now())>7)}).test({message:"Start date must be after current date and time",test:e=>Math.abs((0,ug.A)(Date.now(),e))<=5||!(e<Date.now())})}),dropThumbnailImage:mt().required("Please upload a thumbnail").test({message:"Please upload a thumbnail",test:e=>{const t=e;return!(!t||!t.fileBase64&&!t.fileCid)}}),mintPrice:kt().notRequired().min(0,"Mint price can't be negative"),royalty:kt().notRequired().min(0,"Minimum Royalty: 0%").max(50,"Maximum Royalty: 50%")})];var bP,wP;function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xP.apply(null,arguments)}function CP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",xP({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,bP||(bP=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.38043 2.74023C2.44707 2.74023 1.69043 3.55822 1.69043 4.56726V13.7024C1.69043 14.7114 2.44707 15.5294 3.38043 15.5294H13.5204C14.4538 15.5294 15.2104 14.7114 15.2104 13.7024V4.56726C15.2104 3.55822 14.4538 2.74023 13.5204 2.74023H3.38043ZM13.5204 13.7024H3.38043L6.76043 6.39429L9.29543 11.8754L10.9854 8.22132L13.5204 13.7024Z",fill:"#F8F9FA"})),wP||(wP=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.48 10.4697C11.5467 10.4697 10.79 11.2877 10.79 12.2968V21.4319C10.79 22.4409 11.5467 23.2589 12.48 23.2589H22.62C23.5534 23.2589 24.31 22.4409 24.31 21.4319V12.2968C24.31 11.2877 23.5534 10.4697 22.62 10.4697H12.48ZM22.62 21.4319H12.48L15.86 14.1238L18.395 19.6049L20.085 15.9508L22.62 21.4319Z",fill:"#F8F9FA"})))}const AP=i.forwardRef(CP);n.p;var EP;function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_P.apply(null,arguments)}function TP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",_P({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,EP||(EP=i.createElement("g",{id:"Photo"},i.createElement("path",{id:"Icon",fillRule:"evenodd",clipRule:"evenodd",d:"M5.19961 3.90039C3.76367 3.90039 2.59961 5.06445 2.59961 6.50039V19.5004C2.59961 20.9363 3.76367 22.1004 5.19961 22.1004H20.7996C22.2355 22.1004 23.3996 20.9363 23.3996 19.5004V6.50039C23.3996 5.06445 22.2355 3.90039 20.7996 3.90039H5.19961ZM20.7996 19.5004H5.19961L10.3996 9.10039L14.2996 16.9004L16.8996 11.7004L20.7996 19.5004Z",fill:"#F8F9FA"}))))}const SP=i.forwardRef(TP),kP=(n.p,{[gP.SingleImage]:"Single Image",[gP.MultiImage]:"Multi-Image"}),PP=[{description:"Create and manage a single image NFT collection. Customize collection metadata to highlight your unique creation.",disabled:!1,image:SP,labelMapping:kP,name:"collectionType",pillContent:null,value:gP.SingleImage},{description:"Create and manage a multi-image NFT collection with varied..",disabled:!0,image:AP,labelMapping:kP,name:"collectionType",pillContent:"Coming Soon",value:gP.MultiImage}],DP=()=>{const{errors:e,touched:t,uploadImage:n,setFieldError:r,loggedUser:i}=HA();return(0,a.jsxs)("div",{className:"flex flex-col gap-[16px] 3xl:gap-[24px] items-center justify-center",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[6.667px] 3xl:gap-[12px]",children:[(0,a.jsx)("h1",{className:"text-white text-xs 3xl:text-lg font-bold",children:"Collection Type"}),(0,a.jsx)(IE,{options:PP,classNames:"flex"})]}),(0,a.jsx)("div",{className:"flex flex-1 w-full",children:(0,a.jsx)(pP,{title:"Upload NFT Image*",name:"nftImage",inputError:hP("nftImage",t,e),errorMessage:fP("nftImage",t,e),imageType:"THUMBNAIL",uploadImageFn:n,setFieldError:r,isLoggedUser:Boolean(i)})}),(0,a.jsx)(RE,{title:"Collection Name*",name:"collectionName",className:"h-[26.667px] 3xl:h-[40px] w-full text-xs 3xl:text-lg bg-[#04070B] border border-[#6C757D] font-semibold rounded-[4px] 3xl:rounded-md px-3 focus:outline-none text-white shrink-0 ".concat(hP("collectionName",t,e)?"border-[#FF6E25]":"border-[#6C757D]"),inputError:hP("collectionName",t,e),errorMessage:fP("collectionName",t,e)}),(0,a.jsx)(RE,{title:"Description*",name:"collectionDescription",className:"h-[26.667px] 3xl:h-[40px] w-full text-xs 3xl:text-lg bg-[#04070B] border border-[#6C757D] font-semibold rounded-[4px] 3xl:rounded-md px-3 focus:outline-none text-white shrink-0 ".concat(hP("collectionDescription",t,e)?"border-[#FF6E25]":"border-[#6C757D]"),inputError:hP("collectionDescription",t,e),errorMessage:fP("collectionDescription",t,e)})]})};var FP;function NP(){return NP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NP.apply(null,arguments)}function IP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",NP({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,FP||(FP=i.createElement("g",{id:"Icon/Solid/exclamation-circle"},i.createElement("path",{id:"Icon",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44772 13 10 13C10.5523 13 11 13.4477 11 14ZM10 5C9.44772 5 9 5.44772 9 6V10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10V6C11 5.44772 10.5523 5 10 5Z",fill:"#F8F9FA"}))))}const RP=i.forwardRef(IP),OP=(n.p,e=>{let{toolTipCustomId:t,clickable:n=!1,renderContent:r}=e;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(Tr.m_,{id:"".concat(t,"-tooltip"),style:{backgroundColor:"#F8F9FA",color:"#031021",fontSize:"12px",lineHeight:"1rem",padding:"10px",pointerEvents:"auto",textAlign:"center",width:"248px",zIndex:40},opacity:100,clickable:n,render:()=>(0,a.jsx)(a.Fragment,{children:r})}),(0,a.jsx)("div",{"data-tooltip-id":"".concat(t,"-tooltip"),"data-tooltip-place":"top",children:(0,a.jsx)(RP,{className:"h-[13.333px] w-[13.333px] 3xl:h-5 3xl-w:5"})})]})});var jP;function MP(){return MP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MP.apply(null,arguments)}function LP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",MP({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,jP||(jP=i.createElement("g",{id:"Twitter"},i.createElement("path",{id:"Vector",d:"M19.1663 2.49959C18.3683 3.06249 17.4848 3.49302 16.5497 3.77459C16.0478 3.19752 15.3808 2.7885 14.6389 2.60286C13.897 2.41722 13.1159 2.46392 12.4014 2.73664C11.6869 3.00935 11.0734 3.49493 10.6438 4.12769C10.2143 4.76045 9.98942 5.50987 9.99967 6.27459V7.10792C8.5352 7.1459 7.08407 6.8211 5.77551 6.16246C4.46696 5.50382 3.3416 4.53179 2.49967 3.33292C2.49967 3.33292 -0.833659 10.8329 6.66634 14.1663C4.95011 15.3312 2.90564 15.9154 0.833008 15.8329C8.33301 19.9996 17.4997 15.8329 17.4997 6.24959C17.4989 6.01747 17.4766 5.78592 17.433 5.55792C18.2835 4.71917 18.8837 3.66018 19.1663 2.49959Z",stroke:"#ADB5BD",strokeLinecap:"round",strokeLinejoin:"round"}))))}const BP=i.forwardRef(LP);n.p;var UP,VP=n(91324);function HP(){return HP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HP.apply(null,arguments)}function zP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",HP({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,UP||(UP=i.createElement("g",{id:"Frame"},i.createElement("path",{id:"Vector",d:"M6.4002 1.2002C3.53319 1.2002 1.2002 3.53319 1.2002 6.4002V13.6002C1.2002 16.4672 3.53319 18.8002 6.4002 18.8002H13.6002C16.4672 18.8002 18.8002 16.4672 18.8002 13.6002V6.4002C18.8002 3.53319 16.4672 1.2002 13.6002 1.2002H6.4002ZM6.4002 2.0002H13.6002C16.0348 2.0002 18.0002 3.9656 18.0002 6.4002V13.6002C18.0002 16.0348 16.0348 18.0002 13.6002 18.0002H6.4002C3.9656 18.0002 2.0002 16.0348 2.0002 13.6002V6.4002C2.0002 3.9656 3.9656 2.0002 6.4002 2.0002ZM14.8002 4.4002C14.588 4.4002 14.3845 4.48448 14.2345 4.63451C14.0845 4.78454 14.0002 4.98802 14.0002 5.2002C14.0002 5.41237 14.0845 5.61585 14.2345 5.76588C14.3845 5.91591 14.588 6.0002 14.8002 6.0002C15.0124 6.0002 15.2159 5.91591 15.3659 5.76588C15.5159 5.61585 15.6002 5.41237 15.6002 5.2002C15.6002 4.98802 15.5159 4.78454 15.3659 4.63451C15.2159 4.48448 15.0124 4.4002 14.8002 4.4002ZM10.0002 5.6002C7.57488 5.6002 5.6002 7.57488 5.6002 10.0002C5.6002 12.4255 7.57488 14.4002 10.0002 14.4002C12.4255 14.4002 14.4002 12.4255 14.4002 10.0002C14.4002 7.57488 12.4255 5.6002 10.0002 5.6002ZM10.0002 6.4002C11.9932 6.4002 13.6002 8.00723 13.6002 10.0002C13.6002 11.9932 11.9932 13.6002 10.0002 13.6002C8.00723 13.6002 6.4002 11.9932 6.4002 10.0002C6.4002 8.00723 8.00723 6.4002 10.0002 6.4002Z",fill:"#ADB5BD"}))))}const WP=i.forwardRef(zP);n.p;var qP;function GP(){return GP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GP.apply(null,arguments)}function YP(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",GP({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,qP||(qP=i.createElement("g",{id:"Discord"},i.createElement("path",{id:"Vector",d:"M7.5624 2.8002C7.5624 2.8002 5.01553 2.9752 3.3499 4.31269C3.34209 4.31582 3.33272 4.32051 3.3249 4.32519C3.03584 4.59238 2.81865 5.00644 2.5499 5.60019C2.28115 6.19394 1.99678 6.95801 1.7374 7.81269C1.22021 9.52363 0.799902 11.6236 0.799902 13.6002C0.79834 13.6705 0.815528 13.7393 0.849902 13.8002C1.43428 14.8268 2.50928 15.4471 3.5124 15.8377C4.51553 16.2283 5.44209 16.3846 5.9124 16.4002C6.04521 16.4049 6.17178 16.3439 6.2499 16.2377L7.2249 14.8877C8.01084 15.0736 8.93272 15.2002 9.9999 15.2002C11.0671 15.2002 11.989 15.0736 12.7749 14.8877L13.7499 16.2377C13.828 16.3439 13.9546 16.4049 14.0874 16.4002C14.5577 16.3846 15.4843 16.2283 16.4874 15.8377C17.4905 15.4471 18.5655 14.8268 19.1499 13.8002C19.1843 13.7393 19.2015 13.6705 19.1999 13.6002C19.1999 11.6236 18.7796 9.52363 18.2624 7.81269C18.003 6.95801 17.7187 6.19394 17.4499 5.60019C17.1812 5.00644 16.964 4.59238 16.6749 4.32519C16.6671 4.32051 16.6577 4.31582 16.6499 4.31269C14.9843 2.9752 12.4374 2.8002 12.4374 2.8002C12.4077 2.79707 12.3796 2.79707 12.3499 2.8002C12.2108 2.81895 12.0937 2.90957 12.0374 3.0377C12.0374 3.0377 11.9015 3.33613 11.8124 3.7627C11.0327 3.6377 10.3765 3.6002 9.9999 3.6002C9.62334 3.6002 8.96709 3.6377 8.1874 3.7627C8.09834 3.33613 7.9624 3.0377 7.9624 3.0377C7.89365 2.88145 7.73272 2.78613 7.5624 2.8002ZM7.3124 3.66269C7.34209 3.74395 7.3624 3.82051 7.3874 3.91269C6.48584 4.12207 5.49834 4.46426 4.5749 5.03769C4.42959 5.09863 4.33428 5.23926 4.32959 5.39707C4.32646 5.55332 4.41553 5.69863 4.55615 5.76738C4.69834 5.83457 4.86709 5.81426 4.9874 5.71269C6.84053 4.56426 9.19834 4.40019 9.9999 4.40019C10.8015 4.40019 13.1593 4.56426 15.0124 5.71269C15.1327 5.81426 15.3015 5.83457 15.4437 5.76738C15.5843 5.69863 15.6733 5.55332 15.6702 5.39707C15.6655 5.23926 15.5702 5.09863 15.4249 5.03769C14.5015 4.46426 13.514 4.12207 12.6124 3.91269C12.6374 3.82051 12.6577 3.74395 12.6874 3.66269C13.1437 3.71895 14.9171 3.95801 16.1249 4.91269C16.203 4.98457 16.4749 5.38457 16.7249 5.93769C16.9749 6.49082 17.2374 7.21113 17.4874 8.03769C17.9749 9.65019 18.3687 11.6393 18.3874 13.4627C17.9327 14.1986 17.0796 14.7455 16.1999 15.0877C15.3999 15.3986 14.653 15.5377 14.2624 15.5752L13.5874 14.6627C13.9312 14.5518 14.2405 14.4314 14.5124 14.3127C15.5218 13.8689 16.0624 13.4002 16.0624 13.4002C16.228 13.2518 16.2421 12.9971 16.0937 12.8314C15.9452 12.6658 15.6905 12.6518 15.5249 12.8002C15.5249 12.8002 15.1062 13.183 14.1874 13.5877C13.8499 13.7361 13.4405 13.883 12.9749 14.0127C12.8671 14.0002 12.7593 14.0314 12.6749 14.1002C11.9296 14.2814 11.0437 14.4002 9.9999 14.4002C8.94834 14.4002 8.06084 14.2705 7.3124 14.0877C7.22803 14.0314 7.1249 14.008 7.0249 14.0252C6.55771 13.8955 6.15146 13.7361 5.8124 13.5877C4.89365 13.183 4.4749 12.8002 4.4749 12.8002C4.38428 12.7158 4.25928 12.6799 4.1374 12.7002C3.98271 12.7236 3.85459 12.8346 3.8124 12.9861C3.76865 13.1361 3.81865 13.2986 3.9374 13.4002C3.9374 13.4002 4.47803 13.8689 5.4874 14.3127C5.75928 14.4314 6.06865 14.5518 6.4124 14.6627L5.7374 15.5752C5.34678 15.5377 4.5999 15.3986 3.7999 15.0877C2.92022 14.7455 2.06709 14.1986 1.6124 13.4627C1.63115 11.6393 2.0249 9.65019 2.5124 8.03769C2.7624 7.21113 3.0249 6.49082 3.2749 5.93769C3.5249 5.38457 3.79678 4.98457 3.8749 4.91269C5.08272 3.95801 6.85615 3.71895 7.3124 3.66269ZM7.3999 8.40019C6.37959 8.40019 5.5999 9.32676 5.5999 10.4002C5.5999 11.4736 6.37959 12.4002 7.3999 12.4002C8.42021 12.4002 9.1999 11.4736 9.1999 10.4002C9.1999 9.32676 8.42021 8.40019 7.3999 8.40019ZM12.5999 8.40019C11.5796 8.40019 10.7999 9.32676 10.7999 10.4002C10.7999 11.4736 11.5796 12.4002 12.5999 12.4002C13.6202 12.4002 14.3999 11.4736 14.3999 10.4002C14.3999 9.32676 13.6202 8.40019 12.5999 8.40019ZM7.3999 9.20019C7.92647 9.20019 8.3999 9.70644 8.3999 10.4002C8.3999 11.0939 7.92647 11.6002 7.3999 11.6002C6.87334 11.6002 6.3999 11.0939 6.3999 10.4002C6.3999 9.70644 6.87334 9.20019 7.3999 9.20019ZM12.5999 9.20019C13.1265 9.20019 13.5999 9.70644 13.5999 10.4002C13.5999 11.0939 13.1265 11.6002 12.5999 11.6002C12.0733 11.6002 11.5999 11.0939 11.5999 10.4002C11.5999 9.70644 12.0733 9.20019 12.5999 9.20019Z",fill:"#ADB5BD"}))))}const KP=i.forwardRef(YP),QP=(n.p,e=>{let{socialName:t,socialTitle:n,socialIcon:r,toolTip:i,placeholder:o}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] w-full",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[r,(0,a.jsx)("p",{className:"text-white text-xs 3xl:text-lg font-bold",children:n}),i]}),(0,a.jsx)(Wt,{name:t,placeholder:o,className:"h-[26.667px] 3xl:h-[40px] w-full text-xs 3xl:text-lg bg-[#04070B] border border-[#6C757D] font-semibold rounded-[4px] 3xl:rounded-md px-3 focus:outline-none text-white shrink-0"})]})}),XP=()=>(0,a.jsxs)("div",{className:"w-full flex flex-col gap-[12px]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,a.jsx)("div",{className:"text-white text-xs 3xl:text-lg font-bold",children:"External Links"}),(0,a.jsx)("div",{className:"text-[#6C757D] text-xs 3xl:text-lg  font-bold",children:"(Optional)"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(QP,{socialIcon:(0,a.jsx)(VP.h,{}),socialName:"collectionWebsiteURL",socialTitle:"Website",placeholder:"https://flowty.io"}),(0,a.jsx)(QP,{socialIcon:(0,a.jsx)(BP,{}),socialName:"twitterHandle",socialTitle:"Twitter",placeholder:"https://twitter.com/flowty_io"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(QP,{socialIcon:(0,a.jsx)(KP,{}),socialName:"discordHandle",socialTitle:"Discord Invite Link",toolTip:(0,a.jsx)(OP,{toolTipCustomId:"discordTooltip",renderContent:(0,a.jsxs)("span",{children:["Please enter an invite link that never expires. See more at",(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://support.discord.com/hc/en-us/articles/208866998-Invites-101",className:"ml-1 text-[#04E5A3] font-montserrat underline",children:"Discord Invites 101"}),"."]}),clickable:!0}),placeholder:"https://discord.gg/46URkm"}),(0,a.jsx)(QP,{socialIcon:(0,a.jsx)(WP,{}),socialName:"instagramHandle",socialTitle:"Instagram",placeholder:"https://instagram.com/flowty_io"})]})]}),ZP=()=>{const{errors:e,touched:t,uploadImage:n,setFieldError:r,loggedUser:i}=HA();return(0,a.jsxs)("div",{className:"flex flex-col gap-[16px] 3xl:gap-[24px] ",children:[(0,a.jsx)("div",{className:"flex flex-1 w-full",children:(0,a.jsx)(pP,{title:"Banner Image (used for Twitter preview)*",name:"nftBannerImage",imageType:"BANNER",toolTip:(0,a.jsx)(OP,{toolTipCustomId:"nftBannerImage",renderContent:(0,a.jsx)("span",{children:"Not displayed on Flowty's marketplace as of now but will be used as a preview image when linking to the collection on Twitter or elsewhere."})}),inputError:hP("nftBannerImage",t,e),errorMessage:fP("nftBannerImage",t,e),uploadImageFn:n,setFieldError:r,isLoggedUser:Boolean(i)})}),(0,a.jsx)("div",{className:"flex flex-1 w-full",children:(0,a.jsx)(pP,{title:"Thumbnail Image*",name:"nftThumbnailImage",imageType:"THUMBNAIL",inputError:hP("nftThumbnailImage",t,e),errorMessage:fP("nftThumbnailImage",t,e),uploadImageFn:n,setFieldError:r,isLoggedUser:Boolean(i)})}),(0,a.jsx)("div",{className:"flex items-start justify-start",children:(0,a.jsx)(XP,{})})]})},JP=()=>{const{formTab:e}=HA();return e===AA.CustomizeCollectionFirstTab?(0,a.jsx)(DP,{}):(0,a.jsx)(ZP,{})};var $P;function eD(){return eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eD.apply(null,arguments)}function tD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",eD({width:14,height:8,viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,$P||($P=i.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:"#F8F9FA"})))}const nD=i.forwardRef(tD),rD=(n.p,n.p+"static/media/flow-token-icon.6d63521dd5316f8fd456.png"),iD=e=>{let{name:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tr.m_,{id:"".concat(t,"-FLOW-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.875rem",fontWeight:500,zIndex:10}}),(0,a.jsx)("img",{"data-tooltip-id":"".concat(t,"-FLOW-tooltip"),"data-tooltip-content":"FLOW","data-tooltip-place":"left",src:rD,alt:"FLOW",className:"-ml-3 h-[12px] w-[12px] 3xl:h-4 3xl:w-4"})]})},oD=e=>{var t;let{inputName:n,flowtyMarketplaceFee:r}=e;const[o,s]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[d]=(0,l.Mt)(n),[p]=(0,l.Mt)("exampleSalePrice"),h=null!==r&&void 0!==r?r:.02,f=null!==(t=p.value)&&void 0!==t?t:0,m=null!==d&&void 0!==d&&d.value?d.value:0,g="mintPrice"===n?.1*m:f*h,v=f*m/100,y=f-(g+v),b=(0,i.useMemo)((()=>"mintPrice"===n?m-g:"royalty"===n?v:void 0),[n,m,p]);return(0,a.jsxs)("div",{"data-testid":"".concat(n,"-dropdown"),className:"flex flex-col gap-[8px] font-montserrat text-sm 3xl:text-lg",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)("span",{className:"font-normal text-white",children:"mintPrice"===n?"Mint Price":"Example Sale Price"}),(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)(iD,{name:n}),"mintPrice"===n?(0,a.jsx)("span",{className:"ml-1 font-bold\ttext-white",children:m.toFixed(2)}):(0,a.jsx)($o,{name:"exampleSalePrice",className:"h-[26.667px] 3xl:h-[40px] max-w-[52px] 3xl:max-w-[102px] text-[9.333px] 3xl:text-sm px-2 3xl:px-3 ml-1 flex justify-center items-end rounded-lg border bg-[#ffffff0a] text-right text-white font-bold border-[#343A40]",placeholder:"100.00"})]})]}),"royalty"===n&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("button",{className:"flex flex-row justify-between items-center",onClick:()=>s((e=>!e)),children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)(nD,{className:"w-[9.333px] h-[5.333px] 3xl:w-[14px] 3xl:h-2 ".concat(o?"transform rotate-180":"")}),(0,a.jsx)("span",{className:"font-normal text-white",children:"Creator Royalty (".concat(m.toFixed(2),"%)")})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("span",{className:"mr-1 font-bold text-white",children:"-"}),(0,a.jsx)(iD,{name:"royalty"}),(0,a.jsx)("span",{"data-testid":"royalty-fee",className:"ml-1 font-bold text-white ",children:v.toFixed(2)})]})]}),o&&(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat pt-1.5 font-[400]",children:["Transferred directly to the creator of an NFT collection. This is not a Flowty fee."," ",(0,a.jsx)("a",{href:"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("button",{className:"flex flex-row justify-between items-center",onClick:()=>u((e=>!e)),children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)(nD,{className:"w-[9.333px] h-[5.333px] 3xl:w-[14px] 3xl:h-2 ".concat(c?"transform rotate-180":"")}),(0,a.jsx)("span",{className:"font-normal text-white",children:"mintPrice"===n?"Flowty Launchpad Fee (".concat(Number(10).toFixed(2),"%)"):"Flowty Marketplace Fee (".concat(Number(100*h).toFixed(2),"%)")})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsx)("span",{className:"mr-1 font-bold text-white",children:"-"}),(0,a.jsx)(iD,{name:"".concat(n,"-flowty-fee")}),(0,a.jsx)("span",{"data-testid":"".concat(n,"-flowty-fee"),className:"ml-1 font-bold text-white",children:g.toFixed(2)})]})]}),c&&(0,a.jsxs)("div",{className:"text-neutral-500 font-montserrat pt-1.5 font-[400]",children:["mintPrice"===n?"Behind the scenes we are building a new, safe, metadata standard-compliant smart contract for you that will be immediately compatible with Flowty's marketplace.":"A fee charged by Flowty for providing the services on the platform."," ",(0,a.jsx)("a",{href:"mintPrice"===n?"https://docs.flowty.io/reference/nft-launchpad/launchpad-fees":"https://docs.flowty.io/reference/secondary-marketplace/secondary-marketplace-fees",target:"_blank",className:"text-[#04E5A3] font-montserrat underline",rel:"noreferrer",children:"Learn More"})]})]}),(0,a.jsx)("div",{className:"border-gradient h-[1px]"}),"royalty"===n&&(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:"font-normal text-white",children:"Seller Receives"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(iD,{name:"".concat(n,"-seller-received")}),(0,a.jsx)("span",{"data-testid":"".concat(n,"-seller-received"),className:"ml-1 font-bold text-white",children:y.toFixed(2)})]})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:" font-bold text-white",children:"Creator (You) Receives"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(iD,{name:"".concat(n,"-value-received")}),(0,a.jsx)("span",{"data-testid":"".concat(n,"-value-received"),className:"ml-1 font-bold text-white ",children:null===b||void 0===b?void 0:b.toFixed(2)})]})]})]})},aD=e=>{let{dropDownText:t,inputName:n,title:r,type:i,inputError:o=!1,errorMessage:s,placeHolder:l,toolTip:c,flowtyMarketplaceFee:u}=e;return(0,a.jsxs)("div",{className:"w-full p-3 3xl:p-[18px] flex flex-col bg-[#ffffff0a] border border-[#343A40] gap-3 rounded-[5.333px] 3xl:rounded-lg",children:[(0,a.jsx)("div",{className:"w-full flex flex-col gap-1",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("div",{className:"text-white text-[12px] 3xl:text-[18px] font-bold",children:r}),c]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,a.jsx)("div",{className:"text-white flex items-center justify-end gap-[12px]",children:(0,a.jsx)("div",{className:"text-sm 3xl:text-lg font-bold",children:"flow"===i?(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)(iD,{name:n}),(0,a.jsx)($o,{name:n,inputError:o,className:"h-[26.667px] 3xl:h-[40px] max-w-[52px] 3xl:max-w-[102px] text-[9.333px] 3xl:text-sm px-2 3xl:px-3 flex justify-center items-end rounded-lg border  bg-[#ffffff0a] text-right ".concat(o?"border-[#FF6E25]":"border-[#343A40]"),placeholder:l})]}):(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)($o,{name:n,inputError:o,className:"h-[26.667px] 3xl:h-[40px] max-w-[52px] 3xl:max-w-[102px] text-[9.333px] 3xl:text-sm px-2 3xl:px-3 flex justify-center items-end rounded-lg border  bg-[#ffffff0a] text-right ".concat(o?"border-[#FF6E25]":"border-[#343A40]"),placeholder:l}),(0,a.jsx)("div",{className:"3xl:ml-2",children:"%"})]})})}),s&&(0,a.jsx)("p",{className:"w-full text-end text-[#FF6E25] text-xs whitespace-nowrap",children:s})]})]})}),(0,a.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,a.jsx)("div",{className:"text-[#ADB5BD] font-semibold text-xs 3xl:text-lg",children:t})}),(0,a.jsx)(oD,{inputName:n,flowtyMarketplaceFee:u})]})},sD=e=>{let{fieldName:t,toggleTimePicker:n,setSelectedTime:r,selectedTime:i}=e;const s=(()=>{const e=[];for(let t=0;t<24;t++)for(let n=0;n<60;n+=30){const r=t%12===0?12:t%12,i=n.toString().padStart(2,"0"),o=t<12?"AM":"PM";e.push("".concat(r,":").concat(i," ").concat(o))}return e})(),[c]=(0,l.Mt)("dropStartDateTime"),[,u,d]=(0,l.Mt)("dropEndDateTime"),[p,,h]=(0,l.Mt)(t),f=e=>{if(r(e),"NOW"===e){const e=new Date(Date.now());return h.setValue({dateTime:e.getTime(),isNow:!0}),void n()}if(e){const[r,i]=e.split(":"),o=i.slice(0,2),a=i.slice(3);let s=parseInt(r);"PM"===a&&12!==s?s+=12:"AM"===a&&12===s&&(s=0);const l=new Date(p.value.dateTime||c.value.dateTime||Date.now());l.setHours(s),l.setMinutes(parseInt(o));const f=l.getTime();h.setValue({dateTime:f}),n(),"dropStartDateTime"===t&&f>=u.value.dateTime&&ED(l,d)}},m=new Date(c.value.dateTime),g=(new Date).getDate()===m.getDate();return(0,a.jsx)("div",{className:"w-full rounded-lg bg-[#04070B] shadow-md",children:(0,a.jsxs)("div",{id:"timePicker",className:"cursor-pointer absolute left-0 mt-2  block w-full h-[240px] py-4 3xl:py-5 whitespace-nowrap text-[9.333px] 3xl:text-base font-medium border border-[#6C757D] bg-[#04070B] focus:outline-none sm:text-sm rounded-md overflow-y-scroll",children:["dropStartDateTime"===t&&g&&(0,a.jsx)("div",{className:(0,o.cn)("text-white py-[8px] select-none rounded px-5 3xl:px-6 hover:bg-[#575757]",{"bg-[#575757]/30":"NOW"===i}),onClick:()=>f("NOW"),onKeyDown:()=>f("NOW"),children:"NOW"}),s.map(((e,t)=>(0,a.jsx)("div",{onClick:()=>f(e),onKeyDown:()=>f(e),className:(0,o.cn)("text-white py-[8px] select-none rounded px-5 3xl:px-6 hover:bg-[#575757]",{"bg-[#575757]/30":i===e}),children:e},t)))]})})};var lD;function cD(){return cD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cD.apply(null,arguments)}function uD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",cD({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,lD||(lD=i.createElement("path",{d:"M6.66667 5.83333V2.5M13.3333 5.83333V2.5M5.83333 9.16667H14.1667M4.16667 17.5H15.8333C16.7538 17.5 17.5 16.7538 17.5 15.8333V5.83333C17.5 4.91286 16.7538 4.16667 15.8333 4.16667H4.16667C3.24619 4.16667 2.5 4.91286 2.5 5.83333V15.8333C2.5 16.7538 3.24619 17.5 4.16667 17.5Z",stroke:"#ADB5BD",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})))}const dD=i.forwardRef(uD);n.p;var pD;function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hD.apply(null,arguments)}function fD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",hD({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,pD||(pD=i.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#ADB5BD",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})))}const mD=i.forwardRef(fD);n.p;var gD,vD;function yD(){return yD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yD.apply(null,arguments)}function bD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",yD({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 21 21",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,gD||(gD=i.createElement("g",{clipPath:"url(#clip0_7484_2140)"},i.createElement("path",{d:"M9.99984 5.00033V10.0003L13.3332 11.667M18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003Z",stroke:"#ADB5BD",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}))),vD||(vD=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_7484_2140"},i.createElement("rect",{width:20,height:20,fill:"white"})))))}const wD=i.forwardRef(bD);n.p;var xD=n(77364),CD=n.n(xD),AD=n(6321);const ED=(e,t)=>{const n=(0,eo.default)(new Date(e),7);t.setValue({dateTime:n.getTime()})},_D=e=>{let{fieldName:t,selectsStart:n=!1,selectsEnd:r=!1,inputError:o,errorMessage:s}=e;const[c,,u]=(0,l.Mt)(t),[,d,p]=(0,l.Mt)("dropEndDateTime"),[h]=(0,l.Mt)("dropStartDateTime"),f=new Date(h.value.dateTime),m=new Date(d.value.dateTime),g=c.value.dateTime?(0,Op.default)(new Date(c.value.dateTime),"h:mm a"):(0,Op.default)(new Date,"h:mm a"),v=(new Date).getDate()===new Date(c.value.dateTime).getDate(),[y,b]=(0,i.useState)(!1),[w,x]=(0,i.useState)(!1),C="dropStartDateTime"===t&&v&&!Boolean(c.value.dateTime)||c.value.isNow?"NOW":g,[A,E]=(0,i.useState)(C),_=(0,i.useRef)(null),T=e=>{_.current&&!_.current.contains(e.target)&&x(!1)};(0,i.useEffect)((()=>(document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)})),[]);const S=()=>{x(!w),b(!1)},k=e=>{e.stopPropagation()};return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-[.56rem] 3xl:h-[2.5rem] items-stretch bg-[#04070B] text-white rounded-lg",children:[(0,a.jsx)("div",{className:"basis-2/3 relative inline-block",children:(0,a.jsxs)("button",{className:"flex flex-row cursor-pointer gap-2 select-none w-full text-base md:justify-between px-2 py-[1px] 3xl:px-3 3xl:py-2 rounded-md h-[26.667px] 3xl:h-full border ".concat(o?"border-[#FF6E25]":"border-[#495057]"," ").concat(y&&"react-datepicker-ignore-onclickoutside"),onClick:e=>{e.stopPropagation(),b((e=>!e))},children:[(0,a.jsxs)("div",{className:"flex flex-row text-white bg-[#04070B] gap-2 w-full items-center ",id:"drop-form","data-testid":"".concat(t,"-drop-form"),children:[(0,a.jsx)(dD,{className:"cursor-pointer text-gray-500 h-4 3xl:h-5"}),(0,a.jsx)(CD(),{"data-testid":"date-picker",selected:c.value.dateTime?new Date(c.value.dateTime):new Date,onChange:e=>{if((new Date).getDate()===(null===e||void 0===e?void 0:e.getDate())&&"dropStartDateTime"===t)E("NOW"),u.setValue({dateTime:(new Date).getTime(),isNow:!0}),b(!1);else if(e){if("NOW"===A){const n=(e=>{const t=new Date(e);return t.setMinutes(60,0,0),t})(e),r=(0,Op.default)(n,"h:mm a");return E(r),u.setValue({dateTime:n.getTime(),isNow:!1}),"dropStartDateTime"===t&&n.getTime()>=d.value.dateTime&&ED(n,p),void b(!1)}"dropStartDateTime"===t&&e.getTime()>=d.value.dateTime&&ED(e,p);const n=e.getTime();u.setValue({dateTime:n,isNow:!1}),b(!1)}},minDate:"dropEndDateTime"===t&&f||new Date,open:y,selectsStart:n,selectsEnd:r,className:"react-datepicker inline-block cursor-pointer relative text-[#E9ECEF] text-[9.333px] 3xl:text-base font-normal leading-6",startDate:null!==f&&void 0!==f?f:Date.now(),endDate:null!==m&&void 0!==m?m:Date.now(),dateFormat:"MMMM d, yyyy",dayClassName:e=>{return((e,t)=>{const n=new Date,r=(0,AD.default)(e),i=(0,AD.default)(n),o=t?(0,AD.default)(t):null;return o&&r>=i&&r<o?"react-datepicker__day--disabled custom-disabled-day":""})(e,(t=h.value.dateTime)?new Date(t):new Date);var t},calendarContainer:e=>(0,a.jsx)("div",{...e,onClick:k,onMouseDown:k}),onClickOutside:()=>{b(!1)}})]}),(0,a.jsx)(mD,{})]})}),(0,a.jsxs)("div",{className:"basis-1/3 h-[26.667px] 3xl:h-full",ref:_,children:[(0,a.jsxs)("button",{type:"button",onClick:S,className:"px-2 3xl:px-3 h-full select-none flex flex-row items-center justify-between w-full py-1 3xl:py-2 rounded-md border ".concat(o?"border-[#FF6E25]":"border-[#495057]"),children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,a.jsx)("div",{className:"w-4 3xl:w-5",children:(0,a.jsx)(wD,{className:"w-full"})}),(0,a.jsx)("div",{className:"text-neutral-800 whitespace-nowrap text-[9.333px] 3xl:text-base font-normal leading-normal 3xl:leading-6",children:C})]}),(0,a.jsx)(mD,{})]}),w&&(0,a.jsx)("div",{className:"flex w-full justify-center items-center relative z-20 ",children:(0,a.jsx)(sD,{fieldName:t,toggleTimePicker:S,setSelectedTime:E,selectedTime:C})})]})]}),s&&(0,a.jsx)("p",{className:"absolute bottom-[-15px] left-0 flex w-full justify-end text-end text-[#FF6E25] font-[400] text-[8px] leading-normal 3xl:text-xs whitespace-nowrap",children:s})]})},TD=e=>{var t;let{label:n,name:r,selectsStart:i=!1,selectsEnd:o=!1,touched:s,errors:l}=e;const c=fP(r,s,l);return(0,a.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,a.jsx)("div",{className:"text-white text-xs 3xl:text-lg font-bold",children:n}),(0,a.jsx)(_D,{fieldName:r,selectsStart:i,selectsEnd:o,inputError:hP(r,s,l),errorMessage:Boolean(c)?null===(t=c.dateTime)||void 0===t?void 0:t.toString():null})]})};var SD;function kD(){return kD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kD.apply(null,arguments)}function PD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",kD({width:9,height:14,viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,SD||(SD=i.createElement("path",{d:"M0.333252 2.125C0.333252 1.22754 1.0496 0.5 1.93325 0.5H6.73325C7.61691 0.5 8.33325 1.22754 8.33325 2.125V13.5L4.33325 11.4688L0.333252 13.5V2.125Z",fill:"#F8F9FA"})))}const DD=i.forwardRef(PD);n.p;var FD;function ND(){return ND=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ND.apply(null,arguments)}function ID(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",ND({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,FD||(FD=i.createElement("g",{id:"Photo"},i.createElement("path",{id:"Icon",d:"M8.13307 4.49681C7.21684 4.05032 6.18754 3.7998 5.09974 3.7998C4.01194 3.7998 2.98264 4.05032 2.06641 4.49681V13.1635C2.98264 12.717 4.01194 12.4665 5.09974 12.4665C6.54586 12.4665 7.88858 12.9092 8.99974 13.6665C10.1109 12.9092 11.4536 12.4665 12.8997 12.4665C13.9875 12.4665 15.0168 12.717 15.9331 13.1635V4.49681C15.0168 4.05032 13.9875 3.7998 12.8997 3.7998C11.8119 3.7998 10.7826 4.05032 9.86641 4.49681V10.7331C9.86641 11.2118 9.47839 11.5998 8.99974 11.5998C8.52109 11.5998 8.13307 11.2118 8.13307 10.7331V4.49681Z",fill:"#F8F9FA"}))))}const RD=i.forwardRef(ID),OD=(n.p,{[vP.OpenEdition]:"Open Edition",[vP.LimitedEdition]:"Limited Edition"}),jD=[{description:"No cap on NFTs that can be minted while minting is live",disabled:!1,image:RD,labelMapping:OD,name:"collectionEditionType",pillContent:null,value:vP.OpenEdition},{description:"Create a fixed number of NFTs",disabled:!0,image:DD,labelMapping:OD,name:"collectionEditionType",pillContent:"Coming Soon",value:vP.LimitedEdition}],MD=()=>{const{errors:e,touched:t,uploadImage:n,setFieldError:r,loggedUser:i,flowtyMarketplaceFee:o}=HA();return(0,a.jsx)("div",{className:"flex flex-1 flex-col justify-between self-stretch h-full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-[16px] 3xl:gap-[24px] text-white",children:[(0,a.jsx)(pP,{title:"Drop Page Image*",name:"dropThumbnailImage",inputError:hP("dropThumbnailImage",t,e),errorMessage:fP("dropThumbnailImage",t,e),imageType:"THUMBNAIL",uploadImageFn:n,setFieldError:r,isLoggedUser:Boolean(i)}),(0,a.jsx)(TD,{label:"Start Date & Time (Local Time Zone)",name:"dropStartDateTime",selectsStart:!0,errors:e,touched:t}),(0,a.jsx)(TD,{label:"End Date & Time (Local Time Zone)",name:"dropEndDateTime",selectsEnd:!0,errors:e,touched:t}),(0,a.jsx)(aD,{inputName:"mintPrice",type:"flow",dropDownText:"Funds received per minted NFT",title:"Mint Price",inputError:hP("mintPrice",t,e),errorMessage:fP("mintPrice",t,e),placeHolder:"0.00",toolTip:(0,a.jsx)(OP,{toolTipCustomId:"cratorMintTooltip",renderContent:(0,a.jsx)("span",{children:"Price per NFT that a user mints. For a Free Mint, please input zero or leave blank."})})}),(0,a.jsx)(aD,{inputName:"royalty",type:"percentage",dropDownText:"Funds received if NFT is sold by a collector",title:"Royalty",inputError:hP("royalty",t,e),errorMessage:fP("royalty",t,e),flowtyMarketplaceFee:o,placeHolder:"0",toolTip:(0,a.jsx)(OP,{toolTipCustomId:"creatorRoyaltytTooltip",renderContent:(0,a.jsx)("span",{children:"The percentage of each marketplace sale that the collection creator receives (see example). Many collections choose a 5% royalty."})})}),(0,a.jsxs)("div",{className:"flex flex-col gap-[6.667px] 3xl:gap-[12px]",children:[(0,a.jsx)("div",{className:"flex-col text-white text-xs 3xl:text-lg font-bold",children:"Edition Type"}),(0,a.jsx)(IE,{options:jD,classNames:"flex-row"})]})]})})};var LD;function BD(){return BD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BD.apply(null,arguments)}function UD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",BD({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,LD||(LD=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43135 2.78862C8.1195 1.56525 9.88088 1.56525 10.569 2.78862L15.5913 11.7171C16.2662 12.917 15.3991 14.3996 14.0225 14.3996H3.97791C2.60123 14.3996 1.73414 12.917 2.40908 11.7171L7.43135 2.78862ZM9.90011 11.6997C9.90011 12.1967 9.49717 12.5997 9.00011 12.5997C8.50305 12.5997 8.10011 12.1967 8.10011 11.6997C8.10011 11.2026 8.50305 10.7997 9.00011 10.7997C9.49717 10.7997 9.90011 11.2026 9.90011 11.6997ZM9.00011 4.49968C8.50305 4.49968 8.10011 4.90263 8.10011 5.39968V8.09968C8.10011 8.59674 8.50305 8.99968 9.00011 8.99968C9.49717 8.99968 9.90011 8.59674 9.90011 8.09968V5.39968C9.90011 4.90263 9.49717 4.49968 9.00011 4.49968Z",fill:"#FF6E25"})))}const VD=i.forwardRef(UD),HD=(n.p,e=>{let{text:t}=e;return(0,a.jsxs)("div",{className:"flex flex-row items-center bg-[#edf3f60a] p-[8px] 3xl:p-[12px] gap-[8px] text-[#FF6E25] font-normal rounded-lg",children:[(0,a.jsx)(VD,{className:"h-[1.125rem] w-[20px] fill-[#FF6E25]"}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("p",{className:"text-xs 3xl:text-base leading-3",children:t})})]})}),zD=()=>{const{formTab:e,handleSubmit:t}=HA();return(0,a.jsxs)("div",{className:"flex flex-col gap-4 3xl:gap-6 ",children:[e===AA.ConfirmationTab&&(0,a.jsx)("div",{className:"md:mb-[12px]",children:(0,a.jsx)(HD,{text:"Once you submit your collection, you will no longer be able to make any edits or changes"})}),(0,a.jsx)(s,{type:"submit",onClick:t,text:"".concat(e!==AA.ConfirmationTab?"NEXT":"READY TO LAUNCH!"),variant:"secondary",bgColor:"white"}),(0,a.jsxs)("p",{className:"text-[#ADB5BD] font-medium text-xs 3xl:text-base",children:["Need help? Contact us via"," ",(0,a.jsx)("a",{href:"https://discord.gg/flowty",target:"_blank",rel:"noreferrer",className:"underline text-white font-semibold",children:"Discord"})," ","or"," ",(0,a.jsx)("a",{href:"https://x.com/flowty_io",target:"_blank",rel:"noreferrer",className:"underline text-white font-semibold",children:"Twitter"})]})]})};var WD;function qD(){return qD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qD.apply(null,arguments)}function GD(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",qD({xmlns:"http://www.w3.org/2000/svg",width:28,height:29,viewBox:"0 0 28 29",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,WD||(WD=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5898 23.8901C13.043 24.4369 12.1566 24.4369 11.6099 23.8901L3.20986 15.4901C2.66312 14.9434 2.66312 14.057 3.20986 13.5102L11.6099 5.11025C12.1566 4.56351 13.043 4.56351 13.5898 5.11025C14.1365 5.65698 14.1365 6.54341 13.5898 7.09014L7.57971 13.1002H23.7998C24.573 13.1002 25.1998 13.727 25.1998 14.5002C25.1998 15.2734 24.573 15.9002 23.7998 15.9002L7.57971 15.9002L13.5898 21.9102C14.1365 22.457 14.1365 23.3434 13.5898 23.8901Z",fill:"#6C757D"})))}const YD=i.forwardRef(GD),KD=(n.p,()=>{const{formTab:e,moveToPreviousTab:t}=HA();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"w-full flex flex-col gap-[16px] 3xl:gap-[24px] max-w-[710px] z-10","data-testid":"navbar-step-selector",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center","data-testid":"navbar-step-selector-title",children:[e!==AA.WelcomeCreatorHubTab&&(0,a.jsx)("button",{onClick:t,className:"cursor-pointer fill-white",children:(0,a.jsx)(YD,{})}),(0,a.jsx)("p",{className:"text-[22px] md:text-[32px] 3xl:text-[44px] whitespace-nowrap creator-hub-title-gradient font-bold leading-none",children:"Create Collection"})]}),(0,a.jsxs)("div",{className:"flex gap-[9.333px] 3xl:gap-[14px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 max-md:w-full w-[106px]",children:[(0,a.jsx)("div",{className:"rounded-xl h-[8px] ".concat(e>=1?"bg-white":"bg-[#495057]")}),(0,a.jsxs)("p",{className:e>=1?"text-[#F8F9FA] text-[12px] font-semibold whitespace-nowrap leading-none":"text-[#495057] text-[12px] font-semibold whitespace-nowrap leading-none",children:[(0,a.jsx)("span",{className:"hidden md:flex text-[12px]",children:"Customize Collection"}),(0,a.jsx)("span",{className:"flex md:hidden",children:"Collection"})]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-2 max-md:w-full w-[106px]",children:(0,a.jsx)("div",{className:"rounded-xl h-[8px]  ".concat(e>=2?"bg-white":"bg-[#495057]")})}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 max-md:w-full w-[106px]",children:[(0,a.jsx)("div",{className:"rounded-xl h-[8px]  ".concat(e>=3?"bg-white":"bg-[#495057]")}),(0,a.jsxs)("p",{className:e>=3?"text-[#F8F9FA] text-[12px] font-semibold whitespace-nowrap leading-none":"text-[#495057] text-[12px] font-semibold whitespace-nowrap leading-none",children:[(0,a.jsx)("span",{className:"hidden md:flex text-[12px]",children:"Customize Drop Page"}),(0,a.jsx)("span",{className:"flex md:hidden",children:"Drop Page "})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 max-md:w-full w-[106px]",children:[(0,a.jsx)("div",{className:"rounded-xl h-[8px]  ".concat(e>=4?"bg-white":"bg-[#495057]")}),(0,a.jsx)("p",{className:e>=4?"text-[12px] text-[#F8F9FA] font-semibold text-end whitespace-nowrap leading-[15px]":"text-[12px] text-[#495057] font-semibold text-end whitespace-nowrap leading-[15px]",children:"End"})]})]})]})})}),QD=()=>{const{formTab:e}=HA();return(0,a.jsxs)("div",{className:"flex flex-col gap-[20px] md:gap-[30px] 3xl:gap-[40px] w-full md:w-min",children:[(0,a.jsx)(KD,{}),(0,a.jsx)("div",{className:"h-full overflow-y-auto pr-2",children:(()=>{switch(e){case AA.CustomizeCollectionFirstTab:case AA.CustomizeCollectionSecondTab:return(0,a.jsx)(JP,{});case AA.CustomizeDropTab:return(0,a.jsx)(MD,{});case AA.ConfirmationTab:return(0,a.jsx)(bE,{});default:return null}})()}),(0,a.jsx)(zD,{})]})},XD=()=>{var e,t,n;const[r]=(0,l.Mt)("dropThumbnailImage"),[o]=(0,l.Mt)("mintPrice"),[c]=(0,l.Mt)("dropStartDateTime"),[u]=(0,l.Mt)("dropEndDateTime"),d=c.value,[p,h]=(0,i.useState)(d.dateTime-(new Date).getTime()),f=e=>new Date(e).toLocaleString("en-US",{day:"numeric",hour:"numeric",hour12:!0,minute:"numeric",month:"long",year:"numeric"});return(0,i.useEffect)((()=>{const e=setInterval((()=>{const e=c.value.dateTime-(new Date).getTime();h(e)}),1e3);return()=>clearInterval(e)}),[p]),(0,a.jsxs)("div",{className:"flex flex-row justify-center gap-10 py-4 3xl:gap-20 3xl:px-10",children:[r.value&&(r.value.fileCid||r.value.fileBase64)?(0,a.jsx)("div",{className:"w-full md:w-[250px] md:h-[250px] 3xl:h-[388px] 3xl:w-[388px] h-full my-auto object-fill aspect-square",children:(0,a.jsx)("img",{src:null!==(e=r.value)&&void 0!==e&&e.fileCid?"".concat(tP.n).concat(null===(t=r.value)||void 0===t?void 0:t.fileCid):null===(n=r.value)||void 0===n?void 0:n.fileBase64,alt:"Drop Custom",className:"rounded-[2.5rem] w-full h-full"})}):(0,a.jsx)("div",{className:"flexw-full md:w-[250px] md:h-[250px] 3xl:h-[388px] 3xl:w-[388px] h-full my-auto animate-pulse bg-[#43ff640a] rounded-[2.5rem] object-fill aspect-square"}),(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-[8px] 3xl:gap-[22px] w-full max-w-[300px] 3xl:max-w-[400px]",children:[(0,a.jsx)("div",{children:(0,a.jsx)(hf.X,{dropStatus:"PENDING",smallChip:!0})}),(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] 2xl:gap-[14px]",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px] 3xl:text-[14px]",children:"Drop Starts (Local Time Zone)"}),(0,a.jsx)("p",{className:"text-white text-[12px] 3xl:text-[14px] font-bold",children:f(c.value.dateTime)})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px] 3xl:text-[14px]",children:"Drop Ends (Local Time Zone)"}),(0,a.jsx)("p",{className:"text-white text-[12px] 3xl:text-[14px] font-bold",children:f(u.value.dateTime)})]})]}),(0,a.jsx)("div",{className:"flex max-tablet:flex-col gap-14 max-tablet:gap-[10px] justify-between",children:(0,a.jsxs)("div",{className:"flex flex-col 3xl:gap-[10px]",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px]",children:"Price"}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:o?(0,a.jsx)("div",{className:"flex items-center w-auto justify-start gap-x-[0.75rem]",children:0===o.value||null===o.value?(0,a.jsxs)("span",{className:"text-white font-montserrat text-[16px] 3xl:text-[26px] font-[700]",children:[" ","FREE"," "]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(lr.h,{className:"w-[14px] 3xl:w-[20px] h-[14px] 3xl:h-[20px]"}),(0,a.jsxs)("div",{className:"flex gap-1",children:[(0,a.jsx)("span",{className:"text-white font-montserrat text-[16px] 3xl:text-[26px] font-[700]",children:an()(o.value).format("0,0.00")}),(0,a.jsx)("h4",{className:"text-[#ADB5BD] text-[11px] font-normal leading-normal",children:"FLOW"})]})]})}):"-"})]})}),(0,a.jsxs)("div",{className:"flex flex-col 3xl:gap-[10px]",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px]",children:"Countdown"}),(0,a.jsx)(wh,{countdownCurrentValue:bh(p)})]}),(0,a.jsx)("div",{className:"h-[35px] flex flex-col gap-1",children:(0,a.jsx)(s,{variant:"secondary",bgColor:"white",text:"BUY NOW \u2022 COMING SOON",disabled:!0,onClick:()=>{},className:"py-[2px] text-[10px] 3xl:text-[14px]"})})]})]})},ZD=()=>{var e,t,n,r,i;const[o]=(0,l.Mt)("nftThumbnailImage"),[s]=(0,l.Mt)("collectionName"),[c]=(0,l.Mt)("collectionDescription");return(0,a.jsxs)("div",{"data-testid":"preview-banner",className:"w-full flex flex-col gap-[8px] 3xl:gap-[20px]",children:[(0,a.jsx)("div",{className:"flex flex-row space-x-4 items-center flex-grow",children:(0,a.jsx)("div",{className:"h-[60px] flex flex-row space-x-4 items-center gap-2 3xl:gap-4 grow",children:(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-8",children:[(0,a.jsx)("div",{children:o.value&&(null!==(e=o.value)&&void 0!==e&&e.fileCid||null!==(t=o.value)&&void 0!==t&&t.fileBase64)?(0,a.jsx)("img",{src:null!==(n=o.value)&&void 0!==n&&n.fileCid?"".concat(tP.n).concat(null===(r=o.value)||void 0===r?void 0:r.fileCid):null===(i=o.value)||void 0===i?void 0:i.fileBase64,alt:"Drop Custom",className:"h-[60px] w-[60px] min-w-[60px] 3xl:h-[92px] 3xl:w-[92px] 3xl:min-w-[92px] bg-cover bg-no-repeat rounded-[6px] sm:h-18 sm:w-18 bg-[#edf3f60a]"}):(0,a.jsx)("div",{className:"animate-pulse h-[60px] w-[60px] min-w-[60px] 3xl:h-[92px] 3xl:w-[92px] 3xl:min-w-[92px] bg-cover bg-no-repeat rounded-[12px] sm:h-18 sm:w-18 bg-[#edf3f60a]"})}),(0,a.jsx)("div",{className:"flex flex-col items-start justify-start mb-auto",children:s.value?(0,a.jsx)("div",{"data-testid":"preview-collection-name",className:"text-white font-montserrat text-[16px] 3xl:text-[1.67475rem] font-extrabold leading-normal",children:s.value}):(0,a.jsx)("div",{className:"animate-pulse w-[120px] h-[25px] lg:w-[240px] bg-[#edf3f60a] rounded-md"})})]})})}),(0,a.jsx)("div",{className:"flex items-center justify-between w-full gap-[50px]",children:c.value?(0,a.jsx)("div",{className:"w-[400px] 3xl:w-[580px] h-[60px] overflow-y-auto py-4 px-6 rounded-md bg-white bg-opacity-5 backdrop-blur-lg break-words",children:(0,a.jsx)("p",{"data-testid":"preview-description",className:"text-[#ADB5BD] leading-3 text-[10px] 3xl:text-sm font-medium overflow-hidden text-ellipsis",children:c.value})}):(0,a.jsx)("div",{className:"animate-pulse w-[300px] 3xl:w-[480px] h-[60px] bg-[#edf3f60a] rounded-md"})})]})},JD=e=>{let{type:t}=e;return(0,a.jsx)("div",{"data-testid":"preview-page-tab",children:(0,a.jsx)("div",{className:"w-full border-b-2 border-b-[#212529] text-white",children:(0,a.jsxs)("div",{className:"flex items-center h-[32px]",children:[(0,a.jsx)("div",{className:"w-[80px] 3xl:w-[100px] text-center font-bold \n                        ".concat("LISTINGS"===t?"3xl:pb-1 border-b-4 border-b-white":"pb-1 3xl:pb-2","\n                        text-[10px] 3xl:text-[14px]"),children:"LISTINGS"}),(0,a.jsx)("div",{className:"w-[80px] 3xl:w-[100px] text-center font-bold pb-1 3xl:pb-2 text-[10px] 3xl:text-[14px]",children:"ACTIVITY"}),(0,a.jsx)("div",{className:"w-[80px] 3xl:w-[100px] text-center font-bold ".concat("DROP"===t?"3xl:pb-1 border-b-4 border-b-white":"pb-1 3xl:pb-2"," text-[10px] 3xl:text-[14px]"),children:"DROP"})]})})})},$D=()=>(0,a.jsxs)("div",{className:"flex flex-col gap-3 2xl:gap-6",children:[(0,a.jsx)(ZD,{}),(0,a.jsx)(JD,{type:"DROP"}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(XD,{})})]}),eF=()=>{const[e]=(0,l.Mt)("nftImage"),[t]=(0,l.Mt)("collectionName"),n=(0,i.useMemo)((()=>Array(8).fill("").map(((n,r)=>{var i,o,s;return(0,a.jsx)("div",{className:"rounded-md bg-[#edf3f60a] w-[180px] h-[280px] 3xl:h-[350px] py-4 px-3",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[t.value?(0,a.jsxs)("div",{className:"flex w-full justify-between overflow-hidden",children:[(0,a.jsx)("p",{className:"font-montserrat text-white font-extrabold uppercase text-[1.125rem]",children:t.value.length>9?t.value.slice(0,9)+"...":t.value}),(0,a.jsxs)("p",{className:"font-montserrat text-white font-extrabold uppercase text-[1.125rem]",children:["#",r+1]})]}):(0,a.jsx)("div",{className:"animate-pulse w-full h-[28px] bg-[#edf3f60a] rounded-md"}),e.value&&(e.value.fileCid||e.value.fileBase64)?(0,a.jsx)("img",{"data-testid":"preview-nft-list-image-".concat(r),src:null!==(i=e.value)&&void 0!==i&&i.fileCid?"".concat(tP.n).concat(null===(o=e.value)||void 0===o?void 0:o.fileCid):null===(s=e.value)||void 0===s?void 0:s.fileBase64,alt:"Nft Card",className:"object-contain w-[160px] h-[160px]"}):(0,a.jsx)("div",{className:"animate-pulse object-contain w-full h-[159px] bg-[#edf3f60a]"}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center border-gradient mb-3",children:[(0,a.jsx)("p",{className:"text-[#AAAAAA] text-base font-montserrat mb-2",children:"Purchase Price"}),(0,a.jsx)("span",{className:"text-bold mb-2 text-white",children:"-"})]})})]})},r)}))),[e]);return(0,a.jsx)("div",{"data-testid":"preview-nft-list",className:"w-full h-full grid gap-[6.385px] creator-hub-nft-list-wrapper",children:n})};const tF=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{d:"M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"}))}));var nF=n(74042);const rF=()=>(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M15.8333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H13.3333L17.5 6.66667V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M14.1667 17.4999V10.8333H5.83337V17.4999",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M5.83337 2.5V6.66667H12.5",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),iF=()=>(0,a.jsxs)("div",{"data-testid":"preview-listing-filters",className:"flex items-center gap-2 text-white",children:[(0,a.jsxs)("button",{className:"h-[40px] bg-[#ffffff14] text-[12px] rounded-md px-2 3xl:px-4 py-1 3xl:py-2 flex items-center justify-center",children:[(0,a.jsx)(tF,{"aria-hidden":"true",className:"mr-2 h-[20px] w-[20px]"}),(0,a.jsx)("span",{className:"hidden 2xl:flex capitalize",children:"Show filters"}),(0,a.jsx)("span",{className:"flex 2xl:hidden capitalize",children:"Show filters"})]}),(0,a.jsxs)("button",{className:"h-[40px] bg-[#ffffff14] text-[12px] rounded-md px-2 3xl:px-4 py-1 3xl:py-2 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"mr-2",children:(0,a.jsx)(rF,{"aria-hidden":"true"})}),"Save View"]}),(0,a.jsxs)("button",{className:"h-[40px] bg-[#ffffff14] text-[12px] rounded-md px-2 3xl:px-4 py-1 3xl:py-2 flex items-center justify-center",children:["Sort By: Recently Listed",(0,a.jsx)(nF.A,{"aria-hidden":"true",className:"ml-1 h-5 w-5"})]}),(0,a.jsx)("div",{className:"font-bold text-[12px] whitespace-nowrap",children:"10,000+ items"})]}),oF=()=>(0,a.jsxs)("div",{className:"flex flex-col gap-3 2xl:gap-6",children:[(0,a.jsx)(ZD,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 2xl:gap-3 whitespace-nowrap",children:[(0,a.jsx)(JD,{type:"LISTINGS"}),(0,a.jsx)(iF,{}),(0,a.jsx)("div",{className:"flex flex-row gap-3 w-max lg:w-full",children:(0,a.jsx)(eF,{})})]})]}),aF=()=>{const{activeConfirmationPreviewTab:e}=HA();return(0,a.jsxs)("div",{children:["Collection Page"===e&&(0,a.jsx)(oF,{}),"Drop Page"===e&&(0,a.jsx)($D,{})]})},sF=()=>(0,a.jsx)("div",{children:(0,a.jsx)($D,{})}),lF=e=>{let{tabs:t=[],activeTab:n,onTabClick:r}=e;const{hasViewedDropPage:i,setHasViewedDropPage:o}=HA();return(0,a.jsx)("div",{className:"w-fit h-[38px] flex bg-[#FFFFFF14] rounded p-2",children:t.map((e=>(0,a.jsxs)("button",{className:"relative flex items-center justify-center text-[12px] 3xl:text-[14px] py-[6px] md:py-2 px-[8px] md:px-4 cursor-pointer leading-none ".concat(n===e?"text-white font-bold bg-[#FFFFFF3D] p-[6px] rounded":"text-white font-bold"),onClick:()=>(e=>{"Drop Page"===e&&o(!0),r(e)})(e),children:[e,"Drop Page"===e&&!i&&(0,a.jsx)("div",{className:"absolute top-0 right-0 w-[10px] h-[10px] bg-primary rounded-full drop-shadow-sm"})]},e)))})},cF=()=>{const{formTab:e,activeConfirmationPreviewTab:t,onConfirmationPageTabClick:n,confirmationPagePreviewTabs:r}=HA();return(0,a.jsx)("div",{className:"text-white text-[18px] font-bold",children:(()=>{switch(e){case AA.CustomizeCollectionFirstTab:case AA.CustomizeCollectionSecondTab:return"Preview \u2022 Collection Page";case AA.CustomizeDropTab:return"Preview \u2022 Drop Page";case AA.ConfirmationTab:return(0,a.jsxs)("div",{className:"flex flex-row items-center space-x-1",children:[(0,a.jsx)("div",{className:"text-white text-[18px] font-bold hidden md:inline-block",children:"Preview \u2022"}),(0,a.jsx)(lF,{tabs:r,activeTab:t,onTabClick:n})]});default:return null}})()})},uF=()=>{const{formTab:e}=HA();return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col gap-2 3xl:gap-4",children:[(0,a.jsx)(cF,{}),(0,a.jsx)("div",{className:"w-full flex-1 flex-col p-[40px] border border-[#6C757D] rounded-xl overflow-y-auto",children:(()=>{switch(e){case AA.CustomizeCollectionFirstTab:case AA.CustomizeCollectionSecondTab:return(0,a.jsx)(oF,{});case AA.CustomizeDropTab:return(0,a.jsx)(sF,{});case AA.ConfirmationTab:return(0,a.jsx)(aF,{});default:return null}})()})]})},dF=()=>{const{formTab:e}=HA();return e===AA.WelcomeCreatorHubTab?(0,a.jsx)(yE,{}):(0,a.jsx)("div",{className:"bg-[#04070B] w-full flex flex-col gap-[18px] px-[14px] md:pr-[8px] md:pl-[40px] lg:px-[40px] md:py-[22px] pt-[15px] 3xl:py-[52px] creator-hub-wrapper",children:(0,a.jsxs)("div",{className:"flex gap-[26px] lg:gap-[52px] h-full overflow-hidden",children:[(0,a.jsx)(QD,{}),(0,a.jsx)("div",{className:"hidden md:flex flex-1 overflow-x-auto",children:(0,a.jsx)(uF,{})})]})})},pF=e=>{let{flowty:t,flowtyMarketplaceFee:n,mixPanelFn:r,strapiUrl:o,spotPrice:s,loggedUser:c,logOutFn:u,loggedIsDapper:d,creatorHubId:p,uploadIPFSImage:h,promotion:f}=e;const{formTab:m,changeSelectedFormTab:g,moveToNextTab:v,moveToPreviousTab:y}=(()=>{const[e,t]=(0,i.useState)(AA.WelcomeCreatorHubTab);return{changeSelectedFormTab:e=>{t(e)},formTab:e,moveToNextTab:()=>{t((e=>e+1))},moveToPreviousTab:()=>{t((e=>e-1))}}})(),[b,w]=(0,i.useState)(!1),x=(()=>{const e=localStorage.getItem("creatorHubCache");return e?JSON.parse(e):null})(),C=(0,i.useCallback)((async(e,n)=>{var r,i,o;if(c&&"Sign in to view wallet address"===e.creatorWalletAddress&&n.setFieldValue("creatorWalletAddress",c),null!==(r=e.dropStartDateTime)&&void 0!==r&&r.isNow){const e=new Date(Date.now());n.setFieldValue("dropStartDateTime",{dateTime:e.getTime(),isNow:!0})}m===AA.CustomizeCollectionFirstTab&&(null!==(i=e.nftThumbnailImage)&&void 0!==i&&i.file||n.setFieldValue("nftThumbnailImage",e.nftImage),null!==(o=e.dropThumbnailImage)&&void 0!==o&&o.file||n.setFieldValue("dropThumbnailImage",e.nftImage));if(m!==AA.ConfirmationTab){var a;if(c&&m===AA.CustomizeCollectionFirstTab&&!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_STORYBOOK){const r=await t.scripts.getAccountCollections(null!==c&&void 0!==c?c:""),i=e=>e?(0,CA.h)(e.toLowerCase()):"";if(null===r||void 0===r?void 0:r.contracts.some((t=>(null===t||void 0===t?void 0:t.name)===i(e.collectionName))))return void n.setFieldError("collectionName","You have already created a collection with this name")}if(m===AA.CustomizeCollectionSecondTab&&!Boolean(null===(a=e.dropStartDateTime)||void 0===a?void 0:a.dateTime)){const e=new Date(Date.now());n.setFieldValue("dropStartDateTime",{dateTime:e.getTime(),isNow:!0})}return v(),void n.setTouched({})}w(!0)}),[m]);return(0,a.jsx)(l.l1,{initialValues:null!==x&&void 0!==x?x:(A=null!==c&&void 0!==c?c:"Sign in to view wallet address",{collectionDescription:"",collectionEditionType:vP.OpenEdition,collectionName:"",collectionType:gP.SingleImage,collectionWebsiteURL:"",creatorWalletAddress:A,discordHandle:null,dropEndDateTime:{dateTime:(0,eo.default)(Date.now(),7).getTime()},dropStartDateTime:{dateTime:(new Date).getTime(),isNow:!0},dropThumbnailImage:null,exampleSalePrice:100,instagramHandle:null,mintPrice:null,nftBannerImage:{file:new File([],"FLOWTY_DEFAULT_IMAGE"),fileBase64:void 0,fileCid:"QmWz1ticnmu3PNWb68uMPFGffn5pXhpiUin7qfcSaotrGX?pinataGatewayToken=xFpPpu5fb5PZMLV6RF8ueOm08-BkzG5BLYJf1jVw1NL8RUORAi5yj3BwsexCJWIz",fileName:"defaultBannerImage.png"},nftImage:null,nftThumbnailImage:null,royalty:null,twitterHandle:null}),onSubmit:C,validationSchema:yP[m],validateOnBlur:!1,validateOnMount:!1,children:e=>{let{values:i,resetForm:l,errors:x,handleSubmit:C,touched:A,setFieldError:E}=e;return(0,a.jsxs)(VA,{resetForm:l,spotPrice:s,values:i,strapiUrl:o,mixPanelFn:r,loggedUser:c,errors:x,formTab:m,flowtyMarketplaceFee:n,changeSelectedFormTab:g,moveToNextTab:v,moveToPreviousTab:y,promotion:f,handleSubmit:C,uploadIPFSImage:h,setFieldError:E,touched:A,children:[(0,a.jsx)(dF,{}),b&&(0,a.jsx)(LA,{isOpen:b,onCloseModal:()=>w(!1),flowty:t,isLoggedUser:Boolean(c),creatorHubId:p,loggedIsDapper:d,logOutFn:u,mixPanelFn:r,changeSelectedFormTab:g,resetForm:l,uploadImageFn:h,values:i})]})}});var A},hF=e=>{let{isOpen:t,linkURL:n,onCloseModal:r}=e;return(0,a.jsx)(dp.e,{appear:!0,show:t,as:i.Fragment,children:(0,a.jsxs)(pp.l,{as:"div",className:"relative z-[1000]",onClose:r,children:[(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,a.jsx)("div",{"data-testid":"flowty-listing-modal",className:"fixed max-md:top-[40px] inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center text-center",children:(0,a.jsx)(dp.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(pp.l.Panel,{className:"w-full md:w-[511px] max-h-[500px] h-full flex flex-col transform rounded-lg bg-[#04070B] text-left align-middle shadow-xl transition-all border border-[#495057]",children:[(0,a.jsxs)(pp.l.Title,{as:"div",className:"border-b border-[#495057] px-[40px] py-[30px] md:py-8 w-full flex justify-between items-center",children:[(0,a.jsx)("p",{className:"text-white font-black text-[24px]",children:"Leaving Flowty"}),(0,a.jsx)(hp.A,{onClick:r,className:"w-6 h-6 md:h-8 md:w-8 cursor-pointer fill-white"})]}),(0,a.jsxs)("div",{className:"w-full p-[32px] flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#ADB5BD] text-[12px] font-normal leading-normal",children:"This link is taking you to an external site. Flowty has not reviewed or verified the authenticity or security of the site. Please only proceed if you trust the link."}),(0,a.jsx)("div",{className:"bg-[#FFFFFF0F] py-[8px] px-[12px] rounded-lg",children:(0,a.jsx)("p",{className:"text-[#D9D9D9] text-[12px]",children:(e=>{const t=e.match(/^(https?:\/\/)([^\/]+)(.*)$/);if(!t)return e;const[,n,r,i]=t,o=r.split("."),s=o.slice(0,-1).join("."),l=o.slice(-1).join(".");return(0,a.jsxs)(a.Fragment,{children:[n,(0,a.jsx)("strong",{children:s}),".",l,i]})})(n)})})]}),(0,a.jsxs)("div",{className:"h-full w-full flex justify-center items-center gap-4 border-t border-[#495057] px-[40px] py-[18px]",children:[(0,a.jsx)(s,{text:"BACK",onClick:r,variant:"secondary",btnSize:"small",bgColor:"white",className:"h-[35px] flex items-center justify-center px-4"}),(0,a.jsx)(s,{text:"VISIT EXTERNAL SITE",onClick:()=>{window.open(n,"_blank"),r()},variant:"secondary",btnSize:"small",className:"h-[35px] flex items-center justify-center px-4",bgColor:"warning"})]})]})})})})]})})},fF=e=>{var t;let{fields:n,selectedField:r,updateSelectedField:s}=e;const[l,c]=(0,i.useState)(!1),u=(0,i.useRef)(null),d=e=>{u.current&&!u.current.contains(e.target)&&c(!1)};return(0,i.useEffect)((()=>(l?document.addEventListener("click",d):document.removeEventListener("click",d),()=>{document.removeEventListener("click",d)})),[l]),(0,a.jsxs)("div",{className:"relative w-full md:w-[340px]",ref:u,children:[(0,a.jsxs)("button",{onClick:e=>{e.stopPropagation(),c(!l)},className:"flex h-[2.5rem] justify-center items-center py-2 text-base border border-[#FFFFFF1F] rounded-md bg-[#606e7d33] hover:bg-glassFillGrayHover font-normal max-sm:px-4 px-8 w-full",children:["Filter By:",(0,a.jsx)("span",{className:"text-base lg:text-sm 2xl:text-base mx-1 mr-2",children:(null===(t=n.find((e=>e.value===r)))||void 0===t?void 0:t.label)||"Recently Viewed"})," "]}),(0,a.jsx)("div",{className:(0,o.cn)("absolute top-[42px] rounded-md overflow-hidden transition-all duration-500 ease-in-out z-10 w-full bg-[#04070B] border border-[#FFFFFF1F]",{"max-h-0 p-0 opacity-0":!l,"max-h-96 opacity-100":l}),children:(0,a.jsx)("div",{className:"bg-[#606E7D33] py-3",children:null===n||void 0===n?void 0:n.map((e=>(0,a.jsx)("button",{className:"flex justify-between items-center px-4 py-2 cursor-pointer w-full hover:bg-slate-500 hover:bg-opacity-20 whitespace-nowrap",onClick:t=>{t.stopPropagation(),s(e.value),c(!1)},children:(0,a.jsx)("span",{className:"text-[14px] mr-4 font-medium text-[#F8F9FA] ".concat(r===e.value&&"text-primary"," "),children:e.label})},e.label)))})})]})};const mF=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"}))}));const gF=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z",clipRule:"evenodd"}),i.createElement("path",{d:"M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"}))}));const vF=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"}),i.createElement("path",{d:"M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"}))}));const yF=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}))}));const bF=n.p+"static/media/missing-collection-image-icon.e324899d7a657fe78203a28ae205a218.svg";var wF;function xF(){return xF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xF.apply(null,arguments)}function CF(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",xF({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,wF||(wF=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z",fill:"#F8F9FA"})))}const AF=i.forwardRef(CF),EF=(n.p,e=>{let{flowTokenSummary:t,usdcTokenSummary:n,isEditing:r}=e;return(0,a.jsxs)("div",{className:(0,o.cn)("flex flex-col items-start",r&&"blur-[1px] opacity-30"),children:[(null===t||void 0===t?void 0:t.balance)&&(0,a.jsxs)("div",{className:" flex flex-row items-center",children:[(0,a.jsx)("span",{children:(0,a.jsx)(Er,{token:"FLOW",isLarge:!0})}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:an()(t.balance).format("0,0.00")}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:"FLOW"})]}),(null===n||void 0===n?void 0:n.balance)&&(0,a.jsxs)("div",{className:"".concat(r?"opacity-50":"","  flex flex-row items-center mt-3"),children:[(0,a.jsx)("span",{children:(0,a.jsx)(Er,{token:"USDC",isLarge:!0})}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:an()(n.balance).format("0,0.00")}),(0,a.jsx)("span",{className:"font-montserrat font-semibold text-white ml-2 text-sm",children:"USDC"})]})]})});const _F=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM6.293 6.707a1 1 0 010-1.414l3-3a1 1 0 011.414 0l3 3a1 1 0 01-1.414 1.414L11 5.414V13a1 1 0 11-2 0V5.414L7.707 6.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));var TF=n(87043);const SF=e=>{let{clearIsEditing:t,saveNewImage:n,onCancel:r,onChangeHandler:o,defaultName:s,defaultImage:l,childWalletAddress:c,parentWalletAddress:u}=e;const[d,p]=(0,i.useState)(s),[h,f]=(0,i.useState)(!1),[m,g]=(0,i.useState)(l),v=(0,i.useRef)(null),y="".concat(u,"_").concat(c);return(0,a.jsxs)("div",{className:"absolute top-[14px] flex gap-2 items-center",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("input",{type:"file",ref:v,style:{display:"none"},onChange:e=>o(e,g,f,y)}),(0,a.jsx)("button",{className:"flex flex-col focus:border-none focus:ring-0 rounded-[0.25rem] h-8 w-8 bg-cover bg-center text-white cursor-pointer items-center justify-center",onClick:e=>{e.stopPropagation(),(()=>{var e;v&&v.current&&(null===(e=v.current)||void 0===e||e.click())})()},style:{backgroundColor:m&&!h?"transparent":"",backgroundImage:m&&!h?"url('".concat(m,"')"):"",backgroundRepeat:"no-repeat",backgroundSize:"contain"},children:(0,a.jsx)("div",{className:"bg-black/60 border border-white rounded-[0.25rem] w-full h-full flex items-center justify-center p-1",children:h?(0,a.jsx)(Zk,{width:14,height:14,color:"white",strokeWidth:6,secondaryColor:"#FFFFFF1F"}):(0,a.jsx)(_F,{className:"text-white"})})}),(0,a.jsx)("input",{onChange:e=>p(e.target.value),className:"bg-[#3434347f] font-bold border py-1 border-white rounded-[0.25rem] px-2 max-w-[80%] focus:outline-none focus:ring-0 active:ring-0 text-[1rem]",value:d,maxLength:20,onClick:e=>e.stopPropagation()}),(0,a.jsxs)("div",{className:"absolute z-2 flex flex-row gap-1 bottom-[-40px] right-0 pr-[8px]",children:[(0,a.jsx)("button",{disabled:!d,className:"bg-white rounded-[0.5rem] flex p-[0.625rem] border-[1px] white-box-shadow",onClick:e=>{e.stopPropagation(),(async()=>{f(!0),await n(c,d,m),t(),f(!1)})()},children:(0,a.jsx)(TF.A,{className:"h-[12px] w-[12px] text-black"})}),(0,a.jsx)("button",{className:"bg-white rounded-[0.5rem] flex p-[0.625rem] border-[1px] white-box-shadow",onClick:e=>{e.stopPropagation(),r()},children:(0,a.jsx)(hp.A,{className:"h-[12px] w-[12px] text-black"})})]})]})},kF=e=>{var t,n,r,s,l,c,u;let{acct:d,isSelected:p,canEdit:h,onSelect:f,onUploadNewImage:m,saveNewImage:g,tokenIdentifiers:v,parentWalletAddress:y}=e;const[b,w]=(0,i.useState)(!1),[x,C]=(0,i.useState)(!1),A=(0,i.useMemo)((()=>{var e;const t=null===(e=d.display)||void 0===e?void 0:e.name;return t&&t.startsWith("0x")?t.substring(0,7):t.length>20?t.substring(0,18)+"...":t}),[d]),E=()=>{w(!1)},_=e=>{(e=>{w(!0),navigator.clipboard.writeText(e)})(e),setTimeout(E,5e3)};function S(e,t){var n,r;return null!==(n=null===(r=Object.entries(e).find((e=>{let[n,r]=e;return r===t})))||void 0===r?void 0:r[0])&&void 0!==n?n:""}const k=p?"border border-[#ADB5BD] border-[2px]":"border border-[#47515d] hover:border-[#606973] border-[2px]",P=b?"text-primary":"text-white",D="blur-[1px] opacity-30";return(0,a.jsxs)("div",{onClick:()=>{var e;return f(null!==(e=d.address)&&void 0!==e?e:"")},className:(0,o.cn)(k,"bg-[#FFFFFF1F] min-w-[18rem] min-h-[11rem] h-full md:h-auto flex flex-col gap-2 rounded-lg mr-4 py-[1rem] px-[1.25rem] relative cursor-pointer"),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[x&&(0,a.jsx)("div",{className:"w-[28px] h-[28px]"}),(0,a.jsx)("img",{className:(0,o.cn)("w-[28px] h-[28px] rounded-[0.25rem]",x&&"hidden"),src:null===d||void 0===d||null===(t=d.display)||void 0===t?void 0:t.thumbnail,alt:"thumbnail",onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src=bF,t.className="w-8 h-8 rounded-[0.25rem] text-white bg-glassFillGray"}}),(0,a.jsx)("p",{className:(0,o.cn)("font-bold text-[1rem] truncate border border-transparent",x&&"hidden"),children:A})]}),p?(0,a.jsx)(AF,{className:(0,o.cn)(x&&D)}):(0,a.jsx)(gF,{className:(0,o.cn)("w-[1.125rem] h-[1.125rem] text-white",x&&D)})]}),(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1",x&&D),onClick:e=>{e.stopPropagation(),_(d.address)},children:[(0,a.jsx)("p",{className:"text-[#DEDEDE] text-[0.875rem] font-normal ".concat(P),children:d.address}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{className:(0,o.cn)("flex items-center group text-white"),children:(0,a.jsx)("div",{className:"px-1",children:(0,a.jsx)("div",{className:"px-1",children:b?(0,a.jsx)(vF,{className:"w-[1.125rem] h-[1.125rem] text-primary"}):(0,a.jsx)(mF,{className:"w-[1.125rem] h-[1.125rem]"})})})})})]})]}),(0,a.jsxs)("div",{className:(0,o.cn)("flex flex-wrap space-x-2 items-center",x&&D),children:[d.isMain?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z,{text:"MAIN",type:"primary",size:"small"}),(0,a.jsx)(z,{text:"FULL",type:"tertiary",size:"small"})]}):(0,a.jsx)(z,{text:"CHILD",type:"secondary",size:"small"}),!d.isMain&&(0,a.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAhCAYAAAC4JqlRAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANJSURBVHgBtVjhdZtADD67bpO8lx8egQ3qDUonaLMBnaBkgrgTxJ3A3sDtBGQD0gnwBvaPvGDAoEr2HRbiDpu41XsK+OCk7/TppCNKXSAA4KGO1QUyOPdF7ShA/YQ6QfXEK8+oK9TfqE+DwWCl/oWgYx81ArskqGvHszlFSL1VaMWoj8JohBrYDOPYRD9bijkPqq9obmNmZHaK67Qo/DTPAzZ/ISLlqXNET07YxEmn4zT1tnkebbMcSNO08DtseX2ckzx2vZ8VxYNxXCuCsdiMGYhxF4Ale7GTwyzbfWWOEw7CUMHsjhmIyOU84KFCnZ4CkaZ5QCGvKThSkVjsk02zYwIbgEQ+PAcErc6snO7TLFtIGti7oVmkc/XSeFlWcReImgqHUwuIqBUF2yCF13BbluXaBeJ1m8/2vGfZ9EwAYSMXdIIYGcttRfcvL/nERUeWFUu5/U4AaPgzpbZG9LrdhmJrJVmezymzMRILGwgCqHoIi7jPQzIzCNHpurW/te52O+jKCSn7Cpk2CxAcKitJOFTHrraiP9jFNlCpezMG1eBzBdU99s0n/L3ZldWmqqqf+vm0CwQtZlBBNBwWMTQL0EZf9xQsWlmJUucBUiKN6msrJ3DO922WLYkus2pjhycpmztthIM7Il73xlJ3/ZYgTEKK/ImPfeJgiwMYmtArccC4vf3wfH11dXdz4z5YIF1TvPzQP6ej0Yjo+4Yufmm7WP1UnaCDd8Vc3xo6NiMG4KPqIRRuXIqPIO5wJTT0MByq4Pr6/YrGaICKFKhqWU8C2Ahfz3xfrqHH+c7sFFdO6EJmqFibXAJZB/RgZMsDl9DW0oZjPs5B7Mry0CGxUvKFwbHsR3xi2BqUTrFCUiaTMVN+kYaZfA9ONDCwND0TFnerVM2aX28tLL822lwgwNH05EMC4qlWBOqw15oXxSPxa2tEEgQ0T1uBbZE8F2LbyurQC01TeycUIEyE58olmoqEgfDk80afQCpOdUE4FjqANxxMWxMwq0OqbvLc57DlQ59TsQPEPmxnT1bWj5q4z3xuiHNIQqdmStaJA3QI7c+4mbpEoP2VI+Wib8M+X8ceXnzUL+rQuGQUVqhPqH9QF3SuUP9bNNcX/X/gL1Ihqq2cRkTYAAAAAElFTkSuQmCC",alt:"view only",className:" w-[1rem] h-[1rem] "})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)(EF,{isEditing:x,flowTokenSummary:null===(n=d.tokens)||void 0===n?void 0:n[S(v,T.TOKEN_TO_READABLE_TOKEN.FLOW)],usdcTokenSummary:null===(r=d.tokens)||void 0===r?void 0:r[S(v,T.TOKEN_TO_READABLE_TOKEN.USDC)]}),(0,a.jsx)("div",{className:(0,o.cn)("bottom-[1.125rem] right-[1.125rem]",!x&&"absolute"),children:!d.isMain&&h&&(0,a.jsx)(a.Fragment,{children:x?(0,a.jsx)(SF,{clearIsEditing:()=>C(!1),onChangeHandler:m,saveNewImage:g,onCancel:()=>{C(!1)},defaultName:null!==(s=null===(l=d.display)||void 0===l?void 0:l.name)&&void 0!==s?s:d.address,defaultImage:null!==(c=null===(u=d.display)||void 0===u?void 0:u.thumbnail)&&void 0!==c?c:bF,childWalletAddress:d.address,parentWalletAddress:y}):(0,a.jsx)("button",{className:"rounded-[0.5rem] backdrop-blur-[30px] bg-[#ffffff1f] p-[0.625rem] border-[1px] border-[#7C7C7C] hover:bg-[#ffffff33] hover:border-[#ffffff85]",onClick:e=>{e.stopPropagation(),C(!0)},children:(0,a.jsx)(yF,{className:"text-white h-[12px] w-[12px]"})})})})]})]},d.address)},PF=e=>{let{mainAccount:t,childAccounts:n,isLoggedUserAcct:r,selectedWalletAddresses:o,updateSelectedAddresses:s,onUploadNewImage:l,saveNewImage:c,tokenIdentifiers:u}=e;const[d,p]=(0,i.useState)(!0);return(0,a.jsx)("div",{className:"w-full md:hidden pl-6",children:(0,a.jsxs)(Ji,{slidesPerView:"auto",spaceBetween:10,effect:"slide",speed:800,centeredSlides:!d,modules:[No],children:[n&&Object.keys(n).length>1&&(0,a.jsx)("span",{slot:"container-end",className:"h-32 w-32",children:(0,a.jsx)(Do,{itemsLength:Object.keys(n).length,setIsFirstIndex:p,hiddeArrows:!0})}),t&&(0,a.jsx)($i,{className:"!w-auto !h-auto",children:(0,a.jsx)(kF,{saveNewImage:c,onUploadNewImage:l,parentWalletAddress:t.address,acct:t,isSelected:o.includes("".concat(t.address)),onSelect:s,tokenIdentifiers:u})},t.address),n&&Object.values(n).map((e=>{var n;return e.address===(null===t||void 0===t?void 0:t.address)?null:(0,a.jsx)($i,{className:"!w-auto !h-auto",children:(0,a.jsx)(kF,{saveNewImage:c,onUploadNewImage:l,parentWalletAddress:null!==(n=null===t||void 0===t?void 0:t.address)&&void 0!==n?n:"",canEdit:r,acct:e,isSelected:o.includes(e.address),onSelect:s,tokenIdentifiers:u},e.address)},e.address)}))]})})},DF=e=>{let{mainAccount:t,childAccounts:n,selectedWalletAddresses:r,updateSelectedAddresses:o,clearAllAddresses:s,selectAllAddresses:l,onUploadNewImage:c,saveNewImage:u,isLoggedUserAcct:d,tokenIdentifiers:p}=e;const[h,f]=(0,i.useState)(!0);return(0,a.jsx)("div",{className:"bg-transparent md:bg-[#FFFFFF0A] rounded-md md:p-[18px] md:border border-[#4B4B4B7A] text-white",children:(0,a.jsxs)("div",{className:"!border-none !rounded-md  w-full relative",children:[(0,a.jsxs)("div",{className:"w-full flex justify-between cursor-pointer",onClick:()=>f((e=>!e)),children:[(0,a.jsxs)("div",{className:"w-full flex flex-row justify-between md:justify-start items-center gap-3",children:[(0,a.jsx)("span",{className:"text-white text-[1.125rem] font-[700]",children:"Accounts"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),l()},className:"bg-[#606E7D33] hover:bg-[#606E7D52] border border-[#FFFFFF1F] rounded-md px-[12px] py-[6px] cursor-pointer leading-none",children:"Select All"}),(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),s()},className:"bg-[#606E7D33] hover:bg-[#606E7D52] border border-[#FFFFFF1F] rounded-md px-[12px] py-[6px] cursor-pointer leading-none",children:"Clear All"})]})]}),(0,a.jsx)("div",{className:"hidden md:flex",children:h?(0,a.jsx)(B.A,{height:24,width:24}):(0,a.jsx)(U.A,{height:24,width:24})})]}),h&&(0,a.jsxs)("div",{className:"py-2 px-0 mt-4 overflow-x-auto styled-scroll",children:[(0,a.jsx)("div",{className:"hidden md:flex flex-col items-start",children:(0,a.jsxs)("div",{className:"flex",children:[t&&(0,a.jsx)(kF,{saveNewImage:u,onUploadNewImage:c,parentWalletAddress:t.address,acct:t,isSelected:r.includes("".concat(t.address)),onSelect:o,tokenIdentifiers:p}),n&&Object.values(n).map((e=>{var n;return e.address===(null===t||void 0===t?void 0:t.address)?null:(0,a.jsx)(kF,{saveNewImage:u,onUploadNewImage:c,parentWalletAddress:null!==(n=null===t||void 0===t?void 0:t.address)&&void 0!==n?n:"",canEdit:d,acct:e,isSelected:r.includes(e.address),onSelect:o,tokenIdentifiers:p},e.address)}))]})}),(0,a.jsx)(PF,{mainAccount:t,childAccounts:n,isLoggedUserAcct:d,selectedWalletAddresses:r,updateSelectedAddresses:o,onUploadNewImage:c,saveNewImage:u,tokenIdentifiers:p})]})]})})}},55503:(e,t,n)=>{"use strict";n.d(t,{w:()=>T,h:()=>_});var r=n(98860),i=n(61462),o=n(78336),a=n(99334);const s=e=>{let{details:t,title:n,isPrice:r}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-[2px] w-full ",children:[(0,a.jsx)("div",{className:"text-white leading-normal text-[14px] font-semibold",children:n}),(0,a.jsx)("div",{className:"flex text-white font-montserrat text-[12px] font-normal items-center leading-normal",children:r?(0,a.jsxs)("div",{className:"flex items-center flex-end gap-[2px]",children:[(0,a.jsx)(o.h,{className:"w-[16px] h-[16px] mr-1"}),(0,a.jsx)("span",{className:"text-[14px] font-semibold",children:t}),(0,a.jsx)("span",{className:"text-[14px] font-bold",children:"FLOW"})]}):t})]})};var l;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function u(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:20,height:16,viewBox:"0 0 20 16",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,l||(l=i.createElement("path",{d:"M19.1663 0.499591C18.3683 1.06249 17.4848 1.49302 16.5497 1.77459C16.0478 1.19752 15.3808 0.788501 14.6389 0.602863C13.897 0.417224 13.1159 0.46392 12.4014 0.736635C11.6869 1.00935 11.0734 1.49493 10.6438 2.12769C10.2143 2.76045 9.98942 3.50987 9.99967 4.27459V5.10792C8.5352 5.1459 7.08407 4.8211 5.77551 4.16246C4.46696 3.50382 3.3416 2.53179 2.49967 1.33292C2.49967 1.33292 -0.833659 8.83292 6.66634 12.1663C4.95011 13.3312 2.90564 13.9154 0.833008 13.8329C8.33301 17.9996 17.4997 13.8329 17.4997 4.24959C17.4989 4.01747 17.4766 3.78592 17.433 3.55792C18.2835 2.71917 18.8837 1.66018 19.1663 0.499591Z",stroke:"#F8F9FA",strokeLinecap:"round",strokeLinejoin:"round"})))}const d=i.forwardRef(u);n.p;var p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,p||(p=i.createElement("path",{d:"M7.5624 2.8002C7.5624 2.8002 5.01553 2.9752 3.3499 4.31269C3.34209 4.31582 3.33272 4.32051 3.3249 4.32519C3.03584 4.59238 2.81865 5.00644 2.5499 5.60019C2.28115 6.19394 1.99678 6.95801 1.7374 7.81269C1.22021 9.52363 0.799902 11.6236 0.799902 13.6002C0.79834 13.6705 0.815528 13.7393 0.849902 13.8002C1.43428 14.8268 2.50928 15.4471 3.5124 15.8377C4.51553 16.2283 5.44209 16.3846 5.9124 16.4002C6.04521 16.4049 6.17178 16.3439 6.2499 16.2377L7.2249 14.8877C8.01084 15.0736 8.93272 15.2002 9.9999 15.2002C11.0671 15.2002 11.989 15.0736 12.7749 14.8877L13.7499 16.2377C13.828 16.3439 13.9546 16.4049 14.0874 16.4002C14.5577 16.3846 15.4843 16.2283 16.4874 15.8377C17.4905 15.4471 18.5655 14.8268 19.1499 13.8002C19.1843 13.7393 19.2015 13.6705 19.1999 13.6002C19.1999 11.6236 18.7796 9.52363 18.2624 7.81269C18.003 6.95801 17.7187 6.19394 17.4499 5.60019C17.1812 5.00644 16.964 4.59238 16.6749 4.32519C16.6671 4.32051 16.6577 4.31582 16.6499 4.31269C14.9843 2.9752 12.4374 2.8002 12.4374 2.8002C12.4077 2.79707 12.3796 2.79707 12.3499 2.8002C12.2108 2.81895 12.0937 2.90957 12.0374 3.0377C12.0374 3.0377 11.9015 3.33613 11.8124 3.7627C11.0327 3.6377 10.3765 3.6002 9.9999 3.6002C9.62334 3.6002 8.96709 3.6377 8.1874 3.7627C8.09834 3.33613 7.9624 3.0377 7.9624 3.0377C7.89365 2.88145 7.73272 2.78613 7.5624 2.8002ZM7.3124 3.66269C7.34209 3.74395 7.3624 3.82051 7.3874 3.91269C6.48584 4.12207 5.49834 4.46426 4.5749 5.03769C4.42959 5.09863 4.33428 5.23926 4.32959 5.39707C4.32646 5.55332 4.41553 5.69863 4.55615 5.76738C4.69834 5.83457 4.86709 5.81426 4.9874 5.71269C6.84053 4.56426 9.19834 4.40019 9.9999 4.40019C10.8015 4.40019 13.1593 4.56426 15.0124 5.71269C15.1327 5.81426 15.3015 5.83457 15.4437 5.76738C15.5843 5.69863 15.6733 5.55332 15.6702 5.39707C15.6655 5.23926 15.5702 5.09863 15.4249 5.03769C14.5015 4.46426 13.514 4.12207 12.6124 3.91269C12.6374 3.82051 12.6577 3.74395 12.6874 3.66269C13.1437 3.71895 14.9171 3.95801 16.1249 4.91269C16.203 4.98457 16.4749 5.38457 16.7249 5.93769C16.9749 6.49082 17.2374 7.21113 17.4874 8.03769C17.9749 9.65019 18.3687 11.6393 18.3874 13.4627C17.9327 14.1986 17.0796 14.7455 16.1999 15.0877C15.3999 15.3986 14.653 15.5377 14.2624 15.5752L13.5874 14.6627C13.9312 14.5518 14.2405 14.4314 14.5124 14.3127C15.5218 13.8689 16.0624 13.4002 16.0624 13.4002C16.228 13.2518 16.2421 12.9971 16.0937 12.8314C15.9452 12.6658 15.6905 12.6518 15.5249 12.8002C15.5249 12.8002 15.1062 13.183 14.1874 13.5877C13.8499 13.7361 13.4405 13.883 12.9749 14.0127C12.8671 14.0002 12.7593 14.0314 12.6749 14.1002C11.9296 14.2814 11.0437 14.4002 9.9999 14.4002C8.94834 14.4002 8.06084 14.2705 7.3124 14.0877C7.22803 14.0314 7.1249 14.008 7.0249 14.0252C6.55771 13.8955 6.15146 13.7361 5.8124 13.5877C4.89365 13.183 4.4749 12.8002 4.4749 12.8002C4.38428 12.7158 4.25928 12.6799 4.1374 12.7002C3.98271 12.7236 3.85459 12.8346 3.8124 12.9861C3.76865 13.1361 3.81865 13.2986 3.9374 13.4002C3.9374 13.4002 4.47803 13.8689 5.4874 14.3127C5.75928 14.4314 6.06865 14.5518 6.4124 14.6627L5.7374 15.5752C5.34678 15.5377 4.5999 15.3986 3.7999 15.0877C2.92022 14.7455 2.06709 14.1986 1.6124 13.4627C1.63115 11.6393 2.0249 9.65019 2.5124 8.03769C2.7624 7.21113 3.0249 6.49082 3.2749 5.93769C3.5249 5.38457 3.79678 4.98457 3.8749 4.91269C5.08272 3.95801 6.85615 3.71895 7.3124 3.66269ZM7.3999 8.40019C6.37959 8.40019 5.5999 9.32676 5.5999 10.4002C5.5999 11.4736 6.37959 12.4002 7.3999 12.4002C8.42021 12.4002 9.1999 11.4736 9.1999 10.4002C9.1999 9.32676 8.42021 8.40019 7.3999 8.40019ZM12.5999 8.40019C11.5796 8.40019 10.7999 9.32676 10.7999 10.4002C10.7999 11.4736 11.5796 12.4002 12.5999 12.4002C13.6202 12.4002 14.3999 11.4736 14.3999 10.4002C14.3999 9.32676 13.6202 8.40019 12.5999 8.40019ZM7.3999 9.20019C7.92647 9.20019 8.3999 9.70644 8.3999 10.4002C8.3999 11.0939 7.92647 11.6002 7.3999 11.6002C6.87334 11.6002 6.3999 11.0939 6.3999 10.4002C6.3999 9.70644 6.87334 9.20019 7.3999 9.20019ZM12.5999 9.20019C13.1265 9.20019 13.5999 9.70644 13.5999 10.4002C13.5999 11.0939 13.1265 11.6002 12.5999 11.6002C12.0733 11.6002 11.5999 11.0939 11.5999 10.4002C11.5999 9.70644 12.0733 9.20019 12.5999 9.20019Z",fill:"#F8F9FA"})))}const m=i.forwardRef(f);n.p;var g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}function y(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,g||(g=i.createElement("path",{d:"M5.4002 0.200195C2.53319 0.200195 0.200195 2.53319 0.200195 5.4002V12.6002C0.200195 15.4672 2.53319 17.8002 5.4002 17.8002H12.6002C15.4672 17.8002 17.8002 15.4672 17.8002 12.6002V5.4002C17.8002 2.53319 15.4672 0.200195 12.6002 0.200195H5.4002ZM5.4002 1.0002H12.6002C15.0348 1.0002 17.0002 2.9656 17.0002 5.4002V12.6002C17.0002 15.0348 15.0348 17.0002 12.6002 17.0002H5.4002C2.9656 17.0002 1.0002 15.0348 1.0002 12.6002V5.4002C1.0002 2.9656 2.9656 1.0002 5.4002 1.0002ZM13.8002 3.4002C13.588 3.4002 13.3845 3.48448 13.2345 3.63451C13.0845 3.78454 13.0002 3.98802 13.0002 4.2002C13.0002 4.41237 13.0845 4.61585 13.2345 4.76588C13.3845 4.91591 13.588 5.0002 13.8002 5.0002C14.0124 5.0002 14.2159 4.91591 14.3659 4.76588C14.5159 4.61585 14.6002 4.41237 14.6002 4.2002C14.6002 3.98802 14.5159 3.78454 14.3659 3.63451C14.2159 3.48448 14.0124 3.4002 13.8002 3.4002ZM9.0002 4.6002C6.57488 4.6002 4.6002 6.57488 4.6002 9.0002C4.6002 11.4255 6.57488 13.4002 9.0002 13.4002C11.4255 13.4002 13.4002 11.4255 13.4002 9.0002C13.4002 6.57488 11.4255 4.6002 9.0002 4.6002ZM9.0002 5.4002C10.9932 5.4002 12.6002 7.00723 12.6002 9.0002C12.6002 10.9932 10.9932 12.6002 9.0002 12.6002C7.00723 12.6002 5.4002 10.9932 5.4002 9.0002C5.4002 7.00723 7.00723 5.4002 9.0002 5.4002Z",fill:"#F8F9FA"})))}const b=i.forwardRef(y);n.p;var w=n(91324);const x=e=>{let{twitterAccount:t,discordAccount:n,instagramAccount:r,websiteUrl:i}=e;const o=(e,t)=>{if(e.includes("http://")||e.includes("https://"))return e;switch(t){case"DISCORD":return"https://discord.gg/".concat(e);case"INSTAGRAM":return"https://www.instagram.com/".concat(e);case"TWITTER":return"https://www.twitter.com/".concat(e);default:return"https://".concat(e)}};return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"text-white text-[18px] font-black pb-2",children:"External Links"}),(0,a.jsxs)("div",{className:"flex flex-col gap-[20px] text-white",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(w.h,{}),i?(0,a.jsx)("a",{className:"text-[14px]",href:o(i),target:"_blank",rel:"noreferrer",children:o(i)}):(0,a.jsx)("p",{children:"-"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(d,{}),t?(0,a.jsx)("a",{className:"text-[14px]",href:o(t,"TWITTER"),target:"_blank",rel:"noreferrer",children:o(t,"TWITTER")}):(0,a.jsx)("p",{children:"-"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(m,{}),n?(0,a.jsx)("a",{href:"".concat(o(n,"DISCORD")),className:"text-[14px]",target:"_blank",rel:"noreferrer",children:"".concat(o(n,"DISCORD"))}):(0,a.jsx)("p",{children:"-"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(b,{}),r?(0,a.jsx)("a",{className:"text-[14px]",href:o(r,"INSTAGRAM"),target:"_blank",rel:"noreferrer",children:o(r,"INSTAGRAM")}):(0,a.jsx)("p",{children:"-"})]})]})]})},C=e=>{let{imageSrc:t,imageType:n,className:r}=e;const[o,s]=(0,i.useState)(!1);return(0,a.jsxs)("div",{className:"flex flex-col gap-[8px] 3xl:gap-3",children:[(0,a.jsx)("div",{className:"text-white font-montserrat text-[12px] 3xl:text-[18px] font-bold leading-normal",children:n}),(0,a.jsx)("img",{src:t,alt:"".concat(n),className:"".concat(r," max-h-[8.875rem] rounded-lg ").concat(o?"":"hidden"),onLoad:()=>{s(!0)}}),(0,a.jsx)("div",{className:"".concat(r," max-h-[8.875rem] rounded-lg animate-pulse bg-[#edf3f60a] ").concat(o?"hidden":"")})]})};var A=n(15957);const E=()=>{var e,t,n,i,o,s,l,c,u,d,p,h,f,m,g,v;const[y]=(0,r.Mt)("dropThumbnailImage"),[b]=(0,r.Mt)("nftThumbnailImage"),[w]=(0,r.Mt)("nftImage"),[x]=(0,r.Mt)("nftBannerImage");return(0,a.jsxs)("div",{className:"flex flex-col md:hidden gap-6",children:[(0,a.jsx)("div",{className:"text-white text-[18px] font-black",children:"Images"}),(0,a.jsxs)("div",{className:"flex flex-wrap",children:[(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(C,{imageType:"NFT Image",imageSrc:null!==(e=w.value)&&void 0!==e&&e.fileCid?"".concat(A.n).concat(null===(t=w.value)||void 0===t?void 0:t.fileCid):null!==(n=null===(i=w.value)||void 0===i?void 0:i.fileBase64)&&void 0!==n?n:"",className:"w-[80px] h-[80px]"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsx)(C,{imageType:"Thumbnail Image",imageSrc:null!==(o=b.value)&&void 0!==o&&o.fileCid?"".concat(A.n).concat(null===(s=b.value)||void 0===s?void 0:s.fileCid):null!==(l=null===(c=b.value)||void 0===c?void 0:c.fileBase64)&&void 0!==l?l:"",className:"w-[80px] h-[80px]"})})]}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(C,{imageType:"Banner Image",imageSrc:null!==(u=x.value)&&void 0!==u&&u.fileCid?"".concat(A.n).concat(null===(d=x.value)||void 0===d?void 0:d.fileCid):null!==(p=null===(h=x.value)||void 0===h?void 0:h.fileBase64)&&void 0!==p?p:"",className:"h-[80px] w-full xs:w-[320px]"})}),(0,a.jsx)("div",{children:(0,a.jsx)(C,{imageType:"Drop Image",imageSrc:null!==(f=y.value)&&void 0!==f&&f.fileCid?"".concat(A.n).concat(null===(m=y.value)||void 0===m?void 0:m.fileCid):null!==(g=null===(v=y.value)||void 0===v?void 0:v.fileBase64)&&void 0!==g?g:"",className:"w-[80px] h-[80px]"})})]})},_=e=>e.replace(/[^a-zA-Z0-9_]/g,""),T=()=>{const[e]=(0,r.Mt)("collectionName"),[t]=(0,r.Mt)("collectionDescription"),[n]=(0,r.Mt)("collectionWebsiteURL"),[i]=(0,r.Mt)("mintPrice"),[o]=(0,r.Mt)("royalty"),[l]=(0,r.Mt)("twitterHandle"),[c]=(0,r.Mt)("instagramHandle"),[u]=(0,r.Mt)("discordHandle"),[d]=(0,r.Mt)("dropStartDateTime"),[p]=(0,r.Mt)("dropEndDateTime"),h=e=>new Date(e).toLocaleString("en-US",{day:"numeric",hour:"numeric",hour12:!0,minute:"numeric",month:"long",year:"numeric"});return(0,a.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,a.jsx)("div",{className:"text-white text-[18px] font-black pb-2",children:"Collection Information"}),(0,a.jsx)(s,{title:"Collection Name",details:e.value}),(0,a.jsx)(s,{title:"Description",details:t.value}),(0,a.jsx)(s,{title:"Contract Name",details:_(e.value)})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,a.jsx)("div",{className:"text-white text-[18px] font-black pb-2",children:"Mint + Royalty Information"}),(0,a.jsx)(s,{title:"Mint Price",details:Number(i.value)?i.value:"FREE",isPrice:Boolean(i.value)}),(0,a.jsx)(s,{title:"Start Date & Time (Local Time Zone)",details:h(d.value.dateTime)}),(0,a.jsx)(s,{title:"End Date & Time (Local Time Zone)",details:h(p.value.dateTime)}),(0,a.jsx)(s,{title:"Royalty",details:"".concat(Number(o.value),"%")})]}),(0,a.jsx)(x,{discordAccount:u.value,instagramAccount:c.value,twitterAccount:l.value,websiteUrl:n.value}),(0,a.jsx)(E,{})]})}},97776:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});n(61462);var r=n(14716),i=n(99334);const o=e=>{let{dropStatus:t,smallChip:n,card:o}=e;return(0,i.jsxs)("div",{className:"bg-dropStatusIndicatorBackground w-fit h-fit items-center flex ".concat(o?"gap-[4px] py-[3px] px-[7px] ":"gap-[12px] px-[12px] py-[5px] 2xl:py-[6px]"," border-[1px] rounded-[4px] border-dropStatusIndicatorBorder"),children:[(0,i.jsx)("div",{className:(0,r.cn)("".concat(o?"w-[8px] h-[8px]":"w-[10px] h-[10px]"," rounded-full"),{"bg-[#00FFB4] shadow-pendingActiveDrop":"ACTIVE"===t||"NEVER_ENDING"===t,"bg-[#ADB5BD] shadow-endedDrop":"ENDED"===t,"bg-[#FAFF06] shadow-pendingActiveDrop":"PENDING"===t})}),(0,i.jsx)("span",{className:"uppercase text-neutral-500 font-montserrat ".concat(n?"text-[8px]":o?"text-[10px]":"text-[10px] 2xl:text-[12px]"," font-[600] leading-[16px]"),children:"PENDING"===t?o?"UPCOMING":"COMING SOON":"ACTIVE"===t||"NEVER_ENDING"===t?"LIVE":o?"ENDED":"DROP ENDED"})]})}},73682:(e,t,n)=>{"use strict";n.d(t,{Ng:()=>s,R5:()=>c,R9:()=>o,V8:()=>a,fy:()=>l,tE:()=>u});var r=n(20390),i=n(10514);function o(e){let t,{salePrice:n,spotPrice:r,token:o,valuation:a}=e;if(!a||!n)return 0;if(o===i.SupportedTokens.FLOW){if(0===r)return null;t=1-n*r/a}else t=1-n/a;const s=Number(t.toFixed(2));return Math.floor(100*s)}function a(e,t,n,r){var o;if([i.SupportedTokens.DUC].includes(t||""))return!0;const a=r.tokens.getTokenIdentifier(t);if(!a)return!1;return((null===(o=n.tokens[a])||void 0===o?void 0:o.balance)||0)>=e}function s(e,t,n,r){var o,a;if([i.SupportedTokens.DUC].includes(n||""))return!0;const s=r.tokens.getTokenIdentifier(n);if(!s)return!1;return((null===e||void 0===e||null===(o=e.tokens)||void 0===o||null===(a=o[s])||void 0===a?void 0:a.balance)||0)>=t}function l(e,t,n,r,o){var a,s;if([i.SupportedTokens.DUC].includes(r||""))return!0;const l=o.tokens.getTokenIdentifier(r);if(!l)return!1;return((null===e||void 0===e||null===(a=e.tokens)||void 0===a||null===(s=a[l])||void 0===s?void 0:s.balance)||0)>=n+t}function c(e,t,n){var r,i;if(null!==t&&void 0!==t&&t.includes("DapperUtilityCoin")||null!==t&&void 0!==t&&t.includes("FlowUtilityToken"))return!0;if(!n)return!1;return((null===e||void 0===e||null===(r=e.tokens)||void 0===r||null===(i=r[t])||void 0===i?void 0:i.balance)||0)>=n}const u=e=>{if(isNaN(e))return"-";const t=new Date;return t.setDate(t.getDate()+e),(0,r.default)(t,"yyyy-MM-dd HH:mm")}},30339:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r={Marketplace:"/marketplace",Activity:"/activity",Create:"/create"}},71408:(e,t,n)=>{"use strict";n.d(t,{O:()=>y});var r,i,o,a=n(61462);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}function l(e,t){let{title:n,titleId:l,...c}=e;return a.createElement("svg",s({width:40,height:27,viewBox:"0 0 40 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":l},c),n?a.createElement("title",{id:l},n):null,r||(r=a.createElement("rect",{width:39,height:24,rx:12,fill:"#04E5A3"})),i||(i=a.createElement("g",{filter:"url(#filter0_dd_33451_902)"},a.createElement("circle",{cx:27,cy:12,r:10.5,fill:"white"}))),o||(o=a.createElement("defs",null,a.createElement("filter",{id:"filter0_dd_33451_902",x:14.5,y:.5,width:25,height:26,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:.5}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.08 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_33451_902"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:2}),a.createElement("feGaussianBlur",{stdDeviation:1}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.06 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_33451_902",result:"effect2_dropShadow_33451_902"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_33451_902",result:"shape"})))))}const c=a.forwardRef(l);n.p;var u,d,p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t){let{title:n,titleId:r,...i}=e;return a.createElement("svg",h({width:40,height:27,viewBox:"0 0 40 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,u||(u=a.createElement("rect",{x:1,width:39,height:24,rx:12,fill:"#ADB5BD"})),d||(d=a.createElement("g",{filter:"url(#filter0_dd_33451_899)"},a.createElement("circle",{cx:13,cy:12,r:10.5,fill:"white"}))),p||(p=a.createElement("defs",null,a.createElement("filter",{id:"filter0_dd_33451_899",x:.5,y:.5,width:25,height:26,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:.5}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.08 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_33451_899"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:2}),a.createElement("feGaussianBlur",{stdDeviation:1}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.129412 0 0 0 0 0.145098 0 0 0 0 0.160784 0 0 0 0.06 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_33451_899",result:"effect2_dropShadow_33451_899"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_33451_899",result:"shape"})))))}const m=a.forwardRef(f);n.p;var g=n(98860),v=n(99334);const y=e=>{let{label:t,name:n,loading:r}=e;const[i,,o]=(0,g.Mt)(n),a=i.value;return(0,v.jsxs)("div",{className:"flex justify-between items-center",children:[t&&(0,v.jsx)("span",{children:t})," ",(0,v.jsx)("button",{type:"button",className:"h-8 flex rounded-full outline-none",onClick:()=>{o.setValue(!i.value)},children:(0,v.jsxs)("div",{className:"inset-0 flex justify-center items-center",children:[(0,v.jsx)("div",{className:"flex justify-center items-center transition-opacity duration-1000 ease-in-out ".concat(r?"opacity-0":"opacity-100"),children:a?(0,v.jsx)(c,{}):(0,v.jsx)(m,{})}),(0,v.jsx)("div",{className:"absolute flex justify-center items-center transition-opacity duration-1000 ease-in-out ".concat(r?"opacity-100":"opacity-0"),children:(0,v.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading"})})]})})]})}},38190:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(99334);const i=e=>{let{className:t}=e;return(0,r.jsx)("div",{className:"border-gradient js-show-on-scroll ".concat(t)})}},14716:(e,t,n)=>{"use strict";n.d(t,{cn:()=>q});var r=n(23220),i="-";function o(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]}))}(Object.entries(e.classGroups),n);return i.forEach((function(e){var n=e[0];l(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(i);return""===n[0]&&1!==n.length&&n.shift(),a(n,t)||function(e){if(s.test(e)){var t=s.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function a(e,t){var n;if(0===e.length)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),s=o?a(e.slice(1),o):void 0;if(s)return s;if(0!==t.validators.length){var l=e.join(i);return null===(n=t.validators.find((function(e){return(0,e.validator)(l)})))||void 0===n?void 0:n.classGroupId}}var s=/^\[(.+)\]$/;function l(e,t,n,r){e.forEach((function(e){if("string"!==typeof e){if("function"===typeof e)return e.isThemeGetter?void l(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var i=e[0];l(e[1],c(t,i),n,r)}))}else{(""===e?t:c(t,e)).classGroupId=n}}))}function c(e,t){var n=e;return t.split(i).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function u(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}var d="!";function p(e){var t=e.separator||":",n=1===t.length,r=t[0],i=t.length;return function(e){for(var o,a=[],s=0,l=0,c=0;c<e.length;c++){var u=e[c];if(0===s){if(u===r&&(n||e.slice(c,c+i)===t)){a.push(e.slice(l,c)),l=c+i;continue}if("/"===u){o=c;continue}}"["===u?s++:"]"===u&&s--}var p=0===a.length?e:e.substring(l),h=p.startsWith(d);return{modifiers:a,hasImportantModifier:h,baseClassName:h?p.substring(1):p,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var h=/\s+/;function f(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=m(e))&&(r&&(r+=" "),r+=t);return r}function m(e){if("string"===typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=m(e[r]))&&(n&&(n+=" "),n+=t);return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,a,s=function(e){var n=t[0],c=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=function(e){return{cache:u(e.cacheSize),splitModifiers:p(e),...o(e)}}(c),i=r.cache.get,a=r.cache.set,s=l,l(e)};function l(e){var t=i(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(h).map((function(e){var t=n(e),i=t.modifiers,o=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?a.substring(0,s):a),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(a)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}(i).join(":");return{isTailwindClass:!0,modifierId:o?u+d:u,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,a=t+n;return!o.has(a)&&(o.add(a),i(n,r).forEach((function(e){return o.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return a(e,n),n}return function(){return s(f.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var y=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function E(e){return D(e)||w.has(e)||b.test(e)||_(e)}function _(e){return M(e,"length",L)}function T(e){return M(e,"size",B)}function S(e){return M(e,"position",B)}function k(e){return M(e,"url",U)}function P(e){return M(e,"number",D)}function D(e){return!Number.isNaN(Number(e))}function F(e){return e.endsWith("%")&&D(e.slice(0,-1))}function N(e){return V(e)||M(e,"number",V)}function I(e){return y.test(e)}function R(){return!0}function O(e){return x.test(e)}function j(e){return M(e,"",H)}function M(e,t,n){var r=y.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function L(e){return C.test(e)}function B(){return!1}function U(e){return e.startsWith("url(")}function V(e){return Number.isInteger(Number(e))}function H(e){return A.test(e)}function z(){var e=v("colors"),t=v("spacing"),n=v("blur"),r=v("brightness"),i=v("borderColor"),o=v("borderRadius"),a=v("borderSpacing"),s=v("borderWidth"),l=v("contrast"),c=v("grayscale"),u=v("hueRotate"),d=v("invert"),p=v("gap"),h=v("gradientColorStops"),f=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),y=v("opacity"),b=v("padding"),w=v("saturate"),x=v("scale"),C=v("sepia"),A=v("skew"),M=v("space"),L=v("translate"),B=function(){return["auto",I,t]},U=function(){return[I,t]},V=function(){return["",E]},H=function(){return["auto",D,I]},z=function(){return["","0",I]},W=function(){return[D,P]},q=function(){return[D,I]};return{cacheSize:500,theme:{colors:[R],spacing:[E],blur:["none","",O,I],brightness:W(),borderColor:[e],borderRadius:["none","","full",O,I],borderSpacing:U(),borderWidth:V(),contrast:W(),grayscale:z(),hueRotate:q(),invert:z(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[F,_],inset:B(),margin:B(),opacity:W(),padding:U(),saturate:W(),scale:W(),sepia:z(),skew:q(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[I])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",N]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",N]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",N]},I]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[N]},I]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",I,t]}],"min-w":[{"min-w":["min","max","fit",I,E]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[O]},O,I]}],h:[{h:[I,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",I,E]}],"max-h":[{"max-h":[I,t,"min","max","fit"]}],"font-size":[{text:["base",O,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",P]}],"font-family":[{font:[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",D,P]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,E]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",E]}],"underline-offset":[{"underline-offset":["auto",I,E]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[S])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",T]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},k]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[I,E]}],"outline-w":[{outline:[E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",O,j]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",O,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[N,I]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,P]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var W=g(z);function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return W((0,r.$)(t))}},15957:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r="https://flowty.mypinata.cloud/ipfs/"},68875:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(61462);const i=()=>{const[e,t]=(0,r.useState)(window.innerWidth);return(0,r.useEffect)((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),{width:e}}},92040:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(61462),i=n(39744),o=n(99334);const a=e=>{let{Comp:t,tooltipText:n,tooltipId:a}=e;const s=(0,r.useId)(),l="".concat(a,"-").concat(s);return(0,o.jsx)("div",{className:"inline",children:n&&""!==n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"absolute z-10",children:(0,o.jsx)(i.m_,{id:l})}),(0,o.jsx)("div",{"data-tooltip-content":n,"data-tooltip-id":l,children:t})]}):(0,o.jsx)("div",{children:t})})}},85221:(e,t,n)=>{"use strict";n.d(t,{tm:()=>v,ps:()=>m,P1:()=>g,dK:()=>y,b0:()=>b});var r=n(60712),i=n(42332),o=n(10514),a=n(88642),s=n(61462),l=n(13090),c=n(22483),u=n(99334);const d=e=>{let{isMainWallet:t=!1}=e;return(0,u.jsx)(c.Bo,{text:t?"main":"child",type:t?"primary":"secondary"})};var p=n(78273),h=n(48231);class f{constructor(){this.params=void 0,this.params={}}apply(e){return!0}}class m{constructor(e){this.params=void 0,this.params=e}apply(e){var t,n,r,i;const a=h.su.tokens.getTokenIdentifier(null!==(t=null===(n=this.params)||void 0===n?void 0:n.tokenName)&&void 0!==t?t:o.SupportedTokens.FLOW);return!(null===e||void 0===e||null===(r=e.tokens)||void 0===r||null===(i=r[a])||void 0===i||!i.receiverPath)||e.isMain}}class g{constructor(e){this.params=void 0,this.params=e}apply(e){var t;const n="storefront"===(null===this||void 0===this||null===(t=this.params)||void 0===t?void 0:t.listingType)?o.SUPPORTED_TOKEN_LIST:o.SUPPORTED_NON_DAPPER_TOKENS;for(let s=0;s<n.length-1;s++){var r,i,a;const t=n[s],l=h.su.tokens.getTokenIdentifier(null!==(r=t)&&void 0!==r?r:o.SupportedTokens.FLOW);if(null!==e&&void 0!==e&&null!==(i=e.tokens)&&void 0!==i&&null!==(a=i[l])&&void 0!==a&&a.receiverPath||e.isMain)return!0}return!1}}class v{constructor(e){this.params=void 0,this.params=e}apply(e){var t,n,r,i,a;const s=h.su.tokens.getTokenIdentifier(null!==(t=null===(n=this.params)||void 0===n?void 0:n.tokenName)&&void 0!==t?t:o.SupportedTokens.FLOW);return((null===e||void 0===e||null===(r=e.tokens)||void 0===r||null===(i=r[s])||void 0===i||null===(a=i.providerPaths)||void 0===a?void 0:a.length)||0)>0}}const y=(0,a.WQ)("authStore")((0,a.PA)((e=>{var t,n;let{authStore:o,selected:a,setSelected:c,selectorFilter:h=new f,label:m,disabledMessage:g,description:v,tableView:y}=e;const b=(0,s.useMemo)((()=>{var e;const t=null===o||void 0===o||null===(e=o.loggedUser)||void 0===e?void 0:e.accountSummaries;return Object.values(t||{}).reduce(((e,t)=>!(null!==h&&void 0!==h&&h.apply(t))&&!t.isMain?{invalid:[t,...e.invalid],valid:e.valid}:{invalid:e.invalid,valid:[t,...e.valid]}),{invalid:[],valid:[]})}),[null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.accountSummaries,h]);return(0,s.useEffect)((()=>{b.valid.reduce(((e,t)=>(null===a||void 0===a?void 0:a.address)===t.address||e),!1)||null===c||void 0===c||c(b.valid[0])}),[h.params,b]),!a||!c||Object.values((null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.accountSummaries)||{}).length<=1?null:(0,u.jsxs)("div",{className:"w-full flex flex-col justify-between",children:[(0,u.jsx)("div",{className:"".concat(y?"text-lg font-bold":"text-base font-semibold py-2"),children:m}),(0,u.jsxs)(r.A,{className:"".concat(!y&&"relative"," w-full"),children:[(0,u.jsx)(r.A.Button,{className:"w-full",children:e=>{var t,n,r,s;let{open:c}=e;return(0,u.jsxs)("div",{className:"flex font-bold font-montserrat-bold border border-[#B1B1B1] hover:border-white rounded-md items-center justify-around md:justify-between group py-1 px-1 md:px-1.5 ".concat(c&&"border-primary","\n\t\t\t\t\t\t\t").concat(y&&"h-[37px]"),children:[(0,u.jsxs)("div",{className:"flex justify-between w-full items-center",children:[(0,u.jsxs)("div",{className:"flex items-center",children:[(0,u.jsx)("img",{onError:l.R,src:(a.address===(null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.addr)?null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.avatar:null===a||void 0===a||null===(r=a.display)||void 0===r?void 0:r.thumbnail)||"",alt:"Wallet Icon",className:"h-7 w-7 md:h-8 md:w-8 content-fit rounded-md"}),(0,u.jsx)("span",{className:"p-1 md:p-2 font-bold font-montserrat-bold text-nowrap",children:(null===a||void 0===a||null===(s=a.display)||void 0===s?void 0:s.name)||a.address||""})]}),(0,u.jsx)(d,{isMainWallet:a.isMain})]}),(0,u.jsx)(i.A,{className:"h-7 w-7 md:h-8 md:w-8 transition-transform duration-300  ".concat(c&&"rotate-180 transform fill-primary")})]})}}),(0,u.jsxs)(r.A.Panel,{className:"absolute z-10 bg-[#232D39] rounded-md mt-2 border overflow-hidden w-full ".concat(y?"w-auto border-[#B1B1B1]":"border-white"),children:[b.valid.map((e=>{var t,n;return(0,u.jsxs)(r.A.Button,{as:"div",onClick:()=>{c(e),p.o.track("WALLET_ACCOUNT_TOGGLED",{account:e})},className:"cursor-pointer w-full px-3 py-1 hover:bg-white hover:bg-opacity-10  flex justify-between items-center transition-all ease-in-out duration-300",children:[(0,u.jsxs)("div",{className:"flex items-center",children:[(0,u.jsx)("img",{onError:l.R,src:null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.thumbnail,alt:"Wallet Icon",className:"h-7 w-7 md:h-8 md:w-8 content-fit rounded-md"}),(0,u.jsx)("span",{className:"p-1 md:p-2 font-bold font-montserrat-bold text-nowrap",children:(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.name)||(null===e||void 0===e?void 0:e.address)||""})]}),(0,u.jsx)(d,{isMainWallet:e.isMain})]},e.address)})),b.invalid.map(((e,t)=>{var n,i;return(0,u.jsxs)("div",{children:[(0,u.jsxs)(r.A.Button,{"aria-disabled":!0,as:"div",onClick:()=>{c(e),p.o.track("WALLET_ACCOUNT_TOGGLED",{account:e})},className:"cursor-not-allowed w-full px-3 py-1 flex items-center justify-between opacity-50",children:[(0,u.jsxs)("div",{className:"flex items-center",children:[(0,u.jsx)("img",{onError:l.R,src:null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.thumbnail,alt:"Wallet Icon",className:"h-4 w-4 md:h-4 md:w-4 content-fit rounded-md"}),(0,u.jsx)("span",{className:"p-1 md:p-2 font-bold font-montserrat-bold text-nowrap",children:(null===e||void 0===e||null===(i=e.display)||void 0===i?void 0:i.name)||(null===e||void 0===e?void 0:e.address)||""})]}),(0,u.jsx)(d,{isMainWallet:e.isMain})]}),t===b.invalid.length-1&&g?(0,u.jsx)("div",{className:"w-full border-t border-gray-500 h-8 text-danger text-xs grid place-items-center",children:g}):null]},e.address)}))]})]}),v&&(0,u.jsx)("div",{className:"text-sm py-1",children:v})]})}))),b={payTo:"Disabled wallets not setup to receive token type.",payWith:"Disabled wallets may not have token provider setup.",sendTo:"Disabled wallets may not be setup to receive NFT"}},48470:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(61462),i=n(99334);const o=e=>{let{children:t,setShow:n,show:o,seconds:a}=e;const[s,l]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o?(l(!0),a&&setTimeout((()=>{l(!1),setTimeout((()=>n(!1)),1e3)}),1e3*a)):l(!1)}),[o]),(0,i.jsx)(i.Fragment,{children:o?(0,i.jsx)("div",{className:"fixed flex w-full left-0 justify-center  z-[99999] small-only:top-0  md:bottom-0 h-[25%] overflow-hidden",children:(0,i.jsx)("div",{className:"relative w-full h-full flex items-center z-[99999]",children:(0,i.jsx)("div",{className:"w-full flex justify-center transition-all duration-500 ease-in-out absolute ".concat(s?"small-only:top-1/4  md:bottom-1/2 ":"small-only:-top-1/2  md:-bottom-1/2"),children:t})})}):null})};var a=n(84239),s=n(86718);const l=e=>{let{setShow:t,show:n,seconds:r,message:l,type:c}=e;return(0,i.jsx)(o,{setShow:t,show:n,seconds:r,children:(0,i.jsxs)("div",{className:"rounded-md bg-[#283B46] py-2 px-3 flex border-[1px] h-full  items-center ".concat("SUCCESS"===c?"border-primary":"ERROR"===c?"border-danger":"border-[#FF6E25]"),children:[(0,i.jsx)("div",{className:"flex-shrink-0",children:"SUCCESS"===c?(0,i.jsx)(a.A,{className:"h-8 w-8 fill-primary"}):(0,i.jsx)(s.A,{className:"h-8 w-8 ".concat("ERROR"===c?"fill-danger":"fill-[#FF6E25]")})}),(0,i.jsx)("div",{className:"ml-3 h-full flex items-center capitalize ".concat("SUCCESS"===c?"text-primary":"ERROR"===c?"text-danger":"text-[#FF6E25]"),children:l})]})})}},85873:(e,t,n)=>{"use strict";n.d(t,{ti:()=>R,se:()=>I,xz:()=>N});var r,i=n(61462),o=n(92040);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function s(e,t){let{title:n,titleId:o,...s}=e;return i.createElement("svg",a({baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2000 2000",overflow:"visible",xmlSpace:"preserve",ref:t,"aria-labelledby":o},s),n?i.createElement("title",{id:o},n):null,r||(r=i.createElement("g",null,i.createElement("path",{fill:"#04F48C",d:"M1000,8C452.1,8,8,452.1,8,1000s444.1,992,992,992s992-444.1,992-992S1547.9,8,1000,8z M1728.8,1433 c-5.6-1.6-10.8-4.3-16.2-6.5c-24.5-9.9-48.7-20.9-73.6-29.7c-123.3-43.5-251-55.6-380.3-46.3c-112.8,8.1-225.1,21.7-337.7,32.5 c-103.3,10-206.7,14.1-310-0.2c-30.8-4.2-61.3-10.4-92-15.7c-26.4-7.9-52.9-15.8-79.3-23.7c-16.9-7.2-33.7-15.1-50.9-21.6 c-60.1-22.6-92.5-66.6-99.6-129.3c-11.8-103.8-22.5-207.8-33.9-311.6C245,786.6,234.4,692.4,224.1,598c2.1-7.1,4.3-14.2,6.4-21.3 c18.8-18.4,38.8-13.5,59.7-3.7c62.7,29.6,128.4,50.1,196.4,62.7c88.9,16.4,178.8,20.4,268.6,13c114.2-9.4,228.2-22.6,342.3-33.4 c177.5-16.8,351.9-9.4,518.8,63.3c57.1,24.8,89.8,66.2,96.7,126.8c18.2,159.6,35.1,319.4,52.3,479.1c4.1,37.9,8.9,75.7,10.8,113.6 C1777.5,1427.6,1757.2,1441.4,1728.8,1433z"}),i.createElement("path",{fill:"#FFFFFF",d:"M1776.1,1398.1c-1.9-37.9-6.7-75.7-10.8-113.6c-17.2-159.7-34.1-319.5-52.3-479.1 c-6.9-60.6-39.6-102-96.7-126.8c-166.9-72.7-341.3-80.1-518.8-63.3c-114.1,10.8-228.1,24-342.3,33.4c-89.8,7.4-179.7,3.4-268.6-13 c-68-12.6-133.7-33.1-196.4-62.7c-20.9-9.8-40.9-14.7-59.7,3.7c-2.1,7.1-4.3,14.2-6.4,21.3c10.3,94.4,20.9,188.6,31.2,282.9 c11.4,103.8,22.1,207.8,33.9,311.6c7.1,62.7,39.5,106.7,99.6,129.3c17.2,6.5,34,14.4,50.9,21.6c26.4,7.9,52.9,15.8,79.3,23.7 c30.7,5.3,61.2,11.5,92,15.7c103.3,14.3,206.7,10.2,310,0.2c112.6-10.8,224.9-24.4,337.7-32.5c129.3-9.3,257,2.8,380.3,46.3 c24.9,8.8,49.1,19.8,73.6,29.7c5.4,2.2,10.6,4.9,16.2,6.5C1757.2,1441.4,1777.5,1427.6,1776.1,1398.1z M1000,1213.7L786.3,999.9 L1000,786.1l213.8,213.8L1000,1213.7z"}),i.createElement("rect",{x:848.9,y:848.8,transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -414.1326 1000.0044)",fill:"#04F48C",width:302.3,height:302.3}))))}const l=i.forwardRef(s);n.p;var c=n(42777);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",u({id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 339.43 295.27",ref:t,"aria-labelledby":r},o),void 0===n?i.createElement("title",{id:r},"tether-usdt-logo"):n?i.createElement("title",{id:r},n):null,i.createElement("path",{d:"M62.15,1.45l-61.89,130a2.52,2.52,0,0,0,.54,2.94L167.95,294.56a2.55,2.55,0,0,0,3.53,0L338.63,134.4a2.52,2.52,0,0,0,.54-2.94l-61.89-130A2.5,2.5,0,0,0,275,0H64.45a2.5,2.5,0,0,0-2.3,1.45h0Z",style:{fill:"#50af95",fillRule:"evenodd"}}),i.createElement("path",{d:"M191.19,144.8v0c-1.2.09-7.4,0.46-21.23,0.46-11,0-18.81-.33-21.55-0.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25,74.24-18.15v28.91c2.78,0.2,10.74.67,21.74,0.67,13.2,0,19.81-.55,21-0.66v-28.9c42.42,1.89,74.08,9.29,74.08,18.13s-31.65,16.24-74.08,18.12h0Zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11,2.21-84.29,11.74-84.29,23.16s36.18,20.94,84.29,23.16v82.9h42.78V151.83c48-2.21,84.12-11.73,84.12-23.14s-36.09-20.93-84.12-23.15h0Zm0,0h0Z",style:{fill:"#fff",fillRule:"evenodd"}}))}const p=i.forwardRef(d);n.p;var h,f,m;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}function v(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",g({"data-name":"86977684-12db-4850-8f30-233a7c267d11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,h||(h=i.createElement("path",{d:"M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z",fill:"#2775ca"})),f||(f=i.createElement("path",{d:"M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z",fill:"#fff"})),m||(m=i.createElement("path",{d:"M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zM1229.17 295.83c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z",fill:"#fff"})))}const y=i.forwardRef(v);n.p;var b=n(41551),w=n(54622);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}function C(e,t){let{title:n,titleId:r,...o}=e;return i.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"1024px",height:"1024px",viewBox:"0 0 1024 1024",style:{shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd"},xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#43a451",d:"M 709.5,191.5 C 710.154,187.414 708.988,184.081 706,181.5C 704.438,177.986 703.605,174.319 703.5,170.5C 702.325,170.719 701.325,170.386 700.5,169.5C 699.811,167.556 699.311,165.556 699,163.5C 698.439,162.978 697.772,162.645 697,162.5C 692.518,163.709 688.351,165.375 684.5,167.5C 688.417,168.974 688.417,170.308 684.5,171.5C 682.032,170.957 679.532,170.624 677,170.5C 671.57,171.868 666.07,172.368 660.5,172C 659.773,170.601 659.273,169.101 659,167.5C 657.989,166.663 656.822,166.33 655.5,166.5C 655.16,168.991 654.16,171.158 652.5,173C 652.955,176.742 652.955,180.575 652.5,184.5C 653.5,184.5 654.5,184.5 655.5,184.5C 655.5,185.833 655.5,187.167 655.5,188.5C 654.167,188.5 652.833,188.5 651.5,188.5C 650.241,191.366 649.241,194.366 648.5,197.5C 649.302,200.449 649.636,203.449 649.5,206.5C 648.609,207.11 647.609,207.443 646.5,207.5C 644.167,207.5 641.833,207.5 639.5,207.5C 639.657,208.873 639.49,210.207 639,211.5C 637.562,208.722 637.562,206.056 639,203.5C 639.667,200.833 639.667,198.167 639,195.5C 637.92,197.996 636.586,200.33 635,202.5C 634.5,209.492 634.334,216.492 634.5,223.5C 633.351,223.209 632.684,222.376 632.5,221C 631.446,215.194 631.28,209.361 632,203.5C 633.336,199.369 634.836,195.369 636.5,191.5C 637.5,191.5 638.5,191.5 639.5,191.5C 639.351,190.448 639.517,189.448 640,188.5C 642.69,185.815 645.69,183.482 649,181.5C 648.595,177.879 648.595,174.213 649,170.5C 650.353,169.315 651.52,167.981 652.5,166.5C 654.765,165.353 657.098,165.186 659.5,166C 660.833,168.33 662.667,170.163 665,171.5C 673.815,168.673 682.315,165.173 690.5,161C 694.751,159.805 699.085,159.305 703.5,159.5C 703.335,162.85 703.502,166.183 704,169.5C 706.647,174.793 709.313,180.127 712,185.5C 712.495,187.473 712.662,189.473 712.5,191.5C 711.5,191.5 710.5,191.5 709.5,191.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c0e6c7",d:"M 687.5,197.5 C 684.34,199.063 681.174,200.729 678,202.5C 676.504,204.45 676.337,206.45 677.5,208.5C 686.296,209.14 694.962,209.807 703.5,210.5C 694.494,210.666 685.494,210.5 676.5,210C 675.484,208.323 674.484,206.657 673.5,205C 675.779,202.208 678.445,200.041 681.5,198.5C 683.5,198.167 685.5,197.833 687.5,197.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#36a445",d:"M 709.5,191.5 C 703.019,193.619 696.352,194.786 689.5,195C 688.244,195.417 687.577,196.25 687.5,197.5C 685.5,197.833 683.5,198.167 681.5,198.5C 674.486,199.005 671.32,202.672 672,209.5C 673.255,210.211 674.421,211.044 675.5,212C 682.17,212.389 688.836,212.223 695.5,211.5C 703.685,211.856 711.685,212.856 719.5,214.5C 724.828,215.996 729.828,218.329 734.5,221.5C 743.126,237.246 741.959,252.246 731,266.5C 730.506,268.134 730.34,269.801 730.5,271.5C 732.857,271.337 735.19,271.503 737.5,272C 738.275,277.676 736.608,282.676 732.5,287C 728.129,287.828 723.795,287.661 719.5,286.5C 718.408,284.404 716.741,283.071 714.5,282.5C 711.385,284.439 708.385,286.606 705.5,289C 703.323,290.202 700.989,290.702 698.5,290.5C 694.774,290.177 691.107,290.511 687.5,291.5C 688.433,295.429 688.766,299.429 688.5,303.5C 687.5,303.5 686.5,303.5 685.5,303.5C 681.208,300.543 677.208,297.21 673.5,293.5C 672.4,292.395 671.733,291.062 671.5,289.5C 674.245,289.627 676.245,288.46 677.5,286C 686.485,284.325 695.151,281.825 703.5,278.5C 703.5,277.167 703.5,275.833 703.5,274.5C 705.591,274.682 707.591,274.348 709.5,273.5C 709.88,271.979 710.046,270.313 710,268.5C 711.892,267.87 713.559,266.87 715,265.5C 716.255,261.959 716.422,258.459 715.5,255C 716.02,251.596 717.187,248.429 719,245.5C 719.5,237.507 719.666,229.507 719.5,221.5C 723.116,222.543 726.783,223.043 730.5,223C 728.167,221 725.833,219 723.5,217C 716.629,216.442 709.962,215.275 703.5,213.5C 703.5,214.5 703.5,215.5 703.5,216.5C 696.492,216.334 689.492,216.5 682.5,217C 677.883,219.988 672.883,221.322 667.5,221C 665.065,217.453 662.398,214.119 659.5,211C 661.829,207.51 662.829,203.677 662.5,199.5C 666.273,200.178 669.106,198.844 671,195.5C 671.333,195.833 671.667,196.167 672,196.5C 673.269,195.095 673.769,193.429 673.5,191.5C 678.578,189.195 683.912,187.362 689.5,186C 690.551,184.615 691.884,183.615 693.5,183C 694.444,180.281 694.777,177.448 694.5,174.5C 690.699,173.03 687.032,173.363 683.5,175.5C 681.823,177.76 679.657,179.427 677,180.5C 674.869,183.102 673.035,185.768 671.5,188.5C 672.552,188.351 673.552,188.517 674.5,189C 668.223,191.949 663.223,196.282 659.5,202C 655.617,202.454 652.284,203.954 649.5,206.5C 649.636,203.449 649.302,200.449 648.5,197.5C 649.241,194.366 650.241,191.366 651.5,188.5C 652.833,188.5 654.167,188.5 655.5,188.5C 655.5,187.167 655.5,185.833 655.5,184.5C 654.5,184.5 653.5,184.5 652.5,184.5C 652.955,180.575 652.955,176.742 652.5,173C 654.16,171.158 655.16,168.991 655.5,166.5C 656.822,166.33 657.989,166.663 659,167.5C 659.273,169.101 659.773,170.601 660.5,172C 666.07,172.368 671.57,171.868 677,170.5C 679.532,170.624 682.032,170.957 684.5,171.5C 688.417,170.308 688.417,168.974 684.5,167.5C 688.351,165.375 692.518,163.709 697,162.5C 697.772,162.645 698.439,162.978 699,163.5C 699.311,165.556 699.811,167.556 700.5,169.5C 701.325,170.386 702.325,170.719 703.5,170.5C 703.605,174.319 704.438,177.986 706,181.5C 708.988,184.081 710.154,187.414 709.5,191.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#35a444",d:"M 646.5,207.5 C 644.712,215.057 647.712,219.391 655.5,220.5C 657.479,225.983 660.813,230.483 665.5,234C 677.222,234.366 688.888,234.033 700.5,233C 705.435,238.31 708.769,244.477 710.5,251.5C 710.16,255.558 709.493,259.558 708.5,263.5C 707.305,265.297 705.638,266.297 703.5,266.5C 703.439,268.592 702.439,270.092 700.5,271C 693.818,270.606 687.818,272.272 682.5,276C 679.635,276.837 676.802,277.67 674,278.5C 672.414,277.624 670.914,276.624 669.5,275.5C 666.894,278.649 666.894,281.816 669.5,285C 669.43,285.765 669.097,286.265 668.5,286.5C 663.609,281.384 663.275,275.884 667.5,270C 672.439,270.319 676.773,268.986 680.5,266C 685.614,265.711 690.614,264.877 695.5,263.5C 699.455,261.936 701.122,258.936 700.5,254.5C 700.167,252.833 699.833,251.167 699.5,249.5C 698.026,248.564 697.026,247.23 696.5,245.5C 687.954,244.303 679.454,244.636 671,246.5C 664.537,245.093 658.037,243.76 651.5,242.5C 649.801,242.66 648.134,242.494 646.5,242C 640.574,236.957 636.574,230.791 634.5,223.5C 634.334,216.492 634.5,209.492 635,202.5C 636.586,200.33 637.92,197.996 639,195.5C 639.667,198.167 639.667,200.833 639,203.5C 637.562,206.056 637.562,208.722 639,211.5C 639.49,210.207 639.657,208.873 639.5,207.5C 641.833,207.5 644.167,207.5 646.5,207.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#529d60",d:"M 681.5,198.5 C 678.445,200.041 675.779,202.208 673.5,205C 674.484,206.657 675.484,208.323 676.5,210C 685.494,210.5 694.494,210.666 703.5,210.5C 708.232,210.378 712.898,210.878 717.5,212C 718.756,212.417 719.423,213.25 719.5,214.5C 711.685,212.856 703.685,211.856 695.5,211.5C 688.836,212.223 682.17,212.389 675.5,212C 674.421,211.044 673.255,210.211 672,209.5C 671.32,202.672 674.486,199.005 681.5,198.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#51a15e",d:"M 651.5,242.5 C 658.037,243.76 664.537,245.093 671,246.5C 679.454,244.636 687.954,244.303 696.5,245.5C 697.026,247.23 698.026,248.564 699.5,249.5C 699.833,251.167 700.167,252.833 700.5,254.5C 701.122,258.936 699.455,261.936 695.5,263.5C 699.858,258.915 700.191,254.248 696.5,249.5C 696.389,248.883 696.056,248.383 695.5,248C 693.667,247.833 691.833,247.667 690,247.5C 680.513,248.507 671.013,248.673 661.5,248C 657.602,247.004 654.269,245.171 651.5,242.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e42949",d:"M 431.5,244.5 C 436.833,245.167 442.167,245.833 447.5,246.5C 447.5,247.5 447.5,248.5 447.5,249.5C 444.873,250.831 442.54,252.664 440.5,255C 439.552,255.483 438.552,255.649 437.5,255.5C 435.182,260.768 432.849,266.102 430.5,271.5C 426.393,288.049 424.393,304.716 424.5,321.5C 426.124,321.64 427.29,320.973 428,319.5C 428.86,314.063 430.027,308.729 431.5,303.5C 435.387,298.626 438.387,293.293 440.5,287.5C 443.833,283.663 447,279.663 450,275.5C 454.044,272.694 458.21,270.027 462.5,267.5C 463.386,266.675 463.719,265.675 463.5,264.5C 466.676,263.66 469.342,261.993 471.5,259.5C 476.925,260.106 481.592,262.273 485.5,266C 490.01,268.299 494.677,270.299 499.5,272C 504.331,275.919 509.664,279.086 515.5,281.5C 517.678,283.745 520.012,285.745 522.5,287.5C 523.292,289.257 524.625,290.591 526.5,291.5C 527.452,293.045 527.785,294.712 527.5,296.5C 526.5,296.5 525.5,296.5 524.5,296.5C 512.067,295.582 500.401,297.915 489.5,303.5C 485.671,302.931 482.337,303.598 479.5,305.5C 472.262,305.893 465.262,307.393 458.5,310C 454.377,313.273 449.711,315.606 444.5,317C 443.748,317.671 443.414,318.504 443.5,319.5C 440.619,320.683 437.619,321.683 434.5,322.5C 431.058,322.032 428.391,323.198 426.5,326C 415.844,327.663 405.178,329.33 394.5,331C 391.814,334.865 388.147,336.699 383.5,336.5C 383.5,335.833 383.167,335.5 382.5,335.5C 378.231,330.733 373.231,326.9 367.5,324C 355.331,318.848 342.998,318.348 330.5,322.5C 325.063,325.148 319.396,327.314 313.5,329C 308.965,332.768 303.965,335.768 298.5,338C 296.5,338.667 294.5,338.667 292.5,338C 286.962,331.136 281.462,324.303 276,317.5C 275.516,315.087 275.85,312.754 277,310.5C 280.652,309.005 282.652,310.339 283,314.5C 288.724,320.496 295.557,321.996 303.5,319C 311.21,314.813 319.21,311.147 327.5,308C 328.059,307.275 328.392,306.442 328.5,305.5C 325.363,297.893 321.696,290.56 317.5,283.5C 315.121,281.958 312.454,281.291 309.5,281.5C 293.849,282.716 278.849,286.383 264.5,292.5C 263.558,292.392 262.725,292.059 262,291.5C 261.667,289.5 261.333,287.5 261,285.5C 258.31,283.973 256.143,281.973 254.5,279.5C 253.766,278.292 253.433,276.959 253.5,275.5C 257.648,274.901 261.315,273.568 264.5,271.5C 266.833,270.833 269.167,270.167 271.5,269.5C 276.277,268.78 280.61,266.947 284.5,264C 290.817,263.761 296.651,261.928 302,258.5C 303.766,259.233 305.599,259.567 307.5,259.5C 307.433,258.041 307.766,256.708 308.5,255.5C 325.447,250.913 342.447,247.246 359.5,244.5C 362.167,244.5 364.833,244.5 367.5,244.5C 372.833,244.5 378.167,244.5 383.5,244.5C 383.5,245.5 383.5,246.5 383.5,247.5C 388.323,244.508 393.656,243.008 399.5,243C 410.265,242.098 420.931,242.598 431.5,244.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#623f2a",d:"M 443.5,211.5 C 483.315,218.5 519.315,234.333 551.5,259C 556.613,264.289 561.779,269.456 567,274.5C 571.167,280 575.333,285.5 579.5,291C 624.47,300.835 668.803,312.502 712.5,326C 736.158,332.231 759.824,338.398 783.5,344.5C 791.306,348.32 799.306,351.32 807.5,353.5C 807.062,353.435 806.728,353.601 806.5,354C 810.97,356.047 815.637,357.714 820.5,359C 823.064,362.018 822.064,363.518 817.5,363.5C 811.576,361.981 805.576,360.981 799.5,360.5C 799.646,362.942 798.813,363.609 797,362.5C 795.556,364.155 793.722,364.822 791.5,364.5C 791.649,363.448 791.483,362.448 791,361.5C 787.28,360.275 784.78,357.941 783.5,354.5C 780.579,354.854 778.246,353.854 776.5,351.5C 773.358,353.921 770.025,354.088 766.5,352C 766.957,351.586 767.291,351.086 767.5,350.5C 764.966,349.223 762.466,349.223 760,350.5C 759.274,347.712 757.44,346.212 754.5,346C 747.78,346.252 741.446,344.919 735.5,342C 730.93,341.538 726.43,340.704 722,339.5C 719.846,340.252 717.68,340.419 715.5,340C 716.696,339.346 716.696,338.846 715.5,338.5C 713.253,339.374 710.92,339.708 708.5,339.5C 685.784,333.837 663.118,327.504 640.5,320.5C 634.801,319.114 629.135,317.281 623.5,315C 606.263,310.952 588.929,307.286 571.5,304C 569.93,302.603 568.596,301.103 567.5,299.5C 561.764,290.923 555.431,282.757 548.5,275C 538.215,267.716 528.215,260.05 518.5,252C 507.249,245.577 495.583,239.91 483.5,235C 475.23,232.074 466.897,229.574 458.5,227.5C 452.028,224.193 445.028,222.693 437.5,223C 436.833,222.667 436.167,222.333 435.5,222C 436.759,221.077 438.092,220.243 439.5,219.5C 439.192,218.692 438.692,218.025 438,217.5C 432.31,219.952 426.643,219.952 421,217.5C 419.612,218.554 418.112,218.72 416.5,218C 419.009,215.5 422.009,213.834 425.5,213C 431.523,212.641 437.523,212.141 443.5,211.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#684532",d:"M 443.5,211.5 C 437.523,212.141 431.523,212.641 425.5,213C 422.009,213.834 419.009,215.5 416.5,218C 418.112,218.72 419.612,218.554 421,217.5C 426.643,219.952 432.31,219.952 438,217.5C 438.692,218.025 439.192,218.692 439.5,219.5C 438.092,220.243 436.759,221.077 435.5,222C 436.167,222.333 436.833,222.667 437.5,223C 445.028,222.693 452.028,224.193 458.5,227.5C 441.554,224.674 424.554,222.174 407.5,220C 394.5,219.333 381.5,219.333 368.5,220C 351.719,222.362 335.052,225.362 318.5,229C 304.5,233 290.5,237 276.5,241C 260.811,247.834 244.811,254.168 228.5,260C 210.333,269.584 192,278.917 173.5,288C 156.361,298.072 139.694,308.905 123.5,320.5C 119.421,324.253 115.421,327.919 111.5,331.5C 108.053,333.397 104.72,335.563 101.5,338C 93.9368,345.395 86.6035,352.895 79.5,360.5C 80.3231,357.649 81.6565,354.982 83.5,352.5C 85.1965,351.636 86.3632,350.303 87,348.5C 87.3333,348.833 87.6667,349.167 88,349.5C 89.5068,346.996 91.0068,344.496 92.5,342C 91.4799,339.141 89.4799,337.641 86.5,337.5C 85.7999,341.999 83.2999,343.665 79,342.5C 78.0754,343.047 77.2421,343.713 76.5,344.5C 74.5925,348.414 72.2592,352.08 69.5,355.5C 69.8333,356.167 70.1667,356.833 70.5,357.5C 68.1535,358.238 65.8202,359.238 63.5,360.5C 65.1396,356.559 67.3063,352.892 70,349.5C 84.5542,333.283 100.721,318.783 118.5,306C 170.469,272.349 225.802,245.682 284.5,226C 304.11,220.482 323.777,215.482 343.5,211C 360.638,209.097 377.805,207.597 395,206.5C 403.848,206.739 412.681,207.239 421.5,208C 428.969,208.966 436.302,210.133 443.5,211.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#aea998",d:"M 538.5,286.5 C 537.481,288.507 535.815,289.84 533.5,290.5C 531.021,288.924 528.354,287.924 525.5,287.5C 524.5,287.5 523.5,287.5 522.5,287.5C 520.012,285.745 517.678,283.745 515.5,281.5C 509.664,279.086 504.331,275.919 499.5,272C 494.677,270.299 490.01,268.299 485.5,266C 481.592,262.273 476.925,260.106 471.5,259.5C 472.609,258.71 473.942,258.21 475.5,258C 471.381,256.636 467.381,254.969 463.5,253C 458.418,250.96 453.084,249.793 447.5,249.5C 447.5,248.5 447.5,247.5 447.5,246.5C 442.167,245.833 436.833,245.167 431.5,244.5C 428.754,243.749 426.087,242.749 423.5,241.5C 398.479,240.245 373.312,239.578 348,239.5C 343.127,239.705 338.461,240.705 334,242.5C 323.001,241.014 322.835,242.014 333.5,245.5C 338.342,243.966 343.175,242.633 348,241.5C 352.179,241.712 356.013,242.712 359.5,244.5C 342.447,247.246 325.447,250.913 308.5,255.5C 302.109,256.483 296.109,258.65 290.5,262C 283.572,263.031 277.239,265.531 271.5,269.5C 269.167,270.167 266.833,270.833 264.5,271.5C 262.801,271.34 261.134,271.506 259.5,272C 251.781,275.958 243.781,279.291 235.5,282C 233.167,283.667 230.833,285.333 228.5,287C 222.961,288.708 217.627,290.708 212.5,293C 210.602,294.417 208.936,295.917 207.5,297.5C 204.687,297.025 202.687,298.025 201.5,300.5C 200.127,300.343 198.793,300.51 197.5,301C 192.418,304.305 187.084,307.139 181.5,309.5C 178.999,309.489 178.832,308.822 181,307.5C 182.137,303.63 180.637,301.797 176.5,302C 178.993,300.581 181.326,299.081 183.5,297.5C 192.465,290.758 202.465,285.591 213.5,282C 240.68,265.673 269.847,253.839 301,246.5C 304.222,244.424 307.722,242.924 311.5,242C 324.095,239.842 336.761,238.176 349.5,237C 350.833,236.333 352.167,235.667 353.5,235C 389.843,229.902 425.676,232.069 461,241.5C 474.739,247.282 488.572,252.949 502.5,258.5C 515.257,266.876 527.257,276.21 538.5,286.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6dab79",d:"M 942.5,267.5 C 938.481,263.82 933.814,261.153 928.5,259.5C 924.932,260.783 921.932,262.783 919.5,265.5C 919.751,263.83 920.418,262.33 921.5,261C 925.372,256.972 929.706,256.472 934.5,259.5C 935.779,261.146 937.445,262.313 939.5,263C 941.141,264.129 942.141,265.629 942.5,267.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dbf3de",d:"M 696.5,249.5 C 700.191,254.248 699.858,258.915 695.5,263.5C 690.614,264.877 685.614,265.711 680.5,266C 676.773,268.986 672.439,270.319 667.5,270C 663.275,275.884 663.609,281.384 668.5,286.5C 669.9,287.1 670.9,288.1 671.5,289.5C 671.733,291.062 672.4,292.395 673.5,293.5C 672.417,293.539 671.417,293.873 670.5,294.5C 663.712,287.512 661.212,279.178 663,269.5C 663.5,269 664,268.5 664.5,268C 668.5,267.667 672.5,267.333 676.5,267C 677.167,266.333 677.833,265.667 678.5,265C 685.618,265.902 691.451,263.735 696,258.5C 696.498,255.518 696.665,252.518 696.5,249.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3fb148",d:"M 671.5,289.5 C 670.9,288.1 669.9,287.1 668.5,286.5C 669.097,286.265 669.43,285.765 669.5,285C 666.894,281.816 666.894,278.649 669.5,275.5C 670.914,276.624 672.414,277.624 674,278.5C 676.802,277.67 679.635,276.837 682.5,276C 687.818,272.272 693.818,270.606 700.5,271C 702.439,270.092 703.439,268.592 703.5,266.5C 705.638,266.297 707.305,265.297 708.5,263.5C 709.493,259.558 710.16,255.558 710.5,251.5C 708.769,244.477 705.435,238.31 700.5,233C 688.888,234.033 677.222,234.366 665.5,234C 660.813,230.483 657.479,225.983 655.5,220.5C 647.712,219.391 644.712,215.057 646.5,207.5C 647.609,207.443 648.609,207.11 649.5,206.5C 652.284,203.954 655.617,202.454 659.5,202C 663.223,196.282 668.223,191.949 674.5,189C 673.552,188.517 672.552,188.351 671.5,188.5C 673.035,185.768 674.869,183.102 677,180.5C 679.657,179.427 681.823,177.76 683.5,175.5C 687.032,173.363 690.699,173.03 694.5,174.5C 694.777,177.448 694.444,180.281 693.5,183C 691.884,183.615 690.551,184.615 689.5,186C 683.912,187.362 678.578,189.195 673.5,191.5C 673.769,193.429 673.269,195.095 672,196.5C 671.667,196.167 671.333,195.833 671,195.5C 669.106,198.844 666.273,200.178 662.5,199.5C 662.829,203.677 661.829,207.51 659.5,211C 662.398,214.119 665.065,217.453 667.5,221C 672.883,221.322 677.883,219.988 682.5,217C 689.492,216.5 696.492,216.334 703.5,216.5C 703.5,215.5 703.5,214.5 703.5,213.5C 709.962,215.275 716.629,216.442 723.5,217C 725.833,219 728.167,221 730.5,223C 726.783,223.043 723.116,222.543 719.5,221.5C 719.666,229.507 719.5,237.507 719,245.5C 717.187,248.429 716.02,251.596 715.5,255C 716.422,258.459 716.255,261.959 715,265.5C 713.559,266.87 711.892,267.87 710,268.5C 710.046,270.313 709.88,271.979 709.5,273.5C 707.591,274.348 705.591,274.682 703.5,274.5C 703.5,275.833 703.5,277.167 703.5,278.5C 695.151,281.825 686.485,284.325 677.5,286C 676.245,288.46 674.245,289.627 671.5,289.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3cae49",d:"M 964.5,287.5 C 962.909,290.431 960.909,293.098 958.5,295.5C 953.389,298.469 948.555,301.802 944,305.5C 941.108,304.18 939.775,301.846 940,298.5C 938.374,295.872 936.374,293.539 934,291.5C 933.517,290.552 933.351,289.552 933.5,288.5C 929.881,287.756 926.215,287.423 922.5,287.5C 921.504,287.414 920.671,287.748 920,288.5C 918.971,298.43 922.471,305.43 930.5,309.5C 929.975,310.192 929.308,310.692 928.5,311C 930.286,311.785 931.786,312.951 933,314.5C 934.321,318.784 935.488,323.117 936.5,327.5C 936.875,335.911 937.875,344.078 939.5,352C 937.443,355.3 936.443,355.133 936.5,351.5C 932.611,351.376 929.278,352.709 926.5,355.5C 925.334,353.635 925.667,351.968 927.5,350.5C 926.902,349.205 926.402,347.872 926,346.5C 925.29,347.973 924.124,348.64 922.5,348.5C 922.5,346.833 922.5,345.167 922.5,343.5C 921.167,343.5 919.833,343.5 918.5,343.5C 918.313,345.564 917.813,347.564 917,349.5C 915.088,347.006 913.254,347.173 911.5,350C 913.023,352.452 914.69,354.786 916.5,357C 914.866,357.494 913.199,357.66 911.5,357.5C 911.5,356.167 911.5,354.833 911.5,353.5C 909.856,353.286 908.356,353.62 907,354.5C 906.517,353.552 906.351,352.552 906.5,351.5C 905.325,351.719 904.325,351.386 903.5,350.5C 905.473,348.719 906.807,346.552 907.5,344C 903.541,344.158 899.541,344.325 895.5,344.5C 895.5,343.167 895.5,341.833 895.5,340.5C 902.383,340.934 909.05,340.267 915.5,338.5C 916.035,332.757 915.368,327.257 913.5,322C 913.905,321.055 914.572,320.388 915.5,320C 913.167,319.667 910.833,319.333 908.5,319C 906.717,317.261 905.05,315.428 903.5,313.5C 900.822,312.445 898.322,311.112 896,309.5C 889.911,300.167 889.244,290.501 894,280.5C 897.944,279.057 900.777,276.391 902.5,272.5C 909.49,267.7 916.823,267.366 924.5,271.5C 926.135,271.122 927.635,270.456 929,269.5C 931.935,271.192 935.102,271.858 938.5,271.5C 938.948,275.524 939.614,279.524 940.5,283.5C 941.812,278.42 944.979,275.42 950,274.5C 955.032,275.544 959.866,277.044 964.5,279C 965.679,281.796 965.679,284.629 964.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d45864",d:"M 440.5,287.5 C 438.387,293.293 435.387,298.626 431.5,303.5C 432.993,297.166 435.993,291.833 440.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#93c69c",d:"M 698.5,290.5 C 695.713,291.477 692.713,291.81 689.5,291.5C 689.5,295.833 689.5,300.167 689.5,304.5C 687.901,304.768 686.568,304.434 685.5,303.5C 686.5,303.5 687.5,303.5 688.5,303.5C 688.766,299.429 688.433,295.429 687.5,291.5C 691.107,290.511 694.774,290.177 698.5,290.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#beb6a9",d:"M 447.5,249.5 C 453.084,249.793 458.418,250.96 463.5,253C 467.381,254.969 471.381,256.636 475.5,258C 473.942,258.21 472.609,258.71 471.5,259.5C 469.342,261.993 466.676,263.66 463.5,264.5C 463.719,265.675 463.386,266.675 462.5,267.5C 458.21,270.027 454.044,272.694 450,275.5C 447,279.663 443.833,283.663 440.5,287.5C 435.993,291.833 432.993,297.166 431.5,303.5C 430.027,308.729 428.86,314.063 428,319.5C 427.29,320.973 426.124,321.64 424.5,321.5C 424.393,304.716 426.393,288.049 430.5,271.5C 432.849,266.102 435.182,260.768 437.5,255.5C 438.552,255.649 439.552,255.483 440.5,255C 442.54,252.664 444.873,250.831 447.5,249.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e32949",d:"M 244.5,287.5 C 244.167,288.833 243.833,290.167 243.5,291.5C 242.226,295.856 242.226,300.356 243.5,305C 242.2,306.58 240.866,308.08 239.5,309.5C 236.079,312.093 233.079,315.259 230.5,319C 229.552,319.483 228.552,319.649 227.5,319.5C 227.657,320.873 227.49,322.207 227,323.5C 225.624,324.705 224.458,326.038 223.5,327.5C 222.178,327.33 221.011,327.663 220,328.5C 218.956,330.715 218.29,333.048 218,335.5C 217.333,344.167 217.333,352.833 218,361.5C 218.414,361.957 218.914,362.291 219.5,362.5C 220.164,366.654 221.331,370.654 223,374.5C 223.986,373.829 225.153,373.829 226.5,374.5C 229.796,380.622 234.796,384.789 241.5,387C 252.639,386.642 263.639,384.975 274.5,382C 285.331,377.416 295.998,372.582 306.5,367.5C 307.442,367.608 308.275,367.941 309,368.5C 312.707,374.027 316.874,379.027 321.5,383.5C 325.132,387.095 327.465,391.428 328.5,396.5C 328.33,397.822 328.663,398.989 329.5,400C 326.174,400.172 322.841,400.005 319.5,399.5C 315.611,398.274 312.611,395.941 310.5,392.5C 307.273,387.592 302.94,384.259 297.5,382.5C 295.813,382.76 294.313,383.427 293,384.5C 291.953,387.881 290.453,391.047 288.5,394C 282.844,395.941 277.178,397.774 271.5,399.5C 271.082,402.439 269.582,404.772 267,406.5C 266.047,409.432 265.547,412.432 265.5,415.5C 266.873,415.343 268.207,415.51 269.5,416C 272.665,420.659 275.998,425.159 279.5,429.5C 279.66,431.199 279.494,432.866 279,434.5C 276.657,437.207 274.323,439.874 272,442.5C 271.506,444.134 271.34,445.801 271.5,447.5C 270.5,447.5 269.5,447.5 268.5,447.5C 264.659,455.6 261.325,464.1 258.5,473C 257.991,474.169 257.158,475.002 256,475.5C 255.824,478.882 255.324,482.215 254.5,485.5C 252.227,486.375 251.227,488.042 251.5,490.5C 247.21,490.198 243.21,490.864 239.5,492.5C 223.707,494.826 207.707,496.493 191.5,497.5C 175.483,497.7 159.483,497.366 143.5,496.5C 138.5,496.011 133.833,494.344 129.5,491.5C 128.449,490.778 127.782,489.778 127.5,488.5C 125.222,480.344 124.888,472.011 126.5,463.5C 128.833,463.5 131.167,463.5 133.5,463.5C 132.098,458.661 132.598,453.995 135,449.5C 136.117,450.949 136.784,452.616 137,454.5C 136.299,450.168 136.633,445.835 138,441.5C 140.401,439.218 143.234,437.718 146.5,437C 152.464,428.711 160.131,422.877 169.5,419.5C 171.325,420.651 173.325,421.318 175.5,421.5C 175.5,420.5 175.5,419.5 175.5,418.5C 174.5,418.5 173.5,418.5 172.5,418.5C 172.5,417.5 172.5,416.5 172.5,415.5C 177.536,415.47 182.536,414.97 187.5,414C 188.833,413.333 190.167,412.667 191.5,412C 188.937,411.082 186.77,411.582 185,413.5C 183.578,413.406 182.078,413.072 180.5,412.5C 183.221,410.75 185.888,409.083 188.5,407.5C 190.279,406.33 191.279,404.664 191.5,402.5C 184.506,402.137 177.506,401.803 170.5,401.5C 164.728,401.706 159.061,402.539 153.5,404C 142.159,410.576 130.492,416.409 118.5,421.5C 114.565,420.276 111.399,417.942 109,414.5C 104.679,404.291 104.346,393.958 108,383.5C 110.803,376.992 114.136,370.659 118,364.5C 122.247,359.659 126.247,354.659 130,349.5C 134.038,345.461 138.371,341.794 143,338.5C 143.483,337.552 143.649,336.552 143.5,335.5C 148.589,332.783 153.589,329.783 158.5,326.5C 159.429,325.311 159.762,323.978 159.5,322.5C 162.686,321.229 166.02,320.229 169.5,319.5C 173.543,317.436 177.876,316.103 182.5,315.5C 182.167,314.833 181.833,314.167 181.5,313.5C 183.737,312.868 185.403,311.535 186.5,309.5C 188.882,307.929 191.549,307.096 194.5,307C 196.104,303.896 198.437,301.729 201.5,300.5C 202.687,298.025 204.687,297.025 207.5,297.5C 209.833,297.5 212.167,297.5 214.5,297.5C 214.33,296.178 214.663,295.011 215.5,294C 219.338,292.526 223.338,291.526 227.5,291C 230.87,287.458 234.87,284.958 239.5,283.5C 239.281,284.675 239.614,285.675 240.5,286.5C 241.731,285.349 241.731,284.183 240.5,283C 241.563,281.812 242.897,281.312 244.5,281.5C 244.5,283.5 244.5,285.5 244.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#853d37",d:"M 524.5,296.5 C 520.833,297.167 517.167,297.833 513.5,298.5C 505.749,300.766 497.749,302.433 489.5,303.5C 500.401,297.915 512.067,295.582 524.5,296.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#df6179",d:"M 243.5,291.5 C 243.117,296.343 243.783,301.009 245.5,305.5C 244.157,307.737 242.157,309.07 239.5,309.5C 240.866,308.08 242.2,306.58 243.5,305C 242.226,300.356 242.226,295.856 243.5,291.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d34c5b",d:"M 201.5,300.5 C 198.437,301.729 196.104,303.896 194.5,307C 191.549,307.096 188.882,307.929 186.5,309.5C 185.403,311.535 183.737,312.868 181.5,313.5C 181.833,314.167 182.167,314.833 182.5,315.5C 177.876,316.103 173.543,317.436 169.5,319.5C 173.5,316.167 177.5,312.833 181.5,309.5C 187.084,307.139 192.418,304.305 197.5,301C 198.793,300.51 200.127,300.343 201.5,300.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#983536",d:"M 479.5,305.5 C 467.182,309.165 455.182,313.832 443.5,319.5C 443.414,318.504 443.748,317.671 444.5,317C 449.711,315.606 454.377,313.273 458.5,310C 465.262,307.393 472.262,305.893 479.5,305.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#faf9fb",d:"M 254.5,279.5 C 256.143,281.973 258.31,283.973 261,285.5C 261.333,287.5 261.667,289.5 262,291.5C 262.725,292.059 263.558,292.392 264.5,292.5C 278.849,286.383 293.849,282.716 309.5,281.5C 312.454,281.291 315.121,281.958 317.5,283.5C 321.696,290.56 325.363,297.893 328.5,305.5C 328.392,306.442 328.059,307.275 327.5,308C 319.21,311.147 311.21,314.813 303.5,319C 295.557,321.996 288.724,320.496 283,314.5C 282.652,310.339 280.652,309.005 277,310.5C 275.85,312.754 275.516,315.087 276,317.5C 281.462,324.303 286.962,331.136 292.5,338C 294.5,338.667 296.5,338.667 298.5,338C 303.965,335.768 308.965,332.768 313.5,329C 319.396,327.314 325.063,325.148 330.5,322.5C 342.998,318.348 355.331,318.848 367.5,324C 373.231,326.9 378.231,330.733 382.5,335.5C 382.719,336.675 382.386,337.675 381.5,338.5C 376.777,341.756 372.443,345.422 368.5,349.5C 366.49,351.171 364.157,351.838 361.5,351.5C 361.762,352.978 361.429,354.311 360.5,355.5C 355.893,358.969 350.893,361.636 345.5,363.5C 344.513,360.854 343.513,358.188 342.5,355.5C 340.926,354.369 339.259,354.202 337.5,355C 334.142,357.203 330.642,359.037 327,360.5C 326.968,363.668 328.468,366.001 331.5,367.5C 332.833,369.167 334.167,370.833 335.5,372.5C 331.413,376.922 326.746,380.589 321.5,383.5C 316.874,379.027 312.707,374.027 309,368.5C 308.275,367.941 307.442,367.608 306.5,367.5C 295.998,372.582 285.331,377.416 274.5,382C 263.639,384.975 252.639,386.642 241.5,387C 234.796,384.789 229.796,380.622 226.5,374.5C 225.308,371.438 223.808,368.438 222,365.5C 217.123,352.61 217.623,339.943 223.5,327.5C 224.458,326.038 225.624,324.705 227,323.5C 227.49,322.207 227.657,320.873 227.5,319.5C 228.552,319.649 229.552,319.483 230.5,319C 233.079,315.259 236.079,312.093 239.5,309.5C 242.157,309.07 244.157,307.737 245.5,305.5C 243.783,301.009 243.117,296.343 243.5,291.5C 243.833,290.167 244.167,288.833 244.5,287.5C 246.003,284.759 247.669,281.925 249.5,279C 251.197,278.616 252.863,278.782 254.5,279.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7465e",d:"M 223.5,327.5 C 217.623,339.943 217.123,352.61 222,365.5C 223.808,368.438 225.308,371.438 226.5,374.5C 225.153,373.829 223.986,373.829 223,374.5C 221.331,370.654 220.164,366.654 219.5,362.5C 218.914,362.291 218.414,361.957 218,361.5C 217.333,352.833 217.333,344.167 218,335.5C 218.29,333.048 218.956,330.715 220,328.5C 221.011,327.663 222.178,327.33 223.5,327.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ab1f37",d:"M 434.5,322.5 C 428.964,326.373 422.964,329.706 416.5,332.5C 415.614,333.325 415.281,334.325 415.5,335.5C 411.267,336.106 407.267,337.606 403.5,340C 399.249,342.945 395.249,346.112 391.5,349.5C 390.5,349.5 389.5,349.5 388.5,349.5C 387.628,344.774 385.962,340.44 383.5,336.5C 388.147,336.699 391.814,334.865 394.5,331C 405.178,329.33 415.844,327.663 426.5,326C 428.391,323.198 431.058,322.032 434.5,322.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#51a75f",d:"M 876.5,323.5 C 875.265,323.279 874.265,322.612 873.5,321.5C 872.208,324.619 870.708,327.619 869,330.5C 867.556,332.155 865.722,332.822 863.5,332.5C 863.5,333.5 863.5,334.5 863.5,335.5C 862.167,335.5 860.833,335.5 859.5,335.5C 861.77,332.633 864.27,329.967 867,327.5C 868.786,324.92 870.286,322.253 871.5,319.5C 873.167,319.5 874.833,319.5 876.5,319.5C 876.5,320.833 876.5,322.167 876.5,323.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dcceb7",d:"M 640.5,320.5 C 663.118,327.504 685.784,333.837 708.5,339.5C 734.442,348.135 760.775,355.969 787.5,363C 789.275,364.439 791.275,365.439 793.5,366C 801.459,367.915 809.459,369.915 817.5,372C 836.079,379.027 855.079,384.527 874.5,388.5C 891.41,394.805 908.41,400.638 925.5,406C 933.621,409.894 941.621,414.061 949.5,418.5C 949.351,419.552 949.517,420.552 950,421.5C 953.5,424.333 956.667,427.5 959.5,431C 960.448,431.483 961.448,431.649 962.5,431.5C 962.372,433.655 962.872,435.655 964,437.5C 966.795,439.751 969.128,442.418 971,445.5C 972.762,450.453 975.095,455.12 978,459.5C 984.625,476.253 986.791,493.587 984.5,511.5C 981.528,519.574 977.695,527.241 973,534.5C 963.702,542.042 953.535,548.208 942.5,553C 939.872,554.626 937.539,556.626 935.5,559C 925.886,562.808 916.552,567.142 907.5,572C 903.378,575.394 898.711,577.728 893.5,579C 883.397,583.811 873.397,588.811 863.5,594C 853.945,596.634 844.945,600.634 836.5,606C 823.435,610.027 810.435,614.36 797.5,619C 787.49,623.121 777.49,627.455 767.5,632C 751.068,636.144 735.068,641.477 719.5,648C 715.981,648.377 712.481,648.877 709,649.5C 700.931,652.48 692.764,655.147 684.5,657.5C 675.981,658.27 667.648,659.937 659.5,662.5C 657.772,662.41 656.106,662.077 654.5,661.5C 651.798,663.347 648.798,664.513 645.5,665C 637.586,666.124 629.753,667.624 622,669.5C 613.838,670.277 605.671,670.944 597.5,671.5C 594.833,671.5 592.167,671.5 589.5,671.5C 576.167,671.5 562.833,671.5 549.5,671.5C 548.5,671.5 547.5,671.5 546.5,671.5C 527.141,670.063 507.808,667.897 488.5,665C 471.77,659.261 454.77,654.261 437.5,650C 419.34,642.668 401.673,634.334 384.5,625C 367.475,614.302 352.142,601.469 338.5,586.5C 333.297,577.463 327.131,569.129 320,561.5C 317.868,555.239 315.202,549.239 312,543.5C 301.137,509.724 303.137,476.724 318,444.5C 325.908,430.096 334.908,416.43 345,403.5C 350.161,399.547 354.661,394.88 358.5,389.5C 365.909,384.133 372.909,378.299 379.5,372C 393.66,363.728 407.326,354.728 420.5,345C 433.394,339.103 446.06,332.769 458.5,326C 471.783,320.837 485.449,316.837 499.5,314C 529.363,309.172 559.363,308.172 589.5,311C 600.589,314.4 611.923,317.067 623.5,319C 628.501,319.058 633.335,319.891 638,321.5C 638.902,321.257 639.735,320.923 640.5,320.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#539e60",d:"M 945.5,320.5 C 947.902,325.44 948.902,330.773 948.5,336.5C 948.333,339.5 948.167,342.5 948,345.5C 947.878,347.437 947.045,348.77 945.5,349.5C 946.668,339.84 946.668,330.174 945.5,320.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b5b6aa",d:"M 863.5,400.5 C 863.5,401.5 863.5,402.5 863.5,403.5C 859.923,401.433 855.923,400.266 851.5,400C 843.822,399.523 836.155,399.69 828.5,400.5C 802.745,393.976 777.079,386.809 751.5,379C 742.28,377.624 733.28,375.624 724.5,373C 720.615,370.931 716.615,369.264 712.5,368C 697.802,365.127 683.135,362.127 668.5,359C 658.952,355.697 649.286,353.197 639.5,351.5C 638.848,350.275 637.681,349.608 636,349.5C 631.916,348.305 627.75,347.639 623.5,347.5C 621.05,347.702 618.717,347.369 616.5,346.5C 616.389,345.883 616.056,345.383 615.5,345C 609.859,343.858 604.193,342.858 598.5,342C 598.833,341.667 599.167,341.333 599.5,341C 594.511,340.501 589.511,340.334 584.5,340.5C 576.181,339.876 567.848,339.543 559.5,339.5C 554.544,338.172 549.211,337.505 543.5,337.5C 535.493,337.667 527.493,338 519.5,338.5C 516.41,338.522 513.743,339.188 511.5,340.5C 500.267,340.572 489.6,342.572 479.5,346.5C 472.985,347.171 467.152,349.504 462,353.5C 454.467,356.124 446.967,358.957 439.5,362C 430.598,366.95 421.598,371.617 412.5,376C 407.991,379.021 403.658,382.188 399.5,385.5C 394.167,389.167 388.833,392.833 383.5,396.5C 383.343,395.127 383.51,393.793 384,392.5C 386.172,391.491 387.338,389.824 387.5,387.5C 388.833,387.5 390.167,387.5 391.5,387.5C 391.567,386.041 391.234,384.708 390.5,383.5C 407.518,372.138 424.851,360.972 442.5,350C 448.233,346.801 454.233,344.135 460.5,342C 466.087,341.399 471.087,339.399 475.5,336C 491.155,330.87 507.155,327.037 523.5,324.5C 546.265,322.669 568.932,323.502 591.5,327C 611.914,331.186 632.247,335.853 652.5,341C 669.266,346.279 686.266,350.779 703.5,354.5C 721.946,360.898 740.613,366.398 759.5,371C 786.19,379.394 812.857,387.561 839.5,395.5C 847.448,397.423 855.448,399.09 863.5,400.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c9a19b",d:"M 584.5,340.5 C 589.511,340.334 594.511,340.501 599.5,341C 599.167,341.333 598.833,341.667 598.5,342C 604.193,342.858 609.859,343.858 615.5,345C 616.056,345.383 616.389,345.883 616.5,346.5C 605.639,344.953 594.972,342.953 584.5,340.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc5664",d:"M 559.5,339.5 C 543.491,339.5 527.491,339.834 511.5,340.5C 513.743,339.188 516.41,338.522 519.5,338.5C 527.493,338 535.493,337.667 543.5,337.5C 549.211,337.505 554.544,338.172 559.5,339.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc4a5c",d:"M 511.5,340.5 C 501.111,343.512 490.445,345.512 479.5,346.5C 489.6,342.572 500.267,340.572 511.5,340.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ea2f4e",d:"M 260.5,326.5 C 262.39,326.297 263.89,326.963 265,328.5C 270.028,335.362 274.862,342.362 279.5,349.5C 277.376,351.121 275.376,352.954 273.5,355C 272.167,355.667 270.833,355.667 269.5,355C 264.966,350.801 260.799,346.301 257,341.5C 256.002,337.527 255.669,333.527 256,329.5C 258.026,329.085 259.526,328.085 260.5,326.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3aa648",d:"M 919.5,265.5 C 921.932,262.783 924.932,260.783 928.5,259.5C 933.814,261.153 938.481,263.82 942.5,267.5C 950.215,269.555 957.548,272.722 964.5,277C 968.251,280.498 968.251,283.998 964.5,287.5C 965.679,284.629 965.679,281.796 964.5,279C 959.866,277.044 955.032,275.544 950,274.5C 944.979,275.42 941.812,278.42 940.5,283.5C 939.614,279.524 938.948,275.524 938.5,271.5C 935.102,271.858 931.935,271.192 929,269.5C 927.635,270.456 926.135,271.122 924.5,271.5C 916.823,267.366 909.49,267.7 902.5,272.5C 900.777,276.391 897.944,279.057 894,280.5C 889.244,290.501 889.911,300.167 896,309.5C 898.322,311.112 900.822,312.445 903.5,313.5C 905.05,315.428 906.717,317.261 908.5,319C 910.833,319.333 913.167,319.667 915.5,320C 914.572,320.388 913.905,321.055 913.5,322C 915.368,327.257 916.035,332.757 915.5,338.5C 909.05,340.267 902.383,340.934 895.5,340.5C 895.5,341.833 895.5,343.167 895.5,344.5C 899.541,344.325 903.541,344.158 907.5,344C 906.807,346.552 905.473,348.719 903.5,350.5C 904.325,351.386 905.325,351.719 906.5,351.5C 906.351,352.552 906.517,353.552 907,354.5C 908.356,353.62 909.856,353.286 911.5,353.5C 911.5,354.833 911.5,356.167 911.5,357.5C 913.199,357.66 914.866,357.494 916.5,357C 914.69,354.786 913.023,352.452 911.5,350C 913.254,347.173 915.088,347.006 917,349.5C 917.813,347.564 918.313,345.564 918.5,343.5C 919.833,343.5 921.167,343.5 922.5,343.5C 922.5,345.167 922.5,346.833 922.5,348.5C 924.124,348.64 925.29,347.973 926,346.5C 926.402,347.872 926.902,349.205 927.5,350.5C 925.667,351.968 925.334,353.635 926.5,355.5C 929.278,352.709 932.611,351.376 936.5,351.5C 936.443,355.133 937.443,355.3 939.5,352C 937.875,344.078 936.875,335.911 936.5,327.5C 935.488,323.117 934.321,318.784 933,314.5C 931.786,312.951 930.286,311.785 928.5,311C 929.308,310.692 929.975,310.192 930.5,309.5C 922.471,305.43 918.971,298.43 920,288.5C 920.671,287.748 921.504,287.414 922.5,287.5C 920.054,293.309 921.554,297.642 927,300.5C 927.483,301.448 927.649,302.448 927.5,303.5C 928.873,303.343 930.207,303.51 931.5,304C 937.189,308.838 941.856,314.338 945.5,320.5C 946.668,330.174 946.668,339.84 945.5,349.5C 943.816,353.366 941.482,356.866 938.5,360C 934.827,362.342 931.161,364.676 927.5,367C 924,367.167 920.5,367.333 917,367.5C 910.66,367.312 904.493,366.312 898.5,364.5C 898.5,365.5 898.5,366.5 898.5,367.5C 897.5,367.5 896.5,367.5 895.5,367.5C 895.862,372.099 894.529,376.099 891.5,379.5C 888.364,379.397 885.698,378.397 883.5,376.5C 881.631,370.394 879.465,364.394 877,358.5C 874.034,356.966 870.867,355.8 867.5,355C 863.551,352.683 859.717,350.183 856,347.5C 853.262,342.166 854.429,338.166 859.5,335.5C 860.833,335.5 862.167,335.5 863.5,335.5C 863.5,334.5 863.5,333.5 863.5,332.5C 865.722,332.822 867.556,332.155 869,330.5C 870.708,327.619 872.208,324.619 873.5,321.5C 874.265,322.612 875.265,323.279 876.5,323.5C 880.043,328.209 884.376,332.042 889.5,335C 910.497,338.173 912.83,333.007 896.5,319.5C 894.885,318.846 893.218,318.346 891.5,318C 887.256,312.977 883.256,307.644 879.5,302C 876.544,292.967 877.044,284.134 881,275.5C 886.759,267.062 894.259,260.895 903.5,257C 906.482,256.502 909.482,256.335 912.5,256.5C 913.241,259.634 914.241,262.634 915.5,265.5C 916.833,265.5 918.167,265.5 919.5,265.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf8e90",d:"M 623.5,347.5 C 627.75,347.639 631.916,348.305 636,349.5C 637.681,349.608 638.848,350.275 639.5,351.5C 633.411,352.26 628.078,350.926 623.5,347.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e32a49",d:"M 559.5,339.5 C 567.848,339.543 576.181,339.876 584.5,340.5C 594.972,342.953 605.639,344.953 616.5,346.5C 618.717,347.369 621.05,347.702 623.5,347.5C 628.078,350.926 633.411,352.26 639.5,351.5C 649.286,353.197 658.952,355.697 668.5,359C 683.135,362.127 697.802,365.127 712.5,368C 716.615,369.264 720.615,370.931 724.5,373C 733.28,375.624 742.28,377.624 751.5,379C 777.079,386.809 802.745,393.976 828.5,400.5C 851.113,408.738 874.113,416.071 897.5,422.5C 898.29,423.794 899.29,424.961 900.5,426C 905.482,427.332 910.482,428.832 915.5,430.5C 916.833,431.833 916.833,433.167 915.5,434.5C 913.018,435.067 910.684,435.734 908.5,436.5C 898.017,439.407 888.684,444.407 880.5,451.5C 879.614,452.325 879.281,453.325 879.5,454.5C 876.612,454.22 875.112,455.553 875,458.5C 873.488,459.257 872.154,460.257 871,461.5C 869.3,464.52 867.634,467.52 866,470.5C 865.219,471.944 865.386,473.277 866.5,474.5C 873.526,470.326 880.859,466.826 888.5,464C 899.848,462.33 911.181,462.33 922.5,464C 929.105,466.427 934.438,470.593 938.5,476.5C 946.121,489.697 948.621,504.031 946,519.5C 942.744,521.585 939.911,524.252 937.5,527.5C 927.487,533.017 917.487,538.85 907.5,545C 896.483,549.019 886.15,554.352 876.5,561C 868.087,564.138 859.754,567.471 851.5,571C 850.495,572.507 849.162,573.673 847.5,574.5C 843.396,575.467 839.396,576.634 835.5,578C 832.194,580.261 828.86,582.428 825.5,584.5C 814.527,588.315 803.527,592.149 792.5,596C 789.197,597.059 786.197,598.559 783.5,600.5C 762.401,608.422 741.068,615.755 719.5,622.5C 661.872,637.704 603.205,645.037 543.5,644.5C 527.459,642.991 511.459,640.491 495.5,637C 490.136,634.155 485.136,630.655 480.5,626.5C 479.614,625.675 479.281,624.675 479.5,623.5C 478.5,623.5 477.5,623.5 476.5,623.5C 476.657,622.127 476.49,620.793 476,619.5C 473.886,616.907 472.053,614.24 470.5,611.5C 470.5,610.833 470.5,610.167 470.5,609.5C 470.101,597.995 471.101,586.662 473.5,575.5C 474.5,575.5 475.5,575.5 476.5,575.5C 476.292,573.08 476.626,570.747 477.5,568.5C 477.043,567.702 476.376,567.369 475.5,567.5C 466.87,567.355 458.37,568.355 450,570.5C 448.624,570.684 447.791,571.351 447.5,572.5C 442.417,574.469 437.417,576.802 432.5,579.5C 427.83,584.167 422.83,588.501 417.5,592.5C 414.5,597.167 411.5,601.833 408.5,606.5C 405.743,607.866 403.577,607.199 402,604.5C 401.195,594.62 401.695,584.954 403.5,575.5C 404.655,568.345 404.822,561.012 404,553.5C 403.434,551.277 402.6,549.277 401.5,547.5C 400.438,543.259 398.772,539.259 396.5,535.5C 393.435,532.76 390.435,530.093 387.5,527.5C 387.5,526.5 387.5,525.5 387.5,524.5C 384.173,523.463 380.839,522.296 377.5,521C 364.154,520.833 350.821,520.333 337.5,519.5C 341.349,515.904 343.683,511.571 344.5,506.5C 346.55,503.942 348.883,501.442 351.5,499C 352.448,498.517 353.448,498.351 354.5,498.5C 354.5,497.5 354.5,496.5 354.5,495.5C 355.978,495.762 357.311,495.429 358.5,494.5C 364.144,489.756 368.644,484.09 372,477.5C 384.832,463.914 390.166,447.581 388,428.5C 384.786,420.55 381.286,412.716 377.5,405C 377.667,404.167 377.833,403.333 378,402.5C 380.182,401.064 382.016,399.397 383.5,397.5C 384.552,397.649 385.552,397.483 386.5,397C 391.027,393.301 395.361,389.468 399.5,385.5C 403.658,382.188 407.991,379.021 412.5,376C 421.598,371.617 430.598,366.95 439.5,362C 446.967,358.957 454.467,356.124 462,353.5C 467.152,349.504 472.985,347.171 479.5,346.5C 490.445,345.512 501.111,343.512 511.5,340.5C 527.491,339.834 543.491,339.5 559.5,339.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8d8d91",d:"M 382.5,335.5 C 383.167,335.5 383.5,335.833 383.5,336.5C 385.962,340.44 387.628,344.774 388.5,349.5C 389.5,349.5 390.5,349.5 391.5,349.5C 389.723,350.6 387.723,351.434 385.5,352C 377.622,360.376 368.955,367.876 359.5,374.5C 358.311,375.429 356.978,375.762 355.5,375.5C 354.908,378.127 354.575,380.794 354.5,383.5C 353.5,383.5 352.5,383.5 351.5,383.5C 352.488,375.808 350.488,369.142 345.5,363.5C 350.893,361.636 355.893,358.969 360.5,355.5C 361.429,354.311 361.762,352.978 361.5,351.5C 364.157,351.838 366.49,351.171 368.5,349.5C 372.443,345.422 376.777,341.756 381.5,338.5C 382.386,337.675 382.719,336.675 382.5,335.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db485e",d:"M 584.5,367.5 C 584.577,371.215 584.244,374.881 583.5,378.5C 575.425,376.912 567.425,375.079 559.5,373C 548.619,371.811 537.952,372.644 527.5,375.5C 529.1,374.356 530.767,373.189 532.5,372C 544.5,371.667 556.5,371.333 568.5,371C 569.025,370.308 569.692,369.808 570.5,369.5C 572.395,371.632 574.562,371.966 577,370.5C 577.5,370.833 578,371.167 578.5,371.5C 575.851,375.575 577.185,377.575 582.5,377.5C 582.336,374.813 582.503,372.146 583,369.5C 583.278,368.584 583.778,367.918 584.5,367.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#fbfafb",d:"M 645.5,444.5 C 643.647,446.375 641.813,448.375 640,450.5C 636.167,447.333 632.333,444.167 628.5,441C 622.852,439.671 617.185,438.504 611.5,437.5C 610.081,436.549 608.415,436.216 606.5,436.5C 607.374,428.293 605.041,421.293 599.5,415.5C 597.898,411.991 595.398,410.658 592,411.5C 589.753,418.049 587.753,424.715 586,431.5C 582.51,436.313 579.677,441.48 577.5,447C 577.645,447.772 577.978,448.439 578.5,449C 582.363,450.732 586.363,452.066 590.5,453C 601.64,458.724 611.806,465.891 621,474.5C 625.192,480.21 627.692,486.543 628.5,493.5C 627.399,509.531 621.066,523.031 609.5,534C 601.708,539.9 593.041,543.567 583.5,545C 572.839,545.5 562.172,545.667 551.5,545.5C 550.446,550.107 549.779,554.773 549.5,559.5C 547.01,563.323 545.677,567.657 545.5,572.5C 535.64,571.049 525.974,569.049 516.5,566.5C 514.656,564.721 513.99,562.388 514.5,559.5C 517.981,551.263 521.314,542.929 524.5,534.5C 516.663,531.778 508.663,529.445 500.5,527.5C 487.907,524.038 476.574,518.204 466.5,510C 474.12,496.37 480.62,482.203 486,467.5C 487.34,466.132 488.674,464.799 490,463.5C 491.406,464.414 492.906,465.08 494.5,465.5C 502.01,466.791 509.344,468.958 516.5,472C 517.698,474.664 519.031,477.164 520.5,479.5C 519.572,487.332 519.572,494.999 520.5,502.5C 520.261,504.467 520.594,506.301 521.5,508C 525.887,510.245 530.554,511.411 535.5,511.5C 537.493,507.818 538.66,503.818 539,499.5C 543.304,493.495 546.304,486.829 548,479.5C 551.111,475.656 552.944,471.323 553.5,466.5C 548.294,464.851 542.961,463.351 537.5,462C 522.222,454.553 510.888,443.387 503.5,428.5C 500.193,416.822 501.026,405.488 506,394.5C 509.073,390.939 511.906,387.272 514.5,383.5C 518.241,381.12 522.241,379.12 526.5,377.5C 527.298,377.043 527.631,376.376 527.5,375.5C 537.952,372.644 548.619,371.811 559.5,373C 567.425,375.079 575.425,376.912 583.5,378.5C 584.244,374.881 584.577,371.215 584.5,367.5C 585.902,363.376 586.902,359.042 587.5,354.5C 591.459,353.34 595.459,353.173 599.5,354C 605.297,355.694 610.964,357.527 616.5,359.5C 616.66,361.199 616.494,362.866 616,364.5C 610.721,371.4 606.221,378.733 602.5,386.5C 619.109,389.313 633.276,396.646 645,408.5C 647.853,413.08 649.02,418.08 648.5,423.5C 647.288,430.381 646.288,437.381 645.5,444.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c91c39",d:"M 345.5,363.5 C 350.488,369.142 352.488,375.808 351.5,383.5C 351.167,383.5 350.833,383.5 350.5,383.5C 347.753,383.813 345.086,383.48 342.5,382.5C 340.079,379.104 337.746,375.771 335.5,372.5C 334.167,370.833 332.833,369.167 331.5,367.5C 328.468,366.001 326.968,363.668 327,360.5C 330.642,359.037 334.142,357.203 337.5,355C 339.259,354.202 340.926,354.369 342.5,355.5C 343.513,358.188 344.513,360.854 345.5,363.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f71a3d",d:"M 331.5,367.5 C 330.597,365.391 329.763,363.391 329,361.5C 333,360.167 337,358.833 341,357.5C 342.847,360.406 344.014,363.573 344.5,367C 341.937,369.281 338.937,370.448 335.5,370.5C 335.5,369.5 335.5,368.5 335.5,367.5C 334.167,367.5 332.833,367.5 331.5,367.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d8435b",d:"M 514.5,383.5 C 511.906,387.272 509.073,390.939 506,394.5C 501.026,405.488 500.193,416.822 503.5,428.5C 500.061,424.962 498.728,420.629 499.5,415.5C 500.33,408.514 500.997,401.514 501.5,394.5C 504.85,394.349 506.516,392.515 506.5,389C 506.415,387.893 506.081,386.893 505.5,386C 504.062,385.781 502.729,385.281 501.5,384.5C 503.396,383.534 505.396,383.201 507.5,383.5C 507.5,384.5 507.5,385.5 507.5,386.5C 508.833,386.5 510.167,386.5 511.5,386.5C 511.5,385.5 511.5,384.5 511.5,383.5C 512.5,383.5 513.5,383.5 514.5,383.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#84828e",d:"M 335.5,372.5 C 337.746,375.771 340.079,379.104 342.5,382.5C 345.086,383.48 347.753,383.813 350.5,383.5C 345.71,386.456 341.71,390.289 338.5,395C 337.552,395.483 336.552,395.649 335.5,395.5C 335.5,396.833 335.5,398.167 335.5,399.5C 333.678,399.831 332.011,400.498 330.5,401.5C 330.88,399.302 330.213,397.635 328.5,396.5C 327.465,391.428 325.132,387.095 321.5,383.5C 326.746,380.589 331.413,376.922 335.5,372.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#dbcdb6",d:"M 458.5,227.5 C 466.897,229.574 475.23,232.074 483.5,235C 495.583,239.91 507.249,245.577 518.5,252C 528.215,260.05 538.215,267.716 548.5,275C 555.431,282.757 561.764,290.923 567.5,299.5C 567.565,299.938 567.399,300.272 567,300.5C 557.232,296.2 547.732,291.533 538.5,286.5C 527.257,276.21 515.257,266.876 502.5,258.5C 488.572,252.949 474.739,247.282 461,241.5C 425.676,232.069 389.843,229.902 353.5,235C 352.167,235.667 350.833,236.333 349.5,237C 336.761,238.176 324.095,239.842 311.5,242C 307.722,242.924 304.222,244.424 301,246.5C 269.847,253.839 240.68,265.673 213.5,282C 202.465,285.591 192.465,290.758 183.5,297.5C 180.833,298.167 178.167,298.833 175.5,299.5C 175.5,300.833 175.5,302.167 175.5,303.5C 168.243,304.636 162.243,308.136 157.5,314C 122.504,332.345 98.0042,360.178 84,397.5C 79.5487,413.914 78.382,430.581 80.5,447.5C 82.8224,453.161 85.1558,458.828 87.5,464.5C 93.0045,470.333 98.3378,476.333 103.5,482.5C 109.546,486.517 115.546,490.517 121.5,494.5C 129.119,495.161 136.453,496.828 143.5,499.5C 143.5,500.5 143.5,501.5 143.5,502.5C 164.857,505.32 186.19,504.986 207.5,501.5C 205.138,500.729 202.804,499.895 200.5,499C 205.729,498.651 210.896,499.151 216,500.5C 225.16,499.024 234.327,497.358 243.5,495.5C 245.619,495.598 247.286,496.431 248.5,498C 247.787,503.143 246.954,508.31 246,513.5C 245.667,512.833 245.333,512.167 245,511.5C 243.933,512.191 242.766,512.691 241.5,513C 242.737,513.232 243.737,513.732 244.5,514.5C 241.275,515.237 237.941,515.903 234.5,516.5C 227.651,517.47 220.818,517.47 214,516.5C 174.978,524.798 137.811,519.965 102.5,502C 60.6979,471.715 50.5312,432.881 72,385.5C 75.2613,379.879 78.428,374.212 81.5,368.5C 91.2623,355.762 101.262,343.429 111.5,331.5C 115.421,327.919 119.421,324.253 123.5,320.5C 139.694,308.905 156.361,298.072 173.5,288C 192,278.917 210.333,269.584 228.5,260C 244.811,254.168 260.811,247.834 276.5,241C 290.5,237 304.5,233 318.5,229C 335.052,225.362 351.719,222.362 368.5,220C 381.5,219.333 394.5,219.333 407.5,220C 424.554,222.174 441.554,224.674 458.5,227.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b0756e",d:"M 522.5,287.5 C 523.5,287.5 524.5,287.5 525.5,287.5C 525.369,288.376 525.702,289.043 526.5,289.5C 531.385,290.563 532.719,293.397 530.5,298C 524.843,298.499 519.176,298.666 513.5,298.5C 517.167,297.833 520.833,297.167 524.5,296.5C 525.5,296.5 526.5,296.5 527.5,296.5C 527.785,294.712 527.452,293.045 526.5,291.5C 524.625,290.591 523.292,289.257 522.5,287.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d44556",d:"M 264.5,271.5 C 261.315,273.568 257.648,274.901 253.5,275.5C 253.433,276.959 253.766,278.292 254.5,279.5C 252.863,278.782 251.197,278.616 249.5,279C 247.669,281.925 246.003,284.759 244.5,287.5C 244.5,285.5 244.5,283.5 244.5,281.5C 242.897,281.312 241.563,281.812 240.5,283C 241.731,284.183 241.731,285.349 240.5,286.5C 239.614,285.675 239.281,284.675 239.5,283.5C 234.87,284.958 230.87,287.458 227.5,291C 223.338,291.526 219.338,292.526 215.5,294C 214.663,295.011 214.33,296.178 214.5,297.5C 212.167,297.5 209.833,297.5 207.5,297.5C 208.936,295.917 210.602,294.417 212.5,293C 217.627,290.708 222.961,288.708 228.5,287C 230.833,285.333 233.167,283.667 235.5,282C 243.781,279.291 251.781,275.958 259.5,272C 261.134,271.506 262.801,271.34 264.5,271.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cc515e",d:"M 308.5,255.5 C 307.766,256.708 307.433,258.041 307.5,259.5C 305.599,259.567 303.766,259.233 302,258.5C 296.651,261.928 290.817,263.761 284.5,264C 280.61,266.947 276.277,268.78 271.5,269.5C 277.239,265.531 283.572,263.031 290.5,262C 296.109,258.65 302.109,256.483 308.5,255.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d34357",d:"M 423.5,241.5 C 426.087,242.749 428.754,243.749 431.5,244.5C 420.931,242.598 410.265,242.098 399.5,243C 393.656,243.008 388.323,244.508 383.5,247.5C 383.5,246.5 383.5,245.5 383.5,244.5C 378.167,244.5 372.833,244.5 367.5,244.5C 372.642,243.353 377.975,242.52 383.5,242C 396.829,241.5 410.163,241.333 423.5,241.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#b5a499",d:"M 423.5,241.5 C 410.163,241.333 396.829,241.5 383.5,242C 377.975,242.52 372.642,243.353 367.5,244.5C 364.833,244.5 362.167,244.5 359.5,244.5C 356.013,242.712 352.179,241.712 348,241.5C 343.175,242.633 338.342,243.966 333.5,245.5C 322.835,242.014 323.001,241.014 334,242.5C 338.461,240.705 343.127,239.705 348,239.5C 373.312,239.578 398.479,240.245 423.5,241.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#664531",d:"M 807.5,353.5 C 819.128,356.727 830.795,359.894 842.5,363C 856.167,367.5 869.834,372 883.5,376.5C 885.698,378.397 888.364,379.397 891.5,379.5C 905.374,383.97 919.374,388.137 933.5,392C 940.337,396.253 947.337,400.253 954.5,404C 968.695,414.886 979.695,428.386 987.5,444.5C 988.912,451.892 990.578,459.225 992.5,466.5C 991.5,466.5 990.5,466.5 989.5,466.5C 984.479,456.138 978.645,446.138 972,436.5C 964.743,430.131 957.243,424.131 949.5,418.5C 941.621,414.061 933.621,409.894 925.5,406C 908.41,400.638 891.41,394.805 874.5,388.5C 855.079,384.527 836.079,379.027 817.5,372C 809.459,369.915 801.459,367.915 793.5,366C 791.275,365.439 789.275,364.439 787.5,363C 760.775,355.969 734.442,348.135 708.5,339.5C 710.92,339.708 713.253,339.374 715.5,338.5C 716.696,338.846 716.696,339.346 715.5,340C 717.68,340.419 719.846,340.252 722,339.5C 726.43,340.704 730.93,341.538 735.5,342C 741.446,344.919 747.78,346.252 754.5,346C 757.44,346.212 759.274,347.712 760,350.5C 762.466,349.223 764.966,349.223 767.5,350.5C 767.291,351.086 766.957,351.586 766.5,352C 770.025,354.088 773.358,353.921 776.5,351.5C 778.246,353.854 780.579,354.854 783.5,354.5C 784.78,357.941 787.28,360.275 791,361.5C 791.483,362.448 791.649,363.448 791.5,364.5C 793.722,364.822 795.556,364.155 797,362.5C 798.813,363.609 799.646,362.942 799.5,360.5C 805.576,360.981 811.576,361.981 817.5,363.5C 822.064,363.518 823.064,362.018 820.5,359C 815.637,357.714 810.97,356.047 806.5,354C 806.728,353.601 807.062,353.435 807.5,353.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f8f7f8",d:"M 310.5,392.5 C 310.657,393.873 310.49,395.207 310,396.5C 307.8,397.836 305.967,399.502 304.5,401.5C 305.351,405.241 306.351,408.908 307.5,412.5C 302.489,412.334 297.489,412.501 292.5,413C 290.443,417.054 288.609,421.221 287,425.5C 285.008,426.328 283.508,427.661 282.5,429.5C 281.833,429.5 281.167,429.5 280.5,429.5C 280.167,429.5 279.833,429.5 279.5,429.5C 275.998,425.159 272.665,420.659 269.5,416C 268.207,415.51 266.873,415.343 265.5,415.5C 265.547,412.432 266.047,409.432 267,406.5C 269.582,404.772 271.082,402.439 271.5,399.5C 277.178,397.774 282.844,395.941 288.5,394C 290.453,391.047 291.953,387.881 293,384.5C 294.313,383.427 295.813,382.76 297.5,382.5C 302.94,384.259 307.273,387.592 310.5,392.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d97580",d:"M 399.5,385.5 C 395.361,389.468 391.027,393.301 386.5,397C 385.552,397.483 384.552,397.649 383.5,397.5C 383.5,397.167 383.5,396.833 383.5,396.5C 388.833,392.833 394.167,389.167 399.5,385.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#913349",d:"M 328.5,396.5 C 330.213,397.635 330.88,399.302 330.5,401.5C 330.5,401.833 330.5,402.167 330.5,402.5C 326.206,403.193 322.539,402.193 319.5,399.5C 322.841,400.005 326.174,400.172 329.5,400C 328.663,398.989 328.33,397.822 328.5,396.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bdb6ac",d:"M 183.5,297.5 C 181.326,299.081 178.993,300.581 176.5,302C 180.637,301.797 182.137,303.63 181,307.5C 178.832,308.822 178.999,309.489 181.5,309.5C 177.5,312.833 173.5,316.167 169.5,319.5C 166.02,320.229 162.686,321.229 159.5,322.5C 159.762,323.978 159.429,325.311 158.5,326.5C 153.589,329.783 148.589,332.783 143.5,335.5C 143.649,336.552 143.483,337.552 143,338.5C 138.371,341.794 134.038,345.461 130,349.5C 126.247,354.659 122.247,359.659 118,364.5C 114.136,370.659 110.803,376.992 108,383.5C 104.346,393.958 104.679,404.291 109,414.5C 111.399,417.942 114.565,420.276 118.5,421.5C 130.492,416.409 142.159,410.576 153.5,404C 159.061,402.539 164.728,401.706 170.5,401.5C 177.506,401.803 184.506,402.137 191.5,402.5C 191.279,404.664 190.279,406.33 188.5,407.5C 187.127,407.343 185.793,407.51 184.5,408C 174.739,414.361 164.406,420.028 153.5,425C 151.027,426.561 149.027,428.561 147.5,431C 146.207,431.49 144.873,431.657 143.5,431.5C 140.676,436.516 137.176,441.183 133,445.5C 131.323,449.316 129.489,452.982 127.5,456.5C 126.178,456.33 125.011,456.663 124,457.5C 123.333,467.167 123.333,476.833 124,486.5C 124.129,490.118 125.962,491.785 129.5,491.5C 133.833,494.344 138.5,496.011 143.5,496.5C 144.952,497.302 146.618,497.802 148.5,498C 163.006,498.827 177.339,498.661 191.5,497.5C 207.707,496.493 223.707,494.826 239.5,492.5C 243.81,491.92 248.143,491.586 252.5,491.5C 249.808,498.919 248.141,506.586 247.5,514.5C 246.5,514.5 245.5,514.5 244.5,514.5C 243.737,513.732 242.737,513.232 241.5,513C 242.766,512.691 243.933,512.191 245,511.5C 245.333,512.167 245.667,512.833 246,513.5C 246.954,508.31 247.787,503.143 248.5,498C 247.286,496.431 245.619,495.598 243.5,495.5C 234.327,497.358 225.16,499.024 216,500.5C 210.896,499.151 205.729,498.651 200.5,499C 202.804,499.895 205.138,500.729 207.5,501.5C 186.19,504.986 164.857,505.32 143.5,502.5C 143.5,501.5 143.5,500.5 143.5,499.5C 136.453,496.828 129.119,495.161 121.5,494.5C 115.546,490.517 109.546,486.517 103.5,482.5C 98.3378,476.333 93.0045,470.333 87.5,464.5C 85.1558,458.828 82.8224,453.161 80.5,447.5C 78.382,430.581 79.5487,413.914 84,397.5C 98.0042,360.178 122.504,332.345 157.5,314C 162.243,308.136 168.243,304.636 175.5,303.5C 175.5,302.167 175.5,300.833 175.5,299.5C 178.167,298.833 180.833,298.167 183.5,297.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#84868b",d:"M 310.5,392.5 C 312.611,395.941 315.611,398.274 319.5,399.5C 322.539,402.193 326.206,403.193 330.5,402.5C 328.842,403.181 327.175,404.015 325.5,405C 328.264,406.544 328.097,407.711 325,408.5C 324.693,411.876 322.86,413.21 319.5,412.5C 319.5,413.5 319.5,414.5 319.5,415.5C 318.167,415.5 316.833,415.5 315.5,415.5C 315.278,418.504 314.278,421.171 312.5,423.5C 309.45,422.923 307.45,424.09 306.5,427C 298.297,427.557 290.297,428.39 282.5,429.5C 283.508,427.661 285.008,426.328 287,425.5C 288.609,421.221 290.443,417.054 292.5,413C 297.489,412.501 302.489,412.334 307.5,412.5C 306.351,408.908 305.351,405.241 304.5,401.5C 305.967,399.502 307.8,397.836 310,396.5C 310.49,395.207 310.657,393.873 310.5,392.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e8304d",d:"M 573.5,402.5 C 574.748,403.334 575.415,404.667 575.5,406.5C 574.18,411.05 573.346,415.716 573,420.5C 570.527,425.92 568.86,431.586 568,437.5C 567.313,439.555 566.146,441.221 564.5,442.5C 558.493,438.326 553.327,433.326 549,427.5C 548.333,424.167 548.333,420.833 549,417.5C 554.09,412.801 559.59,408.635 565.5,405C 568.457,404.721 571.123,403.887 573.5,402.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db7181",d:"M 599.5,415.5 C 605.041,421.293 607.374,428.293 606.5,436.5C 608.415,436.216 610.081,436.549 611.5,437.5C 609.396,437.799 607.396,437.466 605.5,436.5C 605.611,430.129 603.777,424.463 600,419.5C 599.51,418.207 599.343,416.873 599.5,415.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d73e53",d:"M 188.5,407.5 C 185.888,409.083 183.221,410.75 180.5,412.5C 182.078,413.072 183.578,413.406 185,413.5C 186.77,411.582 188.937,411.082 191.5,412C 190.167,412.667 188.833,413.333 187.5,414C 182.536,414.97 177.536,415.47 172.5,415.5C 172.5,416.5 172.5,417.5 172.5,418.5C 173.5,418.5 174.5,418.5 175.5,418.5C 175.5,419.5 175.5,420.5 175.5,421.5C 173.325,421.318 171.325,420.651 169.5,419.5C 160.131,422.877 152.464,428.711 146.5,437C 143.234,437.718 140.401,439.218 138,441.5C 136.633,445.835 136.299,450.168 137,454.5C 136.784,452.616 136.117,450.949 135,449.5C 132.598,453.995 132.098,458.661 133.5,463.5C 131.167,463.5 128.833,463.5 126.5,463.5C 124.888,472.011 125.222,480.344 127.5,488.5C 126.034,487.653 125.2,486.32 125,484.5C 123.881,474.945 124.714,465.612 127.5,456.5C 129.489,452.982 131.323,449.316 133,445.5C 137.176,441.183 140.676,436.516 143.5,431.5C 144.873,431.657 146.207,431.49 147.5,431C 149.027,428.561 151.027,426.561 153.5,425C 164.406,420.028 174.739,414.361 184.5,408C 185.793,407.51 187.127,407.343 188.5,407.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8b6d77",d:"M 312.5,423.5 C 310.825,426.245 309.158,428.912 307.5,431.5C 299.038,431.523 290.371,431.356 281.5,431C 280.944,430.617 280.611,430.117 280.5,429.5C 281.167,429.5 281.833,429.5 282.5,429.5C 290.297,428.39 298.297,427.557 306.5,427C 307.45,424.09 309.45,422.923 312.5,423.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e6b1b7",d:"M 793.5,420.5 C 793.793,416.563 793.46,412.73 792.5,409C 787.816,408.539 783.149,408.705 778.5,409.5C 778.5,416.167 778.5,422.833 778.5,429.5C 775.807,429.572 773.14,429.905 770.5,430.5C 764.29,428.766 757.956,428.099 751.5,428.5C 760.008,427.396 768.675,427.396 777.5,428.5C 777.5,421.5 777.5,414.5 777.5,407.5C 783.167,407.5 788.833,407.5 794.5,407.5C 794.818,412.032 794.485,416.366 793.5,420.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#f9f8fa",d:"M 793.5,420.5 C 792.518,423.962 792.185,427.629 792.5,431.5C 799.607,433.404 806.773,435.404 814,437.5C 818.127,439.634 821.627,442.467 824.5,446C 826.608,446.36 828.608,447.027 830.5,448C 828.418,454.101 825.418,459.768 821.5,465C 812.773,464.417 804.107,463.251 795.5,461.5C 795.472,456.862 796.139,452.362 797.5,448C 795.091,446.293 792.425,445.46 789.5,445.5C 789.5,446.833 789.5,448.167 789.5,449.5C 787.192,457.627 785.192,465.96 783.5,474.5C 783.543,475.416 783.876,476.083 784.5,476.5C 795.796,478.909 806.796,482.743 817.5,488C 820.704,490.869 823.537,494.035 826,497.5C 827.7,513.085 822.533,525.751 810.5,535.5C 799.558,542.23 787.558,545.563 774.5,545.5C 774.504,554.889 772.837,563.889 769.5,572.5C 768.817,572.137 768.15,571.804 767.5,571.5C 764.854,570.836 762.021,570.502 759,570.5C 754.867,570.286 751.034,570.952 747.5,572.5C 746.275,571.848 745.608,570.681 745.5,569C 746.749,562.923 748.582,557.09 751,551.5C 751.497,548.854 751.664,546.187 751.5,543.5C 739.497,541.84 727.497,539.506 715.5,536.5C 714.592,534.548 714.759,532.548 716,530.5C 721.584,521.332 726.084,511.665 729.5,501.5C 735.884,501.757 742.218,502.423 748.5,503.5C 747.926,509.484 747.593,515.484 747.5,521.5C 751.474,522.805 755.474,524.138 759.5,525.5C 760.442,525.392 761.275,525.059 762,524.5C 764.57,514.257 766.403,503.924 767.5,493.5C 756.687,491.162 746.02,487.995 735.5,484C 724.591,476.673 720.425,466.506 723,453.5C 727.479,439.213 736.979,430.88 751.5,428.5C 757.956,428.099 764.29,428.766 770.5,430.5C 773.14,429.905 775.807,429.572 778.5,429.5C 778.5,422.833 778.5,416.167 778.5,409.5C 783.149,408.705 787.816,408.539 792.5,409C 793.46,412.73 793.793,416.563 793.5,420.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bdb6ab",d:"M 863.5,400.5 C 875.42,404.629 887.42,408.463 899.5,412C 905.806,412.105 911.806,413.439 917.5,416C 925.189,420.456 932.522,425.456 939.5,431C 940.793,431.49 942.127,431.657 943.5,431.5C 943.822,435.511 945.822,438.511 949.5,440.5C 953.825,445.811 957.658,451.478 961,457.5C 966.293,475.098 968.293,493.098 967,511.5C 966.3,516.733 964.133,521.233 960.5,525C 956.571,526.929 953.238,529.596 950.5,533C 948.559,534.903 946.226,535.736 943.5,535.5C 943.5,536.5 943.5,537.5 943.5,538.5C 939.947,539.397 936.614,540.897 933.5,543C 931.527,543.495 929.527,543.662 927.5,543.5C 927.64,545.124 926.973,546.29 925.5,547C 921.091,549.383 916.424,551.05 911.5,552C 885.733,564.54 860.066,577.373 834.5,590.5C 828.254,593.125 821.921,595.459 815.5,597.5C 815.5,596.167 815.5,594.833 815.5,593.5C 813.076,593.808 810.743,593.474 808.5,592.5C 812.731,590.523 817.065,589.856 821.5,590.5C 825.081,588.841 825.081,587.675 821.5,587C 822.858,586.066 824.192,585.232 825.5,584.5C 828.86,582.428 832.194,580.261 835.5,578C 839.396,576.634 843.396,575.467 847.5,574.5C 849.162,573.673 850.495,572.507 851.5,571C 859.754,567.471 868.087,564.138 876.5,561C 886.15,554.352 896.483,549.019 907.5,545C 917.487,538.85 927.487,533.017 937.5,527.5C 939.606,526.217 941.94,525.384 944.5,525C 945.893,523.829 946.727,522.329 947,520.5C 947.667,510.167 947.667,499.833 947,489.5C 944.629,486.281 945.296,483.948 949,482.5C 949.483,481.552 949.649,480.552 949.5,479.5C 946.753,479.813 944.086,479.48 941.5,478.5C 940.995,477.081 939.995,476.415 938.5,476.5C 934.438,470.593 929.105,466.427 922.5,464C 911.181,462.33 899.848,462.33 888.5,464C 880.859,466.826 873.526,470.326 866.5,474.5C 865.386,473.277 865.219,471.944 866,470.5C 867.634,467.52 869.3,464.52 871,461.5C 872.154,460.257 873.488,459.257 875,458.5C 875.112,455.553 876.612,454.22 879.5,454.5C 879.281,453.325 879.614,452.325 880.5,451.5C 888.684,444.407 898.017,439.407 908.5,436.5C 911.518,436.665 914.518,436.498 917.5,436C 920.07,433.085 919.737,430.419 916.5,428C 911.279,427.728 906.279,426.728 901.5,425C 900.529,423.519 899.196,422.685 897.5,422.5C 874.113,416.071 851.113,408.738 828.5,400.5C 836.155,399.69 843.822,399.523 851.5,400C 855.923,400.266 859.923,401.433 863.5,403.5C 863.5,402.5 863.5,401.5 863.5,400.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ad9e8b",d:"M 111.5,331.5 C 101.262,343.429 91.2623,355.762 81.5,368.5C 78.428,374.212 75.2613,379.879 72,385.5C 50.5312,432.881 60.6979,471.715 102.5,502C 137.811,519.965 174.978,524.798 214,516.5C 220.818,517.47 227.651,517.47 234.5,516.5C 225.755,518.55 216.755,519.55 207.5,519.5C 207.5,520.833 207.5,522.167 207.5,523.5C 192.232,523.423 176.898,522.923 161.5,522C 156.556,521.278 151.722,520.112 147,518.5C 142.378,519.459 142.378,520.459 147,521.5C 147.72,523.112 147.554,524.612 146.5,526C 144.671,526.273 143.171,527.107 142,528.5C 138.665,527.166 135.499,527.499 132.5,529.5C 126.156,527.829 119.823,525.996 113.5,524C 103.156,517.83 93.156,511.163 83.5,504C 77.4489,497.404 71.2822,490.904 65,484.5C 63.9811,481.128 62.4811,478.128 60.5,475.5C 59.6285,473.437 58.4618,471.437 57,469.5C 55.2578,461.942 52.9245,454.608 50,447.5C 49.3333,439.167 49.3333,430.833 50,422.5C 53.5496,406.927 59.2162,392.26 67,378.5C 71.8021,372.878 75.9688,366.878 79.5,360.5C 86.6035,352.895 93.9368,345.395 101.5,338C 104.72,335.563 108.053,333.397 111.5,331.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#942134",d:"M 279.5,429.5 C 279.833,429.5 280.167,429.5 280.5,429.5C 280.611,430.117 280.944,430.617 281.5,431C 290.371,431.356 299.038,431.523 307.5,431.5C 301.238,442.72 296.572,454.72 293.5,467.5C 291.449,473.555 289.449,479.722 287.5,486C 275.574,488.157 263.574,489.657 251.5,490.5C 251.227,488.042 252.227,486.375 254.5,485.5C 255.324,482.215 255.824,478.882 256,475.5C 257.158,475.002 257.991,474.169 258.5,473C 261.325,464.1 264.659,455.6 268.5,447.5C 269.5,447.5 270.5,447.5 271.5,447.5C 271.34,445.801 271.506,444.134 272,442.5C 274.323,439.874 276.657,437.207 279,434.5C 279.494,432.866 279.66,431.199 279.5,429.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#623d29",d:"M 79.5,360.5 C 75.9688,366.878 71.8021,372.878 67,378.5C 59.2162,392.26 53.5496,406.927 50,422.5C 49.3333,430.833 49.3333,439.167 50,447.5C 52.9245,454.608 55.2578,461.942 57,469.5C 58.4618,471.437 59.6285,473.437 60.5,475.5C 60.6551,482.297 61.6551,488.963 63.5,495.5C 61.8333,495.5 60.1667,495.5 58.5,495.5C 58.7989,493.396 58.4656,491.396 57.5,489.5C 53.7966,486.423 51.9632,482.423 52,477.5C 50.7321,474.407 48.8988,471.74 46.5,469.5C 34.7697,479.497 32.4364,491.497 39.5,505.5C 40.8924,504.395 42.059,503.061 43,501.5C 44.0429,504.757 44.5429,508.09 44.5,511.5C 45.5,511.5 46.5,511.5 47.5,511.5C 47.5,512.5 47.5,513.5 47.5,514.5C 46.325,514.281 45.325,514.614 44.5,515.5C 45.3094,517.071 45.6427,518.738 45.5,520.5C 48.7553,520.014 51.422,521.014 53.5,523.5C 54.2281,526.212 55.0615,528.879 56,531.5C 59.5502,531.842 60.7169,533.509 59.5,536.5C 55.9044,533.083 52.0711,529.75 48,526.5C 34.071,511.777 30.4044,494.777 37,475.5C 40.8984,470.37 43.7317,464.703 45.5,458.5C 37.5057,423.146 43.5057,390.48 63.5,360.5C 65.8202,359.238 68.1535,358.238 70.5,357.5C 70.1667,356.833 69.8333,356.167 69.5,355.5C 72.2592,352.08 74.5925,348.414 76.5,344.5C 77.2421,343.713 78.0754,343.047 79,342.5C 83.2999,343.665 85.7999,341.999 86.5,337.5C 89.4799,337.641 91.4799,339.141 92.5,342C 91.0068,344.496 89.5068,346.996 88,349.5C 87.6667,349.167 87.3333,348.833 87,348.5C 86.3632,350.303 85.1965,351.636 83.5,352.5C 81.6565,354.982 80.3231,357.649 79.5,360.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf9496",d:"M 127.5,456.5 C 124.714,465.612 123.881,474.945 125,484.5C 125.2,486.32 126.034,487.653 127.5,488.5C 127.782,489.778 128.449,490.778 129.5,491.5C 125.962,491.785 124.129,490.118 124,486.5C 123.333,476.833 123.333,467.167 124,457.5C 125.011,456.663 126.178,456.33 127.5,456.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#9b7775",d:"M 293.5,467.5 C 292.556,475.088 290.889,482.421 288.5,489.5C 285.454,488.115 282.454,488.281 279.5,490C 270.503,490.625 261.503,491.125 252.5,491.5C 248.143,491.586 243.81,491.92 239.5,492.5C 243.21,490.864 247.21,490.198 251.5,490.5C 263.574,489.657 275.574,488.157 287.5,486C 289.449,479.722 291.449,473.555 293.5,467.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#7d8079",d:"M 288.5,489.5 C 288.5,495.167 288.5,500.833 288.5,506.5C 275.001,510 261.334,512.667 247.5,514.5C 248.141,506.586 249.808,498.919 252.5,491.5C 261.503,491.125 270.503,490.625 279.5,490C 282.454,488.281 285.454,488.115 288.5,489.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#be6d76",d:"M 143.5,496.5 C 159.483,497.366 175.483,497.7 191.5,497.5C 177.339,498.661 163.006,498.827 148.5,498C 146.618,497.802 144.952,497.302 143.5,496.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#68341f",d:"M 63.5,495.5 C 65.7633,500.525 67.4299,505.859 68.5,511.5C 69.5,511.5 70.5,511.5 71.5,511.5C 73.7244,519.914 77.5577,527.58 83,534.5C 83.5323,537.264 84.3657,539.93 85.5,542.5C 87.396,543.466 89.396,543.799 91.5,543.5C 90.9999,547.164 92.1666,550.164 95,552.5C 95.4966,554.81 95.6633,557.143 95.5,559.5C 94.1779,559.67 93.0113,559.337 92,558.5C 89.7115,553.98 86.8782,549.813 83.5,546C 76.7694,544.697 70.4361,545.53 64.5,548.5C 61.5342,550.569 58.7009,552.902 56,555.5C 55.51,556.793 55.3433,558.127 55.5,559.5C 51.5962,559.061 49.0962,560.728 48,564.5C 46.8653,568.79 46.0319,573.123 45.5,577.5C 45.8012,584.098 48.4678,589.431 53.5,593.5C 57.1588,597.175 61.4921,599.509 66.5,600.5C 89.115,613.976 113.782,621.309 140.5,622.5C 140.5,622.833 140.5,623.167 140.5,623.5C 127.444,623.62 114.777,621.787 102.5,618C 91.0222,616.956 79.6888,615.123 68.5,612.5C 62.3956,609.614 56.3956,606.447 50.5,603C 46.2792,598.779 42.1126,594.613 38,590.5C 30.9984,577.843 32.3317,566.176 42,555.5C 47.7815,549.114 54.7815,544.78 63,542.5C 63.3494,539.669 62.1827,537.669 59.5,536.5C 60.7169,533.509 59.5502,531.842 56,531.5C 55.0615,528.879 54.2281,526.212 53.5,523.5C 51.422,521.014 48.7553,520.014 45.5,520.5C 45.6427,518.738 45.3094,517.071 44.5,515.5C 45.325,514.614 46.325,514.281 47.5,514.5C 47.5,513.5 47.5,512.5 47.5,511.5C 46.5,511.5 45.5,511.5 44.5,511.5C 44.5429,508.09 44.0429,504.757 43,501.5C 42.059,503.061 40.8924,504.395 39.5,505.5C 32.4364,491.497 34.7697,479.497 46.5,469.5C 48.8988,471.74 50.7321,474.407 52,477.5C 51.9632,482.423 53.7966,486.423 57.5,489.5C 58.4656,491.396 58.7989,493.396 58.5,495.5C 60.1667,495.5 61.8333,495.5 63.5,495.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a29080",d:"M 244.5,514.5 C 245.5,514.5 246.5,514.5 247.5,514.5C 247.177,520.8 245.844,526.8 243.5,532.5C 216.007,536.213 188.34,537.713 160.5,537C 150.797,535.593 141.463,533.093 132.5,529.5C 135.499,527.499 138.665,527.166 142,528.5C 143.171,527.107 144.671,526.273 146.5,526C 147.554,524.612 147.72,523.112 147,521.5C 142.378,520.459 142.378,519.459 147,518.5C 151.722,520.112 156.556,521.278 161.5,522C 176.898,522.923 192.232,523.423 207.5,523.5C 207.5,522.167 207.5,520.833 207.5,519.5C 216.755,519.55 225.755,518.55 234.5,516.5C 237.941,515.903 241.275,515.237 244.5,514.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bfb6ac",d:"M 390.5,383.5 C 391.234,384.708 391.567,386.041 391.5,387.5C 390.167,387.5 388.833,387.5 387.5,387.5C 387.338,389.824 386.172,391.491 384,392.5C 383.51,393.793 383.343,395.127 383.5,396.5C 383.5,396.833 383.5,397.167 383.5,397.5C 382.016,399.397 380.182,401.064 378,402.5C 377.833,403.333 377.667,404.167 377.5,405C 381.286,412.716 384.786,420.55 388,428.5C 390.166,447.581 384.832,463.914 372,477.5C 368.644,484.09 364.144,489.756 358.5,494.5C 357.311,495.429 355.978,495.762 354.5,495.5C 354.5,496.5 354.5,497.5 354.5,498.5C 353.448,498.351 352.448,498.517 351.5,499C 348.883,501.442 346.55,503.942 344.5,506.5C 339.453,510.353 336.453,515.353 335.5,521.5C 346.172,521.333 356.839,521.5 367.5,522C 374.103,524.139 380.769,525.972 387.5,527.5C 390.435,530.093 393.435,532.76 396.5,535.5C 398.772,539.259 400.438,543.259 401.5,547.5C 403.273,556.718 403.94,566.051 403.5,575.5C 401.695,584.954 401.195,594.62 402,604.5C 403.577,607.199 405.743,607.866 408.5,606.5C 411.5,601.833 414.5,597.167 417.5,592.5C 422.83,588.501 427.83,584.167 432.5,579.5C 437.417,576.802 442.417,574.469 447.5,572.5C 451.529,572.047 455.529,571.38 459.5,570.5C 461.384,570.716 463.051,571.383 464.5,572.5C 465.429,571.311 465.762,569.978 465.5,568.5C 468.247,568.187 470.914,568.52 473.5,569.5C 471.611,571.432 469.611,573.265 467.5,575C 468.448,575.483 469.448,575.649 470.5,575.5C 468.448,587.028 467.948,598.695 469,610.5C 469.383,611.056 469.883,611.389 470.5,611.5C 472.053,614.24 473.886,616.907 476,619.5C 476.49,620.793 476.657,622.127 476.5,623.5C 477.5,623.5 478.5,623.5 479.5,623.5C 479.281,624.675 479.614,625.675 480.5,626.5C 485.136,630.655 490.136,634.155 495.5,637C 511.459,640.491 527.459,642.991 543.5,644.5C 538.167,644.5 532.833,644.5 527.5,644.5C 527.5,645.5 527.5,646.5 527.5,647.5C 523.501,647.091 519.834,647.925 516.5,650C 523.192,650.453 529.859,650.119 536.5,649C 534.608,648.027 532.608,647.36 530.5,647C 540.161,646.5 549.828,646.334 559.5,646.5C 559.5,647.5 559.5,648.5 559.5,649.5C 554.167,649.5 548.833,649.5 543.5,649.5C 543.5,650.5 543.5,651.5 543.5,652.5C 532.742,653.223 522.075,653.889 511.5,654.5C 492.203,652.14 473.536,647.307 455.5,640C 451.442,639.66 447.442,638.993 443.5,638C 430.779,631.639 418.112,625.306 405.5,619C 399.708,615.042 394.375,610.542 389.5,605.5C 382.07,602.46 375.737,597.96 370.5,592C 366.822,591.991 364.655,590.157 364,586.5C 352.808,576.309 343.475,564.643 336,551.5C 335.503,548.854 335.336,546.187 335.5,543.5C 334.167,543.5 332.833,543.5 331.5,543.5C 328.79,535.693 326.457,527.693 324.5,519.5C 323.334,508.849 323.168,498.182 324,487.5C 326.37,477.347 329.037,467.347 332,457.5C 334.124,451.697 337.124,446.363 341,441.5C 341.333,439.833 341.667,438.167 342,436.5C 345.434,431.284 349.101,426.284 353,421.5C 361.973,413.86 370.306,405.527 378,396.5C 379.039,394.254 380.206,392.087 381.5,390C 383.134,389.506 384.801,389.34 386.5,389.5C 387.253,387.12 388.587,385.12 390.5,383.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#403025",d:"M 288.5,506.5 C 288.232,508.099 288.566,509.432 289.5,510.5C 289.808,512.924 289.474,515.257 288.5,517.5C 281.076,527.678 277.742,539.178 278.5,552C 278.767,556.512 279.101,561.012 279.5,565.5C 276.977,566.384 274.31,567.218 271.5,568C 261.555,569.706 251.555,570.872 241.5,571.5C 241.167,571.5 240.833,571.5 240.5,571.5C 239.879,558.317 240.879,545.317 243.5,532.5C 245.844,526.8 247.177,520.8 247.5,514.5C 261.334,512.667 275.001,510 288.5,506.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6a5345",d:"M 60.5,475.5 C 62.4811,478.128 63.9811,481.128 65,484.5C 71.2822,490.904 77.4489,497.404 83.5,504C 93.156,511.163 103.156,517.83 113.5,524C 119.823,525.996 126.156,527.829 132.5,529.5C 141.463,533.093 150.797,535.593 160.5,537C 188.34,537.713 216.007,536.213 243.5,532.5C 240.879,545.317 239.879,558.317 240.5,571.5C 200.499,571.667 160.499,571.5 120.5,571C 114.68,570.725 109.013,569.725 103.5,568C 100.726,565.746 99.0593,562.913 98.5,559.5C 97.5,559.5 96.5,559.5 95.5,559.5C 95.6633,557.143 95.4966,554.81 95,552.5C 92.1666,550.164 90.9999,547.164 91.5,543.5C 89.396,543.799 87.396,543.466 85.5,542.5C 84.3657,539.93 83.5323,537.264 83,534.5C 77.5577,527.58 73.7244,519.914 71.5,511.5C 70.5,511.5 69.5,511.5 68.5,511.5C 67.4299,505.859 65.7633,500.525 63.5,495.5C 61.6551,488.963 60.6551,482.297 60.5,475.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#846e5e",d:"M 987.5,444.5 C 989.159,445.834 990.492,447.501 991.5,449.5C 994.764,459.008 998.264,468.342 1002,477.5C 1002.67,490.167 1002.67,502.833 1002,515.5C 999.713,526.011 996.213,536.011 991.5,545.5C 990.609,544.89 989.609,544.557 988.5,544.5C 990.45,534.805 992.617,525.138 995,515.5C 998.072,498.439 996.238,482.106 989.5,466.5C 990.5,466.5 991.5,466.5 992.5,466.5C 990.578,459.225 988.912,451.892 987.5,444.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6a5244",d:"M 289.5,510.5 C 293.239,533.663 301.239,555.329 313.5,575.5C 317.818,580.14 321.651,585.14 325,590.5C 327.382,592.259 329.548,594.259 331.5,596.5C 332.386,597.325 332.719,598.325 332.5,599.5C 341.21,607.031 349.876,614.864 358.5,623C 364.846,625.574 370.179,629.574 374.5,635C 401.04,651.925 429.706,664.591 460.5,673C 462.527,675.681 465.193,677.347 468.5,678C 479.502,680.739 490.502,683.405 501.5,686C 515.597,688.012 529.597,690.512 543.5,693.5C 538.695,694.487 533.695,694.821 528.5,694.5C 528.012,697.711 528.679,700.544 530.5,703C 528.185,708.954 525.685,714.787 523,720.5C 521.666,723.589 519.499,725.922 516.5,727.5C 515.548,729.045 515.215,730.712 515.5,732.5C 513.517,732.157 512.183,732.824 511.5,734.5C 506.328,732.665 500.995,731.665 495.5,731.5C 495.5,729.833 495.5,728.167 495.5,726.5C 490.479,724.245 485.146,722.911 479.5,722.5C 479.5,721.5 479.5,720.5 479.5,719.5C 476.15,719.665 472.817,719.498 469.5,719C 468.5,718 467.5,717 466.5,716C 452.834,709.261 438.5,704.928 423.5,703C 421.506,700.28 418.839,698.78 415.5,698.5C 415.5,697.5 415.5,696.5 415.5,695.5C 411.831,696.303 409.164,695.136 407.5,692C 404.883,691.178 402.216,690.678 399.5,690.5C 399.5,689.5 399.5,688.5 399.5,687.5C 395.719,688.211 392.719,687.045 390.5,684C 388.26,683.023 385.927,682.523 383.5,682.5C 383.5,681.167 383.5,679.833 383.5,678.5C 377.238,679.33 372.904,676.997 370.5,671.5C 369.5,671.5 368.5,671.5 367.5,671.5C 367.5,670.5 367.5,669.5 367.5,668.5C 359.809,666.989 353.476,663.155 348.5,657C 338.988,651.165 330.321,644.165 322.5,636C 321.552,635.517 320.552,635.351 319.5,635.5C 318.093,631.56 315.593,628.226 312,625.5C 304.057,615.91 297.391,605.577 292,594.5C 291.092,592.561 289.592,591.561 287.5,591.5C 288.036,588.335 287.203,585.669 285,583.5C 283.634,577.243 281.8,571.243 279.5,565.5C 279.101,561.012 278.767,556.512 278.5,552C 277.742,539.178 281.076,527.678 288.5,517.5C 289.474,515.257 289.808,512.924 289.5,510.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#90442c",d:"M 95.5,559.5 C 97.2432,563.288 98.5766,567.288 99.5,571.5C 108.922,571.709 118.255,572.709 127.5,574.5C 165.494,575.5 203.494,575.833 241.5,575.5C 243.935,582.168 245.435,589.168 246,596.5C 248.032,599.368 249.865,602.368 251.5,605.5C 252.524,606.853 253.857,607.52 255.5,607.5C 255.5,609.833 255.5,612.167 255.5,614.5C 244.498,615.83 233.831,617.497 223.5,619.5C 212.767,619.747 202.1,620.747 191.5,622.5C 174.513,623.499 157.513,623.833 140.5,623.5C 140.5,623.167 140.5,622.833 140.5,622.5C 148.84,622.666 157.173,622.5 165.5,622C 165.167,621.667 164.833,621.333 164.5,621C 150.618,619.123 136.951,616.457 123.5,613C 115.204,609.132 106.537,606.132 97.5,604C 89.0839,599.973 80.5839,596.139 72,592.5C 68.9279,594.31 67.0946,596.976 66.5,600.5C 61.4921,599.509 57.1588,597.175 53.5,593.5C 48.4678,589.431 45.8012,584.098 45.5,577.5C 46.0319,573.123 46.8653,568.79 48,564.5C 49.0962,560.728 51.5962,559.061 55.5,559.5C 55.3433,558.127 55.51,556.793 56,555.5C 58.7009,552.902 61.5342,550.569 64.5,548.5C 70.4361,545.53 76.7694,544.697 83.5,546C 86.8782,549.813 89.7115,553.98 92,558.5C 93.0113,559.337 94.1779,559.67 95.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#785e50",d:"M 943.5,617.5 C 936.896,620.014 930.229,622.847 923.5,626C 919.582,627.156 915.582,627.656 911.5,627.5C 911.5,628.5 911.5,629.5 911.5,630.5C 906.213,631.342 900.88,631.676 895.5,631.5C 895.5,633.167 895.5,634.833 895.5,636.5C 892.813,636.341 890.48,637.175 888.5,639C 885.518,639.498 882.518,639.665 879.5,639.5C 879.5,640.5 879.5,641.5 879.5,642.5C 872.564,645.498 865.23,647.331 857.5,648C 856.449,649.385 855.116,650.385 853.5,651C 849.511,651.551 845.844,652.884 842.5,655C 838.848,655.499 835.182,655.665 831.5,655.5C 831.5,656.5 831.5,657.5 831.5,658.5C 829.396,658.201 827.396,658.534 825.5,659.5C 818.692,662.056 812.025,664.889 805.5,668C 803.527,668.495 801.527,668.662 799.5,668.5C 799.5,669.5 799.5,670.5 799.5,671.5C 794.167,671.5 788.833,671.5 783.5,671.5C 783.5,672.5 783.5,673.5 783.5,674.5C 776.073,676.891 768.573,679.224 761,681.5C 759.831,682.009 758.998,682.842 758.5,684C 749.084,685.616 739.751,687.616 730.5,690C 726.848,690.499 723.182,690.665 719.5,690.5C 719.5,691.5 719.5,692.5 719.5,693.5C 714.233,694.816 708.9,695.816 703.5,696.5C 703.5,697.5 703.5,698.5 703.5,699.5C 699.894,699.309 696.894,700.476 694.5,703C 689.5,703.333 684.5,703.667 679.5,704C 677.091,705.707 674.425,706.54 671.5,706.5C 671.5,707.833 671.5,709.167 671.5,710.5C 662.466,711.143 653.633,713.143 645,716.5C 637.88,717.935 630.714,718.935 623.5,719.5C 623.5,720.5 623.5,721.5 623.5,722.5C 609.873,723.938 596.539,726.771 583.5,731C 573.423,732.477 563.423,734.144 553.5,736C 545.473,740.619 536.806,743.119 527.5,743.5C 527.5,742.167 527.5,740.833 527.5,739.5C 523.733,740.074 520.733,738.907 518.5,736C 516.19,735.503 513.857,735.337 511.5,735.5C 511.5,735.167 511.5,734.833 511.5,734.5C 512.183,732.824 513.517,732.157 515.5,732.5C 515.215,730.712 515.548,729.045 516.5,727.5C 519.499,725.922 521.666,723.589 523,720.5C 525.685,714.787 528.185,708.954 530.5,703C 528.679,700.544 528.012,697.711 528.5,694.5C 533.695,694.821 538.695,694.487 543.5,693.5C 556.846,693.666 570.179,693.333 583.5,692.5C 597.523,690.107 611.523,687.607 625.5,685C 640.299,683.469 654.966,680.969 669.5,677.5C 704.396,667.48 739.229,657.147 774,646.5C 779.372,643.153 785.206,640.986 791.5,640C 834.501,624.227 877.168,607.894 919.5,591C 936.581,582.899 953.581,574.565 970.5,566C 973.567,563.352 976.734,560.852 980,558.5C 980.49,557.207 980.657,555.873 980.5,554.5C 983.248,554.598 983.914,553.598 982.5,551.5C 983.15,551.196 983.817,550.863 984.5,550.5C 984.984,553.626 986.317,556.293 988.5,558.5C 987.751,568.134 987.084,577.801 986.5,587.5C 984.301,592.204 982.968,597.204 982.5,602.5C 980.382,603.946 978.049,604.613 975.5,604.5C 975.5,605.5 975.5,606.5 975.5,607.5C 965.659,610.328 955.659,612.995 945.5,615.5C 944.287,615.747 943.62,616.414 943.5,617.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#7f4933",d:"M 95.5,559.5 C 96.5,559.5 97.5,559.5 98.5,559.5C 99.0593,562.913 100.726,565.746 103.5,568C 109.013,569.725 114.68,570.725 120.5,571C 160.499,571.5 200.499,571.667 240.5,571.5C 240.833,571.5 241.167,571.5 241.5,571.5C 241.5,572.833 241.5,574.167 241.5,575.5C 203.494,575.833 165.494,575.5 127.5,574.5C 118.255,572.709 108.922,571.709 99.5,571.5C 98.5766,567.288 97.2432,563.288 95.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5c2d1b",d:"M 279.5,565.5 C 281.8,571.243 283.634,577.243 285,583.5C 287.203,585.669 288.036,588.335 287.5,591.5C 289.592,591.561 291.092,592.561 292,594.5C 297.391,605.577 304.057,615.91 312,625.5C 315.593,628.226 318.093,631.56 319.5,635.5C 320.552,635.351 321.552,635.517 322.5,636C 330.321,644.165 338.988,651.165 348.5,657C 353.476,663.155 359.809,666.989 367.5,668.5C 367.5,669.5 367.5,670.5 367.5,671.5C 368.5,671.5 369.5,671.5 370.5,671.5C 369.544,673.516 368.21,675.349 366.5,677C 363.061,677.441 360.394,679.108 358.5,682C 356.19,682.497 353.857,682.663 351.5,682.5C 347.283,678.556 342.283,675.889 336.5,674.5C 335.614,673.675 335.281,672.675 335.5,671.5C 332.021,670.796 328.688,669.63 325.5,668C 319.37,665.066 313.704,661.399 308.5,657C 306.975,655.991 305.308,655.491 303.5,655.5C 303.719,654.325 303.386,653.325 302.5,652.5C 296.473,648.791 290.473,645.124 284.5,641.5C 282,644.375 279.333,647.041 276.5,649.5C 276.666,643.491 276.499,637.491 276,631.5C 271.097,628.465 266.93,624.632 263.5,620C 258.087,619.755 252.587,619.255 247,618.5C 239.18,619.187 231.347,619.52 223.5,619.5C 233.831,617.497 244.498,615.83 255.5,614.5C 255.5,612.167 255.5,609.833 255.5,607.5C 253.857,607.52 252.524,606.853 251.5,605.5C 249.865,602.368 248.032,599.368 246,596.5C 245.435,589.168 243.935,582.168 241.5,575.5C 241.5,574.167 241.5,572.833 241.5,571.5C 251.555,570.872 261.555,569.706 271.5,568C 274.31,567.218 276.977,566.384 279.5,565.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c67c69",d:"M 140.5,622.5 C 113.782,621.309 89.115,613.976 66.5,600.5C 67.0946,596.976 68.9279,594.31 72,592.5C 80.5839,596.139 89.0839,599.973 97.5,604C 106.537,606.132 115.204,609.132 123.5,613C 136.951,616.457 150.618,619.123 164.5,621C 164.833,621.333 165.167,621.667 165.5,622C 157.173,622.5 148.84,622.666 140.5,622.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5c3825",d:"M 68.5,612.5 C 79.6888,615.123 91.0222,616.956 102.5,618C 114.777,621.787 127.444,623.62 140.5,623.5C 157.513,623.833 174.513,623.499 191.5,622.5C 202.1,620.747 212.767,619.747 223.5,619.5C 231.347,619.52 239.18,619.187 247,618.5C 252.587,619.255 258.087,619.755 263.5,620C 266.93,624.632 271.097,628.465 276,631.5C 276.499,637.491 276.666,643.491 276.5,649.5C 277.002,653.764 278.002,657.93 279.5,662C 278.472,665.221 277.306,668.388 276,671.5C 275.667,671.167 275.333,670.833 275,670.5C 274.121,682.566 273.621,694.566 273.5,706.5C 275.012,711.882 276.846,717.215 279,722.5C 280.667,723.5 282.333,724.5 284,725.5C 284.483,726.448 284.649,727.448 284.5,728.5C 285.93,728.421 287.264,728.754 288.5,729.5C 290.488,728.711 290.821,727.545 289.5,726C 297.126,725.737 298.126,727.904 292.5,732.5C 291.614,733.325 291.281,734.325 291.5,735.5C 293.76,736.139 295.76,737.306 297.5,739C 300.233,739.758 302.733,739.258 305,737.5C 308.539,738.173 312.039,739.006 315.5,740C 315.957,740.414 316.291,740.914 316.5,741.5C 315.372,742.262 314.205,742.929 313,743.5C 310.165,742.58 307.332,741.58 304.5,740.5C 303.571,741.689 303.238,743.022 303.5,744.5C 308.456,744.436 312.623,746.102 316,749.5C 317.011,748.663 318.178,748.33 319.5,748.5C 319.5,749.5 319.5,750.5 319.5,751.5C 298.322,745.644 282.488,732.977 272,713.5C 268.908,706.207 267.408,698.54 267.5,690.5C 269.139,675.217 271.473,660.05 274.5,645C 273.207,637.084 269.54,630.417 263.5,625C 259.343,623.335 255.01,622.502 250.5,622.5C 226.107,624.425 201.774,626.758 177.5,629.5C 153.528,630.724 129.861,628.724 106.5,623.5C 95.9775,621.786 85.6442,619.286 75.5,616C 73.1417,614.724 70.8084,613.558 68.5,612.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e3d8d4",d:"M 106.5,623.5 C 129.861,628.724 153.528,630.724 177.5,629.5C 162.473,630.375 147.64,631.042 133,631.5C 130.343,630.923 127.843,629.923 125.5,628.5C 124.158,629.902 123.324,629.569 123,627.5C 120.333,628.167 117.667,628.833 115,629.5C 112.347,627.12 109.514,625.12 106.5,623.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#38a447",d:"M 76.5,628.5 C 80.3317,628.895 82.665,630.895 83.5,634.5C 82.0929,641.213 80.5929,647.88 79,654.5C 76.0916,658.461 75.2583,662.795 76.5,667.5C 79.6599,665.172 82.3266,662.339 84.5,659C 88.0185,655.982 91.6852,653.149 95.5,650.5C 94.9305,653.335 93.2639,655.001 90.5,655.5C 88.4675,662.365 83.9675,666.699 77,668.5C 75.8926,668.415 74.8926,668.081 74,667.5C 74.1596,670.047 75.3263,672.214 77.5,674C 80.9499,674.175 84.2832,674.342 87.5,674.5C 86.91,675.799 85.91,676.632 84.5,677C 85.1667,677.667 85.8333,678.333 86.5,679C 84.8333,679.667 83.1667,679.667 81.5,679C 81.9574,678.586 82.2907,678.086 82.5,677.5C 81.1349,676.544 79.6349,675.878 78,675.5C 76.2626,676.62 74.4292,677.62 72.5,678.5C 71.6143,677.675 71.281,676.675 71.5,675.5C 72.5,675.5 73.5,675.5 74.5,675.5C 74.5,674.5 74.5,673.5 74.5,672.5C 72.5,672.167 70.5,671.833 68.5,671.5C 70.2649,670.21 71.7649,668.21 73,665.5C 73.3148,662.628 73.8148,659.795 74.5,657C 73.2127,654.336 73.546,651.836 75.5,649.5C 75.2907,648.914 74.9574,648.414 74.5,648C 76.0441,647.71 77.3774,647.044 78.5,646C 78.1667,645.667 77.8333,645.333 77.5,645C 81.0954,642.12 81.9287,638.62 80,634.5C 76.7954,636.181 73.2954,637.181 69.5,637.5C 65.4322,645.868 62.4322,654.701 60.5,664C 58.0442,667.156 56.0442,670.656 54.5,674.5C 52.783,677.281 50.6163,679.614 48,681.5C 47.6667,679.5 47.3333,677.5 47,675.5C 43.8314,675.913 41.3314,677.413 39.5,680C 40.1161,682.359 41.6161,683.859 44,684.5C 44.4828,685.448 44.6495,686.448 44.5,687.5C 41.1332,686.658 38.7998,684.658 37.5,681.5C 39.7664,678.215 42.0997,674.881 44.5,671.5C 46.2391,665.559 48.9057,660.226 52.5,655.5C 53.5862,655.38 54.2528,654.713 54.5,653.5C 54.5309,648.093 57.0309,644.427 62,642.5C 62.1273,640.366 61.9607,638.199 61.5,636C 62.4176,633.239 63.0843,630.406 63.5,627.5C 67.8244,627.927 72.1578,628.261 76.5,628.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#90432c",d:"M 961.5,671.5 C 965.85,667.238 965.017,664.238 959,662.5C 954.394,663.761 950.227,665.928 946.5,669C 932.378,671.89 918.378,674.89 904.5,678C 905.056,678.383 905.389,678.883 905.5,679.5C 900.821,679.334 896.155,679.501 891.5,680C 887.471,681.276 883.471,682.442 879.5,683.5C 879.5,684.833 879.5,686.167 879.5,687.5C 878.022,687.238 876.689,687.571 875.5,688.5C 868.276,699.1 860.442,709.1 852,718.5C 850.644,719.38 849.144,719.714 847.5,719.5C 847.762,720.978 847.429,722.311 846.5,723.5C 843.268,724.73 840.601,726.73 838.5,729.5C 836.49,731.171 834.157,731.838 831.5,731.5C 831.5,732.833 831.5,734.167 831.5,735.5C 828.813,735.336 826.146,735.503 823.5,736C 802.726,746.874 780.559,752.04 757,751.5C 743.093,751.21 729.26,750.21 715.5,748.5C 700.658,749.855 685.992,752.188 671.5,755.5C 671.5,756.833 671.5,758.167 671.5,759.5C 669.396,759.201 667.396,759.534 665.5,760.5C 659.849,763.831 654.182,767.165 648.5,770.5C 645.034,773.926 641.367,777.093 637.5,780C 636.552,780.483 635.552,780.649 634.5,780.5C 634.5,781.5 634.5,782.5 634.5,783.5C 632.076,783.192 629.743,783.526 627.5,784.5C 621.617,790.398 614.951,795.065 607.5,798.5C 605.961,791.948 605.294,785.281 605.5,778.5C 604.209,778.263 603.209,778.596 602.5,779.5C 587.183,785.325 572.183,791.825 557.5,799C 543.565,803.212 529.565,807.212 515.5,811C 522.48,812.833 529.48,814.333 536.5,815.5C 536.611,816.117 536.944,816.617 537.5,817C 544.799,818.488 552.132,819.655 559.5,820.5C 543.582,824.311 527.582,824.311 511.5,820.5C 509.664,818.991 507.664,817.491 505.5,816C 503.5,815.667 501.5,815.333 499.5,815C 493.869,812.182 488.535,808.849 483.5,805C 481.122,804.489 478.788,803.822 476.5,803C 468.334,798.414 460.667,793.081 453.5,787C 445.753,783.704 438.42,779.871 431.5,775.5C 431.5,774.5 431.5,773.5 431.5,772.5C 428.299,770.823 424.965,769.323 421.5,768C 419.527,767.505 417.527,767.338 415.5,767.5C 415.439,765.408 414.439,763.908 412.5,763C 408.167,760.5 403.833,758 399.5,755.5C 392.525,752.92 385.525,750.42 378.5,748C 363.213,746.002 347.88,744.336 332.5,743C 326.881,741.012 321.214,739.179 315.5,737.5C 311.116,733.993 306.116,731.493 300.5,730C 299.87,728.108 298.87,726.441 297.5,725C 294.539,722.356 291.206,720.522 287.5,719.5C 287.908,716.401 286.741,714.067 284,712.5C 279.653,697.142 278.319,681.475 280,665.5C 282.38,657.702 283.88,649.702 284.5,641.5C 290.473,645.124 296.473,648.791 302.5,652.5C 303.386,653.325 303.719,654.325 303.5,655.5C 305.308,655.491 306.975,655.991 308.5,657C 313.704,661.399 319.37,665.066 325.5,668C 328.688,669.63 332.021,670.796 335.5,671.5C 335.281,672.675 335.614,673.675 336.5,674.5C 342.283,675.889 347.283,678.556 351.5,682.5C 355.956,686.365 361.289,688.032 367.5,687.5C 367.5,689.5 367.5,691.5 367.5,693.5C 374.822,694.828 381.488,697.662 387.5,702C 391.418,703.156 395.418,703.656 399.5,703.5C 399.626,706.595 401.293,708.428 404.5,709C 420.114,715.926 436.114,721.926 452.5,727C 457.773,728.457 463.106,729.124 468.5,729C 470.991,728.374 470.991,727.541 468.5,726.5C 468.919,725.328 469.585,724.328 470.5,723.5C 473.156,725.166 475.823,726.832 478.5,728.5C 479.429,729.689 479.762,731.022 479.5,732.5C 483.817,732.535 487.817,733.535 491.5,735.5C 494.021,734.911 496.521,734.245 499,733.5C 503.02,734.956 507.187,735.622 511.5,735.5C 513.857,735.337 516.19,735.503 518.5,736C 520.733,738.907 523.733,740.074 527.5,739.5C 527.5,740.833 527.5,742.167 527.5,743.5C 536.806,743.119 545.473,740.619 553.5,736C 563.423,734.144 573.423,732.477 583.5,731C 596.539,726.771 609.873,723.938 623.5,722.5C 623.5,721.5 623.5,720.5 623.5,719.5C 630.714,718.935 637.88,717.935 645,716.5C 653.633,713.143 662.466,711.143 671.5,710.5C 671.5,709.167 671.5,707.833 671.5,706.5C 674.425,706.54 677.091,705.707 679.5,704C 684.5,703.667 689.5,703.333 694.5,703C 696.894,700.476 699.894,699.309 703.5,699.5C 703.5,698.5 703.5,697.5 703.5,696.5C 708.9,695.816 714.233,694.816 719.5,693.5C 719.5,692.5 719.5,691.5 719.5,690.5C 723.182,690.665 726.848,690.499 730.5,690C 739.751,687.616 749.084,685.616 758.5,684C 758.998,682.842 759.831,682.009 761,681.5C 768.573,679.224 776.073,676.891 783.5,674.5C 783.5,673.5 783.5,672.5 783.5,671.5C 788.833,671.5 794.167,671.5 799.5,671.5C 799.5,670.5 799.5,669.5 799.5,668.5C 801.527,668.662 803.527,668.495 805.5,668C 812.025,664.889 818.692,662.056 825.5,659.5C 827.396,658.534 829.396,658.201 831.5,658.5C 831.5,657.5 831.5,656.5 831.5,655.5C 835.182,655.665 838.848,655.499 842.5,655C 845.844,652.884 849.511,651.551 853.5,651C 855.116,650.385 856.449,649.385 857.5,648C 865.23,647.331 872.564,645.498 879.5,642.5C 879.5,641.5 879.5,640.5 879.5,639.5C 882.518,639.665 885.518,639.498 888.5,639C 890.48,637.175 892.813,636.341 895.5,636.5C 895.5,634.833 895.5,633.167 895.5,631.5C 900.88,631.676 906.213,631.342 911.5,630.5C 911.5,629.5 911.5,628.5 911.5,627.5C 915.582,627.656 919.582,627.156 923.5,626C 930.229,622.847 936.896,620.014 943.5,617.5C 954.201,615.688 964.868,613.354 975.5,610.5C 975.5,612.833 975.5,615.167 975.5,617.5C 969.714,617.931 964.047,618.931 958.5,620.5C 955.493,618.937 953.159,619.77 951.5,623C 950.552,623.483 949.552,623.649 948.5,623.5C 948.423,626.012 949.423,628.012 951.5,629.5C 955.391,630.551 959.058,632.051 962.5,634C 964.285,637.452 966.785,640.286 970,642.5C 971.276,645.28 972.776,647.947 974.5,650.5C 975.452,652.045 975.785,653.712 975.5,655.5C 974.5,655.5 973.5,655.5 972.5,655.5C 972.782,663.617 969.115,668.95 961.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#49a059",d:"M 76.5,628.5 C 72.1578,628.261 67.8244,627.927 63.5,627.5C 63.0843,630.406 62.4176,633.239 61.5,636C 61.9607,638.199 62.1273,640.366 62,642.5C 57.0309,644.427 54.5309,648.093 54.5,653.5C 54.2528,654.713 53.5862,655.38 52.5,655.5C 55.696,645.126 58.8627,634.792 62,624.5C 62.5613,623.978 63.228,623.645 64,623.5C 67.8102,624.744 71.6436,625.911 75.5,627C 76.056,627.383 76.3893,627.883 76.5,628.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#339945",d:"M 159.5,671.5 C 159.799,669.396 159.466,667.396 158.5,665.5C 154.889,664.371 151.389,663.038 148,661.5C 147.308,662.025 146.808,662.692 146.5,663.5C 147.309,665.071 147.643,666.738 147.5,668.5C 146.167,668.5 144.833,668.5 143.5,668.5C 140.729,663.797 138.062,658.963 135.5,654C 136.294,651.976 135.961,649.976 134.5,648C 126.328,645.718 117.995,645.051 109.5,646C 108.396,647.131 108.729,647.965 110.5,648.5C 111.429,649.689 111.762,651.022 111.5,652.5C 107.019,653.037 105.686,651.37 107.5,647.5C 104.211,648.374 100.877,649.041 97.5,649.5C 106.331,642.816 116.331,640.649 127.5,643C 133.127,645.117 138.127,648.283 142.5,652.5C 143.386,653.325 143.719,654.325 143.5,655.5C 146.787,656.264 149.454,658.097 151.5,661C 153.788,661.822 156.122,662.489 158.5,663C 161.885,665.743 162.218,668.576 159.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#745342",d:"M 977.5,639.5 C 979.955,642.708 982.455,646.041 985,649.5C 985.667,653.833 985.667,658.167 985,662.5C 984.246,665.684 982.746,668.351 980.5,670.5C 980.903,666.358 981.903,662.358 983.5,658.5C 981.9,652.033 979.9,645.7 977.5,639.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#6e3722",d:"M 988.5,544.5 C 989.609,544.557 990.609,544.89 991.5,545.5C 1008.77,556.802 1014.93,572.468 1010,592.5C 1007.77,596.458 1004.93,599.958 1001.5,603C 989.584,612.376 976.417,619.543 962,624.5C 961.837,626.387 962.671,627.887 964.5,629C 969.33,632.008 973.664,635.508 977.5,639.5C 979.9,645.7 981.9,652.033 983.5,658.5C 981.903,662.358 980.903,666.358 980.5,670.5C 976.773,676.069 971.773,679.902 965.5,682C 964.5,683 963.5,684 962.5,685C 957.762,685.519 953.095,686.352 948.5,687.5C 934.27,689.268 919.937,689.768 905.5,689C 904.027,688.29 903.36,687.124 903.5,685.5C 907.852,687.486 910.519,686.152 911.5,681.5C 899.993,681.264 889.326,681.931 879.5,683.5C 883.471,682.442 887.471,681.276 891.5,680C 896.155,679.501 900.821,679.334 905.5,679.5C 924.968,682.311 943.635,679.645 961.5,671.5C 969.115,668.95 972.782,663.617 972.5,655.5C 973.5,655.5 974.5,655.5 975.5,655.5C 975.785,653.712 975.452,652.045 974.5,650.5C 972.776,647.947 971.276,645.28 970,642.5C 966.785,640.286 964.285,637.452 962.5,634C 959.058,632.051 955.391,630.551 951.5,629.5C 949.423,628.012 948.423,626.012 948.5,623.5C 949.552,623.649 950.552,623.483 951.5,623C 953.159,619.77 955.493,618.937 958.5,620.5C 964.047,618.931 969.714,617.931 975.5,617.5C 975.5,615.167 975.5,612.833 975.5,610.5C 964.868,613.354 954.201,615.688 943.5,617.5C 943.62,616.414 944.287,615.747 945.5,615.5C 955.659,612.995 965.659,610.328 975.5,607.5C 975.5,606.5 975.5,605.5 975.5,604.5C 978.049,604.613 980.382,603.946 982.5,602.5C 982.968,597.204 984.301,592.204 986.5,587.5C 987.084,577.801 987.751,568.134 988.5,558.5C 986.317,556.293 984.984,553.626 984.5,550.5C 983.817,550.863 983.15,551.196 982.5,551.5C 980.535,551.052 980.202,550.052 981.5,548.5C 983.1,545.904 985.433,544.57 988.5,544.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8d4329",d:"M 989.5,559.5 C 991.796,562.986 994.796,565.986 998.5,568.5C 1002.83,576.552 1002.49,584.218 997.5,591.5C 996.5,591.5 995.5,591.5 994.5,591.5C 994.5,592.833 994.5,594.167 994.5,595.5C 993.5,595.5 992.5,595.5 991.5,595.5C 991.254,598.47 989.588,599.803 986.5,599.5C 988.529,586.36 989.529,573.027 989.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#df9686",d:"M 961.5,671.5 C 943.635,679.645 924.968,682.311 905.5,679.5C 905.389,678.883 905.056,678.383 904.5,678C 918.378,674.89 932.378,671.89 946.5,669C 950.227,665.928 954.394,663.761 959,662.5C 965.017,664.238 965.85,667.238 961.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#3bab47",d:"M 95.5,650.5 C 95.8417,649.662 96.5084,649.328 97.5,649.5C 100.877,649.041 104.211,648.374 107.5,647.5C 105.686,651.37 107.019,653.037 111.5,652.5C 111.762,651.022 111.429,649.689 110.5,648.5C 108.729,647.965 108.396,647.131 109.5,646C 117.995,645.051 126.328,645.718 134.5,648C 135.961,649.976 136.294,651.976 135.5,654C 138.062,658.963 140.729,663.797 143.5,668.5C 144.833,668.5 146.167,668.5 147.5,668.5C 147.643,666.738 147.309,665.071 146.5,663.5C 146.808,662.692 147.308,662.025 148,661.5C 151.389,663.038 154.889,664.371 158.5,665.5C 159.466,667.396 159.799,669.396 159.5,671.5C 159.768,673.099 159.434,674.432 158.5,675.5C 157.022,675.238 155.689,675.571 154.5,676.5C 154.032,678.134 153.032,679.3 151.5,680C 149.567,680.251 147.734,680.751 146,681.5C 144.242,690.069 143.076,698.736 142.5,707.5C 139.732,709.428 138.898,712.095 140,715.5C 141.011,716.337 142.178,716.67 143.5,716.5C 143.5,718.833 143.5,721.167 143.5,723.5C 136.986,723.866 130.986,722.533 125.5,719.5C 125.719,718.325 125.386,717.325 124.5,716.5C 121.428,715.13 118.261,714.13 115,713.5C 115.619,710.292 116.119,706.958 116.5,703.5C 118.96,703.301 121.293,702.635 123.5,701.5C 122.865,696.913 121.865,692.413 120.5,688C 121.597,685.567 123.097,683.4 125,681.5C 127.633,677.421 126.967,674.088 123,671.5C 117.134,675.382 111.3,679.215 105.5,683C 105.966,684.299 105.966,685.799 105.5,687.5C 102.167,690.5 98.8333,693.5 95.5,696.5C 77.2053,700.063 60.2053,697.063 44.5,687.5C 44.6495,686.448 44.4828,685.448 44,684.5C 41.6161,683.859 40.1161,682.359 39.5,680C 41.3314,677.413 43.8314,675.913 47,675.5C 47.3333,677.5 47.6667,679.5 48,681.5C 50.6163,679.614 52.783,677.281 54.5,674.5C 56.0442,670.656 58.0442,667.156 60.5,664C 62.4322,654.701 65.4322,645.868 69.5,637.5C 73.2954,637.181 76.7954,636.181 80,634.5C 81.9287,638.62 81.0954,642.12 77.5,645C 77.8333,645.333 78.1667,645.667 78.5,646C 77.3774,647.044 76.0441,647.71 74.5,648C 74.9574,648.414 75.2907,648.914 75.5,649.5C 73.546,651.836 73.2127,654.336 74.5,657C 73.8148,659.795 73.3148,662.628 73,665.5C 71.7649,668.21 70.2649,670.21 68.5,671.5C 70.5,671.833 72.5,672.167 74.5,672.5C 74.5,673.5 74.5,674.5 74.5,675.5C 73.5,675.5 72.5,675.5 71.5,675.5C 71.281,676.675 71.6143,677.675 72.5,678.5C 74.4292,677.62 76.2626,676.62 78,675.5C 79.6349,675.878 81.1349,676.544 82.5,677.5C 82.2907,678.086 81.9574,678.586 81.5,679C 83.1667,679.667 84.8333,679.667 86.5,679C 85.8333,678.333 85.1667,677.667 84.5,677C 85.91,676.632 86.91,675.799 87.5,674.5C 84.2832,674.342 80.9499,674.175 77.5,674C 75.3263,672.214 74.1596,670.047 74,667.5C 74.8926,668.081 75.8926,668.415 77,668.5C 83.9675,666.699 88.4675,662.365 90.5,655.5C 93.2639,655.001 94.9305,653.335 95.5,650.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ac9c8a",d:"M 538.5,286.5 C 547.732,291.533 557.232,296.2 567,300.5C 567.399,300.272 567.565,299.938 567.5,299.5C 568.596,301.103 569.93,302.603 571.5,304C 588.929,307.286 606.263,310.952 623.5,315C 629.135,317.281 634.801,319.114 640.5,320.5C 639.735,320.923 638.902,321.257 638,321.5C 633.335,319.891 628.501,319.058 623.5,319C 611.923,317.067 600.589,314.4 589.5,311C 559.363,308.172 529.363,309.172 499.5,314C 485.449,316.837 471.783,320.837 458.5,326C 446.06,332.769 433.394,339.103 420.5,345C 407.326,354.728 393.66,363.728 379.5,372C 372.909,378.299 365.909,384.133 358.5,389.5C 354.661,394.88 350.161,399.547 345,403.5C 334.908,416.43 325.908,430.096 318,444.5C 303.137,476.724 301.137,509.724 312,543.5C 315.202,549.239 317.868,555.239 320,561.5C 327.131,569.129 333.297,577.463 338.5,586.5C 352.142,601.469 367.475,614.302 384.5,625C 401.673,634.334 419.34,642.668 437.5,650C 454.77,654.261 471.77,659.261 488.5,665C 507.808,667.897 527.141,670.063 546.5,671.5C 544.167,671.5 541.833,671.5 539.5,671.5C 539.5,675.167 539.5,678.833 539.5,682.5C 548.339,683.991 551.672,680.325 549.5,671.5C 562.833,671.5 576.167,671.5 589.5,671.5C 586.713,672.477 583.713,672.81 580.5,672.5C 580.318,674.591 580.652,676.591 581.5,678.5C 586.792,679.495 592.125,679.828 597.5,679.5C 597.5,676.833 597.5,674.167 597.5,671.5C 605.671,670.944 613.838,670.277 622,669.5C 629.753,667.624 637.586,666.124 645.5,665C 648.798,664.513 651.798,663.347 654.5,661.5C 656.106,662.077 657.772,662.41 659.5,662.5C 667.648,659.937 675.981,658.27 684.5,657.5C 692.764,655.147 700.931,652.48 709,649.5C 712.481,648.877 715.981,648.377 719.5,648C 735.068,641.477 751.068,636.144 767.5,632C 777.49,627.455 787.49,623.121 797.5,619C 810.435,614.36 823.435,610.027 836.5,606C 844.945,600.634 853.945,596.634 863.5,594C 873.397,588.811 883.397,583.811 893.5,579C 898.711,577.728 903.378,575.394 907.5,572C 916.552,567.142 925.886,562.808 935.5,559C 937.539,556.626 939.872,554.626 942.5,553C 953.535,548.208 963.702,542.042 973,534.5C 977.695,527.241 981.528,519.574 984.5,511.5C 986.791,493.587 984.625,476.253 978,459.5C 975.095,455.12 972.762,450.453 971,445.5C 969.128,442.418 966.795,439.751 964,437.5C 962.872,435.655 962.372,433.655 962.5,431.5C 961.448,431.649 960.448,431.483 959.5,431C 956.667,427.5 953.5,424.333 950,421.5C 949.517,420.552 949.351,419.552 949.5,418.5C 957.243,424.131 964.743,430.131 972,436.5C 978.645,446.138 984.479,456.138 989.5,466.5C 996.238,482.106 998.072,498.439 995,515.5C 992.617,525.138 990.45,534.805 988.5,544.5C 985.433,544.57 983.1,545.904 981.5,548.5C 980.202,550.052 980.535,551.052 982.5,551.5C 983.914,553.598 983.248,554.598 980.5,554.5C 980.657,555.873 980.49,557.207 980,558.5C 976.734,560.852 973.567,563.352 970.5,566C 953.581,574.565 936.581,582.899 919.5,591C 877.168,607.894 834.501,624.227 791.5,640C 785.206,640.986 779.372,643.153 774,646.5C 739.229,657.147 704.396,667.48 669.5,677.5C 654.966,680.969 640.299,683.469 625.5,685C 611.523,687.607 597.523,690.107 583.5,692.5C 570.179,693.333 556.846,693.666 543.5,693.5C 529.597,690.512 515.597,688.012 501.5,686C 490.502,683.405 479.502,680.739 468.5,678C 465.193,677.347 462.527,675.681 460.5,673C 429.706,664.591 401.04,651.925 374.5,635C 370.179,629.574 364.846,625.574 358.5,623C 349.876,614.864 341.21,607.031 332.5,599.5C 332.719,598.325 332.386,597.325 331.5,596.5C 329.548,594.259 327.382,592.259 325,590.5C 321.651,585.14 317.818,580.14 313.5,575.5C 301.239,555.329 293.239,533.663 289.5,510.5C 288.566,509.432 288.232,508.099 288.5,506.5C 288.5,500.833 288.5,495.167 288.5,489.5C 290.889,482.421 292.556,475.088 293.5,467.5C 296.572,454.72 301.238,442.72 307.5,431.5C 309.158,428.912 310.825,426.245 312.5,423.5C 314.278,421.171 315.278,418.504 315.5,415.5C 316.833,415.5 318.167,415.5 319.5,415.5C 319.5,414.5 319.5,413.5 319.5,412.5C 322.86,413.21 324.693,411.876 325,408.5C 328.097,407.711 328.264,406.544 325.5,405C 327.175,404.015 328.842,403.181 330.5,402.5C 330.5,402.167 330.5,401.833 330.5,401.5C 332.011,400.498 333.678,399.831 335.5,399.5C 335.5,398.167 335.5,396.833 335.5,395.5C 336.552,395.649 337.552,395.483 338.5,395C 341.71,390.289 345.71,386.456 350.5,383.5C 350.833,383.5 351.167,383.5 351.5,383.5C 352.5,383.5 353.5,383.5 354.5,383.5C 354.575,380.794 354.908,378.127 355.5,375.5C 356.978,375.762 358.311,375.429 359.5,374.5C 368.955,367.876 377.622,360.376 385.5,352C 387.723,351.434 389.723,350.6 391.5,349.5C 395.249,346.112 399.249,342.945 403.5,340C 407.267,337.606 411.267,336.106 415.5,335.5C 415.281,334.325 415.614,333.325 416.5,332.5C 422.964,329.706 428.964,326.373 434.5,322.5C 437.619,321.683 440.619,320.683 443.5,319.5C 455.182,313.832 467.182,309.165 479.5,305.5C 482.337,303.598 485.671,302.931 489.5,303.5C 497.749,302.433 505.749,300.766 513.5,298.5C 519.176,298.666 524.843,298.499 530.5,298C 532.719,293.397 531.385,290.563 526.5,289.5C 525.702,289.043 525.369,288.376 525.5,287.5C 528.354,287.924 531.021,288.924 533.5,290.5C 535.815,289.84 537.481,288.507 538.5,286.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#887765",d:"M 546.5,671.5 C 547.5,671.5 548.5,671.5 549.5,671.5C 551.672,680.325 548.339,683.991 539.5,682.5C 539.5,678.833 539.5,675.167 539.5,671.5C 541.833,671.5 544.167,671.5 546.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#bab9ae",d:"M 815.5,597.5 C 815.5,598.833 815.5,600.167 815.5,601.5C 811.418,601.344 807.418,601.844 803.5,603C 792.701,606.981 781.701,610.648 770.5,614C 767.833,615.667 765.167,617.333 762.5,619C 749.244,621.946 736.244,625.613 723.5,630C 721.482,631.398 719.316,632.565 717,633.5C 693.212,638.888 668.712,644.388 643.5,650C 599.546,656.788 555.546,658.288 511.5,654.5C 522.075,653.889 532.742,653.223 543.5,652.5C 543.5,651.5 543.5,650.5 543.5,649.5C 548.833,649.5 554.167,649.5 559.5,649.5C 559.5,648.5 559.5,647.5 559.5,646.5C 549.828,646.334 540.161,646.5 530.5,647C 532.608,647.36 534.608,648.027 536.5,649C 529.859,650.119 523.192,650.453 516.5,650C 519.834,647.925 523.501,647.091 527.5,647.5C 527.5,646.5 527.5,645.5 527.5,644.5C 532.833,644.5 538.167,644.5 543.5,644.5C 603.205,645.037 661.872,637.704 719.5,622.5C 741.068,615.755 762.401,608.422 783.5,600.5C 788.568,600.867 792.902,599.367 796.5,596C 803.028,595.239 809.361,595.739 815.5,597.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#c5aaa4",d:"M 825.5,584.5 C 824.192,585.232 822.858,586.066 821.5,587C 825.081,587.675 825.081,588.841 821.5,590.5C 817.065,589.856 812.731,590.523 808.5,592.5C 810.743,593.474 813.076,593.808 815.5,593.5C 815.5,594.833 815.5,596.167 815.5,597.5C 809.361,595.739 803.028,595.239 796.5,596C 792.902,599.367 788.568,600.867 783.5,600.5C 786.197,598.559 789.197,597.059 792.5,596C 803.527,592.149 814.527,588.315 825.5,584.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0475c",d:"M 475.5,567.5 C 476.376,567.369 477.043,567.702 477.5,568.5C 476.626,570.747 476.292,573.08 476.5,575.5C 475.5,575.5 474.5,575.5 473.5,575.5C 471.101,586.662 470.101,597.995 470.5,609.5C 469.343,601.01 469.176,592.343 470,583.5C 471.027,577.804 472.86,572.47 475.5,567.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e08c99",d:"M 767.5,571.5 C 760.798,571.336 754.131,571.669 747.5,572.5C 751.034,570.952 754.867,570.286 759,570.5C 762.021,570.502 764.854,570.836 767.5,571.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d65f71",d:"M 549.5,559.5 C 548.814,563.884 547.814,568.217 546.5,572.5C 544.667,572.833 542.833,573.167 541,573.5C 535.493,572.749 529.993,571.915 524.5,571C 521.714,569.499 519.047,567.999 516.5,566.5C 525.974,569.049 535.64,571.049 545.5,572.5C 545.677,567.657 547.01,563.323 549.5,559.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0a29f",d:"M 475.5,567.5 C 472.86,572.47 471.027,577.804 470,583.5C 469.176,592.343 469.343,601.01 470.5,609.5C 470.5,610.167 470.5,610.833 470.5,611.5C 469.883,611.389 469.383,611.056 469,610.5C 467.948,598.695 468.448,587.028 470.5,575.5C 469.448,575.649 468.448,575.483 467.5,575C 469.611,573.265 471.611,571.432 473.5,569.5C 470.914,568.52 468.247,568.187 465.5,568.5C 465.762,569.978 465.429,571.311 464.5,572.5C 463.051,571.383 461.384,570.716 459.5,570.5C 455.529,571.38 451.529,572.047 447.5,572.5C 447.791,571.351 448.624,570.684 450,570.5C 458.37,568.355 466.87,567.355 475.5,567.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cf747f",d:"M 401.5,547.5 C 402.6,549.277 403.434,551.277 404,553.5C 404.822,561.012 404.655,568.345 403.5,575.5C 403.94,566.051 403.273,556.718 401.5,547.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7425b",d:"M 500.5,527.5 C 508.663,529.445 516.663,531.778 524.5,534.5C 521.314,542.929 517.981,551.263 514.5,559.5C 514.67,557.152 515.003,554.818 515.5,552.5C 514.077,549.725 513.411,546.725 513.5,543.5C 514.5,543.5 515.5,543.5 516.5,543.5C 516.281,544.675 516.614,545.675 517.5,546.5C 518.969,542.957 519.969,539.291 520.5,535.5C 514.535,533.538 508.535,531.538 502.5,529.5C 501.287,529.253 500.62,528.586 500.5,527.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d3556a",d:"M 715.5,536.5 C 727.497,539.506 739.497,541.84 751.5,543.5C 739.342,543.304 727.342,541.971 715.5,539.5C 715.5,538.5 715.5,537.5 715.5,536.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d7475e",d:"M 777.5,497.5 C 789.573,498.776 794.073,505.443 791,517.5C 787.699,523.733 782.533,526.733 775.5,526.5C 776.689,516.88 777.356,507.213 777.5,497.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#db4359",d:"M 344.5,506.5 C 343.683,511.571 341.349,515.904 337.5,519.5C 350.821,520.333 364.154,520.833 377.5,521C 380.839,522.296 384.173,523.463 387.5,524.5C 387.5,525.5 387.5,526.5 387.5,527.5C 380.769,525.972 374.103,524.139 367.5,522C 356.839,521.5 346.172,521.333 335.5,521.5C 336.453,515.353 339.453,510.353 344.5,506.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ee2447",d:"M 778.5,499.5 C 782.95,499.142 786.45,500.808 789,504.5C 789.606,507.076 789.106,509.41 787.5,511.5C 788.528,513.56 788.528,515.56 787.5,517.5C 786.808,516.975 786.308,516.308 786,515.5C 785.505,517.473 785.338,519.473 785.5,521.5C 782.412,521.639 779.745,522.639 777.5,524.5C 778.185,516.184 778.518,507.851 778.5,499.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d4929c",d:"M 520.5,479.5 C 521.898,481.596 522.898,483.929 523.5,486.5C 521.349,491.592 520.349,496.925 520.5,502.5C 519.572,494.999 519.572,487.332 520.5,479.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ed3352",d:"M 571.5,477.5 C 572.496,477.414 573.329,477.748 574,478.5C 576.381,482.968 578.381,487.635 580,492.5C 581.964,503.746 577.797,511.579 567.5,516C 563.514,516.499 559.514,516.666 555.5,516.5C 558.929,502.652 564.262,489.652 571.5,477.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#cda6a2",d:"M 938.5,476.5 C 939.995,476.415 940.995,477.081 941.5,478.5C 944.086,479.48 946.753,479.813 949.5,479.5C 949.649,480.552 949.483,481.552 949,482.5C 945.296,483.948 944.629,486.281 947,489.5C 947.667,499.833 947.667,510.167 947,520.5C 946.727,522.329 945.893,523.829 944.5,525C 941.94,525.384 939.606,526.217 937.5,527.5C 939.911,524.252 942.744,521.585 946,519.5C 948.621,504.031 946.121,489.697 938.5,476.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d54961",d:"M 494.5,465.5 C 501.278,465.514 507.945,466.347 514.5,468C 515.748,469.959 517.415,471.459 519.5,472.5C 520.374,474.747 520.708,477.08 520.5,479.5C 519.031,477.164 517.698,474.664 516.5,472C 509.344,468.958 502.01,466.791 494.5,465.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ed7588",d:"M 789.5,449.5 C 788.552,458.718 786.885,467.718 784.5,476.5C 783.876,476.083 783.543,475.416 783.5,474.5C 785.192,465.96 787.192,457.627 789.5,449.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e2334e",d:"M 763.5,463.5 C 764.5,463.5 765.5,463.5 766.5,463.5C 767.496,459.446 767.162,455.446 765.5,451.5C 764.178,451.33 763.011,451.663 762,452.5C 761.501,456.152 761.335,459.818 761.5,463.5C 759.036,459.722 758.87,455.722 761,451.5C 765.104,446.76 770.271,444.427 776.5,444.5C 775.172,453.122 774.172,461.789 773.5,470.5C 769.06,469.724 765.727,467.39 763.5,463.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#eb2546",d:"M 763.5,463.5 C 762.833,463.5 762.167,463.5 761.5,463.5C 761.335,459.818 761.501,456.152 762,452.5C 763.011,451.663 764.178,451.33 765.5,451.5C 767.162,455.446 767.496,459.446 766.5,463.5C 765.5,463.5 764.5,463.5 763.5,463.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e24a64",d:"M 611.5,437.5 C 617.185,438.504 622.852,439.671 628.5,441C 632.333,444.167 636.167,447.333 640,450.5C 641.813,448.375 643.647,446.375 645.5,444.5C 645.467,450.819 642.467,453.319 636.5,452C 635.072,449.815 633.405,447.815 631.5,446C 624.76,444.545 618.093,442.878 611.5,441C 610.829,440.014 610.829,438.847 611.5,437.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d89c9a",d:"M 897.5,422.5 C 899.196,422.685 900.529,423.519 901.5,425C 906.279,426.728 911.279,427.728 916.5,428C 919.737,430.419 920.07,433.085 917.5,436C 914.518,436.498 911.518,436.665 908.5,436.5C 910.684,435.734 913.018,435.067 915.5,434.5C 916.833,433.167 916.833,431.833 915.5,430.5C 910.482,428.832 905.482,427.332 900.5,426C 899.29,424.961 898.29,423.794 897.5,422.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#8c7c6a",d:"M 589.5,671.5 C 592.167,671.5 594.833,671.5 597.5,671.5C 597.5,674.167 597.5,676.833 597.5,679.5C 592.125,679.828 586.792,679.495 581.5,678.5C 580.652,676.591 580.318,674.591 580.5,672.5C 583.713,672.81 586.713,672.477 589.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#e4f6e3",d:"M 119.5,691.5 C 118.38,687.983 118.38,684.316 119.5,680.5C 118.448,680.351 117.448,680.517 116.5,681C 115.636,682.697 114.303,683.863 112.5,684.5C 111.614,685.325 111.281,686.325 111.5,687.5C 110.5,687.5 109.5,687.5 108.5,687.5C 108.762,688.978 108.429,690.311 107.5,691.5C 103.879,694.133 99.8786,695.8 95.5,696.5C 98.8333,693.5 102.167,690.5 105.5,687.5C 109.589,684.917 113.256,681.75 116.5,678C 118.78,677.767 120.78,676.934 122.5,675.5C 123.11,678.714 122.277,681.714 120,684.5C 119.503,686.81 119.337,689.143 119.5,691.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#47a554",d:"M 158.5,675.5 C 154.926,678.784 151.593,682.284 148.5,686C 150.507,688.854 151.84,692.021 152.5,695.5C 152,697.5 151.5,699.5 151,701.5C 148.386,703.903 145.886,706.403 143.5,709C 142.552,709.483 141.552,709.649 140.5,709.5C 140.716,712.256 141.716,714.59 143.5,716.5C 142.178,716.67 141.011,716.337 140,715.5C 138.898,712.095 139.732,709.428 142.5,707.5C 143.076,698.736 144.242,690.069 146,681.5C 147.734,680.751 149.567,680.251 151.5,680C 153.032,679.3 154.032,678.134 154.5,676.5C 155.689,675.571 157.022,675.238 158.5,675.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#9b8474",d:"M 529.5,695.5 C 548.17,695.333 566.836,695.5 585.5,696C 576.848,697.166 568.181,698.499 559.5,700C 549.49,700.5 539.49,700.333 529.5,699.5C 529.5,698.167 529.5,696.833 529.5,695.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#d0897a",d:"M 305.5,694.5 C 307.564,694.687 309.564,695.187 311.5,696C 322.872,705.011 334.206,714.011 345.5,723C 353.6,726.771 361.934,729.771 370.5,732C 367.833,733 365.167,734 362.5,735C 354.167,735.667 345.833,735.667 337.5,735C 333.388,731.95 328.721,729.95 323.5,729C 317.59,723.761 312.423,717.928 308,711.5C 307.197,708.756 306.197,706.089 305,703.5C 304.264,700.408 304.431,697.408 305.5,694.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#5caa66",d:"M 125.5,719.5 C 121.675,718.926 118.009,717.759 114.5,716C 112.59,715.592 111.59,714.425 111.5,712.5C 112.184,709.275 113.351,706.275 115,703.5C 117.719,701.781 119.719,699.447 121,696.5C 121.599,694.465 121.099,692.799 119.5,691.5C 119.337,689.143 119.503,686.81 120,684.5C 122.277,681.714 123.11,678.714 122.5,675.5C 120.78,676.934 118.78,677.767 116.5,678C 113.256,681.75 109.589,684.917 105.5,687.5C 105.966,685.799 105.966,684.299 105.5,683C 111.3,679.215 117.134,675.382 123,671.5C 126.967,674.088 127.633,677.421 125,681.5C 123.097,683.4 121.597,685.567 120.5,688C 121.865,692.413 122.865,696.913 123.5,701.5C 121.293,702.635 118.96,703.301 116.5,703.5C 116.119,706.958 115.619,710.292 115,713.5C 118.261,714.13 121.428,715.13 124.5,716.5C 125.386,717.325 125.719,718.325 125.5,719.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#833d25",d:"M 370.5,671.5 C 372.904,676.997 377.238,679.33 383.5,678.5C 383.5,679.833 383.5,681.167 383.5,682.5C 385.927,682.523 388.26,683.023 390.5,684C 392.719,687.045 395.719,688.211 399.5,687.5C 399.5,688.5 399.5,689.5 399.5,690.5C 402.216,690.678 404.883,691.178 407.5,692C 409.164,695.136 411.831,696.303 415.5,695.5C 415.5,696.5 415.5,697.5 415.5,698.5C 418.839,698.78 421.506,700.28 423.5,703C 438.5,704.928 452.834,709.261 466.5,716C 467.5,717 468.5,718 469.5,719C 472.817,719.498 476.15,719.665 479.5,719.5C 479.5,720.5 479.5,721.5 479.5,722.5C 485.146,722.911 490.479,724.245 495.5,726.5C 495.5,728.167 495.5,729.833 495.5,731.5C 500.995,731.665 506.328,732.665 511.5,734.5C 511.5,734.833 511.5,735.167 511.5,735.5C 507.187,735.622 503.02,734.956 499,733.5C 496.521,734.245 494.021,734.911 491.5,735.5C 487.817,733.535 483.817,732.535 479.5,732.5C 479.762,731.022 479.429,729.689 478.5,728.5C 475.823,726.832 473.156,725.166 470.5,723.5C 469.585,724.328 468.919,725.328 468.5,726.5C 470.991,727.541 470.991,728.374 468.5,729C 463.106,729.124 457.773,728.457 452.5,727C 436.114,721.926 420.114,715.926 404.5,709C 401.293,708.428 399.626,706.595 399.5,703.5C 395.418,703.656 391.418,703.156 387.5,702C 381.488,697.662 374.822,694.828 367.5,693.5C 367.5,691.5 367.5,689.5 367.5,687.5C 361.289,688.032 355.956,686.365 351.5,682.5C 353.857,682.663 356.19,682.497 358.5,682C 360.394,679.108 363.061,677.441 366.5,677C 368.21,675.349 369.544,673.516 370.5,671.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#613521",d:"M 948.5,687.5 C 938.724,689.478 928.724,690.812 918.5,691.5C 906.841,690.564 895.175,690.398 883.5,691C 872.659,715.506 855.326,733.84 831.5,746C 814.152,753.172 796.152,758.172 777.5,761C 753.155,760.998 728.822,760.665 704.5,760C 686.225,763.646 669.225,770.312 653.5,780C 630.479,795.697 607.479,811.363 584.5,827C 580.725,828.606 577.058,830.44 573.5,832.5C 569.893,833.489 566.226,833.823 562.5,833.5C 565.83,829.848 570.164,828.181 575.5,828.5C 575.5,827.5 575.5,826.5 575.5,825.5C 577.857,825.663 580.19,825.497 582.5,825C 584.032,824.3 585.032,823.134 585.5,821.5C 583.589,819.298 581.255,817.631 578.5,816.5C 587.49,812.69 596.156,808.19 604.5,803C 605.305,801.887 605.972,800.721 606.5,799.5C 607.167,799.5 607.5,799.167 607.5,798.5C 614.951,795.065 621.617,790.398 627.5,784.5C 629.743,783.526 632.076,783.192 634.5,783.5C 634.5,782.5 634.5,781.5 634.5,780.5C 635.552,780.649 636.552,780.483 637.5,780C 641.367,777.093 645.034,773.926 648.5,770.5C 654.182,767.165 659.849,763.831 665.5,760.5C 667.396,759.534 669.396,759.201 671.5,759.5C 671.5,758.167 671.5,756.833 671.5,755.5C 685.992,752.188 700.658,749.855 715.5,748.5C 729.26,750.21 743.093,751.21 757,751.5C 780.559,752.04 802.726,746.874 823.5,736C 826.146,735.503 828.813,735.336 831.5,735.5C 831.5,734.167 831.5,732.833 831.5,731.5C 834.157,731.838 836.49,731.171 838.5,729.5C 840.601,726.73 843.268,724.73 846.5,723.5C 847.429,722.311 847.762,720.978 847.5,719.5C 849.144,719.714 850.644,719.38 852,718.5C 860.442,709.1 868.276,699.1 875.5,688.5C 876.689,687.571 878.022,687.238 879.5,687.5C 879.5,686.167 879.5,684.833 879.5,683.5C 889.326,681.931 899.993,681.264 911.5,681.5C 910.519,686.152 907.852,687.486 903.5,685.5C 903.36,687.124 904.027,688.29 905.5,689C 919.937,689.768 934.27,689.268 948.5,687.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#613320",d:"M 284.5,641.5 C 283.88,649.702 282.38,657.702 280,665.5C 278.319,681.475 279.653,697.142 284,712.5C 286.741,714.067 287.908,716.401 287.5,719.5C 291.206,720.522 294.539,722.356 297.5,725C 298.87,726.441 299.87,728.108 300.5,730C 306.116,731.493 311.116,733.993 315.5,737.5C 321.214,739.179 326.881,741.012 332.5,743C 347.88,744.336 363.213,746.002 378.5,748C 385.525,750.42 392.525,752.92 399.5,755.5C 403.833,758 408.167,760.5 412.5,763C 414.439,763.908 415.439,765.408 415.5,767.5C 417.527,767.338 419.527,767.505 421.5,768C 424.965,769.323 428.299,770.823 431.5,772.5C 431.5,773.5 431.5,774.5 431.5,775.5C 438.42,779.871 445.753,783.704 453.5,787C 460.667,793.081 468.334,798.414 476.5,803C 478.788,803.822 481.122,804.489 483.5,805C 488.535,808.849 493.869,812.182 499.5,815C 501.5,815.333 503.5,815.667 505.5,816C 507.664,817.491 509.664,818.991 511.5,820.5C 515.941,821.996 519.775,824.663 523,828.5C 524.473,828.868 525.973,828.368 527.5,827C 534.833,826.333 542.167,826.333 549.5,827C 552.035,827.928 553.035,829.762 552.5,832.5C 555.881,832.46 559.214,832.793 562.5,833.5C 558.03,834.486 553.363,834.819 548.5,834.5C 548.5,833.5 548.5,832.5 548.5,831.5C 543.588,831.898 538.921,832.898 534.5,834.5C 527.159,834.666 519.826,834.5 512.5,834C 504.792,832.1 497.459,829.433 490.5,826C 468.279,813.093 446.613,799.426 425.5,785C 420.905,783.543 417.239,780.876 414.5,777C 404.505,772.897 394.838,768.231 385.5,763C 371.205,758.396 356.539,756.396 341.5,757C 333.977,755.786 326.644,753.953 319.5,751.5C 319.5,750.5 319.5,749.5 319.5,748.5C 318.178,748.33 317.011,748.663 316,749.5C 312.623,746.102 308.456,744.436 303.5,744.5C 303.238,743.022 303.571,741.689 304.5,740.5C 307.332,741.58 310.165,742.58 313,743.5C 314.205,742.929 315.372,742.262 316.5,741.5C 316.291,740.914 315.957,740.414 315.5,740C 312.039,739.006 308.539,738.173 305,737.5C 302.733,739.258 300.233,739.758 297.5,739C 295.76,737.306 293.76,736.139 291.5,735.5C 291.281,734.325 291.614,733.325 292.5,732.5C 298.126,727.904 297.126,725.737 289.5,726C 290.821,727.545 290.488,728.711 288.5,729.5C 287.264,728.754 285.93,728.421 284.5,728.5C 284.649,727.448 284.483,726.448 284,725.5C 282.333,724.5 280.667,723.5 279,722.5C 276.846,717.215 275.012,711.882 273.5,706.5C 273.621,694.566 274.121,682.566 275,670.5C 275.333,670.833 275.667,671.167 276,671.5C 277.306,668.388 278.472,665.221 279.5,662C 278.002,657.93 277.002,653.764 276.5,649.5C 279.333,647.041 282,644.375 284.5,641.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a8543a",d:"M 602.5,779.5 C 603.209,778.596 604.209,778.263 605.5,778.5C 605.294,785.281 605.961,791.948 607.5,798.5C 607.5,799.167 607.167,799.5 606.5,799.5C 598.721,803.442 591.054,807.609 583.5,812C 575.457,814.957 567.457,817.79 559.5,820.5C 552.132,819.655 544.799,818.488 537.5,817C 536.944,816.617 536.611,816.117 536.5,815.5C 542.518,816.778 548.518,816.611 554.5,815C 559.624,812.737 564.957,811.07 570.5,810C 579.201,805 587.867,800 596.5,795C 599.096,793.864 601.763,793.031 604.5,792.5C 605.097,787.706 604.43,783.373 602.5,779.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#ca7e6c",d:"M 602.5,779.5 C 604.43,783.373 605.097,787.706 604.5,792.5C 601.763,793.031 599.096,793.864 596.5,795C 587.867,800 579.201,805 570.5,810C 564.957,811.07 559.624,812.737 554.5,815C 548.518,816.611 542.518,816.778 536.5,815.5C 529.48,814.333 522.48,812.833 515.5,811C 529.565,807.212 543.565,803.212 557.5,799C 572.183,791.825 587.183,785.325 602.5,779.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#63301d",d:"M 606.5,799.5 C 605.972,800.721 605.305,801.887 604.5,803C 596.156,808.19 587.49,812.69 578.5,816.5C 581.255,817.631 583.589,819.298 585.5,821.5C 585.032,823.134 584.032,824.3 582.5,825C 580.19,825.497 577.857,825.663 575.5,825.5C 575.5,826.5 575.5,827.5 575.5,828.5C 570.164,828.181 565.83,829.848 562.5,833.5C 559.214,832.793 555.881,832.46 552.5,832.5C 553.035,829.762 552.035,827.928 549.5,827C 542.167,826.333 534.833,826.333 527.5,827C 525.973,828.368 524.473,828.868 523,828.5C 519.775,824.663 515.941,821.996 511.5,820.5C 527.582,824.311 543.582,824.311 559.5,820.5C 567.457,817.79 575.457,814.957 583.5,812C 591.054,807.609 598.721,803.442 606.5,799.5 Z"})),i.createElement("g",null,i.createElement("path",{style:{opacity:1},fill:"#a8a095",d:"M 548.5,834.5 C 543.833,834.5 539.167,834.5 534.5,834.5C 538.921,832.898 543.588,831.898 548.5,831.5C 548.5,832.5 548.5,833.5 548.5,834.5 Z"})))}const A=i.forwardRef(C);n.p;var E=n(92838),_=n(4377),T=n.n(_),S=n(66653),k=n.n(S),P=n(72012),D=n(99334);const F=e=>{let t,n,{isSmall:r,isMedium:i,isLarge:a,innerText:s,children:u,token:d="fusd",justifyStart:h=!1}=e;switch(d.toLowerCase()){case"fusd":t=(0,D.jsx)(l,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="FUSD";break;case"flow":t=(0,D.jsx)(c.h,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="FLOW";break;case"fut":t=(0,D.jsx)(w.h,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="Dapper FLOW";break;case"usdc":t=(0,D.jsx)(y,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="USDC";break;case"duc":t=(0,D.jsx)(b.h,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="Dapper Balance";break;case"sloppy":case"sloppystakes":t=(0,D.jsx)(A,{style:{backgroundSize:"20px 20px"},height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="Sloppy Stakes";break;case"usdt":t=(0,D.jsx)(p,{height:r?13:i?18:a?24:30,width:r?13:i?18:a?24:27}),n="USDT";break;default:return null}return(0,D.jsxs)("div",{className:"nft-price flex items-center ".concat(h?"justify-start gap-x-2":"justify-between"," ").concat(r?"small":i?"medium":""),children:[(0,D.jsx)(o.o,{Comp:t,tooltipText:n,tooltipId:"display-token-tooltip"}),u,s&&(0,D.jsx)("p",{className:"text-white text-sm ms-1",children:s})]})},N=e=>{let{isSmall:t,isMedium:n,isLarge:r,innerText:i,token:o,children:a}=e;return(0,D.jsx)(F,{isSmall:t,isMedium:n,isLarge:r,innerText:i,token:o,children:a})},I=e=>{let{amount:t,fontSize:n,isMedium:r=!1,isSmall:i,largeText:o,justifyStart:a,token:s=E.HT.toLowerCase(),testId:l}=e;return(0,D.jsx)(F,{isSmall:i,token:s,isMedium:r,justifyStart:a,children:(0,D.jsx)("div",{className:"text-bold ".concat(n||"text-base"," font-montserrat inline-block ms-1 ").concat(o&&"text-sm"),"data-testid":l,children:!k()(t)&&T()(t).format("0,0.00")})})},R=e=>{let{amount:t,isSmall:n,largeText:r,token:i=E.HT.toLowerCase()}=e;return(0,D.jsx)(F,{isSmall:n,token:i,children:(0,D.jsx)("div",{className:"text-bold text-base inline-block font-montserrat ms-1 ".concat(r&&"text-sm"),children:!k()(t)&&(0,P.K)(t)})})}},48231:(e,t,n)=>{"use strict";n.d(t,{E6:()=>u,su:()=>d});var r=n(19388),i=n(2035),o=n.n(i),a=n(98081),s=n(89425),l=n(92838);const c={"0xFlowty":"0x5c57f79c6694797f","0xFlowtyRentals":"0x5c57f79c6694797f","0xFungibleToken":"0xf233dcee88fe0abe","0xNonFungibleToken":"0x1d7e57aa55817448",NFTCollection:"NFTCollection","accessNode.api":l.KS,"app.detail.icon":"https://storage.googleapis.com/flowty-images/flowty-logo.jpeg","app.detail.title":"Flowty","challenge.scope":"email","discovery.authn.endpoint":"https://fcl-discovery.onflow.org/api/authn","discovery.authn.include":l.KS.includes("mainnet")?["0xead892083b3e2c6c"]:["0x82ec283f88a62e65"],"discovery.wallet":"https://fcl-discovery.onflow.org/authn","fcl.accountProof.resolver":async()=>{const e=await o().get("".concat(l.Sw,"/auth/proof"),{validateStatus:e=>!0});return(0,s.t)("accountProofDataResolver",{...e.data}),e.data},"fcl.appDomainTag":"flowty-V0.0-user","walletconnect.projectId":"f7123e5336b0e8f36e501e08130ca360"};(0,r.config)(c);const u=()=>{(0,s.t)("resetting config..."),(0,r.config)(c)},d=(new a.FlowtyBuilder).withNetwork(l.pG).withApiURL(l.Sw).withCrescendo(l.SB).build();"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_FLOWTY_DEBUG&&(window.flowty=d)},27149:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,g:()=>p});var r=n(88642),i=n(61462),o=n(14146),a=n(89425),s=n(48231),l=n(78273),c=n(99334);const u=(0,i.createContext)({hybridCustodyNFTStatus:{},iterateAndRunScript:()=>{},publicAccountNftProviders:{}}),d=(0,r.WQ)("authStore")((0,r.PA)((e=>{let{children:t,authStore:n}=e;const[r,d]=(0,i.useState)({}),[p,h]=(0,i.useState)({});return(0,c.jsx)(u.Provider,{value:{hybridCustodyNFTStatus:r,iterateAndRunScript:async(e,t,r)=>{t&&Object.entries(t).forEach((async t=>{let[i]=t;Object.entries(e).forEach((async e=>{let[t,c]=e;const u=c.split("."),p=u[0],f=u[1];if(p&&f)try{var m,g,v,y,b,w;const e=await(0,o.r)({collectionAddress:p,collectionName:f});if(!s.su.config.crescendo&&(null===e||void 0===e||null===(m=e.collectionData)||void 0===m||null===(g=m.providerPath)||void 0===g||!g.identifier))return void(0,a.t)("No provider path for the following collection: ",f,{res:e});const t=await s.su.scripts.getHybridCustodyNFTProviderPathsForStorage(r,i,null!==(v=null===e||void 0===e||null===(y=e.collectionData)||void 0===y||null===(b=y.storagePath)||void 0===b?void 0:b.identifier)&&void 0!==v?v:"");(null===n||void 0===n||null===(w=n.loggedUser)||void 0===w?void 0:w.addr)===r?d((e=>({...e,[i]:{...e[i],[c]:t}}))):h((e=>({...e,[i]:{...e[i],[c]:t}})))}catch(x){l.o.track("ERROR_GETTING_HYBRID_CUSTODY_NFT_PROVIDER_PATHS",{error:x})}}))}))},publicAccountNftProviders:p},children:t})}))),p=()=>{const e=(0,i.useContext)(u);if(void 0===e)throw new Error("useHybridCustodyContext must be used within a HybridCustodyProvider");return e}},28117:(e,t,n)=>{"use strict";n.d(t,{e:()=>w,h:()=>x});var r=n(2035),i=n.n(r),o=n(88642),a=n(61462),s=n(95899),l=n(98853),c=n(67687),u=n(22483),d=n(39744),p=n(78273),h=n(99334);const f=()=>{const{bulkSelectedLength:e,bulkLimit:t,toggleBulkList:n,unSelectAll:r,openBulkPopUp:i,isBulkPopUpOpen:o,listedSelected:a,notListedSelected:s}=x();return(0,h.jsx)("div",{className:"w-full fixed bottom-0 py-3 bg-[#04070b] backdrop-blur-2xl border-t border-[#495057]",children:(0,h.jsxs)("div",{className:"flex justify-between items-center container",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 ml-3",children:[e>0&&(0,h.jsx)("div",{onClick:()=>{r(),p.o.track("BULK_UNSELECTALL_CLICKED",{bulkSelectedLength:e})},className:"p-[6px] rounded-md bg-[#ffffff14] border-[0.3px] border-[#6C757D40] cursor-pointer","data-testid":"unselect-all-btn",children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10C5 9.44772 5.44772 9 6 9L14 9C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11L6 11C5.44772 11 5 10.5523 5 10Z",fill:"#F8F9FA"})})}),(0,h.jsxs)("p",{className:"text-sm font-bold ".concat(e===t&&"text-red-500"),children:[" ",e," Selected"]}),(0,h.jsxs)("p",{className:"text-sm font-normal max-md:hidden",children:[(0,h.jsx)("span",{className:"font-bold",children:"\u2022"})," Select NFTs to perform bulk actions"]})]}),(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[s.length>0&&(0,h.jsxs)(d.m_,{id:"nft-listed-only",style:{backgroundColor:"#ffffffe6",color:"#031021",fontSize:"14px"},children:[(0,h.jsx)("p",{className:"text-xs font-bold",children:"Select only listed"}),(0,h.jsx)("p",{className:"text-xs",children:" NFTs to delist"})]}),(0,h.jsxs)("div",{"data-tooltip-id":"nft-listed-only","data-tooltip-place":"top",children:[" ",(0,h.jsx)(u.M2,{text:"Delist",onClick:()=>{i("delist"),p.o.track("BULK_DELISTING_CLOSED",{bulkSelectedLength:e})},disabled:0===e||s.length>0,variant:"secondary",btnSize:"small"})," "]}),(0,h.jsx)(u.M2,{text:a.length>0?"List/Edit":"List",disabled:0===e,onClick:()=>{p.o.track("BULK_LISTING_OPENED",{action:a.length>0?"List/Edit":"List"}),i("list")},variant:"secondary",btnSize:"small"}),(0,h.jsx)(c.A,{onClick:()=>{p.o.track("BULK_LISTING_CLOSED",{bulkSelectedLength:e}),n()},className:"h-6 mx-3 w-[40px] cursor-pointer max-md:hidden"})]})]})})};var m=n(68875),g=n(48470),v=n(89425),y=n(92838);const b=(0,a.createContext)({accountSummaries:{},bulkFormCachedValues:null,bulkLimit:75,bulkListActive:!1,bulkPurchaseSelecteds:new Map,bulkSelectedLength:0,bulkSelectedsValuation:new Map,cacheValues:e=>{},clearBulkListModal:()=>{},closeBulkListAndClean:()=>{},closeBulkPopUp:e=>{},isBulkPopUpOpen:{bulkType:null,isOpen:!1},isDapper:!1,listedSelected:[],loggedUserAddress:"",notListedSelected:[],onBulkPurchaseSelected:e=>{},openBulkPopUp:e=>{},renderMobile:!1,toggleBulkList:()=>{},unSelectAll:()=>{}}),w=(0,o.WQ)("authStore")((0,o.PA)((e=>{var t,r,o;let{authStore:c,children:u}=e;const[d,p]=(0,a.useState)(!1),[w,x]=(0,a.useState)({bulkType:"list",isOpen:!1}),[C,A]=(0,a.useState)(null),[E,_]=(0,a.useState)(new Map),[T,S]=(0,a.useState)(new Map),{width:k}=(0,m.k)(),P=k<768,D=e=>{A((t=>t?Object.assign({},t,e):e))},F=(0,a.useCallback)((()=>{p((e=>!e))}),[]),N=(0,a.useCallback)((()=>{A(null),_(new Map)}),[]),I=document.body,R=e=>{E.size>0&&(I.classList.add("overflow-hidden"),x({bulkType:e,isOpen:!0}))},O=e=>{x({bulkType:null,isOpen:!1}),I.classList.remove("overflow-hidden"),D(e)},j=()=>{A(null),p(!1),x({bulkType:null,isOpen:!1}),I.classList.remove("overflow-hidden"),N()},[M,L]=(0,a.useState)(!1),B=(0,a.useCallback)((e=>{var t;const n=null===(t=e.orders)||void 0===t?void 0:t.find((e=>"storefront"===e.listingKind));return{discountToFMV:0,flowNftType:null,flowtyRate:"",nft:e,nftValuation:void 0,priceValue:n?n.amount:"",receivedValue:"",royaltyRate:"",storefrontListedToken:n?n.paymentTokenName:""}}),[]),U=(0,a.useCallback)((e=>{const t="".concat(e.contractAddress,".").concat(e.contractName,".").concat(e.id);if(75===E.size&&!E.has(t))return void L(!0);const n=new Map(E);if(n.has(t))n.delete(t),C&&A((e=>e?{...e,items:e.items.filter((e=>{const n="".concat(e.nft.contractAddress,".").concat(e.nft.contractName,".").concat(e.nft.id);return t!==n}))}:e));else{n.set(t,B(e)),C&&A((t=>{if(t){var n;const r=null===(n=e.orders)||void 0===n?void 0:n.find((e=>"storefront"===e.listingKind));t.items.push({discountToFMV:0,flowNftType:null,flowtyRate:"",nft:e,nftValuation:void 0,priceValue:r?r.amount:"",receivedValue:"",royaltyRate:"",storefrontListedToken:r?r.paymentTokenName:""})}return t}));const r={contractAddress:"".concat(null===e||void 0===e?void 0:e.contractAddress),contractName:"".concat(null===e||void 0===e?void 0:e.contractName),nftID:(null===e||void 0===e?void 0:e.id.toString())||""},o=i().post("".concat(y.Sw,"/nft/valuation"),r).then((e=>e.data)).catch((e=>{(0,v.t)({err:e})}));S((e=>(e.set(t,o),e)))}0===n.size&&x({bulkType:null,isOpen:!1}),_(n)}),[E,C]),V=(0,a.useMemo)((()=>E.size),[E]),H=(0,a.useMemo)((()=>Array.from(E.values()).filter((e=>""!==(null===e||void 0===e?void 0:e.priceValue)))),[E]),z=(0,a.useMemo)((()=>Array.from(E.values()).filter((e=>""===(null===e||void 0===e?void 0:e.priceValue)))),[E]),W=(null===c||void 0===c||null===(t=c.loggedUser)||void 0===t?void 0:t.isDapper)||!1,q=(null===c||void 0===c||null===(r=c.loggedUser)||void 0===r?void 0:r.accountSummaries)||{},G=(null===c||void 0===c||null===(o=c.loggedUser)||void 0===o?void 0:o.addr)||"",Y=(0,l.zy)(),K=Y.pathname.includes("profile"),Q=(0,a.useCallback)((()=>{j()}),[]);(0,a.useEffect)((()=>{!d&&!w||K||Q()}),[Y.pathname]);const X=(0,a.useMemo)((()=>({accountSummaries:q,bulkFormCachedValues:C,bulkLimit:75,bulkListActive:d,bulkPurchaseSelecteds:E,bulkSelectedLength:V,bulkSelectedsValuation:T,cacheValues:D,clearBulkListModal:Q,closeBulkListAndClean:j,closeBulkPopUp:O,isBulkPopUpOpen:w,isDapper:W,listedSelected:H,loggedUserAddress:G,notListedSelected:z,onBulkPurchaseSelected:U,openBulkPopUp:R,renderMobile:P,toggleBulkList:F,unSelectAll:N})),[E,d,C]),Z=(0,a.lazy)((()=>n.e(806).then(n.bind(n,18806))));return(0,h.jsxs)(b.Provider,{value:X,children:[u,(0,h.jsx)(g.s,{setShow:L,show:M,seconds:4,message:"You can only select ".concat(75," items at a time."),type:"WARNING"}),d&&(0,h.jsx)(f,{}),w.isOpen&&(0,h.jsx)(a.Suspense,{fallback:(0,h.jsx)("div",{className:"absolute top-0 bg-[#000000cc] w-full h-screen mx-auto my-auto flex items-center justify-center z-40",children:(0,h.jsx)(s.BM,{height:150,width:150})}),children:(0,h.jsx)(Z,{bulkType:w.bulkType})})]})}))),x=()=>{const e=(0,a.useContext)(b);if(void 0===e)throw new Error("useMarketplaceAppContext must be used within a MarketplaceAppProvider");return e}},96321:(e,t,n)=>{"use strict";n.d(t,{j2:()=>cs,db:()=>ls,kA:()=>ds,IG:()=>ss});var r=n(75805),i=n(35877),o=n(88729),a=n(76096);class s{constructor(e,t){this._delegate=e,this.firebase=t,(0,o._addComponent)(e,new i.uA("app-compat",(()=>this),"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise((e=>{this._delegate.checkDestroyed(),e()})).then((()=>(this.firebase.INTERNAL.removeApp(this.name),(0,o.deleteApp)(this._delegate))))}_getService(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o._DEFAULT_ENTRY_NAME;var n;this._delegate.checkDestroyed();const r=this._delegate.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})}_removeServiceInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o._DEFAULT_ENTRY_NAME;this._delegate.container.getProvider(e).clearInstance(t)}_addComponent(e){(0,o._addComponent)(this._delegate,e)}_addOrOverwriteComponent(e){(0,o._addOrOverwriteComponent)(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const l={"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."},c=new r.FA("app-compat","Firebase",l);const u=function e(){const t=function(e){const t={},n={__esModule:!0,initializeApp:function(i){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=o.initializeApp(i,a);if((0,r.gR)(t,s.name))return t[s.name];const l=new e(s,n);return t[s.name]=l,l},app:i,registerVersion:o.registerVersion,setLogLevel:o.setLogLevel,onLog:o.onLog,apps:null,SDK_VERSION:o.SDK_VERSION,INTERNAL:{registerComponent:function(t){const a=t.name,s=a.replace("-compat","");if(o._registerComponent(t)&&"PUBLIC"===t.type){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i();if("function"!==typeof e[s])throw c.create("invalid-app-argument",{appName:a});return e[s]()};void 0!==t.serviceProps&&(0,r.zw)(o,t.serviceProps),n[s]=o,e.prototype[s]=function(){const e=this._getService.bind(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(this,t.multipleInstances?r:[])}}return"PUBLIC"===t.type?n[s]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:o}};function i(e){if(e=e||o._DEFAULT_ENTRY_NAME,!(0,r.gR)(t,e))throw c.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map((e=>t[e]))}}),i.App=e,n}(s);return t.INTERNAL=Object.assign(Object.assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){(0,r.zw)(t,e)},createSubscribe:r.tD,ErrorFactory:r.FA,deepExtend:r.zw}),t}(),d=new a.Vy("@firebase/app-compat");if((0,r.Bd)()&&void 0!==self.firebase){d.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");const e=self.firebase.SDK_VERSION;e&&e.indexOf("LITE")>=0&&d.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}const p=u;var h;(0,o.registerVersion)("@firebase/app-compat","0.2.36",h);p.registerVersion("firebase","10.12.3","app-compat");const f="firebasestorage.googleapis.com",m="storageBucket";class g extends r.g{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(b(e),"Firebase Storage: ".concat(t," (").concat(b(e),")")),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,g.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return b(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}var v,y;function b(e){return"storage/"+e}function w(){return new g(v.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function x(){return new g(v.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function C(){return new g(v.CANCELED,"User canceled the upload/download.")}function A(){return new g(v.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function E(e){return new g(v.INVALID_ARGUMENT,e)}function _(){return new g(v.APP_DELETED,"The Firebase app was deleted.")}function T(e){return new g(v.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function S(e,t){return new g(v.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function k(e){throw new g(v.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(v||(v={}));class P{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=P.makeFromUrl(e,t)}catch(i){return new P(e,"")}if(""===n.path)return n;throw r=e,new g(v.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)";const i=new RegExp("^gs://"+r+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}const a=t.replace(/[.]/g,"\\."),s=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(a,"/").concat("v[A-Za-z0-9_]+","/b/").concat(r,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp("^https?://".concat(t===f?"(?:storage.googleapis.com|storage.cloud.google.com)":t,"/").concat(r,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:o}];for(let l=0;l<s.length;l++){const t=s[l],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let i=r[t.indices.path];i||(i=""),n=new P(e,i),t.postModify(n);break}}if(null==n)throw function(e){return new g(v.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class D{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(){}}function F(e){return"string"===typeof e||e instanceof String}function N(e){return I()&&e instanceof Blob}function I(){return"undefined"!==typeof Blob}function R(e,t,n,r){if(r<t)throw E("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw E("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}function O(e,t,n){let r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function j(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}function M(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(y||(y={}));class L{constructor(e,t,n,r,i,o,a,s,l,c,u){let d=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=s,this.timeout_=l,this.progressCallback_=c,this.connectionFactory_=u,this.retry=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise(((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()}))}start_(){const e=(e,t)=>{if(t)return void e(!1,new B(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then((()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===y.NO_ERROR,i=n.getStatus();if(!t||M(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===y.ABORT;return void e(!1,new B(!1,null,t))}const o=-1!==this.successCodes_.indexOf(i);e(!0,new B(o,n))}))},t=(e,t)=>{const n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(o){r(o)}else if(null!==i){const e=w();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else if(t.canceled){r(this.appDelete_?_():C())}else{r(x())}};this.canceled_?t(0,new B(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,o=null,a=!1,s=0;function l(){return 2===s}let c=!1;function u(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function d(t){i=setTimeout((()=>{i=null,e(h,l())}),t)}function p(){o&&clearTimeout(o)}function h(e){if(c)return void p();for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e)return p(),void u.call(null,e,...n);if(l()||a)return p(),void u.call(null,e,...n);let o;r<64&&(r*=2),1===s?(s=2,o=0):o=1e3*(r+Math.random()),d(o)}let f=!1;function m(e){f||(f=!0,p(),c||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),o=setTimeout((()=>{a=!0,m(!0)}),n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class B{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function U(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function V(){const e=U();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){const t=new e;for(let e=0;e<n.length;e++)t.append(n[e]);return t.getBlob()}if(I())return new Blob(n);throw new g(v.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}function H(e){if("undefined"===typeof atob)throw t="base-64",new g(v.UNSUPPORTED_ENVIRONMENT,"".concat(t," is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information."));var t;return atob(e)}const z={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class W{constructor(e,t){this.data=e,this.contentType=t||null}}function q(e,t){switch(e){case z.RAW:return new W(G(t));case z.BASE64:case z.BASE64URL:return new W(Y(e,t));case z.DATA_URL:return new W(function(e){const t=new K(e);return t.base64?Y(z.BASE64,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(n){throw S(z.DATA_URL,"Malformed data URL.")}return G(t)}(t.rest)}(t),new K(t).contentType)}throw w()}function G(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r)){if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1))){r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else t.push(239,191,189)}else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function Y(e,t){switch(e){case z.BASE64:{const n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r){throw S(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?")}break}case z.BASE64URL:{const n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r){throw S(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=H(t)}catch(i){if(i.message.includes("polyfill"))throw i;throw S(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}class K{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw S(z.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){if(!(e.length>=t.length))return!1;return e.substring(e.length-t.length)===t}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class Q{constructor(e,t){let n=0,r="";N(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(N(this.data_)){const n=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,e,t);return null===n?null:new Q(n)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new Q(n,!0)}}static getBlob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(I()){const e=t.map((e=>e instanceof Q?e.data_:e));return new Q(V.apply(null,e))}{const e=t.map((e=>F(e)?q(z.RAW,e).data:e.data_));let n=0;e.forEach((e=>{n+=e.byteLength}));const r=new Uint8Array(n);let i=0;return e.forEach((e=>{for(let t=0;t<e.length;t++)r[i++]=e[t]})),new Q(r,!0)}}uploadData(){return this.data_}}function X(e){let t;try{t=JSON.parse(e)}catch(r){return null}return"object"!==typeof(n=t)||Array.isArray(n)?null:t;var n}function Z(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function J(e,t){return t}class ${constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||J}}let ee=null;function te(){if(ee)return ee;const e=[];e.push(new $("bucket")),e.push(new $("generation")),e.push(new $("metageneration")),e.push(new $("name","fullPath",!0));const t=new $("name");t.xform=function(e,t){return function(e){return!F(e)||e.length<2?e:Z(e)}(t)},e.push(t);const n=new $("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new $("timeCreated")),e.push(new $("updated")),e.push(new $("md5Hash",null,!0)),e.push(new $("cacheControl",null,!0)),e.push(new $("contentDisposition",null,!0)),e.push(new $("contentEncoding",null,!0)),e.push(new $("contentLanguage",null,!0)),e.push(new $("contentType",null,!0)),e.push(new $("metadata","customMetadata",!0)),ee=e,ee}function ne(e,t,n){const r={type:"file"},i=n.length;for(let o=0;o<i;o++){const e=n[o];r[e.local]=e.xform(r,t[e.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,r=e.fullPath,i=new P(n,r);return t._makeStorageReference(i)}})}(r,e),r}function re(e,t,n){const r=X(t);if(null===r)return null;return ne(e,r,n)}function ie(e,t){const n={},r=t.length;for(let i=0;i<r;i++){const r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}const oe="prefixes",ae="items";function se(e,t,n){const r=X(n);if(null===r)return null;return function(e,t,n){const r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[oe])for(const i of n[oe]){const n=i.replace(/\/$/,""),o=e._makeStorageReference(new P(t,n));r.prefixes.push(o)}if(n[ae])for(const i of n[ae]){const n=e._makeStorageReference(new P(t,i.name));r.items.push(n)}return r}(e,t,r)}class le{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function ce(e){if(!e)throw w()}function ue(e,t){return function(n,r){const i=re(e,r,t);return ce(null!==i),i}}function de(e,t){return function(n,r){const i=re(e,r,t);return ce(null!==i),function(e,t,n,r){const i=X(t);if(null===i)return null;if(!F(i.downloadTokens))return null;const o=i.downloadTokens;if(0===o.length)return null;const a=encodeURIComponent;return o.split(",").map((t=>{const i=e.bucket,o=e.fullPath;return O("/b/"+a(i)+"/o/"+a(o),n,r)+j({alt:"media",token:t})}))[0]}(i,r,e.host,e._protocol)}}function pe(e){return function(t,n){let r;var i,o;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new g(v.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new g(v.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new g(v.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new g(v.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function he(e){const t=pe(e);return function(n,r){let i=t(n,r);var o;return 404===n.getStatus()&&(o=e.path,i=new g(v.OBJECT_NOT_FOUND,"Object '"+o+"' does not exist.")),i.serverResponse=r.serverResponse,i}}function fe(e,t,n){const r=O(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new le(r,"GET",ue(e,n),i);return o.errorHandler=he(t),o}function me(e,t,n,r,i){const o={};t.isRoot?o.prefix="":o.prefix=t.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);const a=O(t.bucketOnlyServerUrl(),e.host,e._protocol),s=e.maxOperationRetryTime,l=new le(a,"GET",function(e,t){return function(n,r){const i=se(e,t,r);return ce(null!==i),i}}(e,t.bucket),s);return l.urlParams=o,l.errorHandler=pe(t),l}function ge(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function ve(e,t,n,r,i){const o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"};const s=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;const l=ge(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+ie(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=Q.getBlob(c,r,u);if(null===d)throw A();const p={name:l.fullPath},h=O(o,e.host,e._protocol),f=e.maxUploadRetryTime,m=new le(h,"POST",ue(e,n),f);return m.urlParams=p,m.headers=a,m.body=d.uploadData(),m.errorHandler=pe(t),m}class ye{constructor(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}function be(e,t){let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){ce(!1)}return ce(!!n&&-1!==(t||["active"]).indexOf(n)),n}const we=262144;function xe(e,t,n,r,i,o,a,s){const l=new ye(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw new g(v.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");const c=l.total-l.current;let u=c;i>0&&(u=Math.min(u,i));const d=l.current,p=d+u;let h="";h=0===u?"finalize":c===u?"upload, finalize":"upload";const f={"X-Goog-Upload-Command":h,"X-Goog-Upload-Offset":"".concat(l.current)},m=r.slice(d,p);if(null===m)throw A();const y=t.maxUploadRetryTime,b=new le(n,"POST",(function(e,n){const i=be(e,["active","final"]),a=l.current+u,s=r.size();let c;return c="final"===i?ue(t,o)(e,n):null,new ye(a,s,"final"===i,c)}),y);return b.headers=f,b.body=m.uploadData(),b.progressCallback=s||null,b.errorHandler=pe(e),b}const Ce={STATE_CHANGED:"state_changed"},Ae={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Ee(e){switch(e){case"running":case"pausing":case"canceling":return Ae.RUNNING;case"paused":return Ae.PAUSED;case"success":return Ae.SUCCESS;case"canceled":return Ae.CANCELED;default:return Ae.ERROR}}class _e{constructor(e,t,n){if("function"===typeof e||null!=t||null!=n)this.next=e,this.error=null!==t&&void 0!==t?t:void 0,this.complete=null!==n&&void 0!==n?n:void 0;else{const t=e;this.next=t.next,this.error=t.error,this.complete=t.complete}}}function Te(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Promise.resolve().then((()=>e(...n)))}}let Se=null;class ke{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=y.NO_ERROR,this.sendPromise_=new Promise((e=>{this.xhr_.addEventListener("abort",(()=>{this.errorCode_=y.ABORT,e()})),this.xhr_.addEventListener("error",(()=>{this.errorCode_=y.NETWORK_ERROR,e()})),this.xhr_.addEventListener("load",(()=>{e()}))}))}send(e,t,n,r){if(this.sent_)throw k("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(const i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw k("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw k("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw k("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw k("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class Pe extends ke{initXhr(){this.xhr_.responseType="text"}}function De(){return Se?Se():new Pe}class Fe{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=te(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(v.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const t=this.isExponentialBackoffExpired();if(M(e.status,[])){if(!t)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();e=x()}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(v.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t,this._start()})),this._promise.then(null,(()=>{}))}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout((()=>{this.pendingTimeout=void 0,this._continueUpload()}),this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then((t=>{let[n,r]=t;switch(this._state){case"running":e(n,r);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}}))}_createResumable(){this._resolveToken(((e,t)=>{const n=function(e,t,n,r,i){const o=t.bucketOnlyServerUrl(),a=ge(t,r,i),s={name:a.fullPath},l=O(o,e.host,e._protocol),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":"".concat(r.size()),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},u=ie(a,n),d=e.maxUploadRetryTime,p=new le(l,"POST",(function(e){let t;be(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){ce(!1)}return ce(F(t)),t}),d);return p.urlParams=s,p.headers=c,p.body=u,p.errorHandler=pe(t),p}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,De,e,t);this._request=r,r.getPromise().then((e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()}),this._errorHandler)}))}_fetchStatus(){const e=this._uploadUrl;this._resolveToken(((t,n)=>{const r=function(e,t,n,r){const i=e.maxUploadRetryTime,o=new le(n,"POST",(function(e){const t=be(e,["active","final"]);let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){ce(!1)}n||ce(!1);const i=Number(n);return ce(!isNaN(i)),new ye(i,r.size(),"final"===t)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=pe(t),o}(this._ref.storage,this._ref._location,e,this._blob),i=this._ref.storage._makeRequest(r,De,t,n);this._request=i,i.getPromise().then((e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()}),this._errorHandler)}))}_continueUpload(){const e=we*this._chunkMultiplier,t=new ye(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken(((r,i)=>{let o;try{o=xe(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(s){return this._error=s,void this._transition("error")}const a=this._ref.storage._makeRequest(o,De,r,i,!1);this._request=a,a.getPromise().then((e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()}),this._errorHandler)}))}_increaseMultiplier(){2*(we*this._chunkMultiplier)<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken(((e,t)=>{const n=fe(this._ref.storage,this._ref._location,this._mappings),r=this._ref.storage._makeRequest(n,De,e,t);this._request=r,r.getPromise().then((e=>{this._request=void 0,this._metadata=e,this._transition("success")}),this._metadataErrorHandler)}))}_oneShotUpload(){this._resolveToken(((e,t)=>{const n=ve(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,De,e,t);this._request=r,r.getPromise().then((e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")}),this._errorHandler)}))}_updateProgress(e){const t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=C(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const e=Ee(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,r){const i=new _e(t||void 0,n||void 0,r||void 0);return this._addObserver(i),()=>{this._removeObserver(i)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){const t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise();this._observers.slice().forEach((e=>{this._notifyObserver(e)}))}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(Ee(this._state)){case Ae.SUCCESS:Te(this._resolve.bind(null,this.snapshot))();break;case Ae.CANCELED:case Ae.ERROR:Te(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(Ee(this._state)){case Ae.RUNNING:case Ae.PAUSED:e.next&&Te(e.next.bind(e,this.snapshot))();break;case Ae.SUCCESS:e.complete&&Te(e.complete.bind(e))();break;default:e.error&&Te(e.error.bind(e,this._error))()}}resume(){const e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){const e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){const e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}class Ne{constructor(e,t){this._service=e,this._location=t instanceof P?t:P.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new Ne(e,t)}get root(){const e=new P(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Z(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new P(this._location.bucket,e);return new Ne(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw T(e)}}function Ie(e){const t={prefixes:[],items:[]};return Re(e,t).then((()=>t))}async function Re(e,t,n){const r={pageToken:n},i=await Oe(e,r);t.prefixes.push(...i.prefixes),t.items.push(...i.items),null!=i.nextPageToken&&await Re(e,t,i.nextPageToken)}function Oe(e,t){null!=t&&"number"===typeof t.maxResults&&R("options.maxResults",1,1e3,t.maxResults);const n=t||{},r=me(e.storage,e._location,"/",n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(r,De)}function je(e,t){e._throwIfRoot("updateMetadata");const n=function(e,t,n,r){const i=O(t.fullServerUrl(),e.host,e._protocol),o=ie(n,r),a=e.maxOperationRetryTime,s=new le(i,"PATCH",ue(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=he(t),s}(e.storage,e._location,t,te());return e.storage.makeRequestWithTokens(n,De)}function Me(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const r=O(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new le(r,"GET",de(e,n),i);return o.errorHandler=he(t),o}(e.storage,e._location,te());return e.storage.makeRequestWithTokens(t,De).then((e=>{if(null===e)throw new g(v.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e}))}function Le(e){e._throwIfRoot("deleteObject");const t=function(e,t){const n=O(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,i=new le(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=he(t),i}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,De)}function Be(e,t){const n=function(e,t){const n=t.split("/").filter((e=>e.length>0)).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new P(e._location.bucket,n);return new Ne(e.storage,r)}function Ue(e,t){if(e instanceof ze){const n=e;if(null==n._bucket)throw new g(v.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+m+"' property when initializing the app?");const r=new Ne(n,n._bucket);return null!=t?Ue(r,t):r}return void 0!==t?Be(e,t):e}function Ve(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof ze)return new Ne(e,t);throw E("To use ref(service, url), the first argument must be a Storage instance.")}return Ue(e,t)}function He(e,t){const n=null===t||void 0===t?void 0:t[m];return null==n?null:P.makeFromBucketSpec(n,e)}class ze{constructor(e,t,n,r,i){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._bucket=null,this._host=f,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?P.makeFromBucketSpec(r,this._host):He(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=P.makeFromBucketSpec(this._url,e):this._bucket=He(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){R("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){R("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach((e=>e.cancel())),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new Ne(this,e)}_makeRequest(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new D(_());{const o=function(e,t,n,r,i,o){let a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];const s=j(e.urlParams),l=e.url+s,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(c,o),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new L(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,a)}(e,this._appId,n,r,t,this._firebaseVersion,i);return this._requests.add(o),o.getPromise().then((()=>this._requests.delete(o)),(()=>this._requests.delete(o))),o}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const We="@firebase/storage",qe="0.12.6",Ge="storage";function Ye(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new Fe(e,new Q(t),n)}(e=(0,r.Ku)(e),t,n)}function Ke(e){return function(e){e._throwIfRoot("getMetadata");const t=fe(e.storage,e._location,te());return e.storage.makeRequestWithTokens(t,De)}(e=(0,r.Ku)(e))}function Qe(e,t){return Ve(e=(0,r.Ku)(e),t)}function Xe(e,t,n){!function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n),e._protocol="http";const{mockUserToken:o}=i;o&&(e._overrideAuthToken="string"===typeof o?o:(0,r.Fy)(o,e.app.options.projectId))}(e,t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}function Ze(e,t){let{instanceIdentifier:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new ze(r,i,a,n,o.SDK_VERSION)}(0,o._registerComponent)(new i.uA(Ge,Ze,"PUBLIC").setMultipleInstances(!0)),(0,o.registerVersion)(We,qe,""),(0,o.registerVersion)(We,qe,"esm2017");class Je{constructor(e,t,n){this._delegate=e,this.task=t,this.ref=n}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class $e{constructor(e,t){this._delegate=e,this._ref=t,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new Je(this._delegate.snapshot,this,this._ref)}then(e,t){return this._delegate.then((t=>{if(e)return e(new Je(t,this,this._ref))}),t)}on(e,t,n,r){let i;return t&&(i="function"===typeof t?e=>t(new Je(e,this,this._ref)):{next:t.next?e=>t.next(new Je(e,this,this._ref)):void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,i,n||void 0,r||void 0)}}class et{constructor(e,t){this._delegate=e,this._service=t}get prefixes(){return this._delegate.prefixes.map((e=>new tt(e,this._service)))}get items(){return this._delegate.items.map((e=>new tt(e,this._service)))}get nextPageToken(){return this._delegate.nextPageToken||null}}class tt{constructor(e,t){this._delegate=e,this.storage=t}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child(e){const t=function(e,t){return Be(e,t)}(this._delegate,e);return new tt(t,this.storage)}get root(){return new tt(this._delegate.root,this.storage)}get parent(){const e=this._delegate.parent;return null==e?null:new tt(e,this.storage)}put(e,t){return this._throwIfRoot("put"),new $e(Ye(this._delegate,e,t),this)}putString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.RAW,n=arguments.length>2?arguments[2]:void 0;this._throwIfRoot("putString");const r=q(t,e),i=Object.assign({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new $e(new Fe(this._delegate,new Q(r.data,!0),i),this)}listAll(){return function(e){return Ie(e=(0,r.Ku)(e))}(this._delegate).then((e=>new et(e,this.storage)))}list(e){return function(e,t){return Oe(e=(0,r.Ku)(e),t)}(this._delegate,e||void 0).then((e=>new et(e,this.storage)))}getMetadata(){return Ke(this._delegate)}updateMetadata(e){return function(e,t){return je(e=(0,r.Ku)(e),t)}(this._delegate,e)}getDownloadURL(){return function(e){return Me(e=(0,r.Ku)(e))}(this._delegate)}delete(){return this._throwIfRoot("delete"),function(e){return Le(e=(0,r.Ku)(e))}(this._delegate)}_throwIfRoot(e){if(""===this._delegate._location.path)throw T(e)}}class nt{constructor(e,t){this.app=e,this._delegate=t}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref(e){if(rt(e))throw E("ref() expected a child path but got a URL, use refFromURL instead.");return new tt(Qe(this._delegate,e),this)}refFromURL(e){if(!rt(e))throw E("refFromURL() expected a full URL but got a child path, use ref() instead.");try{P.makeFromUrl(e,this._delegate.host)}catch(t){throw E("refFromUrl() expected a valid full URL but got an invalid one.")}return new tt(Qe(this._delegate,e),this)}setMaxUploadRetryTime(e){this._delegate.maxUploadRetryTime=e}setMaxOperationRetryTime(e){this._delegate.maxOperationRetryTime=e}useEmulator(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Xe(this._delegate,e,t,n)}}function rt(e){return/^[A-Za-z]+:\/\//.test(e)}function it(e,t){let{instanceIdentifier:n}=t;const r=e.getProvider("app-compat").getImmediate(),i=e.getProvider("storage").getImmediate({identifier:n});return new nt(r,i)}!function(e){const t={TaskState:Ae,TaskEvent:Ce,StringFormat:z,Storage:nt,Reference:tt};e.INTERNAL.registerComponent(new i.uA("storage-compat",it,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage-compat","0.3.9")}(p);var ot=n(80081);function at(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new ot.W6("invalid-argument","Invalid options passed to function ".concat(e,"(): You cannot ")+'specify both "merge" and "mergeFields".');return t}function st(){if("undefined"===typeof Uint8Array)throw new ot.W6("unimplemented","Uint8Arrays are not available in this environment.")}function lt(){if(!(0,ot.qG)())throw new ot.W6("unimplemented","Blobs are unavailable in Firestore in this environment.")}class ct{constructor(e){this._delegate=e}static fromBase64String(e){return lt(),new ct(ot.Ix.fromBase64String(e))}static fromUint8Array(e){return st(),new ct(ot.Ix.fromUint8Array(e))}toBase64(){return lt(),this._delegate.toBase64()}toUint8Array(){return st(),this._delegate.toUint8Array()}isEqual(e){return this._delegate.isEqual(e._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function ut(e){return function(e,t){if("object"!==typeof e||null===e)return!1;const n=e;for(const r of t)if(r in n&&"function"===typeof n[r])return!0;return!1}(e,["next","error","complete"])}class dt{enableIndexedDbPersistence(e,t){return(0,ot.ol)(e._delegate,{forceOwnership:t})}enableMultiTabIndexedDbPersistence(e){return(0,ot.Q5)(e._delegate)}clearIndexedDbPersistence(e){return(0,ot.me)(e._delegate)}}class pt{constructor(e,t,n){this._delegate=t,this._persistenceProvider=n,this.INTERNAL={delete:()=>this.terminate()},e instanceof ot.cm||(this._appCompat=e)}get _databaseId(){return this._delegate._databaseId}settings(e){const t=this._delegate._getSettings();e.merge||t.host===e.host||(0,ot.qi)("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)}useEmulator(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,ot.vN)(this._delegate,e,t,n)}enableNetwork(){return(0,ot.Os)(this._delegate)}disableNetwork(){return(0,ot.LA)(this._delegate)}enablePersistence(e){let t=!1,n=!1;return e&&(t=!!e.synchronizeTabs,n=!!e.experimentalForceOwningTab,(0,ot.c8)("synchronizeTabs",t,"experimentalForceOwningTab",n)),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,n)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return(0,ot.iB)(this._delegate)}onSnapshotsInSync(e){return(0,ot.FC)(this._delegate,e)}get app(){if(!this._appCompat)throw new ot.W6("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(e){try{return new Tt(this,(0,ot.rJ)(this._delegate,e))}catch(t){throw yt(t,"collection()","Firestore.collection()")}}doc(e){try{return new vt(this,(0,ot.H9)(this._delegate,e))}catch(t){throw yt(t,"doc()","Firestore.doc()")}}collectionGroup(e){try{return new At(this,(0,ot.Cs)(this._delegate,e))}catch(t){throw yt(t,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(e){return(0,ot.c4)(this._delegate,(t=>e(new ft(this,t))))}batch(){return(0,ot.Ws)(this._delegate),new mt(new ot.GA(this._delegate,(e=>(0,ot.z6)(this._delegate,e))))}loadBundle(e){return(0,ot.po)(this._delegate,e)}namedQuery(e){return(0,ot.St)(this._delegate,e).then((e=>e?new At(this,e):null))}}class ht extends ot.fS{constructor(e){super(),this.firestore=e}convertBytes(e){return new ct(new ot.Ix(e))}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return vt.forKey(t,this.firestore,null)}}class ft{constructor(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new ht(e)}get(e){const t=St(e);return this._delegate.get(t).then((e=>new xt(this._firestore,new ot.Wq(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,t.converter))))}set(e,t,n){const r=St(e);return n?(at("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];const a=St(e);return 2===arguments.length?this._delegate.update(a,t):this._delegate.update(a,t,n,...i),this}delete(e){const t=St(e);return this._delegate.delete(t),this}}class mt{constructor(e){this._delegate=e}set(e,t,n){const r=St(e);return n?(at("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];const a=St(e);return 2===arguments.length?this._delegate.update(a,t):this._delegate.update(a,t,n,...i),this}delete(e){const t=St(e);return this._delegate.delete(t),this}commit(){return this._delegate.commit()}}class gt{constructor(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}fromFirestore(e,t){const n=new ot.YQ(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new Ct(this._firestore,n),null!==t&&void 0!==t?t:{})}toFirestore(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}static getInstance(e,t){const n=gt.INSTANCES;let r=n.get(e);r||(r=new WeakMap,n.set(e,r));let i=r.get(t);return i||(i=new gt(e,new ht(e),t),r.set(t,i)),i}}gt.INSTANCES=new WeakMap;class vt{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new ht(e)}static forPath(e,t,n){if(e.length%2!==0)throw new ot.W6("invalid-argument","Invalid document reference. Document references must have an even number of segments, but "+"".concat(e.canonicalString()," has ").concat(e.length));return new vt(t,new ot.T1(t._delegate,n,new ot.K$(e)))}static forKey(e,t,n){return new vt(t,new ot.T1(t._delegate,n,e))}get id(){return this._delegate.id}get parent(){return new Tt(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(e){try{return new Tt(this.firestore,(0,ot.rJ)(this._delegate,e))}catch(t){throw yt(t,"collection()","DocumentReference.collection()")}}isEqual(e){return(e=(0,r.Ku)(e))instanceof ot.T1&&(0,ot.yx)(this._delegate,e)}set(e,t){t=at("DocumentReference.set",t);try{return t?(0,ot.BN)(this._delegate,e,t):(0,ot.BN)(this._delegate,e)}catch(n){throw yt(n,"setDoc()","DocumentReference.set()")}}update(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];try{return 1===arguments.length?(0,ot.mZ)(this._delegate,e):(0,ot.mZ)(this._delegate,e,t,...r)}catch(o){throw yt(o,"updateDoc()","DocumentReference.update()")}}delete(){return(0,ot.kd)(this._delegate)}onSnapshot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=bt(t),i=wt(t,(e=>new xt(this.firestore,new ot.Wq(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter))));return(0,ot.aQ)(this._delegate,r,i)}get(e){let t;return t="cache"===(null===e||void 0===e?void 0:e.source)?(0,ot.nY)(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?(0,ot._e)(this._delegate):(0,ot.x7)(this._delegate),t.then((e=>new xt(this.firestore,new ot.Wq(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter))))}withConverter(e){return new vt(this.firestore,e?this._delegate.withConverter(gt.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function yt(e,t,n){return e.message=e.message.replace(t,n),e}function bt(e){for(const t of e)if("object"===typeof t&&!ut(t))return t;return{}}function wt(e,t){var n,r;let i;return i=ut(e[0])?e[0]:ut(e[1])?e[1]:"function"===typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]},{next:e=>{i.next&&i.next(t(e))},error:null===(n=i.error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}class xt{constructor(e,t){this._firestore=e,this._delegate=t}get ref(){return new vt(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(e){return this._delegate.data(e)}get(e,t){return this._delegate.get(e,t)}isEqual(e){return(0,ot.lN)(this._delegate,e._delegate)}}class Ct extends xt{data(e){const t=this._delegate.data(e);return this._delegate._converter||(0,ot.bI)(void 0!==t,"Document in a QueryDocumentSnapshot should exist"),t}}class At{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new ht(e)}where(e,t,n){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot._M)(e,t,n)))}catch(r){throw yt(r,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(e,t){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.My)(e,t)))}catch(n){throw yt(n,/(orderBy|where)\(\)/,"Query.$1()")}}limit(e){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.AB)(e)))}catch(t){throw yt(t,"limit()","Query.limit()")}}limitToLast(e){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.$1)(e)))}catch(t){throw yt(t,"limitToLast()","Query.limitToLast()")}}startAt(){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.EO)(...arguments)))}catch(e){throw yt(e,"startAt()","Query.startAt()")}}startAfter(){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.HM)(...arguments)))}catch(e){throw yt(e,"startAfter()","Query.startAfter()")}}endBefore(){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.rf)(...arguments)))}catch(e){throw yt(e,"endBefore()","Query.endBefore()")}}endAt(){try{return new At(this.firestore,(0,ot.P)(this._delegate,(0,ot.FD)(...arguments)))}catch(e){throw yt(e,"endAt()","Query.endAt()")}}isEqual(e){return(0,ot.B)(this._delegate,e._delegate)}get(e){let t;return t="cache"===(null===e||void 0===e?void 0:e.source)?(0,ot.kU)(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?(0,ot.Rr)(this._delegate):(0,ot.GG)(this._delegate),t.then((e=>new _t(this.firestore,new ot.NJ(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot))))}onSnapshot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=bt(t),i=wt(t,(e=>new _t(this.firestore,new ot.NJ(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot))));return(0,ot.aQ)(this._delegate,r,i)}withConverter(e){return new At(this.firestore,e?this._delegate.withConverter(gt.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}class Et{constructor(e,t){this._firestore=e,this._delegate=t}get type(){return this._delegate.type}get doc(){return new Ct(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class _t{constructor(e,t){this._firestore=e,this._delegate=t}get query(){return new At(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map((e=>new Ct(this._firestore,e)))}docChanges(e){return this._delegate.docChanges(e).map((e=>new Et(this._firestore,e)))}forEach(e,t){this._delegate.forEach((n=>{e.call(t,new Ct(this._firestore,n))}))}isEqual(e){return(0,ot.lN)(this._delegate,e._delegate)}}class Tt extends At{constructor(e,t){super(e,t),this.firestore=e,this._delegate=t}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){const e=this._delegate.parent;return e?new vt(this.firestore,e):null}doc(e){try{return new vt(this.firestore,void 0===e?(0,ot.H9)(this._delegate):(0,ot.H9)(this._delegate,e))}catch(t){throw yt(t,"doc()","CollectionReference.doc()")}}add(e){return(0,ot.gS)(this._delegate,e).then((e=>new vt(this.firestore,e)))}isEqual(e){return(0,ot.yx)(this._delegate,e._delegate)}withConverter(e){return new Tt(this.firestore,e?this._delegate.withConverter(gt.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function St(e){return(0,ot.lo)(e,ot.T1)}class kt{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._delegate=new ot.uY(...t)}static documentId(){return new kt(ot.FA.keyField().canonicalString())}isEqual(e){return(e=(0,r.Ku)(e))instanceof ot.uY&&this._delegate._internalPath.isEqual(e._internalPath)}}class Pt{constructor(e){this._delegate=e}static serverTimestamp(){const e=(0,ot.O5)();return e._methodName="FieldValue.serverTimestamp",new Pt(e)}static delete(){const e=(0,ot.CL)();return e._methodName="FieldValue.delete",new Pt(e)}static arrayUnion(){const e=(0,ot.hq)(...arguments);return e._methodName="FieldValue.arrayUnion",new Pt(e)}static arrayRemove(){const e=(0,ot.C3)(...arguments);return e._methodName="FieldValue.arrayRemove",new Pt(e)}static increment(e){const t=(0,ot.GV)(e);return t._methodName="FieldValue.increment",new Pt(t)}isEqual(e){return this._delegate.isEqual(e._delegate)}}const Dt={Firestore:pt,GeoPoint:ot.Ci,Timestamp:ot.Dc,Blob:ct,Transaction:ft,WriteBatch:mt,DocumentReference:vt,DocumentSnapshot:xt,Query:At,QueryDocumentSnapshot:Ct,QuerySnapshot:_t,CollectionReference:Tt,FieldPath:kt,FieldValue:Pt,setLogLevel:function(e){(0,ot.He)(e)},CACHE_SIZE_UNLIMITED:ot.H6};var Ft;(function(e,t){e.INTERNAL.registerComponent(new i.uA("firestore-compat",(e=>{const n=e.getProvider("app-compat").getImmediate(),r=e.getProvider("firestore").getImmediate();return t(n,r)}),"PUBLIC").setServiceProps(Object.assign({},Dt)))})(Ft=p,((e,t)=>new pt(e,t,new dt))),Ft.registerVersion("@firebase/firestore-compat","0.3.33");var Nt=n(65587);const It={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},Rt="EMAIL_SIGNIN",Ot="PASSWORD_RESET",jt="RECOVER_EMAIL",Mt="REVERT_SECOND_FACTOR_ADDITION",Lt="VERIFY_AND_CHANGE_EMAIL",Bt="VERIFY_EMAIL";function Ut(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Vt=function(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is incorrect, malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend.","unsupported-password-policy-schema-version":"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.","password-does-not-meet-requirements":"The password does not meet the requirements."}},Ht=Ut,zt=new r.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Wt=new a.Vy("@firebase/auth");function qt(e){if(Wt.logLevel<=a.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Wt.error("Auth (".concat(o.SDK_VERSION,"): ").concat(e),...n)}}function Gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Zt(e,...n)}function Yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zt(e,...n)}function Kt(e,t,n){const i=Object.assign(Object.assign({},Ht()),{[t]:n});return new r.FA("auth","Firebase",i).create(t,{appName:e.name})}function Qt(e){return Kt(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Xt(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&Gt(e,"argument-error"),Kt(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function Zt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return zt.create(e,...n)}function Jt(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Zt(t,...r)}}function $t(e){const t="INTERNAL ASSERTION FAILED: "+e;throw qt(t),new Error(t)}function en(e,t){e||$t(t)}function tn(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function nn(){return"http:"===rn()||"https:"===rn()}function rn(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class on{constructor(e,t){this.shortDelay=e,this.longDelay=t,en(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,r.jZ)()||(0,r.lV)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(nn()||(0,r.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function an(e,t){en(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class sn{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void $t("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void $t("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void $t("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const ln={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},cn=new on(3e4,6e4);function un(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function dn(e,t,n,i){return pn(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let o={},a={};i&&("GET"===t?a=i:o={body:JSON.stringify(i)});const s=(0,r.Am)(Object.assign({key:e.config.apiKey},a)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),sn.fetch()(fn(e,e.config.apiHost,n,s),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},o))}))}async function pn(e,t,n){e._canInitEmulator=!1;const i=Object.assign(Object.assign({},ln),t);try{const t=new gn(e),r=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await r.json();if("needConfirmation"in o)throw vn(e,"account-exists-with-different-credential",o);if(r.ok&&!("errorMessage"in o))return o;{const t=r.ok?o.errorMessage:o.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw vn(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw vn(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw vn(e,"user-disabled",o);const s=i[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw Kt(e,s,a);Gt(e,s)}}catch(o){if(o instanceof r.g)throw o;Gt(e,"network-request-failed",{message:String(o)})}}async function hn(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=await dn(e,t,n,r,i);return"mfaPendingCredential"in o&&Gt(e,"multi-factor-auth-required",{_serverResponse:o}),o}function fn(e,t,n,r){const i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?an(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}function mn(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class gn{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(Yt(this.auth,"network-request-failed"))),cn.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function vn(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Yt(e,t,r);return i.customData._tokenResponse=n,i}function yn(e){return void 0!==e&&void 0!==e.getResponse}function bn(e){return void 0!==e&&void 0!==e.enterprise}class wn{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return mn(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function xn(e,t){return dn(e,"GET","/v2/recaptchaConfig",un(e,t))}async function Cn(e,t){return dn(e,"POST","/v1/accounts:lookup",t)}function An(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function En(e){return 1e3*Number(e)}function _n(e){const[t,n,i]=e.split(".");if(void 0===t||void 0===n||void 0===i)return qt("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,r.u)(n);return e?JSON.parse(e):(qt("Failed to decode base64 JWT payload"),null)}catch(o){return qt("Caught error parsing JWT payload as JSON",null===o||void 0===o?void 0:o.toString()),null}}function Tn(e){const t=_n(e);return Jt(t,"internal-error"),Jt("undefined"!==typeof t.exp,"internal-error"),Jt("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function Sn(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof r.g&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class kn{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class Pn{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=An(this.lastLoginAt),this.creationTime=An(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Dn(e){var t;const n=e.auth,r=await e.getIdToken(),i=await Sn(e,Cn(n,{idToken:r}));Jt(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const a=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?Fn(o.providerUserInfo):[],s=(l=e.providerData,c=a,[...l.filter((e=>!c.some((t=>t.providerId===e.providerId)))),...c]);var l,c;const u=e.isAnonymous,d=!(e.email&&o.passwordHash)&&!(null===s||void 0===s?void 0:s.length),p=!!u&&d,h={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new Pn(o.createdAt,o.lastLoginAt),isAnonymous:p};Object.assign(e,h)}function Fn(e){return e.map((e=>{var{providerId:t}=e,n=(0,Nt.Tt)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}class Nn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Jt(e.idToken,"internal-error"),Jt("undefined"!==typeof e.idToken,"internal-error"),Jt("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):Tn(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Jt(0!==e.length,"internal-error");const t=Tn(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(Jt(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:i,expiresIn:o}=await async function(e,t){const n=await pn(e,{},(async()=>{const n=(0,r.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:o}=e.config,a=fn(e,i,"/v1/token","key=".concat(o)),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",sn.fetch()(a,{method:"POST",headers:s,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,i,Number(o))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new Nn;return n&&(Jt("string"===typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(Jt("string"===typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(Jt("number"===typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Nn,this.toJSON())}_performRefresh(){return $t("not implemented")}}function In(e,t){Jt("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class Rn{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=(0,Nt.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new kn(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Pn(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await Sn(this,this.stsTokenManager.getToken(this.auth,e));return Jt(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,r.Ku)(e),i=await n.getIdToken(t),o=_n(i);Jt(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const a="object"===typeof o.firebase?o.firebase:void 0,s=null===a||void 0===a?void 0:a.sign_in_provider;return{claims:o,token:i,authTime:An(En(o.auth_time)),issuedAtTime:An(En(o.iat)),expirationTime:An(En(o.exp)),signInProvider:s||null,signInSecondFactor:(null===a||void 0===a?void 0:a.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,r.Ku)(e);await Dn(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(Jt(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new Rn(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){Jt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Dn(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,o._isFirebaseServerApp)(this.auth.app))return Promise.reject(Qt(this.auth));const e=await this.getIdToken();return await Sn(this,async function(e,t){return dn(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,a,s,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,p=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,h=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(s=t._redirectEventId)&&void 0!==s?s:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:y,emailVerified:b,isAnonymous:w,providerData:x,stsTokenManager:C}=t;Jt(y&&C,e,"internal-error");const A=Nn.fromJSON(this.name,C);Jt("string"===typeof y,e,"internal-error"),In(u,e.name),In(d,e.name),Jt("boolean"===typeof b,e,"internal-error"),Jt("boolean"===typeof w,e,"internal-error"),In(p,e.name),In(h,e.name),In(f,e.name),In(m,e.name),In(g,e.name),In(v,e.name);const E=new Rn({uid:y,auth:e,email:d,emailVerified:b,displayName:u,isAnonymous:w,photoURL:h,phoneNumber:p,tenantId:f,stsTokenManager:A,createdAt:g,lastLoginAt:v});return x&&Array.isArray(x)&&(E.providerData=x.map((e=>Object.assign({},e)))),m&&(E._redirectEventId=m),E}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Nn;r.updateFromServerResponse(t);const i=new Rn({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Dn(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];Jt(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?Fn(r.providerUserInfo):[],o=!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length),a=new Nn;a.updateFromIdToken(n);const s=new Rn({uid:r.localId,auth:e,stsTokenManager:a,isAnonymous:o}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new Pn(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length)};return Object.assign(s,l),s}}const On=new Map;function jn(e){en(e instanceof Function,"Expected a class definition");let t=On.get(e);return t?(en(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,On.set(e,t),t)}class Mn{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}Mn.type="NONE";const Ln=Mn;function Bn(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class Un{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=Bn(this.userKey,r.apiKey,i),this.fullPersistenceKey=Bn("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Rn._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new Un(jn(Ln),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||jn(Ln);const o=Bn(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(o);if(t){const n=Rn._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const s=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&s.length?(i=s[0],a&&await i._set(o,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(o)}catch(l){}}))),new Un(i,e,n)):new Un(i,e,n)}}function Vn(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(qn(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(Hn(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Yn(t))return"Blackberry";if(Kn(t))return"Webos";if(zn(t))return"Safari";if((t.includes("chrome/")||Wn(t))&&!t.includes("edge/"))return"Chrome";if(Gn(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function Hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/firefox\//i.test(e)}function zn(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/crios\//i.test(e)}function qn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/iemobile/i.test(e)}function Gn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/android/i.test(e)}function Yn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/blackberry/i.test(e)}function Kn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/webos/i.test(e)}function Qn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Xn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return Qn(e)||Gn(e)||Kn(e)||Yn(e)||/windows phone/i.test(e)||qn(e)}function Zn(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=Vn((0,r.ZQ)());break;case"Worker":t="".concat(Vn((0,r.ZQ)()),"-").concat(e);break;default:t=e}const i=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(o.SDK_VERSION,"/").concat(i)}class Jn{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class $n{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,a;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(i=s.containsUppercaseLetter)||void 0===i||i),s.isValid&&(s.isValid=null===(o=s.containsNumericCharacter)||void 0===o||o),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class er{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new nr(this),this.idTokenSubscription=new nr(this),this.beforeStateQueue=new Jn(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=zt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=jn(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await Un.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await Cn(this,{idToken:e}),n=await Rn._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,o._isFirebaseServerApp)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise((t=>{setTimeout((()=>this.initializeCurrentUserFromIdToken(e).then(t,t)))})):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null===r||void 0===r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==o||!(null===a||void 0===a?void 0:a.user)||(r=a.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(a){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(a)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Jt(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Dn(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,o._isFirebaseServerApp)(this.app))return Promise.reject(Qt(this));const t=e?(0,r.Ku)(e):null;return t&&Jt(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&Jt(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return(0,o._isFirebaseServerApp)(this.app)?Promise.reject(Qt(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,o._isFirebaseServerApp)(this.app)?Promise.reject(Qt(this)):this.queue((async()=>{await this.assertedPersistence.setPersistence(jn(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return dn(e,"GET","/v2/passwordPolicy",un(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new $n(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new r.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return dn(e,"POST","/v2/accounts:revokeToken",un(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&jn(e)||this._popupRedirectResolver;Jt(t,this,"argument-error"),this.redirectPersistenceManager=await Un.create(this,[jn(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Jt(a,this,"internal-error"),a.then((()=>{o||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Jt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Zn(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(Wt.logLevel<=a.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Wt.warn("Auth (".concat(o.SDK_VERSION,"): ").concat(e),...n)}}("Error while retrieving App Check token: ".concat(t.error)),null===t||void 0===t?void 0:t.token}}function tr(e){return(0,r.Ku)(e)}class nr{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,r.tD)((e=>this.observer=e))}get next(){return Jt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let rr={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function ir(e){return rr.loadJS(e)}function or(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class ar{constructor(e){this.type="recaptcha-enterprise",this.auth=tr(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;bn(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{xn(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new wn(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&bn(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=rr.recaptchaEnterpriseScript;0!==t.length&&(t+=i),ir(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function sr(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new ar(e);let o;try{o=await i.verify(n)}catch(s){o=await i.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function lr(e,t,n,r){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await sr(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await sr(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}function cr(e,t,n){const r=tr(e);Jt(r._canInitEmulator,r,"emulator-config-failed"),Jt(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),o=ur(t),{host:a,port:s}=function(e){const t=ur(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:dr(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:dr(t)}}}(t),l=null===s?"":":".concat(s);r.config.emulator={url:"".concat(o,"//").concat(a).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:a,port:s,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function ur(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function dr(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class pr{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return $t("not implemented")}_getIdTokenResponse(e){return $t("not implemented")}_linkToIdToken(e,t){return $t("not implemented")}_getReauthenticationResolver(e){return $t("not implemented")}}async function hr(e,t){return dn(e,"POST","/v1/accounts:resetPassword",un(e,t))}async function fr(e,t){return dn(e,"POST","/v1/accounts:signUp",t)}async function mr(e,t){return hn(e,"POST","/v1/accounts:signInWithPassword",un(e,t))}async function gr(e,t){return dn(e,"POST","/v1/accounts:sendOobCode",un(e,t))}async function vr(e,t){return gr(e,t)}async function yr(e,t){return gr(e,t)}class br extends pr{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new br(e,t,"password")}static _fromEmailAndCode(e,t){return new br(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return lr(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",mr);case"emailLink":return async function(e,t){return hn(e,"POST","/v1/accounts:signInWithEmailLink",un(e,t))}(e,{email:this._email,oobCode:this._password});default:Gt(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return lr(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",fr);case"emailLink":return async function(e,t){return hn(e,"POST","/v1/accounts:signInWithEmailLink",un(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:Gt(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function wr(e,t){return hn(e,"POST","/v1/accounts:signInWithIdp",un(e,t))}class xr extends pr{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new xr(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Gt("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,Nt.Tt)(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new xr(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return wr(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,wr(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,wr(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,r.Am)(t)}return e}}const Cr={USER_NOT_FOUND:"user-not-found"};class Ar extends pr{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Ar({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Ar({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return hn(e,"POST","/v1/accounts:signInWithPhoneNumber",un(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await hn(e,"POST","/v1/accounts:signInWithPhoneNumber",un(e,t));if(n.temporaryProof)throw vn(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return hn(e,"POST","/v1/accounts:signInWithPhoneNumber",un(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Cr)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Ar({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Er{constructor(e){var t,n,i,o,a,s;const l=(0,r.I9)((0,r.hp)(e)),c=null!==(t=l.apiKey)&&void 0!==t?t:null,u=null!==(n=l.oobCode)&&void 0!==n?n:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(i=l.mode)&&void 0!==i?i:null);Jt(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=null!==(o=l.continueUrl)&&void 0!==o?o:null,this.languageCode=null!==(a=l.languageCode)&&void 0!==a?a:null,this.tenantId=null!==(s=l.tenantId)&&void 0!==s?s:null}static parseLink(e){const t=function(e){const t=(0,r.I9)((0,r.hp)(e)).link,n=t?(0,r.I9)((0,r.hp)(t)).deep_link_id:null,i=(0,r.I9)((0,r.hp)(e)).deep_link_id;return(i?(0,r.I9)((0,r.hp)(i)).link:null)||i||n||t||e}(e);try{return new Er(t)}catch(n){return null}}}class _r{constructor(){this.providerId=_r.PROVIDER_ID}static credential(e,t){return br._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Er.parseLink(t);return Jt(n,"argument-error"),br._fromEmailAndCode(e,n.code,n.tenantId)}}_r.PROVIDER_ID="password",_r.EMAIL_PASSWORD_SIGN_IN_METHOD="password",_r.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Tr{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Sr extends Tr{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class kr extends Sr{static credentialFromJSON(e){const t="string"===typeof e?JSON.parse(e):e;return Jt("providerId"in t&&"signInMethod"in t,"argument-error"),xr._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return Jt(e.idToken||e.accessToken,"argument-error"),xr._fromParams(Object.assign(Object.assign({},e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return kr.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return kr.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:o,nonce:a,providerId:s}=t;if(!r&&!i&&!n&&!o)return null;if(!s)return null;try{return new kr(s)._credential({idToken:n,accessToken:r,nonce:a,pendingToken:o})}catch(l){return null}}}class Pr extends Sr{constructor(){super("facebook.com")}static credential(e){return xr._fromParams({providerId:Pr.PROVIDER_ID,signInMethod:Pr.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Pr.credentialFromTaggedObject(e)}static credentialFromError(e){return Pr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Pr.credential(t.oauthAccessToken)}catch(n){return null}}}Pr.FACEBOOK_SIGN_IN_METHOD="facebook.com",Pr.PROVIDER_ID="facebook.com";class Dr extends Sr{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return xr._fromParams({providerId:Dr.PROVIDER_ID,signInMethod:Dr.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Dr.credentialFromTaggedObject(e)}static credentialFromError(e){return Dr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Dr.credential(n,r)}catch(i){return null}}}Dr.GOOGLE_SIGN_IN_METHOD="google.com",Dr.PROVIDER_ID="google.com";class Fr extends Sr{constructor(){super("github.com")}static credential(e){return xr._fromParams({providerId:Fr.PROVIDER_ID,signInMethod:Fr.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Fr.credentialFromTaggedObject(e)}static credentialFromError(e){return Fr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Fr.credential(t.oauthAccessToken)}catch(n){return null}}}Fr.GITHUB_SIGN_IN_METHOD="github.com",Fr.PROVIDER_ID="github.com";class Nr extends pr{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){return wr(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,wr(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,wr(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r,pendingToken:i}=t;return n&&r&&i&&n===r?new Nr(n,i):null}static _create(e,t){return new Nr(e,t)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class Ir extends Tr{constructor(e){Jt(e.startsWith("saml."),"argument-error"),super(e)}static credentialFromResult(e){return Ir.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return Ir.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){const t=Nr.fromJSON(e);return Jt(t,"argument-error"),t}static samlCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{pendingToken:n,providerId:r}=t;if(!n||!r)return null;try{return Nr._create(r,n)}catch(i){return null}}}class Rr extends Sr{constructor(){super("twitter.com")}static credential(e,t){return xr._fromParams({providerId:Rr.PROVIDER_ID,signInMethod:Rr.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Rr.credentialFromTaggedObject(e)}static credentialFromError(e){return Rr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Rr.credential(n,r)}catch(i){return null}}}async function Or(e,t){return hn(e,"POST","/v1/accounts:signUp",un(e,t))}Rr.TWITTER_SIGN_IN_METHOD="twitter.com",Rr.PROVIDER_ID="twitter.com";class jr{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await Rn._fromIdTokenResponse(e,n,r),o=Mr(n);return new jr({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Mr(n);return new jr({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Mr(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class Lr extends r.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Lr.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Lr(e,t,n,r)}}function Br(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw Lr._fromErrorAndOperation(e,n,t,r);throw n}))}function Ur(e){return new Set(e.map((e=>{let{providerId:t}=e;return t})).filter((e=>!!e)))}async function Vr(e,t){const n=(0,r.Ku)(e);await zr(!0,n,t);const{providerUserInfo:i}=await async function(e,t){return dn(e,"POST","/v1/accounts:update",t)}(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),o=Ur(i||[]);return n.providerData=n.providerData.filter((e=>o.has(e.providerId))),o.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function Hr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await Sn(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return jr._forOperation(e,"link",r)}async function zr(e,t,n){await Dn(t);const r=!1===e?"provider-already-linked":"no-such-provider";Jt(Ur(t.providerData).has(n)===e,t.auth,r)}async function Wr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e;if((0,o._isFirebaseServerApp)(r.app))return Promise.reject(Qt(r));const i="reauthenticate";try{const o=await Sn(e,Br(r,i,t,e),n);Jt(o.idToken,r,"internal-error");const a=_n(o.idToken);Jt(a,r,"internal-error");const{sub:s}=a;return Jt(e.uid===s,r,"user-mismatch"),jr._forOperation(e,i,o)}catch(a){throw(null===a||void 0===a?void 0:a.code)==="auth/".concat("user-not-found")&&Gt(r,"user-mismatch"),a}}async function qr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const r="signIn",i=await Br(e,r,t),a=await jr._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}async function Gr(e,t){return qr(tr(e),t)}async function Yr(e,t){const n=(0,r.Ku)(e);return await zr(!1,n,t.providerId),Hr(n,t)}async function Kr(e,t){return Wr((0,r.Ku)(e),t)}async function Qr(e,t){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const n=tr(e),r=await async function(e,t){return hn(e,"POST","/v1/accounts:signInWithCustomToken",un(e,t))}(n,{token:t,returnSecureToken:!0}),i=await jr._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(i.user),i}class Xr{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?Zr._fromServerResponse(e,t):"totpInfo"in t?Jr._fromServerResponse(e,t):Gt(e,"internal-error")}}class Zr extends Xr{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new Zr(t)}}class Jr extends Xr{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new Jr(t)}}function $r(e,t,n){var r;Jt((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),Jt("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Jt(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(Jt(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function ei(e){const t=tr(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function ti(e,t){await async function(e,t){return dn(e,"POST","/v1/accounts:update",un(e,t))}((0,r.Ku)(e),{oobCode:t})}async function ni(e,t){const n=(0,r.Ku)(e),i=await hr(n,{oobCode:t}),o=i.requestType;switch(Jt(o,n,"internal-error"),o){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":Jt(i.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":Jt(i.mfaInfo,n,"internal-error");default:Jt(i.email,n,"internal-error")}let a=null;return i.mfaInfo&&(a=Xr._fromServerResponse(tr(n),i.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.newEmail:i.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.email:i.newEmail)||null,multiFactorInfo:a},operation:o}}async function ri(e,t){const n={identifier:t,continueUri:nn()?tn():"http://localhost"},{signinMethods:i}=await async function(e,t){return dn(e,"POST","/v1/accounts:createAuthUri",un(e,t))}((0,r.Ku)(e),n);return i||[]}async function ii(e,t){const n=(0,r.Ku)(e),i={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&$r(n.auth,i,t);const{email:o}=await async function(e,t){return gr(e,t)}(n.auth,i);o!==e.email&&await e.reload()}async function oi(e,t,n){const i=(0,r.Ku)(e),o={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};n&&$r(i.auth,o,n);const{email:a}=await async function(e,t){return gr(e,t)}(i.auth,o);a!==e.email&&await e.reload()}async function ai(e,t){let{displayName:n,photoURL:i}=t;if(void 0===n&&void 0===i)return;const o=(0,r.Ku)(e),a={idToken:await o.getIdToken(),displayName:n,photoUrl:i,returnSecureToken:!0},s=await Sn(o,async function(e,t){return dn(e,"POST","/v1/accounts:update",t)}(o.auth,a));o.displayName=s.displayName||null,o.photoURL=s.photoUrl||null;const l=o.providerData.find((e=>{let{providerId:t}=e;return"password"===t}));l&&(l.displayName=o.displayName,l.photoURL=o.photoURL),await o._updateTokensIfNecessary(s)}async function si(e,t,n){const{auth:r}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);const o=await Sn(e,async function(e,t){return dn(e,"POST","/v1/accounts:update",t)}(r,i));await e._updateTokensIfNecessary(o,!0)}class li{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.isNewUser=e,this.providerId=t,this.profile=n}}class ci extends li{constructor(e,t,n,r){super(e,t,n),this.username=r}}class ui extends li{constructor(e,t){super(e,"facebook.com",t)}}class di extends ci{constructor(e,t){super(e,"github.com",t,"string"===typeof(null===t||void 0===t?void 0:t.login)?null===t||void 0===t?void 0:t.login:null)}}class pi extends li{constructor(e,t){super(e,"google.com",t)}}class hi extends ci{constructor(e,t,n){super(e,"twitter.com",t,n)}}function fi(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,n;if(!e)return null;const{providerId:r}=e,i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},o=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!r&&(null===e||void 0===e?void 0:e.idToken)){const r=null===(n=null===(t=_n(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(r)return new li(o,"anonymous"!==r&&"custom"!==r?r:null)}if(!r)return null;switch(r){case"facebook.com":return new ui(o,i);case"github.com":return new di(o,i);case"google.com":return new pi(o,i);case"twitter.com":return new hi(o,i,e.screenName||null);case"custom":case"anonymous":return new li(o,null);default:return new li(o,r,i)}}(n)}class mi{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fromIdtoken(e,t){return new mi("enroll",e,t)}static _fromMfaPendingCredential(e){return new mi("signin",e)}toJSON(){const e="enroll"===this.type?"idToken":"pendingCredential";return{multiFactorSession:{[e]:this.credential}}}static fromJSON(e){var t,n;if(null===e||void 0===e?void 0:e.multiFactorSession){if(null===(t=e.multiFactorSession)||void 0===t?void 0:t.pendingCredential)return mi._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(null===(n=e.multiFactorSession)||void 0===n?void 0:n.idToken)return mi._fromIdtoken(e.multiFactorSession.idToken)}return null}}class gi{constructor(e,t,n){this.session=e,this.hints=t,this.signInResolver=n}static _fromError(e,t){const n=tr(e),r=t.customData._serverResponse,i=(r.mfaInfo||[]).map((e=>Xr._fromServerResponse(n,e)));Jt(r.mfaPendingCredential,n,"internal-error");const o=mi._fromMfaPendingCredential(r.mfaPendingCredential);return new gi(o,i,(async e=>{const i=await e._process(n,o);delete r.mfaInfo,delete r.mfaPendingCredential;const a=Object.assign(Object.assign({},r),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":const e=await jr._fromIdTokenResponse(n,t.operationType,a);return await n._updateCurrentUser(e.user),e;case"reauthenticate":return Jt(t.user,n,"internal-error"),jr._forOperation(t.user,t.operationType,a);default:Gt(n,"internal-error")}}))}async resolveSignIn(e){const t=e;return this.signInResolver(t)}}class vi{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload((t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map((t=>Xr._fromServerResponse(e.auth,t))))}))}static _fromUser(e){return new vi(e)}async getSession(){return mi._fromIdtoken(await this.user.getIdToken(),this.user)}async enroll(e,t){const n=e,r=await this.getSession(),i=await Sn(this.user,n._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(i),this.user.reload()}async unenroll(e){const t="string"===typeof e?e:e.uid,n=await this.user.getIdToken();try{const e=await Sn(this.user,function(e,t){return dn(e,"POST","/v2/accounts/mfaEnrollment:withdraw",un(e,t))}(this.user.auth,{idToken:n,mfaEnrollmentId:t}));this.enrolledFactors=this.enrolledFactors.filter((e=>{let{uid:n}=e;return n!==t})),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(r){throw r}}}const yi=new WeakMap;const bi="__sak";class wi{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(bi,"1"),this.storage.removeItem(bi),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class xi extends wi{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=(0,r.ZQ)();return zn(e)||Qn(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=Xn(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const i=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},o=this.storage.getItem(n);(0,r.lT)()&&10===document.documentMode&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,10):i()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}xi.type="LOCAL";const Ci=xi;class Ai extends wi{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Ai.type="SESSION";const Ei=Ai;class _i{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new _i(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null===o||void 0===o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(o).map((async e=>e(t.origin,i))),s=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(a);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function Ti(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}_i.receivers=[];class Si{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((a,s)=>{const l=Ti("",20);r.port1.start();const c=setTimeout((()=>{s(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),s(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}function ki(){return window}function Pi(){return"undefined"!==typeof ki().WorkerGlobalScope&&"function"===typeof ki().importScripts}const Di="firebaseLocalStorageDb",Fi="firebaseLocalStorage",Ni="fbase_key";class Ii{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function Ri(e,t){return e.transaction([Fi],t?"readwrite":"readonly").objectStore(Fi)}function Oi(){const e=indexedDB.open(Di,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Fi,{keyPath:Ni})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Fi)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Di);return new Ii(e).toPromise()}(),t(await Oi()))}))}))}async function ji(e,t,n){const r=Ri(e,!0).put({[Ni]:t,value:n});return new Ii(r).toPromise()}function Mi(e,t){const n=Ri(e,!0).delete(t);return new Ii(n).toPromise()}class Li{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Oi()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Pi()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=_i._getInstance(Pi()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Si(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Oi();return await ji(e,bi,"1"),await Mi(e,bi),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>ji(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=Ri(e,!1).get(t),r=await new Ii(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>Mi(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=Ri(e,!1).getAll();return new Ii(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Li.type="LOCAL";const Bi=Li;const Ui=1e12;class Vi{constructor(e){this.auth=e,this.counter=Ui,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new Hi(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;const n=e||Ui;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}getResponse(e){var t;const n=e||Ui;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||""}async execute(e){var t;const n=e||Ui;return null===(t=this._widgets.get(n))||void 0===t||t.execute(),""}}class Hi{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r="string"===typeof e?document.getElementById(e):e;Jt(r,"argument-error",{appName:t}),this.container=r,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=function(e){const t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(n){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(n){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const zi=or("rcb"),Wi=new on(3e4,6e4);class qi{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=ki().grecaptcha)||void 0===e?void 0:e.render)}load(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Jt(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&yn(ki().grecaptcha)?Promise.resolve(ki().grecaptcha):new Promise(((n,i)=>{const o=ki().setTimeout((()=>{i(Yt(e,"network-request-failed"))}),Wi.get());ki()[zi]=()=>{ki().clearTimeout(o),delete ki()[zi];const r=ki().grecaptcha;if(!r||!yn(r))return void i(Yt(e,"internal-error"));const a=r.render;r.render=(e,t)=>{const n=a(e,t);return this.counter++,n},this.hostLanguage=t,n(r)};ir("".concat(rr.recaptchaV2Script,"?").concat((0,r.Am)({onload:zi,render:"explicit",hl:t}))).catch((()=>{clearTimeout(o),i(Yt(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=ki().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Gi{async load(e){return new Vi(e)}clearedOneInstance(){}}const Yi="recaptcha",Ki={theme:"light",type:"image"};class Qi{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.assign({},Ki);this.parameters=n,this.type=Yi,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=tr(e),this.isInvisible="invisible"===this.parameters.size,Jt("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment");const r="string"===typeof t?document.getElementById(t):t;Jt(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Gi:new qi,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise((n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)}))}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((e=>{throw this.renderPromise=null,e}))),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach((e=>{this.container.removeChild(e)}))}validateStartingState(){Jt(!this.parameters.sitekey,this.auth,"argument-error"),Jt(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Jt("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach((e=>e(t))),"function"===typeof e)e(t);else if("string"===typeof e){const n=ki()[e];"function"===typeof n&&n(t)}}}assertNotDestroyed(){Jt(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){Jt(nn()&&!Pi(),this.auth,"internal-error"),await function(){let e=null;return new Promise((t=>{"complete"!==document.readyState?(e=()=>t(),window.addEventListener("load",e)):t()})).catch((t=>{throw e&&window.removeEventListener("load",e),t}))}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await async function(e){return(await dn(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);Jt(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return Jt(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Xi{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){const t=Ar._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}async function Zi(e,t,n){var r;const i=await n.verify();try{let o;if(Jt("string"===typeof i,e,"argument-error"),Jt(n.type===Yi,e,"argument-error"),o="string"===typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){Jt("enroll"===t.type,e,"internal-error");const n=await function(e,t){return dn(e,"POST","/v2/accounts/mfaEnrollment:start",un(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{Jt("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;Jt(n,e,"missing-multi-factor-info");const a=await function(e,t){return dn(e,"POST","/v2/accounts/mfaSignIn:start",un(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return dn(e,"POST","/v1/accounts:sendVerificationCode",un(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}class Ji{constructor(e){this.providerId=Ji.PROVIDER_ID,this.auth=tr(e)}verifyPhoneNumber(e,t){return Zi(this.auth,e,(0,r.Ku)(t))}static credential(e,t){return Ar._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Ji.credentialFromTaggedObject(t)}static credentialFromError(e){return Ji.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?Ar._fromTokenResponse(n,r):null}}function $i(e,t){return t?jn(t):(Jt(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}Ji.PROVIDER_ID="phone",Ji.PHONE_SIGN_IN_METHOD="phone";class eo extends pr{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return wr(e,this._buildIdpRequest())}_linkToIdToken(e,t){return wr(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return wr(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function to(e){return qr(e.auth,new eo(e),e.bypassAuthState)}function no(e){const{auth:t,user:n}=e;return Jt(n,t,"internal-error"),Wr(n,new eo(e),e.bypassAuthState)}async function ro(e){const{auth:t,user:n}=e;return Jt(n,t,"internal-error"),Hr(n,new eo(e),e.bypassAuthState)}class io{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:a}=e;if(o)return void this.reject(o);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return to;case"linkViaPopup":case"linkViaRedirect":return ro;case"reauthViaPopup":case"reauthViaRedirect":return no;default:Gt(this.auth,"internal-error")}}resolve(e){en(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){en(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const oo=new on(2e3,1e4);class ao extends io{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,ao.currentPopupAction&&ao.currentPopupAction.cancel(),ao.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Jt(e,this.auth,"internal-error"),e}async onExecution(){en(1===this.filter.length,"Popup operations only handle one event");const e=Ti();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(Yt(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(Yt(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,ao.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(Yt(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,oo.get())};e()}}ao.currentPopupAction=null;const so="pendingRedirect",lo=new Map;class co extends io{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=lo.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=fo(t),r=ho(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}lo.set(this.auth._key(),e)}return this.bypassAuthState||lo.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function uo(e,t){return ho(e)._set(fo(t),"true")}function po(e,t){lo.set(e._key(),t)}function ho(e){return jn(e._redirectPersistence)}function fo(e){return Bn(so,e.config.apiKey,e.name)}function mo(e,t,n){return async function(e,t,n){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const r=tr(e);Xt(e,t,Tr),await r._initializationPromise;const i=$i(r,n);return await uo(i,r),i._openRedirect(r,t,"signInViaRedirect")}(e,t,n)}function go(e,t,n){return async function(e,t,n){const i=(0,r.Ku)(e);if(Xt(i.auth,t,Tr),(0,o._isFirebaseServerApp)(i.auth.app))return Promise.reject(Qt(i.auth));await i.auth._initializationPromise;const a=$i(i.auth,n);await uo(a,i.auth);const s=await bo(i);return a._openRedirect(i.auth,t,"reauthViaRedirect",s)}(e,t,n)}function vo(e,t,n){return async function(e,t,n){const i=(0,r.Ku)(e);Xt(i.auth,t,Tr),await i.auth._initializationPromise;const o=$i(i.auth,n);await zr(!1,i,t.providerId),await uo(o,i.auth);const a=await bo(i);return o._openRedirect(i.auth,t,"linkViaRedirect",a)}(e,t,n)}async function yo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const r=tr(e),i=$i(r,t),a=new co(r,i,n),s=await a.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}async function bo(e){const t=Ti("".concat(e.uid,":::"));return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}class wo{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Co(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!Co(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(Yt(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(xo(e))}saveEventToCache(e){this.cachedEventUids.add(xo(e)),this.lastProcessedEventTime=Date.now()}}function xo(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function Co(e){let{type:t,error:n}=e;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}async function Ao(e){return dn(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}const Eo=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,_o=/^https?/;function To(e){const t=tn(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!_o.test(n))return!1;if(Eo.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const So=new on(3e4,6e4);function ko(){const e=ki().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function Po(e){return new Promise(((t,n)=>{var r,i,o;function a(){ko(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{ko(),n(Yt(e,"network-request-failed"))},timeout:So.get()})}if(null===(i=null===(r=ki().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=ki().gapi)||void 0===o?void 0:o.load)){const t=or("iframefcb");return ki()[t]=()=>{gapi.load?a():n(Yt(e,"network-request-failed"))},ir("".concat(rr.gapiScript,"?onload=").concat(t)).catch((e=>n(e)))}a()}})).catch((e=>{throw Do=null,e}))}let Do=null;const Fo=new on(5e3,15e3),No="__/auth/iframe",Io="emulator/auth/iframe",Ro={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Oo=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function jo(e){const t=e.config;Jt(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?an(t,Io):"https://".concat(e.config.authDomain,"/").concat(No),i={apiKey:t.apiKey,appName:e.name,v:o.SDK_VERSION},a=Oo.get(e.config.apiHost);a&&(i.eid=a);const s=e._getFrameworks();return s.length&&(i.fw=s.join(",")),"".concat(n,"?").concat((0,r.Am)(i).slice(1))}async function Mo(e){const t=await function(e){return Do=Do||Po(e),Do}(e),n=ki().gapi;return Jt(n,e,"internal-error"),t.open({where:document.body,url:jo(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Ro,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=Yt(e,"network-request-failed"),o=ki().setTimeout((()=>{r(i)}),Fo.get());function a(){ki().clearTimeout(o),n(t)}t.ping(a).then(a,(()=>{r(i)}))}))))}const Lo={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Bo{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function Uo(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const a=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-i)/2,0).toString();let l="";const c=Object.assign(Object.assign({},Lo),{width:i.toString(),height:o.toString(),top:a,left:s}),u=(0,r.ZQ)().toLowerCase();n&&(l=Wn(u)?"_blank":n),Hn(u)&&(t=t||"http://localhost",c.scrollbars="yes");const d=Object.entries(c).reduce(((e,t)=>{let[n,r]=t;return"".concat(e).concat(n,"=").concat(r,",")}),"");if(function(){var e;return Qn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(u)&&"_self"!==l)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",l),new Bo(null);const p=window.open(t||"",l,d);Jt(p,e,"popup-blocked");try{p.focus()}catch(h){}return new Bo(p)}const Vo="__/auth/handler",Ho="emulator/auth/handler",zo=encodeURIComponent("fac");async function Wo(e,t,n,i,a,s){Jt(e.config.authDomain,e,"auth-domain-config-required"),Jt(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:i,v:o.SDK_VERSION,eventId:a};if(t instanceof Tr){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,r.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(s||{}))l[e]=t}if(t instanceof Sr){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(l.scopes=e.join(","))}e.tenantId&&(l.tid=e.tenantId);const c=l;for(const r of Object.keys(c))void 0===c[r]&&delete c[r];const u=await e._getAppCheckToken(),d=u?"#".concat(zo,"=").concat(encodeURIComponent(u)):"";return"".concat(function(e){let{config:t}=e;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(Vo);return an(t,Ho)}(e),"?").concat((0,r.Am)(c).slice(1)).concat(d)}const qo="webStorageSupport";const Go=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Ei,this._completeRedirectFn=yo,this._overrideRedirectResult=po}async _openPopup(e,t,n,r){var i;en(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return Uo(e,await Wo(e,t,n,tn(),r),Ti())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){ki().location.href=e}(await Wo(e,t,n,tn(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(en(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await Mo(e),n=new wo(e);return t.register("authEvent",(t=>{Jt(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(qo,{type:qo},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[qo];void 0!==i&&t(!!i),Gt(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){if(e.config.emulator)return;const{authorizedDomains:t}=await Ao(e);for(const r of t)try{if(To(r))return}catch(n){}Gt(e,"unauthorized-domain")}(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Xn()||zn()||Qn()}};class Yo{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return $t("unexpected MultiFactorSessionType")}}}class Ko extends Yo{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new Ko(e)}_finalizeEnroll(e,t,n){return function(e,t){return dn(e,"POST","/v2/accounts/mfaEnrollment:finalize",un(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return function(e,t){return dn(e,"POST","/v2/accounts/mfaSignIn:finalize",un(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class Qo{constructor(){}static assertion(e){return Ko._fromCredential(e)}}Qo.FACTOR_ID="phone";var Xo="@firebase/auth",Zo="1.7.5";class Jo{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Jt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}(0,r.XA)("authIdTokenMaxAge");var $o;function ea(){return window}rr={loadJS:e=>new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=Yt("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},$o="Browser",(0,o._registerComponent)(new i.uA("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=r.options;Jt(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:s,clientPlatform:$o,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Zn($o)},c=new er(r,i,o,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(jn);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),(0,o._registerComponent)(new i.uA("auth-internal",(e=>(e=>new Jo(e))(tr(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,o.registerVersion)(Xo,Zo,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}($o)),(0,o.registerVersion)(Xo,Zo,"esm2017");async function ta(e,t,n){var r;const{BuildInfo:i}=ea();en(t.sessionId,"AuthEvent did not contain a session ID");const o=await async function(e){const t=function(e){if(en(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!==typeof TextEncoder)return(new TextEncoder).encode(e);const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")}(t.sessionId),a={};return Qn()?a.ibi=i.packageName:Gn()?a.apn=i.packageName:Gt(e,"operation-not-supported-in-this-environment"),i.displayName&&(a.appDisplayName=i.displayName),a.sessionId=o,Wo(e,n,t.type,void 0,null!==(r=t.eventId)&&void 0!==r?r:void 0,a)}function na(e){const{cordova:t}=ea();return new Promise((n=>{t.plugins.browsertab.isAvailable((i=>{let o=null;i?t.plugins.browsertab.openUrl(e):o=t.InAppBrowser.open(e,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)}()?"_blank":"_system","location=yes"),n(o)}))}))}const ra=20;class ia extends wo{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise((e=>{this.resolveInialized=e}))}addPassiveListener(e){this.passiveListeners.add(e)}removePassiveListener(e){this.passiveListeners.delete(e)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(e){return this.resolveInialized(),this.passiveListeners.forEach((t=>t(e))),super.onEvent(e)}async initialized(){await this.initPromise}}async function oa(e){const t=await la()._get(ca(e));return t&&await la()._remove(ca(e)),t}function aa(e,t){var n,r;const i=function(e){const t=ua(e),n=t.link?decodeURIComponent(t.link):void 0,r=ua(n).link,i=t.deep_link_id?decodeURIComponent(t.deep_link_id):void 0;return ua(i).link||i||r||n||e}(t);if(i.includes("/__/auth/callback")){const t=ua(i),o=t.firebaseError?function(e){try{return JSON.parse(e)}catch(t){return null}}(decodeURIComponent(t.firebaseError)):null,a=null===(r=null===(n=null===o||void 0===o?void 0:o.code)||void 0===n?void 0:n.split("auth/"))||void 0===r?void 0:r[1],s=a?Yt(a):null;return s?{type:e.type,eventId:e.eventId,tenantId:e.tenantId,error:s,urlResponse:null,sessionId:null,postBody:null}:{type:e.type,eventId:e.eventId,tenantId:e.tenantId,sessionId:e.sessionId,urlResponse:i,postBody:null}}return null}function sa(){const e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let n=0;n<ra;n++){const n=Math.floor(62*Math.random());e.push(t.charAt(n))}return e.join("")}function la(){return jn(Ci)}function ca(e){return Bn("authEvent",e.config.apiKey,e.name)}function ua(e){if(!(null===e||void 0===e?void 0:e.includes("?")))return{};const[t,...n]=e.split("?");return(0,r.I9)(n.join("?"))}const da=class{constructor(){this._redirectPersistence=Ei,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=yo,this._overrideRedirectResult=po}async _initialize(e){const t=e._key();let n=this.eventManagers.get(t);return n||(n=new ia(e),this.eventManagers.set(t,n),this.attachCallbackListeners(e,n)),n}_openPopup(e){Gt(e,"operation-not-supported-in-this-environment")}async _openRedirect(e,t,n,r){!function(e){var t,n,r,i,o,a,s,l,c,u;const d=ea();Jt("function"===typeof(null===(t=null===d||void 0===d?void 0:d.universalLinks)||void 0===t?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),Jt("undefined"!==typeof(null===(n=null===d||void 0===d?void 0:d.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),Jt("function"===typeof(null===(o=null===(i=null===(r=null===d||void 0===d?void 0:d.cordova)||void 0===r?void 0:r.plugins)||void 0===i?void 0:i.browsertab)||void 0===o?void 0:o.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Jt("function"===typeof(null===(l=null===(s=null===(a=null===d||void 0===d?void 0:d.cordova)||void 0===a?void 0:a.plugins)||void 0===s?void 0:s.browsertab)||void 0===l?void 0:l.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Jt("function"===typeof(null===(u=null===(c=null===d||void 0===d?void 0:d.cordova)||void 0===c?void 0:c.InAppBrowser)||void 0===u?void 0:u.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(e);const i=await this._initialize(e);await i.initialized(),i.resetRedirect(),lo.clear(),await this._originValidation(e);const o=function(e,t){return{type:t,eventId:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,urlResponse:null,sessionId:sa(),postBody:null,tenantId:e.tenantId,error:Yt(e,"no-auth-event")}}(e,n,r);await function(e,t){return la()._set(ca(e),t)}(e,o);const a=await ta(e,o,t);return async function(e,t,n){const{cordova:r}=ea();let i=()=>{};try{await new Promise(((o,a)=>{let s=null;function l(){var e;o();const t=null===(e=r.plugins.browsertab)||void 0===e?void 0:e.close;"function"===typeof t&&t(),"function"===typeof(null===n||void 0===n?void 0:n.close)&&n.close()}function c(){s||(s=window.setTimeout((()=>{a(Yt(e,"redirect-cancelled-by-user"))}),2e3))}function u(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&c()}t.addPassiveListener(l),document.addEventListener("resume",c,!1),Gn()&&document.addEventListener("visibilitychange",u,!1),i=()=>{t.removePassiveListener(l),document.removeEventListener("resume",c,!1),document.removeEventListener("visibilitychange",u,!1),s&&window.clearTimeout(s)}}))}finally{i()}}(e,i,await na(a))}_isIframeWebStorageSupported(e,t){throw new Error("Method not implemented.")}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){const{BuildInfo:t}=ea(),n={};Qn()?n.iosBundleId=t.packageName:Gn()?n.androidPackageName=t.packageName:Gt(e,"operation-not-supported-in-this-environment"),await Ao(e,n)}(e)),this.originValidationPromises[t]}attachCallbackListeners(e,t){const{universalLinks:n,handleOpenURL:r,BuildInfo:i}=ea(),o=setTimeout((async()=>{await oa(e),t.onEvent(pa())}),500),a=async n=>{clearTimeout(o);const r=await oa(e);let i=null;r&&(null===n||void 0===n?void 0:n.url)&&(i=aa(r,n.url)),t.onEvent(i||pa())};"undefined"!==typeof n&&"function"===typeof n.subscribe&&n.subscribe(null,a);const s=r,l="".concat(i.packageName.toLowerCase(),"://");ea().handleOpenURL=async e=>{if(e.toLowerCase().startsWith(l)&&a({url:e}),"function"===typeof s)try{s(e)}catch(t){console.error(t)}}}};function pa(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:Yt("no-auth-event")}}function ha(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function fa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return!("file:"!==ha()&&"ionic:"!==ha()&&"capacitor:"!==ha()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function ma(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return(0,r.lT)()&&11===(null===document||void 0===document?void 0:document.documentMode)||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ZQ)();return/Edge\/\d+/.test(e)}(e)}function ga(){try{const e=self.localStorage,t=Ti();if(e)return e.setItem(t,"1"),e.removeItem(t),!ma()||(0,r.zW)()}catch(e){return va()&&(0,r.zW)()}return!1}function va(){return"undefined"!==typeof n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function ya(){return("http:"===ha()||"https:"===ha()||(0,r.sr)()||fa())&&!((0,r.lV)()||(0,r.Ll)())&&ga()&&!va()}function ba(){return fa()&&"undefined"!==typeof document}const wa={LOCAL:"local",NONE:"none",SESSION:"session"},xa=Jt,Ca="persistence";async function Aa(e){await e._initializationPromise;const t=Ea(),n=Bn(Ca,e.config.apiKey,e.name);t&&t.setItem(n,e._getPersistence())}function Ea(){var e;try{return(null===(e="undefined"!==typeof window?window:null)||void 0===e?void 0:e.sessionStorage)||null}catch(t){return null}}const _a=Jt;class Ta{constructor(){this.browserResolver=jn(Go),this.cordovaResolver=jn(da),this.underlyingResolver=null,this._redirectPersistence=Ei,this._completeRedirectFn=yo,this._overrideRedirectResult=po}async _initialize(e){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._initialize(e)}async _openPopup(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openPopup(e,t,n,r)}async _openRedirect(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openRedirect(e,t,n,r)}_isIframeWebStorageSupported(e,t){this.assertedUnderlyingResolver._isIframeWebStorageSupported(e,t)}_originValidation(e){return this.assertedUnderlyingResolver._originValidation(e)}get _shouldInitProactively(){return ba()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return _a(this.underlyingResolver,"internal-error"),this.underlyingResolver}async selectUnderlyingResolver(){if(this.underlyingResolver)return;const e=await async function(){return!!ba()&&new Promise((e=>{const t=setTimeout((()=>{e(!1)}),1e3);document.addEventListener("deviceready",(()=>{clearTimeout(t),e(!0)}))}))}();this.underlyingResolver=e?this.cordovaResolver:this.browserResolver}}function Sa(e){return e.unwrap()}function ka(e,t){var n;const i=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===(null===t||void 0===t?void 0:t.code)){t.resolver=new Na(e,function(e,t){var n;const i=(0,r.Ku)(e),o=t;return Jt(t.customData.operationType,i,"argument-error"),Jt(null===(n=o.customData._serverResponse)||void 0===n?void 0:n.mfaPendingCredential,i,"argument-error"),gi._fromError(i,o)}(e,t))}else if(i){const e=Pa(t),n=t;e&&(n.credential=e,n.tenantId=i.tenantId||void 0,n.email=i.email||void 0,n.phoneNumber=i.phoneNumber||void 0)}}function Pa(e){const{_tokenResponse:t}=e instanceof r.g?e.customData:e;if(!t)return null;if(!(e instanceof r.g)&&"temporaryProof"in t&&"phoneNumber"in t)return Ji.credentialFromResult(e);const n=t.providerId;if(!n||n===It.PASSWORD)return null;let i;switch(n){case It.GOOGLE:i=Dr;break;case It.FACEBOOK:i=Pr;break;case It.GITHUB:i=Fr;break;case It.TWITTER:i=Rr;break;default:const{oauthIdToken:e,oauthAccessToken:r,oauthTokenSecret:o,pendingToken:a,nonce:s}=t;return r||o||e||a?a?n.startsWith("saml.")?Nr._create(n,a):xr._fromParams({providerId:n,signInMethod:n,pendingToken:a,idToken:e,accessToken:r}):new kr(n).credential({idToken:e,accessToken:r,rawNonce:s}):null}return e instanceof r.g?i.credentialFromError(e):i.credentialFromResult(e)}function Da(e,t){return t.catch((t=>{throw t instanceof r.g&&ka(e,t),t})).then((e=>{const t=e.operationType,n=e.user;return{operationType:t,credential:(r=e,Pa(r)),additionalUserInfo:fi(e),user:Ia.getOrCreate(n)};var r}))}async function Fa(e,t){const n=await t;return{verificationId:n.verificationId,confirm:t=>Da(e,n.confirm(t))}}class Na{constructor(e,t){this.resolver=t,this.auth=e.wrapped()}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return Da(Sa(this.auth),this.resolver.resolveSignIn(e))}}class Ia{constructor(e){this._delegate=e,this.multiFactor=function(e){const t=(0,r.Ku)(e);return yi.has(t)||yi.set(t,vi._fromUser(t)),yi.get(t)}(e)}static getOrCreate(e){return Ia.USER_MAP.has(e)||Ia.USER_MAP.set(e,new Ia(e)),Ia.USER_MAP.get(e)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(e){return this._delegate.getIdTokenResult(e)}getIdToken(e){return this._delegate.getIdToken(e)}linkAndRetrieveDataWithCredential(e){return this.linkWithCredential(e)}async linkWithCredential(e){return Da(this.auth,Yr(this._delegate,e))}async linkWithPhoneNumber(e,t){return Fa(this.auth,async function(e,t,n){const i=(0,r.Ku)(e);await zr(!1,i,"phone");const o=await Zi(i.auth,t,(0,r.Ku)(n));return new Xi(o,(e=>Yr(i,e)))}(this._delegate,e,t))}async linkWithPopup(e){return Da(this.auth,async function(e,t,n){const i=(0,r.Ku)(e);Xt(i.auth,t,Tr);const o=$i(i.auth,n);return new ao(i.auth,"linkViaPopup",t,o,i).executeNotNull()}(this._delegate,e,Ta))}async linkWithRedirect(e){return await Aa(tr(this.auth)),vo(this._delegate,e,Ta)}reauthenticateAndRetrieveDataWithCredential(e){return this.reauthenticateWithCredential(e)}async reauthenticateWithCredential(e){return Da(this.auth,Kr(this._delegate,e))}reauthenticateWithPhoneNumber(e,t){return Fa(this.auth,async function(e,t,n){const i=(0,r.Ku)(e);if((0,o._isFirebaseServerApp)(i.auth.app))return Promise.reject(Qt(i.auth));const a=await Zi(i.auth,t,(0,r.Ku)(n));return new Xi(a,(e=>Kr(i,e)))}(this._delegate,e,t))}reauthenticateWithPopup(e){return Da(this.auth,async function(e,t,n){const i=(0,r.Ku)(e);if((0,o._isFirebaseServerApp)(i.auth.app))return Promise.reject(Yt(i.auth,"operation-not-supported-in-this-environment"));Xt(i.auth,t,Tr);const a=$i(i.auth,n);return new ao(i.auth,"reauthViaPopup",t,a,i).executeNotNull()}(this._delegate,e,Ta))}async reauthenticateWithRedirect(e){return await Aa(tr(this.auth)),go(this._delegate,e,Ta)}sendEmailVerification(e){return ii(this._delegate,e)}async unlink(e){return await Vr(this._delegate,e),this}updateEmail(e){return function(e,t){const n=(0,r.Ku)(e);return(0,o._isFirebaseServerApp)(n.auth.app)?Promise.reject(Qt(n.auth)):si(n,t,null)}(this._delegate,e)}updatePassword(e){return function(e,t){return si((0,r.Ku)(e),null,t)}(this._delegate,e)}updatePhoneNumber(e){return async function(e,t){const n=(0,r.Ku)(e);if((0,o._isFirebaseServerApp)(n.auth.app))return Promise.reject(Qt(n.auth));await Hr(n,t)}(this._delegate,e)}updateProfile(e){return ai(this._delegate,e)}verifyBeforeUpdateEmail(e,t){return oi(this._delegate,e,t)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Ia.USER_MAP=new WeakMap;const Ra=Jt;class Oa{constructor(e,t){if(this.app=e,t.isInitialized())return this._delegate=t.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:n}=e.options;Ra(n,"invalid-api-key",{appName:e.name}),Ra(n,"invalid-api-key",{appName:e.name});const r="undefined"!==typeof window?Ta:void 0;this._delegate=t.initialize({options:{persistence:Ma(n,e.name),popupRedirectResolver:r}}),this._delegate._updateErrorMap(Vt),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Ia.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){cr(this._delegate,e,t)}applyActionCode(e){return ti(this._delegate,e)}checkActionCode(e){return ni(this._delegate,e)}confirmPasswordReset(e,t){return async function(e,t,n){await hr((0,r.Ku)(e),{oobCode:t,newPassword:n}).catch((async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&ei(e),t}))}(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return Da(this._delegate,async function(e,t,n){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const r=tr(e),i=lr(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Or),a=await i.catch((t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&ei(e),t})),s=await jr._fromIdTokenResponse(r,"signIn",a);return await r._updateCurrentUser(s.user),s}(this._delegate,e,t))}fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return ri(this._delegate,e)}isSignInWithEmailLink(e){return function(e,t){const n=Er.parseLink(t);return"EMAIL_SIGNIN"===(null===n||void 0===n?void 0:n.operation)}(this._delegate,e)}async getRedirectResult(){Ra(ya(),this._delegate,"operation-not-supported-in-this-environment");const e=await async function(e,t){return await tr(e)._initializationPromise,yo(e,t,!1)}(this._delegate,Ta);return e?Da(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){!function(e,t){tr(e)._logFramework(t)}(this._delegate,e)}onAuthStateChanged(e,t,n){const{next:r,error:i,complete:o}=ja(e,t,n);return this._delegate.onAuthStateChanged(r,i,o)}onIdTokenChanged(e,t,n){const{next:r,error:i,complete:o}=ja(e,t,n);return this._delegate.onIdTokenChanged(r,i,o)}sendSignInLinkToEmail(e,t){return async function(e,t,n){const r=tr(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};!function(e,t){Jt(t.handleCodeInApp,r,"argument-error"),t&&$r(r,e,t)}(i,n),await lr(r,i,"getOobCode",yr)}(this._delegate,e,t)}sendPasswordResetEmail(e,t){return async function(e,t,n){const r=tr(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&$r(r,i,n),await lr(r,i,"getOobCode",vr)}(this._delegate,e,t||void 0)}async setPersistence(e){let t;switch(function(e,t){xa(Object.values(wa).includes(t),e,"invalid-persistence-type"),(0,r.lV)()?xa(t!==wa.SESSION,e,"unsupported-persistence-type"):(0,r.Ll)()?xa(t===wa.NONE,e,"unsupported-persistence-type"):va()?xa(t===wa.NONE||t===wa.LOCAL&&(0,r.zW)(),e,"unsupported-persistence-type"):xa(t===wa.NONE||ga(),e,"unsupported-persistence-type")}(this._delegate,e),e){case wa.SESSION:t=Ei;break;case wa.LOCAL:t=await jn(Bi)._isAvailable()?Bi:Ci;break;case wa.NONE:t=Ln;break;default:return Gt("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(t)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return Da(this._delegate,async function(e){var t;if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const n=tr(e);if(await n._initializationPromise,null===(t=n.currentUser)||void 0===t?void 0:t.isAnonymous)return new jr({user:n.currentUser,providerId:null,operationType:"signIn"});const r=await Or(n,{returnSecureToken:!0}),i=await jr._fromIdTokenResponse(n,"signIn",r,!0);return await n._updateCurrentUser(i.user),i}(this._delegate))}signInWithCredential(e){return Da(this._delegate,Gr(this._delegate,e))}signInWithCustomToken(e){return Da(this._delegate,Qr(this._delegate,e))}signInWithEmailAndPassword(e,t){return Da(this._delegate,function(e,t,n){return(0,o._isFirebaseServerApp)(e.app)?Promise.reject(Qt(e)):Gr((0,r.Ku)(e),_r.credential(t,n)).catch((async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&ei(e),t}))}(this._delegate,e,t))}signInWithEmailLink(e,t){return Da(this._delegate,async function(e,t,n){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const i=(0,r.Ku)(e),a=_r.credentialWithLink(t,n||tn());return Jt(a._tenantId===(i.tenantId||null),i,"tenant-id-mismatch"),Gr(i,a)}(this._delegate,e,t))}signInWithPhoneNumber(e,t){return Fa(this._delegate,async function(e,t,n){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Qt(e));const i=tr(e),a=await Zi(i,t,(0,r.Ku)(n));return new Xi(a,(e=>Gr(i,e)))}(this._delegate,e,t))}async signInWithPopup(e){return Ra(ya(),this._delegate,"operation-not-supported-in-this-environment"),Da(this._delegate,async function(e,t,n){if((0,o._isFirebaseServerApp)(e.app))return Promise.reject(Yt(e,"operation-not-supported-in-this-environment"));const r=tr(e);Xt(e,t,Tr);const i=$i(r,n);return new ao(r,"signInViaPopup",t,i).executeNotNull()}(this._delegate,e,Ta))}async signInWithRedirect(e){return Ra(ya(),this._delegate,"operation-not-supported-in-this-environment"),await Aa(this._delegate),mo(this._delegate,e,Ta)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return async function(e,t){const{data:n}=await ni((0,r.Ku)(e),t);return n.email}(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function ja(e,t,n){let r=e;"function"!==typeof e&&({next:r,error:t,complete:n}=e);const i=r;return{next:e=>i(e&&Ia.getOrCreate(e)),error:t,complete:n}}function Ma(e,t){const n=function(e,t){const n=Ea();if(!n)return[];const r=Bn(Ca,e,t);switch(n.getItem(r)){case wa.NONE:return[Ln];case wa.LOCAL:return[Bi,Ei];case wa.SESSION:return[Ei];default:return[]}}(e,t);if("undefined"===typeof self||n.includes(Bi)||n.push(Bi),"undefined"!==typeof window)for(const r of[Ci,Ei])n.includes(r)||n.push(r);return n.includes(Ln)||n.push(Ln),n}Oa.Persistence=wa;class La{constructor(){this.providerId="phone",this._delegate=new Ji(Sa(p.auth()))}static credential(e,t){return Ji.credential(e,t)}verifyPhoneNumber(e,t){return this._delegate.verifyPhoneNumber(e,t)}unwrap(){return this._delegate}}La.PHONE_SIGN_IN_METHOD=Ji.PHONE_SIGN_IN_METHOD,La.PROVIDER_ID=Ji.PROVIDER_ID;const Ba=Jt;class Ua{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.app();var r;Ba(null===(r=n.options)||void 0===r?void 0:r.apiKey,"invalid-api-key",{appName:n.name}),this._delegate=new Qi(n.auth(),e,t),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function(e){e.INTERNAL.registerComponent(new i.uA("auth-compat",(e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new Oa(t,n)}),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Rt,PASSWORD_RESET:Ot,RECOVER_EMAIL:jt,REVERT_SECOND_FACTOR_ADDITION:Mt,VERIFY_AND_CHANGE_EMAIL:Lt,VERIFY_EMAIL:Bt}},EmailAuthProvider:_r,FacebookAuthProvider:Pr,GithubAuthProvider:Fr,GoogleAuthProvider:Dr,OAuthProvider:kr,SAMLAuthProvider:Ir,PhoneAuthProvider:La,PhoneMultiFactorGenerator:Qo,RecaptchaVerifier:Ua,TwitterAuthProvider:Rr,Auth:Oa,AuthCredential:pr,Error:r.g}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion("@firebase/auth-compat","0.5.10")}(p);const Va="type.googleapis.com/google.protobuf.Int64Value",Ha="type.googleapis.com/google.protobuf.UInt64Value";function za(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function Wa(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map((e=>Wa(e)));if("function"===typeof e||"object"===typeof e)return za(e,(e=>Wa(e)));throw new Error("Data cannot be encoded in JSON: "+e)}function qa(e){if(null==e)return e;if(e["@type"])switch(e["@type"]){case Va:case Ha:{const t=Number(e.value);if(isNaN(t))throw new Error("Data cannot be decoded from JSON: "+e);return t}default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((e=>qa(e))):"function"===typeof e||"object"===typeof e?za(e,(e=>qa(e))):e}const Ga="functions",Ya={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ka extends r.g{constructor(e,t,n){super("".concat(Ga,"/").concat(e),t||""),this.details=n}}class Qa{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((e=>this.auth=e),(()=>{})),this.messaging||t.get().then((e=>this.messaging=e),(()=>{})),this.appCheck||n.get().then((e=>this.appCheck=e),(()=>{}))}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return null===e||void 0===e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.appCheck){const t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}const Xa="us-central1";class Za{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Xa,o=arguments.length>5?arguments[5]:void 0;this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new Qa(t,n,r),this.cancelAllRequests=new Promise((e=>{this.deleteService=()=>Promise.resolve(e())}));try{const e=new URL(i);this.customDomain=e.origin,this.region=Xa}catch(a){this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;if(null!==this.emulatorOrigin){const n=this.emulatorOrigin;return"".concat(n,"/").concat(t,"/").concat(this.region,"/").concat(e)}return null!==this.customDomain?"".concat(this.customDomain,"/").concat(e):"https://".concat(this.region,"-").concat(t,".cloudfunctions.net/").concat(e)}}function Ja(e,t,n){return r=>function(e,t,n,r){const i=e._url(t);return es(e,i,n,r)}(e,t,r,n||{})}async function $a(e,t,n,r){let i;n["Content-Type"]="application/json";try{i=await r(e,{method:"POST",body:JSON.stringify(t),headers:n})}catch(a){return{status:0,json:null}}let o=null;try{o=await i.json()}catch(a){}return{status:i.status,json:o}}async function es(e,t,n,r){const i={data:n=Wa(n)},o={},a=await e.contextProvider.getContext(r.limitedUseAppCheckTokens);a.authToken&&(o.Authorization="Bearer "+a.authToken),a.messagingToken&&(o["Firebase-Instance-ID-Token"]=a.messagingToken),null!==a.appCheckToken&&(o["X-Firebase-AppCheck"]=a.appCheckToken);const s=function(e){let t=null;return{promise:new Promise(((n,r)=>{t=setTimeout((()=>{r(new Ka("deadline-exceeded","deadline-exceeded"))}),e)})),cancel:()=>{t&&clearTimeout(t)}}}(r.timeout||7e4),l=await Promise.race([$a(t,i,o,e.fetchImpl),s.promise,e.cancelAllRequests]);if(s.cancel(),!l)throw new Ka("cancelled","Firebase Functions instance was deleted.");const c=function(e,t){let n,r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r;try{const e=t&&t.error;if(e){const t=e.status;if("string"===typeof t){if(!Ya[t])return new Ka("internal","internal");r=Ya[t],i=t}const o=e.message;"string"===typeof o&&(i=o),n=e.details,void 0!==n&&(n=qa(n))}}catch(o){}return"ok"===r?null:new Ka(r,i,n)}(l.status,l.json);if(c)throw c;if(!l.json)throw new Ka("internal","Response is not valid JSON object.");let u=l.json.data;if("undefined"===typeof u&&(u=l.json.result),"undefined"===typeof u)throw new Ka("internal","Response is missing data field.");return{data:qa(u)}}const ts="@firebase/functions",ns="0.11.6";function rs(e,t,n){!function(e,t,n){e.emulatorOrigin="http://".concat(t,":").concat(n)}((0,r.Ku)(e),t,n)}function is(e,t,n){return function(e,t,n){return r=>es(e,t,r,n||{})}((0,r.Ku)(e),t,n)}!function(e,t){(0,o._registerComponent)(new i.uA(Ga,((t,n)=>{let{instanceIdentifier:r}=n;const i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),a=t.getProvider("messaging-internal"),s=t.getProvider("app-check-internal");return new Za(i,o,a,s,r,e)}),"PUBLIC").setMultipleInstances(!0)),(0,o.registerVersion)(ts,ns,t),(0,o.registerVersion)(ts,ns,"esm2017")}(fetch.bind(self));class os{constructor(e,t){this.app=e,this._delegate=t,this._region=this._delegate.region,this._customDomain=this._delegate.customDomain}httpsCallable(e,t){return function(e,t,n){return Ja((0,r.Ku)(e),t,n)}(this._delegate,e,t)}httpsCallableFromURL(e,t){return is(this._delegate,e,t)}useFunctionsEmulator(e){const t=e.match("[a-zA-Z]+://([a-zA-Z0-9.-]+)(?::([0-9]+))?");if(null==t)throw new r.g("functions","No origin provided to useFunctionsEmulator()");if(null==t[2])throw new r.g("functions","Port missing in origin provided to useFunctionsEmulator()");return rs(this._delegate,t[1],Number(t[2]))}useEmulator(e,t){return rs(this._delegate,e,t)}}const as=(e,t)=>{let{instanceIdentifier:n}=t;const r=e.getProvider("app-compat").getImmediate(),i=e.getProvider("functions").getImmediate({identifier:null!==n&&void 0!==n?n:"us-central1"});return new os(r,i)};!function(){const e={Functions:os};p.INTERNAL.registerComponent(new i.uA("functions-compat",as,"PUBLIC").setServiceProps(e).setMultipleInstances(!0))}(),p.registerVersion("@firebase/functions-compat","0.3.12");p.initializeApp({apiKey:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",appId:"1:420613377967:web:81b2cfb562e11bf64e695a",authDomain:"flowty-prod.firebaseapp.com",measurementId:"G-GSDNE57K7S",messagingSenderId:"420613377967",projectId:"flowty-prod",storageBucket:"flowty-prod.appspot.com"});const ss=p.storage(),ls=p.firestore(),cs=p.auth(),us=p.functions(),ds=p.firestore();"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_USE_EMULATOR&&(console.log("Using firebase emulator"),ls.useEmulator("localhost",8081),cs.useEmulator("http://localhost:9099"),us.useEmulator("localhost",5001),ds.useEmulator("localhost",8081))},36597:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(76081),i=n(10514),o=n(61462);const a=e=>{const[t,n]=(0,o.useState)(null),a=(0,o.useCallback)((async()=>{if(e===i.SupportedTokens.FLOW){const e=await(0,r.d)(i.SupportedTokens.FLOW);n(e)}else n(null)}),[e]);return(0,o.useEffect)((()=>{a()}),[e]),t}},49098:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(10514),i=n(96321),o=n(48231),a=n(78273);const s=async e=>{var t,n,s,l;let c=null===e||void 0===e||null===(t=e.nftView)||void 0===t||null===(n=t.collectionData)||void 0===n||null===(s=n.storagePath)||void 0===s?void 0:s.identifier;if(c)return c;if(await o.su.api.refreshMetadata((0,r.getNftId)(e)),!c){var u,d,p;const t=(0,r.nftTypeToContractID)(e.type);let n;try{n=await i.db.collection("flowNFTContract").doc(t).get()}catch(h){a.o.track("ERROR_FIREBASE_GET_ACCOUNT_GLOBAL_ALERT",{e:h})}n&&!n.exists&&a.o.track("missing contract to supplement missing metadata on nft");c=null===(d=(null===(u=n)||void 0===u?void 0:u.data()).collectionData)||void 0===d||null===(p=d.storagePath)||void 0===p?void 0:p.identifier}return null!==(l=c)&&void 0!==l?l:""}},76081:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(96321),i=n(89425);const o=async e=>{(0,i.t)("getTokenSpotPrice",e);const t=await r.db.collection("spotPrice").where("symbol","==",e).orderBy("time","desc").limit(1).get();if(t.empty||1!==t.docs.length||!t.docs[0].exists)return(0,i.t)("no spot price found"),{currency:"USD",symbol:e,time:new Date(Date.now()),value:1};const{docs:n}=t;return n[0].data()}},14146:(e,t,n)=>{"use strict";n.d(t,{r:()=>s,t:()=>a});var r=n(96321),i=n(10514),o=n(78273);const a=async e=>{let{nftType:t,nftId:n}=e;const a=(0,i.nftTypeAndIdToLocationData)(t,n),s=(0,i.getNFTIdentifier)(a);try{return(await r.db.collection("flowNFT").doc(s).get()).data()}catch(l){return o.o.track("ERROR_FIREBASE_FETCH_NFT",{e:l}),null}},s=async e=>{let{collectionAddress:t,collectionName:n}=e;return(await r.db.collection("flowNFTContract").doc("".concat(t,".").concat(n)).get()).data()}},89425:(e,t,n)=>{"use strict";n.d(t,{_:()=>i,t:()=>r});const r=function(){},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error(t)}},78273:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(65747),i=n.n(r),o=n(92838);i().init(o.en);const a={alias:e=>{i().alias(e)},identify:e=>{i().identify(e)},people:{set:e=>{i().people.set(e)}},track:(e,t)=>{i().track(e,t)},track_links:(e,t)=>{i().track_links(e,t)}}},67625:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,z:()=>i});const r=(e,t,n,r)=>{var i;if(!e||!e.length)return"";if("string"===typeof e[0])return e[0];const o=e;if(t&&n){const e="".concat(n).concat(t,"CollectionProviderForFlowty"),r=o.find((t=>t.identifier.includes(e)));if(r)return r.identifier}const a=o.find((e=>e.identifier.includes("ForFlowty")));if(a)return a.identifier;if(r){const e=o.find((e=>e.identifier.includes(r)));if(e)return e.identifier}return(null===o||void 0===o||null===(i=o[0])||void 0===i?void 0:i.identifier)||""},i=(e,t,n)=>{var r;if(!e||!e.length)return"";if(t&&n){const r="".concat(n).concat(t,"FtProviderForFlowty"),i=e.find((e=>e.identifier.includes(r)));if(i)return i.identifier}const i=e.find((e=>e.identifier.includes("ForFlowty")));return i?i.identifier:(null===e||void 0===e||null===(r=e[0])||void 0===r?void 0:r.identifier)||""}},13090:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(83170);const i=e=>{({...e}).target.src=r.A}},34630:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(78273);const i=e=>{const t=e.target.play();void 0!==t&&t.then((e=>{})).catch((e=>r.o.track("ERROR_PLAYING_NFT_VIDEO",{error:e})))}},92838:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>c,BN:()=>S,HT:()=>_,I4:()=>w,KS:()=>o,Mu:()=>A,SB:()=>g,SE:()=>s,Sp:()=>f,Sw:()=>v,Vv:()=>P,Zu:()=>E,bo:()=>h,cb:()=>C,db:()=>l,en:()=>b,hr:()=>T,hx:()=>d,j$:()=>y,kO:()=>x,l8:()=>D,oT:()=>p,pG:()=>a,zp:()=>k});var r=n(10514);const i=e=>{const t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}[e];if(void 0===t)throw new Error("Missing environment variable: ".concat(e));return t},o=i("REACT_APP_ACCESS_API"),a=null!==o&&void 0!==o&&o.includes("mainnet")?"mainnet":null!==o&&void 0!==o&&o.includes("testnet")?"testnet":"emulator",s=!0,l=!0,c=null===o||void 0===o?void 0:o.includes("mainnet"),u=c?"A.a45ead1cf1ca9eda.FlowRewards.NFT":"A.2e7cfb413f04382f.FlowRewards.NFT",d=e=>e===u,p=!0,h=!0,f=20,m=(null===o||void 0===o?void 0:o.includes("localhost"))||(null===o||void 0===o?void 0:o.includes("127.0.0.1")),g=!0,v=i("REACT_APP_API_URL"),y=i("REACT_APP_STRAPI_URL"),b="b17ea6f8cf14401cd0282da7c49532b0",w=c?r.FLOW_SCAN_TX_MAINNET_URL:r.FLOW_SCAN_TX_TESTNET_URL,x="https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",C=24,A=.05,E=0,_="USDC",T=!0,S=c?"0x0b2a3299cc857e29":m?"0xf8d6e0586b0a20c7":"0x877931736ee77cff",k=c?"0xe4cf4bdc1751c65d":m?"0xf8d6e0586b0a20c7":"0x4dfd62c88d1b6462",P=!0,D="A.".concat(S.substring(2),".TopShot.NFT")},72012:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,_:()=>a});var r=n(4377),i=n.n(r);function o(e){return a(e,{shouldUseDecimals:!0})}function a(e,t){var n;const r=null!==(n=null===t||void 0===t?void 0:t.shouldUseDecimals)&&void 0!==n&&n;if(!e)return"";const o=Math.round(100*e)/100;switch(!0){case String(o.toFixed(2)).replace(/\./g,"").length<6||e<1:return i()(o).format(r?"0,0.00":"0,0");case String(o.toFixed(2)).replace(/\./g,"").length<9:const t=o/1e3;return"".concat(i()(t).format("0,0.00"),"K");case String(o.toFixed(2)).replace(/\./g,"").length>=9:const n=o/1e6;return"".concat(i()(n).format("0,0.00"),"M");default:return""}}},80081:(e,t,n)=>{"use strict";n.d(t,{fS:()=>gd,Ix:()=>pu,H6:()=>Jc,T1:()=>Hc,Wq:()=>wd,uY:()=>hu,W6:()=>M,Ci:()=>mu,YQ:()=>xd,NJ:()=>Cd,Dc:()=>J,GA:()=>Vd,cm:()=>Ft,K$:()=>ie,FA:()=>re,lo:()=>jc,bI:()=>R,qG:()=>xt,qi:()=>D,c8:()=>Nc,gS:()=>Od,Uo:()=>$u,C3:()=>Kd,hq:()=>Yd,me:()=>ou,rJ:()=>Wc,Cs:()=>qc,vN:()=>Uc,kd:()=>Rd,CL:()=>qd,LA:()=>lu,H9:()=>Gc,ol:()=>nu,Q5:()=>ru,Os:()=>su,FD:()=>ud,rf:()=>cd,Ws:()=>eu,z6:()=>Ld,x7:()=>_d,nY:()=>Sd,_e:()=>kd,GG:()=>Pd,kU:()=>Dd,Rr:()=>Fd,GV:()=>Qd,AB:()=>rd,$1:()=>id,po:()=>cu,St:()=>uu,aQ:()=>jd,FC:()=>Md,or:()=>Ju,My:()=>td,P:()=>Ku,B:()=>Kc,yx:()=>Yc,c4:()=>Wd,O5:()=>Gd,BN:()=>Nd,He:()=>S,lN:()=>Ed,HM:()=>sd,EO:()=>ad,mZ:()=>Id,iB:()=>au,_M:()=>Xu});var r,i,o=n(88729),a=n(35877),s=n(76096),l=n(75805),c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},u={};(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var o=e.g[3],a=t+(o^n&(i^o))+r[0]+3614090360&4294967295;a=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=n+(a<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^o&(n^i))+r[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(n^i^o)+r[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(i^(n|~o))+r[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~o))+r[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~o))+r[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[13]+1309151649&4294967295)<<21&4294967295|a>>>11))+((o=(t=n+((a=t+(i^(n|~o))+r[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((i=o+((a=i+(t^(o|~n))+r[2]+718787259&4294967295)<<15&4294967295|a>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+o&4294967295}function o(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var o=0|e[i];r&&o==t||(n[i]=o,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}(t,(function(){this.blockSize=-1})),t.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,i=this.B,o=this.h,a=0;a<t;){if(0==o)for(;a<=r;)n(this,e,a),a+=this.blockSize;if("string"===typeof e){for(;a<t;)if(i[o++]=e.charCodeAt(a++),o==this.blockSize){n(this,i),o=0;break}}else for(;a<t;)if(i[o++]=e[a++],o==this.blockSize){n(this,i),o=0;break}}this.h=o,this.o+=t},t.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var a={};function s(e){return-128<=e&&128>e?function(e,t){var n=a;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(e){return new o([0|e],0>e?-1:0)})):new o([0|e],0>e?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return c;if(0>e)return m(l(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new o(t,0)}var c=s(0),d=s(1),p=s(16777216);function h(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function f(e){return-1==e.h}function m(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new o(n,~e.h).add(d)}function g(e,t){return e.add(m(t))}function v(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function b(e,t){if(h(t))throw Error("division by zero");if(h(e))return new y(c,c);if(f(e))return t=b(m(e),t),new y(m(t.g),m(t.h));if(f(t))return t=b(e,m(t)),new y(m(t.g),t.h);if(30<e.g.length){if(f(e)||f(t))throw Error("slowDivide_ only works with positive integers.");for(var n=d,r=t;0>=r.l(e);)n=w(n),r=w(r);var i=x(n,1),o=x(r,1);for(r=x(r,2),n=x(n,2);!h(r);){var a=o.add(r);0>=a.l(e)&&(i=i.add(n),o=a),r=x(r,1),n=x(n,1)}return t=g(e,i.j(t)),new y(i,t)}for(i=c;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),a=(o=l(n)).j(t);f(a)||0<a.l(e);)a=(o=l(n-=r)).j(t);h(o)&&(o=d),i=i.add(o),e=g(e,a)}return new y(i,e)}function w(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new o(n,e.h)}function x(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,i=[],a=0;a<r;a++)i[a]=0<t?e.i(a+n)>>>t|e.i(a+n+1)<<32-t:e.i(a+n);return new o(i,e.h)}(e=o.prototype).m=function(){if(f(this))return-m(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(h(this))return"0";if(f(this))return"-"+m(this).toString(e);for(var t=l(Math.pow(e,6)),n=this,r="";;){var i=b(n,t).g,o=((0<(n=g(n,i.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(h(n=i))return o+r;for(;6>o.length;)o="0"+o;r=o+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return f(e=g(this,e))?-1:h(e)?0:1},e.abs=function(){return f(this)?m(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,i=0;i<=t;i++){var a=r+(65535&this.i(i))+(65535&e.i(i)),s=(a>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=s>>>16,a&=65535,s&=65535,n[i]=s<<16|a}return new o(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(h(this)||h(e))return c;if(f(this))return f(e)?m(this).j(m(e)):m(m(this).j(e));if(f(e))return m(this.j(m(e)));if(0>this.l(p)&&0>e.l(p))return l(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<e.g.length;i++){var a=this.i(r)>>>16,s=65535&this.i(r),u=e.i(i)>>>16,d=65535&e.i(i);n[2*r+2*i]+=s*d,v(n,2*r+2*i),n[2*r+2*i+1]+=a*d,v(n,2*r+2*i+1),n[2*r+2*i+1]+=s*u,v(n,2*r+2*i+1),n[2*r+2*i+2]+=a*u,v(n,2*r+2*i+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new o(n,0)},e.A=function(e){return b(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new o(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new o(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new o(n,this.h^e.h)},t.prototype.digest=t.prototype.v,t.prototype.reset=t.prototype.s,t.prototype.update=t.prototype.u,i=u.Md5=t,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=l,o.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return m(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=l(Math.pow(n,8)),i=c,o=0;o<t.length;o+=8){var a=Math.min(8,t.length-o),s=parseInt(t.substring(o,o+a),n);8>a?(a=l(Math.pow(n,a)),i=i.j(a).add(l(s))):i=(i=i.j(r)).add(l(s))}return i},r=u.Integer=o}).apply("undefined"!==typeof c?c:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var d,p,h,f,m,g,v,y,b,w="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},x={};(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof w&&w];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,r){if(r)e:{var i=n;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];if(!(a in i))break e;i=i[a]}(r=r(o=i[e=e[e.length-1]]))!=o&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}("Array.prototype.values",(function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,(function(e,t){return t}))}}));var r=r||{},i=this||self;function o(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function a(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function s(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function c(e,t,n){return(c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?s:l).apply(null,arguments)}function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function C(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function A(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function _(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(o(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let i=0;i<r;i++)e[n+i]=t[i]}else e.push(t)}}function T(e){return/^[\s\xa0]*$/.test(e)}function S(){var e=i.navigator;return e&&(e=e.userAgent)?e:""}function k(e){return k[" "](e),e}k[" "]=function(){};var P=-1!=S().indexOf("Gecko")&&!(-1!=S().toLowerCase().indexOf("webkit")&&-1==S().indexOf("Edge"))&&!(-1!=S().indexOf("Trident")||-1!=S().indexOf("MSIE"))&&-1==S().indexOf("Edge");function D(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function F(e){const t={};for(const n in e)t[n]=e[n];return t}const N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function I(e,t){let n,r;for(let i=1;i<arguments.length;i++){for(n in r=arguments[i],r)e[n]=r[n];for(let t=0;t<N.length;t++)n=N[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function R(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function O(e){i.setTimeout((()=>{throw e}),0)}function j(){var e=V;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var M=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new L),(e=>e.reset()));class L{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let B,U=!1,V=new class{constructor(){this.h=this.g=null}add(e,t){const n=M.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},H=()=>{const e=i.Promise.resolve(void 0);B=()=>{e.then(z)}};var z=()=>{for(var e;e=j();){try{e.h.call(e.g)}catch(n){O(n)}var t=M;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}U=!1};function W(){this.s=this.s,this.C=this.C}function q(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}W.prototype.s=!1,W.prototype.ma=function(){this.s||(this.s=!0,this.N())},W.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},q.prototype.h=function(){this.defaultPrevented=!0};var G=function(){if(!i.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};i.addEventListener("test",e,t),i.removeEventListener("test",e,t)}catch(n){}return e}();function Y(e,t){if(q.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(P){e:{try{k(t.nodeName);var i=!0;break e}catch(o){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:K[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&Y.aa.h.call(this)}}C(Y,q);var K={2:"touch",3:"pen",4:"mouse"};Y.prototype.h=function(){Y.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var Q="closure_listenable_"+(1e6*Math.random()|0),X=0;function Z(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++X,this.da=this.fa=!1}function J(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function $(e){this.src=e,this.g={},this.h=0}function ee(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],o=Array.prototype.indexOf.call(i,t,void 0);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(J(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function te(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.da&&o.listener==t&&o.capture==!!n&&o.ha==r)return i}return-1}$.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var a=te(e,t,r,i);return-1<a?(t=e[a],n||(t.fa=!1)):((t=new Z(t,this.src,o,!!r,i)).fa=n,e.push(t)),t};var ne="closure_lm_"+(1e6*Math.random()|0),re={};function ie(e,t,n,r,i){if(r&&r.once)return ae(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)ie(e,t[o],n,r,i);return null}return n=he(n),e&&e[Q]?e.K(t,n,a(r)?!!r.capture:!!r,i):oe(e,t,n,!1,r,i)}function oe(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var s=a(i)?!!i.capture:!!i,l=de(e);if(l||(e[ne]=l=new $(e)),(n=l.add(t,n,r,s,o)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=ue;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)G||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ce(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function ae(e,t,n,r,i){if(Array.isArray(t)){for(var o=0;o<t.length;o++)ae(e,t[o],n,r,i);return null}return n=he(n),e&&e[Q]?e.L(t,n,a(r)?!!r.capture:!!r,i):oe(e,t,n,!0,r,i)}function se(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)se(e,t[o],n,r,i);else r=a(r)?!!r.capture:!!r,n=he(n),e&&e[Q]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=te(o=e.g[t],n,r,i))&&(J(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.g[t],e.h--)))):e&&(e=de(e))&&(t=e.g[t.toString()],e=-1,t&&(e=te(t,n,r,i)),(n=-1<e?t[e]:null)&&le(n))}function le(e){if("number"!==typeof e&&e&&!e.da){var t=e.src;if(t&&t[Q])ee(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ce(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=de(t))?(ee(n,e),0==n.h&&(n.src=null,t[ne]=null)):J(e)}}}function ce(e){return e in re?re[e]:re[e]="on"+e}function ue(e,t){if(e.da)e=!0;else{t=new Y(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&le(e),e=n.call(r,t)}return e}function de(e){return(e=e[ne])instanceof $?e:null}var pe="__closure_events_fn_"+(1e9*Math.random()>>>0);function he(e){return"function"===typeof e?e:(e[pe]||(e[pe]=function(t){return e.handleEvent(t)}),e[pe])}function fe(){W.call(this),this.i=new $(this),this.M=this,this.F=null}function me(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"===typeof t)t=new q(t,e);else if(t instanceof q)t.target=t.target||e;else{var i=t;I(t=new q(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.g=n[o];i=ge(a,r,!0,t)&&i}if(i=ge(a=t.g=e,r,!0,t)&&i,i=ge(a,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=ge(a=t.g=n[o],r,!1,t)&&i}function ge(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.da&&a.capture==n){var s=a.listener,l=a.ha||a.src;a.fa&&ee(e.i,a),i=!1!==s.call(l,r)&&i}}return i&&!r.defaultPrevented}function ve(e,t,n){if("function"===typeof e)n&&(e=c(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=c(e.handleEvent,e)}return 2147483647<Number(t)?-1:i.setTimeout(e,t||0)}function ye(e){e.g=ve((()=>{e.g=null,e.i&&(e.i=!1,ye(e))}),e.l);const t=e.h;e.h=null,e.m.apply(null,t)}C(fe,W),fe.prototype[Q]=!0,fe.prototype.removeEventListener=function(e,t,n,r){se(this,e,t,n,r)},fe.prototype.N=function(){if(fe.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)J(n[r]);delete t.g[e],t.h--}}this.F=null},fe.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},fe.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class be extends W{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:ye(this)}N(){super.N(),this.g&&(i.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function we(e){W.call(this),this.h=e,this.g={}}C(we,W);var xe=[];function Ce(e){D(e.g,(function(e,t){this.g.hasOwnProperty(t)&&le(e)}),e),e.g={}}we.prototype.N=function(){we.aa.N.call(this),Ce(this)},we.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Ae=i.JSON.stringify,Ee=i.JSON.parse,_e=class{stringify(e){return i.JSON.stringify(e,void 0)}parse(e){return i.JSON.parse(e,void 0)}};function Te(){}function Se(e){return e.h||(e.h=e.i())}function ke(){}Te.prototype.h=null;var Pe={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function De(){q.call(this,"d")}function Fe(){q.call(this,"c")}C(De,q),C(Fe,q);var Ne={},Ie=null;function Re(){return Ie=Ie||new fe}function Oe(e){q.call(this,Ne.La,e)}function je(e){const t=Re();me(t,new Oe(t))}function Me(e,t){q.call(this,Ne.STAT_EVENT,e),this.stat=t}function Le(e){const t=Re();me(t,new Me(t,e))}function Be(e,t){q.call(this,Ne.Ma,e),this.size=t}function Ue(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return i.setTimeout((function(){e()}),t)}function Ve(){this.g=!0}function He(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return Ae(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}Ne.La="serverreachability",C(Oe,q),Ne.STAT_EVENT="statevent",C(Me,q),Ne.Ma="timingevent",C(Be,q),Ve.prototype.xa=function(){this.g=!1},Ve.prototype.info=function(){};var ze,We={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},qe={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function Ge(){}function Ye(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new we(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Ke}function Ke(){this.i=null,this.g="",this.h=!1}C(Ge,Te),Ge.prototype.g=function(){return new XMLHttpRequest},Ge.prototype.i=function(){return{}},ze=new Ge;var Qe={},Xe={};function Ze(e,t,n){e.L=1,e.v=At(yt(t)),e.m=n,e.P=!0,Je(e,null)}function Je(e,t){e.F=Date.now(),tt(e),e.A=yt(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),Mt(n.i,"t",r),e.C=0,n=e.j.J,e.h=new Ke,e.g=_n(e.j,n?t:null,!e.m),0<e.O&&(e.M=new be(c(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var i="readystatechange";Array.isArray(i)||(i&&(xe[0]=i.toString()),i=xe);for(var o=0;o<i.length;o++){var a=ie(n,i[o],r||t.handleEvent,!1,t.h||t);if(!a)break;t.g[a.key]=a}t=e.H?F(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),je(),function(e,t,n,r,i,o){e.info((function(){if(e.g)if(o)for(var a="",s=o.split("&"),l=0;l<s.length;l++){var c=s[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");a=2<=d.length&&"type"==d[1]?a+(u+"=")+c+"&":a+(u+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a}))}(e.i,e.u,e.A,e.l,e.R,e.m)}function $e(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function et(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Xe:(n=Number(t.substring(n,r)),isNaN(n)?Qe:(r+=1)+n>t.length?Xe:(t=t.slice(r,r+n),e.C=r+n,t))}function tt(e){e.S=Date.now()+e.I,nt(e,e.I)}function nt(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=Ue(c(e.ba,e),t)}function rt(e){e.B&&(i.clearTimeout(e.B),e.B=null)}function it(e){0==e.j.G||e.J||wn(e.j,e)}function ot(e){rt(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,Ce(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function at(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||dt(n.h,e)))if(!e.K&&dt(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(u){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;bn(n),cn(n)}gn(n),Le(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&0==n.v&&!n.C&&(n.C=Ue(c(n.Za,n),6e3));if(1>=ut(n.h)&&n.ca){try{n.ca()}catch(u){}n.ca=void 0}}else Cn(n,11)}else if((e.K||n.g==e)&&bn(n),!T(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){let c=i[t];if(n.T=c[0],c=c[1],2==n.G)if("c"==c[0]){n.K=c[1],n.ia=c[2];const t=c[3];null!=t&&(n.la=t,n.j.info("VER="+n.la));const i=c[4];null!=i&&(n.Aa=i,n.j.info("SVER="+n.Aa));const u=c[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.L=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var o=r.h;o.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(o.j=o.l,o.g=new Set,o.h&&(pt(o,o.h),o.h=null))}if(r.D){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.ya=e,Ct(r.I,r.D,e))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms"));var a=e;if((r=n).qa=En(r,r.J?r.ia:null,r.W),a.K){ht(r.h,a);var s=a,l=r.L;l&&(s.I=l),s.B&&(rt(s),tt(s)),r.g=a}else mn(r);0<n.i.length&&dn(n)}else"stop"!=c[0]&&"close"!=c[0]||Cn(n,7);else 3==n.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?Cn(n,7):ln(n):"noop"!=c[0]&&n.l&&n.l.ta(c),n.v=0)}je()}catch(u){}}Ye.prototype.ca=function(e){e=e.target;const t=this.M;t&&3==rn(e)?t.j():this.Y(e)},Ye.prototype.Y=function(e){try{if(e==this.g)e:{const p=rn(this.g);var t=this.g.Ba();this.g.Z();if(!(3>p)&&(3!=p||this.g&&(this.h.h||this.g.oa()||on(this.g)))){this.J||4!=p||7==t||je(),rt(this);var n=this.g.Z();this.X=n;t:if($e(this)){var r=on(this.g);e="";var o=r.length,a=4==rn(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){ot(this),it(this);var s="";break t}this.h.i=new i.TextDecoder}for(t=0;t<o;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(a&&t==o-1)});r.length=0,this.h.g+=e,this.C=0,s=this.h.g}else s=this.g.oa();if(this.o=200==n,function(e,t,n,r,i,o,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a}))}(this.i,this.u,this.A,this.l,this.R,p,n),this.o){if(this.T&&!this.K){t:{if(this.g){var l,c=this.g;if((l=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!T(l)){var u=l;break t}}u=null}if(!(n=u)){this.o=!1,this.s=3,Le(12),ot(this),it(this);break e}He(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,at(this,n)}if(this.P){let e;for(n=!0;!this.J&&this.C<s.length;){if(e=et(this,s),e==Xe){4==p&&(this.s=4,Le(14),n=!1),He(this.i,this.l,null,"[Incomplete Response]");break}if(e==Qe){this.s=4,Le(15),He(this.i,this.l,s,"[Invalid Chunk]"),n=!1;break}He(this.i,this.l,e,null),at(this,e)}if($e(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=p||0!=s.length||this.h.h||(this.s=1,Le(16),n=!1),this.o=this.o&&n,n){if(0<s.length&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.ba&&!d.M&&(d.j.info("Great, no buffering proxy detected. Bytes received: "+s.length),vn(d),d.M=!0,Le(11))}}else He(this.i,this.l,s,"[Invalid Chunked Response]"),ot(this),it(this)}else He(this.i,this.l,s,null),at(this,s);4==p&&ot(this),this.o&&!this.J&&(4==p?wn(this.j,this):(this.o=!1,tt(this)))}else(function(e){const t={};e=(e.g&&2<=rn(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(T(e[r]))continue;var n=R(e[r]);const i=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const o=t[i]||[];t[i]=o,o.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,(function(e){return e.join(", ")}))})(this.g),400==n&&0<s.indexOf("Unknown SID")?(this.s=3,Le(12)):(this.s=0,Le(13)),ot(this),it(this)}}}catch(p){}},Ye.prototype.cancel=function(){this.J=!0,ot(this)},Ye.prototype.ba=function(){this.B=null;const e=Date.now();0<=e-this.S?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.i,this.A),2!=this.L&&(je(),Le(17)),ot(this),this.s=2,it(this)):nt(this,this.S-e)};var st=class{constructor(e,t){this.g=e,this.map=t}};function lt(e){this.l=e||10,i.PerformanceNavigationTiming?e=0<(e=i.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(i.chrome&&i.chrome.loadTimes&&i.chrome.loadTimes()&&i.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function ct(e){return!!e.h||!!e.g&&e.g.size>=e.j}function ut(e){return e.h?1:e.g?e.g.size:0}function dt(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function pt(e,t){e.g?e.g.add(t):e.h=t}function ht(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function ft(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.D);return t}return A(e.i)}function mt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(o(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(o(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");if(o(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}lt.prototype.cancel=function(){if(this.i=ft(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var gt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function vt(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof vt){this.h=e.h,bt(this,e.j),this.o=e.o,this.g=e.g,wt(this,e.s),this.l=e.l;var t=e.i,n=new It;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),xt(this,n),this.m=e.m}else e&&(t=String(e).match(gt))?(this.h=!1,bt(this,t[1]||"",!0),this.o=Et(t[2]||""),this.g=Et(t[3]||"",!0),wt(this,t[4]),this.l=Et(t[5]||"",!0),xt(this,t[6]||"",!0),this.m=Et(t[7]||"")):(this.h=!1,this.i=new It(null,this.h))}function yt(e){return new vt(e)}function bt(e,t,n){e.j=n?Et(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function wt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function xt(e,t,n){t instanceof It?(e.i=t,function(e,t){t&&!e.j&&(Rt(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Ot(this,t),Mt(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=_t(t,Ft)),e.i=new It(t,e.h))}function Ct(e,t,n){e.i.set(t,n)}function At(e){return Ct(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Et(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function _t(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Tt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Tt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}vt.prototype.toString=function(){var e=[],t=this.j;t&&e.push(_t(t,kt,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(_t(t,kt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(_t(n,"/"==n.charAt(0)?Dt:Pt,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",_t(n,Nt)),e.join("")};var St,kt=/[#\/\?@]/g,Pt=/[#\?:]/g,Dt=/[#\?]/g,Ft=/[#\?@]/g,Nt=/#/g;function It(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Rt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Ot(e,t){Rt(e),t=Lt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function jt(e,t){return Rt(e),t=Lt(e,t),e.g.has(t)}function Mt(e,t,n){Ot(e,t),0<n.length&&(e.i=null,e.g.set(Lt(e,t),A(n)),e.h+=n.length)}function Lt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Bt(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(o){}}function Ut(){this.g=new _e}function Vt(e,t,n){const r=n||"";try{mt(e,(function(e,n){let i=e;a(e)&&(i=Ae(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function Ht(e){this.l=e.Ub||null,this.j=e.eb||!1}function zt(e,t){fe.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Wt(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function qt(e){e.readyState=4,e.l=null,e.j=null,e.v=null,Gt(e)}function Gt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Yt(e){let t="";return D(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function Kt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Yt(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Ct(e,t,n))}function Qt(e){fe.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=It.prototype).add=function(e,t){Rt(this),this.i=null,e=Lt(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){Rt(this),this.g.forEach((function(n,r){n.forEach((function(n){e.call(t,n,r,this)}),this)}),this)},e.na=function(){Rt(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const i=e[r];for(let e=0;e<i.length;e++)n.push(t[r])}return n},e.V=function(e){Rt(this);let t=[];if("string"===typeof e)jt(this,e)&&(t=t.concat(this.g.get(Lt(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Rt(this),this.i=null,jt(this,e=Lt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const o=encodeURIComponent(String(r)),a=this.V(r);for(r=0;r<a.length;r++){var i=o;""!==a[r]&&(i+="="+encodeURIComponent(String(a[r]))),e.push(i)}}return this.i=e.join("&")},C(Ht,Te),Ht.prototype.g=function(){return new zt(this.l,this.j)},Ht.prototype.i=(St={},function(){return St}),C(zt,fe),(e=zt.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,Gt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||i).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,qt(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Gt(this)),this.g&&(this.readyState=3,Gt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if("undefined"!==typeof i.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Wt(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?qt(this):Gt(this),3==this.readyState&&Wt(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,qt(this))},e.Qa=function(e){this.g&&(this.response=e,qt(this))},e.ga=function(){this.g&&qt(this)},e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(zt.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),C(Qt,fe);var Xt=/^https?$/i,Zt=["POST","PUT"];function Jt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,$t(e),tn(e)}function $t(e){e.A||(e.A=!0,me(e,"complete"),me(e,"error"))}function en(e){if(e.h&&"undefined"!=typeof r&&(!e.v[1]||4!=rn(e)||2!=e.Z()))if(e.u&&4==rn(e))ve(e.Ea,0,e);else if(me(e,"readystatechange"),4==rn(e)){e.h=!1;try{const r=e.Z();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var o;if(o=0===r){var a=String(e.D).match(gt)[1]||null;!a&&i.self&&i.self.location&&(a=i.self.location.protocol.slice(0,-1)),o=!Xt.test(a?a.toLowerCase():"")}n=o}if(n)me(e,"complete"),me(e,"success");else{e.m=6;try{var s=2<rn(e)?e.g.statusText:""}catch(l){s=""}e.l=s+" ["+e.Z()+"]",$t(e)}}finally{tn(e)}}}function tn(e,t){if(e.g){nn(e);const r=e.g,i=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||me(e,"ready");try{r.onreadystatechange=i}catch(n){}}}function nn(e){e.I&&(i.clearTimeout(e.I),e.I=null)}function rn(e){return e.g?e.g.readyState:0}function on(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(E){return null}}function an(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function sn(e){this.Aa=0,this.i=[],this.j=new Ve,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=an("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=an("baseRetryDelayMs",5e3,e),this.cb=an("retryDelaySeedMs",1e4,e),this.Wa=an("forwardChannelMaxRetries",2,e),this.wa=an("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new lt(e&&e.concurrentRequestLimit),this.Da=new Ut,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function ln(e){if(un(e),3==e.G){var t=e.U++,n=yt(e.I);if(Ct(n,"SID",e.K),Ct(n,"RID",t),Ct(n,"TYPE","terminate"),hn(e,n),(t=new Ye(e,e.j,t)).L=2,t.v=At(yt(n)),n=!1,i.navigator&&i.navigator.sendBeacon)try{n=i.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&i.Image&&((new Image).src=t.v,n=!0),n||(t.g=_n(t.j,null),t.g.ea(t.v)),t.F=Date.now(),tt(t)}An(e)}function cn(e){e.g&&(vn(e),e.g.cancel(),e.g=null)}function un(e){cn(e),e.u&&(i.clearTimeout(e.u),e.u=null),bn(e),e.h.cancel(),e.s&&("number"===typeof e.s&&i.clearTimeout(e.s),e.s=null)}function dn(e){if(!ct(e.h)&&!e.s){e.s=!0;var t=e.Ga;B||H(),U||(B(),U=!0),V.add(t,e),e.B=0}}function pn(e,t){var n;n=t?t.l:e.U++;const r=yt(e.I);Ct(r,"SID",e.K),Ct(r,"RID",n),Ct(r,"AID",e.T),hn(e,r),e.m&&e.o&&Kt(r,e.m,e.o),n=new Ye(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=fn(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),pt(e.h,n),Ze(n,r,t)}function hn(e,t){e.H&&D(e.H,(function(e,n){Ct(t,n,e)})),e.l&&mt({},(function(e,n){Ct(t,n,e)}))}function fn(e,t,n){n=Math.min(e.i.length,n);var r=e.l?c(e.l.Na,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let s=0;s<n;s++){let n=i[s].g;const l=i[s].map;if(n-=t,0>n)t=Math.max(0,i[s].g-100),a=!1;else try{Vt(l,e,"req"+n+"_")}catch(o){r&&r(l)}}if(a){r=e.join("&");break e}}}return e=e.i.splice(0,n),t.D=e,r}function mn(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;B||H(),U||(B(),U=!0),V.add(t,e),e.v=0}}function gn(e){return!(e.g||e.u||3<=e.v)&&(e.Y++,e.u=Ue(c(e.Fa,e),xn(e,e.v)),e.v++,!0)}function vn(e){null!=e.A&&(i.clearTimeout(e.A),e.A=null)}function yn(e){e.g=new Ye(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=yt(e.qa);Ct(t,"RID","rpc"),Ct(t,"SID",e.K),Ct(t,"AID",e.T),Ct(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&Ct(t,"TO",e.ja),Ct(t,"TYPE","xmlhttp"),hn(e,t),e.m&&e.o&&Kt(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=At(yt(t)),n.m=null,n.P=!0,Je(n,e)}function bn(e){null!=e.C&&(i.clearTimeout(e.C),e.C=null)}function wn(e,t){var n=null;if(e.g==t){bn(e),vn(e),e.g=null;var r=2}else{if(!dt(e.h,t))return;n=t.D,ht(e.h,t),r=1}if(0!=e.G)if(t.o)if(1==r){n=t.m?t.m.length:0,t=Date.now()-t.F;var i=e.B;me(r=Re(),new Be(r,n)),dn(e)}else mn(e);else if(3==(i=t.s)||0==i&&0<t.X||!(1==r&&function(e,t){return!(ut(e.h)>=e.h.j-(e.s?1:0))&&(e.s?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.B>=(e.Va?0:e.Wa))&&(e.s=Ue(c(e.Ga,e,t),xn(e,e.B)),e.B++,!0))}(e,t)||2==r&&gn(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:Cn(e,5);break;case 4:Cn(e,10);break;case 3:Cn(e,6);break;default:Cn(e,2)}}function xn(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function Cn(e,t){if(e.j.info("Error code "+t),2==t){var n=c(e.fb,e),r=e.Xa;const t=!r;r=new vt(r||"//www.google.com/images/cleardot.gif"),i.location&&"http"==i.location.protocol||bt(r,"https"),At(r),t?function(e,t){const n=new Ve;if(i.Image){const r=new Image;r.onload=u(Bt,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(Bt,n,"TestLoadImage: error",!1,t,r),r.onabort=u(Bt,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(Bt,n,"TestLoadImage: timeout",!1,t,r),i.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Ve;const n=new AbortController,r=setTimeout((()=>{n.abort(),Bt(0,0,!1,t)}),1e4);fetch(e,{signal:n.signal}).then((e=>{clearTimeout(r),e.ok?Bt(0,0,!0,t):Bt(0,0,!1,t)})).catch((()=>{clearTimeout(r),Bt(0,0,!1,t)}))}(r.toString(),n)}else Le(2);e.G=0,e.l&&e.l.sa(t),An(e),un(e)}function An(e){if(e.G=0,e.ka=[],e.l){const t=ft(e.h);0==t.length&&0==e.i.length||(_(e.ka,t),_(e.ka,e.i),e.h.i.length=0,A(e.i),e.i.length=0),e.l.ra()}}function En(e,t,n){var r=n instanceof vt?yt(n):new vt(n);if(""!=r.g)t&&(r.g=t+"."+r.g),wt(r,r.s);else{var o=i.location;r=o.protocol,t=t?t+"."+o.hostname:o.hostname,o=+o.port;var a=new vt(null);r&&bt(a,r),t&&(a.g=t),o&&wt(a,o),n&&(a.l=n),r=a}return n=e.D,t=e.ya,n&&t&&Ct(r,n,t),Ct(r,"VER",e.la),hn(e,r),r}function _n(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ca&&!e.pa?new Qt(new Ht({eb:n})):new Qt(e.pa)).Ha(e.J),t}function Tn(){}function Sn(){}function kn(e,t){fe.call(this),this.g=new sn(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!T(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!T(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Fn(this)}function Pn(e){De.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function Dn(){Fe.call(this),this.status=1}function Fn(e){this.g=e}(e=Qt.prototype).Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():ze.g(),this.v=this.o?Se(this.o):Se(ze),this.g.onreadystatechange=c(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(a){return void Jt(this,a)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var o in r)n.set(o,r[o]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find((e=>"content-type"==e.toLowerCase())),o=i.FormData&&e instanceof i.FormData,!(0<=Array.prototype.indexOf.call(Zt,t,void 0))||r||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[i,s]of n)this.g.setRequestHeader(i,s);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{nn(this),this.u=!0,this.g.send(e),this.u=!1}catch(a){Jt(this,a)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,me(this,"complete"),me(this,"abort"),tn(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tn(this,!0)),Qt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?en(this):this.bb())},e.bb=function(){en(this)},e.isActive=function(){return!!this.g},e.Z=function(){try{return 2<rn(this)?this.g.status:-1}catch(St){return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch(St){return""}},e.Oa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Ee(t)}},e.Ba=function(){return this.m},e.Ka=function(){return"string"===typeof this.l?this.l:String(this.l)},(e=sn.prototype).la=8,e.G=1,e.connect=function(e,t,n,r){Le(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=En(this,null,this.W),dn(this)},e.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;const i=new Ye(this,this.j,e);let o=this.o;if(this.S&&(o?(o=F(o),I(o,this.S)):o=this.S),null!==this.m||this.O||(i.H=o,o=null),this.P)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=fn(this,i,t),Ct(n=yt(this.I),"RID",e),Ct(n,"CVER",22),this.D&&Ct(n,"X-HTTP-Session-Id",this.D),hn(this,n),o&&(this.O?t="headers="+encodeURIComponent(String(Yt(o)))+"&"+t:this.m&&Kt(n,this.m,o)),pt(this.h,i),this.Ua&&Ct(n,"TYPE","init"),this.P?(Ct(n,"$req",t),Ct(n,"SID","null"),i.T=!0,Ze(i,n,null)):Ze(i,n,t),this.G=2}}else 3==this.G&&(e?pn(this,e):0==this.i.length||ct(this.h)||pn(this))},e.Fa=function(){if(this.u=null,yn(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=Ue(c(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Le(10),cn(this),yn(this))},e.Za=function(){null!=this.C&&(this.C=null,cn(this),gn(this),Le(19))},e.fb=function(e){e?(this.j.info("Successfully pinged google.com"),Le(2)):(this.j.info("Failed to ping google.com"),Le(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=Tn.prototype).ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){},Sn.prototype.g=function(e,t){return new kn(e,t)},C(kn,fe),kn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},kn.prototype.close=function(){ln(this.g)},kn.prototype.o=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=Ae(e),e=n);t.i.push(new st(t.Ya++,e)),3==t.G&&dn(t)},kn.prototype.N=function(){this.g.l=null,delete this.j,ln(this.g),delete this.g,kn.aa.N.call(this)},C(Pn,De),C(Dn,Fe),C(Fn,Tn),Fn.prototype.ua=function(){me(this.g,"a")},Fn.prototype.ta=function(e){me(this.g,new Pn(e))},Fn.prototype.sa=function(e){me(this.g,new Dn)},Fn.prototype.ra=function(){me(this.g,"b")},Sn.prototype.createWebChannel=Sn.prototype.g,kn.prototype.send=kn.prototype.o,kn.prototype.open=kn.prototype.m,kn.prototype.close=kn.prototype.close,b=x.createWebChannelTransport=function(){return new Sn},y=x.getStatEventTarget=function(){return Re()},v=x.Event=Ne,g=x.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},We.NO_ERROR=0,We.TIMEOUT=8,We.HTTP_ERROR=6,m=x.ErrorCode=We,qe.COMPLETE="complete",f=x.EventType=qe,ke.EventType=Pe,Pe.OPEN="a",Pe.CLOSE="b",Pe.ERROR="c",Pe.MESSAGE="d",fe.prototype.listen=fe.prototype.K,h=x.WebChannel=ke,p=x.FetchXmlHttpFactory=Ht,Qt.prototype.listenOnce=Qt.prototype.L,Qt.prototype.getLastError=Qt.prototype.Ka,Qt.prototype.getLastErrorCode=Qt.prototype.Ba,Qt.prototype.getStatus=Qt.prototype.Z,Qt.prototype.getResponseJson=Qt.prototype.Oa,Qt.prototype.getResponseText=Qt.prototype.oa,Qt.prototype.send=Qt.prototype.ea,Qt.prototype.setWithCredentials=Qt.prototype.Ha,d=x.XhrIo=Qt}).apply("undefined"!==typeof w?w:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});const C="@firebase/firestore";class A{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}A.UNAUTHENTICATED=new A(null),A.GOOGLE_CREDENTIALS=new A("google-credentials-uid"),A.FIRST_PARTY=new A("first-party-uid"),A.MOCK_USER=new A("mock-user");let E="10.12.3";const _=new s.Vy("@firebase/firestore");function T(){return _.logLevel}function S(e){_.setLogLevel(e)}function k(e){if(_.logLevel<=s.$b.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(F);_.debug("Firestore (".concat(E,"): ").concat(e),...i)}}function P(e){if(_.logLevel<=s.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(F);_.error("Firestore (".concat(E,"): ").concat(e),...i)}}function D(e){if(_.logLevel<=s.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(F);_.warn("Firestore (".concat(E,"): ").concat(e),...i)}}function F(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state";const t="FIRESTORE (".concat(E,") INTERNAL ASSERTION FAILED: ")+e;throw P(t),new Error(t)}function I(e,t){e||N()}function R(e,t){e||N()}function O(e,t){return e}const j={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class M extends l.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}class L{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class B{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class U{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(A.UNAUTHENTICATED)))}shutdown(){}}class V{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable((()=>t(this.token.user)))}shutdown(){this.changeListener=null}}class H{constructor(e){this.t=e,this.currentUser=A.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let i=new L;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new L,e.enqueueRetryable((()=>r(this.currentUser)))};const o=()=>{const t=i;e.enqueueRetryable((async()=>{await t.promise,await r(this.currentUser)}))},a=e=>{k("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),o()};this.t.onInit((e=>a(e))),setTimeout((()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?a(e):(k("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new L)}}),0),o()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i!==e?(k("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(I("string"==typeof t.accessToken),new B(t.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return I(null===e||"string"==typeof e),new A(e)}}class z{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type="FirstParty",this.user=A.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class W{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new z(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable((()=>t(A.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class q{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class G{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){const n=e=>{null!=e.error&&k("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));const n=e.token!==this.R;return this.R=e.token,k("FirebaseAppCheckTokenProvider","Received ".concat(n?"new":"existing"," token.")),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};const r=e=>{k("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.appCheck.addTokenListener(this.o)};this.A.onInit((e=>r(e))),setTimeout((()=>{if(!this.appCheck){const e=this.A.getImmediate({optional:!0});e?r(e):k("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(I("string"==typeof e.token),this.R=e.token,new q(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function Y(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}class K{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62);let n="";for(;n.length<20;){const r=Y(40);for(let i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%62))}return n}}function Q(e,t){return e<t?-1:e>t?1:0}function X(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function Z(e){return e+"\0"}class J{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new M(j.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new M(j.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new M(j.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new M(j.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return J.fromMillis(Date.now())}static fromDate(e){return J.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor(1e6*(e-1e3*t));return new J(t,n)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Q(this.nanoseconds,e.nanoseconds):Q(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class ${constructor(e){this.timestamp=e}static fromTimestamp(e){return new $(e)}static min(){return new $(new J(0,0))}static max(){return new $(new J(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class ee{constructor(e,t,n){void 0===t?t=0:t>e.length&&N(),void 0===n?n=e.length-t:n>e.length-t&&N(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===ee.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof ee?e.forEach((e=>{t.push(e)})):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.get(r),i=t.get(r);if(n<i)return-1;if(n>i)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class te extends ee{construct(e,t,n){return new te(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n){if(i.indexOf("//")>=0)throw new M(j.INVALID_ARGUMENT,"Invalid segment (".concat(i,"). Paths must not contain // in them."));e.push(...i.split("/").filter((e=>e.length>0)))}return new te(e)}static emptyPath(){return new te([])}}const ne=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class re extends ee{construct(e,t,n){return new re(e,t,n)}static isValidIdentifier(e){return ne.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),re.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new re(["__name__"])}static fromServerFormat(e){const t=[];let n="",r=0;const i=()=>{if(0===n.length)throw new M(j.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(n),n=""};let o=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new M(j.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new M(j.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(o=!o,r++):"."!==t||o?(n+=t,r++):(i(),r++)}if(i(),o)throw new M(j.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new re(t)}static emptyPath(){return new re([])}}class ie{constructor(e){this.path=e}static fromPath(e){return new ie(te.fromString(e))}static fromName(e){return new ie(te.fromString(e).popFirst(5))}static empty(){return new ie(te.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===te.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return te.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ie(new te(e.slice()))}}class oe{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}function ae(e){return e.fields.find((e=>2===e.kind))}function se(e){return e.fields.filter((e=>2!==e.kind))}oe.UNKNOWN_ID=-1;class le{constructor(e,t){this.fieldPath=e,this.kind=t}}class ce{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new ce(0,pe.min())}}function ue(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=$.fromTimestamp(1e9===r?new J(n+1,0):new J(n,r));return new pe(i,ie.empty(),t)}function de(e){return new pe(e.readTime,e.key,-1)}class pe{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new pe($.min(),ie.empty(),-1)}static max(){return new pe($.max(),ie.empty(),-1)}}function he(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=ie.comparator(e.documentKey,t.documentKey),0!==n?n:Q(e.largestBatchId,t.largestBatchId))}const fe="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class me{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function ge(e){if(e.code!==j.FAILED_PRECONDITION||e.message!==fe)throw e;k("LocalStore","Unexpectedly lost primary lease")}class ve{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)}),(e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)}))}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&N(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new ve(((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}}))}toPromise(){return new Promise(((e,t)=>{this.next(e,t)}))}wrapUserFunction(e){try{const t=e();return t instanceof ve?t:ve.resolve(t)}catch(e){return ve.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction((()=>e(t))):ve.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction((()=>e(t))):ve.reject(t)}static resolve(e){return new ve(((t,n)=>{t(e)}))}static reject(e){return new ve(((t,n)=>{n(e)}))}static waitFor(e){return new ve(((t,n)=>{let r=0,i=0,o=!1;e.forEach((e=>{++r,e.next((()=>{++i,o&&i===r&&t()}),(e=>n(e)))})),o=!0,i===r&&t()}))}static or(e){let t=ve.resolve(!1);for(const n of e)t=t.next((e=>e?ve.resolve(e):n()));return t}static forEach(e,t){const n=[];return e.forEach(((e,r)=>{n.push(t.call(this,e,r))})),this.waitFor(n)}static mapArray(e,t){return new ve(((n,r)=>{const i=e.length,o=new Array(i);let a=0;for(let s=0;s<i;s++){const l=s;t(e[l]).next((e=>{o[l]=e,++a,a===i&&n(o)}),(e=>r(e)))}}))}static doWhile(e,t){return new ve(((n,r)=>{const i=()=>{!0===e()?t().next((()=>{i()}),r):n()};i()}))}}class ye{constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.V=new L,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{t.error?this.V.reject(new Ce(e,t.error)):this.V.resolve()},this.transaction.onerror=t=>{const n=Se(t.target.error);this.V.reject(new Ce(e,n))}}static open(e,t,n,r){try{return new ye(t,e.transaction(r,n))}catch(e){throw new Ce(t,e)}}get m(){return this.V.promise}abort(e){e&&this.V.reject(e),this.aborted||(k("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}g(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new Ee(t)}}class be{constructor(e,t,n){this.name=e,this.version=t,this.p=n,12.2===be.S((0,l.ZQ)())&&P("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(e){return k("SimpleDb","Removing database:",e),_e(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!(0,l.zW)())return!1;if(be.C())return!0;const e=(0,l.ZQ)(),t=be.S(e),n=0<t&&t<10,r=we(e),i=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||n||i)}static C(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.__PRIVATE_env)||void 0===e?void 0:e.v)}static F(e,t){return e.store(t)}static S(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)}async M(e){return this.db||(k("SimpleDb","Opening database:",this.name),this.db=await new Promise(((t,n)=>{const r=indexedDB.open(this.name,this.version);r.onsuccess=e=>{const n=e.target.result;t(n)},r.onblocked=()=>{n(new Ce(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=t=>{const r=t.target.error;"VersionError"===r.name?n(new M(j.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):"InvalidStateError"===r.name?n(new M(j.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+r)):n(new Ce(e,r))},r.onupgradeneeded=e=>{k("SimpleDb",'Database "'+this.name+'" requires upgrade from version:',e.oldVersion);const t=e.target.result;this.p.O(t,r.transaction,e.oldVersion,this.version).next((()=>{k("SimpleDb","Database upgrade to version "+this.version+" complete")}))}}))),this.N&&(this.db.onversionchange=e=>this.N(e)),this.db}L(e){this.N=e,this.db&&(this.db.onversionchange=t=>e(t))}async runTransaction(e,t,n,r){const i="readonly"===t;let o=0;for(;;){++o;try{this.db=await this.M(e);const t=ye.open(this.db,e,i?"readonly":"readwrite",n),o=r(t).next((e=>(t.g(),e))).catch((e=>(t.abort(e),ve.reject(e)))).toPromise();return o.catch((()=>{})),await t.m,o}catch(e){const t=e,n="FirebaseError"!==t.name&&o<3;if(k("SimpleDb","Transaction failed with error:",t.message,"Retrying:",n),this.close(),!n)return Promise.reject(t)}}}close(){this.db&&this.db.close(),this.db=void 0}}function we(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}class xe{constructor(e){this.B=e,this.k=!1,this.q=null}get isDone(){return this.k}get K(){return this.q}set cursor(e){this.B=e}done(){this.k=!0}$(e){this.q=e}delete(){return _e(this.B.delete())}}class Ce extends M{constructor(e,t){super(j.UNAVAILABLE,"IndexedDB transaction '".concat(e,"' failed: ").concat(t)),this.name="IndexedDbTransactionError"}}function Ae(e){return"IndexedDbTransactionError"===e.name}class Ee{constructor(e){this.store=e}put(e,t){let n;return void 0!==t?(k("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(k("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),_e(n)}add(e){return k("SimpleDb","ADD",this.store.name,e,e),_e(this.store.add(e))}get(e){return _e(this.store.get(e)).next((t=>(void 0===t&&(t=null),k("SimpleDb","GET",this.store.name,e,t),t)))}delete(e){return k("SimpleDb","DELETE",this.store.name,e),_e(this.store.delete(e))}count(){return k("SimpleDb","COUNT",this.store.name),_e(this.store.count())}U(e,t){const n=this.options(e,t),r=n.index?this.store.index(n.index):this.store;if("function"==typeof r.getAll){const e=r.getAll(n.range);return new ve(((t,n)=>{e.onerror=e=>{n(e.target.error)},e.onsuccess=e=>{t(e.target.result)}}))}{const e=this.cursor(n),t=[];return this.W(e,((e,n)=>{t.push(n)})).next((()=>t))}}G(e,t){const n=this.store.getAll(e,null===t?void 0:t);return new ve(((e,t)=>{n.onerror=e=>{t(e.target.error)},n.onsuccess=t=>{e(t.target.result)}}))}j(e,t){k("SimpleDb","DELETE ALL",this.store.name);const n=this.options(e,t);n.H=!1;const r=this.cursor(n);return this.W(r,((e,t,n)=>n.delete()))}J(e,t){let n;t?n=e:(n={},t=e);const r=this.cursor(n);return this.W(r,t)}Y(e){const t=this.cursor({});return new ve(((n,r)=>{t.onerror=e=>{const t=Se(e.target.error);r(t)},t.onsuccess=t=>{const r=t.target.result;r?e(r.primaryKey,r.value).next((e=>{e?r.continue():n()})):n()}}))}W(e,t){const n=[];return new ve(((r,i)=>{e.onerror=e=>{i(e.target.error)},e.onsuccess=e=>{const i=e.target.result;if(!i)return void r();const o=new xe(i),a=t(i.primaryKey,i.value,o);if(a instanceof ve){const e=a.catch((e=>(o.done(),ve.reject(e))));n.push(e)}o.isDone?r():null===o.K?i.continue():i.continue(o.K)}})).next((()=>ve.waitFor(n)))}options(e,t){let n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const n=this.store.index(e.index);return e.H?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function _e(e){return new ve(((t,n)=>{e.onsuccess=e=>{const n=e.target.result;t(n)},e.onerror=e=>{const t=Se(e.target.error);n(t)}}))}let Te=!1;function Se(e){const t=be.S((0,l.ZQ)());if(t>=12.2&&t<13){const t="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(t)>=0){const e=new M("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '".concat(t,"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround."));return Te||(Te=!0,setTimeout((()=>{throw e}),0)),e}}return e}class ke{constructor(e,t){this.asyncQueue=e,this.Z=t,this.task=null}start(){this.X(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}X(e){k("IndexBackfiller","Scheduled in ".concat(e,"ms")),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,(async()=>{this.task=null;try{k("IndexBackfiller","Documents written: ".concat(await this.Z.ee()))}catch(e){Ae(e)?k("IndexBackfiller","Ignoring IndexedDB error during index backfill: ",e):await ge(e)}await this.X(6e4)}))}}class Pe{constructor(e,t){this.localStore=e,this.persistence=t}async ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this.persistence.runTransaction("Backfill Indexes","readwrite-primary",(t=>this.te(t,e)))}te(e,t){const n=new Set;let r=t,i=!0;return ve.doWhile((()=>!0===i&&r>0),(()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next((t=>{if(null!==t&&!n.has(t))return k("IndexBackfiller","Processing collection: ".concat(t)),this.ne(e,t,r).next((e=>{r-=e,n.add(t)}));i=!1})))).next((()=>t-r))}ne(e,t,n){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next((r=>this.localStore.localDocuments.getNextDocuments(e,t,r,n).next((n=>{const i=n.changes;return this.localStore.indexManager.updateIndexEntries(e,i).next((()=>this.re(r,n))).next((n=>(k("IndexBackfiller","Updating offset: ".concat(n)),this.localStore.indexManager.updateCollectionGroup(e,t,n)))).next((()=>i.size))}))))}re(e,t){let n=e;return t.changes.forEach(((e,t)=>{const r=de(t);he(r,n)>0&&(n=r)})),new pe(n.readTime,n.documentKey,Math.max(t.batchId,e.largestBatchId))}}class De{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ie(e),this.se=e=>t.writeSequenceNumber(e))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}function Fe(e){return null==e}function Ne(e){return 0===e&&1/e==-1/0}function Ie(e){return"number"==typeof e&&Number.isInteger(e)&&!Ne(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function Re(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=je(t)),t=Oe(e.get(n),t);return je(t)}function Oe(e,t){let n=t;const r=e.length;for(let i=0;i<r;i++){const t=e.charAt(i);switch(t){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=t}}return n}function je(e){return e+"\x01\x01"}function Me(e){const t=e.length;if(I(t>=2),2===t)return I("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),te.emptyPath();const n=t-2,r=[];let i="";for(let o=0;o<t;){const t=e.indexOf("\x01",o);switch((t<0||t>n)&&N(),e.charAt(t+1)){case"\x01":const n=e.substring(o,t);let a;0===i.length?a=n:(i+=n,a=i,i=""),r.push(a);break;case"\x10":i+=e.substring(o,t),i+="\0";break;case"\x11":i+=e.substring(o,t+1);break;default:N()}o=t+2}return new te(r)}De.oe=-1;const Le=["userId","batchId"];function Be(e,t){return[e,Re(t)]}function Ue(e,t,n){return[e,Re(t),n]}const Ve={},He=["prefixPath","collectionGroup","readTime","documentId"],ze=["prefixPath","collectionGroup","documentId"],We=["collectionGroup","readTime","prefixPath","documentId"],qe=["canonicalId","targetId"],Ge=["targetId","path"],Ye=["path","targetId"],Ke=["collectionId","parent"],Qe=["indexId","uid"],Xe=["uid","sequenceNumber"],Ze=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],Je=["indexId","uid","orderedDocumentKey"],$e=["userId","collectionPath","documentId"],et=["userId","collectionPath","largestBatchId"],tt=["userId","collectionGroup","largestBatchId"],nt=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],rt=[...nt,"documentOverlays"],it=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],ot=it,at=[...ot,"indexConfiguration","indexState","indexEntries"],st=at;class lt extends me{constructor(e,t){super(),this._e=e,this.currentSequenceNumber=t}}function ct(e,t){const n=O(e);return be.F(n._e,t)}function ut(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function dt(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function pt(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class ht{constructor(e,t){this.comparator=e,this.root=t||mt.EMPTY}insert(e,t){return new ht(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,mt.BLACK,null,null))}remove(e){return new ht(this.comparator,this.root.remove(e,this.comparator).copy(null,null,mt.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((t,n)=>(e(t,n),!1)))}toString(){const e=[];return this.inorderTraversal(((t,n)=>(e.push("".concat(t,":").concat(n)),!1))),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new ft(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new ft(this.root,e,this.comparator,!1)}getReverseIterator(){return new ft(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new ft(this.root,e,this.comparator,!0)}}class ft{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class mt{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:mt.RED,this.left=null!=r?r:mt.EMPTY,this.right=null!=i?i:mt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new mt(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return mt.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return mt.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,mt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,mt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw N();if(this.right.isRed())throw N();const e=this.left.check();if(e!==this.right.check())throw N();return e+(this.isRed()?0:1)}}mt.EMPTY=null,mt.RED=!0,mt.BLACK=!1,mt.EMPTY=new class{constructor(){this.size=0}get key(){throw N()}get value(){throw N()}get color(){throw N()}get left(){throw N()}get right(){throw N()}copy(e,t,n,r,i){return this}insert(e,t,n){return new mt(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class gt{constructor(e){this.comparator=e,this.data=new ht(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((t,n)=>(e(t),!1)))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new vt(this.data.getIterator())}getIteratorFrom(e){return new vt(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach((e=>{t=t.add(e)})),t}isEqual(e){if(!(e instanceof gt))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach((t=>{e.push(t)})),e}toString(){const e=[];return this.forEach((t=>e.push(t))),"SortedSet("+e.toString()+")"}copy(e){const t=new gt(this.comparator);return t.data=e,t}}class vt{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function yt(e){return e.hasNext()?e.getNext():void 0}class bt{constructor(e){this.fields=e,e.sort(re.comparator)}static empty(){return new bt([])}unionWith(e){let t=new gt(re.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new bt(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return X(this.fields,e.fields,((e,t)=>e.isEqual(t)))}}class wt extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}function xt(){return"undefined"!=typeof atob}class Ct{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new wt("Invalid base64 string: "+e):e}}(e);return new Ct(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new Ct(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(e){return btoa(e)}(this.binaryString)}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Q(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Ct.EMPTY_BYTE_STRING=new Ct("");const At=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Et(e){if(I(!!e),"string"==typeof e){let t=0;const n=At.exec(e);if(I(!!n),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:_t(e.seconds),nanos:_t(e.nanos)}}function _t(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Tt(e){return"string"==typeof e?Ct.fromBase64String(e):Ct.fromUint8Array(e)}function St(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function kt(e){const t=e.mapValue.fields.__previous_value__;return St(t)?kt(t):t}function Pt(e){const t=Et(e.mapValue.fields.__local_write_time__.timestampValue);return new J(t.seconds,t.nanos)}class Dt{constructor(e,t,n,r,i,o,a,s,l){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=s,this.useFetchStreams=l}}class Ft{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Ft("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Ft&&e.projectId===this.projectId&&e.database===this.database}}const Nt={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},It={nullValue:"NULL_VALUE"};function Rt(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?St(e)?4:Kt(e)?9007199254740991:10:N()}function Ot(e,t){if(e===t)return!0;const n=Rt(e);if(n!==Rt(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Pt(e).isEqual(Pt(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=Et(e.timestampValue),r=Et(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return Tt(e.bytesValue).isEqual(Tt(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return _t(e.geoPointValue.latitude)===_t(t.geoPointValue.latitude)&&_t(e.geoPointValue.longitude)===_t(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return _t(e.integerValue)===_t(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=_t(e.doubleValue),r=_t(t.doubleValue);return n===r?Ne(n)===Ne(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return X(e.arrayValue.values||[],t.arrayValue.values||[],Ot);case 10:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(ut(n)!==ut(r))return!1;for(const i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Ot(n[i],r[i])))return!1;return!0}(e,t);default:return N()}}function jt(e,t){return void 0!==(e.values||[]).find((e=>Ot(e,t)))}function Mt(e,t){if(e===t)return 0;const n=Rt(e),r=Rt(t);if(n!==r)return Q(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Q(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=_t(e.integerValue||e.doubleValue),r=_t(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return Lt(e.timestampValue,t.timestampValue);case 4:return Lt(Pt(e),Pt(t));case 5:return Q(e.stringValue,t.stringValue);case 6:return function(e,t){const n=Tt(e),r=Tt(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let i=0;i<n.length&&i<r.length;i++){const e=Q(n[i],r[i]);if(0!==e)return e}return Q(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=Q(_t(e.latitude),_t(t.latitude));return 0!==n?n:Q(_t(e.longitude),_t(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){const n=e.values||[],r=t.values||[];for(let i=0;i<n.length&&i<r.length;++i){const e=Mt(n[i],r[i]);if(e)return e}return Q(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===Nt.mapValue&&t===Nt.mapValue)return 0;if(e===Nt.mapValue)return 1;if(t===Nt.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),i=t.fields||{},o=Object.keys(i);r.sort(),o.sort();for(let a=0;a<r.length&&a<o.length;++a){const e=Q(r[a],o[a]);if(0!==e)return e;const t=Mt(n[r[a]],i[o[a]]);if(0!==t)return t}return Q(r.length,o.length)}(e.mapValue,t.mapValue);default:throw N()}}function Lt(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Q(e,t);const n=Et(e),r=Et(t),i=Q(n.seconds,r.seconds);return 0!==i?i:Q(n.nanos,r.nanos)}function Bt(e){return Ut(e)}function Ut(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=Et(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return Tt(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return ie.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return"geo(".concat(e.latitude,",").concat(e.longitude,")")}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=Ut(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const i of t)r?r=!1:n+=",",n+="".concat(i,":").concat(Ut(e.fields[i]));return n+"}"}(e.mapValue):N()}function Vt(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function Ht(e){return!!e&&"integerValue"in e}function zt(e){return!!e&&"arrayValue"in e}function Wt(e){return!!e&&"nullValue"in e}function qt(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Gt(e){return!!e&&"mapValue"in e}function Yt(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return dt(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=Yt(n))),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=Yt(e.arrayValue.values[n]);return t}return Object.assign({},e)}function Kt(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}function Qt(e){return"nullValue"in e?It:"booleanValue"in e?{booleanValue:!1}:"integerValue"in e||"doubleValue"in e?{doubleValue:NaN}:"timestampValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in e?{stringValue:""}:"bytesValue"in e?{bytesValue:""}:"referenceValue"in e?Vt(Ft.empty(),ie.empty()):"geoPointValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in e?{arrayValue:{}}:"mapValue"in e?{mapValue:{}}:N()}function Xt(e){return"nullValue"in e?{booleanValue:!1}:"booleanValue"in e?{doubleValue:NaN}:"integerValue"in e||"doubleValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in e?{stringValue:""}:"stringValue"in e?{bytesValue:""}:"bytesValue"in e?Vt(Ft.empty(),ie.empty()):"referenceValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in e?{arrayValue:{}}:"arrayValue"in e?{mapValue:{}}:"mapValue"in e?Nt:N()}function Zt(e,t){const n=Mt(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?-1:!e.inclusive&&t.inclusive?1:0}function Jt(e,t){const n=Mt(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?1:!e.inclusive&&t.inclusive?-1:0}class $t{constructor(e){this.value=e}static empty(){return new $t({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!Gt(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Yt(t)}setAll(e){let t=re.emptyPath(),n={},r=[];e.forEach(((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=Yt(e):r.push(i.lastSegment())}));const i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){const t=this.field(e.popLast());Gt(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Ot(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];Gt(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){dt(t,((t,n)=>e[t]=n));for(const r of n)delete e[r]}clone(){return new $t(Yt(this.value))}}function en(e){const t=[];return dt(e.fields,((e,n)=>{const r=new re([e]);if(Gt(n)){const e=en(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)})),new bt(t)}class tn{constructor(e,t,n,r,i,o,a){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=i,this.data=o,this.documentState=a}static newInvalidDocument(e){return new tn(e,0,$.min(),$.min(),$.min(),$t.empty(),0)}static newFoundDocument(e,t,n,r){return new tn(e,1,t,$.min(),n,r,0)}static newNoDocument(e,t){return new tn(e,2,t,$.min(),$.min(),$t.empty(),0)}static newUnknownDocument(e,t){return new tn(e,3,t,$.min(),$.min(),$t.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual($.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=$t.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=$t.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=$.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof tn&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new tn(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}class nn{constructor(e,t){this.position=e,this.inclusive=t}}function rn(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){const o=t[i],a=e.position[i];if(r=o.field.isKeyField()?ie.comparator(ie.fromName(a.referenceValue),n.key):Mt(a,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return r}function on(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!Ot(e.position[n],t.position[n]))return!1;return!0}class an{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function sn(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class ln{}class cn extends ln{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new bn(e,t,n):"array-contains"===t?new An(e,n):"in"===t?new En(e,n):"not-in"===t?new _n(e,n):"array-contains-any"===t?new Tn(e,n):new cn(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new wn(e,n):new xn(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(Mt(t,this.value)):null!==t&&Rt(this.value)===Rt(t)&&this.matchesComparison(Mt(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return N()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class un extends ln{constructor(e,t){super(),this.filters=e,this.op=t,this.ae=null}static create(e,t){return new un(e,t)}matches(e){return dn(this)?void 0===this.filters.find((t=>!t.matches(e))):void 0!==this.filters.find((t=>t.matches(e)))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function dn(e){return"and"===e.op}function pn(e){return"or"===e.op}function hn(e){return fn(e)&&dn(e)}function fn(e){for(const t of e.filters)if(t instanceof un)return!1;return!0}function mn(e){if(e instanceof cn)return e.field.canonicalString()+e.op.toString()+Bt(e.value);if(hn(e))return e.filters.map((e=>mn(e))).join(",");{const t=e.filters.map((e=>mn(e))).join(",");return"".concat(e.op,"(").concat(t,")")}}function gn(e,t){return e instanceof cn?function(e,t){return t instanceof cn&&e.op===t.op&&e.field.isEqual(t.field)&&Ot(e.value,t.value)}(e,t):e instanceof un?function(e,t){return t instanceof un&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce(((e,n,r)=>e&&gn(n,t.filters[r])),!0)}(e,t):void N()}function vn(e,t){const n=e.filters.concat(t);return un.create(n,e.op)}function yn(e){return e instanceof cn?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(Bt(e.value))}(e):e instanceof un?function(e){return e.op.toString()+" {"+e.getFilters().map(yn).join(" ,")+"}"}(e):"Filter"}class bn extends cn{constructor(e,t,n){super(e,t,n),this.key=ie.fromName(n.referenceValue)}matches(e){const t=ie.comparator(e.key,this.key);return this.matchesComparison(t)}}class wn extends cn{constructor(e,t){super(e,"in",t),this.keys=Cn("in",t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}}class xn extends cn{constructor(e,t){super(e,"not-in",t),this.keys=Cn("not-in",t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}}function Cn(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((e=>ie.fromName(e.referenceValue)))}class An extends cn{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return zt(t)&&jt(t.arrayValue,this.value)}}class En extends cn{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&jt(this.value.arrayValue,t)}}class _n extends cn{constructor(e,t){super(e,"not-in",t)}matches(e){if(jt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!jt(this.value.arrayValue,t)}}class Tn extends cn{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!zt(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>jt(this.value.arrayValue,e)))}}class Sn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.ue=null}}function kn(e){return new Sn(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null)}function Pn(e){const t=O(e);if(null===t.ue){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map((e=>mn(e))).join(","),e+="|ob:",e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(","),Fe(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map((e=>Bt(e))).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map((e=>Bt(e))).join(",")),t.ue=e}return t.ue}function Dn(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!sn(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!gn(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!on(e.startAt,t.startAt)&&on(e.endAt,t.endAt)}function Fn(e){return ie.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function Nn(e,t){return e.filters.filter((e=>e instanceof cn&&e.field.isEqual(t)))}function In(e,t,n){let r=It,i=!0;for(const o of Nn(e,t)){let e=It,t=!0;switch(o.op){case"<":case"<=":e=Qt(o.value);break;case"==":case"in":case">=":e=o.value;break;case">":e=o.value,t=!1;break;case"!=":case"not-in":e=It}Zt({value:r,inclusive:i},{value:e,inclusive:t})<0&&(r=e,i=t)}if(null!==n)for(let o=0;o<e.orderBy.length;++o)if(e.orderBy[o].field.isEqual(t)){const e=n.position[o];Zt({value:r,inclusive:i},{value:e,inclusive:n.inclusive})<0&&(r=e,i=n.inclusive);break}return{value:r,inclusive:i}}function Rn(e,t,n){let r=Nt,i=!0;for(const o of Nn(e,t)){let e=Nt,t=!0;switch(o.op){case">=":case">":e=Xt(o.value),t=!1;break;case"==":case"in":case"<=":e=o.value;break;case"<":e=o.value,t=!1;break;case"!=":case"not-in":e=Nt}Jt({value:r,inclusive:i},{value:e,inclusive:t})>0&&(r=e,i=t)}if(null!==n)for(let o=0;o<e.orderBy.length;++o)if(e.orderBy[o].field.isEqual(t)){const e=n.position[o];Jt({value:r,inclusive:i},{value:e,inclusive:n.inclusive})>0&&(r=e,i=n.inclusive);break}return{value:r,inclusive:i}}class On{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=s,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function jn(e,t,n,r,i,o,a,s){return new On(e,t,n,r,i,o,a,s)}function Mn(e){return new On(e)}function Ln(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function Bn(e){return null!==e.collectionGroup}function Un(e){const t=O(e);if(null===t.ce){t.ce=[];const e=new Set;for(const i of t.explicitOrderBy)t.ce.push(i),e.add(i.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new gt(re.comparator);return e.filters.forEach((e=>{e.getFlattenedFilters().forEach((e=>{e.isInequality()&&(t=t.add(e.field))}))})),t}(t);r.forEach((r=>{e.has(r.canonicalString())||r.isKeyField()||t.ce.push(new an(r,n))})),e.has(re.keyField().canonicalString())||t.ce.push(new an(re.keyField(),n))}return t.ce}function Vn(e){const t=O(e);return t.le||(t.le=Hn(t,Un(e))),t.le}function Hn(e,t){if("F"===e.limitType)return kn(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map((e=>{const t="desc"===e.dir?"asc":"desc";return new an(e.field,t)}));const n=e.endAt?new nn(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new nn(e.startAt.position,e.startAt.inclusive):null;return kn(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function zn(e,t){const n=e.filters.concat([t]);return new On(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function Wn(e,t,n){return new On(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function qn(e,t){return Dn(Vn(e),Vn(t))&&e.limitType===t.limitType}function Gn(e){return"".concat(Pn(Vn(e)),"|lt:").concat(e.limitType)}function Yn(e){return"Query(target=".concat(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map((e=>yn(e))).join(", "),"]")),Fe(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map((e=>function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e))).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((e=>Bt(e))).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((e=>Bt(e))).join(",")),"Target(".concat(t,")")}(Vn(e)),"; limitType=").concat(e.limitType,")")}function Kn(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ie.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of Un(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=rn(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Un(e),t))&&!(e.endAt&&!function(e,t,n){const r=rn(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Un(e),t))}(e,t)}function Qn(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Xn(e){return(t,n)=>{let r=!1;for(const i of Un(e)){const e=Zn(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}function Zn(e,t,n){const r=e.field.isKeyField()?ie.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Mt(r,i):N()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return N()}}class Jn{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[r,i]of n)if(this.equalsFn(r,e))return i}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){dt(this.inner,((t,n)=>{for(const[r,i]of n)e(r,i)}))}isEmpty(){return pt(this.inner)}size(){return this.innerSize}}const $n=new ht(ie.comparator);function er(){return $n}const tr=new ht(ie.comparator);function nr(){let e=tr;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.insert(i.key,i);return e}function rr(e){let t=tr;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function ir(){return ar()}function or(){return ar()}function ar(){return new Jn((e=>e.toString()),((e,t)=>e.isEqual(t)))}const sr=new ht(ie.comparator),lr=new gt(ie.comparator);function cr(){let e=lr;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.add(i);return e}const ur=new gt(Q);function dr(){return ur}function pr(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Ne(t)?"-0":t}}function hr(e){return{integerValue:""+e}}function fr(e,t){return Ie(t)?hr(t):pr(e,t)}class mr{constructor(){this._=void 0}}function gr(e,t,n){return e instanceof br?function(e,t){const n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&St(t)&&(t=kt(t)),t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof wr?xr(e,t):e instanceof Cr?Ar(e,t):function(e,t){const n=yr(e,t),r=_r(n)+_r(e.Pe);return Ht(n)&&Ht(e.Pe)?hr(r):pr(e.serializer,r)}(e,t)}function vr(e,t,n){return e instanceof wr?xr(e,t):e instanceof Cr?Ar(e,t):n}function yr(e,t){return e instanceof Er?function(e){return Ht(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class br extends mr{}class wr extends mr{constructor(e){super(),this.elements=e}}function xr(e,t){const n=Tr(t);for(const r of e.elements)n.some((e=>Ot(e,r)))||n.push(r);return{arrayValue:{values:n}}}class Cr extends mr{constructor(e){super(),this.elements=e}}function Ar(e,t){let n=Tr(t);for(const r of e.elements)n=n.filter((e=>!Ot(e,r)));return{arrayValue:{values:n}}}class Er extends mr{constructor(e,t){super(),this.serializer=e,this.Pe=t}}function _r(e){return _t(e.integerValue||e.doubleValue)}function Tr(e){return zt(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class Sr{constructor(e,t){this.field=e,this.transform=t}}class kr{constructor(e,t){this.version=e,this.transformResults=t}}class Pr{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Pr}static exists(e){return new Pr(void 0,e)}static updateTime(e){return new Pr(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Dr(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class Fr{}function Nr(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Hr(e.key,Pr.none()):new Mr(e.key,e.data,Pr.none());{const n=e.data,r=$t.empty();let i=new gt(re.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),i=i.add(e)}return new Lr(e.key,r,new bt(i.toArray()),Pr.none())}}function Ir(e,t,n){e instanceof Mr?function(e,t,n){const r=e.value.clone(),i=Ur(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof Lr?function(e,t,n){if(!Dr(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=Ur(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Br(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function Rr(e,t,n,r){return e instanceof Mr?function(e,t,n,r){if(!Dr(e.precondition,t))return n;const i=e.value.clone(),o=Vr(e.fieldTransforms,r,t);return i.setAll(o),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof Lr?function(e,t,n,r){if(!Dr(e.precondition,t))return n;const i=Vr(e.fieldTransforms,r,t),o=t.data;return o.setAll(Br(e)),o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((e=>e.field)))}(e,t,n,r):function(e,t,n){return Dr(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function Or(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),i=yr(r.transform,e||null);null!=i&&(null===n&&(n=$t.empty()),n.set(r.field,i))}return n||null}function jr(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&X(e,t,((e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof wr&&t instanceof wr||e instanceof Cr&&t instanceof Cr?X(e.elements,t.elements,Ot):e instanceof Er&&t instanceof Er?Ot(e.Pe,t.Pe):e instanceof br&&t instanceof br}(e.transform,t.transform)}(e,t)))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class Mr extends Fr{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class Lr extends Fr{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Br(e){const t=new Map;return e.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}})),t}function Ur(e,t,n){const r=new Map;I(e.length===n.length);for(let i=0;i<n.length;i++){const o=e[i],a=o.transform,s=t.data.field(o.field);r.set(o.field,vr(a,s,n[i]))}return r}function Vr(e,t,n){const r=new Map;for(const i of e){const e=i.transform,o=n.data.field(i.field);r.set(i.field,gr(e,o,t))}return r}class Hr extends Fr{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class zr extends Fr{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Wr{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&Ir(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=Rr(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=Rr(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=or();return this.mutations.forEach((r=>{const i=e.get(r.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=t.has(r.key)?null:a;const s=Nr(o,a);null!==s&&n.set(r.key,s),o.isValidDocument()||o.convertToNoDocument($.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),cr())}isEqual(e){return this.batchId===e.batchId&&X(this.mutations,e.mutations,((e,t)=>jr(e,t)))&&X(this.baseMutations,e.baseMutations,((e,t)=>jr(e,t)))}}class qr{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){I(e.mutations.length===n.length);let r=sr;const i=e.mutations;for(let o=0;o<i.length;o++)r=r.insert(i[o].key,n[o].version);return new qr(e,t,n,r)}}class Gr{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}class Yr{constructor(e,t){this.count=e,this.unchangedNames=t}}var Kr,Qr;function Xr(e){switch(e){default:return N();case j.CANCELLED:case j.UNKNOWN:case j.DEADLINE_EXCEEDED:case j.RESOURCE_EXHAUSTED:case j.INTERNAL:case j.UNAVAILABLE:case j.UNAUTHENTICATED:return!1;case j.INVALID_ARGUMENT:case j.NOT_FOUND:case j.ALREADY_EXISTS:case j.PERMISSION_DENIED:case j.FAILED_PRECONDITION:case j.ABORTED:case j.OUT_OF_RANGE:case j.UNIMPLEMENTED:case j.DATA_LOSS:return!0}}function Zr(e){if(void 0===e)return P("GRPC error has no .code"),j.UNKNOWN;switch(e){case Kr.OK:return j.OK;case Kr.CANCELLED:return j.CANCELLED;case Kr.UNKNOWN:return j.UNKNOWN;case Kr.DEADLINE_EXCEEDED:return j.DEADLINE_EXCEEDED;case Kr.RESOURCE_EXHAUSTED:return j.RESOURCE_EXHAUSTED;case Kr.INTERNAL:return j.INTERNAL;case Kr.UNAVAILABLE:return j.UNAVAILABLE;case Kr.UNAUTHENTICATED:return j.UNAUTHENTICATED;case Kr.INVALID_ARGUMENT:return j.INVALID_ARGUMENT;case Kr.NOT_FOUND:return j.NOT_FOUND;case Kr.ALREADY_EXISTS:return j.ALREADY_EXISTS;case Kr.PERMISSION_DENIED:return j.PERMISSION_DENIED;case Kr.FAILED_PRECONDITION:return j.FAILED_PRECONDITION;case Kr.ABORTED:return j.ABORTED;case Kr.OUT_OF_RANGE:return j.OUT_OF_RANGE;case Kr.UNIMPLEMENTED:return j.UNIMPLEMENTED;case Kr.DATA_LOSS:return j.DATA_LOSS;default:return N()}}(Qr=Kr||(Kr={}))[Qr.OK=0]="OK",Qr[Qr.CANCELLED=1]="CANCELLED",Qr[Qr.UNKNOWN=2]="UNKNOWN",Qr[Qr.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Qr[Qr.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Qr[Qr.NOT_FOUND=5]="NOT_FOUND",Qr[Qr.ALREADY_EXISTS=6]="ALREADY_EXISTS",Qr[Qr.PERMISSION_DENIED=7]="PERMISSION_DENIED",Qr[Qr.UNAUTHENTICATED=16]="UNAUTHENTICATED",Qr[Qr.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Qr[Qr.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Qr[Qr.ABORTED=10]="ABORTED",Qr[Qr.OUT_OF_RANGE=11]="OUT_OF_RANGE",Qr[Qr.UNIMPLEMENTED=12]="UNIMPLEMENTED",Qr[Qr.INTERNAL=13]="INTERNAL",Qr[Qr.UNAVAILABLE=14]="UNAVAILABLE",Qr[Qr.DATA_LOSS=15]="DATA_LOSS";let Jr=null;function $r(){return new TextEncoder}const ei=new r([4294967295,4294967295],0);function ti(e){const t=$r().encode(e),n=new i;return n.update(t),new Uint8Array(n.digest())}function ni(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),i=t.getUint32(4,!0),o=t.getUint32(8,!0),a=t.getUint32(12,!0);return[new r([n,i],0),new r([o,a],0)]}class ri{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new ii("Invalid padding: ".concat(t));if(n<0)throw new ii("Invalid hash count: ".concat(n));if(e.length>0&&0===this.hashCount)throw new ii("Invalid hash count: ".concat(n));if(0===e.length&&0!==t)throw new ii("Invalid padding when bitmap length is 0: ".concat(t));this.Ie=8*e.length-t,this.Te=r.fromNumber(this.Ie)}Ee(e,t,n){let i=e.add(t.multiply(r.fromNumber(n)));return 1===i.compare(ei)&&(i=new r([i.getBits(0),i.getBits(1)],0)),i.modulo(this.Te).toNumber()}de(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ie)return!1;const t=ti(e),[n,r]=ni(t);for(let i=0;i<this.hashCount;i++){const e=this.Ee(n,r,i);if(!this.de(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),o=new ri(i,r,t);return n.forEach((e=>o.insert(e))),o}insert(e){if(0===this.Ie)return;const t=ti(e),[n,r]=ni(t);for(let i=0;i<this.hashCount;i++){const e=this.Ee(n,r,i);this.Ae(e)}}Ae(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class ii extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class oi{constructor(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,ai.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new oi($.min(),r,new ht(Q),er(),cr())}}class ai{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new ai(n,t,cr(),cr(),cr())}}class si{constructor(e,t,n,r){this.Re=e,this.removedTargetIds=t,this.key=n,this.Ve=r}}class li{constructor(e,t){this.targetId=e,this.me=t}}class ci{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ct.EMPTY_BYTE_STRING,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class ui{constructor(){this.fe=0,this.ge=hi(),this.pe=Ct.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return 0!==this.fe}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}Ce(){let e=cr(),t=cr(),n=cr();return this.ge.forEach(((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:N()}})),new ai(this.pe,this.ye,e,t,n)}ve(){this.we=!1,this.ge=hi()}Fe(e,t){this.we=!0,this.ge=this.ge.insert(e,t)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,I(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class di{constructor(e){this.Le=e,this.Be=new Map,this.ke=er(),this.qe=pi(),this.Qe=new ht(Q)}Ke(e){for(const t of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(t,e.Ve):this.Ue(t,e.key,e.Ve);for(const t of e.removedTargetIds)this.Ue(t,e.key,e.Ve)}We(e){this.forEachTarget(e,(t=>{const n=this.Ge(t);switch(e.state){case 0:this.ze(t)&&n.De(e.resumeToken);break;case 1:n.Oe(),n.Se||n.ve(),n.De(e.resumeToken);break;case 2:n.Oe(),n.Se||this.removeTarget(t);break;case 3:this.ze(t)&&(n.Ne(),n.De(e.resumeToken));break;case 4:this.ze(t)&&(this.je(t),n.De(e.resumeToken));break;default:N()}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Be.forEach(((e,n)=>{this.ze(n)&&t(n)}))}He(e){const t=e.targetId,n=e.me.count,r=this.Je(t);if(r){const i=r.target;if(Fn(i))if(0===n){const e=new ie(i.path);this.Ue(t,e,tn.newNoDocument(e,$.min()))}else I(1===n);else{const r=this.Ye(t);if(r!==n){const n=this.Ze(e),i=n?this.Xe(n,e,r):1;if(0!==i){this.je(t);const e=2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Qe=this.Qe.insert(t,e)}null==Jr||Jr.et(function(e,t,n,r,i){var o,a,s,l,c,u;const d={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},p=t.unchangedNames;return p&&(d.bloomFilter={applied:0===i,hashCount:null!==(o=null==p?void 0:p.hashCount)&&void 0!==o?o:0,bitmapLength:null!==(l=null===(s=null===(a=null==p?void 0:p.bits)||void 0===a?void 0:a.bitmap)||void 0===s?void 0:s.length)&&void 0!==l?l:0,padding:null!==(u=null===(c=null==p?void 0:p.bits)||void 0===c?void 0:c.padding)&&void 0!==u?u:0,mightContain:e=>{var t;return null!==(t=null==r?void 0:r.mightContain(e))&&void 0!==t&&t}}),d}(r,e.me,this.Le.tt(),n,i))}}}}Ze(e){const t=e.me.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:i=0}=t;let o,a;try{o=Tt(n).toUint8Array()}catch(e){if(e instanceof wt)return D("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{a=new ri(o,r,i)}catch(e){return D(e instanceof ii?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===a.Ie?null:a}Xe(e,t,n){return t.me.count===n-this.nt(e,t.targetId)?0:2}nt(e,t){const n=this.Le.getRemoteKeysForTarget(t);let r=0;return n.forEach((n=>{const i=this.Le.tt(),o="projects/".concat(i.projectId,"/databases/").concat(i.database,"/documents/").concat(n.path.canonicalString());e.mightContain(o)||(this.Ue(t,n,null),r++)})),r}rt(e){const t=new Map;this.Be.forEach(((n,r)=>{const i=this.Je(r);if(i){if(n.current&&Fn(i.target)){const t=new ie(i.target.path);null!==this.ke.get(t)||this.it(r,t)||this.Ue(r,t,tn.newNoDocument(t,e))}n.be&&(t.set(r,n.Ce()),n.ve())}}));let n=cr();this.qe.forEach(((e,t)=>{let r=!0;t.forEachWhile((e=>{const t=this.Je(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)})),r&&(n=n.add(e))})),this.ke.forEach(((t,n)=>n.setReadTime(e)));const r=new oi(e,t,this.Qe,this.ke,n);return this.ke=er(),this.qe=pi(),this.Qe=new ht(Q),r}$e(e,t){if(!this.ze(e))return;const n=this.it(e,t.key)?2:0;this.Ge(e).Fe(t.key,n),this.ke=this.ke.insert(t.key,t),this.qe=this.qe.insert(t.key,this.st(t.key).add(e))}Ue(e,t,n){if(!this.ze(e))return;const r=this.Ge(e);this.it(e,t)?r.Fe(t,1):r.Me(t),this.qe=this.qe.insert(t,this.st(t).delete(e)),n&&(this.ke=this.ke.insert(t,n))}removeTarget(e){this.Be.delete(e)}Ye(e){const t=this.Ge(e).Ce();return this.Le.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let t=this.Be.get(e);return t||(t=new ui,this.Be.set(e,t)),t}st(e){let t=this.qe.get(e);return t||(t=new gt(Q),this.qe=this.qe.insert(e,t)),t}ze(e){const t=null!==this.Je(e);return t||k("WatchChangeAggregator","Detected inactive target",e),t}Je(e){const t=this.Be.get(e);return t&&t.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new ui),this.Le.getRemoteKeysForTarget(e).forEach((t=>{this.Ue(e,t,null)}))}it(e,t){return this.Le.getRemoteKeysForTarget(e).has(t)}}function pi(){return new ht(ie.comparator)}function hi(){return new ht(ie.comparator)}const fi={asc:"ASCENDING",desc:"DESCENDING"},mi={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},gi={and:"AND",or:"OR"};class vi{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function yi(e,t){return e.useProto3Json||Fe(t)?t:{value:t}}function bi(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function wi(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function xi(e,t){return bi(e,t.toTimestamp())}function Ci(e){return I(!!e),$.fromTimestamp(function(e){const t=Et(e);return new J(t.seconds,t.nanos)}(e))}function Ai(e,t){return Ei(e,t).canonicalString()}function Ei(e,t){const n=function(e){return new te(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function _i(e){const t=te.fromString(e);return I(Yi(t)),t}function Ti(e,t){return Ai(e.databaseId,t.path)}function Si(e,t){const n=_i(t);if(n.get(1)!==e.databaseId.projectId)throw new M(j.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new M(j.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ie(Fi(n))}function ki(e,t){return Ai(e.databaseId,t)}function Pi(e){const t=_i(e);return 4===t.length?te.emptyPath():Fi(t)}function Di(e){return new te(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function Fi(e){return I(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function Ni(e,t,n){return{name:Ti(e,t),fields:n.value.mapValue.fields}}function Ii(e,t,n){const r=Si(e,t.name),i=Ci(t.updateTime),o=t.createTime?Ci(t.createTime):$.min(),a=new $t({mapValue:{fields:t.fields}}),s=tn.newFoundDocument(r,i,o,a);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function Ri(e,t){let n;if(t instanceof Mr)n={update:Ni(e,t.key,t.value)};else if(t instanceof Hr)n={delete:Ti(e,t.key)};else if(t instanceof Lr)n={update:Ni(e,t.key,t.data),updateMask:Gi(t.fieldMask)};else{if(!(t instanceof zr))return N();n={verify:Ti(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){const n=t.transform;if(n instanceof br)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof wr)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Cr)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Er)return{fieldPath:t.field.canonicalString(),increment:n.Pe};throw N()}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:xi(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:N()}(e,t.precondition)),n}function Oi(e,t){const n=t.currentDocument?function(e){return void 0!==e.updateTime?Pr.updateTime(Ci(e.updateTime)):void 0!==e.exists?Pr.exists(e.exists):Pr.none()}(t.currentDocument):Pr.none(),r=t.updateTransforms?t.updateTransforms.map((t=>function(e,t){let n=null;if("setToServerValue"in t)I("REQUEST_TIME"===t.setToServerValue),n=new br;else if("appendMissingElements"in t){const e=t.appendMissingElements.values||[];n=new wr(e)}else if("removeAllFromArray"in t){const e=t.removeAllFromArray.values||[];n=new Cr(e)}else"increment"in t?n=new Er(e,t.increment):N();const r=re.fromServerFormat(t.fieldPath);return new Sr(r,n)}(e,t))):[];if(t.update){t.update.name;const i=Si(e,t.update.name),o=new $t({mapValue:{fields:t.update.fields}});if(t.updateMask){const e=function(e){const t=e.fieldPaths||[];return new bt(t.map((e=>re.fromServerFormat(e))))}(t.updateMask);return new Lr(i,o,e,n,r)}return new Mr(i,o,n,r)}if(t.delete){const r=Si(e,t.delete);return new Hr(r,n)}if(t.verify){const r=Si(e,t.verify);return new zr(r,n)}return N()}function ji(e,t){return{documents:[ki(e,t.path)]}}function Mi(e,t){const n={structuredQuery:{}},r=t.path;let i;null!==t.collectionGroup?(i=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=ki(e,i);const o=function(e){if(0!==e.length)return qi(un.create(e,"and"))}(t.filters);o&&(n.structuredQuery.where=o);const a=function(e){if(0!==e.length)return e.map((e=>function(e){return{field:zi(e.field),direction:Ui(e.dir)}}(e)))}(t.orderBy);a&&(n.structuredQuery.orderBy=a);const s=yi(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{_t:n,parent:i}}function Li(e){let t=Pi(e.parent);const n=e.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){I(1===r);const e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let o=[];n.where&&(o=function(e){const t=Bi(e);return t instanceof un&&hn(t)?t.getFilters():[t]}(n.where));let a=[];n.orderBy&&(a=function(e){return e.map((e=>function(e){return new an(Wi(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)))}(n.orderBy));let s=null;n.limit&&(s=function(e){let t;return t="object"==typeof e?e.value:e,Fe(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new nn(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new nn(n,t)}(n.endAt)),jn(t,i,a,o,s,"F",l,c)}function Bi(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=Wi(e.unaryFilter.field);return cn.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=Wi(e.unaryFilter.field);return cn.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=Wi(e.unaryFilter.field);return cn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=Wi(e.unaryFilter.field);return cn.create(i,"!=",{nullValue:"NULL_VALUE"});default:return N()}}(e):void 0!==e.fieldFilter?function(e){return cn.create(Wi(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return N()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return un.create(e.compositeFilter.filters.map((e=>Bi(e))),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return N()}}(e.compositeFilter.op))}(e):N()}function Ui(e){return fi[e]}function Vi(e){return mi[e]}function Hi(e){return gi[e]}function zi(e){return{fieldPath:e.canonicalString()}}function Wi(e){return re.fromServerFormat(e.fieldPath)}function qi(e){return e instanceof cn?function(e){if("=="===e.op){if(qt(e.value))return{unaryFilter:{field:zi(e.field),op:"IS_NAN"}};if(Wt(e.value))return{unaryFilter:{field:zi(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(qt(e.value))return{unaryFilter:{field:zi(e.field),op:"IS_NOT_NAN"}};if(Wt(e.value))return{unaryFilter:{field:zi(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:zi(e.field),op:Vi(e.op),value:e.value}}}(e):e instanceof un?function(e){const t=e.getFilters().map((e=>qi(e)));return 1===t.length?t[0]:{compositeFilter:{op:Hi(e.op),filters:t}}}(e):N()}function Gi(e){const t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function Yi(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class Ki{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:$.min(),o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:$.min(),a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Ct.EMPTY_BYTE_STRING,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=s}withSequenceNumber(e){return new Ki(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new Ki(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Ki(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Ki(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class Qi{constructor(e){this.ct=e}}function Xi(e,t){const n=t.key,r={prefixPath:n.getCollectionPath().popLast().toArray(),collectionGroup:n.collectionGroup,documentId:n.path.lastSegment(),readTime:Zi(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument())r.document=function(e,t){return{name:Ti(e,t.key),fields:t.data.value.mapValue.fields,updateTime:bi(e,t.version.toTimestamp()),createTime:bi(e,t.createTime.toTimestamp())}}(e.ct,t);else if(t.isNoDocument())r.noDocument={path:n.path.toArray(),readTime:Ji(t.version)};else{if(!t.isUnknownDocument())return N();r.unknownDocument={path:n.path.toArray(),version:Ji(t.version)}}return r}function Zi(e){const t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function Ji(e){const t=e.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function $i(e){const t=new J(e.seconds,e.nanoseconds);return $.fromTimestamp(t)}function eo(e,t){const n=(t.baseMutations||[]).map((t=>Oi(e.ct,t)));for(let o=0;o<t.mutations.length-1;++o){const e=t.mutations[o];if(o+1<t.mutations.length&&void 0!==t.mutations[o+1].transform){const n=t.mutations[o+1];e.updateTransforms=n.transform.fieldTransforms,t.mutations.splice(o+1,1),++o}}const r=t.mutations.map((t=>Oi(e.ct,t))),i=J.fromMillis(t.localWriteTimeMs);return new Wr(t.batchId,i,n,r)}function to(e){const t=$i(e.readTime),n=void 0!==e.lastLimboFreeSnapshotVersion?$i(e.lastLimboFreeSnapshotVersion):$.min();let r;return r=function(e){return void 0!==e.documents}(e.query)?function(e){return I(1===e.documents.length),Vn(Mn(Pi(e.documents[0])))}(e.query):function(e){return Vn(Li(e))}(e.query),new Ki(r,e.targetId,"TargetPurposeListen",e.lastListenSequenceNumber,t,n,Ct.fromBase64String(e.resumeToken))}function no(e,t){const n=Ji(t.snapshotVersion),r=Ji(t.lastLimboFreeSnapshotVersion);let i;i=Fn(t.target)?ji(e.ct,t.target):Mi(e.ct,t.target)._t;const o=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:Pn(t.target),readTime:n,resumeToken:o,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:r,query:i}}function ro(e){const t=Li({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Wn(t,t.limit,"L"):t}function io(e,t){return new Gr(t.largestBatchId,Oi(e.ct,t.overlayMutation))}function oo(e,t){const n=t.path.lastSegment();return[e,Re(t.path.popLast()),n]}function ao(e,t,n,r){return{indexId:e,uid:t,sequenceNumber:n,readTime:Ji(r.readTime),documentKey:Re(r.documentKey.path),largestBatchId:r.largestBatchId}}class so{getBundleMetadata(e,t){return lo(e).get(t).next((e=>{if(e)return function(e){return{id:e.bundleId,createTime:$i(e.createTime),version:e.version}}(e)}))}saveBundleMetadata(e,t){return lo(e).put(function(e){return{bundleId:e.id,createTime:Ji(Ci(e.createTime)),version:e.version}}(t))}getNamedQuery(e,t){return co(e).get(t).next((e=>{if(e)return function(e){return{name:e.name,query:ro(e.bundledQuery),readTime:$i(e.readTime)}}(e)}))}saveNamedQuery(e,t){return co(e).put(function(e){return{name:e.name,readTime:Ji(Ci(e.readTime)),bundledQuery:e.bundledQuery}}(t))}}function lo(e){return ct(e,"bundles")}function co(e){return ct(e,"namedQueries")}class uo{constructor(e,t){this.serializer=e,this.userId=t}static lt(e,t){const n=t.uid||"";return new uo(e,n)}getOverlay(e,t){return po(e).get(oo(this.userId,t)).next((e=>e?io(this.serializer,e):null))}getOverlays(e,t){const n=ir();return ve.forEach(t,(t=>this.getOverlay(e,t).next((e=>{null!==e&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){const r=[];return n.forEach(((n,i)=>{const o=new Gr(t,i);r.push(this.ht(e,o))})),ve.waitFor(r)}removeOverlaysForBatchId(e,t,n){const r=new Set;t.forEach((e=>r.add(Re(e.getCollectionPath()))));const i=[];return r.forEach((t=>{const r=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,n+1],!1,!0);i.push(po(e).j("collectionPathOverlayIndex",r))})),ve.waitFor(i)}getOverlaysForCollection(e,t,n){const r=ir(),i=Re(t),o=IDBKeyRange.bound([this.userId,i,n],[this.userId,i,Number.POSITIVE_INFINITY],!0);return po(e).U("collectionPathOverlayIndex",o).next((e=>{for(const t of e){const e=io(this.serializer,t);r.set(e.getKey(),e)}return r}))}getOverlaysForCollectionGroup(e,t,n,r){const i=ir();let o;const a=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,Number.POSITIVE_INFINITY],!0);return po(e).J({index:"collectionGroupOverlayIndex",range:a},((e,t,n)=>{const a=io(this.serializer,t);i.size()<r||a.largestBatchId===o?(i.set(a.getKey(),a),o=a.largestBatchId):n.done()})).next((()=>i))}ht(e,t){return po(e).put(function(e,t,n){const[r,i,o]=oo(t,n.mutation.key);return{userId:t,collectionPath:i,documentId:o,collectionGroup:n.mutation.key.getCollectionGroup(),largestBatchId:n.largestBatchId,overlayMutation:Ri(e.ct,n.mutation)}}(this.serializer,this.userId,t))}}function po(e){return ct(e,"documentOverlays")}class ho{constructor(){}Pt(e,t){this.It(e,t),t.Tt()}It(e,t){if("nullValue"in e)this.Et(t,5);else if("booleanValue"in e)this.Et(t,10),t.dt(e.booleanValue?1:0);else if("integerValue"in e)this.Et(t,15),t.dt(_t(e.integerValue));else if("doubleValue"in e){const n=_t(e.doubleValue);isNaN(n)?this.Et(t,13):(this.Et(t,15),Ne(n)?t.dt(0):t.dt(n))}else if("timestampValue"in e){let n=e.timestampValue;this.Et(t,20),"string"==typeof n&&(n=Et(n)),t.At("".concat(n.seconds||"")),t.dt(n.nanos||0)}else if("stringValue"in e)this.Rt(e.stringValue,t),this.Vt(t);else if("bytesValue"in e)this.Et(t,30),t.ft(Tt(e.bytesValue)),this.Vt(t);else if("referenceValue"in e)this.gt(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.Et(t,45),t.dt(n.latitude||0),t.dt(n.longitude||0)}else"mapValue"in e?Kt(e)?this.Et(t,Number.MAX_SAFE_INTEGER):(this.yt(e.mapValue,t),this.Vt(t)):"arrayValue"in e?(this.wt(e.arrayValue,t),this.Vt(t)):N()}Rt(e,t){this.Et(t,25),this.St(e,t)}St(e,t){t.At(e)}yt(e,t){const n=e.fields||{};this.Et(t,55);for(const r of Object.keys(n))this.Rt(r,t),this.It(n[r],t)}wt(e,t){const n=e.values||[];this.Et(t,50);for(const r of n)this.It(r,t)}gt(e,t){this.Et(t,37),ie.fromName(e).path.forEach((e=>{this.Et(t,60),this.St(e,t)}))}Et(e,t){e.dt(t)}Vt(e){e.dt(2)}}function fo(e){if(0===e)return 8;let t=0;return e>>4==0&&(t+=4,e<<=4),e>>6==0&&(t+=2,e<<=2),e>>7==0&&(t+=1),t}function mo(e){const t=64-function(e){let t=0;for(let n=0;n<8;++n){const r=fo(255&e[n]);if(t+=r,8!==r)break}return t}(e);return Math.ceil(t/8)}ho.bt=new ho;class go{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Dt(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.Ct(n.value),n=t.next();this.vt()}Ft(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.Mt(n.value),n=t.next();this.xt()}Ot(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.Ct(e);else if(e<2048)this.Ct(960|e>>>6),this.Ct(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Ct(480|e>>>12),this.Ct(128|63&e>>>6),this.Ct(128|63&e);else{const e=t.codePointAt(0);this.Ct(240|e>>>18),this.Ct(128|63&e>>>12),this.Ct(128|63&e>>>6),this.Ct(128|63&e)}}this.vt()}Nt(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.Mt(e);else if(e<2048)this.Mt(960|e>>>6),this.Mt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Mt(480|e>>>12),this.Mt(128|63&e>>>6),this.Mt(128|63&e);else{const e=t.codePointAt(0);this.Mt(240|e>>>18),this.Mt(128|63&e>>>12),this.Mt(128|63&e>>>6),this.Mt(128|63&e)}}this.xt()}Lt(e){const t=this.Bt(e),n=mo(t);this.kt(1+n),this.buffer[this.position++]=255&n;for(let r=t.length-n;r<t.length;++r)this.buffer[this.position++]=255&t[r]}qt(e){const t=this.Bt(e),n=mo(t);this.kt(1+n),this.buffer[this.position++]=~(255&n);for(let r=t.length-n;r<t.length;++r)this.buffer[this.position++]=~(255&t[r])}Qt(){this.Kt(255),this.Kt(255)}$t(){this.Ut(255),this.Ut(255)}reset(){this.position=0}seed(e){this.kt(e.length),this.buffer.set(e,this.position),this.position+=e.length}Wt(){return this.buffer.slice(0,this.position)}Bt(e){const t=function(e){const t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e,!1),new Uint8Array(t.buffer)}(e),n=0!=(128&t[0]);t[0]^=n?255:128;for(let r=1;r<t.length;++r)t[r]^=n?255:0;return t}Ct(e){const t=255&e;0===t?(this.Kt(0),this.Kt(255)):255===t?(this.Kt(255),this.Kt(0)):this.Kt(t)}Mt(e){const t=255&e;0===t?(this.Ut(0),this.Ut(255)):255===t?(this.Ut(255),this.Ut(0)):this.Ut(e)}vt(){this.Kt(0),this.Kt(1)}xt(){this.Ut(0),this.Ut(1)}Kt(e){this.kt(1),this.buffer[this.position++]=e}Ut(e){this.kt(1),this.buffer[this.position++]=~e}kt(e){const t=e+this.position;if(t<=this.buffer.length)return;let n=2*this.buffer.length;n<t&&(n=t);const r=new Uint8Array(n);r.set(this.buffer),this.buffer=r}}class vo{constructor(e){this.Gt=e}ft(e){this.Gt.Dt(e)}At(e){this.Gt.Ot(e)}dt(e){this.Gt.Lt(e)}Tt(){this.Gt.Qt()}}class yo{constructor(e){this.Gt=e}ft(e){this.Gt.Ft(e)}At(e){this.Gt.Nt(e)}dt(e){this.Gt.qt(e)}Tt(){this.Gt.$t()}}class bo{constructor(){this.Gt=new go,this.zt=new vo(this.Gt),this.jt=new yo(this.Gt)}seed(e){this.Gt.seed(e)}Ht(e){return 0===e?this.zt:this.jt}Wt(){return this.Gt.Wt()}reset(){this.Gt.reset()}}class wo{constructor(e,t,n,r){this.indexId=e,this.documentKey=t,this.arrayValue=n,this.directionalValue=r}Jt(){const e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,n=new Uint8Array(t);return n.set(this.directionalValue,0),t!==e?n.set([0],this.directionalValue.length):++n[n.length-1],new wo(this.indexId,this.documentKey,this.arrayValue,n)}}function xo(e,t){let n=e.indexId-t.indexId;return 0!==n?n:(n=Co(e.arrayValue,t.arrayValue),0!==n?n:(n=Co(e.directionalValue,t.directionalValue),0!==n?n:ie.comparator(e.documentKey,t.documentKey)))}function Co(e,t){for(let n=0;n<e.length&&n<t.length;++n){const r=e[n]-t[n];if(0!==r)return r}return e.length-t.length}class Ao{constructor(e){this.Yt=new gt(((e,t)=>re.comparator(e.field,t.field))),this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.Zt=e.orderBy,this.Xt=[];for(const t of e.filters){const e=t;e.isInequality()?this.Yt=this.Yt.add(e):this.Xt.push(e)}}get en(){return this.Yt.size>1}tn(e){if(I(e.collectionGroup===this.collectionId),this.en)return!1;const t=ae(e);if(void 0!==t&&!this.nn(t))return!1;const n=se(e);let r=new Set,i=0,o=0;for(;i<n.length&&this.nn(n[i]);++i)r=r.add(n[i].fieldPath.canonicalString());if(i===n.length)return!0;if(this.Yt.size>0){const e=this.Yt.getIterator().getNext();if(!r.has(e.field.canonicalString())){const t=n[i];if(!this.rn(e,t)||!this.sn(this.Zt[o++],t))return!1}++i}for(;i<n.length;++i){const e=n[i];if(o>=this.Zt.length||!this.sn(this.Zt[o++],e))return!1}return!0}on(){if(this.en)return null;let e=new gt(re.comparator);const t=[];for(const n of this.Xt)if(!n.field.isKeyField())if("array-contains"===n.op||"array-contains-any"===n.op)t.push(new le(n.field,2));else{if(e.has(n.field))continue;e=e.add(n.field),t.push(new le(n.field,0))}for(const n of this.Zt)n.field.isKeyField()||e.has(n.field)||(e=e.add(n.field),t.push(new le(n.field,"asc"===n.dir?0:1)));return new oe(oe.UNKNOWN_ID,this.collectionId,t,ce.empty())}nn(e){for(const t of this.Xt)if(this.rn(t,e))return!0;return!1}rn(e,t){if(void 0===e||!e.field.isEqual(t.fieldPath))return!1;const n="array-contains"===e.op||"array-contains-any"===e.op;return 2===t.kind===n}sn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}function Eo(e){var t,n;if(I(e instanceof cn||e instanceof un),e instanceof cn){if(e instanceof En){const r=(null===(n=null===(t=e.value.arrayValue)||void 0===t?void 0:t.values)||void 0===n?void 0:n.map((t=>cn.create(e.field,"==",t))))||[];return un.create(r,"or")}return e}const r=e.filters.map((e=>Eo(e)));return un.create(r,e.op)}function _o(e){if(0===e.getFilters().length)return[];const t=Po(Eo(e));return I(ko(t)),To(t)||So(t)?[t]:t.getFilters()}function To(e){return e instanceof cn}function So(e){return e instanceof un&&hn(e)}function ko(e){return To(e)||So(e)||function(e){if(e instanceof un&&pn(e)){for(const t of e.getFilters())if(!To(t)&&!So(t))return!1;return!0}return!1}(e)}function Po(e){if(I(e instanceof cn||e instanceof un),e instanceof cn)return e;if(1===e.filters.length)return Po(e.filters[0]);const t=e.filters.map((e=>Po(e)));let n=un.create(t,e.op);return n=No(n),ko(n)?n:(I(n instanceof un),I(dn(n)),I(n.filters.length>1),n.filters.reduce(((e,t)=>Do(e,t))))}function Do(e,t){let n;return I(e instanceof cn||e instanceof un),I(t instanceof cn||t instanceof un),n=e instanceof cn?t instanceof cn?function(e,t){return un.create([e,t],"and")}(e,t):Fo(e,t):t instanceof cn?Fo(t,e):function(e,t){if(I(e.filters.length>0&&t.filters.length>0),dn(e)&&dn(t))return vn(e,t.getFilters());const n=pn(e)?e:t,r=pn(e)?t:e,i=n.filters.map((e=>Do(e,r)));return un.create(i,"or")}(e,t),No(n)}function Fo(e,t){if(dn(t))return vn(t,e.getFilters());{const n=t.filters.map((t=>Do(e,t)));return un.create(n,"or")}}function No(e){if(I(e instanceof cn||e instanceof un),e instanceof cn)return e;const t=e.getFilters();if(1===t.length)return No(t[0]);if(fn(e))return e;const n=t.map((e=>No(e))),r=[];return n.forEach((t=>{t instanceof cn?r.push(t):t instanceof un&&(t.op===e.op?r.push(...t.filters):r.push(t))})),1===r.length?r[0]:un.create(r,e.op)}class Io{constructor(){this._n=new Ro}addToCollectionParentIndex(e,t){return this._n.add(t),ve.resolve()}getCollectionParents(e,t){return ve.resolve(this._n.getEntries(t))}addFieldIndex(e,t){return ve.resolve()}deleteFieldIndex(e,t){return ve.resolve()}deleteAllFieldIndexes(e){return ve.resolve()}createTargetIndexes(e,t){return ve.resolve()}getDocumentsMatchingTarget(e,t){return ve.resolve(null)}getIndexType(e,t){return ve.resolve(0)}getFieldIndexes(e,t){return ve.resolve([])}getNextCollectionGroupToUpdate(e){return ve.resolve(null)}getMinOffset(e,t){return ve.resolve(pe.min())}getMinOffsetFromCollectionGroup(e,t){return ve.resolve(pe.min())}updateCollectionGroup(e,t,n){return ve.resolve()}updateIndexEntries(e,t){return ve.resolve()}}class Ro{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new gt(te.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new gt(te.comparator)).toArray()}}const Oo=new Uint8Array(0);class jo{constructor(e,t){this.databaseId=t,this.an=new Ro,this.un=new Jn((e=>Pn(e)),((e,t)=>Dn(e,t))),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.an.has(t)){const n=t.lastSegment(),r=t.popLast();e.addOnCommittedListener((()=>{this.an.add(t)}));const i={collectionId:n,parent:Re(r)};return Mo(e).put(i)}return ve.resolve()}getCollectionParents(e,t){const n=[],r=IDBKeyRange.bound([t,""],[Z(t),""],!1,!0);return Mo(e).U(r).next((e=>{for(const r of e){if(r.collectionId!==t)break;n.push(Me(r.parent))}return n}))}addFieldIndex(e,t){const n=Bo(e),r=function(e){return{indexId:e.indexId,collectionGroup:e.collectionGroup,fields:e.fields.map((e=>[e.fieldPath.canonicalString(),e.kind]))}}(t);delete r.indexId;const i=n.add(r);if(t.indexState){const n=Uo(e);return i.next((e=>{n.put(ao(e,this.uid,t.indexState.sequenceNumber,t.indexState.offset))}))}return i.next()}deleteFieldIndex(e,t){const n=Bo(e),r=Uo(e),i=Lo(e);return n.delete(t.indexId).next((()=>r.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))).next((()=>i.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))))}deleteAllFieldIndexes(e){const t=Bo(e),n=Lo(e),r=Uo(e);return t.j().next((()=>n.j())).next((()=>r.j()))}createTargetIndexes(e,t){return ve.forEach(this.cn(t),(t=>this.getIndexType(e,t).next((n=>{if(0===n||1===n){const n=new Ao(t).on();if(null!=n)return this.addFieldIndex(e,n)}}))))}getDocumentsMatchingTarget(e,t){const n=Lo(e);let r=!0;const i=new Map;return ve.forEach(this.cn(t),(t=>this.ln(e,t).next((e=>{r&&(r=!!e),i.set(t,e)})))).next((()=>{if(r){let e=cr();const r=[];return ve.forEach(i,((i,o)=>{k("IndexedDbIndexManager","Using index ".concat(function(e){return"id=".concat(e.indexId,"|cg=").concat(e.collectionGroup,"|f=").concat(e.fields.map((e=>"".concat(e.fieldPath,":").concat(e.kind))).join(","))}(i)," to execute ").concat(Pn(t)));const a=function(e,t){const n=ae(t);if(void 0===n)return null;for(const r of Nn(e,n.fieldPath))switch(r.op){case"array-contains-any":return r.value.arrayValue.values||[];case"array-contains":return[r.value]}return null}(o,i),s=function(e,t){const n=new Map;for(const r of se(t))for(const t of Nn(e,r.fieldPath))switch(t.op){case"==":case"in":n.set(r.fieldPath.canonicalString(),t.value);break;case"not-in":case"!=":return n.set(r.fieldPath.canonicalString(),t.value),Array.from(n.values())}return null}(o,i),l=function(e,t){const n=[];let r=!0;for(const i of se(t)){const t=0===i.kind?In(e,i.fieldPath,e.startAt):Rn(e,i.fieldPath,e.startAt);n.push(t.value),r&&(r=t.inclusive)}return new nn(n,r)}(o,i),c=function(e,t){const n=[];let r=!0;for(const i of se(t)){const t=0===i.kind?Rn(e,i.fieldPath,e.endAt):In(e,i.fieldPath,e.endAt);n.push(t.value),r&&(r=t.inclusive)}return new nn(n,r)}(o,i),u=this.hn(i,o,l),d=this.hn(i,o,c),p=this.Pn(i,o,s),h=this.In(i.indexId,a,u,l.inclusive,d,c.inclusive,p);return ve.forEach(h,(i=>n.G(i,t.limit).next((t=>{t.forEach((t=>{const n=ie.fromSegments(t.documentKey);e.has(n)||(e=e.add(n),r.push(n))}))}))))})).next((()=>r))}return ve.resolve(null)}))}cn(e){let t=this.un.get(e);return t||(t=0===e.filters.length?[e]:_o(un.create(e.filters,"and")).map((t=>kn(e.path,e.collectionGroup,e.orderBy,t.getFilters(),e.limit,e.startAt,e.endAt))),this.un.set(e,t),t)}In(e,t,n,r,i,o,a){const s=(null!=t?t.length:1)*Math.max(n.length,i.length),l=s/(null!=t?t.length:1),c=[];for(let u=0;u<s;++u){const s=t?this.Tn(t[u/l]):Oo,d=this.En(e,s,n[u%l],r),p=this.dn(e,s,i[u%l],o),h=a.map((t=>this.En(e,s,t,!0)));c.push(...this.createRange(d,p,h))}return c}En(e,t,n,r){const i=new wo(e,ie.empty(),t,n);return r?i:i.Jt()}dn(e,t,n,r){const i=new wo(e,ie.empty(),t,n);return r?i.Jt():i}ln(e,t){const n=new Ao(t),r=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,r).next((e=>{let t=null;for(const r of e)n.tn(r)&&(!t||r.fields.length>t.fields.length)&&(t=r);return t}))}getIndexType(e,t){let n=2;const r=this.cn(t);return ve.forEach(r,(t=>this.ln(e,t).next((e=>{e?0!==n&&e.fields.length<function(e){let t=new gt(re.comparator),n=!1;for(const r of e.filters)for(const e of r.getFlattenedFilters())e.field.isKeyField()||("array-contains"===e.op||"array-contains-any"===e.op?n=!0:t=t.add(e.field));for(const r of e.orderBy)r.field.isKeyField()||(t=t.add(r.field));return t.size+(n?1:0)}(t)&&(n=1):n=0})))).next((()=>function(e){return null!==e.limit}(t)&&r.length>1&&2===n?1:n))}An(e,t){const n=new bo;for(const r of se(e)){const e=t.data.field(r.fieldPath);if(null==e)return null;const i=n.Ht(r.kind);ho.bt.Pt(e,i)}return n.Wt()}Tn(e){const t=new bo;return ho.bt.Pt(e,t.Ht(0)),t.Wt()}Rn(e,t){const n=new bo;return ho.bt.Pt(Vt(this.databaseId,t),n.Ht(function(e){const t=se(e);return 0===t.length?0:t[t.length-1].kind}(e))),n.Wt()}Pn(e,t,n){if(null===n)return[];let r=[];r.push(new bo);let i=0;for(const o of se(e)){const e=n[i++];for(const n of r)if(this.Vn(t,o.fieldPath)&&zt(e))r=this.mn(r,o,e);else{const t=n.Ht(o.kind);ho.bt.Pt(e,t)}}return this.fn(r)}hn(e,t,n){return this.Pn(e,t,n.position)}fn(e){const t=[];for(let n=0;n<e.length;++n)t[n]=e[n].Wt();return t}mn(e,t,n){const r=[...e],i=[];for(const o of n.arrayValue.values||[])for(const e of r){const n=new bo;n.seed(e.Wt()),ho.bt.Pt(o,n.Ht(t.kind)),i.push(n)}return i}Vn(e,t){return!!e.filters.find((e=>e instanceof cn&&e.field.isEqual(t)&&("in"===e.op||"not-in"===e.op)))}getFieldIndexes(e,t){const n=Bo(e),r=Uo(e);return(t?n.U("collectionGroupIndex",IDBKeyRange.bound(t,t)):n.U()).next((e=>{const t=[];return ve.forEach(e,(e=>r.get([e.indexId,this.uid]).next((n=>{t.push(function(e,t){const n=t?new ce(t.sequenceNumber,new pe($i(t.readTime),new ie(Me(t.documentKey)),t.largestBatchId)):ce.empty(),r=e.fields.map((e=>{let[t,n]=e;return new le(re.fromServerFormat(t),n)}));return new oe(e.indexId,e.collectionGroup,r,n)}(e,n))})))).next((()=>t))}))}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next((e=>0===e.length?null:(e.sort(((e,t)=>{const n=e.indexState.sequenceNumber-t.indexState.sequenceNumber;return 0!==n?n:Q(e.collectionGroup,t.collectionGroup)})),e[0].collectionGroup)))}updateCollectionGroup(e,t,n){const r=Bo(e),i=Uo(e);return this.gn(e).next((e=>r.U("collectionGroupIndex",IDBKeyRange.bound(t,t)).next((t=>ve.forEach(t,(t=>i.put(ao(t.indexId,this.uid,e,n))))))))}updateIndexEntries(e,t){const n=new Map;return ve.forEach(t,((t,r)=>{const i=n.get(t.collectionGroup);return(i?ve.resolve(i):this.getFieldIndexes(e,t.collectionGroup)).next((i=>(n.set(t.collectionGroup,i),ve.forEach(i,(n=>this.pn(e,t,n).next((t=>{const i=this.yn(r,n);return t.isEqual(i)?ve.resolve():this.wn(e,r,n,t,i)})))))))}))}Sn(e,t,n,r){return Lo(e).put({indexId:r.indexId,uid:this.uid,arrayValue:r.arrayValue,directionalValue:r.directionalValue,orderedDocumentKey:this.Rn(n,t.key),documentKey:t.key.path.toArray()})}bn(e,t,n,r){return Lo(e).delete([r.indexId,this.uid,r.arrayValue,r.directionalValue,this.Rn(n,t.key),t.key.path.toArray()])}pn(e,t,n){const r=Lo(e);let i=new gt(xo);return r.J({index:"documentKeyIndex",range:IDBKeyRange.only([n.indexId,this.uid,this.Rn(n,t)])},((e,r)=>{i=i.add(new wo(n.indexId,t,r.arrayValue,r.directionalValue))})).next((()=>i))}yn(e,t){let n=new gt(xo);const r=this.An(t,e);if(null==r)return n;const i=ae(t);if(null!=i){const o=e.data.field(i.fieldPath);if(zt(o))for(const i of o.arrayValue.values||[])n=n.add(new wo(t.indexId,e.key,this.Tn(i),r))}else n=n.add(new wo(t.indexId,e.key,Oo,r));return n}wn(e,t,n,r,i){k("IndexedDbIndexManager","Updating index entries for document '%s'",t.key);const o=[];return function(e,t,n,r,i){const o=e.getIterator(),a=t.getIterator();let s=yt(o),l=yt(a);for(;s||l;){let e=!1,t=!1;if(s&&l){const r=n(s,l);r<0?t=!0:r>0&&(e=!0)}else null!=s?t=!0:e=!0;e?(r(l),l=yt(a)):t?(i(s),s=yt(o)):(s=yt(o),l=yt(a))}}(r,i,xo,(r=>{o.push(this.Sn(e,t,n,r))}),(r=>{o.push(this.bn(e,t,n,r))})),ve.waitFor(o)}gn(e){let t=1;return Uo(e).J({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},((e,n,r)=>{r.done(),t=n.sequenceNumber+1})).next((()=>t))}createRange(e,t,n){n=n.sort(((e,t)=>xo(e,t))).filter(((e,t,n)=>!t||0!==xo(e,n[t-1])));const r=[];r.push(e);for(const o of n){const n=xo(o,e),i=xo(o,t);if(0===n)r[0]=e.Jt();else if(n>0&&i<0)r.push(o),r.push(o.Jt());else if(i>0)break}r.push(t);const i=[];for(let o=0;o<r.length;o+=2){if(this.Dn(r[o],r[o+1]))return[];const e=[r[o].indexId,this.uid,r[o].arrayValue,r[o].directionalValue,Oo,[]],t=[r[o+1].indexId,this.uid,r[o+1].arrayValue,r[o+1].directionalValue,Oo,[]];i.push(IDBKeyRange.bound(e,t))}return i}Dn(e,t){return xo(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(Vo)}getMinOffset(e,t){return ve.mapArray(this.cn(t),(t=>this.ln(e,t).next((e=>e||N())))).next(Vo)}}function Mo(e){return ct(e,"collectionParents")}function Lo(e){return ct(e,"indexEntries")}function Bo(e){return ct(e,"indexConfiguration")}function Uo(e){return ct(e,"indexState")}function Vo(e){I(0!==e.length);let t=e[0].indexState.offset,n=t.largestBatchId;for(let r=1;r<e.length;r++){const i=e[r].indexState.offset;he(i,t)<0&&(t=i),n<i.largestBatchId&&(n=i.largestBatchId)}return new pe(t.readTime,t.documentKey,n)}const Ho={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class zo{constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}static withCacheSize(e){return new zo(e,zo.DEFAULT_COLLECTION_PERCENTILE,zo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function Wo(e,t,n){const r=e.store("mutations"),i=e.store("documentMutations"),o=[],a=IDBKeyRange.only(n.batchId);let s=0;const l=r.J({range:a},((e,t,n)=>(s++,n.delete())));o.push(l.next((()=>{I(1===s)})));const c=[];for(const u of n.mutations){const e=Ue(t,u.key.path,n.batchId);o.push(i.delete(e)),c.push(u.key)}return ve.waitFor(o).next((()=>c))}function qo(e){if(!e)return 0;let t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw N();t=e.noDocument}return JSON.stringify(t).length}zo.DEFAULT_COLLECTION_PERCENTILE=10,zo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,zo.DEFAULT=new zo(41943040,zo.DEFAULT_COLLECTION_PERCENTILE,zo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),zo.DISABLED=new zo(-1,0,0);class Go{constructor(e,t,n,r){this.userId=e,this.serializer=t,this.indexManager=n,this.referenceDelegate=r,this.Cn={}}static lt(e,t,n,r){I(""!==e.uid);const i=e.isAuthenticated()?e.uid:"";return new Go(i,t,n,r)}checkEmpty(e){let t=!0;const n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Ko(e).J({index:"userMutationsIndex",range:n},((e,n,r)=>{t=!1,r.done()})).next((()=>t))}addMutationBatch(e,t,n,r){const i=Qo(e),o=Ko(e);return o.add({}).next((a=>{I("number"==typeof a);const s=new Wr(a,t,n,r),l=function(e,t,n){const r=n.baseMutations.map((t=>Ri(e.ct,t))),i=n.mutations.map((t=>Ri(e.ct,t)));return{userId:t,batchId:n.batchId,localWriteTimeMs:n.localWriteTime.toMillis(),baseMutations:r,mutations:i}}(this.serializer,this.userId,s),c=[];let u=new gt(((e,t)=>Q(e.canonicalString(),t.canonicalString())));for(const e of r){const t=Ue(this.userId,e.key.path,a);u=u.add(e.key.path.popLast()),c.push(o.put(l)),c.push(i.put(t,Ve))}return u.forEach((t=>{c.push(this.indexManager.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((()=>{this.Cn[a]=s.keys()})),ve.waitFor(c).next((()=>s))}))}lookupMutationBatch(e,t){return Ko(e).get(t).next((e=>e?(I(e.userId===this.userId),eo(this.serializer,e)):null))}vn(e,t){return this.Cn[t]?ve.resolve(this.Cn[t]):this.lookupMutationBatch(e,t).next((e=>{if(e){const n=e.keys();return this.Cn[t]=n,n}return null}))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=IDBKeyRange.lowerBound([this.userId,n]);let i=null;return Ko(e).J({index:"userMutationsIndex",range:r},((e,t,r)=>{t.userId===this.userId&&(I(t.batchId>=n),i=eo(this.serializer,t)),r.done()})).next((()=>i))}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let n=-1;return Ko(e).J({index:"userMutationsIndex",range:t,reverse:!0},((e,t,r)=>{n=t.batchId,r.done()})).next((()=>n))}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Ko(e).U("userMutationsIndex",t).next((e=>e.map((e=>eo(this.serializer,e)))))}getAllMutationBatchesAffectingDocumentKey(e,t){const n=Be(this.userId,t.path),r=IDBKeyRange.lowerBound(n),i=[];return Qo(e).J({range:r},((n,r,o)=>{const[a,s,l]=n,c=Me(s);if(a===this.userId&&t.path.isEqual(c))return Ko(e).get(l).next((e=>{if(!e)throw N();I(e.userId===this.userId),i.push(eo(this.serializer,e))}));o.done()})).next((()=>i))}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new gt(Q);const r=[];return t.forEach((t=>{const i=Be(this.userId,t.path),o=IDBKeyRange.lowerBound(i),a=Qo(e).J({range:o},((e,r,i)=>{const[o,a,s]=e,l=Me(a);o===this.userId&&t.path.isEqual(l)?n=n.add(s):i.done()}));r.push(a)})),ve.waitFor(r).next((()=>this.Fn(e,n)))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1,i=Be(this.userId,n),o=IDBKeyRange.lowerBound(i);let a=new gt(Q);return Qo(e).J({range:o},((e,t,i)=>{const[o,s,l]=e,c=Me(s);o===this.userId&&n.isPrefixOf(c)?c.length===r&&(a=a.add(l)):i.done()})).next((()=>this.Fn(e,a)))}Fn(e,t){const n=[],r=[];return t.forEach((t=>{r.push(Ko(e).get(t).next((e=>{if(null===e)throw N();I(e.userId===this.userId),n.push(eo(this.serializer,e))})))})),ve.waitFor(r).next((()=>n))}removeMutationBatch(e,t){return Wo(e._e,this.userId,t).next((n=>(e.addOnCommittedListener((()=>{this.Mn(t.batchId)})),ve.forEach(n,(t=>this.referenceDelegate.markPotentiallyOrphaned(e,t))))))}Mn(e){delete this.Cn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next((t=>{if(!t)return ve.resolve();const n=IDBKeyRange.lowerBound(function(e){return[e]}(this.userId)),r=[];return Qo(e).J({range:n},((e,t,n)=>{if(e[0]===this.userId){const t=Me(e[1]);r.push(t)}else n.done()})).next((()=>{I(0===r.length)}))}))}containsKey(e,t){return Yo(e,this.userId,t)}xn(e){return Xo(e).get(this.userId).next((e=>e||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""}))}}function Yo(e,t,n){const r=Be(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r);let a=!1;return Qo(e).J({range:o,H:!0},((e,n,r)=>{const[o,s,l]=e;o===t&&s===i&&(a=!0),r.done()})).next((()=>a))}function Ko(e){return ct(e,"mutations")}function Qo(e){return ct(e,"documentMutations")}function Xo(e){return ct(e,"mutationQueues")}class Zo{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new Zo(0)}static Ln(){return new Zo(-1)}}class Jo{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.Bn(e).next((t=>{const n=new Zo(t.highestTargetId);return t.highestTargetId=n.next(),this.kn(e,t).next((()=>t.highestTargetId))}))}getLastRemoteSnapshotVersion(e){return this.Bn(e).next((e=>$.fromTimestamp(new J(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))))}getHighestSequenceNumber(e){return this.Bn(e).next((e=>e.highestListenSequenceNumber))}setTargetsMetadata(e,t,n){return this.Bn(e).next((r=>(r.highestListenSequenceNumber=t,n&&(r.lastRemoteSnapshotVersion=n.toTimestamp()),t>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=t),this.kn(e,r))))}addTargetData(e,t){return this.qn(e,t).next((()=>this.Bn(e).next((n=>(n.targetCount+=1,this.Qn(t,n),this.kn(e,n))))))}updateTargetData(e,t){return this.qn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next((()=>$o(e).delete(t.targetId))).next((()=>this.Bn(e))).next((t=>(I(t.targetCount>0),t.targetCount-=1,this.kn(e,t))))}removeTargets(e,t,n){let r=0;const i=[];return $o(e).J(((o,a)=>{const s=to(a);s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r++,i.push(this.removeTargetData(e,s)))})).next((()=>ve.waitFor(i))).next((()=>r))}forEachTarget(e,t){return $o(e).J(((e,n)=>{const r=to(n);t(r)}))}Bn(e){return ea(e).get("targetGlobalKey").next((e=>(I(null!==e),e)))}kn(e,t){return ea(e).put("targetGlobalKey",t)}qn(e,t){return $o(e).put(no(this.serializer,t))}Qn(e,t){let n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n}getTargetCount(e){return this.Bn(e).next((e=>e.targetCount))}getTargetData(e,t){const n=Pn(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]);let i=null;return $o(e).J({range:r,index:"queryTargetsIndex"},((e,n,r)=>{const o=to(n);Dn(t,o.target)&&(i=o,r.done())})).next((()=>i))}addMatchingKeys(e,t,n){const r=[],i=ta(e);return t.forEach((t=>{const o=Re(t.path);r.push(i.put({targetId:n,path:o})),r.push(this.referenceDelegate.addReference(e,n,t))})),ve.waitFor(r)}removeMatchingKeys(e,t,n){const r=ta(e);return ve.forEach(t,(t=>{const i=Re(t.path);return ve.waitFor([r.delete([n,i]),this.referenceDelegate.removeReference(e,n,t)])}))}removeMatchingKeysForTargetId(e,t){const n=ta(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)}getMatchingKeysForTargetId(e,t){const n=IDBKeyRange.bound([t],[t+1],!1,!0),r=ta(e);let i=cr();return r.J({range:n,H:!0},((e,t,n)=>{const r=Me(e[1]),o=new ie(r);i=i.add(o)})).next((()=>i))}containsKey(e,t){const n=Re(t.path),r=IDBKeyRange.bound([n],[Z(n)],!1,!0);let i=0;return ta(e).J({index:"documentTargetsIndex",H:!0,range:r},((e,t,n)=>{let[r,o]=e;0!==r&&(i++,n.done())})).next((()=>i>0))}ot(e,t){return $o(e).get(t).next((e=>e?to(e):null))}}function $o(e){return ct(e,"targets")}function ea(e){return ct(e,"targetGlobal")}function ta(e){return ct(e,"targetDocuments")}function na(e,t){let[n,r]=e,[i,o]=t;const a=Q(n,i);return 0===a?Q(r,o):a}class ra{constructor(e){this.Kn=e,this.buffer=new gt(na),this.$n=0}Un(){return++this.$n}Wn(e){const t=[e,this.Un()];if(this.buffer.size<this.Kn)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();na(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class ia{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Gn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.zn(6e4)}stop(){this.Gn&&(this.Gn.cancel(),this.Gn=null)}get started(){return null!==this.Gn}zn(e){k("LruGarbageCollector","Garbage collection scheduled in ".concat(e,"ms")),this.Gn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(async()=>{this.Gn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Ae(e)?k("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e):await ge(e)}await this.zn(3e5)}))}}class oa{constructor(e,t){this.jn=e,this.params=t}calculateTargetCount(e,t){return this.jn.Hn(e).next((e=>Math.floor(t/100*e)))}nthSequenceNumber(e,t){if(0===t)return ve.resolve(De.oe);const n=new ra(t);return this.jn.forEachTarget(e,(e=>n.Wn(e.sequenceNumber))).next((()=>this.jn.Jn(e,(e=>n.Wn(e))))).next((()=>n.maxValue))}removeTargets(e,t,n){return this.jn.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.jn.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(k("LruGarbageCollector","Garbage collection skipped; disabled"),ve.resolve(Ho)):this.getCacheSize(e).next((n=>n<this.params.cacheSizeCollectionThreshold?(k("LruGarbageCollector","Garbage collection skipped; Cache size ".concat(n," is lower than threshold ").concat(this.params.cacheSizeCollectionThreshold)),Ho):this.Yn(e,t)))}getCacheSize(e){return this.jn.getCacheSize(e)}Yn(e,t){let n,r,i,o,a,l,c;const u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((t=>(t>this.params.maximumSequenceNumbersToCollect?(k("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of ".concat(this.params.maximumSequenceNumbersToCollect," from ").concat(t)),r=this.params.maximumSequenceNumbersToCollect):r=t,o=Date.now(),this.nthSequenceNumber(e,r)))).next((r=>(n=r,a=Date.now(),this.removeTargets(e,n,t)))).next((t=>(i=t,l=Date.now(),this.removeOrphanedDocuments(e,n)))).next((e=>(c=Date.now(),T()<=s.$b.DEBUG&&k("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in ".concat(o-u,"ms\n\tDetermined least recently used ").concat(r," in ")+(a-o)+"ms\n"+"\tRemoved ".concat(i," targets in ")+(l-a)+"ms\n"+"\tRemoved ".concat(e," documents in ")+(c-l)+"ms\n"+"Total Duration: ".concat(c-u,"ms")),ve.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e}))))}}function aa(e,t){return new oa(e,t)}class sa{constructor(e,t){this.db=e,this.garbageCollector=aa(this,t)}Hn(e){const t=this.Zn(e);return this.db.getTargetCache().getTargetCount(e).next((e=>t.next((t=>e+t))))}Zn(e){let t=0;return this.Jn(e,(e=>{t++})).next((()=>t))}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}Jn(e,t){return this.Xn(e,((e,n)=>t(n)))}addReference(e,t,n){return la(e,n)}removeReference(e,t,n){return la(e,n)}removeTargets(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)}markPotentiallyOrphaned(e,t){return la(e,t)}er(e,t){return function(e,t){let n=!1;return Xo(e).Y((r=>Yo(e,r,t).next((e=>(e&&(n=!0),ve.resolve(!e)))))).next((()=>n))}(e,t)}removeOrphanedDocuments(e,t){const n=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[];let i=0;return this.Xn(e,((o,a)=>{if(a<=t){const t=this.er(e,o).next((t=>{if(!t)return i++,n.getEntry(e,o).next((()=>(n.removeEntry(o,$.min()),ta(e).delete(function(e){return[0,Re(e.path)]}(o)))))}));r.push(t)}})).next((()=>ve.waitFor(r))).next((()=>n.apply(e))).next((()=>i))}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)}updateLimboDocument(e,t){return la(e,t)}Xn(e,t){const n=ta(e);let r,i=De.oe;return n.J({index:"documentTargetsIndex"},((e,n)=>{let[o,a]=e,{path:s,sequenceNumber:l}=n;0===o?(i!==De.oe&&t(new ie(Me(r)),i),i=l,r=s):i=De.oe})).next((()=>{i!==De.oe&&t(new ie(Me(r)),i)}))}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function la(e,t){return ta(e).put(function(e,t){return{targetId:0,path:Re(e.path),sequenceNumber:t}}(t,e.currentSequenceNumber))}class ca{constructor(){this.changes=new Jn((e=>e.toString()),((e,t)=>e.isEqual(t))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,tn.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?ve.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class ua{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,n){return fa(e).put(n)}removeEntry(e,t,n){return fa(e).delete(function(e,t){const n=e.path.toArray();return[n.slice(0,n.length-2),n[n.length-2],Zi(t),n[n.length-1]]}(t,n))}updateMetadata(e,t){return this.getMetadata(e).next((n=>(n.byteSize+=t,this.tr(e,n))))}getEntry(e,t){let n=tn.newInvalidDocument(t);return fa(e).J({index:"documentKeyIndex",range:IDBKeyRange.only(ma(t))},((e,r)=>{n=this.nr(t,r)})).next((()=>n))}rr(e,t){let n={size:0,document:tn.newInvalidDocument(t)};return fa(e).J({index:"documentKeyIndex",range:IDBKeyRange.only(ma(t))},((e,r)=>{n={document:this.nr(t,r),size:qo(r)}})).next((()=>n))}getEntries(e,t){let n=er();return this.ir(e,t,((e,t)=>{const r=this.nr(e,t);n=n.insert(e,r)})).next((()=>n))}sr(e,t){let n=er(),r=new ht(ie.comparator);return this.ir(e,t,((e,t)=>{const i=this.nr(e,t);n=n.insert(e,i),r=r.insert(e,qo(t))})).next((()=>({documents:n,_r:r})))}ir(e,t,n){if(t.isEmpty())return ve.resolve();let r=new gt(va);t.forEach((e=>r=r.add(e)));const i=IDBKeyRange.bound(ma(r.first()),ma(r.last())),o=r.getIterator();let a=o.getNext();return fa(e).J({index:"documentKeyIndex",range:i},((e,t,r)=>{const i=ie.fromSegments([...t.prefixPath,t.collectionGroup,t.documentId]);for(;a&&va(a,i)<0;)n(a,null),a=o.getNext();a&&a.isEqual(i)&&(n(a,t),a=o.hasNext()?o.getNext():null),a?r.$(ma(a)):r.done()})).next((()=>{for(;a;)n(a,null),a=o.hasNext()?o.getNext():null}))}getDocumentsMatchingQuery(e,t,n,r,i){const o=t.path,a=[o.popLast().toArray(),o.lastSegment(),Zi(n.readTime),n.documentKey.path.isEmpty()?"":n.documentKey.path.lastSegment()],s=[o.popLast().toArray(),o.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return fa(e).U(IDBKeyRange.bound(a,s,!0)).next((e=>{null==i||i.incrementDocumentReadCount(e.length);let n=er();for(const i of e){const e=this.nr(ie.fromSegments(i.prefixPath.concat(i.collectionGroup,i.documentId)),i);e.isFoundDocument()&&(Kn(t,e)||r.has(e.key))&&(n=n.insert(e.key,e))}return n}))}getAllFromCollectionGroup(e,t,n,r){let i=er();const o=ga(t,n),a=ga(t,pe.max());return fa(e).J({index:"collectionGroupIndex",range:IDBKeyRange.bound(o,a,!0)},((e,t,n)=>{const o=this.nr(ie.fromSegments(t.prefixPath.concat(t.collectionGroup,t.documentId)),t);i=i.insert(o.key,o),i.size===r&&n.done()})).next((()=>i))}newChangeBuffer(e){return new pa(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next((e=>e.byteSize))}getMetadata(e){return ha(e).get("remoteDocumentGlobalKey").next((e=>(I(!!e),e)))}tr(e,t){return ha(e).put("remoteDocumentGlobalKey",t)}nr(e,t){if(t){const e=function(e,t){let n;if(t.document)n=Ii(e.ct,t.document,!!t.hasCommittedMutations);else if(t.noDocument){const e=ie.fromSegments(t.noDocument.path),r=$i(t.noDocument.readTime);n=tn.newNoDocument(e,r),t.hasCommittedMutations&&n.setHasCommittedMutations()}else{if(!t.unknownDocument)return N();{const e=ie.fromSegments(t.unknownDocument.path),r=$i(t.unknownDocument.version);n=tn.newUnknownDocument(e,r)}}return t.readTime&&n.setReadTime(function(e){const t=new J(e[0],e[1]);return $.fromTimestamp(t)}(t.readTime)),n}(this.serializer,t);if(!e.isNoDocument()||!e.version.isEqual($.min()))return e}return tn.newInvalidDocument(e)}}function da(e){return new ua(e)}class pa extends ca{constructor(e,t){super(),this.ar=e,this.trackRemovals=t,this.ur=new Jn((e=>e.toString()),((e,t)=>e.isEqual(t)))}applyChanges(e){const t=[];let n=0,r=new gt(((e,t)=>Q(e.canonicalString(),t.canonicalString())));return this.changes.forEach(((i,o)=>{const a=this.ur.get(i);if(t.push(this.ar.removeEntry(e,i,a.readTime)),o.isValidDocument()){const s=Xi(this.ar.serializer,o);r=r.add(i.path.popLast());const l=qo(s);n+=l-a.size,t.push(this.ar.addEntry(e,i,s))}else if(n-=a.size,this.trackRemovals){const n=Xi(this.ar.serializer,o.convertToNoDocument($.min()));t.push(this.ar.addEntry(e,i,n))}})),r.forEach((n=>{t.push(this.ar.indexManager.addToCollectionParentIndex(e,n))})),t.push(this.ar.updateMetadata(e,n)),ve.waitFor(t)}getFromCache(e,t){return this.ar.rr(e,t).next((e=>(this.ur.set(t,{size:e.size,readTime:e.document.readTime}),e.document)))}getAllFromCache(e,t){return this.ar.sr(e,t).next((e=>{let{documents:t,_r:n}=e;return n.forEach(((e,n)=>{this.ur.set(e,{size:n,readTime:t.get(e).readTime})})),t}))}}function ha(e){return ct(e,"remoteDocumentGlobal")}function fa(e){return ct(e,"remoteDocumentsV14")}function ma(e){const t=e.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function ga(e,t){const n=t.documentKey.path.toArray();return[e,Zi(t.readTime),n.slice(0,n.length-2),n.length>0?n[n.length-1]:""]}function va(e,t){const n=e.path.toArray(),r=t.path.toArray();let i=0;for(let o=0;o<n.length-2&&o<r.length-2;++o)if(i=Q(n[o],r[o]),i)return i;return i=Q(n.length,r.length),i||(i=Q(n[n.length-2],r[r.length-2]),i||Q(n[n.length-1],r[r.length-1]))}class ya{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class ba{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next((r=>(n=r,this.remoteDocumentCache.getEntry(e,t)))).next((e=>(null!==n&&Rr(n.mutation,e,bt.empty(),J.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,cr()).next((()=>t))))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cr();const r=ir();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=nr();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){const n=ir();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,cr())))}populateOverlays(e,t,n){const r=[];return n.forEach((e=>{t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((e=>{e.forEach(((e,n)=>{t.set(e,n)}))}))}computeViews(e,t,n,r){let i=er();const o=ar(),a=ar();return t.forEach(((e,t)=>{const a=n.get(t.key);r.has(t.key)&&(void 0===a||a.mutation instanceof Lr)?i=i.insert(t.key,t):void 0!==a?(o.set(t.key,a.mutation.getFieldMask()),Rr(a.mutation,t,a.mutation.getFieldMask(),J.now())):o.set(t.key,bt.empty())})),this.recalculateAndSaveOverlays(e,i).next((e=>(e.forEach(((e,t)=>o.set(e,t))),t.forEach(((e,t)=>{var n;return a.set(e,new ya(t,null!==(n=o.get(e))&&void 0!==n?n:null))})),a)))}recalculateAndSaveOverlays(e,t){const n=ar();let r=new ht(((e,t)=>e-t)),i=cr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((e=>{for(const i of e)i.keys().forEach((e=>{const o=t.get(e);if(null===o)return;let a=n.get(e)||bt.empty();a=i.applyToLocalView(o,a),n.set(e,a);const s=(r.get(i.batchId)||cr()).add(e);r=r.insert(i.batchId,s)}))})).next((()=>{const o=[],a=r.getReverseIterator();for(;a.hasNext();){const r=a.getNext(),s=r.key,l=r.value,c=or();l.forEach((e=>{if(!i.has(e)){const r=Nr(t.get(e),n.get(e));null!==r&&c.set(e,r),i=i.add(e)}})),o.push(this.documentOverlayCache.saveOverlays(e,s,c))}return ve.waitFor(o)})).next((()=>n))}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.recalculateAndSaveOverlays(e,t)))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return ie.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Bn(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((i=>{const o=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):ve.resolve(ir());let a=-1,s=i;return o.next((t=>ve.forEach(t,((t,n)=>(a<n.largestBatchId&&(a=n.largestBatchId),i.get(t)?ve.resolve():this.remoteDocumentCache.getEntry(e,t).next((e=>{s=s.insert(t,e)}))))).next((()=>this.populateOverlays(e,t,i))).next((()=>this.computeViews(e,s,t,cr()))).next((e=>({batchId:a,changes:rr(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ie(t)).next((e=>{let t=nr();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const i=t.collectionGroup;let o=nr();return this.indexManager.getCollectionParents(e,i).next((a=>ve.forEach(a,(a=>{const s=function(e,t){return new On(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(i));return this.getDocumentsMatchingCollectionQuery(e,s,n,r).next((e=>{e.forEach(((e,t)=>{o=o.insert(e,t)}))}))})).next((()=>o))))}getDocumentsMatchingCollectionQuery(e,t,n,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r)))).next((e=>{i.forEach(((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,tn.newInvalidDocument(r)))}));let n=nr();return e.forEach(((e,r)=>{const o=i.get(e);void 0!==o&&Rr(o.mutation,r,bt.empty(),J.now()),Kn(t,r)&&(n=n.insert(e,r))})),n}))}}class wa{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}getBundleMetadata(e,t){return ve.resolve(this.cr.get(t))}saveBundleMetadata(e,t){return this.cr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:Ci(e.createTime)}}(t)),ve.resolve()}getNamedQuery(e,t){return ve.resolve(this.lr.get(t))}saveNamedQuery(e,t){return this.lr.set(t.name,function(e){return{name:e.name,query:ro(e.bundledQuery),readTime:Ci(e.readTime)}}(t)),ve.resolve()}}class xa{constructor(){this.overlays=new ht(ie.comparator),this.hr=new Map}getOverlay(e,t){return ve.resolve(this.overlays.get(t))}getOverlays(e,t){const n=ir();return ve.forEach(t,(t=>this.getOverlay(e,t).next((e=>{null!==e&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){return n.forEach(((n,r)=>{this.ht(e,t,r)})),ve.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.hr.get(n);return void 0!==r&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.hr.delete(n)),ve.resolve()}getOverlaysForCollection(e,t,n){const r=ir(),i=t.length+1,o=new ie(t.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const e=a.getNext().value,o=e.getKey();if(!t.isPrefixOf(o.path))break;o.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return ve.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new ht(((e,t)=>e-t));const o=this.overlays.getIterator();for(;o.hasNext();){const e=o.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=ir(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const a=ir(),s=i.getIterator();for(;s.hasNext()&&(s.getNext().value.forEach(((e,t)=>a.set(e,t))),!(a.size()>=r)););return ve.resolve(a)}ht(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.hr.get(r.largestBatchId).delete(n.key);this.hr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Gr(t,n));let i=this.hr.get(t);void 0===i&&(i=cr(),this.hr.set(t,i)),this.hr.set(t,i.add(n.key))}}class Ca{constructor(){this.Pr=new gt(Aa.Ir),this.Tr=new gt(Aa.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,t){const n=new Aa(e,t);this.Pr=this.Pr.add(n),this.Tr=this.Tr.add(n)}dr(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.Ar(new Aa(e,t))}Rr(e,t){e.forEach((e=>this.removeReference(e,t)))}Vr(e){const t=new ie(new te([])),n=new Aa(t,e),r=new Aa(t,e+1),i=[];return this.Tr.forEachInRange([n,r],(e=>{this.Ar(e),i.push(e.key)})),i}mr(){this.Pr.forEach((e=>this.Ar(e)))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const t=new ie(new te([])),n=new Aa(t,e),r=new Aa(t,e+1);let i=cr();return this.Tr.forEachInRange([n,r],(e=>{i=i.add(e.key)})),i}containsKey(e){const t=new Aa(e,0),n=this.Pr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class Aa{constructor(e,t){this.key=e,this.pr=t}static Ir(e,t){return ie.comparator(e.key,t.key)||Q(e.pr,t.pr)}static Er(e,t){return Q(e.pr,t.pr)||ie.comparator(e.key,t.key)}}class Ea{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.yr=1,this.wr=new gt(Aa.Ir)}checkEmpty(e){return ve.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const i=this.yr;this.yr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new Wr(i,t,n,r);this.mutationQueue.push(o);for(const a of r)this.wr=this.wr.add(new Aa(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ve.resolve(o)}lookupMutationBatch(e,t){return ve.resolve(this.Sr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.br(n),i=r<0?0:r;return ve.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return ve.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(e){return ve.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new Aa(t,0),r=new Aa(t,Number.POSITIVE_INFINITY),i=[];return this.wr.forEachInRange([n,r],(e=>{const t=this.Sr(e.pr);i.push(t)})),ve.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new gt(Q);return t.forEach((e=>{const t=new Aa(e,0),r=new Aa(e,Number.POSITIVE_INFINITY);this.wr.forEachInRange([t,r],(e=>{n=n.add(e.pr)}))})),ve.resolve(this.Dr(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let i=n;ie.isDocumentKey(i)||(i=i.child(""));const o=new Aa(new ie(i),0);let a=new gt(Q);return this.wr.forEachWhile((e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.pr)),!0)}),o),ve.resolve(this.Dr(a))}Dr(e){const t=[];return e.forEach((e=>{const n=this.Sr(e);null!==n&&t.push(n)})),t}removeMutationBatch(e,t){I(0===this.Cr(t.batchId,"removed")),this.mutationQueue.shift();let n=this.wr;return ve.forEach(t.mutations,(r=>{const i=new Aa(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.wr=n}))}Mn(e){}containsKey(e,t){const n=new Aa(t,0),r=this.wr.firstAfterOrEqual(n);return ve.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,ve.resolve()}Cr(e,t){return this.br(e)}br(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Sr(e){const t=this.br(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class _a{constructor(e){this.vr=e,this.docs=new ht(ie.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),i=r?r.size:0,o=this.vr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return ve.resolve(n?n.document.mutableCopy():tn.newInvalidDocument(t))}getEntries(e,t){let n=er();return t.forEach((e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():tn.newInvalidDocument(e))})),ve.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let i=er();const o=t.path,a=new ie(o.child("")),s=this.docs.getIteratorFrom(a);for(;s.hasNext();){const{key:e,value:{document:a}}=s.getNext();if(!o.isPrefixOf(e.path))break;e.path.length>o.length+1||he(de(a),n)<=0||(r.has(a.key)||Kn(t,a))&&(i=i.insert(a.key,a.mutableCopy()))}return ve.resolve(i)}getAllFromCollectionGroup(e,t,n,r){N()}Fr(e,t){return ve.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new Ta(this)}getSize(e){return ve.resolve(this.size)}}class Ta extends ca{constructor(e){super(),this.ar=e}applyChanges(e){const t=[];return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this.ar.addEntry(e,r)):this.ar.removeEntry(n)})),ve.waitFor(t)}getFromCache(e,t){return this.ar.getEntry(e,t)}getAllFromCache(e,t){return this.ar.getEntries(e,t)}}class Sa{constructor(e){this.persistence=e,this.Mr=new Jn((e=>Pn(e)),Dn),this.lastRemoteSnapshotVersion=$.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Ca,this.targetCount=0,this.Lr=Zo.Nn()}forEachTarget(e,t){return this.Mr.forEach(((e,n)=>t(n))),ve.resolve()}getLastRemoteSnapshotVersion(e){return ve.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ve.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),ve.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Or&&(this.Or=t),ve.resolve()}qn(e){this.Mr.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Lr=new Zo(t),this.highestTargetId=t),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,t){return this.qn(t),this.targetCount+=1,ve.resolve()}updateTargetData(e,t){return this.qn(t),ve.resolve()}removeTargetData(e,t){return this.Mr.delete(t.target),this.Nr.Vr(t.targetId),this.targetCount-=1,ve.resolve()}removeTargets(e,t,n){let r=0;const i=[];return this.Mr.forEach(((o,a)=>{a.sequenceNumber<=t&&null===n.get(a.targetId)&&(this.Mr.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)})),ve.waitFor(i).next((()=>r))}getTargetCount(e){return ve.resolve(this.targetCount)}getTargetData(e,t){const n=this.Mr.get(t)||null;return ve.resolve(n)}addMatchingKeys(e,t,n){return this.Nr.dr(t,n),ve.resolve()}removeMatchingKeys(e,t,n){this.Nr.Rr(t,n);const r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((t=>{i.push(r.markPotentiallyOrphaned(e,t))})),ve.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.Nr.Vr(t),ve.resolve()}getMatchingKeysForTargetId(e,t){const n=this.Nr.gr(t);return ve.resolve(n)}containsKey(e,t){return ve.resolve(this.Nr.containsKey(t))}}class ka{constructor(e,t){this.Br={},this.overlays={},this.kr=new De(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new Sa(this),this.indexManager=new Io,this.remoteDocumentCache=function(e){return new _a(e)}((e=>this.referenceDelegate.Kr(e))),this.serializer=new Qi(t),this.$r=new wa(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new xa,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.Br[e.toKey()];return n||(n=new Ea(t,this.referenceDelegate),this.Br[e.toKey()]=n),n}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,t,n){k("MemoryPersistence","Starting transaction:",e);const r=new Pa(this.kr.next());return this.referenceDelegate.Ur(),n(r).next((e=>this.referenceDelegate.Wr(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}Gr(e,t){return ve.or(Object.values(this.Br).map((n=>()=>n.containsKey(e,t))))}}class Pa extends me{constructor(e){super(),this.currentSequenceNumber=e}}class Da{constructor(e){this.persistence=e,this.zr=new Ca,this.jr=null}static Hr(e){return new Da(e)}get Jr(){if(this.jr)return this.jr;throw N()}addReference(e,t,n){return this.zr.addReference(n,t),this.Jr.delete(n.toString()),ve.resolve()}removeReference(e,t,n){return this.zr.removeReference(n,t),this.Jr.add(n.toString()),ve.resolve()}markPotentiallyOrphaned(e,t){return this.Jr.add(t.toString()),ve.resolve()}removeTarget(e,t){this.zr.Vr(t.targetId).forEach((e=>this.Jr.add(e.toString())));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.Jr.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}Ur(){this.jr=new Set}Wr(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ve.forEach(this.Jr,(n=>{const r=ie.fromPath(n);return this.Yr(e,r).next((e=>{e||t.removeEntry(r,$.min())}))})).next((()=>(this.jr=null,t.apply(e))))}updateLimboDocument(e,t){return this.Yr(e,t).next((e=>{e?this.Jr.delete(t.toString()):this.Jr.add(t.toString())}))}Kr(e){return 0}Yr(e,t){return ve.or([()=>ve.resolve(this.zr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Gr(e,t)])}}class Fa{constructor(e){this.serializer=e}O(e,t,n,r){const i=new ye("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore("owner")}(e),function(e){e.createObjectStore("mutationQueues",{keyPath:"userId"}),e.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",Le,{unique:!0}),e.createObjectStore("documentMutations")}(e),Na(e),function(e){e.createObjectStore("remoteDocuments")}(e));let o=ve.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore("targetDocuments"),e.deleteObjectStore("targets"),e.deleteObjectStore("targetGlobal")}(e),Na(e)),o=o.next((()=>function(e){const t=e.store("targetGlobal"),n={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:$.min().toTimestamp(),targetCount:0};return t.put("targetGlobalKey",n)}(i)))),n<4&&r>=4&&(0!==n&&(o=o.next((()=>function(e,t){return t.store("mutations").U().next((n=>{e.deleteObjectStore("mutations"),e.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",Le,{unique:!0});const r=t.store("mutations"),i=n.map((e=>r.put(e)));return ve.waitFor(i)}))}(e,i)))),o=o.next((()=>{!function(e){e.createObjectStore("clientMetadata",{keyPath:"clientId"})}(e)}))),n<5&&r>=5&&(o=o.next((()=>this.Xr(i)))),n<6&&r>=6&&(o=o.next((()=>(function(e){e.createObjectStore("remoteDocumentGlobal")}(e),this.ei(i))))),n<7&&r>=7&&(o=o.next((()=>this.ti(i)))),n<8&&r>=8&&(o=o.next((()=>this.ni(e,i)))),n<9&&r>=9&&(o=o.next((()=>{!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e)}))),n<10&&r>=10&&(o=o.next((()=>this.ri(i)))),n<11&&r>=11&&(o=o.next((()=>{!function(e){e.createObjectStore("bundles",{keyPath:"bundleId"})}(e),function(e){e.createObjectStore("namedQueries",{keyPath:"name"})}(e)}))),n<12&&r>=12&&(o=o.next((()=>{!function(e){const t=e.createObjectStore("documentOverlays",{keyPath:$e});t.createIndex("collectionPathOverlayIndex",et,{unique:!1}),t.createIndex("collectionGroupOverlayIndex",tt,{unique:!1})}(e)}))),n<13&&r>=13&&(o=o.next((()=>function(e){const t=e.createObjectStore("remoteDocumentsV14",{keyPath:He});t.createIndex("documentKeyIndex",ze),t.createIndex("collectionGroupIndex",We)}(e))).next((()=>this.ii(e,i))).next((()=>e.deleteObjectStore("remoteDocuments")))),n<14&&r>=14&&(o=o.next((()=>this.si(e,i)))),n<15&&r>=15&&(o=o.next((()=>function(e){e.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),e.createObjectStore("indexState",{keyPath:Qe}).createIndex("sequenceNumberIndex",Xe,{unique:!1}),e.createObjectStore("indexEntries",{keyPath:Ze}).createIndex("documentKeyIndex",Je,{unique:!1})}(e)))),n<16&&r>=16&&(o=o.next((()=>{t.objectStore("indexState").clear()})).next((()=>{t.objectStore("indexEntries").clear()}))),o}ei(e){let t=0;return e.store("remoteDocuments").J(((e,n)=>{t+=qo(n)})).next((()=>{const n={byteSize:t};return e.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",n)}))}Xr(e){const t=e.store("mutationQueues"),n=e.store("mutations");return t.U().next((t=>ve.forEach(t,(t=>{const r=IDBKeyRange.bound([t.userId,-1],[t.userId,t.lastAcknowledgedBatchId]);return n.U("userMutationsIndex",r).next((n=>ve.forEach(n,(n=>{I(n.userId===t.userId);const r=eo(this.serializer,n);return Wo(e,t.userId,r).next((()=>{}))}))))}))))}ti(e){const t=e.store("targetDocuments"),n=e.store("remoteDocuments");return e.store("targetGlobal").get("targetGlobalKey").next((e=>{const r=[];return n.J(((n,i)=>{const o=new te(n),a=function(e){return[0,Re(e)]}(o);r.push(t.get(a).next((n=>n?ve.resolve():(n=>t.put({targetId:0,path:Re(n),sequenceNumber:e.highestListenSequenceNumber}))(o))))})).next((()=>ve.waitFor(r)))}))}ni(e,t){e.createObjectStore("collectionParents",{keyPath:Ke});const n=t.store("collectionParents"),r=new Ro,i=e=>{if(r.add(e)){const t=e.lastSegment(),r=e.popLast();return n.put({collectionId:t,parent:Re(r)})}};return t.store("remoteDocuments").J({H:!0},((e,t)=>{const n=new te(e);return i(n.popLast())})).next((()=>t.store("documentMutations").J({H:!0},((e,t)=>{let[n,r,o]=e;const a=Me(r);return i(a.popLast())}))))}ri(e){const t=e.store("targets");return t.J(((e,n)=>{const r=to(n),i=no(this.serializer,r);return t.put(i)}))}ii(e,t){const n=t.store("remoteDocuments"),r=[];return n.J(((e,n)=>{const i=t.store("remoteDocumentsV14"),o=function(e){return e.document?new ie(te.fromString(e.document.name).popFirst(5)):e.noDocument?ie.fromSegments(e.noDocument.path):e.unknownDocument?ie.fromSegments(e.unknownDocument.path):N()}(n).path.toArray(),a={prefixPath:o.slice(0,o.length-2),collectionGroup:o[o.length-2],documentId:o[o.length-1],readTime:n.readTime||[0,0],unknownDocument:n.unknownDocument,noDocument:n.noDocument,document:n.document,hasCommittedMutations:!!n.hasCommittedMutations};r.push(i.put(a))})).next((()=>ve.waitFor(r)))}si(e,t){const n=t.store("mutations"),r=da(this.serializer),i=new ka(Da.Hr,this.serializer.ct);return n.U().next((e=>{const n=new Map;return e.forEach((e=>{var t;let r=null!==(t=n.get(e.userId))&&void 0!==t?t:cr();eo(this.serializer,e).keys().forEach((e=>r=r.add(e))),n.set(e.userId,r)})),ve.forEach(n,((e,n)=>{const o=new A(n),a=uo.lt(this.serializer,o),s=i.getIndexManager(o),l=Go.lt(o,this.serializer,s,i.referenceDelegate);return new ba(r,l,a,s).recalculateAndSaveOverlaysForDocumentKeys(new lt(t,De.oe),e).next()}))}))}}function Na(e){e.createObjectStore("targetDocuments",{keyPath:Ge}).createIndex("documentTargetsIndex",Ye,{unique:!0}),e.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",qe,{unique:!0}),e.createObjectStore("targetGlobal")}const Ia="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";class Ra{constructor(e,t,n,r,i,o,a,s,l,c){let u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:16;if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=n,this.oi=i,this.window=o,this.document=a,this._i=l,this.ai=c,this.ui=u,this.kr=null,this.qr=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ci=null,this.inForeground=!1,this.li=null,this.hi=null,this.Pi=Number.NEGATIVE_INFINITY,this.Ii=e=>Promise.resolve(),!Ra.D())throw new M(j.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new sa(this,r),this.Ti=t+"main",this.serializer=new Qi(s),this.Ei=new be(this.Ti,this.ui,new Fa(this.serializer)),this.Qr=new Jo(this.referenceDelegate,this.serializer),this.remoteDocumentCache=da(this.serializer),this.$r=new so,this.window&&this.window.localStorage?this.di=this.window.localStorage:(this.di=null,!1===c&&P("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.Ai().then((()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new M(j.FAILED_PRECONDITION,Ia);return this.Ri(),this.Vi(),this.mi(),this.runTransaction("getHighestListenSequenceNumber","readonly",(e=>this.Qr.getHighestSequenceNumber(e)))})).then((e=>{this.kr=new De(e,this._i)})).then((()=>{this.qr=!0})).catch((e=>(this.Ei&&this.Ei.close(),Promise.reject(e))))}fi(e){return this.Ii=async t=>{if(this.started)return e(t)},e(this.isPrimary)}setDatabaseDeletedListener(e){this.Ei.L((async t=>{null===t.newVersion&&await e()}))}setNetworkEnabled(e){this.networkEnabled!==e&&(this.networkEnabled=e,this.oi.enqueueAndForget((async()=>{this.started&&await this.Ai()})))}Ai(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(e=>ja(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next((()=>{if(this.isPrimary)return this.gi(e).next((e=>{e||(this.isPrimary=!1,this.oi.enqueueRetryable((()=>this.Ii(!1))))}))})).next((()=>this.pi(e))).next((t=>this.isPrimary&&!t?this.yi(e).next((()=>!1)):!!t&&this.wi(e).next((()=>!0)))))).catch((e=>{if(Ae(e))return k("IndexedDbPersistence","Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return k("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((e=>{this.isPrimary!==e&&this.oi.enqueueRetryable((()=>this.Ii(e))),this.isPrimary=e}))}gi(e){return Oa(e).get("owner").next((e=>ve.resolve(this.Si(e))))}bi(e){return ja(e).delete(this.clientId)}async Di(){if(this.isPrimary&&!this.Ci(this.Pi,18e5)){this.Pi=Date.now();const e=await this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(e=>{const t=ct(e,"clientMetadata");return t.U().next((e=>{const n=this.vi(e,18e5),r=e.filter((e=>-1===n.indexOf(e)));return ve.forEach(r,(e=>t.delete(e.clientId))).next((()=>r))}))})).catch((()=>[]));if(this.di)for(const t of e)this.di.removeItem(this.Fi(t.clientId))}}mi(){this.hi=this.oi.enqueueAfterDelay("client_metadata_refresh",4e3,(()=>this.Ai().then((()=>this.Di())).then((()=>this.mi()))))}Si(e){return!!e&&e.ownerId===this.clientId}pi(e){return this.ai?ve.resolve(!0):Oa(e).get("owner").next((t=>{if(null!==t&&this.Ci(t.leaseTimestampMs,5e3)&&!this.Mi(t.ownerId)){if(this.Si(t)&&this.networkEnabled)return!0;if(!this.Si(t)){if(!t.allowTabSynchronization)throw new M(j.FAILED_PRECONDITION,Ia);return!1}}return!(!this.networkEnabled||!this.inForeground)||ja(e).U().next((e=>void 0===this.vi(e,5e3).find((e=>{if(this.clientId!==e.clientId){const t=!this.networkEnabled&&e.networkEnabled,n=!this.inForeground&&e.inForeground,r=this.networkEnabled===e.networkEnabled;if(t||n&&r)return!0}return!1}))))})).next((e=>(this.isPrimary!==e&&k("IndexedDbPersistence","Client ".concat(e?"is":"is not"," eligible for a primary lease.")),e)))}async shutdown(){this.qr=!1,this.xi(),this.hi&&(this.hi.cancel(),this.hi=null),this.Oi(),this.Ni(),await this.Ei.runTransaction("shutdown","readwrite",["owner","clientMetadata"],(e=>{const t=new lt(e,De.oe);return this.yi(t).next((()=>this.bi(t)))})),this.Ei.close(),this.Li()}vi(e,t){return e.filter((e=>this.Ci(e.updateTimeMs,t)&&!this.Mi(e.clientId)))}Bi(){return this.runTransaction("getActiveClients","readonly",(e=>ja(e).U().next((e=>this.vi(e,18e5).map((e=>e.clientId))))))}get started(){return this.qr}getMutationQueue(e,t){return Go.lt(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new jo(e,this.serializer.ct.databaseId)}getDocumentOverlayCache(e){return uo.lt(this.serializer,e)}getBundleCache(){return this.$r}runTransaction(e,t,n){k("IndexedDbPersistence","Starting transaction:",e);const r="readonly"===t?"readonly":"readwrite",i=function(e){return 16===e?st:15===e?at:14===e?ot:13===e?it:12===e?rt:11===e?nt:void N()}(this.ui);let o;return this.Ei.runTransaction(e,r,i,(r=>(o=new lt(r,this.kr?this.kr.next():De.oe),"readwrite-primary"===t?this.gi(o).next((e=>!!e||this.pi(o))).next((t=>{if(!t)throw P("Failed to obtain primary lease for action '".concat(e,"'.")),this.isPrimary=!1,this.oi.enqueueRetryable((()=>this.Ii(!1))),new M(j.FAILED_PRECONDITION,fe);return n(o)})).next((e=>this.wi(o).next((()=>e)))):this.ki(o).next((()=>n(o)))))).then((e=>(o.raiseOnCommittedEvent(),e)))}ki(e){return Oa(e).get("owner").next((e=>{if(null!==e&&this.Ci(e.leaseTimestampMs,5e3)&&!this.Mi(e.ownerId)&&!this.Si(e)&&!(this.ai||this.allowTabSynchronization&&e.allowTabSynchronization))throw new M(j.FAILED_PRECONDITION,Ia)}))}wi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Oa(e).put("owner",t)}static D(){return be.D()}yi(e){const t=Oa(e);return t.get("owner").next((e=>this.Si(e)?(k("IndexedDbPersistence","Releasing primary lease."),t.delete("owner")):ve.resolve()))}Ci(e,t){const n=Date.now();return!(e<n-t)&&(!(e>n)||(P("Detected an update time that is in the future: ".concat(e," > ").concat(n)),!1))}Ri(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.li=()=>{this.oi.enqueueAndForget((()=>(this.inForeground="visible"===this.document.visibilityState,this.Ai())))},this.document.addEventListener("visibilitychange",this.li),this.inForeground="visible"===this.document.visibilityState)}Oi(){this.li&&(this.document.removeEventListener("visibilitychange",this.li),this.li=null)}Vi(){var e;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ci=()=>{this.xi();const e=/(?:Version|Mobile)\/1[456]/;(0,l.nr)()&&(navigator.appVersion.match(e)||navigator.userAgent.match(e))&&this.oi.enterRestrictedMode(!0),this.oi.enqueueAndForget((()=>this.shutdown()))},this.window.addEventListener("pagehide",this.ci))}Ni(){this.ci&&(this.window.removeEventListener("pagehide",this.ci),this.ci=null)}Mi(e){var t;try{const n=null!==(null===(t=this.di)||void 0===t?void 0:t.getItem(this.Fi(e)));return k("IndexedDbPersistence","Client '".concat(e,"' ").concat(n?"is":"is not"," zombied in LocalStorage")),n}catch(e){return P("IndexedDbPersistence","Failed to get zombied client id.",e),!1}}xi(){if(this.di)try{this.di.setItem(this.Fi(this.clientId),String(Date.now()))}catch(e){P("Failed to set zombie client id.",e)}}Li(){if(this.di)try{this.di.removeItem(this.Fi(this.clientId))}catch(e){}}Fi(e){return"firestore_zombie_".concat(this.persistenceKey,"_").concat(e)}}function Oa(e){return ct(e,"owner")}function ja(e){return ct(e,"clientMetadata")}function Ma(e,t){let n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}class La{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.qi=n,this.Qi=r}static Ki(e,t){let n=cr(),r=cr();for(const i of t.docChanges)switch(i.type){case 0:n=n.add(i.doc.key);break;case 1:r=r.add(i.doc.key)}return new La(e,t.fromCache,n,r)}}class Ba{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class Ua{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,l.nr)()?8:we((0,l.ZQ)())>0?6:4}initialize(e,t){this.zi=e,this.indexManager=t,this.$i=!0}getDocumentsMatchingQuery(e,t,n,r){const i={result:null};return this.ji(e,t).next((e=>{i.result=e})).next((()=>{if(!i.result)return this.Hi(e,t,r,n).next((e=>{i.result=e}))})).next((()=>{if(i.result)return;const n=new Ba;return this.Ji(e,t,n).next((r=>{if(i.result=r,this.Ui)return this.Yi(e,t,n,r.size)}))})).next((()=>i.result))}Yi(e,t,n,r){return n.documentReadCount<this.Wi?(T()<=s.$b.DEBUG&&k("QueryEngine","SDK will not create cache indexes for query:",Yn(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),ve.resolve()):(T()<=s.$b.DEBUG&&k("QueryEngine","Query:",Yn(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.Gi*r?(T()<=s.$b.DEBUG&&k("QueryEngine","The SDK decides to create cache indexes for query:",Yn(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Vn(t))):ve.resolve())}ji(e,t){if(Ln(t))return ve.resolve(null);let n=Vn(t);return this.indexManager.getIndexType(e,n).next((r=>0===r?null:(null!==t.limit&&1===r&&(t=Wn(t,null,"F"),n=Vn(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{const i=cr(...r);return this.zi.getDocuments(e,i).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{const o=this.Zi(t,r);return this.Xi(t,o,i,n.readTime)?this.ji(e,Wn(t,null,"F")):this.es(e,o,t,n)}))))})))))}Hi(e,t,n,r){return Ln(t)||r.isEqual($.min())?ve.resolve(null):this.zi.getDocuments(e,n).next((i=>{const o=this.Zi(t,i);return this.Xi(t,o,n,r)?ve.resolve(null):(T()<=s.$b.DEBUG&&k("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),Yn(t)),this.es(e,o,t,ue(r,-1)).next((e=>e)))}))}Zi(e,t){let n=new gt(Xn(e));return t.forEach(((t,r)=>{Kn(e,r)&&(n=n.add(r))})),n}Xi(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}Ji(e,t,n){return T()<=s.$b.DEBUG&&k("QueryEngine","Using full collection scan to execute query:",Yn(t)),this.zi.getDocumentsMatchingQuery(e,t,pe.min(),n)}es(e,t,n,r){return this.zi.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}}class Va{constructor(e,t,n,r){this.persistence=e,this.ts=t,this.serializer=r,this.ns=new ht(Q),this.rs=new Jn((e=>Pn(e)),Dn),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(n)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new ba(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(t=>e.collect(t,this.ns)))}}function Ha(e,t,n,r){return new Va(e,t,n,r)}async function za(e,t){const n=O(e);return await n.persistence.runTransaction("Handle user change","readonly",(e=>{let r;return n.mutationQueue.getAllMutationBatches(e).next((i=>(r=i,n._s(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{const i=[],o=[];let a=cr();for(const e of r){i.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}for(const e of t){o.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}return n.localDocuments.getDocuments(e,a).next((e=>({us:e,removedBatchIds:i,addedBatchIds:o})))}))}))}function Wa(e){const t=O(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(e=>t.Qr.getLastRemoteSnapshotVersion(e)))}function qa(e,t,n){let r=cr(),i=cr();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=er();return n.forEach(((n,o)=>{const a=e.get(n);o.isFoundDocument()!==a.isFoundDocument()&&(i=i.add(n)),o.isNoDocument()&&o.version.isEqual($.min())?(t.removeEntry(n,o.readTime),r=r.insert(n,o)):!a.isValidDocument()||o.version.compareTo(a.version)>0||0===o.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(o),r=r.insert(n,o)):k("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",o.version)})),{cs:r,ls:i}}))}function Ga(e,t){const n=O(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(e=>(void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t))))}function Ya(e,t){const n=O(e);return n.persistence.runTransaction("Allocate target","readwrite",(e=>{let r;return n.Qr.getTargetData(e,t).next((i=>i?(r=i,ve.resolve(r)):n.Qr.allocateTargetId(e).next((i=>(r=new Ki(t,i,"TargetPurposeListen",e.currentSequenceNumber),n.Qr.addTargetData(e,r).next((()=>r)))))))})).then((e=>{const r=n.ns.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.ns=n.ns.insert(e.targetId,e),n.rs.set(t,e.targetId)),e}))}async function Ka(e,t,n){const r=O(e),i=r.ns.get(t),o=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",o,(e=>r.persistence.referenceDelegate.removeTarget(e,i)))}catch(e){if(!Ae(e))throw e;k("LocalStore","Failed to update sequence numbers for target ".concat(t,": ").concat(e))}r.ns=r.ns.remove(t),r.rs.delete(i.target)}function Qa(e,t,n){const r=O(e);let i=$.min(),o=cr();return r.persistence.runTransaction("Execute query","readwrite",(e=>function(e,t,n){const r=O(e),i=r.rs.get(n);return void 0!==i?ve.resolve(r.ns.get(i)):r.Qr.getTargetData(t,n)}(r,e,Vn(t)).next((t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(e,t.targetId).next((e=>{o=e}))})).next((()=>r.ts.getDocumentsMatchingQuery(e,t,n?i:$.min(),n?o:cr()))).next((e=>(Ja(r,Qn(t),e),{documents:e,hs:o})))))}function Xa(e,t){const n=O(e),r=O(n.Qr),i=n.ns.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(e=>r.ot(e,t).next((e=>e?e.target:null))))}function Za(e,t){const n=O(e),r=n.ss.get(t)||$.min();return n.persistence.runTransaction("Get new document changes","readonly",(e=>n.os.getAllFromCollectionGroup(e,t,ue(r,-1),Number.MAX_SAFE_INTEGER))).then((e=>(Ja(n,t,e),e)))}function Ja(e,t,n){let r=e.ss.get(t)||$.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.ss.set(t,r)}async function $a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cr();const r=await Ya(e,Vn(ro(t.bundledQuery))),i=O(e);return i.persistence.runTransaction("Save named query","readwrite",(e=>{const o=Ci(t.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.$r.saveNamedQuery(e,t);const a=r.withResumeToken(Ct.EMPTY_BYTE_STRING,o);return i.ns=i.ns.insert(a.targetId,a),i.Qr.updateTargetData(e,a).next((()=>i.Qr.removeMatchingKeysForTargetId(e,r.targetId))).next((()=>i.Qr.addMatchingKeys(e,n,r.targetId))).next((()=>i.$r.saveNamedQuery(e,t)))}))}function es(e,t){return"firestore_clients_".concat(e,"_").concat(t)}function ts(e,t,n){let r="firestore_mutations_".concat(e,"_").concat(n);return t.isAuthenticated()&&(r+="_".concat(t.uid)),r}function ns(e,t){return"firestore_targets_".concat(e,"_").concat(t)}class rs{constructor(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}static Es(e,t,n){const r=JSON.parse(n);let i,o="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return o&&r.error&&(o="string"==typeof r.error.message&&"string"==typeof r.error.code,o&&(i=new M(r.error.code,r.error.message))),o?new rs(e,t,r.state,i):(P("SharedClientState","Failed to parse mutation state for ID '".concat(t,"': ").concat(n)),null)}ds(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class is{constructor(e,t,n){this.targetId=e,this.state=t,this.error=n}static Es(e,t){const n=JSON.parse(t);let r,i="object"==typeof n&&-1!==["not-current","current","rejected"].indexOf(n.state)&&(void 0===n.error||"object"==typeof n.error);return i&&n.error&&(i="string"==typeof n.error.message&&"string"==typeof n.error.code,i&&(r=new M(n.error.code,n.error.message))),i?new is(e,n.state,r):(P("SharedClientState","Failed to parse target state for ID '".concat(e,"': ").concat(t)),null)}ds(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class os{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static Es(e,t){const n=JSON.parse(t);let r="object"==typeof n&&n.activeTargetIds instanceof Array,i=dr();for(let o=0;r&&o<n.activeTargetIds.length;++o)r=Ie(n.activeTargetIds[o]),i=i.add(n.activeTargetIds[o]);return r?new os(e,i):(P("SharedClientState","Failed to parse client data for instance '".concat(e,"': ").concat(t)),null)}}class as{constructor(e,t){this.clientId=e,this.onlineState=t}static Es(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new as(t.clientId,t.onlineState):(P("SharedClientState","Failed to parse online state: ".concat(e)),null)}}class ss{constructor(){this.activeTargetIds=dr()}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class ls{constructor(e,t,n,r,i){this.window=e,this.oi=t,this.persistenceKey=n,this.Vs=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.fs=this.gs.bind(this),this.ps=new ht(Q),this.started=!1,this.ys=[];const o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.ws=es(this.persistenceKey,this.Vs),this.Ss=function(e){return"firestore_sequence_number_".concat(e)}(this.persistenceKey),this.ps=this.ps.insert(this.Vs,new ss),this.bs=new RegExp("^firestore_clients_".concat(o,"_([^_]*)$")),this.Ds=new RegExp("^firestore_mutations_".concat(o,"_(\\d+)(?:_(.*))?$")),this.Cs=new RegExp("^firestore_targets_".concat(o,"_(\\d+)$")),this.vs=function(e){return"firestore_online_state_".concat(e)}(this.persistenceKey),this.Fs=function(e){return"firestore_bundle_loaded_v2_".concat(e)}(this.persistenceKey),this.window.addEventListener("storage",this.fs)}static D(e){return!(!e||!e.localStorage)}async start(){const e=await this.syncEngine.Bi();for(const n of e){if(n===this.Vs)continue;const e=this.getItem(es(this.persistenceKey,n));if(e){const t=os.Es(n,e);t&&(this.ps=this.ps.insert(t.clientId,t))}}this.Ms();const t=this.storage.getItem(this.vs);if(t){const e=this.xs(t);e&&this.Os(e)}for(const n of this.ys)this.gs(n);this.ys=[],this.window.addEventListener("pagehide",(()=>this.shutdown())),this.started=!0}writeSequenceNumber(e){this.setItem(this.Ss,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Ns(this.ps)}isActiveQueryTarget(e){let t=!1;return this.ps.forEach(((n,r)=>{r.activeTargetIds.has(e)&&(t=!0)})),t}addPendingMutation(e){this.Ls(e,"pending")}updateMutationState(e,t,n){this.Ls(e,t,n),this.Bs(e)}addLocalQueryTarget(e){let t="not-current";if(this.isActiveQueryTarget(e)){const n=this.storage.getItem(ns(this.persistenceKey,e));if(n){const r=is.Es(e,n);r&&(t=r.state)}}return this.ks.As(e),this.Ms(),t}removeLocalQueryTarget(e){this.ks.Rs(e),this.Ms()}isLocalQueryTarget(e){return this.ks.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(ns(this.persistenceKey,e))}updateQueryState(e,t,n){this.qs(e,t,n)}handleUserChange(e,t,n){t.forEach((e=>{this.Bs(e)})),this.currentUser=e,n.forEach((e=>{this.addPendingMutation(e)}))}setOnlineState(e){this.Qs(e)}notifyBundleLoaded(e){this.Ks(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.fs),this.removeItem(this.ws),this.started=!1)}getItem(e){const t=this.storage.getItem(e);return k("SharedClientState","READ",e,t),t}setItem(e,t){k("SharedClientState","SET",e,t),this.storage.setItem(e,t)}removeItem(e){k("SharedClientState","REMOVE",e),this.storage.removeItem(e)}gs(e){const t=e;if(t.storageArea===this.storage){if(k("SharedClientState","EVENT",t.key,t.newValue),t.key===this.ws)return void P("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.oi.enqueueRetryable((async()=>{if(this.started){if(null!==t.key)if(this.bs.test(t.key)){if(null==t.newValue){const e=this.$s(t.key);return this.Us(e,null)}{const e=this.Ws(t.key,t.newValue);if(e)return this.Us(e.clientId,e)}}else if(this.Ds.test(t.key)){if(null!==t.newValue){const e=this.Gs(t.key,t.newValue);if(e)return this.zs(e)}}else if(this.Cs.test(t.key)){if(null!==t.newValue){const e=this.js(t.key,t.newValue);if(e)return this.Hs(e)}}else if(t.key===this.vs){if(null!==t.newValue){const e=this.xs(t.newValue);if(e)return this.Os(e)}}else if(t.key===this.Ss){const e=function(e){let t=De.oe;if(null!=e)try{const n=JSON.parse(e);I("number"==typeof n),t=n}catch(e){P("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(t.newValue);e!==De.oe&&this.sequenceNumberHandler(e)}else if(t.key===this.Fs){const e=this.Js(t.newValue);await Promise.all(e.map((e=>this.syncEngine.Ys(e))))}}else this.ys.push(t)}))}}get ks(){return this.ps.get(this.Vs)}Ms(){this.setItem(this.ws,this.ks.ds())}Ls(e,t,n){const r=new rs(this.currentUser,e,t,n),i=ts(this.persistenceKey,this.currentUser,e);this.setItem(i,r.ds())}Bs(e){const t=ts(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Qs(e){const t={clientId:this.Vs,onlineState:e};this.storage.setItem(this.vs,JSON.stringify(t))}qs(e,t,n){const r=ns(this.persistenceKey,e),i=new is(e,t,n);this.setItem(r,i.ds())}Ks(e){const t=JSON.stringify(Array.from(e));this.setItem(this.Fs,t)}$s(e){const t=this.bs.exec(e);return t?t[1]:null}Ws(e,t){const n=this.$s(e);return os.Es(n,t)}Gs(e,t){const n=this.Ds.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return rs.Es(new A(i),r,t)}js(e,t){const n=this.Cs.exec(e),r=Number(n[1]);return is.Es(r,t)}xs(e){return as.Es(e)}Js(e){return JSON.parse(e)}async zs(e){if(e.user.uid===this.currentUser.uid)return this.syncEngine.Zs(e.batchId,e.state,e.error);k("SharedClientState","Ignoring mutation for non-active user ".concat(e.user.uid))}Hs(e){return this.syncEngine.Xs(e.targetId,e.state,e.error)}Us(e,t){const n=t?this.ps.insert(e,t):this.ps.remove(e),r=this.Ns(this.ps),i=this.Ns(n),o=[],a=[];return i.forEach((e=>{r.has(e)||o.push(e)})),r.forEach((e=>{i.has(e)||a.push(e)})),this.syncEngine.eo(o,a).then((()=>{this.ps=n}))}Os(e){this.ps.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Ns(e){let t=dr();return e.forEach(((e,n)=>{t=t.unionWith(n.activeTargetIds)})),t}}class cs{constructor(){this.no=new ss,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,t,n){this.ro[e]=t}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new ss,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class us{io(e){}shutdown(){}}class ds{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){k("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){k("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let ps=null;function hs(){return null===ps?ps=268435456+Math.round(2147483648*Math.random()):ps++,"0x"+ps.toString(16)}const fs={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class ms{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}Ao(e){this.Ro=e}onMessage(e){this.Vo=e}close(){this.ho()}send(e){this.lo(e)}mo(){this.Io()}fo(){this.Eo()}po(e){this.Ro(e)}yo(e){this.Vo(e)}}const gs="WebChannelConnection";class vs extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.wo=t+"://"+e.host,this.So="projects/".concat(n,"/databases/").concat(r),this.bo="(default)"===this.databaseId.database?"project_id=".concat(n):"project_id=".concat(n,"&database_id=").concat(r)}get Do(){return!1}Co(e,t,n,r,i){const o=hs(),a=this.vo(e,t.toUriEncodedString());k("RestConnection","Sending RPC '".concat(e,"' ").concat(o,":"),a,n);const s={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(s,r,i),this.Mo(e,a,s,n).then((t=>(k("RestConnection","Received RPC '".concat(e,"' ").concat(o,": "),t),t)),(t=>{throw D("RestConnection","RPC '".concat(e,"' ").concat(o," failed with error: "),t,"url: ",a,"request:",n),t}))}xo(e,t,n,r,i,o){return this.Co(e,t,n,r,i)}Fo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+E,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach(((t,n)=>e[n]=t)),n&&n.headers.forEach(((t,n)=>e[n]=t))}vo(e,t){const n=fs[e];return"".concat(this.wo,"/v1/").concat(t,":").concat(n)}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Mo(e,t,n,r){const i=hs();return new Promise(((o,a)=>{const s=new d;s.setWithCredentials(!0),s.listenOnce(f.COMPLETE,(()=>{try{switch(s.getLastErrorCode()){case m.NO_ERROR:const t=s.getResponseJson();k(gs,"XHR for RPC '".concat(e,"' ").concat(i," received:"),JSON.stringify(t)),o(t);break;case m.TIMEOUT:k(gs,"RPC '".concat(e,"' ").concat(i," timed out")),a(new M(j.DEADLINE_EXCEEDED,"Request time out"));break;case m.HTTP_ERROR:const n=s.getStatus();if(k(gs,"RPC '".concat(e,"' ").concat(i," failed with status:"),n,"response text:",s.getResponseText()),n>0){let e=s.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(j).indexOf(t)>=0?t:j.UNKNOWN}(t.status);a(new M(e,t.message))}else a(new M(j.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new M(j.UNAVAILABLE,"Connection failed."));break;default:N()}}finally{k(gs,"RPC '".concat(e,"' ").concat(i," completed."))}}));const l=JSON.stringify(r);k(gs,"RPC '".concat(e,"' ").concat(i," sending request:"),r),s.send(t,"POST",l,n,15)}))}Oo(e,t,n){const r=hs(),i=[this.wo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=b(),a=y(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(s.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(s.xmlHttpFactory=new p({})),this.Fo(s.initMessageHeaders,t,n),s.encodeInitMessageHeaders=!0;const c=i.join("");k(gs,"Creating RPC '".concat(e,"' stream ").concat(r,": ").concat(c),s);const u=o.createWebChannel(c,s);let d=!1,f=!1;const m=new ms({lo:t=>{f?k(gs,"Not sending because RPC '".concat(e,"' stream ").concat(r," is closed:"),t):(d||(k(gs,"Opening RPC '".concat(e,"' stream ").concat(r," transport.")),u.open(),d=!0),k(gs,"RPC '".concat(e,"' stream ").concat(r," sending:"),t),u.send(t))},ho:()=>u.close()}),w=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))};return w(u,h.EventType.OPEN,(()=>{f||(k(gs,"RPC '".concat(e,"' stream ").concat(r," transport opened.")),m.mo())})),w(u,h.EventType.CLOSE,(()=>{f||(f=!0,k(gs,"RPC '".concat(e,"' stream ").concat(r," transport closed")),m.po())})),w(u,h.EventType.ERROR,(t=>{f||(f=!0,D(gs,"RPC '".concat(e,"' stream ").concat(r," transport errored:"),t),m.po(new M(j.UNAVAILABLE,"The operation could not be completed")))})),w(u,h.EventType.MESSAGE,(t=>{var n;if(!f){const i=t.data[0];I(!!i);const o=i,a=o.error||(null===(n=o[0])||void 0===n?void 0:n.error);if(a){k(gs,"RPC '".concat(e,"' stream ").concat(r," received error:"),a);const t=a.status;let n=function(e){const t=Kr[e];if(void 0!==t)return Zr(t)}(t),i=a.message;void 0===n&&(n=j.INTERNAL,i="Unknown error status: "+t+" with message "+a.message),f=!0,m.po(new M(n,i)),u.close()}else k(gs,"RPC '".concat(e,"' stream ").concat(r," received:"),i),m.yo(i)}})),w(a,v.STAT_EVENT,(t=>{t.stat===g.PROXY?k(gs,"RPC '".concat(e,"' stream ").concat(r," detected buffering proxy")):t.stat===g.NOPROXY&&k(gs,"RPC '".concat(e,"' stream ").concat(r," detected no buffering proxy"))})),setTimeout((()=>{m.fo()}),0),m}}function ys(){return"undefined"!=typeof window?window:null}function bs(){return"undefined"!=typeof document?document:null}function ws(e){return new vi(e,!0)}class xs{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.oi=e,this.timerId=t,this.No=n,this.Lo=r,this.Bo=i,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(e){this.cancel();const t=Math.floor(this.ko+this.Uo()),n=Math.max(0,Date.now()-this.Qo),r=Math.max(0,t-n);r>0&&k("ExponentialBackoff","Backing off for ".concat(r," ms (base delay: ").concat(this.ko," ms, delay with jitter: ").concat(t," ms, last attempt: ").concat(n," ms ago)")),this.qo=this.oi.enqueueAfterDelay(this.timerId,r,(()=>(this.Qo=Date.now(),e()))),this.ko*=this.Lo,this.ko<this.No&&(this.ko=this.No),this.ko>this.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Cs{constructor(e,t,n,r,i,o,a,s){this.oi=e,this.Go=n,this.zo=r,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=s,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new xs(e,t)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}async stop(){this.Zo()&&await this.close(0)}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,(()=>this.r_())))}i_(e){this.s_(),this.stream.send(e)}async r_(){if(this.Xo())return this.close(0)}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}async close(e,t){this.s_(),this.o_(),this.Yo.cancel(),this.jo++,4!==e?this.Yo.reset():t&&t.code===j.RESOURCE_EXHAUSTED?(P(t.toString()),P("Using maximum backoff delay to prevent overloading the backend."),this.Yo.Ko()):t&&t.code===j.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.__(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Ao(t)}__(){}auth(){this.state=1;const e=this.a_(this.jo),t=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((e=>{let[n,r]=e;this.jo===t&&this.u_(n,r)}),(t=>{e((()=>{const e=new M(j.UNKNOWN,"Fetching auth token failed: "+t.message);return this.c_(e)}))}))}u_(e,t){const n=this.a_(this.jo);this.stream=this.l_(e,t),this.stream.Po((()=>{n((()=>this.listener.Po()))})),this.stream.To((()=>{n((()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,(()=>(this.Xo()&&(this.state=3),Promise.resolve()))),this.listener.To())))})),this.stream.Ao((e=>{n((()=>this.c_(e)))})),this.stream.onMessage((e=>{n((()=>this.onMessage(e)))}))}e_(){this.state=5,this.Yo.$o((async()=>{this.state=0,this.start()}))}c_(e){return k("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}a_(e){return t=>{this.oi.enqueueAndForget((()=>this.jo===e?t():(k("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class As extends Cs{constructor(e,t,n,r,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,o),this.serializer=i}l_(e,t){return this.connection.Oo("Listen",e,t)}onMessage(e){this.Yo.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:N()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.useProto3Json?(I(void 0===t||"string"==typeof t),Ct.fromBase64String(t||"")):(I(void 0===t||t instanceof Buffer||t instanceof Uint8Array),Ct.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,s=a&&function(e){const t=void 0===e.code?j.UNKNOWN:Zr(e.code);return new M(t,e.message||"")}(a);n=new ci(r,i,o,s||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const i=Si(e,r.document.name),o=Ci(r.document.updateTime),a=r.document.createTime?Ci(r.document.createTime):$.min(),s=new $t({mapValue:{fields:r.document.fields}}),l=tn.newFoundDocument(i,o,a,s),c=r.targetIds||[],u=r.removedTargetIds||[];n=new si(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const i=Si(e,r.document),o=r.readTime?Ci(r.readTime):$.min(),a=tn.newNoDocument(i,o),s=r.removedTargetIds||[];n=new si([],s,a.key,a)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const i=Si(e,r.document),o=r.removedTargetIds||[];n=new si([],o,i,null)}else{if(!("filter"in t))return N();{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:i}=e,o=new Yr(r,i),a=e.targetId;n=new li(a,o)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return $.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?$.min():t.readTime?Ci(t.readTime):$.min()}(e);return this.listener.h_(t,n)}P_(e){const t={};t.database=Di(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=Fn(r)?{documents:ji(e,r)}:{query:Mi(e,r)._t},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=wi(e,t.resumeToken);const r=yi(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo($.min())>0){n.readTime=bi(e,t.snapshotVersion.toTimestamp());const r=yi(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return N()}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.i_(t)}I_(e){const t={};t.database=Di(this.serializer),t.removeTarget=e,this.i_(t)}}class Es extends Cs{constructor(e,t,n,r,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,o),this.serializer=i,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(e,t){return this.connection.Oo("Write",e,t)}onMessage(e){if(I(!!e.streamToken),this.lastStreamToken=e.streamToken,this.T_){this.Yo.reset();const t=function(e,t){return e&&e.length>0?(I(void 0!==t),e.map((e=>function(e,t){let n=e.updateTime?Ci(e.updateTime):Ci(t);return n.isEqual($.min())&&(n=Ci(t)),new kr(n,e.transformResults||[])}(e,t)))):[]}(e.writeResults,e.commitTime),n=Ci(e.commitTime);return this.listener.A_(n,t)}return I(!e.writeResults||0===e.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const e={};e.database=Di(this.serializer),this.i_(e)}d_(e){const t={streamToken:this.lastStreamToken,writes:e.map((e=>Ri(this.serializer,e)))};this.i_(t)}}class _s extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.m_=!1}f_(){if(this.m_)throw new M(j.FAILED_PRECONDITION,"The client has already been terminated.")}Co(e,t,n,r){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((i=>{let[o,a]=i;return this.connection.Co(e,Ei(t,n),r,o,a)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===j.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new M(j.UNKNOWN,e.toString())}))}xo(e,t,n,r,i){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((o=>{let[a,s]=o;return this.connection.xo(e,Ei(t,n),r,a,s,i)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===j.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new M(j.UNKNOWN,e.toString())}))}terminate(){this.m_=!0,this.connection.terminate()}}class Ts{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve()))))}D_(e){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.S_("Offline")))}set(e){this.C_(),this.g_=0,"Online"===e&&(this.y_=!1),this.S_(e)}S_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}b_(e){const t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this.y_?(P(t),this.y_=!1):k("OnlineStateTracker",t)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Ss{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=i,this.O_.io((e=>{n.enqueueAndForget((async()=>{js(this)&&(k("RemoteStore","Restarting streams for network reachability change."),await async function(e){const t=O(e);t.M_.add(4),await Ps(t),t.N_.set("Unknown"),t.M_.delete(4),await ks(t)}(this))}))})),this.N_=new Ts(n,r)}}async function ks(e){if(js(e))for(const t of e.x_)await t(!0)}async function Ps(e){for(const t of e.x_)await t(!1)}function Ds(e,t){const n=O(e);n.F_.has(t.targetId)||(n.F_.set(t.targetId,t),Os(n)?Rs(n):tl(n).Xo()&&Ns(n,t))}function Fs(e,t){const n=O(e),r=tl(n);n.F_.delete(t),r.Xo()&&Is(n,t),0===n.F_.size&&(r.Xo()?r.n_():js(n)&&n.N_.set("Unknown"))}function Ns(e,t){if(e.L_.xe(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo($.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}tl(e).P_(t)}function Is(e,t){e.L_.xe(t),tl(e).I_(t)}function Rs(e){e.L_=new di({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),ot:t=>e.F_.get(t)||null,tt:()=>e.datastore.serializer.databaseId}),tl(e).start(),e.N_.w_()}function Os(e){return js(e)&&!tl(e).Zo()&&e.F_.size>0}function js(e){return 0===O(e).M_.size}function Ms(e){e.L_=void 0}async function Ls(e){e.N_.set("Online")}async function Bs(e){e.F_.forEach(((t,n)=>{Ns(e,t)}))}async function Us(e,t){Ms(e),Os(e)?(e.N_.D_(t),Rs(e)):e.N_.set("Unknown")}async function Vs(e,t,n){if(e.N_.set("Online"),t instanceof ci&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.F_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.F_.delete(r),e.L_.removeTarget(r))}(e,t)}catch(n){k("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),await Hs(e,n)}else if(t instanceof si?e.L_.Ke(t):t instanceof li?e.L_.He(t):e.L_.We(t),!n.isEqual($.min()))try{const t=await Wa(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.L_.rt(t);return n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const i=e.F_.get(r);i&&e.F_.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{const r=e.F_.get(t);if(!r)return;e.F_.set(t,r.withResumeToken(Ct.EMPTY_BYTE_STRING,r.snapshotVersion)),Is(e,t);const i=new Ki(r.target,t,n,r.sequenceNumber);Ns(e,i)})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){k("RemoteStore","Failed to raise snapshot:",t),await Hs(e,t)}}async function Hs(e,t,n){if(!Ae(t))throw t;e.M_.add(1),await Ps(e),e.N_.set("Offline"),n||(n=()=>Wa(e.localStore)),e.asyncQueue.enqueueRetryable((async()=>{k("RemoteStore","Retrying IndexedDB access"),await n(),e.M_.delete(1),await ks(e)}))}function zs(e,t){return t().catch((n=>Hs(e,n,t)))}async function Ws(e){const t=O(e),n=nl(t);let r=t.v_.length>0?t.v_[t.v_.length-1].batchId:-1;for(;qs(t);)try{const e=await Ga(t.localStore,r);if(null===e){0===t.v_.length&&n.n_();break}r=e.batchId,Gs(t,e)}catch(e){await Hs(t,e)}Ys(t)&&Ks(t)}function qs(e){return js(e)&&e.v_.length<10}function Gs(e,t){e.v_.push(t);const n=nl(e);n.Xo()&&n.E_&&n.d_(t.mutations)}function Ys(e){return js(e)&&!nl(e).Zo()&&e.v_.length>0}function Ks(e){nl(e).start()}async function Qs(e){nl(e).V_()}async function Xs(e){const t=nl(e);for(const n of e.v_)t.d_(n.mutations)}async function Zs(e,t,n){const r=e.v_.shift(),i=qr.from(r,t,n);await zs(e,(()=>e.remoteSyncer.applySuccessfulWrite(i))),await Ws(e)}async function Js(e,t){t&&nl(e).E_&&await async function(e,t){if(function(e){return Xr(e)&&e!==j.ABORTED}(t.code)){const n=e.v_.shift();nl(e).t_(),await zs(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await Ws(e)}}(e,t),Ys(e)&&Ks(e)}async function $s(e,t){const n=O(e);n.asyncQueue.verifyOperationInProgress(),k("RemoteStore","RemoteStore received new credentials");const r=js(n);n.M_.add(3),await Ps(n),r&&n.N_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.M_.delete(3),await ks(n)}async function el(e,t){const n=O(e);t?(n.M_.delete(2),await ks(n)):t||(n.M_.add(2),await Ps(n),n.N_.set("Unknown"))}function tl(e){return e.B_||(e.B_=function(e,t,n){const r=O(e);return r.f_(),new As(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Po:Ls.bind(null,e),To:Bs.bind(null,e),Ao:Us.bind(null,e),h_:Vs.bind(null,e)}),e.x_.push((async t=>{t?(e.B_.t_(),Os(e)?Rs(e):e.N_.set("Unknown")):(await e.B_.stop(),Ms(e))}))),e.B_}function nl(e){return e.k_||(e.k_=function(e,t,n){const r=O(e);return r.f_(),new Es(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Po:()=>Promise.resolve(),To:Qs.bind(null,e),Ao:Js.bind(null,e),R_:Xs.bind(null,e),A_:Zs.bind(null,e)}),e.x_.push((async t=>{t?(e.k_.t_(),await Ws(e)):(await e.k_.stop(),e.v_.length>0&&(k("RemoteStore","Stopping write stream with ".concat(e.v_.length," pending writes")),e.v_=[]))}))),e.k_}class rl{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new L,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((e=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,i){const o=Date.now()+n,a=new rl(e,t,o,r,i);return a.start(n),a}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new M(j.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function il(e,t){if(P("AsyncQueue","".concat(t,": ").concat(e)),Ae(e))return new M(j.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}class ol{constructor(e){this.comparator=e?(t,n)=>e(t,n)||ie.comparator(t.key,n.key):(e,t)=>ie.comparator(e.key,t.key),this.keyedMap=nr(),this.sortedSet=new ht(this.comparator)}static emptySet(e){return new ol(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((t,n)=>(e(t),!1)))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof ol))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach((t=>{e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new ol;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class al{constructor(){this.q_=new ht(ie.comparator)}track(e){const t=e.doc.key,n=this.q_.get(t);n?0!==e.type&&3===n.type?this.q_=this.q_.insert(t,e):3===e.type&&1!==n.type?this.q_=this.q_.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.q_=this.q_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.q_=this.q_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.q_=this.q_.remove(t):1===e.type&&2===n.type?this.q_=this.q_.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.q_=this.q_.insert(t,{type:2,doc:e.doc}):N():this.q_=this.q_.insert(t,e)}Q_(){const e=[];return this.q_.inorderTraversal(((t,n)=>{e.push(n)})),e}}class sl{constructor(e,t,n,r,i,o,a,s,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,i){const o=[];return t.forEach((e=>{o.push({type:0,doc:e})})),new sl(e,t,ol.emptySet(t),o,n,r,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&qn(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}class ll{constructor(){this.K_=void 0,this.U_=[]}W_(){return this.U_.some((e=>e.G_()))}}class cl{constructor(){this.queries=new Jn((e=>Gn(e)),qn),this.onlineState="Unknown",this.z_=new Set}}async function ul(e,t){const n=O(e);let r=3;const i=t.query;let o=n.queries.get(i);o?!o.W_()&&t.G_()&&(r=2):(o=new ll,r=t.G_()?0:1);try{switch(r){case 0:o.K_=await n.onListen(i,!0);break;case 1:o.K_=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){const n=il(e,"Initialization of query '".concat(Yn(t.query),"' failed"));return void t.onError(n)}n.queries.set(i,o),o.U_.push(t),t.j_(n.onlineState),o.K_&&t.H_(o.K_)&&fl(n)}async function dl(e,t){const n=O(e),r=t.query;let i=3;const o=n.queries.get(r);if(o){const e=o.U_.indexOf(t);e>=0&&(o.U_.splice(e,1),0===o.U_.length?i=t.G_()?0:1:!o.W_()&&t.G_()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function pl(e,t){const n=O(e);let r=!1;for(const i of t){const e=i.query,t=n.queries.get(e);if(t){for(const e of t.U_)e.H_(i)&&(r=!0);t.K_=i}}r&&fl(n)}function hl(e,t,n){const r=O(e),i=r.queries.get(t);if(i)for(const o of i.U_)o.onError(n);r.queries.delete(t)}function fl(e){e.z_.forEach((e=>{e.next()}))}var ml,gl;(gl=ml||(ml={})).J_="default",gl.Cache="cache";class vl{constructor(e,t,n){this.query=e,this.Y_=t,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=n||{}}H_(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new sl(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Z_?this.ea(e)&&(this.Y_.next(e),t=!0):this.ta(e,this.onlineState)&&(this.na(e),t=!0),this.X_=e,t}onError(e){this.Y_.error(e)}j_(e){this.onlineState=e;let t=!1;return this.X_&&!this.Z_&&this.ta(this.X_,e)&&(this.na(this.X_),t=!0),t}ta(e,t){if(!e.fromCache)return!0;if(!this.G_())return!0;const n="Offline"!==t;return(!this.options.ra||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}ea(e){if(e.docChanges.length>0)return!0;const t=this.X_&&this.X_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}na(e){e=sl.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Z_=!0,this.Y_.next(e)}G_(){return this.options.source!==ml.Cache}}class yl{constructor(e,t){this.ia=e,this.byteLength=t}sa(){return"metadata"in this.ia}}class bl{constructor(e){this.serializer=e}Ps(e){return Si(this.serializer,e)}Is(e){return e.metadata.exists?Ii(this.serializer,e.document,!1):tn.newNoDocument(this.Ps(e.metadata.name),this.Ts(e.metadata.readTime))}Ts(e){return Ci(e)}}class wl{constructor(e,t,n){this.oa=e,this.localStore=t,this.serializer=n,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=xl(e)}_a(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.ia.namedQuery)this.queries.push(e.ia.namedQuery);else if(e.ia.documentMetadata){this.documents.push({metadata:e.ia.documentMetadata}),e.ia.documentMetadata.exists||++t;const n=te.fromString(e.ia.documentMetadata.name);this.collectionGroups.add(n.get(n.length-2))}else e.ia.document&&(this.documents[this.documents.length-1].document=e.ia.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}aa(e){const t=new Map,n=new bl(this.serializer);for(const r of e)if(r.metadata.queries){const e=n.Ps(r.metadata.name);for(const n of r.metadata.queries){const r=(t.get(n)||cr()).add(e);t.set(n,r)}}return t}async complete(){const e=await async function(e,t,n,r){const i=O(e);let o=cr(),a=er();for(const c of n){const e=t.Ps(c.metadata.name);c.document&&(o=o.add(e));const n=t.Is(c);n.setReadTime(t.Ts(c.metadata.readTime)),a=a.insert(e,n)}const s=i.os.newChangeBuffer({trackRemovals:!0}),l=await Ya(i,function(e){return Vn(Mn(te.fromString("__bundle__/docs/".concat(e))))}(r));return i.persistence.runTransaction("Apply bundle documents","readwrite",(e=>qa(e,s,a).next((t=>(s.apply(e),t))).next((t=>i.Qr.removeMatchingKeysForTargetId(e,l.targetId).next((()=>i.Qr.addMatchingKeys(e,o,l.targetId))).next((()=>i.localDocuments.getLocalViewOfDocuments(e,t.cs,t.ls))).next((()=>t.cs))))))}(this.localStore,new bl(this.serializer),this.documents,this.oa.id),t=this.aa(this.documents);for(const n of this.queries)await $a(this.localStore,n,t.get(n.name));return this.progress.taskState="Success",{progress:this.progress,ua:this.collectionGroups,ca:e}}}function xl(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}class Cl{constructor(e){this.key=e}}class Al{constructor(e){this.key=e}}class El{constructor(e,t){this.query=e,this.la=t,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=cr(),this.mutatedKeys=cr(),this.Ia=Xn(e),this.Ta=new ol(this.Ia)}get Ea(){return this.la}da(e,t){const n=t?t.Aa:new al,r=t?t.Ta:this.Ta;let i=t?t.mutatedKeys:this.mutatedKeys,o=r,a=!1;const s="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal(((e,t)=>{const c=r.get(e),u=Kn(this.query,t)?t:null,d=!!c&&this.mutatedKeys.has(c.key),p=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations);let h=!1;c&&u?c.data.isEqual(u.data)?d!==p&&(n.track({type:3,doc:u}),h=!0):this.Ra(c,u)||(n.track({type:2,doc:u}),h=!0,(s&&this.Ia(u,s)>0||l&&this.Ia(u,l)<0)&&(a=!0)):!c&&u?(n.track({type:0,doc:u}),h=!0):c&&!u&&(n.track({type:1,doc:c}),h=!0,(s||l)&&(a=!0)),h&&(u?(o=o.add(u),i=p?i.add(e):i.delete(e)):(o=o.delete(e),i=i.delete(e)))})),null!==this.query.limit)for(;o.size>this.query.limit;){const e="F"===this.query.limitType?o.last():o.first();o=o.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{Ta:o,Aa:n,Xi:a,mutatedKeys:i}}Ra(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const i=this.Ta;this.Ta=e.Ta,this.mutatedKeys=e.mutatedKeys;const o=e.Aa.Q_();o.sort(((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return N()}};return n(e)-n(t)}(e.type,t.type)||this.Ia(e.doc,t.doc))),this.Va(n),r=null!=r&&r;const a=t&&!r?this.ma():[],s=0===this.Pa.size&&this.current&&!r?1:0,l=s!==this.ha;return this.ha=s,0!==o.length||l?{snapshot:new sl(this.query,e.Ta,i,o,e.mutatedKeys,0===s,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),fa:a}:{fa:a}}j_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new al,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(e){return!this.la.has(e)&&!!this.Ta.has(e)&&!this.Ta.get(e).hasLocalMutations}Va(e){e&&(e.addedDocuments.forEach((e=>this.la=this.la.add(e))),e.modifiedDocuments.forEach((e=>{})),e.removedDocuments.forEach((e=>this.la=this.la.delete(e))),this.current=e.current)}ma(){if(!this.current)return[];const e=this.Pa;this.Pa=cr(),this.Ta.forEach((e=>{this.ga(e.key)&&(this.Pa=this.Pa.add(e.key))}));const t=[];return e.forEach((e=>{this.Pa.has(e)||t.push(new Al(e))})),this.Pa.forEach((n=>{e.has(n)||t.push(new Cl(n))})),t}pa(e){this.la=e.hs,this.Pa=cr();const t=this.da(e.documents);return this.applyChanges(t,!0)}ya(){return sl.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class _l{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class Tl{constructor(e){this.key=e,this.wa=!1}}class Sl{constructor(e,t,n,r,i,o){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.Sa={},this.ba=new Jn((e=>Gn(e)),qn),this.Da=new Map,this.Ca=new Set,this.va=new ht(ie.comparator),this.Fa=new Map,this.Ma=new Ca,this.xa={},this.Oa=new Map,this.Na=Zo.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}async function kl(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=rc(e);let i;const o=r.ba.get(t);return o?(r.sharedClientState.addLocalQueryTarget(o.targetId),i=o.view.ya()):i=await Dl(r,t,n,!0),i}async function Pl(e,t){const n=rc(e);await Dl(n,t,!0,!1)}async function Dl(e,t,n,r){const i=await Ya(e.localStore,Vn(t)),o=i.targetId,a=n?e.sharedClientState.addLocalQueryTarget(o):"not-current";let s;return r&&(s=await Fl(e,t,o,"current"===a,i.resumeToken)),e.isPrimaryClient&&n&&Ds(e.remoteStore,i),s}async function Fl(e,t,n,r,i){e.Ba=(t,n,r)=>async function(e,t,n,r){let i=t.view.da(n);i.Xi&&(i=await Qa(e.localStore,t.query,!1).then((e=>{let{documents:n}=e;return t.view.da(n,i)})));const o=r&&r.targetChanges.get(t.targetId),a=r&&null!=r.targetMismatches.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,o,a);return zl(e,t.targetId,s.fa),s.snapshot}(e,t,n,r);const o=await Qa(e.localStore,t,!0),a=new El(t,o.hs),s=a.da(o.documents),l=ai.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,i),c=a.applyChanges(s,e.isPrimaryClient,l);zl(e,n,c.fa);const u=new _l(t,n,a);return e.ba.set(t,u),e.Da.has(n)?e.Da.get(n).push(t):e.Da.set(n,[t]),c.snapshot}async function Nl(e,t,n){const r=O(e),i=r.ba.get(t),o=r.Da.get(i.targetId);if(o.length>1)return r.Da.set(i.targetId,o.filter((e=>!qn(e,t)))),void r.ba.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedClientState.isActiveQueryTarget(i.targetId)||await Ka(r.localStore,i.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(i.targetId),n&&Fs(r.remoteStore,i.targetId),Vl(r,i.targetId)})).catch(ge)):(Vl(r,i.targetId),await Ka(r.localStore,i.targetId,!0))}async function Il(e,t){const n=O(e),r=n.ba.get(t),i=n.Da.get(r.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),Fs(n.remoteStore,r.targetId))}async function Rl(e,t){const n=O(e);try{const e=await function(e,t){const n=O(e),r=t.snapshotVersion;let i=n.ns;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(e=>{const o=n.os.newChangeBuffer({trackRemovals:!0});i=n.ns;const a=[];t.targetChanges.forEach(((o,s)=>{const l=i.get(s);if(!l)return;a.push(n.Qr.removeMatchingKeys(e,o.removedDocuments,s).next((()=>n.Qr.addMatchingKeys(e,o.addedDocuments,s))));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(s)?c=c.withResumeToken(Ct.EMPTY_BYTE_STRING,$.min()).withLastLimboFreeSnapshotVersion($.min()):o.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(o.resumeToken,r)),i=i.insert(s,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(l,c,o)&&a.push(n.Qr.updateTargetData(e,c))}));let s=er(),l=cr();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),a.push(qa(e,o,t.documentUpdates).next((e=>{s=e.cs,l=e.ls}))),!r.isEqual($.min())){const t=n.Qr.getLastRemoteSnapshotVersion(e).next((t=>n.Qr.setTargetsMetadata(e,e.currentSequenceNumber,r)));a.push(t)}return ve.waitFor(a).next((()=>o.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,s,l))).next((()=>s))})).then((e=>(n.ns=i,e)))}(n.localStore,t);t.targetChanges.forEach(((e,t)=>{const r=n.Fa.get(t);r&&(I(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.wa=!0:e.modifiedDocuments.size>0?I(r.wa):e.removedDocuments.size>0&&(I(r.wa),r.wa=!1))})),await Gl(n,e,t)}catch(e){await ge(e)}}function Ol(e,t,n){const r=O(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.ba.forEach(((n,r)=>{const i=r.view.j_(t);i.snapshot&&e.push(i.snapshot)})),function(e,t){const n=O(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(const i of n.U_)i.j_(t)&&(r=!0)})),r&&fl(n)}(r.eventManager,t),e.length&&r.Sa.h_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function jl(e,t,n){const r=O(e);r.sharedClientState.updateQueryState(t,"rejected",n);const i=r.Fa.get(t),o=i&&i.key;if(o){let e=new ht(ie.comparator);e=e.insert(o,tn.newNoDocument(o,$.min()));const n=cr().add(o),i=new oi($.min(),new Map,new ht(Q),e,n);await Rl(r,i),r.va=r.va.remove(o),r.Fa.delete(t),ql(r)}else await Ka(r.localStore,t,!1).then((()=>Vl(r,t,n))).catch(ge)}async function Ml(e,t){const n=O(e),r=t.batch.batchId;try{const e=await function(e,t){const n=O(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(e=>{const r=t.batch.keys(),i=n.os.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const i=n.batch,o=i.keys();let a=ve.resolve();return o.forEach((e=>{a=a.next((()=>r.getEntry(t,e))).next((t=>{const o=n.docVersions.get(e);I(null!==o),t.version.compareTo(o)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),a.next((()=>e.mutationQueue.removeMutationBatch(t,i)))}(n,e,t,i).next((()=>i.apply(e))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=cr();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t)))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(n.localStore,t);Ul(n,r,null),Bl(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Gl(n,e)}catch(e){await ge(e)}}async function Ll(e,t,n){const r=O(e);try{const e=await function(e,t){const n=O(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(e=>{let r;return n.mutationQueue.lookupMutationBatch(e,t).next((t=>(I(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(r.localStore,t);Ul(r,t,n),Bl(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await Gl(r,e)}catch(n){await ge(n)}}function Bl(e,t){(e.Oa.get(t)||[]).forEach((e=>{e.resolve()})),e.Oa.delete(t)}function Ul(e,t,n){const r=O(e);let i=r.xa[r.currentUser.toKey()];if(i){const e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.xa[r.currentUser.toKey()]=i}}function Vl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.Da.get(t))e.ba.delete(r),n&&e.Sa.ka(r,n);e.Da.delete(t),e.isPrimaryClient&&e.Ma.Vr(t).forEach((t=>{e.Ma.containsKey(t)||Hl(e,t)}))}function Hl(e,t){e.Ca.delete(t.path.canonicalString());const n=e.va.get(t);null!==n&&(Fs(e.remoteStore,n),e.va=e.va.remove(t),e.Fa.delete(n),ql(e))}function zl(e,t,n){for(const r of n)r instanceof Cl?(e.Ma.addReference(r.key,t),Wl(e,r)):r instanceof Al?(k("SyncEngine","Document no longer in limbo: "+r.key),e.Ma.removeReference(r.key,t),e.Ma.containsKey(r.key)||Hl(e,r.key)):N()}function Wl(e,t){const n=t.key,r=n.path.canonicalString();e.va.get(n)||e.Ca.has(r)||(k("SyncEngine","New document in limbo: "+n),e.Ca.add(r),ql(e))}function ql(e){for(;e.Ca.size>0&&e.va.size<e.maxConcurrentLimboResolutions;){const t=e.Ca.values().next().value;e.Ca.delete(t);const n=new ie(te.fromString(t)),r=e.Na.next();e.Fa.set(r,new Tl(n)),e.va=e.va.insert(n,r),Ds(e.remoteStore,new Ki(Vn(Mn(n.path)),r,"TargetPurposeLimboResolution",De.oe))}}async function Gl(e,t,n){const r=O(e),i=[],o=[],a=[];r.ba.isEmpty()||(r.ba.forEach(((e,s)=>{a.push(r.Ba(s,t,n).then((e=>{var t;if((e||n)&&r.isPrimaryClient){const i=e?!e.fromCache:null===(t=null==n?void 0:n.targetChanges.get(s.targetId))||void 0===t?void 0:t.current;r.sharedClientState.updateQueryState(s.targetId,i?"current":"not-current")}if(e){i.push(e);const t=La.Ki(s.targetId,e);o.push(t)}})))})),await Promise.all(a),r.Sa.h_(i),await async function(e,t){const n=O(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(e=>ve.forEach(t,(t=>ve.forEach(t.qi,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>ve.forEach(t.Qi,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!Ae(e))throw e;k("LocalStore","Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.ns.get(e),r=t.snapshotVersion,i=t.withLastLimboFreeSnapshotVersion(r);n.ns=n.ns.insert(e,i)}}}(r.localStore,o))}async function Yl(e,t){const n=O(e);if(!n.currentUser.isEqual(t)){k("SyncEngine","User change. New user:",t.toKey());const e=await za(n.localStore,t);n.currentUser=t,function(e,t){e.Oa.forEach((e=>{e.forEach((e=>{e.reject(new M(j.CANCELLED,t))}))})),e.Oa.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await Gl(n,e.us)}}function Kl(e,t){const n=O(e),r=n.Fa.get(t);if(r&&r.wa)return cr().add(r.key);{let e=cr();const r=n.Da.get(t);if(!r)return e;for(const t of r){const r=n.ba.get(t);e=e.unionWith(r.view.Ea)}return e}}async function Ql(e,t){const n=O(e),r=await Qa(n.localStore,t.query,!0),i=t.view.pa(r);return n.isPrimaryClient&&zl(n,t.targetId,i.fa),i}async function Xl(e,t){const n=O(e);return Za(n.localStore,t).then((e=>Gl(n,e)))}async function Zl(e,t,n,r){const i=O(e),o=await function(e,t){const n=O(e),r=O(n.mutationQueue);return n.persistence.runTransaction("Lookup mutation documents","readonly",(e=>r.vn(e,t).next((t=>t?n.localDocuments.getDocuments(e,t):ve.resolve(null)))))}(i.localStore,t);null!==o?("pending"===n?await Ws(i.remoteStore):"acknowledged"===n||"rejected"===n?(Ul(i,t,r||null),Bl(i,t),function(e,t){O(O(e).mutationQueue).Mn(t)}(i.localStore,t)):N(),await Gl(i,o)):k("SyncEngine","Cannot apply mutation batch with id: "+t)}async function Jl(e,t,n){const r=O(e),i=[],o=[];for(const a of t){let e;const t=r.Da.get(a);if(t&&0!==t.length){e=await Ya(r.localStore,Vn(t[0]));for(const e of t){const t=r.ba.get(e),n=await Ql(r,t);n.snapshot&&o.push(n.snapshot)}}else{const t=await Xa(r.localStore,a);e=await Ya(r.localStore,t),await Fl(r,$l(t),a,!1,e.resumeToken)}i.push(e)}return r.Sa.h_(o),i}function $l(e){return jn(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function ec(e){return function(e){return O(O(e).persistence).Bi()}(O(e).localStore)}async function tc(e,t,n,r){const i=O(e);if(i.La)return void k("SyncEngine","Ignoring unexpected query state notification.");const o=i.Da.get(t);if(o&&o.length>0)switch(n){case"current":case"not-current":{const e=await Za(i.localStore,Qn(o[0])),r=oi.createSynthesizedRemoteEventForCurrentChange(t,"current"===n,Ct.EMPTY_BYTE_STRING);await Gl(i,e,r);break}case"rejected":await Ka(i.localStore,t,!0),Vl(i,t,r);break;default:N()}}async function nc(e,t,n){const r=rc(e);if(r.La){for(const e of t){if(r.Da.has(e)&&r.sharedClientState.isActiveQueryTarget(e)){k("SyncEngine","Adding an already active target "+e);continue}const t=await Xa(r.localStore,e),n=await Ya(r.localStore,t);await Fl(r,$l(t),n.targetId,!1,n.resumeToken),Ds(r.remoteStore,n)}for(const e of n)r.Da.has(e)&&await Ka(r.localStore,e,!1).then((()=>{Fs(r.remoteStore,e),Vl(r,e)})).catch(ge)}}function rc(e){const t=O(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Rl.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=Kl.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=jl.bind(null,t),t.Sa.h_=pl.bind(null,t.eventManager),t.Sa.ka=hl.bind(null,t.eventManager),t}function ic(e){const t=O(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Ml.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Ll.bind(null,t),t}class oc{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=ws(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,t){return null}createIndexBackfillerScheduler(e,t){return null}createLocalStore(e){return Ha(this.persistence,new Ua,e.initialUser,this.serializer)}createPersistence(e){return new ka(Da.Hr,this.serializer)}createSharedClientState(e){return new cs}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class ac extends oc{constructor(e,t,n){super(),this.Qa=e,this.cacheSizeBytes=t,this.forceOwnership=n,this.synchronizeTabs=!1}async initialize(e){await super.initialize(e),await this.Qa.initialize(this,e),await ic(this.Qa.syncEngine),await Ws(this.Qa.remoteStore),await this.persistence.fi((()=>(this.gcScheduler&&!this.gcScheduler.started&&this.gcScheduler.start(),this.indexBackfillerScheduler&&!this.indexBackfillerScheduler.started&&this.indexBackfillerScheduler.start(),Promise.resolve())))}createLocalStore(e){return Ha(this.persistence,new Ua,e.initialUser,this.serializer)}createGarbageCollectionScheduler(e,t){const n=this.persistence.referenceDelegate.garbageCollector;return new ia(n,e.asyncQueue,t)}createIndexBackfillerScheduler(e,t){const n=new Pe(t,this.persistence);return new ke(e.asyncQueue,n)}createPersistence(e){const t=Ma(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?zo.withCacheSize(this.cacheSizeBytes):zo.DEFAULT;return new Ra(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,ys(),bs(),this.serializer,this.sharedClientState,!!this.forceOwnership)}createSharedClientState(e){return new cs}}class sc extends ac{constructor(e,t){super(e,t,!1),this.Qa=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}async initialize(e){await super.initialize(e);const t=this.Qa.syncEngine;this.sharedClientState instanceof ls&&(this.sharedClientState.syncEngine={Zs:Zl.bind(null,t),Xs:tc.bind(null,t),eo:nc.bind(null,t),Bi:ec.bind(null,t),Ys:Xl.bind(null,t)},await this.sharedClientState.start()),await this.persistence.fi((async e=>{await async function(e,t){const n=O(e);if(rc(n),ic(n),!0===t&&!0!==n.La){const e=n.sharedClientState.getAllActiveQueryTargets(),t=await Jl(n,e.toArray());n.La=!0,await el(n.remoteStore,!0);for(const r of t)Ds(n.remoteStore,r)}else if(!1===t&&!1!==n.La){const e=[];let t=Promise.resolve();n.Da.forEach(((r,i)=>{n.sharedClientState.isLocalQueryTarget(i)?e.push(i):t=t.then((()=>(Vl(n,i),Ka(n.localStore,i,!0)))),Fs(n.remoteStore,i)})),await t,await Jl(n,e),function(e){const t=O(e);t.Fa.forEach(((e,n)=>{Fs(t.remoteStore,n)})),t.Ma.mr(),t.Fa=new Map,t.va=new ht(ie.comparator)}(n),n.La=!1,await el(n.remoteStore,!1)}}(this.Qa.syncEngine,e),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start():e||this.gcScheduler.stop()),this.indexBackfillerScheduler&&(e&&!this.indexBackfillerScheduler.started?this.indexBackfillerScheduler.start():e||this.indexBackfillerScheduler.stop())}))}createSharedClientState(e){const t=ys();if(!ls.D(t))throw new M(j.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const n=Ma(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new ls(t,e.asyncQueue,n,e.clientId,e.initialUser)}}class lc{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>Ol(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=Yl.bind(null,this.syncEngine),await el(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new cl}createDatastore(e){const t=ws(e.databaseInfo.databaseId),n=function(e){return new vs(e)}(e.databaseInfo);return function(e,t,n,r){return new _s(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new Ss(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,(e=>Ol(this.syncEngine,e,0)),ds.D()?new ds:new us)}createSyncEngine(e,t){return function(e,t,n,r,i,o,a){const s=new Sl(e,t,n,r,i,o);return a&&(s.La=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e;await async function(e){const t=O(e);k("RemoteStore","RemoteStore shutting down."),t.M_.add(5),await Ps(t),t.O_.shutdown(),t.N_.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate()}}function cc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10240,n=0;return{async read(){if(n<e.byteLength){const r={value:e.slice(n,n+t),done:!1};return n+=t,r}return{done:!0}},async cancel(){},releaseLock(){},closed:Promise.resolve()}}class uc{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ka(this.observer.next,e)}error(e){this.observer.error?this.Ka(this.observer.error,e):P("Uncaught Error in snapshot listener:",e.toString())}$a(){this.muted=!0}Ka(e,t){this.muted||setTimeout((()=>{this.muted||e(t)}),0)}}class dc{constructor(e,t){this.Ua=e,this.serializer=t,this.metadata=new L,this.buffer=new Uint8Array,this.Wa=new TextDecoder("utf-8"),this.Ga().then((e=>{e&&e.sa()?this.metadata.resolve(e.ia.metadata):this.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             ".concat(JSON.stringify(null==e?void 0:e.ia))))}),(e=>this.metadata.reject(e)))}close(){return this.Ua.cancel()}async getMetadata(){return this.metadata.promise}async qa(){return await this.getMetadata(),this.Ga()}async Ga(){const e=await this.za();if(null===e)return null;const t=this.Wa.decode(e),n=Number(t);isNaN(n)&&this.ja("length string (".concat(t,") is not valid number"));const r=await this.Ha(n);return new yl(JSON.parse(r),e.length+n)}Ja(){return this.buffer.findIndex((e=>e==="{".charCodeAt(0)))}async za(){for(;this.Ja()<0&&!await this.Ya(););if(0===this.buffer.length)return null;const e=this.Ja();e<0&&this.ja("Reached the end of bundle when a length string is expected.");const t=this.buffer.slice(0,e);return this.buffer=this.buffer.slice(e),t}async Ha(e){for(;this.buffer.length<e;)await this.Ya()&&this.ja("Reached the end of bundle when more is expected.");const t=this.Wa.decode(this.buffer.slice(0,e));return this.buffer=this.buffer.slice(e),t}ja(e){throw this.Ua.cancel(),new Error("Invalid bundle format: ".concat(e))}async Ya(){const e=await this.Ua.read();if(!e.done){const t=new Uint8Array(this.buffer.length+e.value.length);t.set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t}return e.done}}class pc{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}async lookup(e){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw this.lastTransactionError=new M(j.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),this.lastTransactionError;const t=await async function(e,t){const n=O(e),r={documents:t.map((e=>Ti(n.serializer,e)))},i=await n.xo("BatchGetDocuments",n.serializer.databaseId,te.emptyPath(),r,t.length),o=new Map;i.forEach((e=>{const t=function(e,t){return"found"in t?function(e,t){I(!!t.found),t.found.name,t.found.updateTime;const n=Si(e,t.found.name),r=Ci(t.found.updateTime),i=t.found.createTime?Ci(t.found.createTime):$.min(),o=new $t({mapValue:{fields:t.found.fields}});return tn.newFoundDocument(n,r,i,o)}(e,t):"missing"in t?function(e,t){I(!!t.missing),I(!!t.readTime);const n=Si(e,t.missing),r=Ci(t.readTime);return tn.newNoDocument(n,r)}(e,t):N()}(n.serializer,e);o.set(t.key.toString(),t)}));const a=[];return t.forEach((e=>{const t=o.get(e.toString());I(!!t),a.push(t)})),a}(this.datastore,e);return t.forEach((e=>this.recordVersion(e))),t}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastTransactionError=e}this.writtenDocs.add(e.toString())}delete(e){this.write(new Hr(e,this.precondition(e))),this.writtenDocs.add(e.toString())}async commit(){if(this.ensureCommitNotCalled(),this.lastTransactionError)throw this.lastTransactionError;const e=this.readVersions;this.mutations.forEach((t=>{e.delete(t.key.toString())})),e.forEach(((e,t)=>{const n=ie.fromPath(t);this.mutations.push(new zr(n,this.precondition(n)))})),await async function(e,t){const n=O(e),r={writes:t.map((e=>Ri(n.serializer,e)))};await n.Co("Commit",n.serializer.databaseId,te.emptyPath(),r)}(this.datastore,this.mutations),this.committed=!0}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw N();t=$.min()}const n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new M(j.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){const t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual($.min())?Pr.exists(!1):Pr.updateTime(t):Pr.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual($.min()))throw new M(j.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Pr.updateTime(t)}return Pr.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}class hc{constructor(e,t,n,r,i){this.asyncQueue=e,this.datastore=t,this.options=n,this.updateFunction=r,this.deferred=i,this.Za=n.maxAttempts,this.Yo=new xs(this.asyncQueue,"transaction_retry")}Xa(){this.Za-=1,this.eu()}eu(){this.Yo.$o((async()=>{const e=new pc(this.datastore),t=this.tu(e);t&&t.then((t=>{this.asyncQueue.enqueueAndForget((()=>e.commit().then((()=>{this.deferred.resolve(t)})).catch((e=>{this.nu(e)}))))})).catch((e=>{this.nu(e)}))}))}tu(e){try{const t=this.updateFunction(e);return!Fe(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}}nu(e){this.Za>0&&this.ru(e)?(this.Za-=1,this.asyncQueue.enqueueAndForget((()=>(this.eu(),Promise.resolve())))):this.deferred.reject(e)}ru(e){if("FirebaseError"===e.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!Xr(t)}return!1}}class fc{constructor(e,t,n,r){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=A.UNAUTHENTICATED,this.clientId=K.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,(async e=>{k("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(k("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new M(j.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new L;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=il(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}}async function mc(e,t){e.asyncQueue.verifyOperationInProgress(),k("FirestoreClient","Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await za(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function gc(e,t){e.asyncQueue.verifyOperationInProgress();const n=await yc(e);k("FirestoreClient","Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener((e=>$s(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>$s(t.remoteStore,n))),e._onlineComponents=t}function vc(e){return"FirebaseError"===e.name?e.code===j.FAILED_PRECONDITION||e.code===j.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}async function yc(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){k("FirestoreClient","Using user provided OfflineComponentProvider");try{await mc(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!vc(n))throw n;D("Error using user provided cache. Falling back to memory cache: "+n),await mc(e,new oc)}}else k("FirestoreClient","Using default OfflineComponentProvider"),await mc(e,new oc);return e._offlineComponents}async function bc(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(k("FirestoreClient","Using user provided OnlineComponentProvider"),await gc(e,e._uninitializedComponentsProvider._online)):(k("FirestoreClient","Using default OnlineComponentProvider"),await gc(e,new lc))),e._onlineComponents}function wc(e){return yc(e).then((e=>e.persistence))}function xc(e){return yc(e).then((e=>e.localStore))}function Cc(e){return bc(e).then((e=>e.remoteStore))}function Ac(e){return bc(e).then((e=>e.syncEngine))}function Ec(e){return bc(e).then((e=>e.datastore))}async function _c(e){const t=await bc(e),n=t.eventManager;return n.onListen=kl.bind(null,t.syncEngine),n.onUnlisten=Nl.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=Pl.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=Il.bind(null,t.syncEngine),n}function Tc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new L;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const o=new uc({next:o=>{t.enqueueAndForget((()=>dl(e,a)));const s=o.docs.has(n);!s&&o.fromCache?i.reject(new M(j.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new M(j.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:e=>i.reject(e)}),a=new vl(Mn(n.path),o,{includeMetadataChanges:!0,ra:!0});return ul(e,a)}(await _c(e),e.asyncQueue,t,n,r))),r.promise}function Sc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new L;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const o=new uc({next:n=>{t.enqueueAndForget((()=>dl(e,a))),n.fromCache&&"server"===r.source?i.reject(new M(j.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:e=>i.reject(e)}),a=new vl(n,o,{includeMetadataChanges:!0,ra:!0});return ul(e,a)}(await _c(e),e.asyncQueue,t,n,r))),r.promise}function kc(e,t,n,r){const i=function(e,t){let n;return n="string"==typeof e?$r().encode(e):e,function(e,t){return new dc(e,t)}(function(e,t){if(e instanceof Uint8Array)return cc(e,t);if(e instanceof ArrayBuffer)return cc(new Uint8Array(e),t);if(e instanceof ReadableStream)return e.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(n),t)}(n,ws(t));e.asyncQueue.enqueueAndForget((async()=>{!function(e,t,n){const r=O(e);(async function(e,t,n){try{const r=await t.getMetadata();if(await function(e,t){const n=O(e),r=Ci(t.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",(e=>n.$r.getBundleMetadata(e,t.id))).then((e=>!!e&&e.createTime.compareTo(r)>=0))}(e.localStore,r))return await t.close(),n._completeWith(function(e){return{taskState:"Success",documentsLoaded:e.totalDocuments,bytesLoaded:e.totalBytes,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}(r)),Promise.resolve(new Set);n._updateProgress(xl(r));const i=new wl(r,e.localStore,t.serializer);let o=await t.qa();for(;o;){const e=await i._a(o);e&&n._updateProgress(e),o=await t.qa()}const a=await i.complete();return await Gl(e,a.ca,void 0),await function(e,t){const n=O(e);return n.persistence.runTransaction("Save bundle","readwrite",(e=>n.$r.saveBundleMetadata(e,t)))}(e.localStore,r),n._completeWith(a.progress),Promise.resolve(a.ua)}catch(e){return D("SyncEngine","Loading bundle failed with ".concat(e)),n._failWith(e),Promise.resolve(new Set)}})(r,t,n).then((e=>{r.sharedClientState.notifyBundleLoaded(e)}))}(await Ac(e),i,r)}))}function Pc(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}const Dc=new Map;function Fc(e,t,n){if(!n)throw new M(j.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function Nc(e,t,n,r){if(!0===t&&!0===r)throw new M(j.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))}function Ic(e){if(!ie.isDocumentKey(e))throw new M(j.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function Rc(e){if(ie.isDocumentKey(e))throw new M(j.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function Oc(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}}return"function"==typeof e?"a function":N()}function jc(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new M(j.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Oc(e);throw new M(j.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}}return e}function Mc(e,t){if(t<=0)throw new M(j.INVALID_ARGUMENT,"Function ".concat(e,"() requires a positive number, but it was: ").concat(t,"."))}class Lc{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new M(j.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new M(j.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Nc("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=Pc(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new M(j.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new M(j.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new M(j.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (maximum allowed value is 30)"))}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Bc{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Lc({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new M(j.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new M(j.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Lc(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new U;switch(e.type){case"firstParty":return new W(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new M(j.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=Dc.get(e);t&&(k("ComponentProvider","Removing Datastore"),Dc.delete(e),t.terminate())}(this),Promise.resolve()}}function Uc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var i;const o=(e=jc(e,Bc))._getSettings(),a="".concat(t,":").concat(n);if("firestore.googleapis.com"!==o.host&&o.host!==a&&D("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),e._setSettings(Object.assign(Object.assign({},o),{host:a,ssl:!1})),r.mockUserToken){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=A.MOCK_USER;else{t=(0,l.Fy)(r.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);const o=r.mockUserToken.sub||r.mockUserToken.user_id;if(!o)throw new M(j.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new A(o)}e._authCredentials=new V(new B(t,n))}}class Vc{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new Vc(this.firestore,e,this._query)}}class Hc{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new zc(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Hc(this.firestore,e,this._key)}}class zc extends Vc{constructor(e,t,n){super(e,t,Mn(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Hc(this.firestore,null,new ie(e))}withConverter(e){return new zc(this.firestore,e,this._path)}}function Wc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,l.Ku)(e),Fc("collection","path",t),e instanceof Bc){const n=te.fromString(t,...r);return Rc(n),new zc(e,null,n)}{if(!(e instanceof Hc||e instanceof zc))throw new M(j.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(te.fromString(t,...r));return Rc(n),new zc(e.firestore,null,n)}}function qc(e,t){if(e=jc(e,Bc),Fc("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new M(j.INVALID_ARGUMENT,"Invalid collection ID '".concat(t,"' passed to function collectionGroup(). Collection IDs must not contain '/'."));return new Vc(e,null,function(e){return new On(te.emptyPath(),e)}(t))}function Gc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,l.Ku)(e),1===arguments.length&&(t=K.newId()),Fc("doc","path",t),e instanceof Bc){const n=te.fromString(t,...r);return Ic(n),new Hc(e,null,new ie(n))}{if(!(e instanceof Hc||e instanceof zc))throw new M(j.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(te.fromString(t,...r));return Ic(n),new Hc(e.firestore,e instanceof zc?e.converter:null,new ie(n))}}function Yc(e,t){return e=(0,l.Ku)(e),t=(0,l.Ku)(t),(e instanceof Hc||e instanceof zc)&&(t instanceof Hc||t instanceof zc)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function Kc(e,t){return e=(0,l.Ku)(e),t=(0,l.Ku)(t),e instanceof Vc&&t instanceof Vc&&e.firestore===t.firestore&&qn(e._query,t._query)&&e.converter===t.converter}class Qc{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new xs(this,"async_queue_retry"),this.hu=()=>{const e=bs();e&&k("AsyncQueue","Visibility state changed to "+e.visibilityState),this.Yo.Wo()};const e=bs();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pu(),this.Iu(e)}enterRestrictedMode(e){if(!this.ou){this.ou=!0,this.cu=e||!1;const t=bs();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.hu)}}enqueue(e){if(this.Pu(),this.ou)return new Promise((()=>{}));const t=new L;return this.Iu((()=>this.ou&&this.cu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.su.push(e),this.Tu())))}async Tu(){if(0!==this.su.length){try{await this.su[0](),this.su.shift(),this.Yo.reset()}catch(e){if(!Ae(e))throw e;k("AsyncQueue","Operation failed with retryable error: "+e)}this.su.length>0&&this.Yo.$o((()=>this.Tu()))}}Iu(e){const t=this.iu.then((()=>(this.uu=!0,e().catch((e=>{this.au=e,this.uu=!1;const t=function(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw P("INTERNAL UNHANDLED ERROR: ",t),e})).then((e=>(this.uu=!1,e))))));return this.iu=t,t}enqueueAfterDelay(e,t,n){this.Pu(),this.lu.indexOf(e)>-1&&(t=0);const r=rl.createAndSchedule(this,e,t,n,(e=>this.Eu(e)));return this._u.push(r),r}Pu(){this.au&&N()}verifyOperationInProgress(){}async du(){let e;do{e=this.iu,await e}while(e!==this.iu)}Au(e){for(const t of this._u)if(t.timerId===e)return!0;return!1}Ru(e){return this.du().then((()=>{this._u.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(const t of this._u)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.du()}))}Vu(e){this.lu.push(e)}Eu(e){const t=this._u.indexOf(e);this._u.splice(t,1)}}function Xc(e){return function(e,t){if("object"!=typeof e||null===e)return!1;const n=e;for(const r of t)if(r in n&&"function"==typeof n[r])return!0;return!1}(e,["next","error","complete"])}class Zc{constructor(){this._progressObserver={},this._taskCompletionResolver=new L,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,n){this._progressObserver={next:e,error:t,complete:n}}catch(e){return this._taskCompletionResolver.promise.catch(e)}then(e,t){return this._taskCompletionResolver.promise.then(e,t)}_completeWith(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}_failWith(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}_updateProgress(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}const Jc=-1;class $c extends Bc{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new Qc,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||tu(this),this._firestoreClient.terminate()}}function eu(e){return e._firestoreClient||tu(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function tu(e){var t,n,r;const i=e._freezeSettings(),o=function(e,t,n,r){return new Dt(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,Pc(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,i);e._firestoreClient=new fc(e._authCredentials,e._appCheckCredentials,e._queue,o),(null===(n=i.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=i.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}function nu(e,t){du(e=jc(e,$c));const n=eu(e);if(n._uninitializedComponentsProvider)throw new M(j.FAILED_PRECONDITION,"SDK cache is already specified.");D("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const r=e._freezeSettings(),i=new lc;return iu(n,i,new ac(i,r.cacheSizeBytes,null==t?void 0:t.forceOwnership))}function ru(e){du(e=jc(e,$c));const t=eu(e);if(t._uninitializedComponentsProvider)throw new M(j.FAILED_PRECONDITION,"SDK cache is already specified.");D("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const n=e._freezeSettings(),r=new lc;return iu(t,r,new sc(r,n.cacheSizeBytes))}function iu(e,t,n){const r=new L;return e.asyncQueue.enqueue((async()=>{try{await mc(e,n),await gc(e,t),r.resolve()}catch(e){const n=e;if(!vc(n))throw n;D("Error enabling indexeddb cache. Falling back to memory cache: "+n),r.reject(n)}})).then((()=>r.promise))}function ou(e){if(e._initialized&&!e._terminated)throw new M(j.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const t=new L;return e._queue.enqueueAndForgetEvenWhileRestricted((async()=>{try{await async function(e){if(!be.D())return Promise.resolve();const t=e+"main";await be.delete(t)}(Ma(e._databaseId,e._persistenceKey)),t.resolve()}catch(e){t.reject(e)}})),t.promise}function au(e){return function(e){const t=new L;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t){const n=O(e);js(n.remoteStore)||k("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const e=await function(e){const t=O(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(e=>t.mutationQueue.getHighestUnacknowledgedBatchId(e)))}(n.localStore);if(-1===e)return void t.resolve();const r=n.Oa.get(e)||[];r.push(t),n.Oa.set(e,r)}catch(e){const n=il(e,"Initialization of waitForPendingWrites() operation failed");t.reject(n)}}(await Ac(e),t))),t.promise}(eu(e=jc(e,$c)))}function su(e){return function(e){return e.asyncQueue.enqueue((async()=>{const t=await wc(e),n=await Cc(e);return t.setNetworkEnabled(!0),function(e){const t=O(e);return t.M_.delete(0),ks(t)}(n)}))}(eu(e=jc(e,$c)))}function lu(e){return function(e){return e.asyncQueue.enqueue((async()=>{const t=await wc(e),n=await Cc(e);return t.setNetworkEnabled(!1),async function(e){const t=O(e);t.M_.add(0),await Ps(t),t.N_.set("Offline")}(n)}))}(eu(e=jc(e,$c)))}function cu(e,t){const n=eu(e=jc(e,$c)),r=new Zc;return kc(n,e._databaseId,t,r),r}function uu(e,t){return function(e,t){return e.asyncQueue.enqueue((async()=>function(e,t){const n=O(e);return n.persistence.runTransaction("Get named query","readonly",(e=>n.$r.getNamedQuery(e,t)))}(await xc(e),t)))}(eu(e=jc(e,$c)),t).then((t=>t?new Vc(e,null,t.query):null))}function du(e){if(e._initialized||e._terminated)throw new M(j.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}class pu{constructor(e){this._byteString=e}static fromBase64String(e){try{return new pu(Ct.fromBase64String(e))}catch(e){throw new M(j.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new pu(Ct.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class hu{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;++r)if(0===t[r].length)throw new M(j.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new re(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class fu{constructor(e){this._methodName=e}}class mu{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new M(j.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new M(j.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Q(this._lat,e._lat)||Q(this._long,e._long)}}const gu=/^__.*__$/;class vu{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Lr(e,this.data,this.fieldMask,t,this.fieldTransforms):new Mr(e,this.data,t,this.fieldTransforms)}}class yu{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new Lr(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function bu(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw N()}}class wu{constructor(e,t,n,r,i,o){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.mu(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(e){return new wu(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.gu({path:n,yu:!1});return r.wu(e),r}Su(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.gu({path:n,yu:!1});return r.mu(),r}bu(e){return this.gu({path:void 0,yu:!0})}Du(e){return Uu(e,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(e){return void 0!==this.fieldMask.find((t=>e.isPrefixOf(t)))||void 0!==this.fieldTransforms.find((t=>e.isPrefixOf(t.field)))}mu(){if(this.path)for(let e=0;e<this.path.length;e++)this.wu(this.path.get(e))}wu(e){if(0===e.length)throw this.Du("Document fields must not be empty");if(bu(this.fu)&&gu.test(e))throw this.Du('Document fields cannot begin and end with "__"')}}class xu{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||ws(e)}Fu(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new wu({fu:e,methodName:t,vu:n,path:re.emptyPath(),yu:!1,Cu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Cu(e){const t=e._freezeSettings(),n=ws(e._databaseId);return new xu(e._databaseId,!!t.ignoreUndefinedProperties,n)}function Au(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=e.Fu(o.merge||o.mergeFields?2:0,t,n,i);ju("Data must be an object, but it was:",a,r);const s=Ru(r,a);let l,c;if(o.merge)l=new bt(a.fieldMask),c=a.fieldTransforms;else if(o.mergeFields){const e=[];for(const r of o.mergeFields){const i=Mu(t,r,n);if(!a.contains(i))throw new M(j.INVALID_ARGUMENT,"Field '".concat(i,"' is specified in your field mask but missing from your input data."));Vu(e,i)||e.push(i)}l=new bt(e),c=a.fieldTransforms.filter((e=>l.covers(e.field)))}else l=null,c=a.fieldTransforms;return new vu(new $t(s),l,c)}class Eu extends fu{_toFieldTransform(e){if(2!==e.fu)throw 1===e.fu?e.Du("".concat(this._methodName,"() can only appear at the top level of your update data")):e.Du("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Eu}}function _u(e,t,n){return new wu({fu:3,vu:t.settings.vu,methodName:e._methodName,yu:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class Tu extends fu{_toFieldTransform(e){return new Sr(e.path,new br)}isEqual(e){return e instanceof Tu}}class Su extends fu{constructor(e,t){super(e),this.Mu=t}_toFieldTransform(e){const t=_u(this,e,!0),n=this.Mu.map((e=>Iu(e,t))),r=new wr(n);return new Sr(e.path,r)}isEqual(e){return e instanceof Su&&(0,l.bD)(this.Mu,e.Mu)}}class ku extends fu{constructor(e,t){super(e),this.Mu=t}_toFieldTransform(e){const t=_u(this,e,!0),n=this.Mu.map((e=>Iu(e,t))),r=new Cr(n);return new Sr(e.path,r)}isEqual(e){return e instanceof ku&&(0,l.bD)(this.Mu,e.Mu)}}class Pu extends fu{constructor(e,t){super(e),this.xu=t}_toFieldTransform(e){const t=new Er(e.serializer,fr(e.serializer,this.xu));return new Sr(e.path,t)}isEqual(e){return e instanceof Pu&&this.xu===e.xu}}function Du(e,t,n,r){const i=e.Fu(1,t,n);ju("Data must be an object, but it was:",i,r);const o=[],a=$t.empty();dt(r,((e,r)=>{const s=Bu(t,e,n);r=(0,l.Ku)(r);const c=i.Su(s);if(r instanceof Eu)o.push(s);else{const e=Iu(r,c);null!=e&&(o.push(s),a.set(s,e))}}));const s=new bt(o);return new yu(a,s,i.fieldTransforms)}function Fu(e,t,n,r,i,o){const a=e.Fu(1,t,n),s=[Mu(t,r,n)],c=[i];if(o.length%2!=0)throw new M(j.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(let l=0;l<o.length;l+=2)s.push(Mu(t,o[l])),c.push(o[l+1]);const u=[],d=$t.empty();for(let h=s.length-1;h>=0;--h)if(!Vu(u,s[h])){const e=s[h];let t=c[h];t=(0,l.Ku)(t);const n=a.Su(e);if(t instanceof Eu)u.push(e);else{const r=Iu(t,n);null!=r&&(u.push(e),d.set(e,r))}}const p=new bt(u);return new yu(d,p,a.fieldTransforms)}function Nu(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Iu(n,e.Fu(r?4:3,t))}function Iu(e,t){if(Ou(e=(0,l.Ku)(e)))return ju("Unsupported field value:",t,e),Ru(e,t);if(e instanceof fu)return function(e,t){if(!bu(t.fu))throw t.Du("".concat(e._methodName,"() can only be used with update() and set()"));if(!t.path)throw t.Du("".concat(e._methodName,"() is not currently supported inside arrays"));const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.yu&&4!==t.fu)throw t.Du("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const i of e){let e=Iu(i,t.bu(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=(0,l.Ku)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return fr(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=J.fromDate(e);return{timestampValue:bi(t.serializer,n)}}if(e instanceof J){const n=new J(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:bi(t.serializer,n)}}if(e instanceof mu)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof pu)return{bytesValue:wi(t.serializer,e._byteString)};if(e instanceof Hc){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Du("Document reference is for database ".concat(r.projectId,"/").concat(r.database," but should be for database ").concat(n.projectId,"/").concat(n.database));return{referenceValue:Ai(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Du("Unsupported field value: ".concat(Oc(e)))}(e,t)}function Ru(e,t){const n={};return pt(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):dt(e,((e,r)=>{const i=Iu(r,t.pu(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function Ou(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof J||e instanceof mu||e instanceof pu||e instanceof Hc||e instanceof fu)}function ju(e,t,n){if(!Ou(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){const r=Oc(n);throw"an object"===r?t.Du(e+" a custom object"):t.Du(e+" "+r)}}function Mu(e,t,n){if((t=(0,l.Ku)(t))instanceof hu)return t._internalPath;if("string"==typeof t)return Bu(e,t);throw Uu("Field path arguments must be of type string or ",e,!1,void 0,n)}const Lu=new RegExp("[~\\*/\\[\\]]");function Bu(e,t,n){if(t.search(Lu)>=0)throw Uu("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return new hu(...t.split("."))._internalPath}catch(r){throw Uu("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function Uu(e,t,n,r,i){const o=r&&!r.isEmpty(),a=void 0!==i;let s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";let l="";return(o||a)&&(l+=" (found",o&&(l+=" in field ".concat(r)),a&&(l+=" in document ".concat(i)),l+=")"),new M(j.INVALID_ARGUMENT,s+e+l)}function Vu(e,t){return e.some((e=>e.isEqual(t)))}class Hu{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new Hc(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new zu(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(Wu("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class zu extends Hu{data(){return super.data()}}function Wu(e,t){return"string"==typeof t?Bu(e,t):t instanceof hu?t._internalPath:t._delegate._internalPath}function qu(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new M(j.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Gu{}class Yu extends Gu{}function Ku(e,t){let n=[];for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t instanceof Gu&&n.push(t),n=n.concat(i),function(e){const t=e.filter((e=>e instanceof Zu)).length,n=e.filter((e=>e instanceof Qu)).length;if(t>1||t>0&&n>0)throw new M(j.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n);for(const a of n)e=a._apply(e);return e}class Qu extends Yu{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new Qu(e,t,n)}_apply(e){const t=this._parse(e);return fd(e._query,t),new Vc(e.firestore,e.converter,zn(e._query,t))}_parse(e){const t=Cu(e.firestore),n=function(e,t,n,r,i,o,a){let s;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new M(j.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(o,"' queries on documentId()."));if("in"===o||"not-in"===o){hd(a,o);const t=[];for(const n of a)t.push(pd(r,e,n));s={arrayValue:{values:t}}}else s=pd(r,e,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||hd(a,o),s=Nu(n,t,a,"in"===o||"not-in"===o);return cn.create(i,o,s)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}function Xu(e,t,n){const r=t,i=Wu("where",e);return Qu._create(i,r,n)}class Zu extends Gu{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new Zu(e,t)}_parse(e){const t=this._queryConstraints.map((t=>t._parse(e))).filter((e=>e.getFilters().length>0));return 1===t.length?t[0]:un.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const i of r)fd(n,i),n=zn(n,i)}(e._query,t),new Vc(e.firestore,e.converter,zn(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}function Ju(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach((e=>md("or",e))),Zu._create("or",t)}function $u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach((e=>md("and",e))),Zu._create("and",t)}class ed extends Yu{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new ed(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new M(j.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new M(j.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new an(t,n)}(e._query,this._field,this._direction);return new Vc(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new On(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function td(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=Wu("orderBy",e);return ed._create(n,t)}class nd extends Yu{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new nd(e,t,n)}_apply(e){return new Vc(e.firestore,e.converter,Wn(e._query,this._limit,this._limitType))}}function rd(e){return Mc("limit",e),nd._create("limit",e,"F")}function id(e){return Mc("limitToLast",e),nd._create("limitToLast",e,"L")}class od extends Yu{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new od(e,t,n)}_apply(e){const t=dd(e,this.type,this._docOrFields,this._inclusive);return new Vc(e.firestore,e.converter,function(e,t){return new On(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))}}function ad(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return od._create("startAt",t,!0)}function sd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return od._create("startAfter",t,!1)}class ld extends Yu{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new ld(e,t,n)}_apply(e){const t=dd(e,this.type,this._docOrFields,this._inclusive);return new Vc(e.firestore,e.converter,function(e,t){return new On(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))}}function cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ld._create("endBefore",t,!1)}function ud(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ld._create("endAt",t,!0)}function dd(e,t,n,r){if(n[0]=(0,l.Ku)(n[0]),n[0]instanceof Hu)return function(e,t,n,r,i){if(!r)throw new M(j.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for ".concat(n,"()."));const o=[];for(const a of Un(e))if(a.field.isKeyField())o.push(Vt(t,r.key));else{const e=r.data.field(a.field);if(St(e))throw new M(j.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){const e=a.field.canonicalString();throw new M(j.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '".concat(e,"' (used as the orderBy) does not exist."))}o.push(e)}return new nn(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{const i=Cu(e.firestore);return function(e,t,n,r,i,o){const a=e.explicitOrderBy;if(i.length>a.length)throw new M(j.INVALID_ARGUMENT,"Too many arguments provided to ".concat(r,"(). The number of arguments must be less than or equal to the number of orderBy() clauses"));const s=[];for(let l=0;l<i.length;l++){const o=i[l];if(a[l].field.isKeyField()){if("string"!=typeof o)throw new M(j.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in ".concat(r,"(), but got a ").concat(typeof o));if(!Bn(e)&&-1!==o.indexOf("/"))throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r,"() must be a plain document ID, but '").concat(o,"' contains a slash."));const n=e.path.child(te.fromString(o));if(!ie.isDocumentKey(n))throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by documentId(), the value passed to ".concat(r,"() must result in a valid document path, but '").concat(n,"' is not because it contains an odd number of segments."));const i=new ie(n);s.push(Vt(t,i))}else{const e=Nu(n,r,o);s.push(e)}}return new nn(s,o)}(e._query,e.firestore._databaseId,i,t,n,r)}}function pd(e,t,n){if("string"==typeof(n=(0,l.Ku)(n))){if(""===n)throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Bn(t)&&-1!==n.indexOf("/"))throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));const r=t.path.child(te.fromString(n));if(!ie.isDocumentKey(r))throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return Vt(e,new ie(r))}if(n instanceof Hc)return Vt(e,n._key);throw new M(j.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(Oc(n),"."))}function hd(e,t){if(!Array.isArray(e)||0===e.length)throw new M(j.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."))}function fd(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new M(j.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new M(j.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(n.toString(),"' filters."))}function md(e,t){if(!(t instanceof Qu||t instanceof Zu))throw new M(j.INVALID_ARGUMENT,"Function ".concat(e,"() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."))}class gd{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Rt(e)){case 0:return null;case 1:return e.booleanValue;case 2:return _t(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Tt(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw N()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";const n={};return dt(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertGeoPoint(e){return new mu(_t(e.latitude),_t(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case"previous":const n=kt(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Pt(e));default:return null}}convertTimestamp(e){const t=Et(e);return new J(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=te.fromString(e);I(Yi(n));const r=new Ft(n.get(1),n.get(3)),i=new ie(n.popFirst(5));return r.isEqual(t)||P("Document ".concat(i," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}function vd(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class yd extends gd{constructor(e){super(),this.firestore=e}convertBytes(e){return new pu(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new Hc(this.firestore,null,t)}}class bd{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class wd extends Hu{constructor(e,t,n,r,i,o){super(e,t,n,r,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){const t=new xd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){const n=this._document.data.field(Wu("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class xd extends wd{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class Cd{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new bd(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach((t=>e.push(t))),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach((n=>{e.call(t,new xd(this._firestore,this._userDataWriter,n.key,n,new bd(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(){const e=!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new M(j.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map((n=>{const r=new xd(e._firestore,e._userDataWriter,n.doc.key,n.doc,new bd(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}}))}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((e=>t||3!==e.type)).map((t=>{const r=new xd(e._firestore,e._userDataWriter,t.doc.key,t.doc,new bd(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,o=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),o=n.indexOf(t.doc.key)),{type:Ad(t.type),doc:r,oldIndex:i,newIndex:o}}))}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function Ad(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return N()}}function Ed(e,t){return e instanceof wd&&t instanceof wd?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof Cd&&t instanceof Cd&&e._firestore===t._firestore&&Kc(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}function _d(e){e=jc(e,Hc);const t=jc(e.firestore,$c);return Tc(eu(t),e._key).then((n=>Bd(t,e,n)))}class Td extends gd{constructor(e){super(),this.firestore=e}convertBytes(e){return new pu(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new Hc(this.firestore,null,t)}}function Sd(e){e=jc(e,Hc);const t=jc(e.firestore,$c),n=eu(t),r=new Td(t);return function(e,t){const n=new L;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){try{const r=await function(e,t){const n=O(e);return n.persistence.runTransaction("read document","readonly",(e=>n.localDocuments.getDocument(e,t)))}(e,t);r.isFoundDocument()?n.resolve(r):r.isNoDocument()?n.resolve(null):n.reject(new M(j.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)"))}catch(e){const r=il(e,"Failed to get document '".concat(t," from cache"));n.reject(r)}}(await xc(e),t,n))),n.promise}(n,e._key).then((n=>new wd(t,r,e._key,n,new bd(null!==n&&n.hasLocalMutations,!0),e.converter)))}function kd(e){e=jc(e,Hc);const t=jc(e.firestore,$c);return Tc(eu(t),e._key,{source:"server"}).then((n=>Bd(t,e,n)))}function Pd(e){e=jc(e,Vc);const t=jc(e.firestore,$c),n=eu(t),r=new Td(t);return qu(e._query),Sc(n,e._query).then((n=>new Cd(t,r,e,n)))}function Dd(e){e=jc(e,Vc);const t=jc(e.firestore,$c),n=eu(t),r=new Td(t);return function(e,t){const n=new L;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){try{const r=await Qa(e,t,!0),i=new El(t,r.hs),o=i.da(r.documents),a=i.applyChanges(o,!1);n.resolve(a.snapshot)}catch(e){const r=il(e,"Failed to execute query '".concat(t," against cache"));n.reject(r)}}(await xc(e),t,n))),n.promise}(n,e._query).then((n=>new Cd(t,r,e,n)))}function Fd(e){e=jc(e,Vc);const t=jc(e.firestore,$c),n=eu(t),r=new Td(t);return Sc(n,e._query,{source:"server"}).then((n=>new Cd(t,r,e,n)))}function Nd(e,t,n){e=jc(e,Hc);const r=jc(e.firestore,$c),i=vd(e.converter,t,n);return Ld(r,[Au(Cu(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,Pr.none())])}function Id(e,t,n){e=jc(e,Hc);const r=jc(e.firestore,$c),i=Cu(r);let o;for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return o="string"==typeof(t=(0,l.Ku)(t))||t instanceof hu?Fu(i,"updateDoc",e._key,t,n,s):Du(i,"updateDoc",e._key,t),Ld(r,[o.toMutation(e._key,Pr.exists(!0))])}function Rd(e){return Ld(jc(e.firestore,$c),[new Hr(e._key,Pr.none())])}function Od(e,t){const n=jc(e.firestore,$c),r=Gc(e),i=vd(e.converter,t);return Ld(n,[Au(Cu(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,Pr.exists(!1))]).then((()=>r))}function jd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o,a;e=(0,l.Ku)(e);let s={includeMetadataChanges:!1,source:"default"},c=0;"object"!=typeof n[c]||Xc(n[c])||(s=n[c],c++);const u={includeMetadataChanges:s.includeMetadataChanges,source:s.source};if(Xc(n[c])){const e=n[c];n[c]=null===(i=e.next)||void 0===i?void 0:i.bind(e),n[c+1]=null===(o=e.error)||void 0===o?void 0:o.bind(e),n[c+2]=null===(a=e.complete)||void 0===a?void 0:a.bind(e)}let d,p,h;if(e instanceof Hc)p=jc(e.firestore,$c),h=Mn(e._key.path),d={next:t=>{n[c]&&n[c](Bd(p,e,t))},error:n[c+1],complete:n[c+2]};else{const t=jc(e,Vc);p=jc(t.firestore,$c),h=t._query;const r=new Td(p);d={next:e=>{n[c]&&n[c](new Cd(p,r,t,e))},error:n[c+1],complete:n[c+2]},qu(e._query)}return function(e,t,n,r){const i=new uc(r),o=new vl(t,i,n);return e.asyncQueue.enqueueAndForget((async()=>ul(await _c(e),o))),()=>{i.$a(),e.asyncQueue.enqueueAndForget((async()=>dl(await _c(e),o)))}}(eu(p),h,u,d)}function Md(e,t){return function(e,t){const n=new uc(t);return e.asyncQueue.enqueueAndForget((async()=>function(e,t){O(e).z_.add(t),t.next()}(await _c(e),n))),()=>{n.$a(),e.asyncQueue.enqueueAndForget((async()=>function(e,t){O(e).z_.delete(t)}(await _c(e),n)))}}(eu(e=jc(e,$c)),Xc(t)?t:{next:t})}function Ld(e,t){return function(e,t){const n=new L;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){const r=ic(e);try{const e=await function(e,t){const n=O(e),r=J.now(),i=t.reduce(((e,t)=>e.add(t.key)),cr());let o,a;return n.persistence.runTransaction("Locally write mutations","readwrite",(e=>{let s=er(),l=cr();return n.os.getEntries(e,i).next((e=>{s=e,s.forEach(((e,t)=>{t.isValidDocument()||(l=l.add(e))}))})).next((()=>n.localDocuments.getOverlayedDocuments(e,s))).next((i=>{o=i;const a=[];for(const e of t){const t=Or(e,o.get(e.key).overlayedDocument);null!=t&&a.push(new Lr(e.key,t,en(t.value.mapValue),Pr.exists(!0)))}return n.mutationQueue.addMutationBatch(e,r,a,t)})).next((t=>{a=t;const r=t.applyToLocalDocumentSet(o,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)}))})).then((()=>({batchId:a.batchId,changes:rr(o)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.xa[e.currentUser.toKey()];r||(r=new ht(Q)),r=r.insert(t,n),e.xa[e.currentUser.toKey()]=r}(r,e.batchId,n),await Gl(r,e.changes),await Ws(r.remoteStore)}catch(e){const t=il(e,"Failed to persist write");n.reject(t)}}(await Ac(e),t,n))),n.promise}(eu(e),t)}function Bd(e,t,n){const r=n.docs.get(t._key),i=new Td(e);return new wd(e,i,t._key,r,new bd(n.hasPendingWrites,n.fromCache),t.converter)}const Ud={maxAttempts:5};class Vd{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Cu(e)}set(e,t,n){this._verifyNotCommitted();const r=Hd(e,this._firestore),i=vd(r.converter,t,n),o=Au(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,Pr.none())),this}update(e,t,n){this._verifyNotCommitted();const r=Hd(e,this._firestore);let i;for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return i="string"==typeof(t=(0,l.Ku)(t))||t instanceof hu?Fu(this._dataReader,"WriteBatch.update",r._key,t,n,a):Du(this._dataReader,"WriteBatch.update",r._key,t),this._mutations.push(i.toMutation(r._key,Pr.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=Hd(e,this._firestore);return this._mutations=this._mutations.concat(new Hr(t._key,Pr.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new M(j.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function Hd(e,t){if((e=(0,l.Ku)(e)).firestore!==t)throw new M(j.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}class zd extends class{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=Cu(e)}get(e){const t=Hd(e,this._firestore),n=new yd(this._firestore);return this._transaction.lookup([t._key]).then((e=>{if(!e||1!==e.length)return N();const r=e[0];if(r.isFoundDocument())return new Hu(this._firestore,n,r.key,r,t.converter);if(r.isNoDocument())return new Hu(this._firestore,n,t._key,null,t.converter);throw N()}))}set(e,t,n){const r=Hd(e,this._firestore),i=vd(r.converter,t,n),o=Au(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this}update(e,t,n){const r=Hd(e,this._firestore);let i;for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return i="string"==typeof(t=(0,l.Ku)(t))||t instanceof hu?Fu(this._dataReader,"Transaction.update",r._key,t,n,a):Du(this._dataReader,"Transaction.update",r._key,t),this._transaction.update(r._key,i),this}delete(e){const t=Hd(e,this._firestore);return this._transaction.delete(t._key),this}}{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=Hd(e,this._firestore),n=new Td(this._firestore);return super.get(e).then((e=>new wd(this._firestore,n,t._key,e._document,new bd(!1,!1),t.converter)))}}function Wd(e,t,n){e=jc(e,$c);const r=Object.assign(Object.assign({},Ud),n);return function(e){if(e.maxAttempts<1)throw new M(j.INVALID_ARGUMENT,"Max attempts must be at least 1")}(r),function(e,t,n){const r=new L;return e.asyncQueue.enqueueAndForget((async()=>{const i=await Ec(e);new hc(e.asyncQueue,i,n,t,r).Xa()})),r.promise}(eu(e),(n=>t(new zd(e,n))),r)}function qd(){return new Eu("deleteField")}function Gd(){return new Tu("serverTimestamp")}function Yd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Su("arrayUnion",t)}function Kd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ku("arrayRemove",t)}function Qd(e){return new Pu("increment",e)}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){E=e}(o.SDK_VERSION),(0,o._registerComponent)(new a.uA("firestore",((e,n)=>{let{instanceIdentifier:r,options:i}=n;const o=e.getProvider("app").getImmediate(),a=new $c(new H(e.getProvider("auth-internal")),new G(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new M(j.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ft(e.options.projectId,t)}(o,r),o);return i=Object.assign({useFetchStreams:t},i),a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),(0,o.registerVersion)(C,"4.6.4",e),(0,o.registerVersion)(C,"4.6.4","esm2017")}()},75805:(e,t,n)=>{"use strict";n.d(t,{Am:()=>I,Bd:()=>y,FA:()=>S,Fy:()=>f,I9:()=>R,Im:()=>D,Ku:()=>B,Ll:()=>v,T9:()=>d,Uj:()=>a,XA:()=>p,ZQ:()=>m,bD:()=>F,cY:()=>h,eX:()=>_,g:()=>T,gR:()=>P,hp:()=>O,jZ:()=>g,lT:()=>C,lV:()=>x,nr:()=>A,p7:()=>b,sr:()=>w,tD:()=>j,u:()=>s,zW:()=>E,zw:()=>l});const r=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],o=i+1<e.length,a=o?e[i+1]:0,s=i+2<e.length,l=s?e[i+2]:0,c=t>>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,p=63&l;s||(p=64,o||(d=64)),r.push(n[c],n[u],n[d],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const s=i<e.length?n[e.charAt(i)]:64;++i;const l=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==a||null==s||null==l)throw new o;const c=t<<2|a>>4;if(r.push(c),64!==s){const e=a<<4&240|s>>2;if(r.push(e),64!==l){const e=s<<6&192|l;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const t=r(e);return i.encodeByteArray(t,!0)}(e).replace(/\./g,"")},s=function(e){try{return i.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function l(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=l(e[n],t[n]));return e}const c=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,u=()=>{try{return c()||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&s(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},d=()=>{var e;return null===(e=u())||void 0===e?void 0:e.config},p=e=>{var t;return null===(t=u())||void 0===t?void 0:t["_".concat(e)]};class h{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function f(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[a(JSON.stringify({alg:"none",type:"JWT"})),a(JSON.stringify(o)),""].join(".")}function m(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function g(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(m())}function v(){var e;const t=null===(e=u())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(r){return!1}}function y(){return"undefined"!==typeof window||b()}function b(){return"undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof self&&self instanceof WorkerGlobalScope}function w(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function x(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function C(){const e=m();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function A(){return!v()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function E(){try{return"object"===typeof indexedDB}catch(e){return!1}}function _(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}))}class T extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,T.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,S.prototype.create)}}class S{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(k,((e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",o="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new T(n,o,t)}}const k=/\{\$([^}]+)}/g;function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function D(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function F(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(N(n)&&N(o)){if(!F(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function N(e){return null!==e&&"object"===typeof e}function I(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function R(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function O(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function j(e,t){const n=new M(e,t);return n.subscribe.bind(n)}class M{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=L),void 0===r.error&&(r.error=L),void 0===r.complete&&(r.complete=L);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function L(){}function B(e){return e&&e._delegate?e._delegate:e}},32739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Le,CompositeItem:()=>Be,FloatingArrow:()=>qe,FloatingDelayGroup:()=>lt,FloatingFocusManager:()=>Bt,FloatingList:()=>Fe,FloatingNode:()=>Je,FloatingOverlay:()=>Vt,FloatingPortal:()=>Nt,FloatingTree:()=>$e,arrow:()=>se,autoPlacement:()=>ie,autoUpdate:()=>G.ll,computePosition:()=>G.rD,detectOverflow:()=>G.__,flip:()=>ne,getOverflowAncestors:()=>o.v9,hide:()=>oe,inline:()=>ae,inner:()=>bn,limitShift:()=>te,offset:()=>$,platform:()=>G.iD,safePolygon:()=>Cn,shift:()=>ee,size:()=>re,useClick:()=>Wt,useClientPoint:()=>Gt,useDelayGroup:()=>ct,useDelayGroupContext:()=>st,useDismiss:()=>Xt,useFloating:()=>Jt,useFloatingNodeId:()=>Ze,useFloatingParentNodeId:()=>Qe,useFloatingPortalNode:()=>Ft,useFloatingRootContext:()=>Zt,useFloatingTree:()=>Xe,useFocus:()=>$t,useHover:()=>it,useId:()=>We,useInnerOffset:()=>wn,useInteractions:()=>rn,useListItem:()=>Ne,useListNavigation:()=>un,useMergeRefs:()=>le,useRole:()=>pn,useTransitionStatus:()=>mn,useTransitionStyles:()=>gn,useTypeahead:()=>vn});var r=n(61462),i=n.t(r,2),o=n(31211);function a(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function s(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function l(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function u(e){return!(0!==e.mozInputSource||!e.isTrusted)||(h()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function d(e){return!c().includes("jsdom/")&&(!h()&&0===e.width&&0===e.height||h()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){return/apple/i.test(navigator.vendor)}function h(){const e=/android/i;return e.test(l())||e.test(c())}function f(){return l().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function m(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function g(e){return(null==e?void 0:e.ownerDocument)||document}function v(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}const b="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function w(e){return(0,o.sb)(e)&&e.matches(b)}function x(e){e.preventDefault(),e.stopPropagation()}function C(e){return!!e&&("combobox"===e.getAttribute("role")&&w(e))}var A=n(16649),E=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],_=E.join(","),T="undefined"===typeof Element,S=T?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,k=!T&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},P=function e(t,n){var r;void 0===n&&(n=!0);var i=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},D=function(e,t,n){if(P(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(_));return t&&S.call(e,_)&&r.unshift(e),r=r.filter(n)},F=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!P(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{S.call(a,_)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(a),u=!P(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},N=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},I=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!N(e)?0:e.tabIndex},R=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},O=function(e){return"INPUT"===e.tagName},j=function(e){return function(e){return O(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||k(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},M=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},L=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=S.call(e,"details>summary:first-of-type")?e.parentElement:e;if(S.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return M(e)}else{if("function"===typeof r){for(var o=e;e;){var a=e.parentElement,s=k(e);if(a&&!a.shadowRoot&&!0===r(a))return M(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,r,i,o=e&&k(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=o=k(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},B=function(e,t){return!(t.disabled||P(t)||function(e){return O(e)&&"hidden"===e.type}(t)||L(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!S.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},U=function(e,t){return!(j(t)||I(t)<0||!B(e,t))},V=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},H=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=I(e);return n<0&&t&&!N(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(R).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},z=function(e,t){var n;return n=(t=t||{}).getShadowRoot?F([e],t.includeContainer,{filter:U.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:V}):D(e,t.includeContainer,U.bind(null,t)),H(n)},W=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==S.call(e,_)&&U(t,e)},q=n(72551),G=n(64861),Y="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function K(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!K(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!K(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Q(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function X(e,t){const n=Q(e);return Math.round(t*n)/n}function Z(e){const t=r.useRef(e);return Y((()=>{t.current=e})),t}const J=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,G.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,G.UE)({element:n,padding:r}).fn(t):{};var i}}),$=(e,t)=>({...(0,G.cY)(e),options:[e,t]}),ee=(e,t)=>({...(0,G.BN)(e),options:[e,t]}),te=(e,t)=>({...(0,G.ER)(e),options:[e,t]}),ne=(e,t)=>({...(0,G.UU)(e),options:[e,t]}),re=(e,t)=>({...(0,G.Ej)(e),options:[e,t]}),ie=(e,t)=>({...(0,G.RK)(e),options:[e,t]}),oe=(e,t)=>({...(0,G.jD)(e),options:[e,t]}),ae=(e,t)=>({...(0,G.mG)(e),options:[e,t]}),se=(e,t)=>({...J(e),options:[e,t]});function le(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ce={...i},ue=ce.useInsertionEffect||(e=>e());function de(e){const t=r.useRef((()=>{0}));return ue((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const pe="ArrowUp",he="ArrowDown",fe="ArrowLeft",me="ArrowRight";function ge(e,t,n){return Math.floor(e/t)!==n}function ve(e,t){return t<0||t>=e.current.length}function ye(e,t){return we(e,{disabledIndices:t})}function be(e,t){return we(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function we(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-o:o}while(s>=0&&s<=a.length-1&&_e(a,s,i));return s}function xe(e,t){let{event:n,orientation:r,loop:i,cols:o,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===pe){if(u&&x(n),-1===c)d=l;else if(d=we(e,{startingIndex:d,amount:o,decrement:!0,disabledIndices:a}),i&&(c-o<s||d<0)){const e=c%o,t=l%o,n=l-(t-e);d=t===e?l:t>e?n:n-o}ve(e,d)&&(d=c)}if(n.key===he&&(u&&x(n),-1===c?d=s:(d=we(e,{startingIndex:c,amount:o,disabledIndices:a}),i&&c+o>l&&(d=we(e,{startingIndex:c%o-o,amount:o,disabledIndices:a}))),ve(e,d)&&(d=c)),"both"===r){const t=(0,A.RI)(c/o);n.key===me&&(u&&x(n),c%o!==o-1?(d=we(e,{startingIndex:c,disabledIndices:a}),i&&ge(d,o,t)&&(d=we(e,{startingIndex:c-c%o-1,disabledIndices:a}))):i&&(d=we(e,{startingIndex:c-c%o-1,disabledIndices:a})),ge(d,o,t)&&(d=c)),n.key===fe&&(u&&x(n),c%o!==0?(d=we(e,{startingIndex:c,decrement:!0,disabledIndices:a}),i&&ge(d,o,t)&&(d=we(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a}))):i&&(d=we(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a})),ge(d,o,t)&&(d=c));const r=(0,A.RI)(l/o)===t;ve(e,d)&&(d=i&&r?n.key===fe?l:we(e,{startingIndex:c-c%o-1,disabledIndices:a}):c)}return d}function Ce(e,t,n){const r=[];let i=0;return e.forEach(((e,o)=>{let{width:a,height:s}=e,l=!1;for(n&&(i=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(i+n+r*t);i%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=o})),l=!0):i++}})),[...r]}function Ae(e,t,n,r,i){if(-1===e)return-1;const o=n.indexOf(e),a=t[e];switch(i){case"tl":return o;case"tr":return a?o+a.width-1:o;case"bl":return a?o+(a.height-1)*r:o;case"br":return n.lastIndexOf(e)}}function Ee(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function _e(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let Te=0;function Se(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Te);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():Te=requestAnimationFrame(o)}var ke="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function Pe(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const De=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Fe(e){const{children:t,elementsRef:n,labelsRef:i}=e,[o,a]=r.useState((()=>new Map)),s=r.useCallback((e=>{a((t=>new Map(t).set(e,null)))}),[]),l=r.useCallback((e=>{a((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return ke((()=>{const e=new Map(o);Array.from(e.keys()).sort(Pe).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(o,e)||a(e)}),[o]),r.createElement(De.Provider,{value:r.useMemo((()=>({register:s,unregister:l,map:o,elementsRef:n,labelsRef:i})),[s,l,o,n,i])},t)}function Ne(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:i,map:o,elementsRef:a,labelsRef:s}=r.useContext(De),[l,c]=r.useState(null),u=r.useRef(null),d=r.useCallback((e=>{if(u.current=e,null!==l&&(a.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,a,s,t]);return ke((()=>{const e=u.current;if(e)return n(e),()=>{i(e)}}),[n,i]),ke((()=>{const e=u.current?o.get(u.current):null;null!=e&&c(e)}),[o]),r.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function Ie(e,t){return"function"===typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const Re=r.createContext({activeIndex:0,onNavigate:()=>{}}),Oe=[fe,me],je=[pe,he],Me=[...Oe,...je],Le=r.forwardRef((function(e,t){const{render:n,orientation:i="both",loop:o=!0,cols:a=1,disabledIndices:s,activeIndex:l,onNavigate:c,itemSizes:u,dense:d=!1,...p}=e,[h,f]=r.useState(0),m=null!=l?l:h,g=de(null!=c?c:f),v=r.useRef([]),y=n&&"function"!==typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=a>1;const x={...p,...y,ref:t,"aria-orientation":"both"===i?void 0:i,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Me.includes(e.key))return;let t=m;const n=ye(v,s),r=be(v,s);if(w){const l=u||Array.from({length:v.current.length},(()=>({width:1,height:1}))),c=Ce(l,a,d),p=c.findIndex((e=>null!=e&&!_e(v.current,e,s))),h=c.reduce(((e,t,n)=>null==t||_e(v.current,t,s)?e:n),-1);t=c[xe({current:c.map((e=>e?v.current[e]:null))},{event:e,orientation:i,loop:o,cols:a,disabledIndices:Ee([...s||v.current.map(((e,t)=>_e(v.current,t)?t:void 0)),void 0],c),minIndex:p,maxIndex:h,prevIndex:Ae(m>r?n:m,l,c,a,e.key===he?"bl":e.key===me?"tr":"tl")})]}const l={horizontal:[me],vertical:[he],both:[me,he]}[i],c={horizontal:[fe],vertical:[pe],both:[fe,pe]}[i],p=w?Me:{horizontal:Oe,vertical:je,both:Me}[i];t===m&&[...l,...c].includes(e.key)&&(t=o&&t===r&&l.includes(e.key)?n:o&&t===n&&c.includes(e.key)?r:we(v,{startingIndex:t,decrement:c.includes(e.key),disabledIndices:s})),t===m||ve(v,t)||(e.stopPropagation(),p.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{Se(v.current[t])})))}(e)}};return r.createElement(Re.Provider,{value:b},r.createElement(Fe,{elementsRef:v},Ie(n,x)))})),Be=r.forwardRef((function(e,t){const{render:n,...i}=e,o=n&&"function"!==typeof n?n.props:{},{activeIndex:a,onNavigate:s}=r.useContext(Re),{ref:l,index:c}=Ne(),u=le([l,t,o.ref]),d=a===c;return Ie(n,{...i,...o,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==i.onFocus||i.onFocus(e),null==o.onFocus||o.onFocus(e),s(c)}})}));function Ue(){return Ue=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},Ue.apply(this,arguments)}let Ve=!1,He=0;const ze=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+He++;const We=ce.useId||function(){const[e,t]=r.useState((()=>Ve?ze():void 0));return ke((()=>{null==e&&t(ze())}),[]),r.useEffect((()=>{Ve=!0}),[]),e};const qe=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:i},middlewareData:{arrow:a}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:h,style:{transform:f,...m}={},...g}=e;const v=We(),[y,b]=r.useState(!1);if(ke((()=>{if(!i)return;"rtl"===(0,o.L9)(i).direction&&b(!0)}),[i]),!i)return null;const w=2*u,x=w/2,C=s/2*(c/-8+1),A=l/2*c/4,[E,_]=n.split("-"),T=!!h,S="top"===E||"bottom"===E,k=d&&"end"===_?"bottom":"top";let P=d&&"end"===_?"right":"left";d&&y&&(P="end"===_?"left":"right");const D=null!=(null==a?void 0:a.x)?d||a.x:"",F=null!=(null==a?void 0:a.y)?d||a.y:"",N=h||"M0,0 H"+s+" L"+(s-C)+","+(l-A)+" Q"+s/2+","+l+" "+C+","+(l-A)+" Z",I={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[E];return r.createElement("svg",Ue({},g,{"aria-hidden":!0,ref:t,width:T?s:s+w,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:D,[k]:F,[E]:S||T?"100%":"calc(100% - "+w/2+"px)",transform:""+I+(null!=f?f:""),...m}}),w>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:w+(h?0:1),d:N}),r.createElement("path",{stroke:w&&!h?g.fill:"none",d:N}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-x,y:x*(T?-1:1),width:s+w,height:s})))}));function Ge(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Ye=r.createContext(null),Ke=r.createContext(null),Qe=()=>{var e;return(null==(e=r.useContext(Ye))?void 0:e.id)||null},Xe=()=>r.useContext(Ke);function Ze(e){const t=We(),n=Xe(),r=Qe(),i=e||r;return ke((()=>{const e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,i]),t}function Je(e){const{children:t,id:n}=e,i=Qe();return r.createElement(Ye.Provider,{value:r.useMemo((()=>({id:n,parentId:i})),[n,i])},t)}function $e(e){const{children:t}=e,n=r.useRef([]),i=r.useCallback((e=>{n.current=[...n.current,e]}),[]),o=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),a=r.useState((()=>Ge()))[0];return r.createElement(Ke.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:i,removeNode:o,events:a})),[i,o,a])},t)}function et(e){return"data-floating-ui-"+e}function tt(e){const t=(0,r.useRef)(e);return ke((()=>{t.current=e})),t}const nt=et("safe-polygon");function rt(e,t,n){return n&&!m(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function it(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:p=null,mouseOnly:h=!1,restMs:f=0,move:v=!0}=t,y=Xe(),b=Qe(),w=tt(p),x=tt(d),C=tt(n),A=r.useRef(),E=r.useRef(-1),_=r.useRef(),T=r.useRef(-1),S=r.useRef(!0),k=r.useRef(!1),P=r.useRef((()=>{})),D=r.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);r.useEffect((()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(E.current),clearTimeout(T.current),S.current=!0)}}),[u,l]),r.useEffect((()=>{if(!u)return;if(!w.current)return;if(!n)return;function e(e){D()&&i(!1,e,"hover")}const t=g(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[c.floating,n,i,u,w,D]);const F=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=rt(x.current,"close",A.current);r&&!_.current?(clearTimeout(E.current),E.current=window.setTimeout((()=>i(!1,e,n)),r)):t&&(clearTimeout(E.current),i(!1,e,n))}),[x,i]),N=de((()=>{P.current(),_.current=void 0})),I=de((()=>{if(k.current){const e=g(c.floating).body;e.style.pointerEvents="",e.removeAttribute(nt),k.current=!1}}));r.useEffect((()=>{if(u&&(0,o.vq)(c.domReference)){var e;const t=c.domReference;return n&&t.addEventListener("mouseleave",d),null==(e=c.floating)||e.addEventListener("mouseleave",d),v&&t.addEventListener("mousemove",r,{once:!0}),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",l),()=>{var e;n&&t.removeEventListener("mouseleave",d),null==(e=c.floating)||e.removeEventListener("mouseleave",d),v&&t.removeEventListener("mousemove",r),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",l)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(E.current),S.current=!1,h&&!m(A.current)||f>0&&!rt(x.current,"open"))return;const t=rt(x.current,"open",A.current);t?E.current=window.setTimeout((()=>{C.current||i(!0,e,"hover")}),t):i(!0,e,"hover")}function l(e){if(t())return;P.current();const r=g(c.floating);if(clearTimeout(T.current),w.current&&a.current.floatingContext){n||clearTimeout(E.current),_.current=w.current({...a.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){I(),N(),F(e,!0,"safe-polygon")}});const t=_.current;return r.addEventListener("mousemove",t),void(P.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==A.current||!s(c.floating,e.relatedTarget))&&F(e)}function d(e){t()||a.current.floatingContext&&(null==w.current||w.current({...a.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){I(),N(),F(e)}})(e))}}),[c,u,e,h,f,v,F,N,I,i,n,C,y,x,w,a]),ke((()=>{var e;if(u&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&D()){const e=g(c.floating).body;e.setAttribute(nt,""),e.style.pointerEvents="none",k.current=!0;const n=c.floating;if((0,o.vq)(c.domReference)&&n){var t;const e=c.domReference,r=null==y||null==(t=y.nodesRef.current.find((e=>e.id===b)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[u,n,b,c,y,w,D]),ke((()=>{n||(A.current=void 0,N(),I())}),[n,N,I]),r.useEffect((()=>()=>{N(),clearTimeout(E.current),clearTimeout(T.current),I()}),[u,c.domReference,N,I]);const R=r.useMemo((()=>{function e(e){A.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){S.current||C.current||i(!0,t,"hover")}h&&!m(A.current)||n||0===f||(clearTimeout(T.current),"touch"===A.current?r():T.current=window.setTimeout(r,f))}}}),[h,i,n,C,f]),O=r.useMemo((()=>({onMouseEnter(){clearTimeout(E.current)},onMouseLeave(e){F(e.nativeEvent,!1)}})),[F]);return r.useMemo((()=>u?{reference:R,floating:O}:{}),[u,R,O])}const ot=()=>{},at=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:ot,setState:ot,isInstantPhase:!1}),st=()=>r.useContext(at);function lt(e){const{children:t,delay:n,timeoutMs:i=0}=e,[o,a]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:i,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),l=r.useCallback((e=>{a({currentId:e})}),[]);return ke((()=>{o.currentId?null===s.current?s.current=o.currentId:o.isInstantPhase||a({isInstantPhase:!0}):(o.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)}),[o.currentId,o.isInstantPhase]),r.createElement(at.Provider,{value:r.useMemo((()=>({...o,setState:a,setCurrentId:l})),[o,l])},t)}function ct(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{id:o}=t,a=null!=o?o:i,s=st(),{currentId:l,setCurrentId:c,initialDelay:u,setState:d,timeoutMs:p}=s;return ke((()=>{l&&(d({delay:{open:1,close:rt(u,"close")}}),l!==a&&r(!1))}),[a,r,d,l,u]),ke((()=>{function e(){r(!1),d({delay:u,currentId:null})}if(l&&!n&&l===a){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}}),[n,d,l,a,r,u,p]),ke((()=>{c!==ot&&n&&c(a)}),[n,c,a]),s}function ut(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let dt=new WeakMap,pt=new WeakSet,ht={},ft=0;const mt=()=>"undefined"!==typeof HTMLElement&&"inert"in HTMLElement.prototype,gt=e=>e&&(e.host||gt(e.parentNode)),vt=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=gt(t);return e.contains(n)?n:null})).filter((e=>null!=e));function yt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=g(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,s=vt(t,e),l=new Set,c=new Set(s),u=[];ht[i]||(ht[i]=new WeakMap);const d=ht[i];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,o.mq)(t))if(l.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(dt.get(t)||0)+1,o=(d.get(t)||0)+1;dt.set(t,r),d.set(t,o),u.push(t),1===r&&n&&pt.add(t),1===o&&t.setAttribute(i,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),l.clear(),ft++,()=>{u.forEach((e=>{const t=(dt.get(e)||0)-1,n=(d.get(e)||0)-1;dt.set(e,t),d.set(e,n),t||(!pt.has(e)&&a&&e.removeAttribute(a),pt.delete(e)),n||e.removeAttribute(i)})),ft--,ft||(dt=new WeakMap,dt=new WeakMap,pt=new WeakSet,ht={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const bt=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wt(e,t){const n=z(e,bt());"prev"===t&&n.reverse();const r=n.indexOf(a(g(e)));return n.slice(r+1)[0]}function xt(){return wt(document.body,"next")}function Ct(){return wt(document.body,"prev")}function At(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!s(n,r)}function Et(e){z(e,bt()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function _t(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Tt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function St(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const kt=r.forwardRef((function(e,t){const[n,i]=r.useState();ke((()=>(p()&&i("button"),document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[et("focus-guard")]:"",style:Tt};return r.createElement("span",Ue({},e,o))})),Pt=r.createContext(null),Dt=et("portal");function Ft(e){void 0===e&&(e={});const{id:t,root:n}=e,i=We(),a=It(),[s,l]=r.useState(null),c=r.useRef(null);return ke((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{c.current=null}))}),[s]),ke((()=>{if(!i)return;if(c.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Dt,""),e.appendChild(n),c.current=n,l(n)}),[t,i]),ke((()=>{if(!i)return;if(c.current)return;let e=n||(null==a?void 0:a.portalNode);e&&!(0,o.vq)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const s=document.createElement("div");s.id=i,s.setAttribute(Dt,""),e=r||e,e.appendChild(s),c.current=s,l(s)}),[t,n,i,a]),s}function Nt(e){const{children:t,id:n,root:i=null,preserveTabOrder:o=!0}=e,a=Ft({id:n,root:i}),[s,l]=r.useState(null),c=r.useRef(null),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=!!s&&!s.modal&&s.open&&o&&!(!i&&!a);return r.useEffect((()=>{if(a&&o&&(null==s||!s.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&At(e)){("focusin"===e.type?_t:Et)(a)}}}),[a,o,null==s?void 0:s.modal]),r.createElement(Pt.Provider,{value:r.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:l})),[o,a])},h&&a&&r.createElement(kt,{"data-type":"outside",ref:c,onFocus:e=>{if(At(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Ct()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),h&&a&&r.createElement("span",{"aria-owns":a.id,style:Tt}),a&&q.createPortal(t,a),h&&a&&r.createElement(kt,{"data-type":"outside",ref:u,onFocus:e=>{if(At(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=xt()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const It=()=>r.useContext(Pt),Rt=20;let Ot=[];function jt(e){Ot=Ot.filter((e=>e.isConnected));let t=e;if(t&&"body"!==(0,o.mq)(t)){if(!W(t,bt())){const e=z(t,bt())[0];e&&(t=e)}Ot.push(t),Ot.length>Rt&&(Ot=Ot.slice(-Rt))}}function Mt(){return Ot.slice().reverse().find((e=>e.isConnected))}const Lt=r.forwardRef((function(e,t){return r.createElement("button",Ue({},e,{type:"button",ref:t,tabIndex:-1,style:Tt}))}));function Bt(e){const{context:t,children:n,disabled:i=!1,order:l=["content"],guards:c=!0,initialFocus:p=0,returnFocus:h=!0,restoreFocus:f=!1,modal:m=!0,visuallyHiddenDismiss:v=!1,closeOnFocusOut:b=!0}=e,{open:w,refs:A,nodeId:E,onOpenChange:_,events:T,dataRef:S,floatingId:k,elements:{domReference:P,floating:D}}=t,F="number"===typeof p&&p<0,N=C(P)&&F,I=!mt()||c,R=tt(l),O=tt(p),j=tt(h),M=Xe(),L=It(),B=r.useRef(null),U=r.useRef(null),V=r.useRef(!1),H=r.useRef(!1),W=r.useRef(-1),q=null!=L,G=null==D?void 0:D.firstElementChild,Y=(null==G?void 0:G.id)===k?G:D,K=de((function(e){return void 0===e&&(e=Y),e?z(e,bt()):[]})),Q=de((e=>{const t=K(e);return R.current.map((e=>P&&"reference"===e?P:Y&&"floating"===e?Y:t)).filter(Boolean).flat()}));function X(e){return!i&&v&&m?r.createElement(Lt,{ref:"start"===e?B:U,onClick:e=>_(!1,e.nativeEvent)},"string"===typeof v?v:"Dismiss"):null}r.useEffect((()=>{if(i)return;if(!m)return;function e(e){if("Tab"===e.key){s(Y,a(g(Y)))&&0===K().length&&!N&&x(e);const t=Q(),n=y(e);"reference"===R.current[0]&&n===P&&(x(e),e.shiftKey?Se(t[t.length-1]):Se(t[1])),"floating"===R.current[1]&&n===Y&&e.shiftKey&&(x(e),Se(t[0]))}}const t=g(Y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,P,Y,m,R,N,K,Q]),r.useEffect((()=>{if(!i&&D)return D.addEventListener("focusin",e),()=>{D.removeEventListener("focusin",e)};function e(e){const t=y(e),n=K().indexOf(t);-1!==n&&(W.current=n)}}),[i,D,K]),r.useEffect((()=>{if(!i&&b)return D&&(0,o.sb)(P)?(P.addEventListener("focusout",t),P.addEventListener("pointerdown",e),D.addEventListener("focusout",t),()=>{P.removeEventListener("focusout",t),P.removeEventListener("pointerdown",e),D.removeEventListener("focusout",t)}):void 0;function e(){H.current=!0,setTimeout((()=>{H.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(s(P,t)||s(D,t)||s(t,D)||s(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(et("focus-guard"))||M&&(ut(M.nodesRef.current,E).find((e=>{var n,r;return s(null==(n=e.context)?void 0:n.elements.floating,t)||s(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(M.nodesRef.current,E).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(f&&n&&a(g(Y))===g(Y).body){(0,o.sb)(Y)&&(null==Y||Y.focus());const e=W.current,t=K(),n=t[e]||t[t.length-1]||Y;(0,o.sb)(n)&&n.focus()}!N&&m||!t||!n||H.current||t===Mt()||(V.current=!0,_(!1,e))}))}}),[i,P,D,Y,m,E,M,L,_,b,f,K,N]),r.useEffect((()=>{var e;if(i)return;const t=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+et("portal")+"]"))||[]);if(D){const e=[D,...t,B.current,U.current,R.current.includes("reference")||N?P:null].filter((e=>null!=e)),n=m||N?yt(e,I,!I):yt(e);return()=>{n()}}}),[i,P,D,m,R,L,N,I]),ke((()=>{if(i||!(0,o.sb)(Y))return;const e=a(g(Y));queueMicrotask((()=>{const t=Q(Y),n=O.current,r=("number"===typeof n?t[n]:n.current)||Y,i=s(Y,e);F||i||!w||Se(r,{preventScroll:r===Y})}))}),[i,w,Y,F,Q,O]),ke((()=>{if(i||!Y)return;let e=!1;const t=g(Y),n=a(t);let r=S.current.openEvent;const l=A.domReference.current;function c(t){let{open:n,reason:i,event:o,nested:a}=t;n&&(r=o),"escape-key"===i&&A.domReference.current&&jt(A.domReference.current),"hover"===i&&"mouseleave"===o.type&&(V.current=!0),"outside-press"===i&&(a?(V.current=!1,e=!0):V.current=!(u(o)||d(o)))}return jt(n),T.on("openchange",c),()=>{T.off("openchange",c);const i=a(t),u=s(D,i)||M&&ut(M.nodesRef.current,E).some((e=>{var t;return s(null==(t=e.context)?void 0:t.elements.floating,i)}));(u||r&&["click","mousedown"].includes(r.type))&&A.domReference.current&&jt(A.domReference.current);const d=l||n,p=z(g(d).body,bt());queueMicrotask((()=>{let n=Mt();!n&&(0,o.sb)(d)&&D&&(n=function(e,t,n){const r=e.indexOf(t);function i(t){const i=et("focus-guard");let o=r+(t?1:0),a=e[o];for(;a&&(!a.isConnected||a.hasAttribute(i)||s(n,a));)t?o++:o--,a=e[o];return a}return i(!0)||i(!1)}(p,d,D)),j.current&&!V.current&&(0,o.sb)(n)&&(n===i||i===t.body||u)&&n.focus({preventScroll:e})}))}}),[i,D,Y,j,S,A,T,M,E]),ke((()=>{if(!i&&L)return L.setFocusManagerState({modal:m,closeOnFocusOut:b,open:w,onOpenChange:_,refs:A}),()=>{L.setFocusManagerState(null)}}),[i,L,m,w,_,A,b]),ke((()=>{if(i)return;if(!Y)return;if("function"!==typeof MutationObserver)return;if(F)return;const e=()=>{const e=Y.getAttribute("tabindex"),t=K(),n=a(g(D)),r=t.indexOf(n);-1!==r&&(W.current=r),R.current.includes("floating")||n!==A.domReference.current&&0===t.length?"0"!==e&&Y.setAttribute("tabindex","0"):"-1"!==e&&Y.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(Y,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[i,D,Y,A,R,K,F]);const Z=!i&&I&&(!m||!N)&&(q||m);return r.createElement(r.Fragment,null,Z&&r.createElement(kt,{"data-type":"inside",ref:null==L?void 0:L.beforeInsideRef,onFocus:e=>{if(m){const e=Q();Se("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(V.current=!1,At(e,L.portalNode)){const e=xt()||P;null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!N&&X("start"),n,X("end"),Z&&r.createElement(kt,{"data-type":"inside",ref:null==L?void 0:L.afterInsideRef,onFocus:e=>{if(m)Se(Q()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(b&&(V.current=!0),At(e,L.portalNode)){const e=Ct()||P;null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}}))}const Ut=new Set,Vt=r.forwardRef((function(e,t){const{lockScroll:n=!1,...i}=e,o=We();return ke((()=>{if(!n)return;Ut.add(o);const e=/iP(hone|ad|od)|iOS/.test(l()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",i=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",i&&(t[r]=i+"px"),e){var c,u;const e=(null==(c=window.visualViewport)?void 0:c.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Ut.delete(o),0===Ut.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,s)))}}),[o,n]),r.createElement("div",Ue({ref:t},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}));function Ht(e){return(0,o.sb)(e.target)&&"BUTTON"===e.target.tagName}function zt(e){return w(e)}function Wt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:o,elements:{domReference:a}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,p=r.useRef(),h=r.useRef(!1),f=r.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(m(t,!0)&&u||(!n||!c||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:m(t,!0)&&u||(!n||!c||o.current.openEvent&&"click"!==o.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Ht(e)||(" "!==e.key||zt(a)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&i(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Ht(e)||zt(a)||" "===e.key&&h.current&&(h.current=!1,i(!n||!c,e.nativeEvent,"click"))}})),[o,a,l,u,d,i,n,c]);return r.useMemo((()=>s?{reference:f}:{}),[s,f])}function qt(e){return null!=e&&null!=e.clientX}function Gt(e,t){void 0===t&&(t={});const{open:n,dataRef:i,elements:{floating:a,domReference:l},refs:c}=e,{enabled:u=!0,axis:d="both",x:p=null,y:h=null}=t,f=r.useRef(!1),g=r.useRef(null),[v,b]=r.useState(),[w,x]=r.useState([]),C=de(((e,t)=>{f.current||i.current.openEvent&&!qt(i.current.openEvent)||c.setPositionReference(function(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var o;const a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(o=t.dataRef.current.openEvent)?void 0:o.type)||"")&&"touch"!==t.pointerType;let u=a.width,d=a.height,p=a.x,h=a.y;return null==n&&t.x&&s&&(n=a.x-t.x),null==r&&t.y&&l&&(r=a.y-t.y),p-=n||0,h-=r||0,u=0,d=0,!i||c?(u="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,p=s&&null!=t.x?t.x:p,h=l&&null!=t.y?t.y:h):i&&!c&&(d="x"===t.axis?a.height:d,u="y"===t.axis?a.width:u),i=!0,{width:u,height:d,x:p,y:h,top:h,right:p+u,bottom:h+d,left:p}}}}(l,{x:e,y:t,axis:d,dataRef:i,pointerType:v}))})),A=de((e=>{null==p&&null==h&&(n?g.current||x([]):C(e.clientX,e.clientY))})),E=m(v)?a:n,_=r.useCallback((()=>{if(!E||!u||null!=p||null!=h)return;const e=(0,o.zk)(a);function t(n){const r=y(n);s(a,r)?(e.removeEventListener("mousemove",t),g.current=null):C(n.clientX,n.clientY)}if(!i.current.openEvent||qt(i.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),g.current=null};return g.current=n,n}c.setPositionReference(l)}),[E,u,p,h,a,i,c,l,C]);r.useEffect((()=>_()),[_,w]),r.useEffect((()=>{u&&!a&&(f.current=!1)}),[u,a]),r.useEffect((()=>{!u&&n&&(f.current=!0)}),[u,n]),ke((()=>{!u||null==p&&null==h||(f.current=!1,C(p,h))}),[u,p,h,C]);const T=r.useMemo((()=>{function e(e){let{pointerType:t}=e;b(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:A,onMouseEnter:A}}),[A]);return r.useMemo((()=>u?{reference:T}:{}),[u,T])}const Yt={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Kt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qt=e=>{var t,n;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Xt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:a,dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:w}=t,x=Xe(),C=de("function"===typeof d?d:()=>!1),A="function"===typeof d?C:d,E=r.useRef(!1),_=r.useRef(!1),{escapeKey:T,outsidePress:S}=Qt(b),{escapeKey:k,outsidePress:P}=Qt(w),D=de((e=>{var t;if(!n||!c||!u||"Escape"!==e.key)return;const r=null==(t=l.current.floatingContext)?void 0:t.nodeId,o=x?ut(x.nodesRef.current,r):[];if(!T&&(e.stopPropagation(),o.length>0)){let e=!0;if(o.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),F=de((e=>{var t;const n=()=>{var t;D(e),null==(t=y(e))||t.removeEventListener("keydown",n)};null==(t=y(e))||t.addEventListener("keydown",n)})),N=de((e=>{var t;const n=E.current;E.current=!1;const r=_.current;if(_.current=!1,"click"===p&&r)return;if(n)return;if("function"===typeof A&&!A(e))return;const c=y(e),u="["+et("inert")+"]",d=g(a.floating).querySelectorAll(u);let h=(0,o.vq)(c)?c:null;for(;h&&!(0,o.eu)(h);){const e=(0,o.$4)(h);if((0,o.eu)(e)||!(0,o.vq)(e))break;h=e}if(d.length&&(0,o.vq)(c)&&!c.matches("html,body")&&!s(c,a.floating)&&Array.from(d).every((e=>!s(h,e))))return;if((0,o.sb)(c)&&O){const t=c.clientWidth>0&&c.scrollWidth>c.clientWidth,n=c.clientHeight>0&&c.scrollHeight>c.clientHeight;let r=n&&e.offsetX>c.clientWidth;if(n){"rtl"===(0,o.L9)(c).direction&&(r=e.offsetX<=c.offsetWidth-c.clientWidth)}if(r||t&&e.offsetY>c.clientHeight)return}const f=null==(t=l.current.floatingContext)?void 0:t.nodeId,m=x&&ut(x.nodesRef.current,f).some((t=>{var n;return v(e,null==(n=t.context)?void 0:n.elements.floating)}));if(v(e,a.floating)||v(e,a.domReference)||m)return;const b=x?ut(x.nodesRef.current,f):[];if(b.length>0){let e=!0;if(b.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}i(!1,e,"outside-press")})),I=de((e=>{var t;const n=()=>{var t;N(e),null==(t=y(e))||t.removeEventListener(p,n)};null==(t=y(e))||t.addEventListener(p,n)}));r.useEffect((()=>{if(!n||!c)return;function e(e){i(!1,e,"ancestor-scroll")}l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=S;const t=g(a.floating);u&&t.addEventListener("keydown",k?F:D,k),A&&t.addEventListener(p,P?I:N,P);let r=[];return m&&((0,o.vq)(a.domReference)&&(r=(0,o.v9)(a.domReference)),(0,o.vq)(a.floating)&&(r=r.concat((0,o.v9)(a.floating))),!(0,o.vq)(a.reference)&&a.reference&&a.reference.contextElement&&(r=r.concat((0,o.v9)(a.reference.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{u&&t.removeEventListener("keydown",k?F:D,k),A&&t.removeEventListener(p,P?I:N,P),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[l,a,u,A,p,n,i,m,c,T,S,D,k,F,N,P,I]),r.useEffect((()=>{E.current=!1}),[A,p]);const R=r.useMemo((()=>({onKeyDown:D,[Yt[f]]:e=>{h&&i(!1,e.nativeEvent,"reference-press")}})),[D,i,h,f]),O=r.useMemo((()=>({onKeyDown:D,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[Kt[p]]:()=>{E.current=!0}})),[D,p]);return r.useMemo((()=>c?{reference:R,floating:O}:{}),[c,R,O])}function Zt(e){const{open:t=!1,onOpenChange:n,elements:i}=e,o=We(),a=r.useRef({}),[s]=r.useState((()=>Ge())),l=null!=Qe();const[c,u]=r.useState(i.reference),d=de(((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),p=r.useMemo((()=>({setPositionReference:u})),[]),h=r.useMemo((()=>({reference:c||i.reference||null,floating:i.floating||null,domReference:i.reference})),[c,i.reference,i.floating]);return r.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:p})),[t,d,h,s,o,p])}function Jt(e){void 0===e&&(e={});const{nodeId:t}=e,n=Zt({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,a=i.elements,[s,l]=r.useState(null),[c,u]=r.useState(null),d=(null==a?void 0:a.reference)||s,p=r.useRef(null),h=Xe();ke((()=>{d&&(p.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=r.useState(i);K(h,i)||f(i);const[m,g]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback((e=>{e!==A.current&&(A.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),x=a||m,C=s||v,A=r.useRef(null),E=r.useRef(null),_=r.useRef(d),T=null!=c,S=Z(c),k=Z(o),P=r.useCallback((()=>{if(!A.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};k.current&&(e.platform=k.current),(0,G.rD)(A.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};D.current&&!K(_.current,t)&&(_.current=t,q.flushSync((()=>{p(t)})))}))}),[h,t,n,k]);Y((()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const D=r.useRef(!1);Y((()=>(D.current=!0,()=>{D.current=!1})),[]),Y((()=>{if(x&&(A.current=x),C&&(E.current=C),x&&C){if(S.current)return S.current(x,C,P);P()}}),[x,C,P,S,T]);const F=r.useMemo((()=>({reference:A,floating:E,setReference:b,setFloating:w})),[b,w]),N=r.useMemo((()=>({reference:x,floating:C})),[x,C]),I=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=X(N.floating,d.x),r=X(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Q(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:P,refs:F,elements:N,floatingStyles:I})),[d,P,F,N,I])}({...e,elements:{...a,...c&&{reference:c}}}),m=r.useCallback((e=>{const t=(0,o.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=r.useCallback((e=>{((0,o.vq)(e)||null===e)&&(p.current=e,l(e)),((0,o.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,o.vq)(e))&&f.refs.setReference(e)}),[f.refs]),v=r.useMemo((()=>({...f.refs,setReference:g,setPositionReference:m,domReference:p})),[f.refs,g,m]),y=r.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),b=r.useMemo((()=>({...f,...i,refs:v,elements:y,nodeId:t})),[f,v,y,t,i]);return ke((()=>{i.dataRef.current.floatingContext=b;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...f,context:b,refs:v,elements:y})),[f,v,y,b])}function $t(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,events:l,dataRef:c,elements:u}=e,{enabled:h=!0,visibleOnly:m=!0}=t,v=r.useRef(!1),b=r.useRef(),x=r.useRef(!0);r.useEffect((()=>{if(!h)return;const e=(0,o.zk)(u.domReference);function t(){!n&&(0,o.sb)(u.domReference)&&u.domReference===a(g(u.domReference))&&(v.current=!0)}function r(){x.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[u.domReference,n,h]),r.useEffect((()=>{if(h)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(v.current=!0)}}),[l,h]),r.useEffect((()=>()=>{clearTimeout(b.current)}),[]);const C=r.useMemo((()=>({onPointerDown(e){d(e.nativeEvent)||(x.current=!1)},onMouseLeave(){v.current=!1},onFocus(e){if(v.current)return;const t=y(e.nativeEvent);if(m&&(0,o.vq)(t))try{if(p()&&f())throw Error();if(!t.matches(":focus-visible"))return}catch(n){if(!x.current&&!w(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){v.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,o.vq)(t)&&t.hasAttribute(et("focus-guard"))&&"outside"===t.getAttribute("data-type");b.current=window.setTimeout((()=>{var e;const o=a(u.domReference?u.domReference.ownerDocument:document);(t||o!==u.domReference)&&(s(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,o)||s(u.domReference,o)||r||i(!1,n,"focus"))}))}})),[c,u.domReference,i,m]);return r.useMemo((()=>h?{reference:C}:{}),[h,C])}const en="active",tn="selected";function nn(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[en]:t,[tn]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1},...o,...t.map((t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[en,tn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function rn(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),i=e.map((e=>null==e?void 0:e.item)),o=r.useCallback((t=>nn(t,e,"reference")),t),a=r.useCallback((t=>nn(t,e,"floating")),n),s=r.useCallback((t=>nn(t,e,"item")),i);return r.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:s})),[o,a,s])}let on=!1;function an(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function sn(e,t){return an(t,e===pe||e===he,e===fe||e===me)}function ln(e,t,n){return an(t,e===he,n?e===fe:e===me)||"Enter"===e||" "===e||""===e}function cn(e,t,n){return an(t,n?e===me:e===fe,e===pe)}function un(e,t){const{open:n,onOpenChange:i,elements:l}=e,{listRef:c,activeIndex:h,onNavigate:m=()=>{},enabled:v=!0,selectedIndex:y=null,allowEscape:b=!1,loop:w=!1,nested:A=!1,rtl:E=!1,virtual:_=!1,focusItemOnOpen:T="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:k=!0,disabledIndices:P,orientation:D="vertical",cols:F=1,scrollItemIntoView:N=!0,virtualItemRef:I,itemSizes:R,dense:O=!1}=t;const j=Qe(),M=Xe(),L=de(m),B=r.useRef(T),U=r.useRef(null!=y?y:-1),V=r.useRef(null),H=r.useRef(!0),z=r.useRef(L),W=r.useRef(!!l.floating),q=r.useRef(n),G=r.useRef(!1),Y=r.useRef(!1),K=tt(P),Q=tt(n),X=tt(N),Z=tt(l.floating),J=tt(y),[$,ee]=r.useState(),[te,ne]=r.useState(),re=de((function(e,t,n){function r(e){_?(ee(e.id),null==M||M.events.emit("virtualfocus",e),I&&(I.current=e)):Se(e,{preventScroll:!0,sync:!(!f()||!p())&&(on||G.current)})}void 0===n&&(n=!1);const i=e.current[t.current];i&&r(i),requestAnimationFrame((()=>{const o=e.current[t.current]||i;if(!o)return;i||r(o);const a=X.current;a&&oe&&(n||!H.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"===typeof a?{block:"nearest",inline:"nearest"}:a))}))}));ke((()=>{document.createElement("div").focus({get preventScroll(){return on=!0,!1}})}),[]),ke((()=>{v&&(n&&l.floating?B.current&&null!=y&&(Y.current=!0,U.current=y,L(y)):W.current&&(U.current=-1,z.current(null)))}),[v,n,l.floating,y,L]),ke((()=>{if(v&&n&&l.floating)if(null==h){if(G.current=!1,null!=J.current)return;if(W.current&&(U.current=-1,re(c,U)),(!q.current||!W.current)&&B.current&&(null!=V.current||!0===B.current&&null==V.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else U.current=null==V.current||ln(V.current,D,E)||A?ye(c,K.current):be(c,K.current),V.current=null,L(U.current)};t()}}else ve(c,h)||(U.current=h,re(c,U,Y.current),Y.current=!1)}),[v,n,l.floating,h,J,A,c,D,E,L,re,K]),ke((()=>{var e;if(!v||l.floating||!M||_||!W.current)return;const t=M.nodesRef.current,n=null==(e=t.find((e=>e.id===j)))||null==(e=e.context)?void 0:e.elements.floating,r=a(g(l.floating)),i=t.some((e=>e.context&&s(e.context.elements.floating,r)));n&&!i&&H.current&&n.focus({preventScroll:!0})}),[v,l.floating,M,j,_]),ke((()=>{if(v&&M&&_&&!j)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){ne(e.id),I&&(I.current=e)}}),[v,M,_,j,I]),ke((()=>{z.current=L,W.current=!!l.floating})),ke((()=>{n||(V.current=null)}),[n]),ke((()=>{q.current=n}),[n]);const ie=null!=h,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&L(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...S&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;H.current&&"touch"!==t&&(U.current=-1,re(c,U),L(null),_||Se(Z.current,{preventScroll:!0}))}}}}),[n,Z,re,S,c,L,_]),ae=de((e=>{if(H.current=!1,G.current=!0,!Q.current&&e.currentTarget===Z.current)return;if(A&&cn(e.key,D,E))return x(e),i(!1,e.nativeEvent,"list-navigation"),void((0,o.sb)(l.domReference)&&!_&&l.domReference.focus());const t=U.current,r=ye(c,P),s=be(c,P);if("Home"===e.key&&(x(e),U.current=r,L(U.current)),"End"===e.key&&(x(e),U.current=s,L(U.current)),F>1){const t=R||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=Ce(t,F,O),i=n.findIndex((e=>null!=e&&!_e(c.current,e,P))),o=n.reduce(((e,t,n)=>null==t||_e(c.current,t,P)?e:n),-1);if(U.current=n[xe({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:D,loop:w,cols:F,disabledIndices:Ee([...P||c.current.map(((e,t)=>_e(c.current,t)?t:void 0)),void 0],n),minIndex:i,maxIndex:o,prevIndex:Ae(U.current>s?r:U.current,t,n,F,e.key===he?"bl":e.key===me?"tr":"tl"),stopEvent:!0})],L(U.current),"both"===D)return}if(sn(e.key,D)){if(x(e),n&&!_&&a(e.currentTarget.ownerDocument)===e.currentTarget)return U.current=ln(e.key,D,E)?r:s,void L(U.current);ln(e.key,D,E)?U.current=w?t>=s?b&&t!==c.current.length?-1:r:we(c,{startingIndex:t,disabledIndices:P}):Math.min(s,we(c,{startingIndex:t,disabledIndices:P})):U.current=w?t<=r?b&&-1!==t?c.current.length:s:we(c,{startingIndex:t,decrement:!0,disabledIndices:P}):Math.max(r,we(c,{startingIndex:t,decrement:!0,disabledIndices:P})),ve(c,U.current)?L(null):L(U.current)}})),se=r.useMemo((()=>_&&n&&ie&&{"aria-activedescendant":te||$}),[_,n,ie,te,$]),le=r.useMemo((()=>({"aria-orientation":"both"===D?void 0:D,...!C(l.domReference)&&se,onKeyDown:ae,onPointerMove(){H.current=!0}})),[se,ae,l.domReference,D]),ce=r.useMemo((()=>{function e(e){"auto"===T&&u(e.nativeEvent)&&(B.current=!0)}return{...se,onKeyDown(e){H.current=!1;const t=0===e.key.indexOf("Arrow"),r=function(e,t,n){return an(t,n?e===fe:e===me,e===he)}(e.key,D,E),o=cn(e.key,D,E),a=sn(e.key,D),s=(A?r:a)||"Enter"===e.key||""===e.key.trim();if(_&&n){const n=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),i=M&&n?function(e,t){let n,r=-1;return function t(i,o){o>r&&(n=i,r=o),ut(e,i).forEach((e=>{t(e.id,o+1)}))}(t,0),e.find((e=>e.id===n))}(M.nodesRef.current,n.id):null;if(t&&i&&I){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(r||o){var l,u;const n=(null==(l=i.context)?void 0:l.elements.domReference)===e.currentTarget,a=o&&!n?null==(u=i.context)?void 0:u.elements.domReference:r?c.current.find((e=>(null==e?void 0:e.id)===$)):null;a&&(x(e),a.dispatchEvent(t),ne(void 0))}var d;if(a&&i.context)if(i.context.open&&i.parentId&&e.currentTarget!==i.context.elements.domReference)return x(e),void(null==(d=i.context.elements.domReference)||d.dispatchEvent(t))}return ae(e)}(n||k||!t)&&(s&&(V.current=A&&a?null:e.key),A?r&&(x(e),n?(U.current=ye(c,K.current),L(U.current)):i(!0,e.nativeEvent,"list-navigation")):a&&(null!=y&&(U.current=y),x(e),!n&&k?i(!0,e.nativeEvent,"list-navigation"):ae(e),n&&L(U.current)))},onFocus(){n&&!_&&L(null)},onPointerDown:function(e){B.current=T,"auto"===T&&d(e.nativeEvent)&&(B.current=!0)},onMouseDown:e,onClick:e}}),[$,se,ae,K,T,c,A,L,i,n,k,D,E,y,M,_,I]);return r.useMemo((()=>v?{reference:ce,floating:le,item:oe}:{}),[v,ce,le,oe])}const dn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pn(e,t){var n;void 0===t&&(t={});const{open:i,floatingId:o}=e,{enabled:a=!0,role:s="dialog"}=t,l=null!=(n=dn.get(s))?n:s,c=We(),u=null!=Qe(),d=r.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?o:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":i?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,o,u,i,c,s]),p=r.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,s]),h=r.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return r.useMemo((()=>a?{reference:d,floating:p,item:h}:{}),[a,d,p,h])}const hn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function fn(e,t){return"function"===typeof e?e(t):e}function mn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:i}}=e,{duration:o=250}=t,a=("number"===typeof o?o:o.close)||0,[s,l]=r.useState("unmounted"),c=function(e,t){const[n,i]=r.useState(e);return e&&!n&&i(!0),r.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>i(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,a);return c||"close"!==s||l("unmounted"),ke((()=>{if(i){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,i]),{isMounted:c,status:s}}function gn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:i,close:o,common:a,duration:s=250}=t,l=e.placement,c=l.split("-")[0],u=r.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"===typeof s,p=(d?s:s.open)||0,h=(d?s:s.close)||0,[f,m]=r.useState((()=>({...fn(a,u),...fn(n,u)}))),{isMounted:g,status:v}=mn(e,{duration:s}),y=tt(n),b=tt(i),w=tt(o),x=tt(a);return ke((()=>{const e=fn(y.current,u),t=fn(w.current,u),n=fn(x.current,u),r=fn(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(hn).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(hn).join(","),transitionDuration:h+"ms",...n,...r})}}),[h,w,y,b,x,p,v,u]),{isMounted:g,styles:f}}function vn(e,t){var n;const{open:i,dataRef:o}=e,{listRef:a,activeIndex:s,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:h=[],selectedIndex:f=null}=t,m=r.useRef(),g=r.useRef(""),v=r.useRef(null!=(n=null!=f?f:s)?n:-1),y=r.useRef(null),b=de(l),w=de(c),C=tt(d),A=tt(h);ke((()=>{i&&(clearTimeout(m.current),y.current=null,g.current="")}),[i]),ke((()=>{var e;i&&""===g.current&&(v.current=null!=(e=null!=f?f:s)?e:-1)}),[i,f,s]);const E=de((e=>{e?o.current.typing||(o.current.typing=e,w(e)):o.current.typing&&(o.current.typing=e,w(e))})),_=de((e=>{function t(e,t,n){const r=C.current?C.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=a.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?E(!1):" "===e.key&&x(e)),null==n||A.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;i&&" "!==e.key&&(x(e),E(!0));n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===e.key&&(g.current="",v.current=y.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,E(!1)}),p);const r=v.current,o=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],g.current);-1!==o?(b(o),y.current=o):" "!==e.key&&(g.current="",E(!1))})),T=r.useMemo((()=>({onKeyDown:_})),[_]),S=r.useMemo((()=>({onKeyDown:_,onKeyUp(e){" "===e.key&&E(!1)}})),[_,E]);return r.useMemo((()=>u?{reference:T,floating:S}:{}),[u,T,S])}function yn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const bn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=(0,A._3)(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[a];if(!h)return{};const f={...t,...await $(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},m=(null==c?void 0:c.current)||p,g=await(0,G.__)(yn(f,m.scrollHeight),u),v=await(0,G.__)(f,{...u,elementContext:"reference"}),y=Math.max(0,g.top),b=f.y+y,w=Math.max(0,m.scrollHeight-y-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=y,i&&(m.offsetHeight<h.offsetHeight*Math.min(s,n.current.length-1)-1||v.top>=-l||v.bottom>=-l?q.flushSync((()=>i(!0))):q.flushSync((()=>i(!1)))),r&&(r.current=await(0,G.__)(yn({...f,y:b},m.offsetHeight),u)),{y:b}}});function wn(e,t){const{open:n,elements:i}=e,{enabled:o=!0,overflowRef:a,scrollRef:s,onChange:l}=t,u=de(l),d=r.useRef(!1),p=r.useRef(null),h=r.useRef(null);r.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,i=a.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),q.flushSync((()=>{u((e=>e+Math[l](n,o*s)))}))):/firefox/i.test(c())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||i.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{p.current=t.scrollTop,null!=a.current&&(h.current={...a.current})})),()=>{p.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,i.floating,a,s,u]);const f=r.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==s?void 0:s.current)||i.floating;if(a.current&&e&&d.current){if(null!==p.current){const t=e.scrollTop-p.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&q.flushSync((()=>u((e=>e+t))))}requestAnimationFrame((()=>{p.current=e.scrollTop}))}}})),[i.floating,u,a,s]);return r.useMemo((()=>o?{floating:f}:{}),[o,f])}function xn(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let a=0,s=o-1;a<o;s=a++){const[e,o]=t[a]||[0,0],[l,c]=t[s]||[0,0];o>=r!==c>=r&&n<=(l-e)*(r-o)/(c-o)+e&&(i=!i)}return i}function Cn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,a=!1,l=null,c=null,u=performance.now();const d=e=>{let{x:n,y:d,placement:p,elements:h,onClose:f,nodeId:m,tree:g}=e;return function(e){function v(){clearTimeout(i),f()}if(clearTimeout(i),!h.domReference||!h.floating||null==p||null==n||null==d)return;const{clientX:b,clientY:w}=e,x=[b,w],C=y(e),A="mouseleave"===e.type,E=s(h.floating,C),_=s(h.domReference,C),T=h.domReference.getBoundingClientRect(),S=h.floating.getBoundingClientRect(),k=p.split("-")[0],P=n>S.right-S.width/2,D=d>S.bottom-S.height/2,F=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(x,T),N=S.width>T.width,I=S.height>T.height,R=(N?T:S).left,O=(N?T:S).right,j=(I?T:S).top,M=(I?T:S).bottom;if(E&&(a=!0,!A))return;if(_&&(a=!1),_&&!A)return void(a=!0);if(A&&(0,o.vq)(e.relatedTarget)&&s(h.floating,e.relatedTarget))return;if(g&&ut(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&d>=T.bottom-1||"bottom"===k&&d<=T.top+1||"left"===k&&n>=T.right-1||"right"===k&&n<=T.left+1)return v();let L=[];switch(k){case"top":L=[[R,T.top+1],[R,S.bottom-1],[O,S.bottom-1],[O,T.top+1]];break;case"bottom":L=[[R,S.top+1],[R,T.bottom-1],[O,T.bottom-1],[O,S.top+1]];break;case"left":L=[[S.right-1,M],[S.right-1,j],[T.left+1,j],[T.left+1,M]];break;case"right":L=[[T.right-1,M],[T.right-1,j],[S.left+1,j],[S.left+1,M]]}if(!xn([b,w],L)){if(a&&!F)return v();if(!A&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===l||null===c||0===r)return l=e,c=t,u=n,null;const i=e-l,o=t-c,a=Math.sqrt(i*i+o*o);return l=e,c=t,u=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}xn([b,w],function(e){let[n,r]=e;switch(k){case"top":return[[N?n+t/2:P?n+4*t:n-4*t,r+t+1],[N?n-t/2:P?n+4*t:n-4*t,r+t+1],...[[S.left,P||N?S.bottom-t:S.top],[S.right,P?N?S.bottom-t:S.top:S.bottom-t]]];case"bottom":return[[N?n+t/2:P?n+4*t:n-4*t,r-t],[N?n-t/2:P?n+4*t:n-4*t,r-t],...[[S.left,P||N?S.top+t:S.bottom],[S.right,P?N?S.top+t:S.bottom:S.top+t]]];case"left":{const e=[n+t+1,I?r+t/2:D?r+4*t:r-4*t],i=[n+t+1,I?r-t/2:D?r+4*t:r-4*t];return[...[[D||I?S.right-t:S.left,S.top],[D?I?S.right-t:S.left:S.right-t,S.bottom]],e,i]}case"right":return[[n-t,I?r+t/2:D?r+4*t:r-4*t],[n-t,I?r-t/2:D?r+4*t:r-4*t],...[[D||I?S.left+t:S.right,S.top],[D?I?S.left+t:S.right:S.left+t,S.bottom]]]}}([n,d]))?!a&&r&&(i=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:n},d}},92367:function(e){e.exports=function(){return e={418:function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var n,i=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(n){r.getHeaderValues(e,n).forEach((function(e){t.splitValues?i.append(n,r.splitHeaderValue(e)):i.append(n,e)}))})):"object"==typeof(n=e)&&"object"==typeof n.headersMap&&"function"==typeof n.forEach?e.forEach((function(e,t){i.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){i.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){i.append(t,e)})):i.append(t,n)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),n=0;n<t.length;n++){var r=t[n],i=r.indexOf(":");if(i>0){var o=r.substring(0,i).trim(),a=r.substring(i+1).trim();this.append(o,a)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var i=this.headersMap[n];if(i){var o=i.indexOf(t);o>=0&&i.splice(o,1),0===i.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,i=r.normalizeName(e);Array.isArray(this.headersMap[i])||(this.headersMap[i]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[i].push(r.normalizeValue(e))})):this.headersMap[i].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var i=[];t.forEach((function(e){i.push(r.normalizeValue(e))})),this.headersMap[n]=i}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var i=r.normalizeValue(t);return n.indexOf(i)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},i=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,i.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,i.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,i.push(t))})),i},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,i=n(65);function o(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function a(e){for(var t=0;t!==e.length;++t)if(!o(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function l(e){return e.getUint32(1,!1)}function c(e,t,n){return e.byteLength-t>=n}function u(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var i=new Uint8Array(r-t),o=0,a=t;a<r;a++)i[o++]=e[a];return i}t.decodeASCII=a,t.encodeASCII=function(e){for(var t=new Uint8Array(e.length),n=0;n!==e.length;++n){var r=e.charCodeAt(n);if(!o(r))throw new Error("Metadata contains invalid ASCII");t[n]=r}return t},function(e){e[e.MESSAGE=1]="MESSAGE",e[e.TRAILERS=2]="TRAILERS"}(r=t.ChunkType||(t.ChunkType={}));var d=function(){function e(){this.buffer=null,this.position=0}return e.prototype.parse=function(e,t){if(0===e.length&&t)return[];var n,o=[];if(null==this.buffer)this.buffer=e,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=e,this.position=0;else{var d=this.buffer.byteLength-this.position,p=new Uint8Array(d+e.byteLength),h=u(this.buffer,this.position);p.set(h,0);var f=new Uint8Array(e);p.set(f,d),this.buffer=p,this.position=0}for(;;){if(!c(this.buffer,this.position,5))return o;var m=u(this.buffer,this.position,this.position+5),g=new DataView(m.buffer,m.byteOffset,m.byteLength),v=l(g);if(!c(this.buffer,this.position,5+v))return o;var y=u(this.buffer,this.position+5,this.position+5+v);if(this.position+=5+v,s(g))return o.push({chunkType:r.TRAILERS,trailers:(n=y,new i.Metadata(a(n)))}),o;o.push({chunkType:r.MESSAGE,data:y})}},e}();t.ChunkParser=d},8:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.httpStatusToCode=t.Code=void 0,function(e){e[e.OK=0]="OK",e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"}(n=t.Code||(t.Code={})),t.httpStatusToCode=function(e){switch(e){case 0:return n.Internal;case 200:return n.OK;case 400:return n.InvalidArgument;case 401:return n.Unauthenticated;case 403:return n.PermissionDenied;case 404:return n.NotFound;case 409:return n.Aborted;case 412:return n.FailedPrecondition;case 429:return n.ResourceExhausted;case 499:return n.Canceled;case 500:default:return n.Unknown;case 501:return n.Unimplemented;case 503:return n.Unavailable;case 504:return n.DeadlineExceeded}}},934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var r=n(65),i=n(617),o=n(8),a=n(346),s=n(57),l=n(882);t.client=function(e,t){return new c(e,t)};var c=function(){function e(e,t){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new i.ChunkParser,this.methodDefinition=e,this.props=t,this.createTransport()}return e.prototype.createTransport=function(){var e=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,t={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:e,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(t):this.transport=s.makeDefaultTransport(t)},e.prototype.onTransportHeaders=function(e,t){if(this.props.debug&&a.debug("onHeaders",e,t),this.closed)this.props.debug&&a.debug("grpc.onHeaders received after request was closed - ignoring");else if(0===t);else{this.responseHeaders=e,this.props.debug&&a.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var n=u(e);this.props.debug&&a.debug("onHeaders.gRPCStatus",n);var r=n&&n>=0?n:o.httpStatusToCode(t);this.props.debug&&a.debug("onHeaders.code",r);var i=e.get("grpc-message")||[];if(this.props.debug&&a.debug("onHeaders.gRPCMessage",i),this.rawOnHeaders(e),r!==o.Code.OK){var s=this.decodeGRPCStatus(i[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&a.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&a.debug("onChunk.parsing error",e,e.message),void this.rawOnError(o.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===i.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===i.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&a.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&a.debug("grpc.onEnd"),this.closed)this.props.debug&&a.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=u(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(o.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(o.Code.Unknown,"Response closed without headers");var r=u(this.responseHeaders),i=this.responseHeaders.get("grpc-message");if(this.props.debug&&a.debug("grpc.headers only response ",r,i),null===r)return void this.rawOnEnd(o.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(i[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&a.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(i){if(!r.closed)try{i(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&a.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var i=this;void 0===n&&(n=new r.Metadata),this.props.debug&&a.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!i.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&a.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=l.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&a.debug("request.abort aborting request"),this.transport.cancel()},e}();function u(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.debug?console.debug.apply(null,e):console.log.apply(null,e)}},607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.grpc=void 0;var r,i=n(418),o=n(57),a=n(229),s=n(540),l=n(210),c=n(859),u=n(8),d=n(938),p=n(35),h=n(934);(r=t.grpc||(t.grpc={})).setDefaultTransport=o.setDefaultTransportFactory,r.CrossBrowserHttpTransport=c.CrossBrowserHttpTransport,r.FetchReadableStreamTransport=a.FetchReadableStreamTransport,r.XhrTransport=l.XhrTransport,r.WebsocketTransport=s.WebsocketTransport,r.Code=u.Code,r.Metadata=i.BrowserHeaders,r.client=function(e,t){return h.client(e,t)},r.invoke=d.invoke,r.unary=p.unary},938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var r=n(934);t.invoke=function(e,t){if(e.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var n=r.client(e,{host:t.host,transport:t.transport,debug:t.debug});return t.onHeaders&&n.onHeaders(t.onHeaders),t.onMessage&&n.onMessage(t.onMessage),t.onEnd&&n.onEnd(t.onEnd),n.start(t.metadata),n.send(t.request),n.finishSend(),{close:function(){n.close()}}}},65:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(418);Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return r.BrowserHeaders}})},57:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultTransport=t.setDefaultTransportFactory=void 0;var r=n(859),i=function(e){return r.CrossBrowserHttpTransport({withCredentials:!1})(e)};t.setDefaultTransportFactory=function(e){i=e},t.makeDefaultTransport=function(e){return i(e)}},229:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFetchSupport=t.FetchReadableStreamTransport=void 0;var i=n(65),o=n(346);t.FetchReadableStreamTransport=function(e){return function(t){return function(e,t){return e.debug&&o.debug("fetchRequest",e),new a(e,t)}(t,e)}};var a=function(){function e(e,t){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=e,this.init=t}return e.prototype.pump=function(e,t){var n=this;if(this.reader=e,this.cancelled)return this.options.debug&&o.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch((function(e){n.options.debug&&o.debug("Fetch.pump.reader.cancel exception",e)}));this.reader.read().then((function(e){if(e.done)return n.options.onEnd(),t;n.options.onChunk(e.value),n.pump(n.reader,t)})).catch((function(e){n.cancelled?n.options.debug&&o.debug("Fetch.catch - request cancelled"):(n.cancelled=!0,n.options.debug&&o.debug("Fetch.catch",e.message),n.options.onEnd(e))}))},e.prototype.send=function(e){var t=this;fetch(this.options.url,r(r({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:e,signal:this.controller&&this.controller.signal})).then((function(e){if(t.options.debug&&o.debug("Fetch.response",e),t.options.onHeaders(new i.Metadata(e.headers),e.status),!e.body)return e;t.pump(e.body.getReader(),e)})).catch((function(e){t.cancelled?t.options.debug&&o.debug("Fetch.catch - request cancelled"):(t.cancelled=!0,t.options.debug&&o.debug("Fetch.catch",e.message),t.options.onEnd(e))}))},e.prototype.sendMessage=function(e){this.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){this.metadata=e},e.prototype.cancel=function(){var e=this;this.cancelled?this.options.debug&&o.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&o.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&o.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&o.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch((function(t){e.options.debug&&o.debug("Fetch.cancel.reader.cancel exception",t)}))):this.options.debug&&o.debug("Fetch.cancel before reader"))},e}();t.detectFetchSupport=function(){return"undefined"!=typeof Response&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CrossBrowserHttpTransport=void 0;var r=n(229),i=n(210);t.CrossBrowserHttpTransport=function(e){if(r.detectFetchSupport()){var t={credentials:e.withCredentials?"include":"same-origin"};return r.FetchReadableStreamTransport(t)}return i.XhrTransport({withCredentials:e.withCredentials})}},210:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.stringToArrayBuffer=t.MozChunkedArrayBufferXHR=t.XHR=t.XhrTransport=void 0;var o=n(65),a=n(346),s=n(849);t.XhrTransport=function(e){return function(t){if(s.detectMozXHRSupport())return new c(t,e);if(s.detectXHROverrideMimeTypeSupport())return new l(t,e);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var l=function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){this.options.debug&&a.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var e=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var t=d(e);this.options.onChunk(t)},e.prototype.onLoadEvent=function(){this.options.debug&&a.debug("XHR.onLoadEvent"),this.options.onEnd()},e.prototype.onStateChange=function(){this.options.debug&&a.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new o.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},e.prototype.sendMessage=function(e){this.xhr.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){var t=this;this.metadata=e;var n=new XMLHttpRequest;this.xhr=n,n.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach((function(e,t){n.setRequestHeader(e,t.join(", "))})),n.withCredentials=Boolean(this.init.withCredentials),n.addEventListener("readystatechange",this.onStateChange.bind(this)),n.addEventListener("progress",this.onProgressEvent.bind(this)),n.addEventListener("loadend",this.onLoadEvent.bind(this)),n.addEventListener("error",(function(e){t.options.debug&&a.debug("XHR.error",e),t.options.onEnd(e.error)}))},e.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},e.prototype.cancel=function(){this.options.debug&&a.debug("XHR.abort"),this.xhr.abort()},e}();t.XHR=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.configureXhr=function(){this.options.debug&&a.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},t.prototype.onProgressEvent=function(){var e=this.xhr.response;this.options.debug&&a.debug("MozXHR.onProgressEvent: ",new Uint8Array(e)),this.options.onChunk(new Uint8Array(e))},t}(l);function u(e,t){var n=e.charCodeAt(t);if(n>=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function d(e){for(var t=new Uint8Array(e.length),n=0,r=0;r<e.length;r++){var i=String.prototype.codePointAt?e.codePointAt(r):u(e,r);t[n++]=255&i}return t}t.MozChunkedArrayBufferXHR=c,t.stringToArrayBuffer=d},849:function(e,t){"use strict";var n;function r(){if(void 0!==n)return n;if(XMLHttpRequest){n=new XMLHttpRequest;try{n.open("GET","https://localhost")}catch(e){}}return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.detectXHROverrideMimeTypeSupport=t.detectMozXHRSupport=t.xhrSupportsResponseType=void 0,t.xhrSupportsResponseType=i,t.detectMozXHRSupport=function(){return"undefined"!=typeof XMLHttpRequest&&i("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketTransport=void 0;var r,i=n(346),o=n(617);!function(e){e[e.FINISH_SEND=1]="FINISH_SEND"}(r||(r={}));var a=new Uint8Array([1]);t.WebsocketTransport=function(){return function(e){return function(e){e.debug&&i.debug("websocketRequest",e);var t,n=function(e){if("https://"===e.substr(0,8))return"wss://"+e.substr(8);if("http://"===e.substr(0,7))return"ws://"+e.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(e.url),s=[];function l(e){if(e===r.FINISH_SEND)t.send(a);else{var n=e,i=new Int8Array(n.byteLength+1);i.set(new Uint8Array([0])),i.set(n,1),t.send(i)}}return{sendMessage:function(e){t&&t.readyState!==t.CONNECTING?l(e):s.push(e)},finishSend:function(){t&&t.readyState!==t.CONNECTING?l(r.FINISH_SEND):s.push(r.FINISH_SEND)},start:function(r){(t=new WebSocket(n,["grpc-websockets"])).binaryType="arraybuffer",t.onopen=function(){var n;e.debug&&i.debug("websocketRequest.onopen"),t.send((n="",r.forEach((function(e,t){n+=e+": "+t.join(", ")+"\r\n"})),o.encodeASCII(n))),s.forEach((function(e){l(e)}))},t.onclose=function(t){e.debug&&i.debug("websocketRequest.onclose",t),e.onEnd()},t.onerror=function(t){e.debug&&i.debug("websocketRequest.onerror",t)},t.onmessage=function(t){e.onChunk(new Uint8Array(t.data))}},cancel:function(){e.debug&&i.debug("websocket.abort"),t.close()}}}(e)}}},35:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var r=n(65),i=n(934);t.unary=function(e,t){if(e.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(e.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var n=null,o=null,a=i.client(e,{host:t.host,transport:t.transport,debug:t.debug});return a.onHeaders((function(e){n=e})),a.onMessage((function(e){o=e})),a.onEnd((function(e,i,a){t.onEnd({status:e,statusMessage:i,headers:n||new r.Metadata,message:o,trailers:a})})),a.start(t.metadata),a.send(t.request),a.finishSend(),{close:function(){a.close()}}}},882:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(e){var t=e.serializeBinary(),n=new ArrayBuffer(t.byteLength+5);return new DataView(n,1,4).setUint32(0,t.length,!1),new Uint8Array(n,5).set(t),new Uint8Array(n)}}},t={},function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(607);var e,t}()},19388:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppUtils:()=>Ao,InteractionTemplateUtils:()=>va,TestUtils:()=>Pi,VERSION:()=>Li,WalletUtils:()=>bo,account:()=>Zr,arg:()=>hi,args:()=>pi,atBlockHeight:()=>Qr,atBlockId:()=>Xr,authenticate:()=>vC,authorization:()=>ni,authorizations:()=>ti,authz:()=>CC,block:()=>Jr,build:()=>wn,cadence:()=>ft,cdc:()=>ft,config:()=>_e,createSignableVoucher:()=>Tr,currentUser:()=>gC,decode:()=>Gr,discovery:()=>sa,display:()=>Me,events:()=>Ho,getAccount:()=>En,getBlock:()=>An,getBlockHeader:()=>ai,getChainId:()=>Ji,getCollection:()=>si,getEvents:()=>ri,getEventsAtBlockHeightRange:()=>ii,getEventsAtBlockIds:()=>oi,getNetworkParameters:()=>ui,getNodeVersionInfo:()=>$r,getTransaction:()=>ci,getTransactionStatus:()=>li,invariant:()=>Wr,isBad:()=>dn,isOk:()=>un,limit:()=>di,logIn:()=>xC,mutate:()=>mC,nodeVersionInfo:()=>ei,param:()=>Fi,params:()=>Di,payer:()=>mi,ping:()=>gi,pipe:()=>fn,pluginRegistry:()=>Jo,proposer:()=>fi,query:()=>ro,reauthenticate:()=>bC,ref:()=>vi,sansPrefix:()=>Oe,script:()=>yi,send:()=>qr,serialize:()=>_o,signUp:()=>wC,subscribeEvents:()=>Ai,t:()=>Ni,transaction:()=>xi,tx:()=>jo,unauthenticate:()=>yC,validator:()=>Kr,verifyUserSignatures:()=>Eo,voucherIntercept:()=>Ci,voucherToTxId:()=>Sr,why:()=>pn,withPrefix:()=>je});var r={};n.r(r),n.d(r,{identity:()=>rc});var i={};n.r(i),n.d(i,{base2:()=>ic});var o={};n.r(o),n.d(o,{base8:()=>oc});var a={};n.r(a),n.d(a,{base10:()=>ac});var s={};n.r(s),n.d(s,{base16:()=>sc,base16upper:()=>lc});var l={};n.r(l),n.d(l,{base32:()=>cc,base32hex:()=>hc,base32hexpad:()=>mc,base32hexpadupper:()=>gc,base32hexupper:()=>fc,base32pad:()=>dc,base32padupper:()=>pc,base32upper:()=>uc,base32z:()=>vc});var c={};n.r(c),n.d(c,{base36:()=>yc,base36upper:()=>bc});var u={};n.r(u),n.d(u,{base58btc:()=>wc,base58flickr:()=>xc});var d={};n.r(d),n.d(d,{base64:()=>Cc,base64pad:()=>Ac,base64url:()=>Ec,base64urlpad:()=>_c});var p={};n.r(p),n.d(p,{base256emoji:()=>Pc});var h={};n.r(h),n.d(h,{sha256:()=>tu,sha512:()=>nu});var f={};n.r(f),n.d(f,{identity:()=>iu});var m={};n.r(m),n.d(m,{code:()=>au,decode:()=>lu,encode:()=>su,name:()=>ou});var g={};n.r(g),n.d(g,{code:()=>pu,decode:()=>fu,encode:()=>hu,name:()=>du});var v=n(27998);function y(e,t){if(!e){var n;const e=new Error("INVARIANT ".concat(t));e.stack=null===(n=e.stack)||void 0===n||null===(n=n.split("\n"))||void 0===n||null===(n=n.filter((e=>!/at invariant/.test(e))))||void 0===n?void 0:n.join("\n");for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];throw console.error("\n\n---\n\n",e,"\n\n",...i,"\n\n---\n\n"),e}}const b={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let w;const x=new Uint8Array(16);function C(){if(!w&&(w="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(x)}const A=[];for(let AC=0;AC<256;++AC)A.push((AC+256).toString(16).slice(1));function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]}const _=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return E(r)};var T=function(e){return e.UNKNOWN="UNKNOWN",e.SCRIPT="SCRIPT",e.TRANSACTION="TRANSACTION",e.GET_TRANSACTION_STATUS="GET_TRANSACTION_STATUS",e.GET_ACCOUNT="GET_ACCOUNT",e.GET_EVENTS="GET_EVENTS",e.PING="PING",e.GET_TRANSACTION="GET_TRANSACTION",e.GET_BLOCK="GET_BLOCK",e.GET_BLOCK_HEADER="GET_BLOCK_HEADER",e.GET_COLLECTION="GET_COLLECTION",e.GET_NETWORK_PARAMETERS="GET_NETWORK_PARAMETERS",e.SUBSCRIBE_EVENTS="SUBSCRIBE_EVENTS",e.GET_NODE_VERSION_INFO="GET_NODE_VERSION_INFO",e}({}),S=function(e){return e.BAD="BAD",e.OK="OK",e}({}),k=function(e){return e.AUTHORIZER="authorizer",e.PAYER="payer",e.PROPOSER="proposer",e}({}),P=function(e){return e.ARGUMENT="ARGUMENT",e.ACCOUNT="ACCOUNT",e}({});const D=()=>{const e=[];let t;return{async deliver(n){e.push(n),t&&(t(e.shift()),t=void 0)},receive:()=>new Promise((function(n){const r=e.shift();if(r)return n(r);t=n}))}};let F;const N="INIT",I="SUBSCRIBE",R="UNSUBSCRIBE",O="UPDATED",j="SNAPSHOT",M="EXIT",L="TERMINATE",B="object"===typeof self&&self.self===self&&self||"object"===typeof n.g&&n.g.global===n.g&&n.g||"object"===typeof window&&window.window===window&&window||{FCL_REGISTRY:null};B.FCL_REGISTRY=null==B.FCL_REGISTRY?{}:B.FCL_REGISTRY;const U=B.FCL_REGISTRY;let V=0;const H=5e3;function z(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{expectReply:!1};return new Promise(((i,o)=>{const a=r.expectReply||!1,s=null!=r.timeout?r.timeout:H;a&&s&&setTimeout((()=>o(new Error("Timeout: ".concat(s,"ms passed without a response.")))),s);const l={to:e,from:r.from,tag:t,data:n,timeout:s,reply:i,reject:o};try{U[e]&&U[e].mailbox.deliver(l),a||i(!0)}catch(c){console.error("FCL.Actor -- Could Not Deliver Message",l,U[e],c),o(c)}}))}const W=function(e){const t=(e=>{if(null==e){for(;U[String(V)];)V++;return String(V)}return String(e)})(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null);if(null!=U[t])return t;U[t]={addr:t,mailbox:D(),subs:new Set,kvs:{},error:null};const n=q(t);let r;var i,o;return"object"===typeof e?(i=e,r=async e=>{"function"===typeof i[N]&&await i[N](e);e:for(;;){const r=await e.receive();try{var t;if(r.tag===M){"function"===typeof i[L]&&await i[L](e,r,r.data||{});break e}await(null===(t=i[r.tag])||void 0===t?void 0:t.call(i,e,r,r.data||{}))}catch(n){console.error("".concat(e.self()," Error"),r,n)}finally{continue e}}}):r=e,o=async()=>{await r(n),(e=>{delete U[e]})(t)},(F||(F=Promise.resolve())).then(o).catch((e=>setTimeout((()=>{throw e}),0))),t},q=e=>({self:()=>e,receive:()=>U[e].mailbox.receive(),send:function(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(null!=t)return i.from=e,z(t,n,r,i)},sendSelf:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};U[e]&&z(e,t,n,r)},broadcast:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.from=e;for(const i of U[e].subs)z(i,t,n,r)},subscribe:t=>null!=t&&U[e].subs.add(t),unsubscribe:t=>null!=t&&U[e].subs.delete(t),subscriberCount:()=>U[e].subs.size,hasSubs:()=>!!U[e].subs.size,put:(t,n)=>{null!=t&&(U[e].kvs[t]=n)},get:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const r=U[e].kvs[t];return null==r?n:r},delete:t=>{delete U[e].kvs[t]},update:(t,n)=>{null!=t&&(U[e].kvs[t]=n(U[e].kvs[t]))},keys:()=>Object.keys(U[e].kvs),all:()=>U[e].kvs,where:t=>Object.keys(U[e].kvs).reduce(((n,r)=>t.test(r)?{...n,[r]:U[e].kvs[r]}:n),{}),merge:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((n=>U[e].kvs[n]=t[n]))},fatalError:t=>{U[e].error=t;for(const n of U[e].subs)z(n,O)}});function G(e,t,n){t(e);const r=W((async t=>{for(t.send(e,I);;){const r=await t.receive(),i=U[e].error;if(r.tag===M)return void t.send(e,R);if(i)return n(null,i),void t.send(e,R);n(r.data,null)}}));return()=>z(r,M)}function Y(e,t){return t(e),z(e,j,null,{expectReply:!0,timeout:0})}const K=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.reduce(((e,t)=>t(e)),e)},Q=e=>e&&"object"===typeof e&&!Array.isArray(e),X=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;const i=n.shift();if(Q(e)&&Q(i))for(const o in i)Q(i[o])?(e[o]||Object.assign(e,{[o]:{}}),X(e[o],i[o])):Object.assign(e,{[o]:i[o]});return X(e,...n)},Z=e=>Array.isArray(e)?X({},...e):e,J=e=>e.contracts?e.contracts:{},$=e=>e.dependencies?e.dependencies:{},ee=(e,t)=>K(Z,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.reduce(((t,n)=>({...t,...n(e)})),{})}((e=>t=>{let{deployments:n={},accounts:r={}}=t;const i=null===n||void 0===n?void 0:n[e];return i?Object.entries(i).reduce(((e,t)=>{var n;let[i,o]=t;const a=null===(n=r[i])||void 0===n?void 0:n.address;return a?o.reduce(((e,t)=>({...e,[t]:a})),{}):e}),{}):{}})(t),K(J,(e=>t=>Object.entries(t).reduce(((t,n)=>{var r;let[i,o]=n;const a=null===o||void 0===o||null===(r=o.aliases)||void 0===r?void 0:r[e];return a&&(t[i]=a),t}),{}))(t)),K($,(e=>t=>Object.entries(t).reduce(((t,n)=>{var r;let[i,o]=n;const a=null===o||void 0===o||null===(r=o.aliases)||void 0===r?void 0:r[e];return a&&(t[i]=a),t}),{}))(t))))(e),te=e=>{var t;return Object.entries(null!==(t=null===e||void 0===e?void 0:e.accounts)&&void 0!==t?t:[]).reduce(((e,t)=>{let[,n]=t;return!!e||n&&Object.prototype.hasOwnProperty.call(n,"key")&&("string"===typeof(r=null===n||void 0===n?void 0:n.key)&&/^[0-9A-Fa-f]+$/.test(r));var r}),!1)},ne=e=>Array.isArray(e)?e.some(te):te(e),re=e=>{const t="local"===(null===e||void 0===e?void 0:e.toLowerCase())?"emulator":null===e||void 0===e?void 0:e.toLowerCase();if("emulator"===t||"testnet"===t||"mainnet"===t||"previewnet"===t)return t;throw new Error('Invalid network "'.concat(e,'". Must be one of "emulator", "local", "testnet", or "mainnet"'))};v.Nk(_e);const ie="config",oe="PUT_CONFIG",ae="GET_CONFIG",se="GET_ALL_CONFIG",le="UPDATE_CONFIG",ce="DELETE_CONFIG",ue="CLEAR_CONFIG",de="WHERE_CONFIG",pe="CONFIG/UPDATED",he=e=>e,fe={[oe]:(e,t,n)=>{let{key:r,value:i}=n;if(null==r)throw new Error("Missing 'key' for config/put.");e.put(r,i),e.broadcast(pe,{...e.all()})},[ae]:(e,t,n)=>{let{key:r,fallback:i}=n;if(null==r)throw new Error("Missing 'key' for config/get");t.reply(e.get(r,i))},[se]:(e,t)=>{t.reply({...e.all()})},[le]:(e,t,n)=>{let{key:r,fn:i}=n;if(null==r)throw new Error("Missing 'key' for config/update");e.update(r,i||he),e.broadcast(pe,{...e.all()})},[ce]:(e,t,n)=>{let{key:r}=n;if(null==r)throw new Error("Missing 'key' for config/delete");e.delete(r),e.broadcast(pe,{...e.all()})},[ue]:e=>{const t=Object.keys(e.all());for(const n of t)e.delete(n);e.broadcast(pe,{...e.all()})},[de]:(e,t,n)=>{let{pattern:r}=n;if(null==r)throw new Error("Missing 'pattern' for config/where");t.reply(e.where(r))},[I]:(e,t)=>{e.subscribe(t.from),e.send(t.from,pe,{...e.all()})},[R]:(e,t)=>{e.unsubscribe(t.from)}};function me(e,t){return z(ie,oe,{key:e,value:t}),_e()}function ge(e,t){return z(ie,ae,{key:e,fallback:t},{expectReply:!0,timeout:10})}async function ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!e.length)return t;const[n,...r]=e,i=await ge(n);return null==i?ve(r,t):i}function ye(){return z(ie,se,null,{expectReply:!0,timeout:10})}function be(e){return z(ie,le,{key:e,fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:he}),_e()}function we(e){return z(ie,ce,{key:e}),_e()}function xe(e){return z(ie,de,{pattern:e},{expectReply:!0,timeout:10})}function Ce(e){return G(ie,(()=>W(fe,ie)),e)}async function Ae(e){return async function(){await z(ie,ue)}().then((()=>_e(e)))}async function Ee(e){const t=await ge("flow.network"),n=re(t),{flowJSON:r}=e;if(y(Boolean(r),"config.load -- 'flowJSON' must be defined"),y(!!n,'Flow Network Required -- In order for FCL to load your contracts please define "flow.network" to "emulator", "local", "testnet", or "mainnet" in your config. See more here: https://developers.flow.com/tools/fcl-js/reference/configure-fcl'),ne(r)){const e="emulator"===n;v.Rm({title:"Private Keys Detected",message:"Private keys should be stored in a separate flow.json file for security. See more here: https://developers.flow.com/tools/flow-cli/security",level:e?v.A_.warn:v.A_.error}),y(e,"Private keys should be stored in a separate flow.json file for security. See more here: https://developers.flow.com/tools/flow-cli/security")}for(const[i,o]of Object.entries(ee(r,n))){const e="0x".concat(i),t=await ge(e);t&&t!==o?v.Rm({title:"Contract Placeholder Conflict Detected",message:"A generated contract placeholder from config.load conflicts with a placeholder you've set manually in config have the same name.",level:v.A_.warn}):me(e,o);const n="system.contracts.".concat(i),r=await ge(n);r&&r!==o?v.Rm({title:"Contract Placeholder Conflict Detected",message:"A generated contract placeholder from config.load conflicts with a placeholder you've set manually in config have the same name.",level:v.A_.warn}):me(n,o)}}function _e(e){return null!=e&&"object"===typeof e&&Object.keys(e).map((t=>me(t,e[t]))),{put:me,get:ge,all:ye,first:ve,update:be,delete:we,where:xe,subscribe:Ce,overload:Te,load:Ee}}async function Te(e,t){const n=await ye();try{_e(e);return await t(await ye())}finally{await Ae(n)}}W(fe,ie),_e.put=me,_e.get=ge,_e.all=ye,_e.first=ve,_e.update=be,_e.delete=we,_e.where=xe,_e.subscribe=Ce,_e.overload=Te,_e.load=Ee;var Se=n(75701);function ke(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t.push(ke(e[r]));const n=Se.Buffer.concat(t);return Se.Buffer.concat([Pe(n.length,192),n])}{const t=Ne(e);return 1===t.length&&t[0]<128?t:Se.Buffer.concat([Pe(t.length,128),t])}}function Pe(e,t){if(e<56)return Se.Buffer.from([e+t]);{const n=Fe(e),r=Fe(t+55+n.length/2);return Se.Buffer.from(r+n,"hex")}}function De(e){return"0x"===e.slice(0,2)}function Fe(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?"0"+t:t}function Ne(e){if(!Se.Buffer.isBuffer(e)){if("string"===typeof e)return De(e)?Se.Buffer.from(function(e){return e.length%2?"0"+e:e}("string"!==typeof(t=e)?t:De(t)?t.slice(2):t),"hex"):Se.Buffer.from(e);if("number"===typeof e)return e?function(e){const t=Fe(e);return Se.Buffer.from(t,"hex")}(e):Se.Buffer.from([]);if(null===e||void 0===e)return Se.Buffer.from([]);if(e instanceof Uint8Array)return Se.Buffer.from(e);throw new Error("invalid type")}var t;return e}var Ie=n(11871),Re=n.n(Ie);function Oe(e){return null==e?null:e.replace(/^0x/,"").replace(/^Fx/,"")}function je(e){return null==e?null:"0x"+Oe(e)}function Me(e){return je(e)}var Le=n(66973),Be=n.n(Le),Ue=null;"undefined"!==typeof WebSocket?Ue=WebSocket:"undefined"!==typeof MozWebSocket?Ue=MozWebSocket:"undefined"!==typeof n.g?Ue=n.g.WebSocket||n.g.MozWebSocket:"undefined"!==typeof window?Ue=window.WebSocket||window.MozWebSocket:"undefined"!==typeof self&&(Ue=self.WebSocket||self.MozWebSocket);const Ve=Ue;function He(e){try{return JSON.parse(e)}catch{return null}}const ze=globalThis.AbortController||n(79118);class We extends Error{constructor(e){let{error:t,hostname:n,path:r,method:i,requestBody:o,responseBody:a,responseStatusText:s,statusCode:l}=e;super("\n      HTTP Request Error: An error occurred when interacting with the Access API.\n      ".concat(t?"error=".concat(t):"","\n      ").concat(n?"hostname=".concat(n):"","\n      ").concat(r?"path=".concat(r):"","\n      ").concat(i?"method=".concat(i):"","\n      ").concat(o?"requestBody=".concat(o):"","\n      ").concat(a?"responseBody=".concat(a):"","\n      ").concat(s?"responseStatusText=".concat(s):"","\n      ").concat(l?"statusCode=".concat(l):"","\n    ")),this.name="HTTP Request Error",this.statusCode=l,this.errorMessage=t}}async function qe(e){let{hostname:t,path:n,method:r,body:i,headers:o,retryLimit:a=5,retryIntervalMs:s=1e3,timeoutLimit:l=3e4,enableRequestLogging:c=!0}=e;const u=i?JSON.stringify(i):null;return await async function e(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{const e=await function(){const e=new ze,i=setTimeout((()=>{e.abort()}),l);return Re()((a=t,s=n,s?a.replace(/\/+$/,"")+"/"+s.replace(/^\/+/,""):a).toString(),{method:r,body:u,headers:o,signal:e.signal}).then((async e=>{if(e.ok)return e.json();const i=await e.text().catch((()=>null)),o=He(i);throw new We({error:null===o||void 0===o?void 0:o.message,hostname:t,path:n,method:r,requestBody:u,responseBody:i,responseStatusText:e.statusText,statusCode:e.status})})).catch((async e=>{if(e instanceof We)throw e;if("AbortError"===e.name)throw e;throw c&&await v.Rm({title:"Access Node Error",message:"The provided access node ".concat(t," does not appear to be a valid REST/HTTP access node.\n  Please verify that you are not unintentionally using a GRPC access node.\n  See more here: https://docs.onflow.org/fcl/reference/sdk-guidelines/#connect"),level:v.A_.error}),new We({error:null===e||void 0===e?void 0:e.message,hostname:t,path:n,method:r,requestBody:u})})).finally((()=>{clearTimeout(i)}));var a,s}();return e}catch(d){const t=[408,429,500,502,503,504];if("AbortError"===d.name||t.includes(d.statusCode))return await new Promise(((t,n)=>{i<a?(c&&console.warn("Access node unavailable, retrying in ".concat(s," ms...")),setTimeout((()=>{t(e(i+1))}),s)):n(d)}));throw d}}()}function Ge(e,t,n){let r=t.response();return r.tag=e.tag,r.encodedData=JSON.parse(t.Buffer.from(n,"base64").toString()),r}async function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return y(n.node,"SDK Send Execute Script Error: opts.node must be defined."),y(t.response,"SDK Send Execute Script Error: context.response must be defined."),y(t.Buffer,"SDK Send Execute Script Error: context.Buffer must be defined."),(e=await e).block.id?await async function(e,t,n){const r=n.httpRequest||qe,i=await r({hostname:n.node,path:"/v1/scripts?block_id=".concat(e.block.id),method:"POST",body:{script:t.Buffer.from(e.message.cadence).toString("base64"),arguments:e.message.arguments.map((n=>t.Buffer.from(JSON.stringify(e.arguments[n].asArgument)).toString("base64")))}});return Ge(e,t,i)}(e,t,n):e.block.height?await async function(e,t,n){const r=n.httpRequest||qe,i=await r({hostname:n.node,path:"/v1/scripts?block_height=".concat(e.block.height),method:"POST",body:{script:t.Buffer.from(e.message.cadence).toString("base64"),arguments:e.message.arguments.map((n=>t.Buffer.from(JSON.stringify(e.arguments[n].asArgument)).toString("base64")))}});return Ge(e,t,i)}(e,t,n):await async function(e,t,n){const r=n.httpRequest||qe,i=await r({hostname:n.node,path:"/v1/scripts?block_height=sealed",method:"POST",body:{script:t.Buffer.from(e.message.cadence).toString("base64"),arguments:e.message.arguments.map((n=>t.Buffer.from(JSON.stringify(e.arguments[n].asArgument)).toString("base64")))}});return Ge(e,t,i)}(e,t,n)}const Ke={SHA2_256:1,SHA2_384:2,SHA3_256:3,SHA3_384:4,KMAC128_BLS_BLS12_381:5},Qe={ECDSA_P256:1,ECDSA_secp256k1:2,BLS_BLS12_381:3};function Xe(e,t,n){var r,i;let o=t.response();o.tag=e.tag;return o.account={address:n.address,balance:Number(n.balance),code:"",contracts:(e=>{const n={};if(!e)return n;for(let r of Object.keys(e))n[r]=t.Buffer.from(e[r],"base64").toString();return n})(n.contracts),keys:null!==(r=null===(i=n.keys)||void 0===i?void 0:i.map((e=>({index:Number(e.index),publicKey:e.public_key.replace(/^0x/,""),signAlgo:Qe[e.signing_algorithm],signAlgoString:e.signing_algorithm,hashAlgo:Ke[e.hashing_algorithm],hashAlgoString:e.hashing_algorithm,sequenceNumber:Number(e.sequence_number),weight:Number(e.weight),revoked:e.revoked}))))&&void 0!==r?r:[]},o}async function Ze(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return y(n.node,"SDK Send Get Account Error: opts.node must be defined."),y(t.response,"SDK Send Get Account Error: context.response must be defined."),y(t.Buffer,"SDK Send Get Account Error: context.Buffer must be defined."),null!==(e=await e).block.height?await async function(e,t,n){const r=n.httpRequest||qe;return Xe(e,t,await r({hostname:n.node,path:"/v1/accounts/".concat(e.account.addr,"?block_height=").concat(e.block.height,"&expand=contracts,keys"),method:"GET",body:null}))}(e,t,n):await async function(e,t,n){const r=n.httpRequest||qe;return Xe(e,t,await r({hostname:n.node,path:"/v1/accounts/".concat(e.account.addr,"?block_height=sealed&expand=contracts,keys"),method:"GET",body:null}))}(e,t,n)}function Je(e,t,n){const r=n.length?n[0]:null,i=t.response();return i.tag=e.tag,i.blockHeader={id:r.header.id,parentId:r.header.parent_id,height:Number(r.header.height),timestamp:r.header.timestamp},i}async function $e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Block Header Error: opts.node must be defined."),y(t.response,"SDK Send Get Block Header Error: context.response must be defined.");const r=null!==(e=await e).block.id,i=null!==e.block.height;return r?await async function(e,t,n){const r=n.httpRequest||qe;return Je(e,t,await r({hostname:n.node,path:"/v1/blocks/".concat(e.block.id),method:"GET",body:null}))}(e,t,n):i?await async function(e,t,n){const r=n.httpRequest||qe;return Je(e,t,await r({hostname:n.node,path:"/v1/blocks?height=".concat(e.block.height),method:"GET",body:null}))}(e,t,n):await async function(e,t,n){var r;const i=n.httpRequest||qe,o=null!==(r=e.block)&&void 0!==r&&r.isSealed?"sealed":"final";return Je(e,t,await i({hostname:n.node,path:"/v1/blocks?height=".concat(o),method:"GET",body:null}))}(e,t,n)}function et(e,t,n){const r=n.length?n[0]:null,i=t.response();return i.tag=e.tag,i.block={id:r.header.id,parentId:r.header.parent_id,height:Number(r.header.height),timestamp:r.header.timestamp,collectionGuarantees:r.payload.collection_guarantees.map((e=>({collectionId:e.collection_id,signerIds:e.signer_ids}))),blockSeals:r.payload.block_seals.map((e=>({blockId:e.block_id,executionReceiptId:e.result_id})))},i}async function tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Block Error: opts.node must be defined."),y(t.response,"SDK Send Get Block Error: context.response must be defined.");const r=null!==(e=await e).block.id,i=null!==e.block.height;return r?await async function(e,t,n){const r=n.httpRequest||qe;return et(e,t,await r({hostname:n.node,path:"/v1/blocks/".concat(e.block.id,"?expand=payload"),method:"GET",body:null}))}(e,t,n):i?await async function(e,t,n){const r=n.httpRequest||qe;return et(e,t,await r({hostname:n.node,path:"/v1/blocks?height=".concat(e.block.height,"&expand=payload"),method:"GET",body:null}))}(e,t,n):await async function(e,t,n){var r;const i=n.httpRequest||qe,o=null!==(r=e.block)&&void 0!==r&&r.isSealed?"sealed":"final";return et(e,t,await i({hostname:n.node,path:"/v1/blocks?height=".concat(o,"&expand=payload"),method:"GET",body:null}))}(e,t,n)}function nt(e,t,n){let r=t.response();return r.tag=e.tag,r.events=[],n.forEach((e=>e.events?e.events.forEach((n=>r.events.push({blockId:e.block_id,blockHeight:Number(e.block_height),blockTimestamp:e.block_timestamp,type:n.type,transactionId:n.transaction_id,transactionIndex:Number(n.transaction_index),eventIndex:Number(n.event_index),payload:JSON.parse(t.Buffer.from(n.payload,"base64").toString())}))):null)),r}async function rt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Events Error: opts.node must be defined."),y(t.response,"SDK Send Get Events Error: context.response must be defined."),y(t.Buffer,"SDK Send Get Events Error: context.Buffer must be defined.");const r=null!==(e=await e).events.start,i=Array.isArray(e.events.blockIds)&&e.events.blockIds.length>0;return y(r||i,"SendGetEventsError: Unable to determine which get events request to send. Either a block height range, or block IDs must be specified."),r?await async function(e,t,n){const r=n.httpRequest||qe;return nt(e,t,await r({hostname:n.node,path:"/v1/events?type=".concat(e.events.eventType,"&start_height=").concat(e.events.start,"&end_height=").concat(e.events.end),method:"GET",body:null}))}(e,t,n):await async function(e,t,n){const r=n.httpRequest||qe,i=await r({hostname:n.node,path:"/v1/events?type=".concat(e.events.eventType,"&block_ids=").concat(e.events.blockIds.join(",")),method:"GET",body:null});return nt(e,t,i)}(e,t,n)}const it={UNKNOWN:0,PENDING:1,FINALIZED:2,EXECUTED:3,SEALED:4,EXPIRED:5};const ot=e=>"".concat(withPrefix(e.addr),"-").concat(e.keyId);const at=Ve;class st extends Error{constructor(e){let{code:t,reason:n,message:r,wasClean:i}=e;super("\n      connectWs: connection closed with error".concat(r?": ".concat(r):"","\n      ").concat(t?"code: ".concat(t):"","\n      ").concat(n?"reason: ".concat(n):"","\n      ").concat(i?"wasClean: ".concat(i):"","\n    ")),this.name="WebsocketError",this.code=t,this.reason=n,this.wasClean=!1}}function lt(e){let{hostname:t,path:n,params:r,getParams:i,retryLimit:o=5,retryIntervalMs:a=1e3}=e;if(i&&r)throw new Error("connectWs: cannot specify both params and getParams");let s=new Le.EventEmitter,l=0;const c=i||(()=>r);let u=()=>{};return function e(){let r=!1,i=!1;const d=function(e,t,n){const r=new URL(t||"",e);"https:"===r.protocol?r.protocol="wss:":"http:"===r.protocol&&(r.protocol="ws:");return Object.entries(n||{}).forEach((e=>{let[t,n]=e;if(n){let e;e=Array.isArray(n)?n.join(","):n.toString(),r.searchParams.append(t,e)}})),r.toString()}(t,n,c()),p=new at(d);p.onmessage=function(e){const t=He(e.data);t?s.emit("data",t):(s.emit("error",new st({message:"invalid JSON data"})),this.close())},p.onclose=function(t){if(r)return s.emit("close"),void s.removeAllListeners();i?setTimeout(e,a):l<o?(l++,setTimeout(e,a)):(s.emit("error",new st({wasClean:t.wasClean,code:t.code,reason:t.reason,message:"failed to connect"})),setTimeout((()=>{s.emit("close"),s.removeAllListeners()})))},p.onopen=function(){i=!0,l=0},u=()=>{r=!0,p.close()}}(),{on(e,t){return s.on(e,t),this},off(e,t){return s.off(e,t),this},close(){u()}}}async function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Events Error: opts.node must be defined."),y(t.response,"SDK Send Get Events Error: context.response must be defined."),y(t.Buffer,"SDK Send Get Events Error: context.Buffer must be defined.");const r=await e,i=n.connectWs||lt,o=new Le.EventEmitter;let a=null;const s=i({hostname:n.node,path:"/v1/subscribe_events",getParams:()=>{var e,t,n,i;const o={event_types:null===(e=r.subscribeEvents)||void 0===e?void 0:e.eventTypes,addresses:null===(t=r.subscribeEvents)||void 0===t?void 0:t.addresses,contracts:null===(n=r.subscribeEvents)||void 0===n?void 0:n.contracts,heartbeat_interval:null===(i=r.subscribeEvents)||void 0===i?void 0:i.heartbeatInterval};var s,l;a?o.start_height=a+1:(o.start_block_id=null===(s=r.subscribeEvents)||void 0===s?void 0:s.startBlockId,o.start_height=null===(l=r.subscribeEvents)||void 0===l?void 0:l.startHeight);return o}});s.on("data",(e=>{const n=function(e,t,n){var r;const i=t.response();return i.tag=e.tag,i.events=(null===(r=n.Events)||void 0===r?void 0:r.length)>0?n.Events.map((e=>({blockId:n.BlockID,blockHeight:Number(n.Height),blockTimestamp:n.Timestamp,type:e.Type,transactionId:e.TransactionID,transactionIndex:Number(e.TransactionIndex),eventIndex:Number(e.EventIndex),payload:JSON.parse(t.Buffer.from(e.Payload,"base64").toString())}))):null,i.heartbeat={blockId:n.BlockID,blockHeight:Number(n.Height),blockTimestamp:n.Timestamp},i}(r,t,e);a=n.heartbeat.blockHeight,o.emit("data",n)})),s.on("error",(e=>{o.emit("error",e)})),s.on("close",(()=>{o.emit("close")}));return function(e,t,n){const r=t.response();return r.tag=e.tag,r.streamConnection=n,r}(r,t,{on(e,t){return o.on(e,t),this},off(e,t){return o.off(e,t),this},close(){s.close()}})}const ut=async function(e,t){var n,r,i,o;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};switch(y(Boolean(null===a||void 0===a?void 0:a.node),'SDK Send Error: Either opts.node or "accessNode.api" in config must be defined.'),y(Boolean(t.ix),"SDK Send Error: context.ix must be defined."),e=await e,!0){case t.ix.isTransaction(e):return a.sendTransaction?a.sendTransaction(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Transaction Error: opts.node must be defined."),y(t.response,"SDK Send Transaction Error: context.response must be defined."),y(t.Buffer,"SDK Send Transaction Error: context.Buffer must be defined.");const r=n.httpRequest||qe;e=await e;let i=[];for(let d of Object.values(e.accounts))try{if(!d.role.payer&&null!=d.signature){const e={address:Oe(d.addr),key_index:String(d.keyId),signature:t.Buffer.from(d.signature,"hex").toString("base64")};i.find((t=>t.address===e.address&&t.key_index===e.key_index&&t.signature===e.signature))||i.push(e)}}catch(u){throw console.error("SDK HTTP Send Error: Trouble applying payload signature",{acct:d,ix:e}),u}let o={};for(let d of Object.values(e.accounts))try{if(d.role.payer&&null!=d.signature){let e=d.tempId||ot(d);o[e]=o[e]||{address:Oe(d.addr),key_index:String(d.keyId),signature:t.Buffer.from(d.signature,"hex").toString("base64")}}}catch(u){throw console.error("SDK HTTP Send Error: Trouble applying envelope signature",{acct:d,ix:e}),u}o=Object.values(o);var a=Date.now();const s=await r({hostname:n.node,path:"/v1/transactions",method:"POST",body:{script:t.Buffer.from(e.message.cadence).toString("base64"),arguments:[...e.message.arguments.map((n=>t.Buffer.from(JSON.stringify(e.arguments[n].asArgument)).toString("base64")))],reference_block_id:e.message.refBlock?e.message.refBlock:null,gas_limit:String(e.message.computeLimit),payer:Oe(e.accounts[Array.isArray(e.payer)?e.payer[0]:e.payer].addr),proposal_key:{address:Oe(e.accounts[e.proposer].addr),key_index:String(e.accounts[e.proposer].keyId),sequence_number:String(e.accounts[e.proposer].sequenceNum)},authorizers:e.authorizations.map((t=>e.accounts[t].addr)).reduce(((e,t)=>e.find((e=>e===t))?e:[...e,t]),[]).map(Oe),payload_signatures:i,envelope_signatures:o}});var l=Date.now();let c=t.response();return c.tag=e.tag,c.transactionId=s.id,"undefined"!==typeof window&&"undefined"!==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("FLOW::TX",{detail:{txId:c.transactionId,delta:l-a}})),c}(e,t,a);case t.ix.isGetTransactionStatus(e):return a.sendGetTransactionStatus?a.sendGetTransactionStatus(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Transaction Status Error: opts.node must be defined."),y(t.response,"SDK Send Get Transaction Status Error: context.response must be defined."),y(t.Buffer,"SDK Send Get Transaction Status Error: context.Buffer must be defined.");const r=n.httpRequest||qe;e=await e;const i=await r({hostname:n.node,path:"/v1/transaction_results/".concat(e.transaction.id),method:"GET",body:null});let o=t.response();return o.tag=e.tag,o.transactionStatus={blockId:i.block_id,status:it[i.status.toUpperCase()]||"",statusString:i.status.toUpperCase(),statusCode:i.status_code,errorMessage:i.error_message,events:i.events.map((e=>({type:e.type,transactionId:e.transaction_id,transactionIndex:Number(e.transaction_index),eventIndex:Number(e.event_index),payload:JSON.parse(t.Buffer.from(e.payload,"base64").toString())})))},o}(e,t,a);case t.ix.isGetTransaction(e):return a.sendGetTransaction?a.sendGetTransaction(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Transaction Error: opts.node must be defined."),y(t.response,"SDK Send Get Transaction Error: context.response must be defined."),y(t.Buffer,"SDK Send Get Transaction Error: context.Buffer must be defined.");const r=n.httpRequest||qe;e=await e;const i=await r({hostname:n.node,path:"/v1/transactions/".concat(e.transaction.id),method:"GET",body:null}),o=e=>({address:e.address,keyId:Number(e.key_index),signature:e.signature});let a=t.response();var s;return a.tag=e.tag,a.transaction={script:t.Buffer.from(i.script,"base64").toString(),args:[...i.arguments.map((e=>JSON.parse(t.Buffer.from(e,"base64").toString())))],referenceBlockId:i.reference_block_id,gasLimit:Number(i.gas_limit),payer:i.payer,proposalKey:i.proposal_key?(s=i.proposal_key,{address:s.address,keyId:Number(s.key_id),sequenceNumber:Number(s.sequence_number)}):i.proposal_key,authorizers:i.authorizers,payloadSignatures:[...i.payload_signatures.map(o)],envelopeSignatures:[...i.envelope_signatures.map(o)]},a}(e,t,a);case t.ix.isScript(e):return a.sendExecuteScript?a.sendExecuteScript(e,t,a):Ye(e,t,a);case t.ix.isGetAccount(e):return a.sendGetAccount?a.sendGetAccount(e,t,a):Ze(e,t,a);case t.ix.isGetEvents(e):return a.sendGetEvents?a.sendGetEvents(e,t,a):rt(e,t,a);case null===(n=(r=t.ix).isSubscribeEvents)||void 0===n?void 0:n.call(r,e):return a.connectSubscribeEvents?a.connectSubscribeEvents(e,t,a):ct(e,t,a);case t.ix.isGetBlock(e):return a.sendGetBlock?a.sendGetBlock(e,t,a):tt(e,t,a);case t.ix.isGetBlockHeader(e):return a.sendGetBlockHeader?a.sendGetBlockHeader(e,t,a):$e(e,t,a);case t.ix.isGetCollection(e):return a.sendGetCollection?a.sendGetCollection(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Collection Error: opts.node must be defined."),y(t.response,"SDK Send Get Collection Error: context.response must be defined.");const r=n.httpRequest||qe,i=await r({hostname:n.node,path:"/v1/collections/".concat(e.collection.id,"?expand=transactions"),method:"GET",body:null}),o=t.response();return o.tag=e.tag,o.collection={id:i.id,transactionIds:i.transactions.map((e=>e.id))},o}(e,t,a);case t.ix.isPing(e):return a.sendPing?a.sendPing(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(Boolean(n.node),"SDK Send Ping Error: opts.node must be defined."),y(Boolean(t.response),"SDK Send Ping Error: context.response must be defined.");const r=n.httpRequest||qe;await r({hostname:n.node,path:"/v1/blocks?height=sealed",method:"GET",body:null});let i="function"===typeof(null===t||void 0===t?void 0:t.response)?t.response():{};return i.tag=e.tag,i}(e,t,a);case t.ix.isGetNetworkParameters(e):return a.sendGetNetworkParameters?a.sendGetNetworkParameters(e,t,a):async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(r.node,"SDK Send Get Network Parameters Error: opts.node must be defined."),y(n.response,"SDK Send Get Network Parameters Error: context.response must be defined.");const i=r.httpRequest||qe;e=await e;const o=await i({hostname:r.node,path:"/v1/network/parameters",method:"GET",body:null,enableRequestLogging:null===(t=r.enableRequestLogging)||void 0===t||t});let a=n.response();return a.tag=e.tag,a.networkParameters={chainId:o.chain_id},a}(e,t,a);case null===(i=(o=t.ix).isGetNodeVersionInfo)||void 0===i?void 0:i.call(o,e):return a.sendGetNodeVersionInfo?a.sendGetNodeVersionInfo(e,t,a):async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(n.node,"SDK Send Get Node Version Info Error: opts.node must be defined."),y(t.response,"SDK Send Get Node Verison Info Error: context.response must be defined.");const r=n.httpRequest||qe;e=await e;const i=await r({hostname:n.node,path:"/v1/node_version_info",method:"GET"});let o=t.response();return o.tag=e.tag,o.nodeVersionInfo={semver:i.semver,commit:i.commit,sporkId:i.spork_id,protocolVersion:parseInt(i.protocol_version),sporkRootBlockHeight:parseInt(i.spork_root_block_height),nodeRootBlockHeight:parseInt(i.node_root_block_height)},o}(e,t,a);default:return e}};var dt=n(90884);function pt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e.length&&!t.length)return n;if(!e.length)return n;if(!t.length)return n.push(...e),n;const[r,...i]=e,[o,...a]=t;return void 0!==r&&n.push(r),void 0!==o&&n.push(o),pt(i,a,n)}function ht(e){return function(t){return"function"===typeof t?(v.Rm.deprecate({pkg:"FCL/SDK",subject:"Interopolation of functions into template literals",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0001-deprecate-params"}),ht(e)(t(e))):String(t)}}function ft(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"string"===typeof e?()=>e:"function"===typeof e?e:t=>pt([...e],n.map(ht(t))).join("").trim()}const mt='{\n  "kind":"'.concat(P.ACCOUNT,'",\n  "tempId":null,\n  "addr":null,\n  "keyId":null,\n  "sequenceNum":null,\n  "signature":null,\n  "signingFunction":null,\n  "resolve":null,\n  "role": {\n    "proposer":false,\n    "authorizer":false,\n    "payer":false,\n    "param":false\n  }\n}'),gt='{\n  "kind":"'.concat(P.ARGUMENT,'",\n  "tempId":null,\n  "value":null,\n  "asArgument":null,\n  "xform":null,\n  "resolve": null,\n  "resolveArgument": null\n}'),vt='{\n  "tag":"'.concat(T.UNKNOWN,'",\n  "assigns":{},\n  "status":"').concat(S.OK,'",\n  "reason":null,\n  "accounts":{},\n  "params":{},\n  "arguments":{},\n  "message": {\n    "cadence":null,\n    "refBlock":null,\n    "computeLimit":null,\n    "proposer":null,\n    "payer":null,\n    "authorizations":[],\n    "params":[],\n    "arguments":[]\n  },\n  "proposer":null,\n  "authorizations":[],\n  "payer":[],\n  "events": {\n    "eventType":null,\n    "start":null,\n    "end":null,\n    "blockIds":[]\n  },\n  "subscribeEvents": {\n    "startBlockId":null,\n    "startHeight":null,\n    "eventTypes":null,\n    "addresses":null,\n    "contracts":null,\n    "heartbeatInterval":null\n  },\n  "transaction": {\n    "id":null\n  },\n  "block": {\n    "id":null,\n    "height":null,\n    "isSealed":null\n  },\n  "account": {\n    "addr":null\n  },\n  "collection": {\n    "id":null\n  }\n}'),yt=new Set(Object.keys(JSON.parse(vt))),bt=()=>JSON.parse(vt),wt=()=>(v.Rm.deprecate({pkg:"FCL/SDK",message:"The interaction been deprecated from the Flow JS-SDK/FCL. use initInteraction instead",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0010-deprecate-interaction",level:v.A_.warn}),bt()),xt=e=>"number"===typeof e,Ct=e=>Array.isArray(e),At=e=>null!==e&&"object"===typeof e,Et=e=>null==e,_t=e=>"function"===typeof e,Tt=e=>{if(!At(e)||Et(e)||xt(e))return!1;for(let t of yt)if(!e.hasOwnProperty(t))return!1;return!0},St=e=>(e.status=S.OK,e),kt=(e,t)=>(e.status=S.BAD,e.reason=t,e),Pt=e=>t=>(t.tag=e,St(t)),Dt=e=>null==e.keyId?e:(y(!isNaN(parseInt(e.keyId.toString())),"account.keyId must be an integer"),{...e,keyId:parseInt(e.keyId.toString())}),Ft=()=>JSON.parse(mt),Nt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{y("function"===typeof e||"object"===typeof e,"prepAccount must be passed an authorization function or an account object"),y(null!=t.role,"Account must have a role");const r=Ft(),i=t.role,o=_();let a={...e};e.authorization&&_t(e.authorization)&&(a={resolve:e.authorization}),!e.authorization&&_t(e)&&(a={resolve:e});const s=a.resolve;return s&&(a.resolve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[s,Dt].reduce((async(e,t)=>t(await e,...n)),e)}),a=Dt(a),n.accounts[o]={...r,tempId:o,...a,role:{...r.role,..."object"===typeof e.role?e.role:{},...i?{[i]:!0}:{}}},i===k.AUTHORIZER?n.authorizations.push(o):i===k.PAYER?n.payer.push(o):i&&(n[i]=o),n}},It=e=>t=>{let n=_();return t.message.arguments.push(n),t.arguments[n]=JSON.parse(gt),t.arguments[n].tempId=n,t.arguments[n].value=e.value,t.arguments[n].asArgument=e.asArgument,t.arguments[n].xform=e.xform,t.arguments[n].resolve=e.resolve,t.arguments[n].resolveArgument=_t(e.resolveArgument)?e.resolveArgument.bind(e):e.resolveArgument,St(t)},Rt=Pt(T.UNKNOWN),Ot=Pt(T.SCRIPT),jt=Pt(T.TRANSACTION),Mt=Pt(T.GET_TRANSACTION_STATUS),Lt=Pt(T.GET_TRANSACTION),Bt=Pt(T.GET_ACCOUNT),Ut=Pt(T.GET_EVENTS),Vt=Pt(T.PING),Ht=Pt(T.GET_BLOCK),zt=Pt(T.GET_BLOCK_HEADER),Wt=Pt(T.GET_COLLECTION),qt=Pt(T.GET_NETWORK_PARAMETERS),Gt=Pt(T.SUBSCRIBE_EVENTS),Yt=Pt(T.GET_NODE_VERSION_INFO),Kt=e=>t=>t.tag===e,Qt=Kt(T.UNKNOWN),Xt=Kt(T.SCRIPT),Zt=Kt(T.TRANSACTION),Jt=Kt(T.GET_TRANSACTION_STATUS),$t=Kt(T.GET_TRANSACTION),en=Kt(T.GET_ACCOUNT),tn=Kt(T.GET_EVENTS),nn=Kt(T.PING),rn=Kt(T.GET_BLOCK),on=Kt(T.GET_BLOCK_HEADER),an=Kt(T.GET_COLLECTION),sn=Kt(T.GET_NETWORK_PARAMETERS),ln=Kt(T.GET_NODE_VERSION_INFO),cn=Kt(T.SUBSCRIBE_EVENTS),un=e=>e.status===S.OK,dn=e=>e.status===S.BAD,pn=e=>e.reason,hn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];try{if(e=(e=>{for(let t of Object.keys(e))if(!yt.has(t))throw new Error('"'.concat(t,'" is an invalid root level Interaction property.'));return e})(await e),dn(e))throw new Error("Interaction Error: ".concat(e.reason));if(!t.length)return e;const[n,...r]=t,i=await n;if(_t(i))return hn(i(e),r);if(Et(i)||!i)return hn(e,r);if(Tt(i))return hn(i,r);throw new Error("Invalid Interaction Composition")}catch(n){throw n}};function fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i]=t;if(Ct(r))return e=>fn(e,r);return hn(r,i)}const mn=function(e){return e},gn=(e,t,n)=>null==e.assigns[t]?n:e.assigns[t],vn=(e,t)=>n=>(n.assigns[e]=t,St(n)),yn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn;return n=>(n.assigns[e]=t(n.assigns[e],n),St(n))};var bn=Object.freeze({__proto__:null,initInteraction:bt,interaction:wt,isNumber:xt,isArray:Ct,isObj:At,isNull:Et,isFn:_t,isInteraction:Tt,Ok:St,Bad:kt,initAccount:Ft,prepAccount:Nt,makeArgument:It,makeUnknown:Rt,makeScript:Ot,makeTransaction:jt,makeGetTransactionStatus:Mt,makeGetTransaction:Lt,makeGetAccount:Bt,makeGetEvents:Ut,makePing:Vt,makeGetBlock:Ht,makeGetBlockHeader:zt,makeGetCollection:Wt,makeGetNetworkParameters:qt,makeSubscribeEvents:Gt,makeGetNodeVerionInfo:Yt,isUnknown:Qt,isScript:Xt,isTransaction:Zt,isGetTransactionStatus:Jt,isGetTransaction:$t,isGetAccount:en,isGetEvents:tn,isPing:nn,isGetBlock:rn,isGetBlockHeader:on,isGetCollection:an,isGetNetworkParameters:sn,isGetNodeVersionInfo:ln,isSubscribeEvents:cn,isOk:un,isBad:dn,why:pn,isAccount:e=>e.kind===P.ACCOUNT,isArgument:e=>e.kind===P.ARGUMENT,pipe:fn,get:gn,put:vn,update:yn,destroy:e=>t=>(delete t.assigns[e],St(t))});function wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return fn(bt(),e)}const xn={tag:null,transaction:null,transactionStatus:null,transactionId:null,encodedData:null,events:null,account:null,block:null,blockHeader:null,latestBlock:null,collection:null,networkParameters:null,streamConnection:null,heartbeat:null,nodeVersionInfo:null},Cn=()=>({...xn});function An(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return fn([Ht,t=>(t.block.isSealed=e,St(t))])}function En(e){return fn([Bt,t=>(t.account.addr=Oe(e),St(t))])}const _n=(e,t,n)=>{const r=new(Be());let i=function(){let e=[],t=!1;async function n(){if(!t){for(t=!0;e.length>0;){const t=e.shift();await(null===t||void 0===t?void 0:t())}t=!1}}return{push:t=>{e.push(t),n()}}}();function o(t){e.on(t,(e=>{i.push((async()=>{r.emit(t,e)}))}))}return e.on("data",(async e=>{const o=Object.keys(e).filter((t=>null!=e[t]&&"tag"!==t));let a=Promise.all(o.map((async r=>{const i={[r]:e[r]};return{channel:r,message:await t(i,n)}})));i.push((async()=>{(await a).forEach((e=>{let{channel:t,message:n}=e;r.emit(t,n)}))}))})),o("close"),o("error"),{on(e,t){return r.on(e,t),this},off(e,t){return r.off(e,t),this},close:()=>{e.close()}}};const Tn=async e=>e,Sn=async(e,t,n)=>{const r=await e.fields.reduce((async(e,r)=>((e=await e)[r.name]=await Dn(r.value,t,[...n,r.name]),e)),Promise.resolve({})),i=e.id&&Pn(t,e.id);return i?await i(r):r},kn={UInt:Tn,Int:Tn,UInt8:Tn,Int8:Tn,UInt16:Tn,Int16:Tn,UInt32:Tn,Int32:Tn,UInt64:Tn,Int64:Tn,UInt128:Tn,Int128:Tn,UInt256:Tn,Int256:Tn,Word8:Tn,Word16:Tn,Word32:Tn,Word64:Tn,Word128:Tn,Word256:Tn,UFix64:Tn,Fix64:Tn,String:Tn,Character:Tn,Bool:Tn,Address:Tn,Void:async()=>null,Optional:async(e,t,n)=>e?await Dn(e,t,n):null,Reference:Tn,Array:async(e,t,n)=>await Promise.all(e.map((e=>new Promise((async r=>r(await Dn(e,t,[...n,e.type]))))))),Dictionary:async(e,t,n)=>await e.reduce((async(e,r)=>((e=await e)[await Dn(r.key,t,[...n,r.key])]=await Dn(r.value,t,[...n,r.key]),e)),Promise.resolve({})),Event:Sn,Resource:Sn,Struct:Sn,Enum:Sn,Type:async e=>e.staticType,Path:Tn,Capability:Tn,InclusiveRange:async(e,t,n)=>{const r=["start","end","step"];return await Object.keys(e).reduce((async(i,o)=>(i=await i,r.includes(o)&&(i[o]=await Dn(e[o],t,[...n,o])),i)),Promise.resolve({}))}},Pn=(e,t)=>{const n=Object.keys(e).find((e=>{if(/^\/.*\/$/.test(e)){return new RegExp(e.substring(1,e.length-1)).test(t)}return e===t}));return t&&n&&e[n]},Dn=async(e,t,n)=>{let r=Pn(t,e.type);if(!r)throw new Error("Undefined Decoder Error: ".concat(e.type,"@").concat(n.join(".")));return await r(e.value,t,n)},Fn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Object.keys(kn).filter((e=>!Object.keys(t).find((t=>new RegExp(t).test(e))))).reduce(((e,t)=>(e[t]=kn[t],e)),t),i={...r,...t};return Dn(e,i,n)},Nn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.encodedData)return Fn(e.encodedData,t);if(e.transactionStatus)return{...e.transactionStatus,events:await Promise.all(e.transactionStatus.events.map((async function(e){return{type:e.type,transactionId:e.transactionId,transactionIndex:e.transactionIndex,eventIndex:e.eventIndex,data:await Fn(e.payload,t)}})))};if(e.transaction)return e.transaction;if(e.events)return await Promise.all(e.events.map((async function(e){return{blockId:e.blockId,blockHeight:e.blockHeight,blockTimestamp:e.blockTimestamp,type:e.type,transactionId:e.transactionId,transactionIndex:e.transactionIndex,eventIndex:e.eventIndex,data:await Fn(e.payload,t)}})));if(e.account)return e.account;if(e.block)return e.block;if(e.blockHeader)return e.blockHeader;if(e.latestBlock)return v.Rm.deprecate({pkg:"@onflow/decode",subject:"Operating upon data of the latestBlock field of the response object",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/decode/WARNINGS.md#0001-Deprecating-latestBlock-field"}),e.latestBlock;if(e.transactionId)return e.transactionId;if(e.collection)return e.collection;if(e.networkParameters){const t=/^flow-/,n=e.networkParameters.chainId;let r;return r="flow-emulator"===n?"local":t.test(n)?n.replace(t,""):n,{chainId:r}}return e.streamConnection?_n(e.streamConnection,Nn,t):e.heartbeat?e.heartbeat:e.nodeVersionInfo?e.nodeVersionInfo:null},In=e=>"function"===typeof e,Rn=e=>"string"===typeof e,On=()=>/\b(0x\w+)\b/g;function jn(e){return On().test(e)}const Mn=()=>/import\s+"(\w+)"/g;function Ln(e){return Mn().test(e)}const Bn=e=>"function"===typeof e;function Un(e){return y(null!=typeof e.xform,"No type specified for argument: ".concat(e.value)),Bn(e.xform)?e.xform(e.value):Bn(e.xform.asArgument)?e.xform.asArgument(e.value):void y(!1,"Invalid Argument",e)}async function Vn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;if(y(t>0,"Argument Resolve Recursion Limit Exceeded for Arg: ".concat(e.tempId)),Bn(e.resolveArgument)){return Vn(await e.resolveArgument(),t-1)}return e}const Hn=e=>Kn(er(nr(e))),zn=e=>Kn(er(rr(e))),Wn=(e,t)=>Se.Buffer.from(e.padStart(2*t,"0"),"hex"),qn=(Gn=Se.Buffer.from("FLOW-V0.0-transaction").toString("hex"),Yn=32,Se.Buffer.from(Gn.padEnd(2*Yn,"0"),"hex")).toString("hex");var Gn,Yn;const Kn=e=>qn+e,Qn=e=>Wn(e,8),Xn=e=>Wn(e,32),Zn=e=>Se.Buffer.from(JSON.stringify(e),"utf8"),Jn=e=>Se.Buffer.from(e,"utf8"),$n=e=>Se.Buffer.from(e,"hex"),er=e=>ke(e).toString("hex"),tr=e=>{const t=new dt.KN(256);return t.update(Se.Buffer.from(e,"hex")),t.digest().toString("hex")},nr=e=>(sr(e),[Jn(e.cadence||""),e.arguments.map(Zn),Xn(e.refBlock||""),e.computeLimit,Qn(Oe(e.proposalKey.address||"")),e.proposalKey.keyId,e.proposalKey.sequenceNum,Qn(Oe(e.payer)),e.authorizers.map((e=>Qn(Oe(e))))]),rr=e=>(lr(e),[nr(e),ir(e)]),ir=e=>{var t;const n=or(e);return null===(t=e.payloadSigs)||void 0===t?void 0:t.map((e=>({signerIndex:n.get(e.address)||"",keyId:e.keyId,sig:e.sig}))).sort(((e,t)=>e.signerIndex>t.signerIndex?1:e.signerIndex<t.signerIndex?-1:e.keyId>t.keyId?1:e.keyId<t.keyId?-1:0)).map((e=>[e.signerIndex,e.keyId,$n(e.sig)]))},or=e=>{const t=new Map;let n=0;const r=e=>{t.has(e)||(t.set(e,n),n++)};return e.proposalKey.address&&r(e.proposalKey.address),r(e.payer),e.authorizers.forEach(r),t},ar=e=>{cr(e);const t=or(e),n=e=>e.map((e=>{let{address:n,keyId:r,sig:i}=e;return{signerIndex:t.get(n)||"",keyId:r,sig:i}})).sort(((e,t)=>e.signerIndex>t.signerIndex?1:e.signerIndex<t.signerIndex?-1:e.keyId>t.keyId?1:e.keyId<t.keyId?-1:0)).map((e=>[e.signerIndex,e.keyId,$n(e.sig)]));return[[Jn(e.cadence),e.arguments.map(Zn),Xn(e.refBlock),e.computeLimit,Qn(Oe(e.proposalKey.address)),e.proposalKey.keyId,e.proposalKey.sequenceNum,Qn(Oe(e.payer)),e.authorizers.map((e=>Qn(Oe(e))))],n(e.payloadSigs),n(e.envelopeSigs)]},sr=e=>{fr.forEach((t=>wr(e,t))),mr.forEach((t=>wr(e.proposalKey,t,"proposalKey")))},lr=e=>{var t;gr.forEach((t=>wr(e,t))),null===(t=e.payloadSigs)||void 0===t||t.forEach(((e,t)=>{vr.forEach((n=>wr(e,n,"payloadSigs",t)))}))},cr=e=>{fr.forEach((t=>wr(e,t))),mr.forEach((t=>wr(e.proposalKey,t,"proposalKey"))),gr.forEach((t=>wr(e,t))),e.payloadSigs.forEach(((e,t)=>{vr.forEach((n=>wr(e,n,"payloadSigs",t)))})),yr.forEach((t=>wr(e,t))),e.envelopeSigs.forEach(((e,t)=>{br.forEach((n=>wr(e,n,"envelopeSigs",t)))}))},ur=e=>"number"===typeof e,dr=e=>"string"===typeof e,pr=e=>null!==e&&"object"===typeof e,hr=e=>pr(e)&&e instanceof Array,fr=[{name:"cadence",check:dr},{name:"arguments",check:hr},{name:"refBlock",check:dr,defaultVal:"0"},{name:"computeLimit",check:ur},{name:"proposalKey",check:pr},{name:"payer",check:dr},{name:"authorizers",check:hr}],mr=[{name:"address",check:dr},{name:"keyId",check:ur},{name:"sequenceNum",check:ur}],gr=[{name:"payloadSigs",check:hr}],vr=[{name:"address",check:dr},{name:"keyId",check:ur},{name:"sig",check:dr}],yr=[{name:"envelopeSigs",check:hr}],br=[{name:"address",check:dr},{name:"keyId",check:ur},{name:"sig",check:dr}],wr=(e,t,n,r)=>{const{name:i,check:o,defaultVal:a}=t;if(null==e[i]&&null!=a&&(e[i]=a),null==e[i])throw Cr(i,n,r);if(!o(e[i]))throw Ar(i,n,r)},xr=(e,t,n)=>t?null==n?"".concat(t,".").concat(e):"".concat(t,".").concat(n,".").concat(e):e,Cr=(e,t,n)=>new Error("Missing field ".concat(xr(e,t,n))),Ar=(e,t,n)=>new Error("Invalid field ".concat(xr(e,t,n)));function Er(e){let t=new Set(e.authorizations);return e.proposer&&t.add(e.proposer),Array.isArray(e.payer)?e.payer.forEach((e=>t.delete(e))):t.delete(e.payer),Array.from(t)}function _r(e){let t=new Set(Array.isArray(e.payer)?e.payer:[e.payer]);return Array.from(t)}const Tr=e=>{const t=e.proposer?{address:je(e.accounts[e.proposer].addr),keyId:e.accounts[e.proposer].keyId,sequenceNum:e.accounts[e.proposer].sequenceNum}:{};return{cadence:e.message.cadence,refBlock:e.message.refBlock||null,computeLimit:e.message.computeLimit,arguments:e.message.arguments.map((t=>e.arguments[t].asArgument)),proposalKey:t,payer:je(e.accounts[Array.isArray(e.payer)?e.payer[0]:e.payer].addr),authorizers:(()=>{const t=e.authorizations.map((t=>je(e.accounts[t].addr))).reduce(((e,t)=>e.find((e=>e===t))?e:[...e,t]),[]);return null!==t&&void 0!==t&&t[0]?t:[]})(),payloadSigs:Er(e).map((t=>({address:je(e.accounts[t].addr),keyId:e.accounts[t].keyId,sig:e.accounts[t].signature}))),envelopeSigs:_r(e).map((t=>({address:je(e.accounts[t].addr),keyId:e.accounts[t].keyId,sig:e.accounts[t].signature})))}},Sr=e=>(e=>tr(er(ar(e))))(e),kr=5,Pr=e=>"".concat(je(e.addr),"-").concat(e.keyId),Dr=e=>e&&("[object Function]"===Object.prototype.toString.call(e)||"function"===typeof e||e instanceof Function),Fr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("-")};var Nr=function(e){return e.PAYER="payer",e.PROPOSER="proposer",e.AUTHORIZATIONS="authorizations",e}(Nr||{});function Ir(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return t<=0?e:Array.isArray(e)?Ir(e.flatMap((e=>e)),t-1):e}function Rr(e,t){"string"!==typeof t.addr||"number"!==typeof t.keyId&&"string"!==typeof t.keyId?t.tempId=t.tempId||_():t.tempId=Pr(t);const n=e.accounts[t.tempId]||t;return e.accounts[t.tempId]||(e.accounts[t.tempId]=t),e.accounts[t.tempId].role.proposer=n.role.proposer||t.role.proposer,e.accounts[t.tempId].role.payer=n.role.payer||t.role.payer,e.accounts[t.tempId].role.authorizer=n.role.authorizer||t.role.authorizer,e.accounts[t.tempId]}function Or(e){const t=Ir(e),n=new Set,r=t.map((e=>{const t=Fr(e.tempId,e.role.payer,e.role.proposer,e.role.authorizer,e.role.param);return n.has(t)?null:(n.add(t),e)})).filter((e=>null!==e));return r}async function jr(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kr,{debugLogger:i}=arguments.length>3?arguments[3]:void 0;if(r<=0)throw new Error("recurseResolveAccount Error: Depth limit (".concat(kr,") reached. Ensure your authorization functions resolve to an account after ").concat(kr," resolves."));let o=e.accounts[t];if(!o)return null;if(i("account: ".concat(o.tempId),Math.max(kr-r,0)),null!==(n=o)&&void 0!==n&&n.resolve){var a;if(Dr(null===(a=o)||void 0===a?void 0:a.resolve)){i("account: ".concat(o.tempId," -- cache MISS"),Math.max(kr-r,0));const{resolve:t,...n}=o;let a=await t(n,function(e,t){try{return{f_type:"PreSignable",f_vsn:"1.0.1",roles:e.role,cadence:t.message.cadence,args:t.message.arguments.map((e=>t.arguments[e].asArgument)),data:{},interaction:t,voucher:Tr(t)}}catch(n){throw console.error("buildPreSignable",n),n}}(n,e));a=Array.isArray(a)?a:[a];let s=Ir(a);s=s.map((t=>Rr(e,t))),o.resolve=s.map((e=>e.tempId)),o=Rr(e,o);const l=await Promise.all(s.map((async t=>await jr(e,t.tempId,r-1,{debugLogger:i}))));return l?Ir(l):o.tempId}return i("account: ".concat(o.tempId," -- cache HIT"),Math.max(kr-r,0)),o.resolve}return o.tempId}const Mr=e=>null===e?[]:Array.isArray(e)?e:[e];async function Lr(e,t,n){let{debugLogger:r}=n;y(e&&"object"===typeof e,"resolveAccountType Error: ix not defined"),y(t===Nr.PAYER||t===Nr.PROPOSER||t===Nr.AUTHORIZATIONS,"resolveAccountType Error: type must be 'payer', 'proposer' or 'authorizations'");let i=Mr(e[t]),o=[];for(let a of i){let t=e.accounts[a];y(Boolean(t),"resolveAccountType Error: account not found");let n=await jr(e,a,kr,{debugLogger:r});n=Array.isArray(n)?n:[n];let i=Or(n.map((t=>e.accounts[t])));o=o.concat(i)}if(y(o.length>0||t===Nr.AUTHORIZATIONS,"resolveAccountType Error: no ".concat(t," accounts were found")),t===Nr.PAYER&&(o=o.filter((e=>!0===e.role.payer))),t===Nr.PROPOSER&&(o=o.filter((e=>!0===e.role.proposer))),t===Nr.AUTHORIZATIONS&&(o=o.filter((e=>!0===e.role.authorizer))),e[t]=Array.isArray(e[t])?[...new Set(o.map((e=>e.tempId)))]:o[0].tempId,t===Nr.PAYER){let t;for(const n of e[Nr.PAYER]){let r=e.accounts[n];if(t){if(t!==r.addr)throw new Error("resolveAccountType Error: payers from different accounts detected")}else t=r.addr}}}function Br(e,t){return async function(n){const r=e.accounts[n];if(null!=r.signature&&void 0!==r.signature)return;const{signature:i}=await r.signingFunction(function(e,t,n){try{return{f_type:"Signable",f_vsn:"1.0.1",message:t,addr:Oe(e.addr),keyId:e.keyId,roles:e.role,cadence:n.message.cadence,args:n.message.arguments.map((e=>n.arguments[e].asArgument)),data:{},interaction:n,voucher:Tr(n)}}catch(r){throw console.error("buildSignable",r),r}}(r,t,e));e.accounts[n].signature=i}}function Ur(e){const t=Oe((Array.isArray(e.payer)?e.accounts[e.payer[0]]:e.accounts[e.payer]).addr||""),n=e.proposer?{address:Oe(e.accounts[e.proposer].addr)||"",keyId:e.accounts[e.proposer].keyId||0,sequenceNum:e.accounts[e.proposer].sequenceNum||0}:{};return{cadence:e.message.cadence,refBlock:e.message.refBlock,computeLimit:e.message.computeLimit,arguments:e.message.arguments.map((t=>e.arguments[t].asArgument)),proposalKey:n,payer:t,authorizers:e.authorizations.map((t=>Oe(e.accounts[t].addr)||"")).reduce(((e,t)=>e.find((e=>e===t))?e:[...e,t]),[])}}const Vr=e=>e,Hr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vr;return async n=>(await _e.get("debug.".concat(e))&&await t(n,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("debug[".concat(e,"] ---\n"),...n,"\n\n\n---")}),(e=>["\nAccounts:",{proposer:e.proposer,authorizations:e.authorizations,payer:e.payer},"\n\nDetails:",e.accounts].filter(Boolean))),n)},zr=fn([async function(e){if(!Zt(e)&&!Xt(e))return e;var t=gn(e,"ix.cadence");if(y(In(t)||Rn(t),"Cadence needs to be a function or a string."),In(t)&&(t=await t({})),y(Rn(t),"Cadence needs to be a string at this point."),y(!jn(t)||!Ln(t),"Both account identifier and contract identifier syntax not simultaneously supported."),jn(t)&&(t=await _e().where(/^0x/).then((e=>Object.entries(e).reduce(((e,t)=>{let[n,r]=t;const i=new RegExp("(\\b"+n+"\\b)","g");return e.replace(i,r)}),t)))),Ln(t))for(const[n,r]of function(e){return e.matchAll(Mn())}(t)){const e=await _e().get("system.contracts.".concat(r));e?t=t.replace(n,"import ".concat(r," from ").concat(je(e))):v.Rm({title:"Contract Placeholder not found",message:"Cannot find a value for contract placeholder ".concat(r,". Please add to your flow.json or explicitly add it to the config 'contracts.*' namespace."),level:v.A_.warn})}return e.message.cadence=t,e},Hr("cadence",((e,t)=>t(e.message.cadence))),async function(e){return Zt(e)&&(e.message.computeLimit=e.message.computeLimit||await _e.get("fcl.limit"),e.message.computeLimit||(v.Rm.deprecate({pkg:"FCL/SDK",subject:"The built-in default compute limit (DEFAULT_COMPUTE_LIMIT=10)",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0009-deprecate-default-compute-limit"}),e.message.computeLimit=100)),e},Hr("compute limit",((e,t)=>t(e.message.computeLimit))),async function(e){if(Zt(e)||Xt(e))for(let[t,n]of Object.entries(e.arguments)){const r=await Vn(n);e.arguments[t].asArgument=Un(r)}return e},Hr("arguments",((e,t)=>t(e.message.arguments,e.message))),async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Zt(e)){Array.isArray(e.payer)||v.Rm.deprecate({pkg:"FCL",subject:'"ix.payer" must be an array. Support for ix.payer as a singular',message:"See changelog for more info."});let[r,i]=function(){const e=[];return[function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.push(Array(4*n).fill(" ").join("-")+t)},function(){return e.reduce(((e,t)=>e+"\n"+t))}]}();try{await Lr(e,Nr.PROPOSER,{debugLogger:r}),await Lr(e,Nr.AUTHORIZATIONS,{debugLogger:r}),await Lr(e,Nr.PAYER,{debugLogger:r}),await async function(e,t){const n=Array.isArray(e.payer)?e.payer:[e.payer],r=Array.isArray(e.authorizations)?e.authorizations:[e.authorizations],i=null===e.proposer?[]:Array.isArray(e.proposer)?e.proposer:[e.proposer],o=Object.keys(e.accounts),a=[...new Set(n.concat(r,i))];for(const s of o)a.find((e=>e===s))||delete e.accounts[s]}(e),t.enableDebug&&console.debug(i())}catch(n){throw console.error("=== SAD PANDA ===\n\n",n,"\n\n=== SAD PANDA ==="),n}}return e},Hr("accounts",((e,t,n)=>t(...n(e)))),async function(e){if(Zt(e)&&null==e.message.refBlock){const t=await _e().get("accessNode.api"),n=await _e.first(["sdk.transport","sdk.send"],ut);y(n,"Required value for sdk.transport is not defined in config. See: ".concat("https://github.com/onflow/fcl-js/blob/master/packages/sdk/CHANGELOG.md#0057-alpha1----2022-01-21")),e.message.refBlock=(await n(wn([An()]),{config:_e,response:Cn,Buffer:Se.Buffer,ix:bn},{node:t}).then(Nn)).id}return e},async function(e){if(Zt(e)){var t=Object.values(e.accounts).find((e=>e.role.proposer));if(y(t,"Transactions require a proposer"),null==t.sequenceNum){const n=await _e().get("accessNode.api"),r=await _e.first(["sdk.transport","sdk.send"],ut);y(r,"Required value for sdk.transport is not defined in config. See: ".concat("https://github.com/onflow/fcl-js/blob/master/packages/sdk/CHANGELOG.md#0057-alpha1----2022-01-21")),e.accounts[t.tempId].sequenceNum=await r(await wn([En(t.addr)]),{config:_e,response:Cn,Buffer:Se.Buffer,ix:bn},{node:n}).then(Nn).then((e=>e.keys)).then((e=>e.find((e=>e.index===t.keyId)))).then((e=>e.sequenceNumber))}}return e},async function(e){if(Zt(e))try{let t=Er(e);const n=Hn(Ur(e));await Promise.all(t.map(Br(e,n)));let r=_r(e);const i=zn({...Ur(e),payloadSigs:t.map((t=>({address:e.accounts[t].addr||"",keyId:e.accounts[t].keyId||0,sig:e.accounts[t].signature||""})))});await Promise.all(r.map(Br(e,i)))}catch(t){throw console.error("Signatures",t,{ix:e}),t}return e},Hr("signatures",((e,t,n)=>t(...n(e)))),async function(e){for(let t of Object.keys(e.accounts))e.accounts[t].addr=Oe(e.accounts[t].addr);return e},async function(e){return fn(e,gn(e,"ix.validators",[]).map((e=>t=>e(t,{Ok:St,Bad:kt}))))},async function(e){const t=gn(e,"ix.voucher-intercept");return _t(t)&&await t(Tr(e)),e},Hr("resolved",((e,t)=>t(e)))]);function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){const[e,n]=t;return Wr(((t,r)=>{let{Ok:i,Bad:o}=r;return e?i(t):o(t,n)}))}const[r]=t;return e=>r(e,{Ok:St,Bad:kt})}const qr=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await _e.first(["sdk.transport","sdk.send"],t.send||ut);Wr(n,"Required value for sdk.transport is not defined in config. See: ".concat("https://github.com/onflow/fcl-js/blob/master/packages/sdk/CHANGELOG.md#0057-alpha1----2022-01-21"));const r=await _e.first(["sdk.resolve"],t.resolve||zr);return t.node=t.node||await _e().get("accessNode.api"),Array.isArray(e)&&(e=fn(bt(),e)),n(await r(e),{config:_e,response:Cn,ix:bn,Buffer:Se.Buffer},t)};async function Gr(e){const t=await _e().where(/^decoder\./),n=Object.entries(t).map((e=>{let[t,n]=e;return t="/".concat(t.replace(/^decoder\./,""),"$/"),[t,n]}));return Nn(e,Object.fromEntries(n))}class Yr extends Error{constructor(e){super("\n        Encode Message From Signable Error: Unable to determine message encoding for signer addresss: ".concat(e,". \n        Please ensure the address: ").concat(e," is intended to sign the given transaction as specified by the transaction signable.\n      ").trim()),this.name="Unable To Determine Message Encoding For Signer Addresss"}}function Kr(e){return yn("ix.validators",(t=>Array.isArray(t)?t.push(e):[e]))}function Qr(e){return fn([t=>(t.block.height=e,t),Kr((e=>{if("boolean"===typeof e.block.isSealed)throw new Error("Unable to specify both block height and isSealed.");if(e.block.id)throw new Error("Unable to specify both block height and block id.");return e}))])}function Xr(e){return fn([t=>(t.block.id=e,St(t)),Kr(((e,t)=>{let{Ok:n,Bad:r}=t;return en(e)?r(e,"Unable to specify a block id with a Get Account interaction."):"boolean"===typeof e.block.isSealed?r(e,"Unable to specify both block id and isSealed."):e.block.height?r(e,"Unable to specify both block id and block height."):n(e)}))])}function Zr(e){let{height:t,id:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return y(!(n&&t),'Method: account -- Cannot pass "id" and "height" simultaneously'),n?qr([En(e),Xr(n)],r).then(Nn):t?qr([En(e),Qr(t)],r).then(Nn):qr([En(e)],r).then(Nn)}function Jr(){let{sealed:e=!1,id:t,height:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(!(e&&t||e&&n),'Method: block -- Cannot pass "sealed" with "id" or "height"'),y(!(t&&n),'Method: block -- Cannot pass "id" and "height" simultaneously'),t?qr([An(),Xr(t)],r).then(Nn):n?qr([An(),Qr(n)],r).then(Nn):qr([An(e)],r).then(Nn)}function $r(){return fn([Yt,e=>St(e)])}async function ei(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return qr([$r()],e).then(Nn)}function ti(){return fn((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>Nt(e,{role:k.AUTHORIZER}))))}function ni(e,t,n,r){return{addr:e,signingFunction:t,keyId:n,sequenceNum:r}}function ri(e,t,n){return"undefined"===typeof t&&"undefined"===typeof n||v.Rm.deprecate({pkg:"FCL/SDK",subject:"Passing a start and end into getEvents",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0005-deprecate-start-end-get-events-builder"}),fn([Ut,r=>(r.events.eventType=e,r.events.start=t,r.events.end=n,St(r))])}function ii(e,t,n){return fn([Ut,r=>(r.events.eventType=e,r.events.start=t,r.events.end=n,St(r))])}function oi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return fn([Ut,n=>(n.events.eventType=e,n.events.blockIds=t,St(n))])}function ai(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return fn([zt,t=>(t.block.isSealed=e,St(t))])}function si(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return fn([Wt,t=>(t.collection.id=e,t)])}function li(e){return fn([Mt,t=>(t.transaction.id=e,St(t))])}function ci(e){return fn([Lt,t=>(t.transaction.id=e,St(t))])}function ui(){return fn([qt,e=>St(e)])}function di(e){return t=>(t.message.computeLimit=e,t)}function pi(e){return fn(e.map(It))}function hi(e,t){return{value:e,xform:t}}function fi(e){return Nt(e,{role:k.PROPOSER})}function mi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)||(e=[e]),fn(e.map((e=>Nt(e,{role:k.PAYER}))))}function gi(){return Vt}function vi(e){return fn([t=>(t.message.refBlock=e,St(t))])}function yi(){return fn([Ot,vn("ix.cadence",ft(...arguments))])}const bi=[],wi=null;function xi(){return fn([jt,vn("ix.cadence",ft(...arguments)),e=>(e.message.refBlock=e.message.refBlock||wi,e.authorizations=e.authorizations||bi,St(e))])}function Ci(e){return vn("ix.voucher-intercept",e)}function Ai(e){let{startBlockId:t,startHeight:n,eventTypes:r,addresses:i,contracts:o,heartbeatInterval:a}=e;return y(!(t&&n),"SDK Subscribe Events Error: Cannot set both startBlockId and startHeight."),fn([Gt,e=>(e.subscribeEvents.startBlockId=null!==t&&void 0!==t?t:null,e.subscribeEvents.startHeight=null!==n&&void 0!==n?n:null,e.subscribeEvents.eventTypes=null!==r&&void 0!==r?r:null,e.subscribeEvents.addresses=null!==i&&void 0!==i?i:null,e.subscribeEvents.contracts=null!==o&&void 0!==o?o:null,e.subscribeEvents.heartbeatInterval=null!==a&&void 0!==a?a:null,St(e))])}const Ei=e=>e;function _i(e){return["SIGNATURE",e.addr,e.keyId].join(".")}function Ti(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){const n={...t,...e,resolve:null,signingFunction:e.signingFunction||t.signingFunction||function(e){return{addr:n.addr,keyId:n.keyId,signature:_i(n)}}};return n}}const Si={proposer:!1,authorizer:!1,payer:!1};function ki(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{authorizations:[]};return function(t){return{...t,tempId:e.tempId||"AUTHZ_RESOLVE_MANY",resolve:()=>[e.proposer&&Ti(e.proposer)({role:{...Si,proposer:!0}}),...e.authorizations.map(Ti).map((e=>e({role:{...Si,authorizer:!0}}))),e.payer&&Ti(e.payer)({role:{...Si,payer:!0}})].filter(Boolean)}}}var Pi=Object.freeze({__proto__:null,mockSend:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ei;return async function(t){switch(t=await t,!0){case en(t):return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return y(e.account,"mockAccountResponse(ix) -- ix.account is missing",e),y(e.account.addr,"mockAccountResponse(ix) -- ix.account.addr is missing",e),{account:{addr:e.account.addr,keys:Array.from({length:t},((e,t)=>({index:t,sequenceNumber:42})))}}}(t);case rn(t):return{tag:"GET_BLOCK",block:{id:"32"}};default:return e(t)}}},authzFn:Ti,authzResolve:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){const{tempId:n,...r}=e;return{...t,tempId:n||"WITH_RESOLVE",resolve:Ti(r)}}},authzResolveMany:ki,authzDeepResolveMany:function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{authorizations:[]},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(r){const i=t.tempId||"AUTHZ_DEEP_RESOLVE_MANY";return{...r,tempId:i,resolve:n>0?e(t,n-1)(r).resolve:ki(t)(r).resolve}}},sig:_i,idof:e=>"".concat(je(e.addr),"-").concat(e.keyId),run:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return wn([vi("123"),...e]).then(zr)}});const Di=e=>v.Rm.deprecate({pkg:"FCL/SDK",message:"The params builder has been removed from the Flow JS-SDK/FCL.",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0001-deprecate-params",level:v.A_.error}),Fi=e=>v.Rm.deprecate({pkg:"FCL/SDK",message:"The param builder has been removed from the Flow JS-SDK/FCL.",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0001-deprecate-params",level:v.A_.error});var Ni=n(65094),Ii=n(92367),Ri=/^[0-9]+$/,Oi=function(e,t){var n=Ri.test(e),r=Ri.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},ji=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,Mi=function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new Error("Invalid input");var n=e.match(ji),r=t.match(ji);if(!n||!r)throw new Error("Invalid input");for(var i=1;i<=3;i++){if(parseInt(n[i])>parseInt(r[i]))return 1;if(parseInt(n[i])<parseInt(r[i]))return-1}if(n[4]&&r[4])for(var o=(n[4]||"").split("."),a=(r[4]||"").split("."),s=0;s<Math.max(o.length,a.length);s++){if(void 0===o[s])return-1;if(void 0===a[s])return 1;var l=Oi(o[s],a[s]);if(0!==l)return l}return 0};const Li="1.10.0",Bi=e=>t=>typeof t===e,Ui=e=>null!=e,Vi=Bi("object"),Hi=Bi("string"),zi=Bi("function"),Wi=Bi("number");function qi(e){return zi(e)?e(hi,Ni):[]}async function Gi(e){let t,{url:n}=e;y("undefined"!==typeof n,"retrieve({ url }) -- url must be defined");try{t=await Re()(n)}catch(r){throw new Error("httpDocumentResolver Error: Failed to retrieve document.")}return t.ok?await t.json():null}const Yi=new Map([["http",Gi],["https",Gi]]);async function Ki(e){var t,n,r,i;let{network:o,template:a}=e;y("1.1.0"===a.f_version,"deriveCadenceByNetwork110({ template }) -- template must be version 1.0.0");const s={};return null===a||void 0===a||null===(t=a.data)||void 0===t||t.dependencies.forEach((e=>{e.contracts.forEach((e=>{const t=e.contract;e.networks.forEach((e=>{e.network===o&&(s[t]=e.address)})),y(void 0!==s[t],"deriveCadenceByNetwork110 -- Could not find contracts Network Address: ".concat(o," ").concat(t))}))})),y(Object.keys(s).length===(null===a||void 0===a||null===(n=a.data)||void 0===n?void 0:n.dependencies.length),"deriveCadenceByNetwork110 -- Could not find contracts for import dependencies: ".concat(s)),y(Object.keys(s).length===Object.values(s).length,"deriveCadenceByNetwork110 -- Could not find all addresses for network ".concat(o," dependencies:  ").concat(s)),y(null===a||void 0===a||null===(r=a.data)||void 0===r||null===(r=r.cadence)||void 0===r?void 0:r.body,"no cadence found -- Could not replace import dependencies: ".concat(s)),function(e){let{cadence:t,networkDependencies:n}=e;return Object.keys(n).reduce(((e,t)=>{const r=n[t],i=new RegExp('import "\\b'.concat(t,'\\b"'),"g");return e.replace(i,"import ".concat(t," from ").concat(r))}),t)}({cadence:null===a||void 0===a||null===(i=a.data)||void 0===i||null===(i=i.cadence)||void 0===i?void 0:i.body,networkDependencies:s})}async function Qi(e){let{network:t,template:n}=e;switch(y(void 0!=t,"deriveCadenceByNetwork({ network }) -- network must be defined"),y("string"===typeof t,"deriveCadenceByNetwork({ network }) -- network must be a string"),y(void 0!=n,"deriveCadenceByNetwork({ template }) -- template must be defined"),y("object"===typeof n,"deriveCadenceByNetwork({ template }) -- template must be an object"),y("InteractionTemplate"===n.f_type,"deriveCadenceByNetwork({ template }) -- template must be an InteractionTemplate"),n.f_version){case"1.1.0":return await Ki({network:t,template:n});case"1.0.0":return await async function(e){var t;let{network:n,template:r}=e;return y("1.0.0"===r.f_version,"deriveCadenceByNetwork100({ template }) -- template must be version 1.0.0"),Object.keys(null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.dependencies).map((e=>{var t;const i=Object.values(null===r||void 0===r||null===(t=r.data)||void 0===t||null===(t=t.dependencies)||void 0===t?void 0:t[e]);y(void 0!==i,"deriveCadenceByNetwork100 -- Could not find contracts for dependency placeholder: ".concat(e)),y(i.length>0,"deriveCadenceByNetwork100 -- Could not find contracts for dependency placeholder: ".concat(e));const o=i[0],a=null===o||void 0===o?void 0:o[n];return y(a,"deriveCadenceByNetwork100 -- Could not find ".concat(n," network information for dependency: ").concat(e)),[e,null===a||void 0===a?void 0:a.address]})).reduce(((e,t)=>{let[n,r]=t;const i=new RegExp("(\\b"+n+"\\b)","g");return e.replace(i,r)}),r.data.cadence)}({network:t,template:n});default:throw new Error("deriveCadenceByNetwork Error: Unsupported template version")}}let Xi={},Zi=!1;async function Ji(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=await _e.get("flow.network"),n=await _e.get("env");n&&!Zi&&(v.Rm.deprecate({pkg:"FCL",subject:'Using the "env" configuration key for specifying the flow network',message:"Configuring to specify flow network is no longer required",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/fcl/TRANSITIONS.md#0001-deprecate-env-config-key"}),Zi=!0);const r=e.node||await _e.get("accessNode.api");if(!r){if(t)return t;if(n)return n;throw new Error('Either the "accessNode.api" config key or opts.node must be set')}if(Xi[r])try{return await Xi[r]}catch{}Xi[r]||(Xi[r]=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await qr([ui()],e).then(Gr)).chainId}(e).catch((e=>{throw Xi[r]=null,e})));try{return await Xi[r]}catch(i){if(t)return t;if(n)return n;throw new Error("Error getting chainId from access node - are you using the correct access node endpoint.  If running locally, is your emulator up-to-date? ".concat(i.message))}}function $i(){return"undefined"!==typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!==typeof navigator&&/iPad/.test(navigator.userAgent)}function eo(){return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent)||$i()}async function to(e){Hi(null===e||void 0===e?void 0:e.template)&&(e.template=await async function(e){let{url:t}=e;y("undefined"!==typeof t,"retrieve({ url }) -- url must be defined"),y("string"===typeof t,"retrieve({ url }) -- url must be a string");const n=await _e().where(/^document\.resolver\./);Object.keys(n).map((e=>{const t=n[e],r=e.replace(/^document\.resolver\./,"");Yi.set(r,t)}));const r=/^(.*):\/\/([A-Za-z0-9\-\.]+)(:[0-9]+)?(.*)$/.exec(t);y(r,"Failed to parse URL");const i=r[1];y(r,"Failed to parse URL protocol");const o=Yi.get(i);return y(o,"No resolver found for protcol=".concat(i)),await o({url:t})}({url:null===e||void 0===e?void 0:e.template}));let t={};null!==e&&void 0!==e&&e.template&&(t=await async function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=n.template,i=await Ji(n),o={};switch(r.f_version){case"1.0.0":const n=Object.keys(null===r||void 0===r||null===(e=r.data)||void 0===e?void 0:e.dependencies);for(let e of n){var a;let t=null===r||void 0===r||null===(a=r.data)||void 0===a?void 0:a.dependencies[e];const n=Object.keys(t);y(n.length>0,"FCL configureDependencies Error: No contracts found in template for placeholder=".concat(e));const s=t[n[0]][i];y(s,"FCL configureDependencies Error: No dependency information for placeholder=".concat(e," contract=").concat(n[0]," network=").concat(i)),y(null===s||void 0===s?void 0:s.address,"FCL configureDependencies Error: No address information for placeholder=".concat(e," contract=").concat(n[0]," network=").concat(i)),o[e]=je(null===s||void 0===s?void 0:s.address)}return o;case"1.1.0":return null===r||void 0===r||null===(t=r.data)||void 0===t||null===(t=t.dependencies)||void 0===t||t.forEach((e=>{e.contracts.forEach((e=>{const t=e.contract;e.networks.forEach((e=>{e.network===i&&(o[t]=je(null===e||void 0===e?void 0:e.address))})),y(o[t],"networkAddress -- Could not find contracts Network Address: ".concat(i," ").concat(t))}))})),o;default:throw new Error("FCL configureDependencies Error: Unsupported template version")}}({template:e.template}));const n=e.cadence||await Qi({template:e.template,network:await Ji(e)});return e.cadence=n,e.dependencies=t,e}async function no(e,t){y(Ui(t),"".concat(e,"(opts) -- opts is required")),y(Vi(t),"".concat(e,"(opts) -- opts must be an object")),y(!(t.cadence&&t.template),"".concat(e,"({ template, cadence }) -- cannot pass both cadence and template")),y(Ui(t.cadence||(null===t||void 0===t?void 0:t.template)),"".concat(e,"({ cadence }) -- cadence is required")),y(Hi(t.cadence)||(null===t||void 0===t?void 0:t.template),"".concat(e,"({ cadence }) -- cadence must be a string")),y(await _e().get("accessNode.api"),"".concat(e,'(opts) -- Required value for "accessNode.api" not defined in config. See: ',"https://github.com/onflow/flow-js-sdk/blob/master/packages/fcl/src/exec/query.md#configuration"))}async function ro(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await async function(e){return no("query",e)}(e),e=await to(e),_e().overload(e.dependencies||{},(async()=>qr([yi(e.cadence),pi(qi(e.args||[])),e.limit&&"number"===typeof e.limit&&di(e.limit)]).then(Gr)))}const io={"HTTP/RPC":"HTTP/RPC","HTTP/POST":"HTTP/POST","IFRAME/RPC":"IFRAME/RPC","POP/RPC":"POP/RPC","TAB/RPC":"TAB/RPC","EXT/RPC":"EXT/RPC","DEEPLINK/RPC":"DEEPLINK/RPC"},oo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=n=>{const{data:r}=n;"object"===typeof r&&null!=typeof r&&r.type===e&&t((e=>{var t;return e.deprecated&&console.warn("DEPRECATION NOTICE",e.deprecated.message),null===e||void 0===e||null===(t=e.body)||void 0===t||delete t.interaction,e})(r))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)};let ao=!1;const so=globalThis.URL;class lo extends so{constructor(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];super(e,t,...r),ao&&this._url&&!e.endsWith("/")&&this._url.endsWith("/")&&(this._url=this._url.slice(0,-1))}}const co=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,type:e},r=new URLSearchParams(window.location.search).get("fcl_redirect_url");if(r){const e=new lo(r);e.searchParams.append("fclResponseJson",JSON.stringify(n)),window.location.href=e.href}else if(window.location!==window.parent.location)window.parent.postMessage({...t,type:e},"*");else{if(!window.opener)throw new Error("Unable to communicate with parent FCL instance");window.opener.postMessage({...t,type:e},"*")}},uo={f_type:"Service",f_vsn:"1.0.0"},po={f_type:"Identity",f_vsn:"1.0.0"},ho={f_type:"USER",f_vsn:"1.0.0"},fo={f_type:"PollingResponse",f_vsn:"1.0.0"},mo={f_type:"CompositeSignature",f_vsn:"1.0.0"};const go=e=>((e,t)=>Se.Buffer.from(e.padStart(2*t,"0"),"hex"))(e,8),vo=e=>Se.Buffer.from(e,"hex"),yo=function(e){let{address:t,nonce:n,appIdentifier:r}=e,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];y(t,"Encode Message For Provable Authn Error: address must be defined"),y(n,"Encode Message For Provable Authn Error: nonce must be defined"),y(r,"Encode Message For Provable Authn Error: appIdentifier must be defined"),y(n.length>=64,"Encode Message For Provable Authn Error: nonce must be minimum of 32 bytes");const o=((e,t)=>Se.Buffer.from(e.padEnd(2*t,"0"),"hex"))(Se.Buffer.from("FCL-ACCOUNT-PROOF-V0.0").toString("hex"),32);return i?Se.Buffer.concat([o,ke([r,go(Oe(t)),vo(n)])]).toString("hex"):ke([r,go(Oe(t)),vo(n)]).toString("hex")};var bo=Object.freeze({__proto__:null,sendMsgToFCL:co,ready:function(e){oo("FCL:VIEW:READY:RESPONSE",e),co("FCL:VIEW:READY")},close:()=>{co("FCL:VIEW:CLOSE")},approve:e=>{co("FCL:VIEW:RESPONSE",{f_type:"PollingResponse",f_vsn:"1.0.0",status:"APPROVED",reason:null,data:e})},decline:e=>{co("FCL:VIEW:RESPONSE",{f_type:"PollingResponse",f_vsn:"1.0.0",status:"DECLINED",reason:e,data:null})},redirect:e=>{co("FCL:VIEW:RESPONSE",{f_type:"PollingResponse",f_vsn:"1.0.0",status:"REDIRECT",reason:null,data:e})},onMessageFromFCL:oo,encodeMessageFromSignable:(e,t)=>{let n=(e=>{let t=new Set(e.authorizers);return t.add(e.proposalKey.address),t.delete(e.payer),Array.from(t).map(je)})(e.voucher),r=(e=>{let t=new Set([e.payer]);return Array.from(t).map(je)})(e.voucher);const i=n.includes(je(t)),o=r.includes(je(t));if(!i&&!o)throw new Yr(t);const a={cadence:e.voucher.cadence,refBlock:e.voucher.refBlock,computeLimit:e.voucher.computeLimit,arguments:e.voucher.arguments,proposalKey:{...e.voucher.proposalKey,address:Oe(e.voucher.proposalKey.address)},payer:Oe(e.voucher.payer),authorizers:e.voucher.authorizers.map(Oe),payloadSigs:e.voucher.payloadSigs.map((e=>({...e,address:Oe(e.address)})))};return i?Hn(a):zn(a)},CompositeSignature:function(e,t,n){this.f_type=mo.f_type,this.f_vsn=mo.f_vsn,this.addr=je(e),this.keyId=Number(t),this.signature=n},encodeAccountProof:yo,injectExtService:function(e){"authn"===e.type&&null!=e.endpoint?(Array.isArray(window.fcl_extensions)||(window.fcl_extensions=[]),window.fcl_extensions.push(e)):console.warn("Authn service is required")}});const wo=e=>{if(e.appIdentifier){const{appIdentifier:t,address:n,nonce:r,signatures:i}=e;return y(Hi(t),"verifyAccountProof({ appIdentifier }) -- appIdentifier must be a string"),y(Hi(n)&&16===Oe(n).length,"verifyAccountProof({ address }) -- address must be a valid address"),y(/^[0-9a-f]+$/i.test(r),"nonce must be a hex string"),y(Array.isArray(i)&&i.every(((e,t,n)=>"CompositeSignature"===e.f_type)),"Must include an Array of CompositeSignatures to verify"),y(i.map((e=>e.addr)).every(((e,t,n)=>e===n[0])),"User signatures to be verified must be from a single account address"),!0}{const{message:t,address:n,compSigs:r}=e;return y(/^[0-9a-f]+$/i.test(t),"Signed message must be a hex string"),y(Hi(n)&&16===Oe(n).length,"verifyUserSignatures({ address }) -- address must be a valid address"),y(Array.isArray(r)&&r.every(((e,t,n)=>"CompositeSignature"===e.f_type)),"Must include an Array of CompositeSignatures to verify"),y(r.map((e=>e.addr)).every(((e,t,n)=>e===n[0])),"User signatures to be verified must be from a single account address"),!0}},xo=async(e,t)=>{const n="ACCOUNT_PROOF"===e?"verifyAccountProofSignatures":"verifyUserSignatures";let r=await Ji(t);const i=t.fclCryptoContract||{testnet:"0x74daa6f9c7ef24b1",mainnet:"0xb4b82a1c9d21d284",previewnet:"0x40b5b8b2ce81ea4a"}[r];return y(i,"".concat(n,"({ fclCryptoContract }) -- FCLCrypto contract address is unknown for network: ").concat(r,". Please manually specify the FCLCrypto contract address.")),"\n      import FCLCrypto from ".concat(i,"\n\n      access(all) fun main(\n          address: Address, \n          message: String, \n          keyIndices: [Int], \n          signatures: [String]\n      ): Bool {\n        return FCLCrypto.").concat(n,"(address: address, message: message, keyIndices: keyIndices, signatures: signatures)\n      }\n    ")};async function Co(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=je(t[0].addr);wo({message:e,address:r,compSigs:t});let i=[],o=[];for(const a of t)i.push(a.signature),o.push(a.keyId.toString());return ro({cadence:await xo("USER_SIGNATURE",n),args:(t,n)=>[t(r,n.Address),t(e,n.String),t(o,n.Array(n.Int)),t(i,n.Array(n.String))]})}var Ao=Object.freeze({__proto__:null,verifyAccountProof:async function(e,t){let{address:n,nonce:r,signatures:i}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wo({appIdentifier:e,address:n,nonce:r,signatures:i});const a=yo({address:n,nonce:r,appIdentifier:e},!1);let s=[],l=[];for(const c of i)s.push(c.signature),l.push(c.keyId.toString());return ro({cadence:await xo("ACCOUNT_PROOF",o),args:(e,t)=>[e(je(n),t.Address),e(a,t.String),e(l,t.Array(t.Int)),e(s,t.Array(t.String))]})},verifyUserSignatures:Co});const Eo=v.Rm.deprecate({pkg:"FCL",subject:"fcl.verifyUserSignatures()",message:"Please use fcl.AppUtils.verifyUserSignatures()",callback:function(e,t){return Co(e,t)}}),_o=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await _e.first(["sdk.resolve"],t.resolve||zr);return Array.isArray(e)&&(e=await fn(wt(),e)),JSON.stringify(Tr(await n(e)),null,2)};async function To(e){return Object.fromEntries(Object.entries(await _e().where(e)).map((t=>{let[n,r]=t;return[n.replace(e,""),r]})))}const So=/^[0-9a-fA-F]{64}$/,ko="POLL",Po="TIMEOUT",Do=e=>e.status>=4,Fo=e=>e.status>=3,No=e=>e.status>=2,Io=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[N]:async t=>{setTimeout((()=>t.sendSelf(Po)),e.txNotFoundTimeout),t.sendSelf(ko)},[I]:(e,t)=>{e.subscribe(t.from),e.send(t.from,O,e.all())},[R]:(e,t)=>{e.unsubscribe(t.from)},[j]:async(e,t)=>{t.reply(e.all())},[Po]:async t=>{0===Object.keys(t.all()).length&&t.fatalError(new Error("TX status polling failed: no transaction was found within timeout interval (".concat(e.txNotFoundTimeout,"ms)")))},[ko]:async t=>{const n=()=>setTimeout((()=>t.sendSelf(ko)),e.pollRate);let r;const i=t.all();try{r=await(async e=>qr([li(e)]).then(Gr))(t.self())}catch(s){const e=s instanceof We&&404===s.statusCode,r=s.code===Ii.grpc.Code.NotFound;return e||r?n():t.fatalError(s)}var o,a;Do(r)||n(),o=i,a=r,JSON.stringify(o)!==JSON.stringify(a)&&t.broadcast(O,r),t.merge(r)}}},Ro=e=>{if("object"===typeof e&&(e=e.transactionId),null==e)throw new Error("transactionId required");return e},Oo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>W(Io(e),Ro(t))};function jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{txNotFoundTimeout:12500,pollRate:2500};if(!So.test(Ro(e)))throw new Error("Invalid transactionId");function n(n){return G(Ro(e),Oo(t),n)}function r(e){return function(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).suppress||!1;return new Promise(((r,i)=>{const o=n(((n,a)=>{!a&&!n.statusCode||t?e(n)&&(r(n),o()):(i(a||n.errorMessage),o())}))}))}}return{snapshot:function(){return Y(e,Oo(t))},subscribe:n,onceFinalized:r(No),onceExecuted:r(Fo),onceSealed:r(Do)}}jo.isUnknown=e=>e.status>=0,jo.isPending=e=>e.status>=1,jo.isFinalized=No,jo.isExecuted=Fo,jo.isSealed=Do,jo.isExpired=e=>5===e.status;const Mo="TICK",Lo="hwm",Bo=async e=>setTimeout((()=>e.sendSelf(Mo)),await _e().get("fcl.eventPollRate",1e4)),Uo={[Mo]:async e=>{if(!e.hasSubs())return;let t=e.get(Lo);if(null==t)e.put(Lo,await Jr()),e.put(Mo,await Bo(e));else{let n=await Jr();if(e.put(Lo,n),t.height<n.height){const r=await qr([ii(e.self(),t.height+1,n.height)]).then(Gr);for(let t of r)e.broadcast("UPDATED",t.data)}e.put(Mo,await Bo(e))}},[I]:async(e,t)=>{e.hasSubs()||e.put(Mo,await Bo(e)),e.subscribe(t.from)},[R]:(e,t)=>{e.unsubscribe(t.from),e.hasSubs()||(clearTimeout(e.get(Mo)),e.delete(Mo),e.delete(Lo))}},Vo=e=>W(Uo,e);function Ho(e){let t;return t="string"===typeof e?{eventTypes:[e]}:e||{},{subscribe:n=>{const r=qr([Ai(t)]).then(Gr),i=r.then((()=>null)).catch((t=>{if("SDK Send Error: subscribeEvents is not supported by this transport."!==t.message)throw t;if("string"!==typeof e)throw new Error("GRPC fcl.events fallback only supports string (type) filters");return(r=e,{subscribe:e=>G(r,Vo,e)}).subscribe(n);var r}));function o(e){e.forEach((e=>n(e,null)))}function a(e){n(null,e)}return i.then((e=>{e||r.then((e=>e.on("events",o).on("error",a))).catch((e=>{r.then((e=>e.close())),a(e)}))})),()=>{i.then((e=>{e?e():r.then((e=>e.close()))}))}}}}const zo=()=>{throw new Error("Platform specific Core Strategies are not initialized")},Wo={[io["EXT/RPC"]]:zo,[io["HTTP/POST"]]:zo,[io["IFRAME/RPC"]]:zo,[io["POP/RPC"]]:zo,[io["TAB/RPC"]]:zo,[io["EXT/RPC"]]:zo},qo=["ServicePlugin"],Go=["discovery-service"],Yo=e=>{let{coreStrategies:t}=e,n=new Set,r=new Map(Object.entries(t));const i=e=>n=new Set([...e]);return Object.freeze({add:e=>{if(y(Go.includes(e.type),"Service Plugin type ".concat(e.type," is not supported")),"discovery-service"===e.type){const{discoveryServices:t,serviceStrategy:n}=(e=>{const{services:t=[],serviceStrategy:n}=e;y(Array.isArray(t),"Services must be an array");for(const r of t)y(Ui(r.f_type)&&"Service"===r.f_type,"Service is required"),y(Ui(r.type)&&"authn"===r.type,"Service must be type authn. Received ".concat(r.type)),y(r.method in io||n.method===r.method,"Service method ".concat(r.method," is not supported"));return y(Ui(n),"Service strategy is required"),y(Ui(n.method)&&Hi(n.method),"Service strategy method is required"),y(Ui(n.exec)&&zi(n.exec),"Service strategy exec function is required"),{discoveryServices:t,serviceStrategy:n}})(e);i(t),r.has(n.method)?(0,v.Rm)({title:"Add Service Plugin",message:"Service strategy for ".concat(n.method," already exists"),level:v.A_.warn}):r.set(n.method,n.exec)}},getServices:()=>[...n],getStrategy:e=>r.get(e),getStrategies:()=>[...r.keys()]})};let Ko;const Qo=()=>"undefined"!==typeof Ko,Xo=e=>{let{coreStrategies:t}=e;if(Qo())return Ko;const n=Yo({coreStrategies:t});return Ko=n,n},Zo=()=>Qo()?Ko:(console.warn("Registry is not initalized, it will be initialized with stub core strategies"),Xo({coreStrategies:Wo})),Jo=(()=>{const e=new Map;return Object.freeze({add:t=>{const n=(e=>{let t;y(!!e,"No plugins supplied"),t=Array.isArray(e)?[...e]:[e];for(const n of t)y(Ui(n.name),"Plugin name is required"),y(Ui(n.f_type),"Plugin f_type is required"),y(qo.includes(n.f_type),"Plugin type ".concat(n.f_type," is not supported"));return t})(t);for(const r of n)e.set(r.name,r),"ServicePlugin"===r.f_type&&Ko.add(r)},getPlugins:()=>e})})(),$o=async()=>{var e;return[...(null===(e=window)||void 0===e?void 0:e.fcl_extensions)||[],...Zo().getServices()]};const ea="authn",ta="SNAPSHOT",na="UPDATED",ra="UPDATE_RESULTS",ia=async()=>{try{const e=await async function(e){var t;let{types:n}=e;const r=await _e.get("discovery.authn.endpoint");y(Boolean(r),'"discovery.authn.endpoint" in config must be defined.');const i=await _e.get("discovery.authn.include",[]),o=new lo(r);return fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:n,fclVersion:Li,include:i,features:{suggested:await _e.get("discovery.features.suggested",[])},clientServices:await $o(),supportedStrategies:Zo().getStrategies(),userAgent:null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.userAgent,network:await Ji()})}).then((e=>e.json()))}({types:[ea]});z(ea,ra,{results:e})}catch(e){(0,v.Rm)({title:"".concat(e.name," Error fetching Discovery API services."),message:e.message,level:v.A_.error})}},oa={[N]:async e=>{var t,n;t="undefined"===typeof window,n='"fcl.discovery" is only available in the browser.',t&&console.warn("\n      %cFCL Warning\n      ============================\n      ".concat(n,"\n      For more info, please see the docs: https://docs.onflow.org/fcl/\n      ============================\n      "),"font-weight:bold;font-family:monospace;"),"complete"===document.readyState?ia():window.onload=async()=>{ia()}},[ra]:(e,t,n)=>{e.merge(n),e.broadcast(na,{...e.all()})},[I]:(e,t)=>{e.subscribe(t.from),e.send(t.from,na,{...e.all()})},[R]:(e,t)=>e.unsubscribe(t.from),[ta]:async(e,t)=>t.reply({...e.all()})},aa=()=>W(oa,ea),sa={authn:{subscribe:e=>G(ea,aa,e),snapshot:()=>Y(ea,aa),update:()=>ia()}};function la(e){const t=new dt.KN(256);return t.update(Se.Buffer.from(e,"utf8")),t.digest("hex")}function ca(e){let{contractName:t,address:n}=e;return{contractName:t,address:n,contract:""}}function ua(e){const t=[],n=e.match(/import ((\w|,| )+)* from 0x\w+/g)||[];for(const r of n){const e=/import ((\w+|, |)*) from (0x\w+)/g.exec(r),n=/((?:\w+)+),?/g,i=e[1].match(n)||[];for(const r of i)t.push(ca({address:e[3],contractName:r.replace(/,/g,"")}))}return t}async function da(e){let{address:t,contractName:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(void 0!=t,"generateDependencyPin({ address }) -- address must be defined"),Wr(void 0!=n,"generateDependencyPin({ contractName }) -- contractName must be defined"),Wr("string"===typeof t,"generateDependencyPin({ address }) -- address must be a string"),Wr("string"===typeof n,"generateDependencyPin({ contractName }) -- contractName must be a string");const i=[ca({contractName:n,address:t})];for(const s of i){var o;const e=await qr([En(await _e().get(s.address,s.address))],r).then(Gr);if(s.contract=null===(o=e.contracts)||void 0===o?void 0:o[s.contractName],!s.contract)throw console.error("Did not find expected contract",s,e),new Error("Did not find expected contract");const t=ua(s.contract);i.push(...t)}const a=i.map((e=>la(e.contract)));return la((await Promise.all(a)).join(""))}async function pa(e,t){const n=[];for(const r of t){const t=[la(r.network)],{address:i,dependency_pin_block_height:o}=r;if(r.dependency_pin){const n=await da({address:i,contractName:e,blockHeight:o});t.push(la(n))}n.push(t)}return n}async function ha(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=[];for(let e=0;e<(null===r||void 0===r?void 0:r.contracts.length);e++){const t=null===r||void 0===r?void 0:r.contracts[e],n=null===t||void 0===t?void 0:t.contract;i.push(la(n));const o=await pa(n,null===t||void 0===t?void 0:t.networks);i.push(o)}t.push(i)}return t}async function fa(e){let{template:t}=e;switch(y(t,"generateTemplateId({ template }) -- template must be defined"),y("object"===typeof t,"generateTemplateId({ template }) -- template must be an object"),y("InteractionTemplate"===t.f_type,"generateTemplateId({ template }) -- template object must be an InteractionTemplate"),t.f_version){case"1.1.0":return await async function(e){var t;let{template:n}=e;y(n,"generateTemplateId({ template }) -- template must be defined"),y("object"===typeof n,"generateTemplateId({ template }) -- template must be an object"),y("InteractionTemplate"===n.f_type,"generateTemplateId({ template }) -- template object must be an InteractionTemplate"),y("1.1.0"===n.f_version,"generateTemplateId({ template }) -- template object must be an version 1.1.0");const r=n.data,i=await Promise.all(r.messages.map((async e=>[la(e.key),await Promise.all(e.i18n.map((async e=>[la(e.tag),la(e.translation)])))]))),o=await Promise.all(null===r||void 0===r?void 0:r.parameters.sort(((e,t)=>e.index-t.index)).map((async e=>[la(e.label),[la(String(e.index)),la(e.type),await Promise.all(e.messages.map((async e=>[la(e.key),await Promise.all(e.i18n.map((async e=>[la(e.tag),la(e.translation)])))])))]]))),a=[await ha(null===r||void 0===r?void 0:r.dependencies)],s=ke([la(null===n||void 0===n?void 0:n.f_type),la(null===n||void 0===n?void 0:n.f_version),la(null===r||void 0===r?void 0:r.type),la(null===r||void 0===r?void 0:r.interface),i,la(null===r||void 0===r||null===(t=r.cadence)||void 0===t?void 0:t.body),[a],o]).toString("hex");return la(s)}({template:t});case"1.0.0":return await async function(e){let{template:t}=e;Wr(void 0!=t,"generateTemplateId({ template }) -- template must be defined"),Wr("object"===typeof t,"generateTemplateId({ template }) -- template must be an object"),Wr("InteractionTemplate"===t.f_type,"generateTemplateId({ template }) -- template object must be an InteractionTemplate"),Wr("1.0.0"===t.f_version,"generateTemplateId({ template }) -- template object must be an version 1.0.0");const n=t.data,r=await Promise.all(Object.keys(n.messages).map((async e=>{var t;return[la(e),await Promise.all(Object.keys(null===(t=n.messages)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.i18n).map((async t=>{var r;return[la(t),la(null===(r=n.messages)||void 0===r||null===(r=r[e])||void 0===r||null===(r=r.i18n)||void 0===r?void 0:r[t])]})))]}))),i=await Promise.all(Object.keys(null===n||void 0===n?void 0:n.dependencies).map((async e=>{var t;return[la(e),await Promise.all(Object.keys(null===n||void 0===n||null===(t=n.dependencies)||void 0===t?void 0:t[e]).map((async t=>{var r;return[la(t),await Promise.all(Object.keys(null===n||void 0===n||null===(r=n.dependencies)||void 0===r||null===(r=r[e])||void 0===r?void 0:r[t]).map((async r=>{var i,o,a,s,l;return[la(r),[la(null===n||void 0===n||null===(i=n.dependencies)||void 0===i||null===(i=i[e])||void 0===i||null===(i=i[t])||void 0===i?void 0:i[r].address),la(null===n||void 0===n||null===(o=n.dependencies)||void 0===o||null===(o=o[e])||void 0===o||null===(o=o[t])||void 0===o?void 0:o[r].contract),la(null===n||void 0===n||null===(a=n.dependencies)||void 0===a||null===(a=a[e])||void 0===a||null===(a=a[t])||void 0===a?void 0:a[r].fq_address),la(null===n||void 0===n||null===(s=n.dependencies)||void 0===s||null===(s=s[e])||void 0===s||null===(s=s[t])||void 0===s?void 0:s[r].pin),la(String(null===n||void 0===n||null===(l=n.dependencies)||void 0===l||null===(l=l[e])||void 0===l||null===(l=l[t])||void 0===l?void 0:l[r].pin_block_height))]]})))]})))]}))),o=await Promise.all(Object.keys(null===n||void 0===n?void 0:n.arguments).map((async e=>{var t,r,i,o;return[la(e),[la(String(null===n||void 0===n||null===(t=n.arguments)||void 0===t?void 0:t[e].index)),la(null===n||void 0===n||null===(r=n.arguments)||void 0===r?void 0:r[e].type),la((null===n||void 0===n||null===(i=n.arguments)||void 0===i?void 0:i[e].balance)||""),await Promise.all(Object.keys(null===n||void 0===n||null===(o=n.arguments)||void 0===o?void 0:o[e].messages).map((async t=>{var r;return[la(t),await Promise.all(Object.keys(null===n||void 0===n||null===(r=n.arguments)||void 0===r||null===(r=r[e].messages)||void 0===r?void 0:r[t].i18n).map((async r=>{var i;return[la(r),la(null===n||void 0===n||null===(i=n.arguments)||void 0===i||null===(i=i[e].messages)||void 0===i||null===(i=i[t].i18n)||void 0===i?void 0:i[r])]})))]})))]]}))),a=ke([la("InteractionTemplate"),la("1.0.0"),la(null===n||void 0===n?void 0:n.type),la(null===n||void 0===n?void 0:n.interface),r,la(null===n||void 0===n?void 0:n.cadence),i,o]).toString("hex");return la(a)}({template:t});default:throw new Error("generateTemplateId Error: Unsupported template version")}}async function ma(e){let{version:t,address:n,contractName:r}=e;switch(Wr(void 0!=n,"generateDependencyPin({ address }) -- address must be defined"),Wr(void 0!=r,"generateDependencyPin({ contractName }) -- contractName must be defined"),Wr("string"===typeof n,"generateDependencyPin({ address }) -- address must be a string"),Wr("string"===typeof r,"generateDependencyPin({ contractName }) -- contractName must be a string"),t){case"1.1.0":return await da({address:n,contractName:r});case"1.0.0":return await async function(e){let{address:t,contractName:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(void 0!=t,"generateDependencyPin({ address }) -- address must be defined"),Wr(void 0!=n,"generateDependencyPin({ contractName }) -- contractName must be defined"),Wr("string"===typeof t,"generateDependencyPin({ address }) -- address must be a string"),Wr("string"===typeof n,"generateDependencyPin({ contractName }) -- contractName must be a string");const i=[ca({contractName:n,address:t})];for(const s of i){var o;const e=await qr([En(await _e().get(s.address,s.address))],r).then(Gr);if(s.contract=null===(o=e.contracts)||void 0===o?void 0:o[s.contractName],!s.contract)throw console.error("Did not find expected contract",s,e),new Error("Did not find expected contract");const t=ua(s.contract);i.push(...t)}const a=i.map((e=>la(e.contract)));return la(a.join(""))}({address:n,contractName:r});default:throw new Error("deriveCadenceByNetwork Error: Unsupported template version")}}async function ga(e){let{template:t,blockHeight:n,network:r}=e;switch(Wr(void 0!=t,"generateDependencyPin({ template }) -- template must be defined"),Wr("object"===typeof t,"generateDependencyPin({ template }) -- template must be an object"),Wr("InteractionTemplate"===t.f_type,"generateDependencyPin({ template }) -- template must be an InteractionTemplate"),Wr(void 0!=r,"generateDependencyPin({ network }) network must be defined"),Wr(void 0!=n,"generateDependencyPin({ blockHeight }) blockHeight must be defined"),Wr("number"===typeof n,"generateDependencyPin({ blockHeight }) blockHeight must be a number"),t.f_version){case"1.0.0":const e=Object.keys(t.data.dependencies);for(let i of e){const e=t.data.dependencies[i],o=Object.keys(e);for(let a of o){const e=t.data.dependencies[i][a][r];if("undefined"===typeof e)continue;const o=await ma({address:e.address,contractName:e.contract,blockHeight:n});if(o!==e.pin)return(0,v.Rm)({title:"verifyDependencyPinsSame Debug Error",message:"Could not recompute and match dependency pin.\n                                address: ".concat(e.address," | contract: ").concat(e.contract,"\n                                computed: ").concat(o,"\n                                template: ").concat(e.pin,"\n                            "),level:v.A_.debug}),!1}}return!0;case"1.1.0":let a=!1;for(let s=0;s<(null===(i=t.data)||void 0===i?void 0:i.dependencies.length);s++){var i,o;const e=null===(o=t.data)||void 0===o?void 0:o.dependencies[s];for(let i=0;i<(null===e||void 0===e?void 0:e.contracts.length);i++){const o=null===e||void 0===e?void 0:e.contracts[i];for(let e=0;e<(null===o||void 0===o?void 0:o.networks.length);e++){const i=null===o||void 0===o?void 0:o.networks[e];if(i.network===r){const e=await ma({version:t.f_version,address:i.address,contractName:o.contract,blockHeight:n});if(e!==i.dependency_pin.pin)return(0,v.Rm)({title:"verifyDependencyPinsSame Debug Error",message:"Could not recompute and match dependency pin.\n                                    address: ".concat(i.address," | contract: ").concat(o.contract,"\n                                    computed: ").concat(e,"\n                                    template: ").concat(i.pin,"\n                                "),level:v.A_.debug}),!1;a=!0}}}}return a;default:throw new Error("verifyDependencyPinsSame Error: Unsupported template version")}}var va=Object.freeze({__proto__:null,getInteractionTemplateAudits:async function(e){let{template:t,auditors:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wr(void 0!=t,"getInteractionTemplateAudits({ template }) -- template must be defined"),Wr("InteractionTemplate"===t.f_type,"getInteractionTemplateAudits({ template }) -- template must be an InteractionTemplate");let i=await fa({template:t});if(i!==t.id)throw(0,v.Rm)({title:"getInteractionTemplateAudits Debug Error",message:"Could not recompute and match template ID\n                computed: ".concat(i,"\n                template: ").concat(t.id,"\n            "),level:v.A_.debug}),new Error("getInteractionTemplateAudits Error: Could not recompute and match template ID");switch(t.f_version){case"1.1.0":case"1.0.0":const e=n||await _e().get("flow.auditors");Wr(e,"getInteractionTemplateAudits Error: Required configuration for 'fcl.auditors' is not set"),Wr(Array.isArray(e),"getInteractionTemplateAudits Error: Required configuration for 'fcl.auditors' is not an array");let t=r.flowInteractionAuditContract;if(!t){const e=await Ji(r);Wr("mainnet"===e||"testnet"===e,"getInteractionTemplateAudits Error: Unable to determine address for FlowInteractionTemplateAudit contract. Set configuration for 'fcl.network' to 'mainnet' or 'testnet'"),t="mainnet"===e?"0xfd100e39d50a13e6":"0xf78bfc12d0a786dc"}const o=await ro({cadence:"\n        import FlowInteractionTemplateAudit from ".concat(t,"\n        access(all) fun main(templateId: String, auditors: [Address]): {Address:Bool} {\n          return FlowInteractionTemplateAudit.getHasTemplateBeenAuditedByAuditors(templateId: templateId, auditors: auditors)\n        }\n        "),args:(t,n)=>[t(i,n.String),t(e,n.Array(n.Address))]});return o;default:throw new Error("getInteractionTemplateAudits Error: Unsupported template version")}},generateDependencyPin:ma,generateDependencyPinAtLatestSealedBlock:async function(e){let{version:t,address:n,contractName:r}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=await Jr({sealed:!0},i);return ma({version:t,address:n,contractName:r,blockHeight:null===o||void 0===o?void 0:o.height})},generateTemplateId:fa,verifyGeneratedTemplateId:async function(e){let{template:t}=e;return t.id===await fa({template:t})},verifyDependencyPinsSame:ga,verifyDependencyPinsSameAtLatestSealedBlock:async function(e){let{template:t,network:n}=e;const r=await Jr({sealed:!0});return ga({template:t,network:n,blockHeight:null===r||void 0===r?void 0:r.height})},deriveCadenceByNetwork:Qi,getTemplateMessage:function(e){var t,n,r;let{localization:i="en-US",messageKey:o,template:a}=e;switch(Wr(o,"getTemplateMessage({ messageKey }) -- messageKey must be defined"),Wr("string"===typeof o,"getTemplateMessage({ messageKey }) -- messageKey must be a string"),Wr(i,"getTemplateMessage({ localization }) -- localization must be defined"),Wr("string"===typeof i,"getTemplateMessage({ localization }) -- localization must be a string"),Wr(void 0!=a,"getTemplateMessage({ template }) -- template must be defined"),Wr("object"===typeof a,"getTemplateMessage({ template }) -- template must be an object"),Wr("InteractionTemplate"===typeof a.f_type,"getTemplateMessage({ template }) -- template object must be an InteractionTemplate"),a.f_version){case"1.1.0":const e=null===a||void 0===a||null===(t=a.data)||void 0===t||null===(t=t.messages)||void 0===t?void 0:t.find((e=>e.key===o));if(!e)return;const s=null===e||void 0===e||null===(n=e.i18n)||void 0===n?void 0:n.find((e=>e.tag===i));if(!s)return;return s.translation;case"1.0.0":return null===a||void 0===a||null===(r=a.data)||void 0===r||null===(r=r.messages)||void 0===r||null===(r=r[o])||void 0===r||null===(r=r.i18n)||void 0===r?void 0:r[i];default:throw new Error("getTemplateArgumentMessage Error: Unsupported template version")}},getTemplateArgumentMessage:function(e){var t,n,r,i;let{localization:o="en-US",argumentLabel:a,messageKey:s,template:l}=e;switch(Wr(s,"getTemplateArgumentMessage({ messageKey }) -- messageKey must be defined"),Wr("string"===typeof s,"getTemplateArgumentMessage({ messageKey }) -- messageKey must be a string"),Wr(a,"getTemplateArgumentMessage({ argumentLabel }) -- argumentLabel must be defined"),Wr("string"===typeof s,"getTemplateArgumentMessage({ argumentLabel }) -- argumentLabel must be a string"),Wr(o,"getTemplateArgumentMessage({ localization }) -- localization must be defined"),Wr("string"===typeof o,"getTemplateArgumentMessage({ localization }) -- localization must be a string"),Wr(void 0!=l,"getTemplateArgumentMessage({ template }) -- template must be defined"),Wr("object"===typeof l,"getTemplateArgumentMessage({ template }) -- template must be an object"),Wr("InteractionTemplate"===typeof l.f_type,"getTemplateArgumentMessage({ template }) -- template object must be an InteractionTemplate"),l.f_version){case"1.1.0":const e=null===l||void 0===l||null===(t=l.data)||void 0===t||null===(t=t.parameters)||void 0===t?void 0:t.find((e=>e.label===a));if(!e)return;const c=null===e||void 0===e||null===(n=e.messages)||void 0===n?void 0:n.find((e=>e.key===s));if(!c)return;const u=null===c||void 0===c||null===(r=c.i18n)||void 0===r?void 0:r.find((e=>e.tag===o));if(!u)return;return u.translation;case"1.0.0":return null===l||void 0===l||null===(i=l.data)||void 0===i||null===(i=i.arguments)||void 0===i||null===(i=i[a])||void 0===i||null===(i=i.messages)||void 0===i||null===(i=i[s])||void 0===i||null===(i=i.i18n)||void 0===i?void 0:i[o];default:throw new Error("getTemplateArgumentMessage Error: Unsupported template version")}}});function ya(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{old:e,...uo,type:"frame",endpoint:e.endpoint,params:e.params||{},data:e.data||{}}}function ba(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...uo,type:"back-channel-rpc",endpoint:e.endpoint,method:e.method,params:e.params||{},data:e.data||{}}}function wa(e){return null==e?null:(null==e.method&&(e={...e,type:"local-view",method:"VIEW/IFRAME"}),e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...uo,type:e.type||"local-view",method:e.method,endpoint:e.endpoint,data:e.data||{},params:e.params||{}})}function xa(e,t){return e.map((e=>function(e,t){try{return Ca[e.type](e,t)}catch(n){return console.error("Unrecognized FCL Service Type [".concat(e.type,"]"),e,n),e}}(e,t))).filter(Boolean)}const Ca={"back-channel-rpc":ba,"pre-authz":function(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...uo,type:e.type,uid:e.id,endpoint:e.endpoint,method:e.method,identity:{...po,address:je(e.addr),keyId:e.keyId},params:e.params,data:e.data}},authz:function(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...uo,type:e.type,uid:e.id,endpoint:e.endpoint,method:e.method,identity:{...po,address:je(e.addr),keyId:e.keyId},params:e.params,data:e.data}},authn:function(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...uo,type:e.type,uid:e.id,endpoint:e.authn,id:e.pid,provider:{address:je(e.addr),name:e.name,icon:e.icon}}},frame:ya,"open-id":function(e){return null==e?null:"1.0.0"===e.f_vsn?e:null},"user-signature":function(e){if(null==e)return null;if(!e.f_vsn)throw new Error("Invalid user-signature service");return"1.0.0"===e.f_vsn?e:null},"local-view":wa,"account-proof":function(e){if(null==e)return null;if(!e.f_vsn)throw new Error("FCL Normalizer Error: Invalid account-proof service");return"1.0.0"===e.f_vsn?e:null},"authn-refresh":function(e){if(null==e)return null;if(!e.f_vsn)throw new Error("Invalid authn-refresh service");return"1.0.0"===e.f_vsn?e:null}};function Aa(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((t,n)=>n.type===e&&(!t||Mi(n.f_vsn,t.f_vsn)>0)?n:t),null)}function Ea(e){return ke([e.provider.address||e.provider.name||"UNSPECIFIED",e.id]).toString("hex")}async function _a(e){var t=xa(function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}((e=function(e){return e.addr=e.addr?je(e.addr):null,e.paddr=e.paddr?je(e.paddr):null,e}(e)).services||[],await async function(e,t){if(null==e||null==t)return[];const n=new lo(e);n.searchParams.append("code",t);const r=await fetch(n,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json()));if(Array.isArray(r))return r;const i=[];if(Array.isArray(r.authorizations))for(let o of r.authorizations)i.push({type:"authz",keyId:r.keyId,...o});return null!=r.provider&&i.push({type:"authn",id:"wallet-provider#authn",...r.provider}),i}(e.hks,e.code)));const n=Aa(t,"authn");return{...ho,addr:je(e.addr),cid:Ea(n),loggedIn:!0,services:t,expiresAt:e.expires}}const Ta="WC/RPC",Sa="undefined"===typeof window;async function ka(e){var t,n;let{service:r,msg:i={},config:o={},opts:a={},platform:s}=e;!function(){if(Sa)return;Zo().getStrategies().includes(Ta)||v.Rm({title:"FCL WalletConnect Service Plugin",level:v.A_.error,message:"All dApps are expected to register for a WalletConnect projectId & add this to their FCL configuration.  If you do not do so, users will be unable to use certain wallets to interact with your dApp.  See https://developers.flow.com/tools/clients/fcl-js/configure-fcl for more information."})}(),i.data=r.data;const l={services:await To(/^service\./),app:await To(/^app\.detail\./),client:{...o.client,platform:s,fclVersion:Li,fclLibrary:"https://github.com/onflow/fcl-js",hostname:null!==(t=null===(n=window)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.hostname)&&void 0!==t?t:null,network:await Ji(a)}};try{const e=await(async e=>{let{service:t,body:n,config:r,opts:i}=e;return Zo().getStrategy(t.method)({service:t,body:n,config:r,opts:i})})({service:r,body:i,config:l,opts:a});return"REDIRECT"===e.status?(y(r.type===e.data.type,"Cannot shift recursive service type in execService"),await ka({service:e.data,msg:i,config:l,opts:a})):e}catch(c){throw(0,v.Rm)({title:"Error on execService ".concat(null===r||void 0===r?void 0:r.type),message:c,level:v.A_.error}),c}}function Pa(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...mo,addr:Oe(e.addr||e.address),signature:e.signature||e.sig,keyId:e.keyId}}const Da="CURRENT_USER",Fa="CURRENT_USER/UPDATED",Na="SNAPSHOT",Ia="SET_CURRENT_USER",Ra="DEL_CURRENT_USER",Oa='{\n  "f_type": "User",\n  "f_vsn": "1.0.0",\n  "addr":null,\n  "cid":null,\n  "loggedIn":null,\n  "expiresAt":null,\n  "services":[]\n}',ja={[N]:async e=>{"undefined"===typeof window&&console.warn('\n        %cFCL Warning\n        ============================\n        "currentUser" is only available in the browser.\n        For more info, please see the docs: https://docs.onflow.org/fcl/\n        ============================\n        ',"font-weight:bold;font-family:monospace;"),e.merge(JSON.parse(Oa));const t=await _e.first(["fcl.storage","fcl.storage.default"]);if(t.can){const n=await(async e=>{const t=JSON.parse(Oa),n=await e.get(Da);return null!=n&&t.f_vsn!==n.f_vsn?(e.removeItem(Da),t):n||t})(t);(function(e){return null==e.expiresAt||0===e.expiresAt||e.expiresAt>Date.now()})(n)&&e.merge(n)}},[I]:(e,t)=>{e.subscribe(t.from),e.send(t.from,Fa,{...e.all()})},[R]:(e,t)=>{e.unsubscribe(t.from)},[Na]:async(e,t)=>{t.reply({...e.all()})},[Ia]:async(e,t,n)=>{e.merge(n);const r=await _e.first(["fcl.storage","fcl.storage.default"]);r.can&&r.put(Da,e.all()),e.broadcast(Fa,{...e.all()})},[Ra]:async(e,t)=>{e.merge(JSON.parse(Oa));const n=await _e.first(["fcl.storage","fcl.storage.default"]);n.can&&n.put(Da,e.all()),e.broadcast(Fa,{...e.all()})}},Ma=()=>W(ja,Da);const La=async e=>{let{discoveryAuthnInclude:t,discoveryFeaturesSuggested:n}=e;return{client:{discoveryAuthnInclude:t,discoveryFeaturesSuggested:n,clientServices:await $o(),supportedStrategies:Zo().getStrategies()}}},Ba=e=>{let{platform:t}=e;return async function(){var e,n;let{service:r,redir:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!r||null!==r&&void 0!==r&&null!==(e=r.provider)&&void 0!==e&&e.is_installed||null===r||void 0===r||null===(n=r.provider)||void 0===n||!n.requires_install)return new Promise((async(e,n)=>{Ma();const o={redir:i},a=await za(),s=await async function(e){var t;const n=await _e.get("discovery.authn.include",[]),r=await _e.get("discovery.features.suggested",[]),i=await _e.first(["discovery.wallet.method","discovery.wallet.method.default"]),o=null!==e&&void 0!==e&&e.method?e.method:i,a=null!==(t=null===e||void 0===e?void 0:e.endpoint)&&void 0!==t?t:await _e.first(["discovery.wallet","challenge.handshake"]);return y(a,'\n    If no service is passed to "authenticate," then "discovery.wallet" must be defined in fcl config.\n    See: "https://docs.onflow.org/fcl/reference/api/#setting-configuration-values"\n    '),{...e,type:"authn",endpoint:a,method:o,discoveryAuthnInclude:n,discoveryFeaturesSuggested:r}}(r),l=Aa(a.services,"authn-refresh");let c;if(a.loggedIn){if(!l)return e(a);try{const e=await ka({service:l,msg:c,opts:o,platform:t});z(Da,Ia,await _a(e))}catch(u){(0,v.Rm)({title:"".concat(u.name," Could not refresh wallet authentication."),message:u.message,level:v.A_.error})}finally{return e(await za())}}try{c=await async function(){let e=await _e.get("fcl.accountProof.resolver");if(null==e)return;if(!(e=>"function"===typeof e)(e))return void(0,v.Rm)({title:"Account Proof Data Resolver must be a function",message:"Check fcl.accountProof.resolver configuration.\n                Expected: fcl.accountProof.resolver: async () => { ... }\n                Received: fcl.accountProof.resolver: ".concat(typeof e,"\n                "),level:v.A_.warn});const t=await e();return null!=t?(y("string"===typeof t.appIdentifier,"appIdentifier must be a string"),y(/^[0-9a-f]+$/i.test(t.nonce),"Nonce must be a hex string"),t):void 0}()}catch(u){return(0,v.Rm)({title:"".concat(u.name," On Authentication: Could not resolve account proof data."),message:u.message,level:v.A_.error}),n(u)}try{const e=await ka({service:s,msg:c,config:await La(s),opts:o,platform:t});z(Da,Ia,await _a(e))}catch(u){(0,v.Rm)({title:"".concat(u," On Authentication"),message:u,level:v.A_.error})}finally{e(await za())}}));var o;window.location.href=null===r||void 0===r||null===(o=r.provider)||void 0===o?void 0:o.install_link}};function Ua(){Ma(),z(Da,Ra)}const Va=e=>{let{platform:t}=e;return async e=>(Ma(),{...e,tempId:"CURRENT_USER",async resolve(e,n){const r=await Ba({platform:t})({redir:!0}),i=Aa(r.services,"authz"),o=Aa(r.services,"pre-authz");if(o)return(e=>{let{platform:t}=e;return e=>{const n=(e=>({f_type:"PreAuthzResponse",f_vsn:"1.0.0",proposer:(e||{}).proposer,payer:(e||{}).payer||[],authorization:(e||{}).authorization||[]}))(e),r=[];null!=n.proposer&&r.push(["PROPOSER",n.proposer]);for(let t of n.payer||[])r.push(["PAYER",t]);for(let t of n.authorization||[])r.push(["AUTHORIZER",t]);return r.map((e=>{let[n,r]=e;return{tempId:[r.identity.address,r.identity.keyId].join("|"),addr:r.identity.address,keyId:r.identity.keyId,signingFunction:e=>ka({service:r,msg:e,platform:t}),role:{proposer:"PROPOSER"===n,payer:"PAYER"===n,authorizer:"AUTHORIZER"===n}}}))}})({platform:t})(await ka({service:o,msg:n,platform:t}));if(i){let n;return eo()&&"WC/RPC"===i.method&&(n=window.open("","_blank")),{...e,tempId:"CURRENT_USER",resolve:null,addr:Oe(i.identity.address),keyId:i.identity.keyId,sequenceNum:null,signature:null,signingFunction:async e=>Pa(await ka({service:i,msg:e,opts:{includeOlderJsonRpcCall:!0,windowRef:n},platform:t}))}}throw new Error("No Authz or PreAuthz Service configured for CURRENT_USER")}})};function Ha(e){Ma();const t="@EXIT",n=W((async n=>{for(n.send(Da,I);;){const r=await n.receive();if(r.tag===t)return void n.send(Da,R);e(r.data)}}));return()=>z(n,t)}function za(){return Ma(),z(Da,Na,null,{expectReply:!0,timeout:0})}const Wa=e=>{let{platform:t}=e;return async()=>{const{addr:e}=await Ba({platform:t})();return hi(je(e),Ni.Address)}},qa=e=>(y(/^[0-9a-f]+$/i.test(e),"Message must be a hex string"),{message:e}),Ga=e=>{let{platform:t}=e;return async e=>{Ma();const n=Aa((await Ba({platform:t})({redir:!0})).services,"user-signature");y(n,"Current user must have authorized a signing service.");try{const r=await ka({service:n,msg:qa(e),platform:t});return Array.isArray(r)?r.map((e=>Pa(e))):[Pa(r)]}catch(r){return r}}},Ya=e=>{let{platform:t}=e,n=()=>({authenticate:Ba({platform:t}),unauthenticate:Ua,authorization:Va({platform:t}),signUserMessage:Ga({platform:t}),subscribe:Ha,snapshot:za,resolveArgument:Wa({platform:t})});return n.authenticate=Ba({platform:t}),n.unauthenticate=Ua,n.authorization=Va({platform:t}),n.signUserMessage=Ga({platform:t}),n.subscribe=Ha,n.snapshot=za,n.resolveArgument=Wa({platform:t}),n};function Ka(e){var t;const n=new lo(e.endpoint);if(null!==(t=window)&&void 0!==t&&null!==(t=t.location)&&void 0!==t&&t.origin&&n.searchParams.append("l6n",window.location.origin),null!=e.params)for(let[r,i]of Object.entries(e.params||{}))n.searchParams.append(r,i);return n}function Qa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.method||"POST",r="GET"===n?void 0:JSON.stringify(t.data||e.data||{});return fetch(Ka(e),{method:n,headers:{...e.headers||{},...t.headers||{},"Content-Type":"application/json"},body:r}).then((e=>e.json()))}function Xa(e){return null==e?null:e.f_vsn?"1.0.0"===e.f_vsn?e:null:{...fo,status:null!==(t=e.status)&&void 0!==t?t:"APPROVED",reason:null!==(n=e.reason)&&void 0!==n?n:null,data:e.compositeSignature||e.data||{...e}||{},updates:ba(e.authorizationUpdates),local:ya((e.local||[])[0])};var t,n}const Za={"HTTP/GET":"GET","HTTP/POST":"POST"},Ja=e=>(y(Za[e.method],"Invalid Service Method for type back-channel-rpc",{service:e}),Za[e.method]);async function $a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;y(e,"Missing Polling Service",{service:e});if(!t())throw new Error("Externally Halted");let n;try{if("undefined"!==typeof document&&"hidden"===document.visibilityState)return await new Promise((e=>setTimeout(e,500))),$a(e,t);n=await Qa(e,{method:Ja(e)}).then(Xa)}catch(r){throw r}switch(n.status){case"APPROVED":return n.data;case"DECLINED":throw new Error("Declined: ".concat(n.reason||"No reason supplied."));default:return await new Promise((e=>setTimeout(e,500))),$a(n.updates,t)}}const es=e=>async t=>{let{service:n,body:r,config:i,opts:o}=t;const a=await Qa(n,{data:{fclVersion:Li,service:{params:n.params,data:n.data,type:n.type},config:i,...r}}).then(Xa);if("APPROVED"===a.status)return a.data;if("DECLINED"===a.status)throw new Error("Declined: ".concat(a.reason||"No reason supplied."));if("REDIRECT"===a.status)return a;if("PENDING"===a.status){var s=!0,l=!0;const[t,n]=await e(wa(a.local),{serviceEndpoint:Ka,onClose:()=>l=!1}),r=()=>{try{n(),l=!1}catch(e){console.error("Frame Close Error",e)}},i=()=>{const e=s;return s=l,e};return $a(a.updates,i).then((e=>(r(),e))).catch((e=>{throw console.error(e),r(),e}))}throw console.error("Auto Decline: Invalid Response",{service:n,resp:a}),new Error("Auto Decline: Invalid Response")},ts="FCL:VIEW:CLOSE",ns="FCL:VIEW:READY",rs="FCL:VIEW:RESPONSE",is=e=>"string"===typeof e&&e.toLowerCase(),os=new Set(["monetizationstart","monetizationpending","monetizationprogress","monetizationstop"]),as=(e,t)=>console.warn("DEPRECATION NOTICE","Received ".concat(e,", please use ").concat(t," for this and future versions of FCL")),ss=e=>{let{close:t,send:n,onReady:r,onResponse:i,onMessage:o}=e;return e=>{try{if("object"!==typeof e.data)return;if(os.has(e.data.type))return;is(e.data.type)===is(ts)&&t(),is(e.data.type)===is(ns)&&r(e,{send:n,close:t}),is(e.data.type)===is(rs)&&i(e,{send:n,close:t}),o(e,{send:n,close:t}),is(e.data.type)===is("FCL:FRAME:READY")&&(as(e.data.type,ns),r(e,{send:n,close:t})),is(e.data.type)===is("FCL:FRAME:RESPONSE")&&(as(e.data.type,rs),i(e,{send:n,close:t})),is(e.data.type)===is("FCL:FRAME:CLOSE")&&(as(e.data.type,ts),t()),is(e.data.type)===is("FCL::CHALLENGE::RESPONSE")&&(as(e.data.type,rs),i(e,{send:n,close:t})),is(e.data.type)===is("FCL::AUTHZ_READY")&&(as(e.data.type,ns),r(e,{send:n,close:t})),is(e.data.type)===is("FCL::CHALLENGE::CANCEL")&&(as(e.data.type,ts),t()),is(e.data.type)===is("FCL::CANCEL")&&(as(e.data.type,ts),t())}catch(a){console.error("Frame Callback Error",a),t()}}};_e.subscribe((()=>{Ji({enableRequestLogging:!1}).catch((()=>{}))}));const ls="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",cs=ls.length;function us(){let e="",t=32;for(;t--;)e+=ls[Math.random()*cs|0];return e}const ds=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ps=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hs=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function fs(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"===typeof t&&"prototype"in t))return t;!function(e){console.warn('[destr] Dropping "'.concat(e,'" key to prevent prototype pollution.'))}(e)}function ms(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!==typeof e)return e;const n=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const e=n.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!hs.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ds.test(e)||ps.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,fs)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function gs(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e){return e&&"function"===typeof e.then?e:Promise.resolve(e)}(e(...n))}catch(i){return Promise.reject(i)}}function vs(e){if(function(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"===typeof e.toJSON)return vs(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function ys(){if(void 0===typeof Buffer)throw new TypeError("[unstorage] Buffer is not supported!")}const bs="base64:";function ws(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function xs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ws(t.join(":"))}function Cs(e){return(e=ws(e))?e+":":""}const As=()=>{const e=new Map;return{name:"memory",options:{},hasItem:t=>e.has(t),getItem(t){var n;return null!==(n=e.get(t))&&void 0!==n?n:null},getItemRaw(t){var n;return null!==(n=e.get(t))&&void 0!==n?n:null},setItem(t,n){e.set(t,n)},setItemRaw(t,n){e.set(t,n)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function Es(){const e={mounts:{"":(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).driver||As()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},t=t=>{for(const n of e.mountpoints)if(t.startsWith(n))return{base:n,relativeKey:t.slice(n.length),driver:e.mounts[n]};return{base:"",relativeKey:t,driver:e.mounts[""]}},n=(t,n)=>e.mountpoints.filter((e=>e.startsWith(t)||n&&t.startsWith(e))).map((n=>({relativeBase:t.length>n.length?t.slice(n.length):void 0,mountpoint:n,driver:e.mounts[n]}))),r=(t,n)=>{if(e.watching){n=ws(n);for(const r of e.watchListeners)r(t,n)}},i=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},o=(e,n,r)=>{const i=new Map,o=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(const a of e){const e="string"===typeof a,r=ws(e?a:a.key),i=e?void 0:a.value,s=e||!a.options?n:{...n,...a.options},l=t(r);o(l).items.push({key:r,value:i,relativeKey:l.relativeKey,options:s})}return Promise.all([...i.values()].map((e=>r(e)))).then((e=>e.flat()))},a={hasItem(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=ws(e);const{relativeKey:r,driver:i}=t(e);return gs(i.hasItem,r,n)},getItem(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=ws(e);const{relativeKey:r,driver:i}=t(e);return gs(i.getItem,r,n).then((e=>ms(e)))},getItems:(e,t)=>o(e,t,(e=>e.driver.getItems?gs(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:xs(e.base,t.key),value:ms(t.value)}))))):Promise.all(e.items.map((t=>gs(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:ms(e)})))))))),getItemRaw(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=ws(e);const{relativeKey:r,driver:i}=t(e);return i.getItemRaw?gs(i.getItemRaw,r,n):gs(i.getItem,r,n).then((e=>function(e){return"string"!==typeof e?e:e.startsWith(bs)?(ys(),Buffer.from(e.slice(bs.length),"base64")):e}(e)))},async setItem(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===n)return a.removeItem(e);e=ws(e);const{relativeKey:o,driver:s}=t(e);s.setItem&&(await gs(s.setItem,o,vs(n),i),s.watch||r("update",e))},async setItems(e,t){await o(e,t,(async e=>{if(e.driver.setItems)return gs(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:vs(e.value),options:e.options}))),t);e.driver.setItem&&await Promise.all(e.items.map((t=>gs(e.driver.setItem,t.relativeKey,vs(t.value),t.options))))}))},async setItemRaw(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===n)return a.removeItem(e,i);e=ws(e);const{relativeKey:o,driver:s}=t(e);if(s.setItemRaw)await gs(s.setItemRaw,o,n,i);else{if(!s.setItem)return;await gs(s.setItem,o,function(e){if("string"===typeof e)return e;ys();const t=Buffer.from(e).toString("base64");return bs+t}(n),i)}s.watch||r("update",e)},async removeItem(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"===typeof n&&(n={removeMeta:n}),e=ws(e);const{relativeKey:i,driver:o}=t(e);o.removeItem&&(await gs(o.removeItem,i,n),(n.removeMeta||n.removeMata)&&await gs(o.removeItem,i+"$",n),o.watch||r("remove",e))},async getMeta(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"===typeof n&&(n={nativeOnly:n}),e=ws(e);const{relativeKey:r,driver:i}=t(e),o=Object.create(null);if(i.getMeta&&Object.assign(o,await gs(i.getMeta,r,n)),!n.nativeOnly){const e=await gs(i.getItem,r+"$",n).then((e=>ms(e)));e&&"object"===typeof e&&("string"===typeof e.atime&&(e.atime=new Date(e.atime)),"string"===typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setItem(e+"$",t,n)},removeMeta(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removeItem(e+"$",t)},async getKeys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Cs(e);const r=n(e,!0);let i=[];const o=[];for(const n of r){const e=(await gs(n.driver.getKeys,n.relativeBase,t)).map((e=>n.mountpoint+ws(e))).filter((e=>!i.some((t=>e.startsWith(t)))));o.push(...e),i=[n.mountpoint,...i.filter((e=>!e.startsWith(n.mountpoint)))]}return e?o.filter((t=>t.startsWith(e)&&!t.endsWith("$"))):o.filter((e=>!e.endsWith("$")))},async clear(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Cs(e),await Promise.all(n(e,!1).map((async e=>{if(e.driver.clear)return gs(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const n=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(n.map((n=>e.driver.removeItem(n,t))))}})))},async dispose(){await Promise.all(Object.values(e.mounts).map((e=>Ts(e))))},watch:async t=>(await(async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await _s(e.mounts[t],r,t)}})(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter((e=>e!==t)),0===e.watchListeners.length&&await i()}),async unwatch(){e.watchListeners=[],await i()},mount(t,n){if((t=Cs(t))&&e.mounts[t])throw new Error("already mounted at ".concat(t));return t&&(e.mountpoints.push(t),e.mountpoints.sort(((e,t)=>t.length-e.length))),e.mounts[t]=n,e.watching&&Promise.resolve(_s(n,r,t)).then((n=>{e.unwatch[t]=n})).catch(console.error),a},async unmount(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(t=Cs(t))&&e.mounts[t]&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),n&&await Ts(e.mounts[t]),e.mountpoints=e.mountpoints.filter((e=>e!==t)),delete e.mounts[t])},getMount(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=ws(e)+":";const n=t(e);return{driver:n.driver,base:n.base}},getMounts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=ws(e);return n(e,t.parents).map((e=>({driver:e.driver,base:e.mountpoint})))}};return a}function _s(e,t,n){return e.watch?e.watch(((e,r)=>t(e,n+r))):()=>{}}async function Ts(e){"function"===typeof e.dispose&&await gs(e.dispose)}function Ss(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function ks(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ss(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let Ps;function Ds(){return Ps||(Ps=ks("keyval-store","keyval")),Ps}function Fs(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ds())("readonly",(t=>Ss(t.get(e))))}function Ns(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},Ss(e.transaction)}const Is=e=>JSON.stringify(e,((e,t)=>"bigint"===typeof t?t.toString()+"n":t)),Rs=e=>{const t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(t,((e,t)=>"string"===typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))};function Os(e){if("string"!==typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return Rs(e)}catch(Vf){return e}}function js(e){return"string"===typeof e?e:Is(e)||""}var Ms=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.base&&e.base.length>0?"".concat(e.base,":"):"",n=e=>t+e;let r;return e.dbName&&e.storeName&&(r=ks(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await Fs(n(e),r)>"u"),async getItem(e){var t;return null!==(t=await Fs(n(e),r))&&void 0!==t?t:null},setItem:(e,t)=>function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ds())("readwrite",(n=>(n.put(t,e),Ss(n.transaction))))}(n(e),t,r),removeItem:e=>function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ds())("readwrite",(t=>(t.delete(e),Ss(t.transaction))))}(n(e),r),getKeys:()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ds())("readonly",(e=>{if(e.getAllKeys)return Ss(e.getAllKeys());const t=[];return Ns(e,(e=>t.push(e.key))).then((()=>t))}))}(r),clear:()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ds())("readwrite",(e=>(e.clear(),Ss(e.transaction))))}(r)}};class Ls{constructor(){this.indexedDb=Es({driver:Ms({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((e=>[e.key,e.value]))}async getItem(e){const t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,js(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var Bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof n.g<"u"?n.g:typeof self<"u"?self:{},Us={exports:{}};function Vs(e){var t;return[e[0],Os(null!=(t=e[1])?t:"")]}!function(){let e;function t(){}e=t,e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){const e=this;Object.keys(e).forEach((function(t){e[t]=void 0,delete e[t]}))},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof Bs<"u"&&Bs.localStorage?Us.exports=Bs.localStorage:typeof window<"u"&&window.localStorage?Us.exports=window.localStorage:Us.exports=new t}();class Hs{constructor(){this.localStorage=Us.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(Vs)}async getItem(e){const t=this.localStorage.getItem(e);if(null!==t)return Os(t)}async setItem(e,t){this.localStorage.setItem(e,js(t))}async removeItem(e){this.localStorage.removeItem(e)}}const zs=async(e,t)=>{t.length&&t.forEach((async t=>{await e.removeItem(t)}))};class Ws{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};const e=new Hs;this.storage=e;try{(async(e,t,n)=>{const r="wc_storage_version",i=await t.getItem(r);if(i&&i>=1)return void n(t);const o=await e.getKeys();if(!o.length)return void n(t);const a=[];for(;o.length;){const n=o.shift();if(!n)continue;const r=n.toLowerCase();if(r.includes("wc@")||r.includes("walletconnect")||r.includes("wc_")||r.includes("wallet_connect")){const r=await e.getItem(n);await t.setItem(n,r),a.push(n)}}await t.setItem(r,1),n(t),zs(e,a)})(e,new Ls,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise((e=>{const t=setInterval((()=>{this.initialized&&(clearInterval(t),e())}),20)}))}}var qs=n(40230);class Gs{}class Ys extends Gs{constructor(e){super()}}const Ks=qs.FIVE_SECONDS,Qs="heartbeat_pulse";class Xs extends Ys{constructor(e){super(e),this.events=new Le.EventEmitter,this.interval=Ks,this.interval=(null===e||void 0===e?void 0:e.interval)||Ks}static async init(e){const t=new Xs(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval((()=>this.pulse()),(0,qs.toMiliseconds)(this.interval))}pulse(){this.events.emit(Qs)}}var Zs=n(6430),Js=n.n(Zs);const $s="info",el="custom_context",tl=1024e3;class nl{constructor(e){this.nodeValue=e,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class rl{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new nl(e);if(t.size>this.maxSizeInBytes)throw new Error("[LinkedList] Value too big to insert into list: ".concat(e," with size ").concat(t.size));for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class il{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tl;this.level=null!==e&&void 0!==e?e:"error",this.levelValue=Zs.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new rl(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===Zs.levels.values.error?console.error(e):t===Zs.levels.values.warn?console.warn(e):t===Zs.levels.values.debug?console.debug(e):t===Zs.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(js({timestamp:(new Date).toISOString(),log:e}));const t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new rl(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(js({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class ol{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tl;this.baseChunkLogger=new il(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),n=document.createElement("a");n.href=t,n.download="walletconnect-logs-".concat((new Date).toISOString(),".txt"),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}}class al{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tl;this.baseChunkLogger=new il(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var sl=Object.defineProperty,ll=Object.defineProperties,cl=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,dl=Object.prototype.hasOwnProperty,pl=Object.prototype.propertyIsEnumerable,hl=(e,t,n)=>t in e?sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t)=>{for(var n in t||(t={}))dl.call(t,n)&&hl(e,n,t[n]);if(ul)for(var n of ul(t))pl.call(t,n)&&hl(e,n,t[n]);return e},ml=(e,t)=>ll(e,cl(t));function gl(e){return ml(fl({},e),{level:(null===e||void 0===e?void 0:e.level)||$s})}function vl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el,n="";return n=typeof e.bindings>"u"?function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:el]||""}(e,t):e.bindings().context||"",n}function yl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:el;const r=function(e,t){const n=vl(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:el);return n.trim()?"".concat(n,"/").concat(t):t}(e,t,n);return function(e,t){return e[arguments.length>2&&void 0!==arguments[2]?arguments[2]:el]=t,e}(e.child({context:r}),r,n)}function bl(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?function(e){var t,n;const r=new ol(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:Js()(ml(fl({},e.opts),{level:"trace",browser:ml(fl({},null==(n=e.opts)?void 0:n.browser),{write:e=>r.write(e)})})),chunkLoggerController:r}}(e):function(e){var t;const n=new al(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:Js()(ml(fl({},e.opts),{level:"trace"}),n),chunkLoggerController:n}}(e)}class wl extends Gs{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class xl extends Gs{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class Cl{constructor(e,t){this.logger=e,this.core=t}}class Al extends Gs{constructor(e,t){super(),this.relayer=e,this.logger=t}}class El extends Gs{constructor(e){super()}}class _l{constructor(e,t,n,r){this.core=e,this.logger=t,this.name=n}}class Tl extends Gs{constructor(e,t){super(),this.relayer=e,this.logger=t}}class Sl extends Gs{constructor(e,t){super(),this.core=e,this.logger=t}}class kl{constructor(e,t){this.projectId=e,this.logger=t}}class Pl{constructor(e,t){this.projectId=e,this.logger=t}}Be();class Dl{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}Le.EventEmitter;class Fl{constructor(e){this.client=e}}var Nl=n(18426),Il=n(31886);const Rl=".",Ol="base64url",jl="utf8",Ml="utf8",Ll=":",Bl="did",Ul="key",Vl="base58btc",Hl="z",zl="K36";function Wl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function ql(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const n=Wl(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}var Gl=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==n[a])throw new TypeError(o+" is ambiguous");n[a]=i}var s=e.length,l=e.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===l;)r++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,p=o-1;(0!==u||d<i)&&-1!==p;p--,d++)u+=s*a[p]>>>0,a[p]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var f=new Uint8Array(r+(o-h)),m=r;h!==o;)f[m++]=a[h++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*u+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],p=0,h=a-1;(0!==d||p<r)&&-1!==h;h--,p++)d+=256*c[h]>>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=p,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var m=l.repeat(n);f<a;++f)m+=e.charAt(c[f]);return m},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error("Non-".concat(t," character"))}}};const Yl=Gl,Kl=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")});class Ql{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return"".concat(this.prefix).concat(this.baseEncode(e));throw Error("Unknown type, must be binary type")}}class Xl{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error("Unable to decode multibase string ".concat(JSON.stringify(e),", ").concat(this.name," decoder only supports inputs prefixed with ").concat(this.prefix));return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return Jl(this,e)}}class Zl{constructor(e){this.decoders=e}or(e){return Jl(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError("Unable to decode multibase string ".concat(JSON.stringify(e),", only inputs prefixed with ").concat(Object.keys(this.decoders)," are supported"))}}const Jl=(e,t)=>new Zl({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class $l{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new Ql(e,t,n),this.decoder=new Xl(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const ec=e=>{let{name:t,prefix:n,encode:r,decode:i}=e;return new $l(t,n,r,i)},tc=e=>{let{prefix:t,name:n,alphabet:r}=e;const{encode:i,decode:o}=Yl(r,n);return ec({prefix:t,name:n,encode:i,decode:e=>Kl(o(e))})},nc=e=>{let{name:t,prefix:n,bitsPerChar:r,alphabet:i}=e;return ec({prefix:n,name:t,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let o="",a=0,s=0;for(let l=0;l<e.length;++l)for(s=s<<8|e[l],a+=8;a>n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o})(e,i,r),decode:e=>((e,t,n,r)=>{const i={};for(let u=0;u<t.length;++u)i[t[u]]=u;let o=e.length;for(;"="===e[o-1];)--o;const a=new Uint8Array(o*n/8|0);let s=0,l=0,c=0;for(let u=0;u<o;++u){const t=i[e[u]];if(void 0===t)throw new SyntaxError("Non-".concat(r," character"));l=l<<n|t,s+=n,s>=8&&(s-=8,a[c++]=255&l>>s)}if(s>=n||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return a})(e,i,r,t)})},rc=ec({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)}),ic=nc({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),oc=nc({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),ac=tc({prefix:"9",name:"base10",alphabet:"0123456789"}),sc=nc({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),lc=nc({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),cc=nc({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),uc=nc({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),dc=nc({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),pc=nc({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),hc=nc({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),fc=nc({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),mc=nc({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),gc=nc({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),vc=nc({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),yc=tc({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),bc=tc({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),wc=tc({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),xc=tc({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Cc=nc({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ac=nc({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ec=nc({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),_c=nc({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Tc=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),Sc=Tc.reduce(((e,t,n)=>(e[n]=t,e)),[]),kc=Tc.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const Pc=ec({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=Sc[t]),"")},decode:function(e){const t=[];for(const n of e){const e=kc[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: ".concat(n));t.push(e)}return new Uint8Array(t)}});var Dc=function e(t,n,r){n=n||[];var i=r=r||0;for(;t>=Ic;)n[r++]=255&t|Fc,t/=128;for(;t&Nc;)n[r++]=255&t|Fc,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},Fc=128,Nc=-128,Ic=Math.pow(2,31);var Rc=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(r&jc)<<o:(r&jc)*Math.pow(2,o),o+=7}while(r>=Oc);return e.bytes=a-n,i},Oc=128,jc=127;var Mc=Math.pow(2,7),Lc=Math.pow(2,14),Bc=Math.pow(2,21),Uc=Math.pow(2,28),Vc=Math.pow(2,35),Hc=Math.pow(2,42),zc=Math.pow(2,49),Wc=Math.pow(2,56),qc=Math.pow(2,63),Gc={encode:Dc,decode:Rc,encodingLength:function(e){return e<Mc?1:e<Lc?2:e<Bc?3:e<Uc?4:e<Vc?5:e<Hc?6:e<zc?7:e<Wc?8:e<qc?9:10}};const Yc=Gc,Kc=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Yc.encode(e,t,n),t},Qc=e=>Yc.encodingLength(e),Xc=(e,t)=>{const n=t.byteLength,r=Qc(e),i=r+Qc(n),o=new Uint8Array(i+n);return Kc(e,o,0),Kc(n,o,r),o.set(t,i),new Zc(e,n,t,o)};class Zc{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const Jc=e=>{let{name:t,code:n,encode:r}=e;return new $c(t,n,r)};class $c{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?Xc(this.code,t):t.then((e=>Xc(this.code,e)))}throw Error("Unknown type, must be binary type")}}const eu=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),tu=Jc({name:"sha2-256",code:18,encode:eu("SHA-256")}),nu=Jc({name:"sha2-512",code:19,encode:eu("SHA-512")}),ru=Kl,iu={code:0,name:"identity",encode:ru,digest:e=>Xc(0,ru(e))},ou="raw",au=85,su=e=>Kl(e),lu=e=>Kl(e),cu=new TextEncoder,uu=new TextDecoder,du="json",pu=512,hu=e=>cu.encode(JSON.stringify(e)),fu=e=>JSON.parse(uu.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const mu={...r,...i,...o,...a,...s,...l,...c,...u,...d,...p};function gu(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const vu=gu("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),yu=gu("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{const t=Wl((e=e.substring(1)).length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),bu={utf8:vu,"utf-8":vu,hex:mu.base16,latin1:yu,ascii:yu,binary:yu,...mu};function wu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=bu[t];if(!n)throw new Error('Unsupported encoding "'.concat(t,'"'));return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}function xu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=bu[t];if(!n)throw new Error('Unsupported encoding "'.concat(t,'"'));return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode("".concat(n.prefix).concat(e)):globalThis.Buffer.from(e,"utf8")}function Cu(e){return wu(xu(js(e),jl),Ol)}function Au(e){const t=xu(zl,Vl),n=Hl+wu(ql([t,e]),Vl);return[Bl,Ul,n].join(Ll)}function Eu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Il.randomBytes)(32);return Nl.K(e)}async function _u(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,qs.fromMiliseconds)(Date.now());const o={alg:"EdDSA",typ:"JWT"},a={iss:Au(r.publicKey),sub:e,aud:t,iat:i,exp:i+n},s=function(e){return xu([Cu(e.header),Cu(e.payload)].join(Rl),Ml)}({header:o,payload:a});return function(e){return[Cu(e.header),Cu(e.payload),(t=e.signature,wu(t,Ol))].join(Rl);var t}({header:o,payload:a,signature:Nl._S(r.secretKey,s)})}n(92767);var Tu=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},Su=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},ku=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},Pu=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},Du=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},Fu=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},Nu=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Iu=3,Ru=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],Ou=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function ju(e){return e?Lu(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new Fu:"undefined"!==typeof navigator?Lu(navigator.userAgent):"undefined"!==typeof process&&process.version?new ku(process.version.slice(1)):null}function Mu(e){return""!==e&&Ru.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function Lu(e){var t=Mu(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new Du;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<Iu&&(i=Tu(Tu([],i,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(Iu-i.length),!0)):i=[];var o=i.join("."),a=function(e){for(var t=0,n=Ou.length;t<n;t++){var r=Ou[t],i=r[0];if(r[1].exec(e))return i}return null}(e),s=Nu.exec(e);return s&&s[1]?new Pu(n,o,a,s[1]):new Su(n,o,a)}var Bu=n(38938),Uu=n(82829),Vu=n(79529),Hu=n(80950),zu=n(43134),Wu=n(85758),qu=n(78144);const Gu={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},Yu=":";function Ku(e){const[t,n]=e.split(Yu);return{namespace:t,reference:n}}function Qu(e,t){return e.includes(":")?[e]:t.chains||[]}var Xu=Object.defineProperty,Zu=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable,ed=(e,t,n)=>t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,td=(e,t)=>{for(var n in t||(t={}))Ju.call(t,n)&&ed(e,n,t[n]);if(Zu)for(var n of Zu(t))$u.call(t,n)&&ed(e,n,t[n]);return e};const nd="ReactNative",rd={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},id="js";function od(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function ad(){return!(0,Bu.getDocument)()&&!!(0,Bu.getNavigator)()&&navigator.product===nd}function sd(){return!od()&&!!(0,Bu.getNavigator)()&&!!(0,Bu.getDocument)()}function ld(){return ad()?rd.reactNative:od()?rd.node:sd()?rd.browser:rd.unknown}function cd(e,t,r){const i=function(){if(ld()===rd.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=ju();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;const t=ld();return t===rd.browser?[t,(null==(e=(0,Bu.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[id,r].join("-"),i,o].join("/")}function ud(e){let{protocol:t,version:n,relayUrl:r,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s,bundleId:l}=e;const c=r.split("?"),u={auth:o,ua:cd(t,n,i),projectId:a,useOnCloseEvent:s||void 0,origin:l||void 0},d=function(e,t){let n=Vu.parse(e);return n=td(td({},n),t),Vu.stringify(n)}(c[1]||"",u);return c[0]+"?"+d}function dd(e,t){return e.filter((e=>t.includes(e))).length===e.length}function pd(e){return Object.fromEntries(e.entries())}function hd(e){return new Map(Object.entries(e))}function fd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qs.FIVE_MINUTES,t=arguments.length>1?arguments[1]:void 0;const n=(0,qs.toMiliseconds)(e||qs.FIVE_MINUTES);let r,i,o;return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&i&&(clearTimeout(o),i(e))},done:()=>new Promise(((e,a)=>{o=setTimeout((()=>{a(new Error(t))}),n),r=e,i=a}))}}function md(e,t,n){return new Promise((async(r,i)=>{const o=setTimeout((()=>i(new Error(n))),t);try{r(await e)}catch(Ws){i(Ws)}clearTimeout(o)}))}function gd(e,t){if("string"==typeof t&&t.startsWith("".concat(e,":")))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(t)}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(t)}throw new Error("Unknown expirer target type: ".concat(e))}function vd(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(t,":").concat(n));r.id=Number(n)}return r}function yd(e,t){return(0,qs.fromMiliseconds)((t||Date.now())+(0,qs.toMiliseconds)(e))}function bd(e){return Date.now()>=(0,qs.toMiliseconds)(e)}function wd(e,t){return"".concat(e).concat(t?":".concat(t):"")}function xd(){return[...new Set([...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])]}var Cd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof n.g<"u"?n.g:typeof self<"u"?self:{};var Ad={exports:{}};!function(e){!function(){var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?r=Cd:i&&(r=self);var o=!r.JS_SHA3_NO_COMMON_JS&&e.exports,a=!r.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),l=[4,1024,262144,67108864],c=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],d=[224,256,384,512],p=[128,256],h=["hex","buffer","arrayBuffer","array","digest"],f={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),a&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var m=function(e,t,n){return function(r){return new D(e,t,e).update(r)[n]()}},g=function(e,t,n){return function(r,i){return new D(e,t,i).update(r)[n]()}},v=function(e,t,n){return function(t,r,i,o){return C["cshake"+e].update(t,r,i,o)[n]()}},y=function(e,t,n){return function(t,r,i,o){return C["kmac"+e].update(t,r,i,o)[n]()}},b=function(e,t,n,r){for(var i=0;i<h.length;++i){var o=h[i];e[o]=t(n,r,o)}return e},w=function(e,t){var n=m(e,t,"hex");return n.create=function(){return new D(e,t,e)},n.update=function(e){return n.create().update(e)},b(n,m,e,t)},x=[{name:"keccak",padding:[1,256,65536,16777216],bits:d,createMethod:w},{name:"sha3",padding:[6,1536,393216,100663296],bits:d,createMethod:w},{name:"shake",padding:[31,7936,2031616,520093696],bits:p,createMethod:function(e,t){var n=g(e,t,"hex");return n.create=function(n){return new D(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},b(n,g,e,t)}},{name:"cshake",padding:l,bits:p,createMethod:function(e,t){var n=f[e],r=v(e,0,"hex");return r.create=function(r,i,o){return i||o?new D(e,t,r).bytepad([i,o],n):C["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},b(r,v,e,t)}},{name:"kmac",padding:l,bits:p,createMethod:function(e,t){var n=f[e],r=y(e,0,"hex");return r.create=function(r,i,o){return new F(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},b(r,y,e,t)}}],C={},A=[],E=0;E<x.length;++E)for(var _=x[E],T=_.bits,S=0;S<T.length;++S){var k=_.name+"_"+T[S];if(A.push(k),C[k]=_.createMethod(T[S],_.padding),"sha3"!==_.name){var P=_.name+T[S];A.push(P),C[P]=C[k]}}function D(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function F(e,t,n){D.call(this,e,t,n)}D.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(a&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!a||!ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var i,o,s=this.blocks,l=this.byteCount,u=e.length,d=this.blockCount,p=0,h=this.s;p<u;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<d+1;++i)s[i]=0;if(n)for(i=this.start;p<u&&i<l;++p)s[i>>2]|=e[p]<<c[3&i++];else for(i=this.start;p<u&&i<l;++p)(o=e.charCodeAt(p))<128?s[i>>2]|=o<<c[3&i++]:o<2048?(s[i>>2]|=(192|o>>6)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]):o<55296||o>=57344?(s[i>>2]|=(224|o>>12)<<c[3&i++],s[i>>2]|=(128|o>>6&63)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++p)),s[i>>2]|=(240|o>>18)<<c[3&i++],s[i>>2]|=(128|o>>12&63)<<c[3&i++],s[i>>2]|=(128|o>>6&63)<<c[3&i++],s[i>>2]|=(128|63&o)<<c[3&i++]);if(this.lastByteIndex=i,i>=l){for(this.start=i-l,this.block=s[d],i=0;i<d;++i)h[i]^=s[i];N(h),this.reset=!0}else this.start=i}return this},D.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},D.prototype.encodeString=function(e){var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(a&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!a||!ArrayBuffer.isView(e)))throw new Error(t);n=!0}var i=0,o=e.length;if(n)i=o;else for(var s=0;s<e.length;++s){var l=e.charCodeAt(s);l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(l=65536+((1023&l)<<10|1023&e.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(e),i},D.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},D.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];N(r)}},D.prototype.toString=D.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,l="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],l+=s[e>>4&15]+s[15&e]+s[e>>12&15]+s[e>>8&15]+s[e>>20&15]+s[e>>16&15]+s[e>>28&15]+s[e>>24&15];a%t===0&&(N(n),o=0)}return i&&(e=n[o],l+=s[e>>4&15]+s[15&e],i>1&&(l+=s[e>>12&15]+s[e>>8&15]),i>2&&(l+=s[e>>20&15]+s[e>>16&15])),l},D.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)l[a]=n[o];a%t===0&&N(n)}return i&&(l[o]=n[o],e=e.slice(0,s)),e},D.prototype.buffer=D.prototype.arrayBuffer,D.prototype.digest=D.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%n===0&&N(r)}return o&&(e=s<<2,t=r[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},F.prototype=new D,F.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var N=function(e){var t,n,r,i,o,a,s,l,c,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B,U,V,H,z,W,q,G,Y,K,Q,X,Z,J,$,ee,te,ne,re,ie,oe,ae,se,le,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(f=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=o^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(d<<1|p>>>31),n=s^(p<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(h<<1|f>>>31),n=c^(f<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(i<<1|o>>>31),n=p^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],Y=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,D=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,W=e[41]<<18|e[40]>>>14,O=e[2]<<1|e[3]>>>31,j=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Q=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,F=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,_=e[6]<<28|e[7]>>>4,T=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,V=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,E=e[49]<<14|e[48]>>>18,e[0]=m^~v&b,e[1]=g^~y&w,e[10]=_^~S&P,e[11]=T^~k&D,e[20]=O^~M&B,e[21]=j^~L&U,e[30]=q^~Y&Q,e[31]=G^~K&X,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=v^~b&x,e[3]=y^~w&C,e[12]=S^~P&F,e[13]=k^~D&N,e[22]=M^~B&V,e[23]=L^~U&H,e[32]=Y^~Q&Z,e[33]=K^~X&J,e[42]=re^~oe&se,e[43]=ie^~ae&le,e[4]=b^~x&A,e[5]=w^~C&E,e[14]=P^~F&I,e[15]=D^~N&R,e[24]=B^~V&z,e[25]=U^~H&W,e[34]=Q^~Z&$,e[35]=X^~J&ee,e[44]=oe^~se&ce,e[45]=ae^~le&ue,e[6]=x^~A&m,e[7]=C^~E&g,e[16]=F^~I&_,e[17]=N^~R&T,e[26]=V^~z&O,e[27]=H^~W&j,e[36]=Z^~$&q,e[37]=J^~ee&G,e[46]=se^~ce&te,e[47]=le^~ue&ne,e[8]=A^~m&v,e[9]=E^~g&y,e[18]=I^~_&S,e[19]=R^~T&k,e[28]=z^~O&M,e[29]=W^~j&L,e[38]=$^~q&Y,e[39]=ee^~G&K,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=u[r],e[1]^=u[r+1]};if(o)e.exports=C;else for(E=0;E<A.length;++E)r[A[E]]=C[A[E]]}()}(Ad);var Ed=Ad.exports;let _d=!1,Td=!1;const Sd={debug:1,default:2,info:2,warning:3,error:4,off:5};let kd=Sd.default,Pd=null;const Dd=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch{e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var Fd,Nd;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(Fd||(Fd={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(Nd||(Nd={}));const Id="0123456789abcdef";class Rd{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==Sd[n]&&this.throwArgumentError("invalid log level name","logLevel",e),!(kd>Sd[n])&&console.log.apply(console,t)}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(Rd.levels.DEBUG,t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(Rd.levels.INFO,t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(Rd.levels.WARNING,t)}makeError(e,t,n){if(Td)return this.makeError("censored error",t,{});t||(t=Rd.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((e=>{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e<t.length;e++)n+=Id[t[e]>>4],n+=Id[15&t[e]];r.push(e+"=Uint8Array(0x"+n+")")}else r.push(e+"="+JSON.stringify(t))}catch{r.push(e+"="+JSON.stringify(n[e].toString()))}})),r.push("code=".concat(t)),r.push("version=".concat(this.version));const i=e;let o="";switch(t){case Nd.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case Nd.CALL_EXCEPTION:case Nd.INSUFFICIENT_FUNDS:case Nd.MISSING_NEW:case Nd.NONCE_EXPIRED:case Nd.REPLACEMENT_UNDERPRICED:case Nd.TRANSACTION_REPLACED:case Nd.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=i,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,Rd.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){Dd&&this.throwError("platform missing String.prototype.normalize",Rd.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Dd})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,Rd.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,Rd.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",e<t&&this.throwError("missing argument"+n,Rd.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+n,Rd.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",Rd.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",Rd.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",Rd.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return Pd||(Pd=new Rd("logger/5.7.0")),Pd}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",Rd.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),_d){if(!e)return;this.globalLogger().throwError("error censorship permanent",Rd.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Td=!!e,_d=!!t}static setLogLevel(e){const t=Sd[e.toLowerCase()];null!=t?kd=t:Rd.globalLogger().warn("invalid log level - "+e)}static from(e){return new Rd(e)}}Rd.errors=Nd,Rd.levels=Fd;const Od=new Rd("bytes/5.7.0");function jd(e){return!!e.toHexString}function Md(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return Md(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ld(e){return"number"==typeof e&&e==e&&e%1===0}function Bd(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!Ld(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const n=e[t];if(!Ld(n)||n<0||n>=256)return!1}return!0}function Ud(e,t){if(t||(t={}),"number"==typeof e){Od.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),Md(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),jd(e)&&(e=e.toHexString()),Vd(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":Od.throwArgumentError("hex data is odd-length","value",e));const r=[];for(let e=0;e<n.length;e+=2)r.push(parseInt(n.substring(e,e+2),16));return Md(new Uint8Array(r))}return Bd(e)?Md(new Uint8Array(e)):Od.throwArgumentError("invalid arrayify value","value",e)}function Vd(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const Hd="0123456789abcdef";function zd(e,t){if(t||(t={}),"number"==typeof e){Od.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=Hd[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),jd(e))return e.toHexString();if(Vd(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":Od.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Bd(e)){let t="0x";for(let n=0;n<e.length;n++){let r=e[n];t+=Hd[(240&r)>>4]+Hd[15&r]}return t}return Od.throwArgumentError("invalid hexlify value","value",e)}function Wd(e,t,n){return"string"!=typeof e?e=zd(e):(!Vd(e)||e.length%2)&&Od.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function qd(e,t){for("string"!=typeof e?e=zd(e):Vd(e)||Od.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Od.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function Gd(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(function(e){return Vd(e)&&!(e.length%2)||Bd(e)}(e)){let n=Ud(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=zd(n.slice(0,32)),t.s=zd(n.slice(32,64))):65===n.length?(t.r=zd(n.slice(0,32)),t.s=zd(n.slice(32,64)),t.v=n[64]):Od.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Od.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=zd(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=function(e,t){(e=Ud(e)).length>t&&Od.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),Md(n)}(Ud(t._vs),32);t._vs=zd(n);const r=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=r:t.recoveryParam!==r&&Od.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const i=zd(n);null==t.s?t.s=i:t.s!==i&&Od.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Od.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const n=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==n&&Od.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&Vd(t.r)?t.r=qd(t.r,32):Od.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&Vd(t.s)?t.s=qd(t.s,32):Od.throwArgumentError("signature missing or invalid s","signature",e);const n=Ud(t.s);n[0]>=128&&Od.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const r=zd(n);t._vs&&(Vd(t._vs)||Od.throwArgumentError("signature invalid _vs","signature",e),t._vs=qd(t._vs,32)),null==t._vs?t._vs=r:t._vs!==r&&Od.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function Yd(e){return"0x"+Ed.keccak_256(Ud(e))}var Kd={exports:{}},Qd=function(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}(Object.freeze({__proto__:null,default:{}}));!function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:Qd.Buffer}catch{}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function l(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=s(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r<e.length;r+=2)i=s(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){c(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],u=h[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(u).toString(e);r=(f=f.idivn(u)).isZero()?m+r:d[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,d=67108863&l,p=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=p;h++){var f=c-h|0;u+=(a=(i=0|e.words[f])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,c=0,u=0|a[0],d=8191&u,p=u>>>13,h=0|a[1],f=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,x=b>>>13,C=0|a[4],A=8191&C,E=C>>>13,_=0|a[5],T=8191&_,S=_>>>13,k=0|a[6],P=8191&k,D=k>>>13,F=0|a[7],N=8191&F,I=F>>>13,R=0|a[8],O=8191&R,j=R>>>13,M=0|a[9],L=8191&M,B=M>>>13,U=0|s[0],V=8191&U,H=U>>>13,z=0|s[1],W=8191&z,q=z>>>13,G=0|s[2],Y=8191&G,K=G>>>13,Q=0|s[3],X=8191&Q,Z=Q>>>13,J=0|s[4],$=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,pe=ue>>>13,he=0|s[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(p,V)|0))<<13)|0;c=((o=Math.imul(p,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,V),i=(i=Math.imul(f,H))+Math.imul(m,V)|0,o=Math.imul(m,H);var ve=(c+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(p,W)|0))<<13)|0;c=((o=o+Math.imul(p,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,V),i=(i=Math.imul(v,H))+Math.imul(y,V)|0,o=Math.imul(y,H),r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,q)|0;var ye=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(p,Y)|0))<<13)|0;c=((o=o+Math.imul(p,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(x,V)|0,o=Math.imul(x,H),r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,q)|0,r=r+Math.imul(f,Y)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var be=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(p,X)|0))<<13)|0;c=((o=o+Math.imul(p,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(A,V),i=(i=Math.imul(A,H))+Math.imul(E,V)|0,o=Math.imul(E,H),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,q)|0,r=r+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(f,X)|0,i=(i=i+Math.imul(f,Z)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0;var we=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(p,$)|0))<<13)|0;c=((o=o+Math.imul(p,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,V),i=(i=Math.imul(T,H))+Math.imul(S,V)|0,o=Math.imul(S,H),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var xe=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(p,ne)|0))<<13)|0;c=((o=o+Math.imul(p,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(D,V)|0,o=Math.imul(D,H),r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,Z)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var Ce=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(p,oe)|0))<<13)|0;c=((o=o+Math.imul(p,ae)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,V),i=(i=Math.imul(N,H))+Math.imul(I,V)|0,o=Math.imul(I,H),r=r+Math.imul(P,W)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ae=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(p,le)|0))<<13)|0;c=((o=o+Math.imul(p,ce)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(O,V),i=(i=Math.imul(O,H))+Math.imul(j,V)|0,o=Math.imul(j,H),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,q)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,q)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(f,le)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Ee=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,pe)|0)+Math.imul(p,de)|0))<<13)|0;c=((o=o+Math.imul(p,pe)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,H))+Math.imul(B,V)|0,o=Math.imul(B,H),r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ce)|0,r=r+Math.imul(f,de)|0,i=(i=i+Math.imul(f,pe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,pe)|0;var _e=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(p,fe)|0))<<13)|0;c=((o=o+Math.imul(p,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,q))+Math.imul(B,W)|0,o=Math.imul(B,q),r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,ce)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,pe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,pe)|0;var Te=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(B,Y)|0,o=Math.imul(B,K),r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,pe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,pe)|0;var Se=(c+(r=r+Math.imul(v,fe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,fe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,Z))+Math.imul(B,X)|0,o=Math.imul(B,Z),r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(S,le)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,pe)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,pe)|0;var ke=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,fe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,$),i=(i=Math.imul(L,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(T,de)|0,i=(i=i+Math.imul(T,pe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,pe)|0;var Pe=(c+(r=r+Math.imul(A,fe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(E,fe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(N,le)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ce)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,pe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,pe)|0;var De=(c+(r=r+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(S,fe)|0))<<13)|0;c=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,ce)|0,r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,pe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,pe)|0;var Fe=(c+(r=r+Math.imul(P,fe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(D,fe)|0))<<13)|0;c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,r=Math.imul(L,le),i=(i=Math.imul(L,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,pe)|0)+Math.imul(j,de)|0,o=o+Math.imul(j,pe)|0;var Ne=(c+(r=r+Math.imul(N,fe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(I,fe)|0))<<13)|0;c=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(L,de),i=(i=Math.imul(L,pe))+Math.imul(B,de)|0,o=Math.imul(B,pe);var Ie=(c+(r=r+Math.imul(O,fe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(j,fe)|0))<<13)|0;c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Re=(c+(r=Math.imul(L,fe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(B,fe)|0))<<13)|0;return c=((o=Math.imul(B,me))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=ge,l[1]=ve,l[2]=ye,l[3]=be,l[4]=we,l[5]=xe,l[6]=Ce,l[7]=Ae,l[8]=Ee,l[9]=_e,l[10]=Te,l[11]=Se,l[12]=ke,l[13]=Pe,l[14]=De,l[15]=Fe,l[16]=Ne,l[17]=Ie,l[18]=Re,0!==c&&(l[19]=c,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),p=67108863&d;s=67108863&(p=p+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(p>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?f(this,e,t):n<1024?g(this,e,t):v(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0!==a)if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o=e.length+r;this._expand(o);var a,s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(o,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var p=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(p=Math.min(p/a|0,67108863),r._ishlnsubmul(o,p,d);0!==r.negative;)p--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=p)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var p=0,h=1;!(t.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var f=0,m=1;!(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(l)):(r.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,o=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new i(1),s=new i(0),l=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var c=0,u=1;!(r.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,p=1;!(o.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(o.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(o)>=0?(r.isub(o),a.isub(s)):(o.isub(r),s.isub(a))}return(t=0===r.cmpn(1)?a:s).cmpn(0)<0&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,b),r(C,b),r(A,b),A.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,o),p=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),f=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<f);var v=this.pow(d,new i(1).iushln(f-g-1));p=p.redMul(v),d=v.redSqr(),h=h.redMul(d),f=g}return p},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;(o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a)?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new _(e)},r(_,E),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,Cd)}(Kd);var Xd=Kd.exports;const Zd="bignumber/5.7.0";var Jd=Xd.BN;const $d=new Rd(Zd),ep={},tp=9007199254740991;let np=!1;class rp{constructor(e,t){e!==ep&&$d.throwError("cannot call constructor directly; use BigNumber.from",Rd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return op(ap(this).fromTwos(e))}toTwos(e){return op(ap(this).toTwos(e))}abs(){return"-"===this._hex[0]?rp.from(this._hex.substring(1)):this}add(e){return op(ap(this).add(ap(e)))}sub(e){return op(ap(this).sub(ap(e)))}div(e){return rp.from(e).isZero()&&sp("division-by-zero","div"),op(ap(this).div(ap(e)))}mul(e){return op(ap(this).mul(ap(e)))}mod(e){const t=ap(e);return t.isNeg()&&sp("division-by-zero","mod"),op(ap(this).umod(t))}pow(e){const t=ap(e);return t.isNeg()&&sp("negative-power","pow"),op(ap(this).pow(t))}and(e){const t=ap(e);return(this.isNegative()||t.isNeg())&&sp("unbound-bitwise-result","and"),op(ap(this).and(t))}or(e){const t=ap(e);return(this.isNegative()||t.isNeg())&&sp("unbound-bitwise-result","or"),op(ap(this).or(t))}xor(e){const t=ap(e);return(this.isNegative()||t.isNeg())&&sp("unbound-bitwise-result","xor"),op(ap(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&sp("negative-width","mask"),op(ap(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&sp("negative-width","shl"),op(ap(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&sp("negative-width","shr"),op(ap(this).shrn(e))}eq(e){return ap(this).eq(ap(e))}lt(e){return ap(this).lt(ap(e))}lte(e){return ap(this).lte(ap(e))}gt(e){return ap(this).gt(ap(e))}gte(e){return ap(this).gte(ap(e))}isNegative(){return"-"===this._hex[0]}isZero(){return ap(this).isZero()}toNumber(){try{return ap(this).toNumber()}catch{sp("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return $d.throwError("this platform does not support BigInt",Rd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?np||(np=!0,$d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?$d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Rd.errors.UNEXPECTED_ARGUMENT,{}):$d.throwError("BigNumber.toString does not accept parameters",Rd.errors.UNEXPECTED_ARGUMENT,{})),ap(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof rp)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new rp(ep,ip(e)):e.match(/^-?[0-9]+$/)?new rp(ep,ip(new Jd(e))):$d.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&sp("underflow","BigNumber.from",e),(e>=tp||e<=-tp)&&sp("overflow","BigNumber.from",e),rp.from(String(e));const t=e;if("bigint"==typeof t)return rp.from(t.toString());if(Bd(t))return rp.from(zd(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return rp.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Vd(e)||"-"===e[0]&&Vd(e.substring(1))))return rp.from(e)}return $d.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function ip(e){if("string"!=typeof e)return ip(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&$d.throwArgumentError("invalid hex","value",e),"0x00"===(e=ip(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function op(e){return rp.from(ip(e))}function ap(e){const t=rp.from(e).toHexString();return"-"===t[0]?new Jd("-"+t.substring(3),16):new Jd(t.substring(2),16)}function sp(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),$d.throwError(e,Rd.errors.NUMERIC_FAULT,r)}const lp=new Rd(Zd),cp={},up=rp.from(0),dp=rp.from(-1);function pp(e,t,n,r){const i={fault:t,operation:n};return void 0!==r&&(i.value=r),lp.throwError(e,Rd.errors.NUMERIC_FAULT,i)}let hp="0";for(;hp.length<256;)hp+=hp;function fp(e){if("number"!=typeof e)try{e=rp.from(e).toNumber()}catch{}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+hp.substring(0,e):lp.throwArgumentError("invalid decimal size","decimals",e)}function mp(e,t){null==t&&(t=0);const n=fp(t),r=(e=rp.from(e)).lt(up);r&&(e=e.mul(dp));let i=e.mod(n).toString();for(;i.length<n.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=e.div(n).toString();return e=1===n.length?o:o+"."+i,r&&(e="-"+e),e}function gp(e,t){null==t&&(t=0);const n=fp(t);("string"!=typeof e||!e.match(/^-?[0-9.]+$/))&&lp.throwArgumentError("invalid decimal value","value",e);const r="-"===e.substring(0,1);r&&(e=e.substring(1)),"."===e&&lp.throwArgumentError("missing value","value",e);const i=e.split(".");i.length>2&&lp.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&pp("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<n.length-1;)a+="0";const s=rp.from(o),l=rp.from(a);let c=s.mul(n).add(l);return r&&(c=c.mul(dp)),c}class vp{constructor(e,t,n,r){e!==cp&&lp.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Rd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=n,this.decimals=r,this.name=(t?"":"u")+"fixed"+String(n)+"x"+String(r),this._multiplier=fp(r),Object.freeze(this)}static from(e){if(e instanceof vp)return e;"number"==typeof e&&(e="fixed128x".concat(e));let t=!0,n=128,r=18;if("string"==typeof e){if("fixed"!==e)if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||lp.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}}else if(e){const i=(t,n,r)=>null==e[t]?r:(typeof e[t]!==n&&lp.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&lp.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&lp.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new vp(cp,t,n,r)}}class yp{constructor(e,t,n,r){e!==cp&&lp.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Rd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&lp.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=gp(this._value,this.format.decimals),n=gp(e._value,e.format.decimals);return yp.fromValue(t.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=gp(this._value,this.format.decimals),n=gp(e._value,e.format.decimals);return yp.fromValue(t.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=gp(this._value,this.format.decimals),n=gp(e._value,e.format.decimals);return yp.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=gp(this._value,this.format.decimals),n=gp(e._value,e.format.decimals);return yp.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=yp.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(bp.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=yp.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(bp.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&lp.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const n=yp.from("1"+hp.substring(0,e),this.format),r=wp.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&lp.throwArgumentError("invalid byte width","width",e);return qd(rp.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return yp.fromString(this._value,e)}static fromValue(e,t,n){return null==n&&null!=t&&!function(e){return null!=e&&(rp.isBigNumber(e)||"number"==typeof e&&e%1===0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Vd(e)||"bigint"==typeof e||Bd(e))}(t)&&(n=t,t=null),null==t&&(t=0),null==n&&(n="fixed"),yp.fromString(mp(e,t),vp.from(n))}static fromString(e,t){null==t&&(t="fixed");const n=vp.from(t),r=gp(e,n.decimals);!n.signed&&r.lt(up)&&pp("unsigned value cannot be negative","overflow","value",e);let i=null;n.signed?i=r.toTwos(n.width).toHexString():(i=r.toHexString(),i=qd(i,n.width/8));const o=mp(r,n.decimals);return new yp(cp,i,o,n)}static fromBytes(e,t){null==t&&(t="fixed");const n=vp.from(t);if(Ud(e).length>n.width/8)throw new Error("overflow");let r=rp.from(e);n.signed&&(r=r.fromTwos(n.width));const i=r.toTwos((n.signed?0:1)+n.width).toHexString(),o=mp(r,n.decimals);return new yp(cp,i,o,n)}static from(e,t){if("string"==typeof e)return yp.fromString(e,t);if(Bd(e))return yp.fromBytes(e,t);try{return yp.fromValue(e,0,t)}catch(fl){if(fl.code!==Rd.errors.INVALID_ARGUMENT)throw fl}return lp.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const bp=yp.from(1),wp=yp.from("0.5"),xp=new Rd("strings/5.7.0");var Cp,Ap;function Ep(e,t,n,r,i){if(e===Ap.BAD_PREFIX||e===Ap.UNEXPECTED_CONTINUE){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return e===Ap.OVERRUN?n.length-t-1:0}function _p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cp.current;t!=Cp.current&&(xp.checkNormalize(),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);if(r>=e.length||56320!==(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return Ud(n)}function Tp(e,t){t||(t=function(e){return[parseInt(e,16)]});let n=0,r={};return e.split(",").forEach((e=>{let i=e.split(":");n+=parseInt(i[0],16),r[n]=t(i[1])})),r}function Sp(e){let t=0;return e.split(",").map((e=>{let n=e.split("-");1===n.length?n[1]="0":""===n[1]&&(n[1]="1");let r=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:r,h:t}}))}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(Cp||(Cp={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Ap||(Ap={})),Object.freeze({error:function(e,t,n,r,i){return xp.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:Ep,replace:function(e,t,n,r,i){return e===Ap.OVERLONG?(r.push(i),0):(r.push(65533),Ep(e,t,n))}}),Sp("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),Tp("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Tp("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Tp("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");let t=[];for(let n=0;n<e.length;n+=4)t.push(parseInt(e.substring(n,n+4),16));return t})),Sp("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");const kp="hash/5.7.0";function Pp(e,t){null==t&&(t=1);const n=[],r=n.forEach,i=function(e,t){r.call(e,(function(e){t>0&&Array.isArray(e)?i(e,t-1):n.push(e)}))};return i(e,t),n}function Dp(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let w=1;w<r;w++)o.push(i+=n());let a=n(),s=t;t+=a;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}const d=Math.pow(2,31),p=d>>>1,h=p>>1,f=d-1;let m=0;for(let w=0;w<31;w++)m=m<<1|u();let g=[],v=0,y=d;for(;;){let e=Math.floor(((m-v+1)*i-1)/y),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<o[r]?n=r:t=r}if(0==t)break;g.push(t);let a=v+Math.floor(y*o[t]/i),s=v+Math.floor(y*o[t+1]/i)-1;for(;!((a^s)&p);)m=m<<1&f|u(),a=a<<1&f,s=s<<1&f|1;for(;a&~s&h;)m=m&p|m<<1&f>>>1|u(),a=a<<1^p,s=(s^p)<<1|p|1;v=a,y=1+s-a}let b=r-4;return g.map((t=>{switch(t-b){case 3:return b+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return b+256+(e[s++]<<8|e[s++]);case 1:return b+e[s++];default:return t-1}}))}(e))}function Fp(e){return 1&e?~e>>1:e>>1}function Np(e,t){let n=Array(e);for(let r=0,i=-1;r<e;r++)n[r]=i+=1+t();return n}function Ip(e,t){let n=Array(e);for(let r=0,i=0;r<e;r++)n[r]=i+=Fp(t());return n}function Rp(e,t){let n=Np(e(),e),r=e(),i=Np(r,e),o=function(e,t){let n=Array(e);for(let r=0;r<e;r++)n[r]=1+t();return n}(r,e);for(let a=0;a<r;a++)for(let e=0;e<o[a];e++)n.push(i[a]+e);return t?n.map((e=>t[e])):n}function Op(e,t,n){let r=Array(e).fill(void 0).map((()=>[]));for(let i=0;i<t;i++)Ip(e,n).forEach(((e,t)=>r[t].push(e)));return r}function jp(e,t){let n=1+t(),r=t(),i=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(n)}return t}(t);return Pp(Op(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*r;return[o+t*n,a.map((e=>e+i))]}))})))}function Mp(e,t){return Op(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const Lp=Dp(function(e){e=atob(e);const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return Ud(t)}("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="));new Set(Rp(Lp)),new Set(Rp(Lp)),function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(jp(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(Mp(n,e))}(function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[r[0]]=r[1]}})(Pp(t))}(Lp),function(e){let t=Rp(e).sort(((e,t)=>e-t));(function n(){let r=[];for(;;){let i=Rp(e,t);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);i>>=1;let s=1==i,l=2==i;return{branches:r,valid:o,fe0f:a,save:s,check:l}})()}(Lp),new Rd(kp);new Uint8Array(32).fill(0);const Bp="\x19Ethereum Signed Message:\n";function Up(e){return"string"==typeof e&&(e=_p(e)),Yd(function(e){const t=e.map((e=>Ud(e))),n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);return t.reduce(((e,t)=>(r.set(t,e),e+t.length)),0),Md(r)}([_p(Bp),_p(String(e.length)),e]))}new Rd("rlp/5.7.0");const Vp=new Rd("address/5.7.0");function Hp(e){Vd(e,20)||Vp.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let i=0;i<40;i++)n[i]=t[i].charCodeAt(0);const r=Ud(Yd(n));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&r[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const zp={};for(let AC=0;AC<10;AC++)zp[String(AC)]=String(AC);for(let AC=0;AC<26;AC++)zp[String.fromCharCode(65+AC)]=String(10+AC);const Wp=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function qp(e){let t=null;if("string"!=typeof e&&Vp.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=Hp(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&Vp.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>zp[e])).join("");for(;t.length>=Wp;){let e=t.substring(0,Wp);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}(e)&&Vp.throwArgumentError("bad icap checksum","address",e),t=function(e){return new Jd(e,36).toString(16)}(e.substring(4));t.length<40;)t="0"+t;t=Hp("0x"+t)}else Vp.throwArgumentError("invalid address","address",e);return t}function Gp(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}new Rd("properties/5.7.0"),new Rd(kp);new Uint8Array(32).fill(0),rp.from(-1);const Yp=rp.from(0),Kp=rp.from(1);rp.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),qd(Kp.toHexString(),32),qd(Yp.toHexString(),32);var Qp={},Xp={},Zp=Jp;function Jp(e,t){if(!e)throw new Error(t||"Assertion failed")}Jp.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var $p={exports:{}};"function"==typeof Object.create?$p.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:$p.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var eh=Zp,th=$p.exports;function nh(e,t){return!(55296!==(64512&e.charCodeAt(t))||t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1))}function rh(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function ih(e){return 1===e.length?"0"+e:e}function oh(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}Xp.inherits=th,Xp.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):nh(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},Xp.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=ih(e[n].toString(16));return t},Xp.htonl=rh,Xp.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=rh(i)),n+=oh(i.toString(16))}return n},Xp.zero2=ih,Xp.zero8=oh,Xp.join32=function(e,t,n,r){var i=n-t;eh(i%4===0);for(var o=new Array(i/4),a=0,s=t;a<o.length;a++,s+=4){var l;l="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[a]=l>>>0}return o},Xp.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},Xp.rotr32=function(e,t){return e>>>t|e<<32-t},Xp.rotl32=function(e,t){return e<<t|e>>>32-t},Xp.sum32=function(e,t){return e+t>>>0},Xp.sum32_3=function(e,t,n){return e+t+n>>>0},Xp.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},Xp.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},Xp.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},Xp.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},Xp.sum64_lo=function(e,t,n,r){return t+r>>>0},Xp.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=0,c=t;return l+=(c=c+r>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+n+i+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},Xp.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},Xp.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,c){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+s>>>0)<s?1:0,e+n+i+a+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},Xp.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,c){return t+r+o+s+c>>>0},Xp.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},Xp.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},Xp.shr64_hi=function(e,t,n){return e>>>n},Xp.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var ah={},sh=Xp,lh=Zp;function ch(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ah.BlockHash=ch,ch.prototype.update=function(e,t){if(e=sh.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=sh.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},ch.prototype.digest=function(e){return this.update(this._pad()),lh(null===this.pending),this._digest(e)},ch.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var uh={},dh={},ph=Xp.rotr32;function hh(e,t,n){return e&t^~e&n}function fh(e,t,n){return e&t^e&n^t&n}function mh(e,t,n){return e^t^n}dh.ft_1=function(e,t,n,r){return 0===e?hh(t,n,r):1===e||3===e?mh(t,n,r):2===e?fh(t,n,r):void 0},dh.ch32=hh,dh.maj32=fh,dh.p32=mh,dh.s0_256=function(e){return ph(e,2)^ph(e,13)^ph(e,22)},dh.s1_256=function(e){return ph(e,6)^ph(e,11)^ph(e,25)},dh.g0_256=function(e){return ph(e,7)^ph(e,18)^e>>>3},dh.g1_256=function(e){return ph(e,17)^ph(e,19)^e>>>10};var gh=Xp,vh=ah,yh=dh,bh=gh.rotl32,wh=gh.sum32,xh=gh.sum32_5,Ch=yh.ft_1,Ah=vh.BlockHash,Eh=[1518500249,1859775393,2400959708,3395469782];function _h(){if(!(this instanceof _h))return new _h;Ah.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}gh.inherits(_h,Ah);var Th=_h;_h.blockSize=512,_h.outSize=160,_h.hmacStrength=80,_h.padLength=64,_h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=bh(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4];for(r=0;r<n.length;r++){var c=~~(r/20),u=xh(bh(i,5),Ch(c,o,a,s),l,n[r],Eh[c]);l=s,s=a,a=bh(o,30),o=i,i=u}this.h[0]=wh(this.h[0],i),this.h[1]=wh(this.h[1],o),this.h[2]=wh(this.h[2],a),this.h[3]=wh(this.h[3],s),this.h[4]=wh(this.h[4],l)},_h.prototype._digest=function(e){return"hex"===e?gh.toHex32(this.h,"big"):gh.split32(this.h,"big")};var Sh=Xp,kh=ah,Ph=dh,Dh=Zp,Fh=Sh.sum32,Nh=Sh.sum32_4,Ih=Sh.sum32_5,Rh=Ph.ch32,Oh=Ph.maj32,jh=Ph.s0_256,Mh=Ph.s1_256,Lh=Ph.g0_256,Bh=Ph.g1_256,Uh=kh.BlockHash,Vh=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Hh(){if(!(this instanceof Hh))return new Hh;Uh.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Vh,this.W=new Array(64)}Sh.inherits(Hh,Uh);var zh=Hh;Hh.blockSize=512,Hh.outSize=256,Hh.hmacStrength=192,Hh.padLength=64,Hh.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=Nh(Bh(n[r-2]),n[r-7],Lh(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],u=this.h[6],d=this.h[7];for(Dh(this.k.length===n.length),r=0;r<n.length;r++){var p=Ih(d,Mh(l),Rh(l,c,u),this.k[r],n[r]),h=Fh(jh(i),Oh(i,o,a));d=u,u=c,c=l,l=Fh(s,p),s=a,a=o,o=i,i=Fh(p,h)}this.h[0]=Fh(this.h[0],i),this.h[1]=Fh(this.h[1],o),this.h[2]=Fh(this.h[2],a),this.h[3]=Fh(this.h[3],s),this.h[4]=Fh(this.h[4],l),this.h[5]=Fh(this.h[5],c),this.h[6]=Fh(this.h[6],u),this.h[7]=Fh(this.h[7],d)},Hh.prototype._digest=function(e){return"hex"===e?Sh.toHex32(this.h,"big"):Sh.split32(this.h,"big")};var Wh=Xp,qh=zh;function Gh(){if(!(this instanceof Gh))return new Gh;qh.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Wh.inherits(Gh,qh);var Yh=Gh;Gh.blockSize=512,Gh.outSize=224,Gh.hmacStrength=192,Gh.padLength=64,Gh.prototype._digest=function(e){return"hex"===e?Wh.toHex32(this.h.slice(0,7),"big"):Wh.split32(this.h.slice(0,7),"big")};var Kh=Xp,Qh=ah,Xh=Zp,Zh=Kh.rotr64_hi,Jh=Kh.rotr64_lo,$h=Kh.shr64_hi,ef=Kh.shr64_lo,tf=Kh.sum64,nf=Kh.sum64_hi,rf=Kh.sum64_lo,of=Kh.sum64_4_hi,af=Kh.sum64_4_lo,sf=Kh.sum64_5_hi,lf=Kh.sum64_5_lo,cf=Qh.BlockHash,uf=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function df(){if(!(this instanceof df))return new df;cf.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=uf,this.W=new Array(160)}Kh.inherits(df,cf);var pf=df;function hf(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function ff(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function mf(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function gf(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function vf(e,t){var n=Zh(e,t,28)^Zh(t,e,2)^Zh(t,e,7);return n<0&&(n+=4294967296),n}function yf(e,t){var n=Jh(e,t,28)^Jh(t,e,2)^Jh(t,e,7);return n<0&&(n+=4294967296),n}function bf(e,t){var n=Zh(e,t,14)^Zh(e,t,18)^Zh(t,e,9);return n<0&&(n+=4294967296),n}function wf(e,t){var n=Jh(e,t,14)^Jh(e,t,18)^Jh(t,e,9);return n<0&&(n+=4294967296),n}function xf(e,t){var n=Zh(e,t,1)^Zh(e,t,8)^$h(e,t,7);return n<0&&(n+=4294967296),n}function Cf(e,t){var n=Jh(e,t,1)^Jh(e,t,8)^ef(e,t,7);return n<0&&(n+=4294967296),n}function Af(e,t){var n=Zh(e,t,19)^Zh(t,e,29)^$h(e,t,6);return n<0&&(n+=4294967296),n}function Ef(e,t){var n=Jh(e,t,19)^Jh(t,e,29)^ef(e,t,6);return n<0&&(n+=4294967296),n}df.blockSize=1024,df.outSize=512,df.hmacStrength=192,df.padLength=128,df.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=Af(n[r-4],n[r-3]),o=Ef(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=xf(n[r-30],n[r-29]),c=Cf(n[r-30],n[r-29]),u=n[r-32],d=n[r-31];n[r]=of(i,o,a,s,l,c,u,d),n[r+1]=af(i,o,a,s,l,c,u,d)}},df.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],l=this.h[5],c=this.h[6],u=this.h[7],d=this.h[8],p=this.h[9],h=this.h[10],f=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],y=this.h[15];Xh(this.k.length===n.length);for(var b=0;b<n.length;b+=2){var w=v,x=y,C=bf(d,p),A=wf(d,p),E=hf(d,p,h,f,m),_=ff(d,p,h,f,m,g),T=this.k[b],S=this.k[b+1],k=n[b],P=n[b+1],D=sf(w,x,C,A,E,_,T,S,k,P),F=lf(w,x,C,A,E,_,T,S,k,P);w=vf(r,i),x=yf(r,i),C=mf(r,i,o,a,s),A=gf(r,i,o,a,s,l);var N=nf(w,x,C,A),I=rf(w,x,C,A);v=m,y=g,m=h,g=f,h=d,f=p,d=nf(c,u,D,F),p=rf(u,u,D,F),c=s,u=l,s=o,l=a,o=r,a=i,r=nf(D,F,N,I),i=rf(D,F,N,I)}tf(this.h,0,r,i),tf(this.h,2,o,a),tf(this.h,4,s,l),tf(this.h,6,c,u),tf(this.h,8,d,p),tf(this.h,10,h,f),tf(this.h,12,m,g),tf(this.h,14,v,y)},df.prototype._digest=function(e){return"hex"===e?Kh.toHex32(this.h,"big"):Kh.split32(this.h,"big")};var _f=Xp,Tf=pf;function Sf(){if(!(this instanceof Sf))return new Sf;Tf.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}_f.inherits(Sf,Tf);var kf=Sf;Sf.blockSize=1024,Sf.outSize=384,Sf.hmacStrength=192,Sf.padLength=128,Sf.prototype._digest=function(e){return"hex"===e?_f.toHex32(this.h.slice(0,12),"big"):_f.split32(this.h.slice(0,12),"big")},uh.sha1=Th,uh.sha224=Yh,uh.sha256=zh,uh.sha384=kf,uh.sha512=pf;var Pf={},Df=Xp,Ff=ah,Nf=Df.rotl32,If=Df.sum32,Rf=Df.sum32_3,Of=Df.sum32_4,jf=Ff.BlockHash;function Mf(){if(!(this instanceof Mf))return new Mf;jf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function Lf(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function Bf(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Uf(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}Df.inherits(Mf,jf),Pf.ripemd160=Mf,Mf.blockSize=512,Mf.outSize=160,Mf.hmacStrength=192,Mf.padLength=64,Mf.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=n,l=r,c=i,u=o,d=a,p=0;p<80;p++){var h=If(Nf(Of(n,Lf(p,r,i,o),e[Vf[p]+t],Bf(p)),zf[p]),a);n=a,a=o,o=Nf(i,10),i=r,r=h,h=If(Nf(Of(s,Lf(79-p,l,c,u),e[Hf[p]+t],Uf(p)),Wf[p]),d),s=d,d=u,u=Nf(c,10),c=l,l=h}h=Rf(this.h[1],i,u),this.h[1]=Rf(this.h[2],o,d),this.h[2]=Rf(this.h[3],a,s),this.h[3]=Rf(this.h[4],n,l),this.h[4]=Rf(this.h[0],r,c),this.h[0]=h},Mf.prototype._digest=function(e){return"hex"===e?Df.toHex32(this.h,"little"):Df.split32(this.h,"little")};var Vf=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Hf=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],zf=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Wf=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],qf=Xp,Gf=Zp;function Yf(e,t,n){if(!(this instanceof Yf))return new Yf(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(qf.toArray(t,n))}var Kf=Yf;function Qf(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null!==t&&void 0!==t||n.path)}},e(n,n.exports),n.exports}Yf.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),Gf(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},Yf.prototype.update=function(e,t){return this.inner.update(e,t),this},Yf.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},function(e){var t=e;t.utils=Xp,t.common=ah,t.sha=uh,t.ripemd=Pf,t.hmac=Kf,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(Qp);var Xf=Zf;function Zf(e,t){if(!e)throw new Error(t||"Assertion failed")}Zf.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var Jf=Qf((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),$f=Qf((function(e,t){var n=t;n.assert=Xf,n.toArray=Jf.toArray,n.zero2=Jf.zero2,n.toHex=Jf.toHex,n.encode=Jf.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),1&l?a=3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?l:-l:a=0,n[0].push(a),1&c?s=3!==(r=t.andln(7)+o&7)&&5!==r||2!==l?c:-c:s=0,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new Xd(e,"hex","le")}})),em=$f.getNAF,tm=$f.getJSF,nm=$f.assert;function rm(e,t){this.type=e,this.p=new Xd(t.p,16),this.red=t.prime?Xd.red(t.prime):Xd.mont(this.p),this.zero=new Xd(0).toRed(this.red),this.one=new Xd(1).toRed(this.red),this.two=new Xd(2).toRed(this.red),this.n=t.n&&new Xd(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var im=rm;function om(e,t){this.curve=e,this.type=t,this.precomputed=null}rm.prototype.point=function(){throw new Error("Not implemented")},rm.prototype.validate=function(){throw new Error("Not implemented")},rm.prototype._fixedNafMul=function(e,t){nm(e.precomputed);var n=e._getDoubles(),r=em(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var l=o+n.step-1;l>=o;l--)a=(a<<1)+r[l];s.push(a)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<s.length;o++)(a=s[o])===d?u=u.mixedAdd(n.points[o]):a===-d&&(u=u.mixedAdd(n.points[o].neg()));c=c.add(u)}return c.toP()},rm.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=em(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var c=o[s];nm(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},rm.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(o=0;o<r;o++){var p=(s=t[o])._getNAFPoints(e);l[o]=p.wnd,c[o]=p.points}for(o=r-1;o>=1;o-=2){var h=o-1,f=o;if(1===l[h]&&1===l[f]){var m=[t[h],null,null,t[f]];0===t[h].y.cmp(t[f].y)?(m[1]=t[h].add(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg())):0===t[h].y.cmp(t[f].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].add(t[f].neg())):(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=tm(n[h],n[f]);for(d=Math.max(v[0].length,d),u[h]=new Array(d),u[f]=new Array(d),a=0;a<d;a++){var y=0|v[0][a],b=0|v[1][a];u[h][a]=g[3*(y+1)+(b+1)],u[f][a]=0,c[h]=m}}else u[h]=em(n[h],l[h],this._bitLength),u[f]=em(n[f],l[f],this._bitLength),d=Math.max(u[h].length,d),d=Math.max(u[f].length,d)}var w=this.jpoint(null,null,null),x=this._wnafT4;for(o=d;o>=0;o--){for(var C=0;o>=0;){var A=!0;for(a=0;a<r;a++)x[a]=0|u[a][o],0!==x[a]&&(A=!1);if(!A)break;C++,o--}if(o>=0&&C++,w=w.dblp(C),o<0)break;for(a=0;a<r;a++){var E=x[a];0!==E&&(E>0?s=c[a][E-1>>1]:E<0&&(s=c[a][-E-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o<r;o++)c[o]=null;return i?w:w.toP()},rm.BasePoint=om,om.prototype.eq=function(){throw new Error("Not implemented")},om.prototype.validate=function(){return this.curve.validate(this)},rm.prototype.decodePoint=function(e,t){e=$f.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*n)return 6===e[0]?nm(e[e.length-1]%2===0):7===e[0]&&nm(e[e.length-1]%2===1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},om.prototype.encodeCompressed=function(e){return this.encode(e,!0)},om.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},om.prototype.encode=function(e,t){return $f.encode(this._encode(t),e)},om.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},om.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},om.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},om.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},om.prototype._getBeta=function(){return null},om.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var am=Qf((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),sm=$f.assert;function lm(e){im.call(this,"short",e),this.a=new Xd(e.a,16).toRed(this.red),this.b=new Xd(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}am(lm,im);var cm=lm;function um(e,t,n,r){im.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new Xd(t,16),this.y=new Xd(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function dm(e,t,n,r){im.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Xd(0)):(this.x=new Xd(t,16),this.y=new Xd(n,16),this.z=new Xd(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}lm.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n,r;if(e.beta)t=new Xd(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(e.lambda)n=new Xd(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],sm(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return r=e.basis?e.basis.map((function(e){return{a:new Xd(e.a,16),b:new Xd(e.b,16)}})):this._getEndoBasis(n),{beta:t,lambda:n,basis:r}}},lm.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Xd.mont(e),n=new Xd(2).toRed(t).redInvm(),r=n.redNeg(),i=new Xd(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},lm.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,a,s,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new Xd(1),f=new Xd(0),m=new Xd(0),g=new Xd(1),v=0;0!==d.cmpn(0);){var y=p.div(d);l=p.sub(y.mul(d)),c=m.sub(y.mul(h));var b=g.sub(y.mul(f));if(!r&&l.cmp(u)<0)t=s.neg(),n=h,r=l.neg(),i=c;else if(r&&2===++v)break;s=l,p=d,d=l,m=h,h=c,g=f,f=b}o=l.neg(),a=c;var w=r.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},lm.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},lm.prototype.pointFromX=function(e,t){(e=new Xd(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},lm.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},lm.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return c},am(um,im.BasePoint),lm.prototype.point=function(e,t,n){return new um(this,e,t,n)},lm.prototype.pointFromJSON=function(e,t){return um.fromJSON(this,e,t)},um.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},um.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},um.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},um.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},um.prototype.isInfinity=function(){return this.inf},um.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},um.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},um.prototype.getX=function(){return this.x.fromRed()},um.prototype.getY=function(){return this.y.fromRed()},um.prototype.mul=function(e){return e=new Xd(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},um.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},um.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},um.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},um.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},um.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},am(dm,im.BasePoint),lm.prototype.jpoint=function(e,t,n){return new dm(this,e,t,n)},dm.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},dm.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},dm.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),p=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(p)).redISub(o.redMul(u)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(p,h,f)},dm.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=n.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),p=s.redMul(u.redISub(d)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(d,p,h)},dm.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),p=d.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(l)),f=o.redMul(d),m=h.redSqr().redISub(f.redAdd(f)),g=f.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(p);var y=c.redMul(s);t+1<e&&(l=l.redMul(p)),o=m,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},dm.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},dm.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(u).redISub(p);h=h.redIAdd(h);var f=u.redAdd(u).redIAdd(u),m=f.redSqr(),g=p.redIAdd(p);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=f.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},dm.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var f=p.redIAdd(p),m=(f=f.redIAdd(f)).redAdd(f);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(f.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},dm.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),p=a.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var h=s.redMul(d).redISub(p),f=n.redAdd(n).redMul(r);return this.curve.jpoint(u,h,f)},dm.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,p,h)},dm.prototype.mul=function(e,t){return e=new Xd(e,t),this.curve._wnafMul(this,e)},dm.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},dm.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},dm.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},dm.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var pm=Qf((function(e,t){var n=t;n.base=im,n.short=cm,n.mont=null,n.edwards=null})),hm=Qf((function(e,t){var n,r=t,i=$f.assert;function o(e){"short"===e.type?this.curve=new pm.short(e):"edwards"===e.type?this.curve=new pm.edwards(e):this.curve=new pm.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Qp.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Qp.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Qp.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Qp.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Qp.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Qp.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Qp.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch{n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Qp.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function fm(e){if(!(this instanceof fm))return new fm(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Jf.toArray(e.entropy,e.entropyEnc||"hex"),n=Jf.toArray(e.nonce,e.nonceEnc||"hex"),r=Jf.toArray(e.pers,e.persEnc||"hex");Xf(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var mm=fm;fm.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},fm.prototype._hmac=function(){return new Qp.hmac(this.hash,this.K)},fm.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},fm.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=Jf.toArray(e,t),n=Jf.toArray(n,r),Xf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},fm.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=Jf.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,Jf.encode(o,t)};var gm=$f.assert;function vm(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var ym=vm;vm.fromPublic=function(e,t,n){return t instanceof vm?t:new vm(e,{pub:t,pubEnc:n})},vm.fromPrivate=function(e,t,n){return t instanceof vm?t:new vm(e,{priv:t,privEnc:n})},vm.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},vm.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},vm.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},vm.prototype._importPrivate=function(e,t){this.priv=new Xd(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},vm.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?gm(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&gm(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},vm.prototype.derive=function(e){return e.validate()||gm(e.validate(),"public point not validated"),e.mul(this.priv).getX()},vm.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},vm.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},vm.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var bm=$f.assert;function wm(e,t){if(e instanceof wm)return e;this._importDER(e,t)||(bm(e.r&&e.s,"Signature without r or s"),this.r=new Xd(e.r,16),this.s=new Xd(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var xm=wm;function Cm(){this.place=0}function Am(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function Em(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function _m(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}wm.prototype._importDER=function(e,t){e=$f.toArray(e,t);var n=new Cm;if(48!==e[n.place++])return!1;var r=Am(e,n);if(!1===r||r+n.place!==e.length||2!==e[n.place++])return!1;var i=Am(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=Am(e,n);if(!1===a||e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Xd(o),this.s=new Xd(s),this.recoveryParam=null,!0},wm.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=Em(t),n=Em(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];_m(r,t.length),(r=r.concat(t)).push(2),_m(r,n.length);var i=r.concat(n),o=[48];return _m(o,i.length),o=o.concat(i),$f.encode(o,e)};var Tm=function(){throw new Error("unsupported")},Sm=$f.assert;function km(e){if(!(this instanceof km))return new km(e);"string"==typeof e&&(Sm(Object.prototype.hasOwnProperty.call(hm,e),"Unknown curve "+e),e=hm[e]),e instanceof hm.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Pm=km;km.prototype.keyPair=function(e){return new ym(this,e)},km.prototype.keyFromPrivate=function(e,t){return ym.fromPrivate(this,e,t)},km.prototype.keyFromPublic=function(e,t){return ym.fromPublic(this,e,t)},km.prototype.genKeyPair=function(e){e||(e={});for(var t=new mm({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Tm(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new Xd(2));;){var i=new Xd(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},km.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},km.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Xd(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new mm({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new Xd(1)),c=0;;c++){var u=r.k?r.k(c):new Xd(s.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(l)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var f=u.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(f=f.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return r.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),m^=1),new xm({r:h,s:f,recoveryParam:m})}}}}}},km.prototype.verify=function(e,t,n,r){e=this._truncateToN(new Xd(e,16)),n=this.keyFromPublic(n,r);var i=(t=new xm(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},km.prototype.recoverPubKey=function(e,t,n,r){Sm((3&n)===n,"The recovery param is more than two bits"),t=new xm(t,r);var i=this.n,o=new Xd(e),a=t.r,s=t.s,l=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var u=t.r.invm(i),d=i.sub(o).mul(u).umod(i),p=s.mul(u).umod(i);return this.g.mulAdd(d,a,p)},km.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new xm(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch{continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var Dm=Qf((function(e,t){var n=t;n.version="6.5.4",n.utils=$f,n.rand=function(){throw new Error("unsupported")},n.curve=pm,n.curves=hm,n.ec=Pm,n.eddsa=null})),Fm=Dm.ec;const Nm=new Rd("signing-key/5.7.0");let Im=null;function Rm(){return Im||(Im=new Fm("secp256k1")),Im}class Om{constructor(e){Gp(this,"curve","secp256k1"),Gp(this,"privateKey",zd(e)),32!==function(e){if("string"!=typeof e)e=zd(e);else if(!Vd(e)||e.length%2)return null;return(e.length-2)/2}(this.privateKey)&&Nm.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Rm().keyFromPrivate(Ud(this.privateKey));Gp(this,"publicKey","0x"+t.getPublic(!1,"hex")),Gp(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Gp(this,"_isSigningKey",!0)}_addPoint(e){const t=Rm().keyFromPublic(Ud(this.publicKey)),n=Rm().keyFromPublic(Ud(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=Rm().keyFromPrivate(Ud(this.privateKey)),n=Ud(e);32!==n.length&&Nm.throwArgumentError("bad digest length","digest",e);const r=t.sign(n,{canonical:!0});return Gd({recoveryParam:r.recoveryParam,r:qd("0x"+r.r.toString(16),32),s:qd("0x"+r.s.toString(16),32)})}computeSharedSecret(e){const t=Rm().keyFromPrivate(Ud(this.privateKey)),n=Rm().keyFromPublic(Ud(jm(e)));return qd("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function jm(e,t){const n=Ud(e);if(32===n.length){const e=new Om(n);return t?"0x"+Rm().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?zd(n):"0x"+Rm().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+Rm().keyFromPublic(n).getPublic(!0,"hex"):zd(n):Nm.throwArgumentError("invalid public or private key","key","[REDACTED]")}var Mm;function Lm(e,t){return function(e){return qp(Wd(Yd(Wd(jm(e),1)),12))}(function(e,t){const n=Gd(t),r={r:Ud(n.r),s:Ud(n.s)};return"0x"+Rm().recoverPubKey(Ud(e),r,n.recoveryParam).encode("hex",!1)}(Ud(e),t))}new Rd("transactions/5.7.0"),function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(Mm||(Mm={}));const Bm="https://rpc.walletconnect.com/v1";async function Um(e,t,n,r,i,o){switch(n.t){case"eip191":return function(e,t,n){return Lm(Up(t),n).toLowerCase()===e.toLowerCase()}(e,t,n.s);case"eip1271":return await async function(e,t,n,r,i,o){try{const a="0x1626ba7e",s="0000000000000000000000000000000000000000000000000000000000000040",l="0000000000000000000000000000000000000000000000000000000000000041",c=n.substring(2),u=a+Up(t).substring(2)+s+l+c,d=await fetch("".concat(o||Bm,"/?chainId=").concat(r,"&projectId=").concat(i),{method:"POST",body:JSON.stringify({id:Vm(),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:u},"latest"]})}),{result:p}=await d.json();return!!p&&p.slice(0,a.length).toLowerCase()===a.toLowerCase()}catch(Ws){return console.error("isValidEip1271Signature: ",Ws),!1}}(e,t,n.s,r,i,o);default:throw new Error("verifySignature failed: Attempted to verify CacaoSignature with unknown type: ".concat(n.t))}}function Vm(){return Date.now()+Math.floor(1e3*Math.random())}var Hm=Object.defineProperty,zm=Object.defineProperties,Wm=Object.getOwnPropertyDescriptors,qm=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable,Km=(e,t,n)=>t in e?Hm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qm=(e,t)=>{for(var n in t||(t={}))Gm.call(t,n)&&Km(e,n,t[n]);if(qm)for(var n of qm(t))Ym.call(t,n)&&Km(e,n,t[n]);return e},Xm=(e,t)=>zm(e,Wm(t));const Zm=e=>null===e||void 0===e?void 0:e.split(":"),Jm=e=>{const t=e&&Zm(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]},$m=e=>{const t=e&&Zm(e);if(t)return t[2]+":"+t[3]},eg=e=>{const t=e&&Zm(e);if(t)return t.pop()};async function tg(e){const{cacao:t,projectId:n}=e,{s:r,p:i}=t,o=ng(i,i.iss),a=eg(i.iss);return await Um(a,o,r,Jm(i.iss),n)}const ng=(e,t)=>{const n="".concat(e.domain," wants you to sign in with your Ethereum account:"),r=eg(t);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let i=e.statement||void 0;const o="URI: ".concat(e.aud||e.uri),a="Version: ".concat(e.version),s="Chain ID: ".concat(Jm(t)),l="Nonce: ".concat(e.nonce),c="Issued At: ".concat(e.iat),u=e.resources?"Resources:".concat(e.resources.map((e=>"\n- ".concat(e))).join("")):void 0,d=hg(e.resources);if(d){i=ug(i,ag(d))}return[n,r,"",i,"",o,a,s,l,c,u].filter((e=>null!=e)).join("\n")};function rg(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const t=Object.keys(e.att);if(null==t||!t.length)throw new Error("No resources found in `att` property");t.forEach((t=>{const n=e.att[t];if(Array.isArray(n))throw new Error("Resource must be an object: ".concat(t));if("object"!=typeof n)throw new Error("Resource must be an object: ".concat(t));if(!Object.keys(n).length)throw new Error("Resource object is empty: ".concat(t));Object.keys(n).forEach((e=>{const t=n[e];if(!Array.isArray(t))throw new Error("Ability limits ".concat(e," must be an array of objects, found: ").concat(t));if(!t.length)throw new Error("Value of ".concat(e," is empty array, must be an array with objects"));t.forEach((t=>{if("object"!=typeof t)throw new Error("Ability limits (".concat(e,") must be an array of objects, found: ").concat(t))}))}))}))}function ig(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=null===(n=t)||void 0===n?void 0:n.sort(((e,t)=>e.localeCompare(t)));const i=t.map((t=>({["".concat(e,"/").concat(t)]:[r]})));return Object.assign({},...i)}function og(e){return rg(e),"urn:recap:".concat(function(e){return Buffer.from(JSON.stringify(e)).toString("base64")}(e).replace(/=/g,""))}function ag(e){const t=function(e){return JSON.parse(Buffer.from(e,"base64").toString("utf-8"))}(e.replace("urn:recap:",""));return rg(t),t}function sg(e,t,n){const r=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null!==n&&void 0!==n&&n.sort(((e,t)=>e.localeCompare(t))),{att:{[e]:ig(t,n,r)}}}(e,t,n);return og(r)}function lg(e){return e&&e.includes("urn:recap:")}function cg(e,t){const n=function(e,t){rg(e),rg(t);const n=Object.keys(e.att).concat(Object.keys(t.att)).sort(((e,t)=>e.localeCompare(t))),r={att:{}};return n.forEach((n=>{var i,o;Object.keys((null==(i=e.att)?void 0:i[n])||{}).concat(Object.keys((null==(o=t.att)?void 0:o[n])||{})).sort(((e,t)=>e.localeCompare(t))).forEach((i=>{var o,a;r.att[n]=Xm(Qm({},r.att[n]),{[i]:(null==(o=e.att[n])?void 0:o[i])||(null==(a=t.att[n])?void 0:a[i])})}))})),r}(ag(e),ag(t));return og(n)}function ug(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;rg(t);const n="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(n))return e;const r=[];let i=0;Object.keys(t.att).forEach((e=>{const n=Object.keys(t.att[e]).map((e=>({ability:e.split("/")[0],action:e.split("/")[1]})));n.sort(((e,t)=>e.action.localeCompare(t.action)));const o={};n.forEach((e=>{o[e.ability]||(o[e.ability]=[]),o[e.ability].push(e.action)}));const a=Object.keys(o).map((t=>(i++,"(".concat(i,") '").concat(t,"': '").concat(o[t].join("', '"),"' for '").concat(e,"'."))));r.push(a.join(", ").replace(".,","."))}));const o=r.join(" "),a="".concat(n).concat(o);return"".concat(e?e+" ":"").concat(a)}function dg(e){var t;const n=ag(e);rg(n);const r=null==(t=n.att)?void 0:t.eip155;return r?Object.keys(r).map((e=>e.split("/")[1])):[]}function pg(e){const t=ag(e);rg(t);const n=[];return Object.values(t.att).forEach((e=>{Object.values(e).forEach((e=>{var t;null!=(t=null===e||void 0===e?void 0:e[0])&&t.chains&&n.push(e[0].chains)}))})),[...new Set(n.flat())]}function hg(e){if(!e)return;const t=null===e||void 0===e?void 0:e[e.length-1];return lg(t)?t:void 0}const fg="base10",mg="base16",gg="base64pad",vg="utf8",yg=0,bg=1,wg=0,xg=1,Cg=12,Ag=32;function Eg(){return wu((0,Il.randomBytes)(Ag),mg)}function _g(e){return wu((0,Wu.tW)(xu(e,mg)),mg)}function Tg(e){return wu((0,Wu.tW)(xu(e,vg)),mg)}function Sg(e){return Number(wu(e,fg))}function kg(e){const t=function(e){return xu("".concat(e),fg)}(typeof e.type<"u"?e.type:yg);if(Sg(t)===bg&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?xu(e.senderPublicKey,mg):void 0,r=typeof e.iv<"u"?xu(e.iv,mg):(0,Il.randomBytes)(Cg);return function(e){if(Sg(e.type)===bg){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return wu(ql([e.type,e.senderPublicKey,e.iv,e.sealed]),gg)}return wu(ql([e.type,e.iv,e.sealed]),gg)}({type:t,sealed:new Hu.g6(xu(e.symKey,mg)).seal(r,xu(e.message,vg)),iv:r,senderPublicKey:n})}function Pg(e){const t=xu(e,gg),n=t.slice(wg,xg),r=xg;if(Sg(n)===bg){const e=r+Ag,i=e+Cg,o=t.slice(r,e),a=t.slice(e,i);return{type:n,sealed:t.slice(i),iv:a,senderPublicKey:o}}const i=r+Cg,o=t.slice(r,i);return{type:n,sealed:t.slice(i),iv:o}}function Dg(e){const t=(null===e||void 0===e?void 0:e.type)||yg;if(t===bg){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function Fg(e){return e.type===bg&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}function Ng(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:"irn"}}function Ig(e){const t=Gu[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: ".concat(e));return t}var Rg=Object.defineProperty,Og=Object.defineProperties,jg=Object.getOwnPropertyDescriptors,Mg=Object.getOwnPropertySymbols,Lg=Object.prototype.hasOwnProperty,Bg=Object.prototype.propertyIsEnumerable,Ug=(e,t,n)=>t in e?Rg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vg=(e,t)=>{for(var n in t||(t={}))Lg.call(t,n)&&Ug(e,n,t[n]);if(Mg)for(var n of Mg(t))Bg.call(t,n)&&Ug(e,n,t[n]);return e};function Hg(e){const t={},n="relay"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-");return Object.keys(e).forEach((r=>{if(r.startsWith(n)){const i=r.replace(n,""),o=e[r];t[i]=o}})),t}function zg(e){const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),o=typeof n<"u"?e.substring(n):"",a=Vu.parse(o),s="string"==typeof a.methods?a.methods.split(","):void 0;return{protocol:r,topic:Wg(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:Hg(a),methods:s,expiryTimestamp:a.expiryTimestamp?parseInt(a.expiryTimestamp,10):void 0}}function Wg(e){return e.startsWith("//")?e.substring(2):e}function qg(e){return"".concat(e.protocol,":").concat(e.topic,"@").concat(e.version,"?")+Vu.stringify(Vg(((e,t)=>Og(e,jg(t)))(Vg({symKey:e.symKey},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Gg(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push("".concat(n,":").concat(r))})),t}function Yg(e,t){t=t.map((e=>e.replace("did:pkh:","")));const n=function(e){const t={};return null!==e&&void 0!==e&&e.forEach((e=>{const[n,r]=e.split(":");t[n]||(t[n]={accounts:[],chains:[],events:[]}),t[n].accounts.push(e),t[n].chains.push("".concat(n,":").concat(r))})),t}(t);for(const[r,i]of Object.entries(n))i.methods?i.methods=xd(i.methods,e):i.methods=e,i.events=["chainChanged","accountsChanged"];return n}const Kg={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Qg={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Xg(e,t){const{message:n,code:r}=Qg[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function Zg(e,t){const{message:n,code:r}=Kg[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function Jg(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function $g(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function ev(e){return typeof e>"u"}function tv(e,t){return!(!t||!ev(e))||"string"==typeof e&&!!e.trim().length}function nv(e,t){return!(!t||!ev(e))||"number"==typeof e&&!isNaN(e)}function rv(e){return!(!tv(e,!1)||!e.includes(":"))&&2===e.split(":").length}function iv(e){let t=!0;return Jg(e)?e.length&&(t=e.every((e=>tv(e,!1)))):t=!1,t}function ov(e,t,n){let r=null;return Object.entries(e).forEach((e=>{let[i,o]=e;if(r)return;const a=function(e,t,n){let r=null;return Jg(t)&&t.length?t.forEach((e=>{r||rv(e)||(r=Zg("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(e,' should be a string and conform to "namespace:chainId" format')))})):rv(e)||(r=Zg("UNSUPPORTED_CHAINS","".concat(n,', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }'))),r}(i,Qu(i,o),"".concat(t," ").concat(n));a&&(r=a)})),r}function av(e,t){let n=null;return Jg(e)?e.forEach((e=>{n||function(e){if(tv(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&rv(e)}}return!1}(e)||(n=Zg("UNSUPPORTED_ACCOUNTS","".concat(t,", account ").concat(e,' should be a string and conform to "namespace:chainId:address" format')))})):n=Zg("UNSUPPORTED_ACCOUNTS","".concat(t,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}function sv(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return iv(null===e||void 0===e?void 0:e.methods)?iv(null===e||void 0===e?void 0:e.events)||(n=Zg("UNSUPPORTED_EVENTS","".concat(t,", events should be an array of strings or empty array for no events"))):n=Zg("UNSUPPORTED_METHODS","".concat(t,", methods should be an array of strings or empty array for no methods")),n}(e,"".concat(t,", namespace"));r&&(n=r)})),n}function lv(e,t){let n=null;if(e&&$g(e)){const r=sv(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=av(null===e||void 0===e?void 0:e.accounts,"".concat(t," namespace"));r&&(n=r)})),n}(e,t);i&&(n=i)}else n=Xg("MISSING_OR_INVALID","".concat(t,", namespaces should be an object with data"));return n}function cv(e){return tv(e.protocol,!0)}function uv(e){return typeof e<"u"&&null!==typeof e}function dv(e,t){return!(!rv(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Gg(e.accounts))})),t}(e).includes(t))}function pv(e,t,n){return!!tv(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Gg(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function hv(e,t,n){return!!tv(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Gg(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function fv(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),o=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=Gg(e[n].accounts);null===r||void 0===r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes("".concat(r,":")))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),a=Object.keys(i),s=Object.keys(o),l=mv(Object.keys(e)),c=mv(Object.keys(t)),u=l.filter((e=>!c.includes(e)));return u.length&&(r=Xg("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n      Required: ").concat(u.toString(),"\n      Received: ").concat(Object.keys(t).toString()))),dd(a,s)||(r=Xg("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n      Required: ").concat(a.toString(),"\n      Approved: ").concat(s.toString()))),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=Gg(t[e].accounts);i.includes(e)||(r=Xg("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(e,"\n        Required: ").concat(e,"\n        Approved: ").concat(i.toString())))})),a.forEach((e=>{r||(dd(i[e].methods,o[e].methods)?dd(i[e].events,o[e].events)||(r=Xg("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(e))):r=Xg("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(e)))})),r}function mv(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function gv(){const e=ld();return new Promise((t=>{switch(e){case rd.browser:t(function(){var e;return sd()&&(null===(e=navigator)||void 0===e?void 0:e.onLine)}());break;case rd.reactNative:t(async function(){if(ad()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return null===e||void 0===e?void 0:e.isConnected}return!0}());break;case rd.node:default:t(!0)}}))}function vv(e){switch(ld()){case rd.browser:!function(e){!ad()&&sd()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case rd.reactNative:!function(e){var t;ad()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&(null===(t=n.g)||void 0===t||t.NetInfo.addEventListener((t=>e(null===t||void 0===t?void 0:t.isConnected))))}(e);case rd.node:}}const yv={};class bv{static get(e){return yv[e]}static set(e,t){yv[e]=t}static delete(e){delete yv[e]}}const wv="PARSE_ERROR",xv="INVALID_REQUEST",Cv="METHOD_NOT_FOUND",Av="INVALID_PARAMS",Ev="INTERNAL_ERROR",_v="SERVER_ERROR",Tv=[-32700,-32600,-32601,-32602,-32603],Sv={[wv]:{code:-32700,message:"Parse error"},[xv]:{code:-32600,message:"Invalid Request"},[Cv]:{code:-32601,message:"Method not found"},[Av]:{code:-32602,message:"Invalid params"},[Ev]:{code:-32603,message:"Internal error"},[_v]:{code:-32e3,message:"Server error"}},kv=_v;function Pv(e){return Tv.includes(e)}function Dv(e){return Object.keys(Sv).includes(e)?Sv[e]:Sv[kv]}function Fv(e){const t=Object.values(Sv).find((t=>t.code===e));return t||Sv[kv]}var Nv=n(36360);function Iv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function Rv(){return BigInt(Iv(arguments.length>0&&void 0!==arguments[0]?arguments[0]:6))}function Ov(e,t,n){return{id:n||Iv(),jsonrpc:"2.0",method:e,params:t}}function jv(e,t){return{id:e,jsonrpc:"2.0",result:t}}function Mv(e,t,n){return{id:e,jsonrpc:"2.0",error:Lv(t,n)}}function Lv(e,t){return"undefined"===typeof e?Dv(Ev):("string"===typeof e&&(e=Object.assign(Object.assign({},Dv(_v)),{message:e})),"undefined"!==typeof t&&(e.data=t),Pv(e.code)&&(e=Fv(e.code)),e)}class Bv{}class Uv extends Bv{constructor(){super()}}class Vv extends Uv{constructor(e){super()}}function Hv(e,t){const n=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return"undefined"!==typeof n&&new RegExp(t).test(n)}function zv(e){return Hv(e,"^wss?:")}function Wv(e){return"object"===typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function qv(e){return Wv(e)&&"method"in e}function Gv(e){return Wv(e)&&(Yv(e)||Kv(e))}function Yv(e){return"result"in e}function Kv(e){return"error"in e}class Qv extends Vv{constructor(e){super(e),this.events=new Le.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(Ov(e.method,e.params||[],e.id||Rv().toString()),t)}async requestStrict(e,t){return new Promise((async(n,r)=>{if(!this.connection.connected)try{await this.open()}catch(Ys){r(Ys)}this.events.on("".concat(e.id),(e=>{Kv(e)?r(e.error):n(e.result)}));try{await this.connection.send(e,t)}catch(Ys){r(Ys)}}))}setConnection(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection}onPayload(e){this.events.emit("payload",e),Gv(e)?this.events.emit("".concat(e.id),e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error("WebSocket connection closed abnormally with code: ".concat(e.code," ").concat(e.reason?"(".concat(e.reason,")"):""))),this.events.emit("disconnect")}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const Xv=e=>e.split("?")[0],Zv=typeof WebSocket<"u"?WebSocket:typeof n.g<"u"&&typeof n.g.WebSocket<"u"?n.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:n(96330);class Jv{constructor(e){if(this.url=e,this.events=new Le.EventEmitter,this.registering=!1,!zv(e))throw new Error("Provided URL is not compatible with WebSocket connection: ".concat(e));this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;await this.register(e)}async close(){return new Promise(((e,t)=>{typeof this.socket>"u"?t(new Error("Connection already closed")):(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close())}))}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(js(e))}catch(t){this.onError(e.id,t)}}register(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!zv(e))throw new Error("Provided URL is not compatible with WebSocket connection: ".concat(e));if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,r)=>{const i=new URLSearchParams(e).get("origin"),o=(0,Nv.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:(s=e,!new RegExp("wss?://localhost(:d{2,5})?").test(s))},a=new Zv(e,[],o);var s;typeof WebSocket<"u"||typeof n.g<"u"&&typeof n.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?a.onerror=e=>{const t=e;r(this.emitError(t.error))}:a.on("error",(e=>{r(this.emitError(e))})),a.onopen=()=>{this.onOpen(a),t(a)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?Os(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),r=Mv(e,n.message||n.toString());this.events.emit("payload",r)}parseError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return function(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error("Unavailable ".concat(n," RPC url at ").concat(t)):e}(e,Xv(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error((null===e||void 0===e?void 0:e.message)||"WebSocket connection failed for host: ".concat(Xv(this.url))));return this.events.emit("register_error",t),t}}var $v=n(58956),ey=n.n($v),ty=n(51598),ny=n.n(ty);var ry=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==n[a])throw new TypeError(o+" is ambiguous");n[a]=i}var s=e.length,l=e.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===l;)r++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,p=o-1;(0!==u||d<i)&&-1!==p;p--,d++)u+=s*a[p]>>>0,a[p]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var f=new Uint8Array(r+(o-h)),m=r;h!==o;)f[m++]=a[h++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var a=(o-i)*u+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],p=0,h=a-1;(0!==d||p<r)&&-1!==h;h--,p++)d+=256*c[h]>>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=p,i++}for(var f=a-r;f!==a&&0===c[f];)f++;for(var m=l.repeat(n);f<a;++f)m+=e.charAt(c[f]);return m},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error("Non-".concat(t," character"))}}},iy=ry;const oy=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class ay{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return"".concat(this.prefix).concat(this.baseEncode(e));throw Error("Unknown type, must be binary type")}}class sy{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error("Unable to decode multibase string ".concat(JSON.stringify(e),", ").concat(this.name," decoder only supports inputs prefixed with ").concat(this.prefix));return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return cy(this,e)}}class ly{constructor(e){this.decoders=e}or(e){return cy(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError("Unable to decode multibase string ".concat(JSON.stringify(e),", only inputs prefixed with ").concat(Object.keys(this.decoders)," are supported"))}}const cy=(e,t)=>new ly({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class uy{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new ay(e,t,n),this.decoder=new sy(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const dy=e=>{let{name:t,prefix:n,encode:r,decode:i}=e;return new uy(t,n,r,i)},py=e=>{let{prefix:t,name:n,alphabet:r}=e;const{encode:i,decode:o}=iy(r,n);return dy({prefix:t,name:n,encode:i,decode:e=>oy(o(e))})},hy=e=>{let{name:t,prefix:n,bitsPerChar:r,alphabet:i}=e;return dy({prefix:n,name:t,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let o="",a=0,s=0;for(let l=0;l<e.length;++l)for(s=s<<8|e[l],a+=8;a>n;)a-=n,o+=t[i&s>>a];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o})(e,i,r),decode:e=>((e,t,n,r)=>{const i={};for(let u=0;u<t.length;++u)i[t[u]]=u;let o=e.length;for(;"="===e[o-1];)--o;const a=new Uint8Array(o*n/8|0);let s=0,l=0,c=0;for(let u=0;u<o;++u){const t=i[e[u]];if(void 0===t)throw new SyntaxError("Non-".concat(r," character"));l=l<<n|t,s+=n,s>=8&&(s-=8,a[c++]=255&l>>s)}if(s>=n||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return a})(e,i,r,t)})},fy=dy({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var my=Object.freeze({__proto__:null,identity:fy});const gy=hy({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var vy=Object.freeze({__proto__:null,base2:gy});const yy=hy({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var by=Object.freeze({__proto__:null,base8:yy});const wy=py({prefix:"9",name:"base10",alphabet:"0123456789"});var xy=Object.freeze({__proto__:null,base10:wy});const Cy=hy({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ay=hy({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ey=Object.freeze({__proto__:null,base16:Cy,base16upper:Ay});const _y=hy({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ty=hy({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Sy=hy({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ky=hy({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Py=hy({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Dy=hy({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fy=hy({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Ny=hy({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Iy=hy({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Ry=Object.freeze({__proto__:null,base32:_y,base32upper:Ty,base32pad:Sy,base32padupper:ky,base32hex:Py,base32hexupper:Dy,base32hexpad:Fy,base32hexpadupper:Ny,base32z:Iy});const Oy=py({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),jy=py({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var My=Object.freeze({__proto__:null,base36:Oy,base36upper:jy});const Ly=py({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),By=py({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Uy=Object.freeze({__proto__:null,base58btc:Ly,base58flickr:By});const Vy=hy({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Hy=hy({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),zy=hy({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Wy=hy({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var qy=Object.freeze({__proto__:null,base64:Vy,base64pad:Hy,base64url:zy,base64urlpad:Wy});const Gy=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),Yy=Gy.reduce(((e,t,n)=>(e[n]=t,e)),[]),Ky=Gy.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const Qy=dy({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=Yy[t]),"")},decode:function(e){const t=[];for(const n of e){const e=Ky[n.codePointAt(0)];if(void 0===e)throw new Error("Non-base256emoji character: ".concat(n));t.push(e)}return new Uint8Array(t)}});var Xy=Object.freeze({__proto__:null,base256emoji:Qy}),Zy=function e(t,n,r){n=n||[];for(var i=r=r||0;t>=eb;)n[r++]=255&t|Jy,t/=128;for(;t&$y;)n[r++]=255&t|Jy,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},Jy=128,$y=-128,eb=Math.pow(2,31);var tb=function e(t,n){var r,i=0,o=(n=n||0,0),a=n,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(r&rb)<<o:(r&rb)*Math.pow(2,o),o+=7}while(r>=nb);return e.bytes=a-n,i},nb=128,rb=127;var ib=Math.pow(2,7),ob=Math.pow(2,14),ab=Math.pow(2,21),sb=Math.pow(2,28),lb=Math.pow(2,35),cb=Math.pow(2,42),ub=Math.pow(2,49),db=Math.pow(2,56),pb=Math.pow(2,63),hb={encode:Zy,decode:tb,encodingLength:function(e){return e<ib?1:e<ob?2:e<ab?3:e<sb?4:e<lb?5:e<cb?6:e<ub?7:e<db?8:e<pb?9:10}},fb=hb;const mb=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return fb.encode(e,t,n),t},gb=e=>fb.encodingLength(e),vb=(e,t)=>{const n=t.byteLength,r=gb(e),i=r+gb(n),o=new Uint8Array(i+n);return mb(e,o,0),mb(n,o,r),o.set(t,i),new yb(e,n,t,o)};class yb{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const bb=e=>{let{name:t,code:n,encode:r}=e;return new wb(t,n,r)};class wb{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?vb(this.code,t):t.then((e=>vb(this.code,e)))}throw Error("Unknown type, must be binary type")}}const xb=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Cb=bb({name:"sha2-256",code:18,encode:xb("SHA-256")}),Ab=bb({name:"sha2-512",code:19,encode:xb("SHA-512")});Object.freeze({__proto__:null,sha256:Cb,sha512:Ab});const Eb=oy,_b={code:0,name:"identity",encode:Eb,digest:e=>vb(0,Eb(e))};Object.freeze({__proto__:null,identity:_b});new TextEncoder,new TextDecoder;const Tb={...my,...vy,...by,...xy,...Ey,...Ry,...My,...Uy,...qy,...Xy};function Sb(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const kb=Sb("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Pb=Sb("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),Db={utf8:kb,"utf-8":kb,hex:Tb.base16,latin1:Pb,ascii:Pb,binary:Pb,...Tb};const Fb="core",Nb="".concat("wc","@2:").concat(Fb,":"),Ib="error",Rb={database:":memory:"},Ob="client_ed25519_seed",jb=qs.ONE_DAY,Mb=qs.SIX_HOURS,Lb="wss://relay.walletconnect.com",Bb="wss://relay.walletconnect.org",Ub="relayer_message",Vb="relayer_message_ack",Hb="relayer_connect",zb="relayer_disconnect",Wb="relayer_error",qb="relayer_connection_stalled",Gb="relayer_publish",Yb="payload",Kb="connect",Qb="disconnect",Xb="error",Zb=qs.ONE_SECOND,Jb="subscription_created",$b="subscription_deleted",ew="subscription_sync",tw="subscription_resubscribed",nw=1e3*qs.FIVE_SECONDS,rw={wc_pairingDelete:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:qs.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:qs.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:qs.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:0},res:{ttl:qs.ONE_DAY,prompt:!1,tag:0}}},iw="pairing_create",ow="pairing_expire",aw="pairing_delete",sw="pairing_ping",lw="history_created",cw="history_updated",uw="history_deleted",dw="history_sync",pw="expirer_created",hw="expirer_deleted",fw="expirer_expired",mw="expirer_sync",gw="verify-api",vw="https://verify.walletconnect.com",yw="https://verify.walletconnect.org",bw=[vw,yw];class ww{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=Nb,this.init=async()=>{if(!this.initialized){const e=await this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=Xg("NO_MATCHING_KEY","".concat(this.name,": ").concat(e));throw new Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=yl(t,this.name)}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,pd(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?hd(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class xw{constructor(e,t,n){this.core=e,this.logger=t,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();return Au(Eu(await this.getClientSeed()).publicKey)},this.generateKeyPair=()=>{this.isInitialized();const e=function(){const e=qu.TZ();return{privateKey:wu(e.secretKey,mg),publicKey:wu(e.publicKey,mg)}}();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();const t=Eu(await this.getClientSeed()),n=Eg(),r=jb;return await _u(n,e,r,t)},this.generateSharedKey=(e,t,n)=>{this.isInitialized();const r=function(e,t){const n=qu.Tc(xu(e,mg),xu(t,mg),!0);return wu(new zu.i(Wu.aD,n).expand(Ag),mg)}(this.getPrivateKey(e),t);return this.setSymKey(r,n)},this.setSymKey=async(e,t)=>{this.isInitialized();const n=t||_g(e);return await this.keychain.set(n,e),n},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,n)=>{this.isInitialized();const r=Dg(n),i=js(t);if(Fg(r)){const t=r.senderPublicKey,n=r.receiverPublicKey;e=await this.generateSharedKey(t,n)}const o=this.getSymKey(e),{type:a,senderPublicKey:s}=r;return kg({type:a,symKey:o,message:i,senderPublicKey:s})},this.decode=async(e,t,n)=>{this.isInitialized();const r=function(e,t){const n=Pg(e);return Dg({type:Sg(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?wu(n.senderPublicKey,mg):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}(t,n);if(Fg(r)){const t=r.receiverPublicKey,n=r.senderPublicKey;e=await this.generateSharedKey(t,n)}try{const n=function(e){const t=new Hu.g6(xu(e.symKey,mg)),{sealed:n,iv:r}=Pg(e.encoded),i=t.open(r,n);if(null===i)throw new Error("Failed to decrypt");return wu(i,vg)}({symKey:this.getSymKey(e),encoded:t});return Os(n)}catch(Ws){this.logger.error("Failed to decode message from topic: '".concat(e,"', clientId: '").concat(await this.getClientId(),"'")),this.logger.error(Ws)}},this.getPayloadType=e=>Sg(Pg(e).type),this.getPayloadSenderPublicKey=e=>{const t=Pg(e);return t.senderPublicKey?wu(t.senderPublicKey,mg):void 0},this.core=e,this.logger=yl(t,this.name),this.keychain=n||new ww(this.core,this.logger)}get context(){return vl(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(Ob)}catch{e=Eg(),await this.keychain.set(Ob,e)}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=Db[t];if(!n)throw new Error('Unsupported encoding "'.concat(t,'"'));return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode("".concat(n.prefix).concat(e)):globalThis.Buffer.from(e,"utf8")}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Cw extends Cl{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Nb,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const e=await this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(fl){this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(fl)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();const n=Tg(t);let r=this.messages.get(e);return typeof r>"u"&&(r={}),typeof r[n]<"u"||(r[n]=t,this.messages.set(e,r),await this.persist()),n},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>{this.isInitialized();return typeof this.get(e)[Tg(t)]<"u"},this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=yl(e,this.name),this.core=t}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,pd(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?hd(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Aw extends Al{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new Le.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,qs.toMiliseconds)(qs.ONE_MINUTE),this.failedPublishTimeout=(0,qs.toMiliseconds)(qs.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,n)=>{var r;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}});const i=(null===n||void 0===n?void 0:n.ttl)||Mb,o=Ng(n),a=(null===n||void 0===n?void 0:n.prompt)||!1,s=(null===n||void 0===n?void 0:n.tag)||0,l=(null===n||void 0===n?void 0:n.id)||Rv().toString(),c={topic:e,message:t,opts:{ttl:i,relay:o,prompt:a,tag:s,id:l}},u="Failed to publish payload, please try again. id:".concat(l," tag:").concat(s),d=Date.now();let p,h=1;try{for(;void 0===p;){if(Date.now()-d>this.publishTimeout)throw new Error(u);this.logger.trace({id:l,attempts:h},"publisher.publish - attempt ".concat(h)),p=await await md(this.rpcPublish(e,t,i,o,a,s,l).catch((e=>this.logger.warn(e))),this.publishTimeout,u),h++,p||await new Promise((e=>setTimeout(e,this.failedPublishTimeout)))}this.relayer.events.emit(Gb,c),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:l,topic:e,message:t,opts:n}})}catch(f){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(f),null!=(r=null===n||void 0===n?void 0:n.internal)&&r.throwOnFailedPublish)throw f;this.queue.set(l,c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=yl(t,this.name),this.registerEventListeners()}get context(){return vl(this.logger)}rpcPublish(e,t,n,r,i,o,a){var s,l,c,u;const d={method:Ig(r.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:o},id:a};return ev(null==(s=d.params)?void 0:s.prompt)&&(null==(l=d.params)||delete l.prompt),ev(null==(c=d.params)?void 0:c.tag)&&(null==(u=d.params)||delete u.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((async e=>{const{topic:t,message:n,opts:r}=e;await this.publish(t,n,r)}))}registerEventListeners(){this.relayer.core.heartbeat.on(Qs,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(qb);this.checkQueue()})),this.relayer.on(Vb,(e=>{this.removeRequestFromQueue(e.id.toString())}))}}class Ew{constructor(){this.map=new Map,this.set=(e,t)=>{const n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const n=this.get(e);if(!this.exists(e,t))return;const r=n.filter((e=>e!==t));r.length?this.map.set(e,r):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var _w=Object.defineProperty,Tw=Object.defineProperties,Sw=Object.getOwnPropertyDescriptors,kw=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,Fw=(e,t,n)=>t in e?_w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nw=(e,t)=>{for(var n in t||(t={}))Pw.call(t,n)&&Fw(e,n,t[n]);if(kw)for(var n of kw(t))Dw.call(t,n)&&Fw(e,n,t[n]);return e},Iw=(e,t)=>Tw(e,Sw(t));class Rw extends Tl{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new Ew,this.events=new Le.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Nb,this.subscribeTimeout=(0,qs.toMiliseconds)(qs.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const n=Ng(t),r={topic:e,relay:n};this.pending.set(e,r);const i=await this.rpcSubscribe(e,n);return"string"==typeof i&&(this.onSubscribe(i,r),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),i}catch(n){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(n),n}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),typeof(null===t||void 0===t?void 0:t.id)<"u"?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;const t="".concat(this.pendingSubscriptionWatchLabel,"_").concat(e);return await new Promise(((n,r)=>{const i=new qs.Watch;i.start(t);const o=setInterval((()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(o),i.stop(t),n(!0)),i.elapsed(t)>=nw&&(clearInterval(o),i.stop(t),r(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1))},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=yl(t,this.name),this.clientId=""}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const n=this.topicMap.get(e);await Promise.all(n.map((async n=>await this.unsubscribeById(e,n,t))))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{const r=Ng(n);await this.rpcUnsubscribe(e,t,r);const i=Zg("USER_DISCONNECTED","".concat(this.name,", ").concat(e));await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(Ks){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(Ks),Ks}}async rpcSubscribe(e,t){const n={method:Ig(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await md(this.relayer.request(n).catch((e=>this.logger.warn(e))),this.subscribeTimeout)?Tg(e+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(qb)}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t={method:Ig(e[0].relay.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{return await await md(this.relayer.request(t).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(qb)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t={method:Ig(e[0].relay.protocol).batchFetchMessages,params:{topics:e.map((e=>e.topic))}};let n;this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:t});try{n=await await md(this.relayer.request(t).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(qb)}return n}rpcUnsubscribe(e,t,n){const r={method:Ig(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}onSubscribe(e,t){this.setSubscription(e,Iw(Nw({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,Nw({},e)),this.pending.delete(e.topic)}))}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,Nw({},t)),this.topicMap.set(t.topic,e),this.events.emit(Jb,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=Xg("NO_MATCHING_KEY","".concat(this.name,": ").concat(e));throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit($b,Iw(Nw({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(ew)}async reset(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){const e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(tw)}async restore(){try{const e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=Xg("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error("".concat(this.name,": ").concat(JSON.stringify(this.values))),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored subscriptions for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug("Failed to Restore subscriptions for ".concat(this.name)),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;const t=await this.rpcBatchSubscribe(e);Jg(t)&&this.onBatchSubscribe(t.map(((t,n)=>Iw(Nw({},e[n]),{id:t}))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace("Fetching batch messages for ".concat(e.length," subscriptions"));const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;const e=[];this.pending.forEach((t=>{e.push(t)})),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(Qs,(async()=>{await this.checkPending()})),this.events.on(Jb,(async e=>{const t=Jb;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})),this.events.on($b,(async e=>{const t=$b;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.restartInProgress||(clearInterval(t),e())}),this.pollingInterval)}))}}var Ow=Object.defineProperty,jw=Object.getOwnPropertySymbols,Mw=Object.prototype.hasOwnProperty,Lw=Object.prototype.propertyIsEnumerable,Bw=(e,t,n)=>t in e?Ow(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Uw extends El{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new Le.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,qs.toMiliseconds)(qs.THIRTY_SECONDS+qs.ONE_SECOND),this.request=async e=>{var t,n;this.logger.debug("Publishing Request Payload");const r=e.id||Rv().toString();await this.toEstablishConnection();try{const i=this.provider.request(e);this.requestsInFlight.set(r,{promise:i,request:e}),this.logger.trace({id:r,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");const o=await new Promise((async(e,t)=>{const n=()=>{t(new Error("relayer.request - publish interrupted, id: ".concat(r)))};this.provider.on(Qb,n);const o=await i;this.provider.off(Qb,n),e(o)}));return this.logger.trace({id:r,method:e.method,topic:null==(n=e.params)?void 0:n.topic},"relayer.request - published"),o}catch(Ys){throw this.logger.debug("Failed to Publish Request: ".concat(r)),Ys}finally{this.requestsInFlight.delete(r)}},this.resetPingTimeout=()=>{if(od())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout((()=>{var e,t,n;null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||n.terminate()}),this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.startPingTimeout(),this.events.emit(Hb)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(Wb,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(Yb,this.onPayloadHandler),this.provider.on(Kb,this.onConnectHandler),this.provider.on(Qb,this.onDisconnectHandler),this.provider.on(Xb,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?yl(e.logger,this.name):Js()(gl({level:e.logger||"error"})),this.messages=new Cw(this.logger,e.core),this.subscriber=new Rw(this,this.logger),this.publisher=new Aw(this,this.logger),this.relayUrl=(null===e||void 0===e?void 0:e.relayUrl)||Lb,this.projectId=e.projectId,this.bundleId=function(){var e;try{return ad()&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Application)<"u"?null==(e=n.g.Application)?void 0:e.applicationId:void 0}catch{return}}(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn("Connection via ".concat(this.relayUrl," failed, attempting to connect via failover domain ").concat(Bb,"...")),await this.restartTransport(Bb)}this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return vl(this.logger)}get connected(){var e,t,n;return 1===(null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:n.readyState)}get connecting(){var e,t,n;return 0===(null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:n.readyState)}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){var n;this.isInitialized();let r,i=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";const o=t=>{t.topic===e&&(this.subscriber.off(Jb,o),r())};return await Promise.all([new Promise((e=>{r=e,this.subscriber.on(Jb,o)})),new Promise((async n=>{i=await this.subscriber.subscribe(e,t)||i,n()}))]),i}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map((e=>e.promise)))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await md(this.provider.disconnect(),2e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise((async(e,t)=>{const n=()=>{this.provider.off(Qb,n),t(new Error("Connection interrupted while trying to subscribe"))};this.provider.on(Qb,n),await md(this.provider.connect(),(0,qs.toMiliseconds)(qs.ONE_MINUTE),"Socket stalled when trying to connect to ".concat(this.relayUrl)).catch((e=>{t(e)})),await this.subscriber.start(),this.hasExperiencedNetworkDisruption=!1,e()}))}catch(t){this.logger.error(t);const e=t;if(this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw t}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await gv())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(0===(null===e||void 0===e?void 0:e.length))return void this.logger.trace("Batch message events is empty. Ignoring...");const t=e.sort(((e,t)=>e.publishedAt-t.publishedAt));this.logger.trace("Batch of ".concat(t.length," message events sorted"));for(const n of t)try{await this.onMessageEvent(n)}catch(Ks){this.logger.warn(Ks)}this.logger.trace("Batch of ".concat(t.length," message events processed"))}startPingTimeout(){var e,t,n,r,i;if(od())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(i=null==(r=null==(n=this.provider)?void 0:n.connection)?void 0:r.socket)||i.once("ping",(()=>{this.resetPingTimeout()}))),this.resetPingTimeout()}catch(Ys){this.logger.warn(Ys)}}isConnectionStalled(e){return this.staleConnectionErrors.some((t=>e.includes(t)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Qv(new Jv(ud({sdkVersion:"2.13.3",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){const{topic:t,message:n}=e;if(!n||0===n.length)return this.logger.debug("Ignoring invalid/empty message: ".concat(n)),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug("Ignoring message for non-subscribed topic ".concat(t)),!0;const r=this.messages.has(t,n);return r&&this.logger.debug("Ignoring duplicate message: ".concat(n)),r}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),qv(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:n,message:r,publishedAt:i}=t.data,o={topic:n,message:r,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((e,t)=>{for(var n in t||(t={}))Mw.call(t,n)&&Bw(e,n,t[n]);if(jw)for(var n of jw(t))Lw.call(t,n)&&Bw(e,n,t[n]);return e})({type:"event",event:t.id},o)),this.events.emit(t.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else Gv(e)&&this.events.emit(Vb,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Ub,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=jv(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(Yb,this.onPayloadHandler),this.provider.off(Kb,this.onConnectHandler),this.provider.off(Qb,this.onDisconnectHandler),this.provider.off(Xb,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await gv();vv((async t=>{e!==t&&(e=t,t?await this.restartTransport().catch((e=>this.logger.error(e))):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}))}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(zb),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&setTimeout((async()=>{await this.transportOpen().catch((e=>this.logger.error(e)))}),(0,qs.toMiliseconds)(Zb))}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&(this.connectionAttemptInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.connected&&(clearInterval(t),e())}),this.connectionStatusPollingInterval)})),await this.transportOpen())}}var Vw=Object.defineProperty,Hw=Object.getOwnPropertySymbols,zw=Object.prototype.hasOwnProperty,Ww=Object.prototype.propertyIsEnumerable,qw=(e,t,n)=>t in e?Vw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gw=(e,t)=>{for(var n in t||(t={}))zw.call(t,n)&&qw(e,n,t[n]);if(Hw)for(var n of Hw(t))Ww.call(t,n)&&qw(e,n,t[n]);return e};class Yw extends _l{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nb,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;super(e,t,n,r),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Nb,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!ev(e)?this.map.set(this.getKey(e),e):function(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}(e)?this.map.set(e.id,e):function(e){return null===e||void 0===e?void 0:e.topic}(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((n=>ey()(t[n],e[n]))))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const n=Gw(Gw({},this.getData(e)),t);this.map.set(e,n),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=yl(t,this.name),this.storagePrefix=r,this.getKey=i}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:t}=Xg("MISSING_OR_INVALID","Record was recently deleted - ".concat(this.name,": ").concat(e));throw this.logger.error(t),new Error(t)}const{message:t}=Xg("NO_MATCHING_KEY","".concat(this.name,": ").concat(e));throw this.logger.error(t),new Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=Xg("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored value for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug("Failed to Restore value for ".concat(this.name)),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Kw{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(Be()),this.initialized=!1,this.storagePrefix=Nb,this.ignoredPayloadTypes=[bg],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=e=>{let{methods:t}=e;this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...t])]},this.create=async e=>{this.isInitialized();const t=Eg(),n=await this.core.crypto.setSymKey(t),r=yd(qs.FIVE_MINUTES),i={protocol:"irn"},o={topic:n,expiry:r,relay:i,active:!1},a=qg({protocol:this.core.protocol,version:this.core.version,topic:n,symKey:t,relay:i,expiryTimestamp:r,methods:null===e||void 0===e?void 0:e.methods});return this.core.expirer.set(n,r),await this.pairings.set(n,o),await this.core.relayer.subscribe(n),{topic:n,uri:a}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);const{topic:t,symKey:n,relay:r,expiryTimestamp:i,methods:o}=zg(e.uri);let a;if(this.pairings.keys.includes(t)&&(a=this.pairings.get(t),a.active))throw new Error("Pairing already exists: ".concat(t,". Please try again with a new connection URI."));const s=i||yd(qs.FIVE_MINUTES),l={topic:t,relay:r,expiry:s,active:!1,methods:o};return this.core.expirer.set(t,s),await this.pairings.set(t,l),e.activatePairing&&await this.activate({topic:t}),this.events.emit(iw,l),this.core.crypto.keychain.has(t)||await this.core.crypto.setSymKey(n,t),await this.core.relayer.subscribe(t,{relay:r}),l},this.activate=async e=>{let{topic:t}=e;this.isInitialized();const n=yd(qs.THIRTY_DAYS);this.core.expirer.set(t,n),await this.pairings.update(t,{active:!0,expiry:n})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=await this.sendRequest(t,"wc_pairingPing",{}),{done:n,resolve:r,reject:i}=fd();this.events.once(wd("pairing_ping",e),(e=>{let{error:t}=e;t?i(t):r()})),await n()}},this.updateExpiry=async e=>{let{topic:t,expiry:n}=e;this.isInitialized(),await this.pairings.update(t,{expiry:n})},this.updateMetadata=async e=>{let{topic:t,metadata:n}=e;this.isInitialized(),await this.pairings.update(t,{peerMetadata:n})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",Zg("USER_DISCONNECTED")),await this.deletePairing(t))},this.sendRequest=async(e,t,n)=>{const r=Ov(t,n),i=await this.core.crypto.encode(e,r),o=rw[t].req;return this.core.history.set(e,r),this.core.relayer.publish(e,i,o),r.id},this.sendResult=async(e,t,n)=>{const r=jv(e,n),i=await this.core.crypto.encode(t,r),o=await this.core.history.get(t,e),a=rw[o.request.method].res;await this.core.relayer.publish(t,i,a),await this.core.history.resolve(r)},this.sendError=async(e,t,n)=>{const r=Mv(e,n),i=await this.core.crypto.encode(t,r),o=await this.core.history.get(t,e),a=rw[o.request.method]?rw[o.request.method].res:rw.unregistered_method.res;await this.core.relayer.publish(t,i,a),await this.core.history.resolve(r)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,Zg("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{const e=this.pairings.getAll().filter((e=>bd(e.expiry)));await Promise.all(e.map((e=>this.deletePairing(e.topic))))},this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e;switch(n.method){case"wc_pairingPing":return this.onPairingPingRequest(t,n);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,n);default:return this.onUnknownRpcMethodRequest(t,n)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:n}=e,r=(await this.core.history.get(t,n.id)).request.method;return"wc_pairingPing"===r?this.onPairingPingResponse(t,n):this.onUnknownRpcMethodResponse(r)},this.onPairingPingRequest=async(e,t)=>{const{id:n}=t;try{this.isValidPing({topic:e}),await this.sendResult(n,e,!0),this.events.emit(sw,{id:n,topic:e})}catch(Ys){await this.sendError(n,e,Ys),this.logger.error(Ys)}},this.onPairingPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{Yv(t)?this.events.emit(wd("pairing_ping",n),{}):Kv(t)&&this.events.emit(wd("pairing_ping",n),{error:t.error})}),500)},this.onPairingDeleteRequest=async(e,t)=>{const{id:n}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(aw,{id:n,topic:e})}catch(Ys){await this.sendError(n,e,Ys),this.logger.error(Ys)}},this.onUnknownRpcMethodRequest=async(e,t)=>{const{id:n,method:r}=t;try{if(this.registeredMethods.includes(r))return;const t=Zg("WC_METHOD_UNSUPPORTED",r);await this.sendError(n,e,t),this.logger.error(t)}catch(Cl){await this.sendError(n,e,Cl),this.logger.error(Cl)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(Zg("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{var t;if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","pair() params: ".concat(e));throw new Error(t)}if(!function(e){if(tv(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}(e.uri)){const{message:t}=Xg("MISSING_OR_INVALID","pair() uri: ".concat(e.uri));throw new Error(t)}const n=zg(e.uri);if(null==(t=null===n||void 0===n?void 0:n.relay)||!t.protocol){const{message:e}=Xg("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(e)}if(null==n||!n.symKey){const{message:e}=Xg("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(e)}if(null!=n&&n.expiryTimestamp&&(0,qs.toMiliseconds)(null===n||void 0===n?void 0:n.expiryTimestamp)<Date.now()){const{message:e}=Xg("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw new Error(e)}},this.isValidPing=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","ping() params: ".concat(e));throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","disconnect() params: ".concat(e));throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!tv(e,!1)){const{message:t}=Xg("MISSING_OR_INVALID","pairing topic should be a string: ".concat(e));throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=Xg("NO_MATCHING_KEY","pairing topic doesn't exist: ".concat(e));throw new Error(t)}if(bd(this.pairings.get(e).expiry)){await this.deletePairing(e);const{message:t}=Xg("EXPIRED","pairing topic: ".concat(e));throw new Error(t)}},this.core=e,this.logger=yl(t,this.name),this.pairings=new Yw(this.core,this.logger,this.name,this.storagePrefix)}get context(){return vl(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Ub,(async e=>{const{topic:t,message:n}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const r=await this.core.crypto.decode(t,n);try{qv(r)?(this.core.history.set(t,r),this.onRelayEventRequest({topic:t,payload:r})):Gv(r)&&(await this.core.history.resolve(r),await this.onRelayEventResponse({topic:t,payload:r}),this.core.history.delete(t,r.id))}catch(i){this.logger.error(i)}}))}registerExpirerEvents(){this.core.expirer.on(fw,(async e=>{const{topic:t}=vd(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(ow,{topic:t}))}))}}class Qw extends xl{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new Le.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Nb,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,n)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:n}),this.records.has(t.id))return;const r={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:n,expiry:yd(qs.THIRTY_DAYS)};this.records.set(r.id,r),this.persist(),this.events.emit(lw,r)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=Kv(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(cw,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((n=>{if(n.topic===e){if(typeof t<"u"&&n.id!==t)return;this.records.delete(n.id),this.events.emit(uw,n)}})),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=yl(t,this.name)}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const n={topic:t.topic,request:Ov(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)})),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=Xg("NO_MATCHING_KEY","".concat(this.name,": ").concat(e));throw new Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(dw)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=Xg("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(e)}}registerEventListeners(){this.events.on(lw,(e=>{const t=lw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(cw,(e=>{const t=cw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(uw,(e=>{const t=uw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,record:e})})),this.core.heartbeat.on(Qs,(()=>{this.cleanup()}))}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach((t=>{(0,qs.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info("Deleting expired history log: ".concat(t.id)),this.records.delete(t.id),this.events.emit(uw,t,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Xw extends Sl{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new Le.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Nb,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch{return!1}},this.set=(e,t)=>{this.isInitialized();const n=this.formatTarget(e),r={target:n,expiry:t};this.expirations.set(n,r),this.checkExpiry(n,r),this.events.emit(pw,{target:n,expiration:r})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),n=this.getExpiration(t);this.expirations.delete(t),this.events.emit(hw,{target:t,expiration:n})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=yl(t,this.name)}get context(){return vl(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return function(e){return gd("topic",e)}(e);if("number"==typeof e)return function(e){return gd("id",e)}(e);const{message:t}=Xg("UNKNOWN_TYPE","Target type: ".concat(typeof e));throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(mw)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=Xg("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug("Successfully Restored expirations for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug("Failed to Restore expirations for ".concat(this.name)),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=Xg("NO_MATCHING_KEY","".concat(this.name,": ").concat(e));throw this.logger.warn(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:n}=t;(0,qs.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(fw,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(Qs,(()=>this.checkExpirations())),this.events.on(pw,(e=>{const t=pw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(fw,(e=>{const t=fw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(hw,(e=>{const t=hw;this.logger.info("Emitting ".concat(t)),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Zw extends kl{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.name=gw,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||ad()||!sd())return;const t=this.getVerifyUrl(null===e||void 0===e?void 0:e.verifyUrl);this.verifyUrl!==t&&this.removeIframe(),this.verifyUrl=t;try{await this.createIframe()}catch(n){this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(n)}if(!this.initialized){this.removeIframe(),this.verifyUrl=yw;try{await this.createIframe()}catch(n){this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(n),this.verifyDisabled=!0}}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{if(this.isDevEnv)return"";const t=this.getVerifyUrl(null===e||void 0===e?void 0:e.verifyUrl);let n;try{n=await this.fetchAttestation(e.attestationId,t)}catch(Ys){this.logger.info("failed to resolve attestation: ".concat(e.attestationId," from url: ").concat(t)),this.logger.info(Ys),n=await this.fetchAttestation(e.attestationId,yw)}return n},this.fetchAttestation=async(e,t)=>{this.logger.info("resolving attestation: ".concat(e," from url: ").concat(t));const n=this.startAbortTimer(2*qs.ONE_SECOND),r=await fetch("".concat(t,"/attestation/").concat(e),{signal:this.abortController.signal});return clearTimeout(n),200===r.status?await r.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((e=>this.sendPost(e))),this.queue=[])},this.sendPost=e=>{var t;try{if(!this.iframe)return;null==(t=this.iframe.contentWindow)||t.postMessage(e,"*"),this.logger.info("postMessage sent: ".concat(e," ").concat(this.verifyUrl))}catch{}},this.createIframe=async()=>{let e;const t=n=>{"verify_ready"===n.data&&(this.onInit(),window.removeEventListener("message",t),e())};await Promise.race([new Promise((n=>{const r=document.getElementById(gw);if(r)return this.iframe=r,this.onInit(),n();window.addEventListener("message",t);const i=document.createElement("iframe");i.id=gw,i.src="".concat(this.verifyUrl,"/").concat(this.projectId),i.style.display="none",document.body.append(i),this.iframe=i,e=n})),new Promise(((e,n)=>setTimeout((()=>{window.removeEventListener("message",t),n("verify iframe load timeout")}),(0,qs.toMiliseconds)(qs.FIVE_SECONDS))))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let t=e||vw;return bw.includes(t)||(this.logger.info("verify url: ".concat(t,", not included in trusted list, assigning default: ").concat(vw)),t=vw),t},this.logger=yl(t,this.name),this.verifyUrl=vw,this.abortController=new AbortController,this.isDevEnv=od()&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.IS_VITEST}get context(){return vl(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,qs.toMiliseconds)(e))}}class Jw extends Pl{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{const{clientId:t,token:n,notificationType:r,enableEncrypted:i=!1}=e,o="".concat("https://echo.walletconnect.com","/").concat(this.projectId,"/clients");await ny()(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:r,token:n,always_raw:i})})},this.logger=yl(t,this.context)}}var $w=Object.defineProperty,ex=Object.getOwnPropertySymbols,tx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,rx=(e,t,n)=>t in e?$w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ix=(e,t)=>{for(var n in t||(t={}))tx.call(t,n)&&rx(e,n,t[n]);if(ex)for(var n of ex(t))nx.call(t,n)&&rx(e,n,t[n]);return e};class ox extends wl{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=Fb,this.events=new Le.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=null===e||void 0===e?void 0:e.projectId,this.relayUrl=(null===e||void 0===e?void 0:e.relayUrl)||Lb,this.customStoragePrefix=null!=e&&e.customStoragePrefix?":".concat(e.customStoragePrefix):"";const n=gl({level:"string"==typeof(null===e||void 0===e?void 0:e.logger)&&e.logger?e.logger:Ib}),{logger:r,chunkLoggerController:i}=bl({opts:n,maxSizeInBytes:null===e||void 0===e?void 0:e.maxLogBlobSizeInBytes,loggerOverride:null===e||void 0===e?void 0:e.logger});this.logChunkController=i,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=yl(r,this.name),this.heartbeat=new Xs,this.crypto=new xw(this,this.logger,null===e||void 0===e?void 0:e.keychain),this.history=new Qw(this,this.logger),this.expirer=new Xw(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new Ws(ix(ix({},Rb),null===e||void 0===e?void 0:e.storageOptions)),this.relayer=new Uw({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Kw(this,this.logger),this.verify=new Zw(this.projectId||"",this.logger),this.echoClient=new Jw(this.projectId||"",this.logger)}static async init(e){const t=new ox(e);await t.initialize();const n=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",n),t}get context(){return vl(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn("Core Initialization Failure at epoch ".concat(Date.now()),e),this.logger.error(e.message),e}}}const ax=ox,sx="client",lx="".concat("wc","@").concat(2,":").concat(sx,":"),cx=sx,ux="error",dx="WALLETCONNECT_DEEPLINK_CHOICE",px=qs.SEVEN_DAYS,hx={wc_sessionPropose:{req:{ttl:qs.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:1104},res:{ttl:qs.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:1106},res:{ttl:qs.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:qs.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:qs.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:1112},res:{ttl:qs.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:qs.ONE_DAY,prompt:!1,tag:1114},res:{ttl:qs.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:qs.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:qs.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:qs.FIVE_MINUTES,prompt:!1,tag:1119}}},fx={min:qs.FIVE_MINUTES,max:qs.SEVEN_DAYS},mx="IDLE",gx="ACTIVE",vx=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],yx="".concat("wc","@",1.5,":").concat("auth",":"),bx="".concat(yx,":PUB_KEY");var wx=Object.defineProperty,xx=Object.defineProperties,Cx=Object.getOwnPropertyDescriptors,Ax=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,_x=Object.prototype.propertyIsEnumerable,Tx=(e,t,n)=>t in e?wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sx=(e,t)=>{for(var n in t||(t={}))Ex.call(t,n)&&Tx(e,n,t[n]);if(Ax)for(var n of Ax(t))_x.call(t,n)&&Tx(e,n,t[n]);return e},kx=(e,t)=>xx(e,Cx(t));class Px extends Fl{constructor(e){var t;super(e),t=this,this.name="engine",this.events=new(Be()),this.initialized=!1,this.requestQueue={state:mx,queue:[]},this.sessionRequestQueue={state:mx,queue:[]},this.requestQueueDelay=qs.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(hx)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,qs.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();const t=kx(Sx({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:n,requiredNamespaces:r,optionalNamespaces:i,sessionProperties:o,relays:a}=t;let s,l=n,c=!1;try{l&&(c=this.client.core.pairing.pairings.get(l).active)}catch(y){throw this.client.logger.error("connect() -> pairing.get(".concat(l,") failed")),y}if(!l||!c){const{topic:e,uri:t}=await this.client.core.pairing.create();l=e,s=t}if(!l){const{message:e}=Xg("NO_MATCHING_KEY","connect() pairing topic: ".concat(l));throw new Error(e)}const u=await this.client.core.crypto.generateKeyPair(),d=hx.wc_sessionPropose.req.ttl||qs.FIVE_MINUTES,p=yd(d),h=Sx({requiredNamespaces:r,optionalNamespaces:i,relays:null!==a&&void 0!==a?a:[{protocol:"irn"}],proposer:{publicKey:u,metadata:this.client.metadata},expiryTimestamp:p,pairingTopic:l},o&&{sessionProperties:o}),{reject:f,resolve:m,done:g}=fd(d,"Proposal expired");this.events.once(wd("session_connect"),(async e=>{let{error:t,session:n}=e;if(t)f(t);else if(n){n.self.publicKey=u;const e=kx(Sx({},n),{pairingTopic:h.pairingTopic,requiredNamespaces:h.requiredNamespaces,optionalNamespaces:h.optionalNamespaces});await this.client.session.set(n.topic,e),await this.setExpiry(n.topic,n.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:n.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}}));const v=await this.sendRequest({topic:l,method:"wc_sessionPropose",params:h,throwOnFailedPublish:!0});return await this.setProposal(v,Sx({id:v},h)),{uri:s,approval:g}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async e=>{await this.isInitialized();try{await this.isValidApprove(e)}catch(is){throw this.client.logger.error("approve() -> isValidApprove() failed"),is}const{id:t,relayProtocol:n,namespaces:r,sessionProperties:i,sessionConfig:o}=e;let a;try{a=this.client.proposal.get(t)}catch(is){throw this.client.logger.error("approve() -> proposal.get(".concat(t,") failed")),is}const{pairingTopic:s,proposer:l,requiredNamespaces:c,optionalNamespaces:u}=a,d=await this.client.core.crypto.generateKeyPair(),p=l.publicKey,h=await this.client.core.crypto.generateSharedKey(d,p),f=Sx(Sx({relay:{protocol:null!==n&&void 0!==n?n:"irn"},namespaces:r,controller:{publicKey:d,metadata:this.client.metadata},expiry:yd(px)},i&&{sessionProperties:i}),o&&{sessionConfig:o});await this.client.core.relayer.subscribe(h);const m=kx(Sx({},f),{topic:h,requiredNamespaces:c,optionalNamespaces:u,pairingTopic:s,acknowledged:!1,self:f.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:d});await this.client.session.set(h,m);try{await this.sendResult({id:t,topic:s,result:{relay:{protocol:null!==n&&void 0!==n?n:"irn"},responderPublicKey:d},throwOnFailedPublish:!0}),await this.sendRequest({topic:h,method:"wc_sessionSettle",params:f,throwOnFailedPublish:!0})}catch(is){throw this.client.logger.error(is),this.client.session.delete(h,Zg("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(h),is}return await this.client.core.pairing.updateMetadata({topic:s,metadata:l.metadata}),await this.client.proposal.delete(t,Zg("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:s}),await this.setExpiry(h,yd(px)),{topic:h,acknowledged:()=>new Promise((e=>setTimeout((()=>e(this.client.session.get(h))),500)))}},this.reject=async e=>{await this.isInitialized();try{await this.isValidReject(e)}catch(i){throw this.client.logger.error("reject() -> isValidReject() failed"),i}const{id:t,reason:n}=e;let r;try{r=this.client.proposal.get(t).pairingTopic}catch(i){throw this.client.logger.error("reject() -> proposal.get(".concat(t,") failed")),i}r&&(await this.sendError({id:t,topic:r,error:n,rpcOpts:hx.wc_sessionPropose.reject}),await this.client.proposal.delete(t,Zg("USER_DISCONNECTED")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(rl){throw this.client.logger.error("update() -> isValidUpdate() failed"),rl}const{topic:t,namespaces:n}=e,{done:r,resolve:i,reject:o}=fd(),a=Iv(),s=Rv().toString(),l=this.client.session.get(t).namespaces;return this.events.once(wd("session_update",a),(e=>{let{error:t}=e;t?o(t):i()})),await this.client.session.update(t,{namespaces:n}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:n},throwOnFailedPublish:!0,clientRpcId:a,relayRpcId:s}).catch((e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:l}),o(e)})),{acknowledged:r}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(Cl){throw this.client.logger.error("extend() -> isValidExtend() failed"),Cl}const{topic:t}=e,n=Iv(),{done:r,resolve:i,reject:o}=fd();return this.events.once(wd("session_extend",n),(e=>{let{error:t}=e;t?o(t):i()})),await this.setExpiry(t,yd(px)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:n,throwOnFailedPublish:!0}).catch((e=>{o(e)})),{acknowledged:r}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(ul){throw this.client.logger.error("request() -> isValidRequest() failed"),ul}const{chainId:t,request:r,topic:i,expiry:o=hx.wc_sessionRequest.req.ttl}=e,a=this.client.session.get(i),s=Iv(),l=Rv().toString(),{done:c,resolve:u,reject:d}=fd(o,"Request expired. Please try again.");return this.events.once(wd("session_request",s),(e=>{let{error:t,result:n}=e;t?d(t):u(n)})),await Promise.all([new Promise((async e=>{await this.sendRequest({clientRpcId:s,relayRpcId:l,topic:i,method:"wc_sessionRequest",params:{request:kx(Sx({},r),{expiryTimestamp:yd(o)}),chainId:t},expiry:o,throwOnFailedPublish:!0}).catch((e=>d(e))),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:s}),e()})),new Promise((async e=>{var t;if(null==(t=a.sessionConfig)||!t.disableDeepLink){const e=await async function(e,t){try{return await e.getItem(t)||(sd()?localStorage.getItem(t):void 0)}catch(o){console.error(o)}}(this.client.core.storage,dx);!async function(e){let{id:t,topic:r,wcDeepLink:o}=e;try{if(!o)return;const e="string"==typeof o?JSON.parse(o):o;let i=null===e||void 0===e?void 0:e.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const a="".concat(i,"/wc?requestId=").concat(t,"&sessionTopic=").concat(r),s=ld();s===rd.browser?a.startsWith("https://")||a.startsWith("http://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===rd.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(a)}catch(i){console.error(i)}}({id:s,topic:i,wcDeepLink:e})}e()})),c()]).then((e=>e[2]))},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:n}=e,{id:r}=n;Yv(n)?await this.sendResult({id:r,topic:t,result:n.result,throwOnFailedPublish:!0}):Kv(n)&&await this.sendError({id:r,topic:t,error:n.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(Ks){throw this.client.logger.error("ping() -> isValidPing() failed"),Ks}const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=Iv(),n=Rv().toString(),{done:r,resolve:i,reject:o}=fd();this.events.once(wd("session_ping",e),(e=>{let{error:t}=e;t?o(t):i()})),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:n}),r()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);const{topic:t,event:n,chainId:r}=e,i=Rv().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:n,chainId:r},throwOnFailedPublish:!0,relayRpcId:i})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:Zg("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else{if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=Xg("MISMATCHED_TOPIC","Session or pairing topic not found: ".concat(t));throw new Error(e)}await this.client.core.pairing.disconnect({topic:t})}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>function(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let o=!0;return!!dd(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:a}=e.namespaces[t],s=Gg(r),l=n[t];(!dd(Qu(t,l),s)||!dd(l.methods,i)||!dd(l.events,a))&&(o=!1)})),o)}(t,e)))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);const{chains:t,statement:n="",uri:r,domain:i,nonce:o,type:a,exp:s,nbf:l,methods:c=[],expiry:u}=e,d=[...e.resources||[]],{topic:p,uri:h}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:p,uri:h}});const f=await this.client.core.crypto.generateKeyPair(),m=_g(f);if(await Promise.all([this.client.auth.authKeys.set(bx,{responseTopic:m,publicKey:f}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:p})]),await this.client.core.relayer.subscribe(m),this.client.logger.info("sending request to new pairing topic: ".concat(p)),c.length>0){const{namespace:e}=Ku(t[0]);let n=sg(e,"request",c);hg(d)&&(n=cg(n,d.pop())),d.push(n)}const g=u&&u>hx.wc_sessionAuthenticate.req.ttl?u:hx.wc_sessionAuthenticate.req.ttl,v={authPayload:{type:null!==a&&void 0!==a?a:"caip122",chains:t,statement:n,aud:r,domain:i,version:"1",nonce:o,iat:(new Date).toISOString(),exp:s,nbf:l,resources:d},requester:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:yd(g)},y={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:t,methods:[...new Set(["personal_sign",...c])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:p,proposer:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:yd(hx.wc_sessionPropose.req.ttl)},{done:b,resolve:w,reject:x}=fd(g,"Request expired"),C=async e=>{let{error:t,session:n}=e;if(this.events.off(wd("session_request",E),A),t)x(t);else if(n){n.self.publicKey=f,await this.client.session.set(n.topic,n),await this.setExpiry(n.topic,n.expiry),p&&await this.client.core.pairing.updateMetadata({topic:p,metadata:n.peer.metadata});const e=this.client.session.get(n.topic);await this.deleteProposal(_),w({session:e})}},A=async e=>{if(await this.deletePendingAuthRequest(E,{message:"fulfilled",code:0}),e.error){const t=Zg("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off(wd("session_connect"),C),x(e.error.message))}await this.deleteProposal(_),this.events.off(wd("session_connect"),C);const{cacaos:t,responder:n}=e.result,r=[],i=[];for(const s of t){await tg({cacao:s,projectId:this.client.core.projectId})||(this.client.logger.error(s,"Signature verification failed"),x(Zg("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:e}=s,t=hg(e.resources),n=[$m(e.iss)],o=eg(e.iss);if(t){const e=dg(t),i=pg(t);r.push(...e),n.push(...i)}for(const r of n)i.push("".concat(r,":").concat(o))}const o=await this.client.core.crypto.generateSharedKey(f,n.publicKey);let a;r.length>0&&(a={topic:o,acknowledged:!0,self:{publicKey:f,metadata:this.client.metadata},peer:n,controller:n.publicKey,expiry:yd(px),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:p,namespaces:Yg([...new Set(r)],[...new Set(i)])},await this.client.core.relayer.subscribe(o),await this.client.session.set(o,a),a=this.client.session.get(o)),w({auths:t,session:a})},E=Iv(),_=Iv();this.events.once(wd("session_connect"),C),this.events.once(wd("session_request",E),A);try{await Promise.all([this.sendRequest({topic:p,method:"wc_sessionAuthenticate",params:v,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:E}),this.sendRequest({topic:p,method:"wc_sessionPropose",params:y,expiry:hx.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:_})])}catch(bl){throw this.events.off(wd("session_connect"),C),this.events.off(wd("session_request",E),A),bl}return await this.setProposal(_,Sx({id:_},y)),await this.setAuthRequest(E,{request:kx(Sx({},v),{verifyContext:{}}),pairingTopic:p}),{uri:h,response:b}},this.approveSessionAuthenticate=async e=>{this.isInitialized();const{id:t,auths:n}=e,r=this.getPendingAuthRequest(t);if(!r)throw new Error("Could not find pending auth request with id ".concat(t));const i=r.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),a=_g(i),s={type:bg,receiverPublicKey:i,senderPublicKey:o},l=[],c=[];for(const p of n){if(!await tg({cacao:p,projectId:this.client.core.projectId})){const e=Zg("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:a,error:e,encodeOpts:s}),new Error(e.message)}const{p:e}=p,n=hg(e.resources),r=[$m(e.iss)],i=eg(e.iss);if(n){const e=dg(n),t=pg(n);l.push(...e),r.push(...t)}for(const t of r)c.push("".concat(t,":").concat(i))}const u=await this.client.core.crypto.generateSharedKey(o,i);let d;return(null===l||void 0===l?void 0:l.length)>0&&(d={topic:u,acknowledged:!0,self:{publicKey:o,metadata:this.client.metadata},peer:{publicKey:i,metadata:r.requester.metadata},controller:i,expiry:yd(px),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:Yg([...new Set(l)],[...new Set(c)])},await this.client.core.relayer.subscribe(u),await this.client.session.set(u,d)),await this.sendResult({topic:a,id:t,result:{cacaos:n,responder:{publicKey:o,metadata:this.client.metadata}},encodeOpts:s,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:r.pairingTopic}),{session:d}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();const{id:t,reason:n}=e,r=this.getPendingAuthRequest(t);if(!r)throw new Error("Could not find pending auth request with id ".concat(t));const i=r.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),a=_g(i),s={type:bg,receiverPublicKey:i,senderPublicKey:o};await this.sendError({id:t,topic:a,error:n,encodeOpts:s,rpcOpts:hx.wc_sessionAuthenticate.reject}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,Zg("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:n}=e;return ng(t,n)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),n=this.client.core.pairing.pairings.getAll().filter((n=>{var r,i;return(null==(r=n.peerMetadata)?void 0:r.url)&&(null==(i=n.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&n.topic&&n.topic!==t.topic}));if(0===n.length)return;this.client.logger.info("Cleaning up ".concat(n.length," duplicate pairing(s)")),await Promise.all(n.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async e=>{var t;const{topic:n,expirerHasDeleted:r=!1,emitEvent:i=!0,id:o=0}=e,{self:a}=this.client.session.get(n);await this.client.core.relayer.unsubscribe(n),await this.client.session.delete(n,Zg("USER_DISCONNECTED")),this.addToRecentlyDeleted(n,"session"),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(n)&&await this.client.core.crypto.deleteSymKey(n),r||this.client.core.expirer.del(n),this.client.core.storage.removeItem(dx).catch((e=>this.client.logger.warn(e))),this.getPendingSessionRequests().forEach((e=>{e.topic===n&&this.deletePendingSessionRequest(e.id,Zg("USER_DISCONNECTED"))})),n===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=mx),i&&this.client.events.emit("session_delete",{id:o,topic:n})},this.deleteProposal=async(e,t)=>{await Promise.all([this.client.proposal.delete(e,Zg("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];await Promise.all([t.client.pendingRequest.delete(e,n),r?Promise.resolve():t.client.core.expirer.del(e)]),t.addToRecentlyDeleted(e,"request"),t.sessionRequestQueue.queue=t.sessionRequestQueue.queue.filter((t=>t.id!==e)),r&&(t.sessionRequestQueue.state=mx,t.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];await Promise.all([t.client.auth.requests.delete(e,n),r?Promise.resolve():t.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,yd(hx.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:n,pairingTopic:r}=t;this.client.core.expirer.set(e,n.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:n.authPayload,requester:n.requester,expiryTimestamp:n.expiryTimestamp,id:e,pairingTopic:r,verifyContext:n.verifyContext})},this.setPendingSessionRequest=async e=>{const{id:t,topic:n,params:r,verifyContext:i}=e,o=r.request.expiryTimestamp||yd(hx.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,o),await this.client.pendingRequest.set(t,{id:t,topic:n,params:r,verifyContext:i})},this.sendRequest=async e=>{const{topic:t,method:n,params:r,expiry:i,relayRpcId:o,clientRpcId:a,throwOnFailedPublish:s}=e,l=Ov(n,r,a);if(sd()&&vx.includes(n)){const e=Tg(JSON.stringify(l));this.client.core.verify.register({attestationId:e})}let c;try{c=await this.client.core.crypto.encode(t,l)}catch(ul){throw await this.cleanup(),this.client.logger.error("sendRequest() -> core.crypto.encode() for topic ".concat(t," failed")),ul}const u=hx[n].req;return i&&(u.ttl=i),o&&(u.id=o),this.client.core.history.set(t,l),s?(u.internal=kx(Sx({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,c,u)):this.client.core.relayer.publish(t,c,u).catch((e=>this.client.logger.error(e))),l.id},this.sendResult=async e=>{const{id:t,topic:n,result:r,throwOnFailedPublish:i,encodeOpts:o}=e,a=jv(t,r);let s,l;try{s=await this.client.core.crypto.encode(n,a,o)}catch(Al){throw await this.cleanup(),this.client.logger.error("sendResult() -> core.crypto.encode() for topic ".concat(n," failed")),Al}try{l=await this.client.core.history.get(n,t)}catch(Al){throw this.client.logger.error("sendResult() -> history.get(".concat(n,", ").concat(t,") failed")),Al}const c=hx[l.request.method].res;i?(c.internal=kx(Sx({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,s,c)):this.client.core.relayer.publish(n,s,c).catch((e=>this.client.logger.error(e))),await this.client.core.history.resolve(a)},this.sendError=async e=>{const{id:t,topic:n,error:r,encodeOpts:i,rpcOpts:o}=e,a=Mv(t,r);let s,l;try{s=await this.client.core.crypto.encode(n,a,i)}catch(Al){throw await this.cleanup(),this.client.logger.error("sendError() -> core.crypto.encode() for topic ".concat(n," failed")),Al}try{l=await this.client.core.history.get(n,t)}catch(Al){throw this.client.logger.error("sendError() -> history.get(".concat(n,", ").concat(t,") failed")),Al}const c=o||hx[l.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(a)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach((t=>{let n=!1;bd(t.expiry)&&(n=!0),this.client.core.crypto.keychain.has(t.topic)||(n=!0),n&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{bd(e.expiryTimestamp)&&t.push(e.id)})),await Promise.all([...e.map((e=>this.deleteSession({topic:e}))),...t.map((e=>this.deleteProposal(e)))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==gx){for(this.client.logger.info("Request queue starting with ".concat(this.requestQueue.queue.length," requests"));this.requestQueue.queue.length>0;){this.requestQueue.state=gx;const t=this.requestQueue.queue.shift();if(t)try{this.processRequest(t),await new Promise((e=>setTimeout(e,300)))}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=mx}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=e=>{const{topic:t,payload:n}=e,r=n.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:r}))switch(r){case"wc_sessionPropose":return this.onSessionProposeRequest(t,n);case"wc_sessionSettle":return this.onSessionSettleRequest(t,n);case"wc_sessionUpdate":return this.onSessionUpdateRequest(t,n);case"wc_sessionExtend":return this.onSessionExtendRequest(t,n);case"wc_sessionPing":return this.onSessionPingRequest(t,n);case"wc_sessionDelete":return this.onSessionDeleteRequest(t,n);case"wc_sessionRequest":return this.onSessionRequest(t,n);case"wc_sessionEvent":return this.onSessionEventRequest(t,n);case"wc_sessionAuthenticate":return this.onSessionAuthenticateRequest(t,n);default:return this.client.logger.info("Unsupported request method ".concat(r))}},this.onRelayEventResponse=async e=>{const{topic:t,payload:n}=e,r=(await this.client.core.history.get(t,n.id)).request.method;switch(r){case"wc_sessionPropose":return this.onSessionProposeResponse(t,n);case"wc_sessionSettle":return this.onSessionSettleResponse(t,n);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,n);case"wc_sessionExtend":return this.onSessionExtendResponse(t,n);case"wc_sessionPing":return this.onSessionPingResponse(t,n);case"wc_sessionRequest":return this.onSessionRequestResponse(t,n);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,n);default:return this.client.logger.info("Unsupported response method ".concat(r))}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:n}=Xg("MISSING_OR_INVALID","Decoded payload on topic ".concat(t," is not identifiable as a JSON-RPC request or a response."));throw new Error(n)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:n}=e,r=this.expectedPairingMethodMap.get(t);return!(!r||r.includes(n))&&!!(r.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async(e,t)=>{const{params:n,id:r}=t;try{this.isValidConnect(Sx({},t.params));const i=n.expiryTimestamp||yd(hx.wc_sessionPropose.req.ttl),o=Sx({id:r,pairingTopic:e,expiryTimestamp:i},n);await this.setProposal(r,o);const a=Tg(JSON.stringify(t)),s=await this.getVerifyContext(a,o.proposer.metadata);this.client.events.emit("session_proposal",{id:r,params:o,verifyContext:s})}catch(i){await this.sendError({id:r,topic:e,error:i,rpcOpts:hx.wc_sessionPropose.autoReject}),this.client.logger.error(i)}},this.onSessionProposeResponse=async(e,t)=>{const{id:n}=t;if(Yv(t)){const{result:r}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:r});const i=this.client.proposal.get(n);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const o=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});const a=r.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:a});const s=await this.client.core.crypto.generateSharedKey(o,a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:s});const l=await this.client.core.relayer.subscribe(s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if(Kv(t)){await this.client.proposal.delete(n,Zg("USER_DISCONNECTED"));const e=wd("session_connect");if(0===this.events.listenerCount(e))throw new Error("emitting ".concat(e," without any listeners, 954"));this.events.emit(wd("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:n,params:r}=t;try{this.isValidSessionSettleRequest(r);const{relay:n,controller:i,expiry:o,namespaces:a,sessionProperties:s,sessionConfig:l}=t.params,c=Sx(Sx({topic:e,relay:n,expiry:o,namespaces:a,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},s&&{sessionProperties:s}),l&&{sessionConfig:l});await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0});const u=wd("session_connect");if(0===this.events.listenerCount(u))throw new Error("emitting ".concat(u," without any listeners 997"));this.events.emit(wd("session_connect"),{session:c})}catch(i){await this.sendError({id:n,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionSettleResponse=async(e,t)=>{const{id:n}=t;Yv(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(wd("session_approve",n),{})):Kv(t)&&(await this.client.session.delete(e,Zg("USER_DISCONNECTED")),this.events.emit(wd("session_approve",n),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:n,id:r}=t;try{const t="".concat(e,"_session_update"),i=bv.get(t);if(i&&this.isRequestOutOfSync(i,r))return this.client.logger.info("Discarding out of sync request - ".concat(r)),void this.sendError({id:r,topic:e,error:Zg("INVALID_UPDATE_REQUEST")});this.isValidUpdate(Sx({topic:e},n));try{bv.set(t,r),await this.client.session.update(e,{namespaces:n.namespaces}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0})}catch(Cl){throw bv.delete(t),Cl}this.client.events.emit("session_update",{id:r,topic:e,params:n})}catch(i){await this.sendError({id:r,topic:e,error:i}),this.client.logger.error(i)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{const{id:n}=t,r=wd("session_update",n);if(0===this.events.listenerCount(r))throw new Error("emitting ".concat(r," without any listeners"));Yv(t)?this.events.emit(wd("session_update",n),{}):Kv(t)&&this.events.emit(wd("session_update",n),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:n}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,yd(px)),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:n,topic:e})}catch(fl){await this.sendError({id:n,topic:e,error:fl}),this.client.logger.error(fl)}},this.onSessionExtendResponse=(e,t)=>{const{id:n}=t,r=wd("session_extend",n);if(0===this.events.listenerCount(r))throw new Error("emitting ".concat(r," without any listeners"));Yv(t)?this.events.emit(wd("session_extend",n),{}):Kv(t)&&this.events.emit(wd("session_extend",n),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:n}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:n,topic:e})}catch(fl){await this.sendError({id:n,topic:e,error:fl}),this.client.logger.error(fl)}},this.onSessionPingResponse=(e,t)=>{const{id:n}=t,r=wd("session_ping",n);if(0===this.events.listenerCount(r))throw new Error("emitting ".concat(r," without any listeners"));setTimeout((()=>{Yv(t)?this.events.emit(wd("session_ping",n),{}):Kv(t)&&this.events.emit(wd("session_ping",n),{error:t.error})}),500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:n}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),await Promise.all([new Promise((t=>{this.client.core.relayer.once(Gb,(async()=>{t(await this.deleteSession({topic:e,id:n}))}))})),this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:Zg("USER_DISCONNECTED")})])}catch(fl){this.client.logger.error(fl)}},this.onSessionRequest=async(e,t)=>{var n;const{id:r,params:i}=t;try{await this.isValidRequest(Sx({topic:e},i));const t=Tg(JSON.stringify(Ov("wc_sessionRequest",i,r))),o=this.client.session.get(e),a={id:r,topic:e,params:i,verifyContext:await this.getVerifyContext(t,o.peer.metadata)};await this.setPendingSessionRequest(a),null!=(n=this.client.signConfig)&&n.disableRequestQueue?this.emitSessionRequest(a):(this.addSessionRequestToSessionRequestQueue(a),this.processSessionRequestQueue())}catch(o){await this.sendError({id:r,topic:e,error:o}),this.client.logger.error(o)}},this.onSessionRequestResponse=(e,t)=>{const{id:n}=t,r=wd("session_request",n);if(0===this.events.listenerCount(r))throw new Error("emitting ".concat(r," without any listeners"));Yv(t)?this.events.emit(wd("session_request",n),{result:t.result}):Kv(t)&&this.events.emit(wd("session_request",n),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:n,params:r}=t;try{const t="".concat(e,"_session_event_").concat(r.event.name),i=bv.get(t);if(i&&this.isRequestOutOfSync(i,n))return void this.client.logger.info("Discarding out of sync request - ".concat(n));this.isValidEmit(Sx({topic:e},r)),this.client.events.emit("session_event",{id:n,topic:e,params:r}),bv.set(t,n)}catch(i){await this.sendError({id:n,topic:e,error:i}),this.client.logger.error(i)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:n}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),Yv(t)?this.events.emit(wd("session_request",n),{result:t.result}):Kv(t)&&this.events.emit(wd("session_request",n),{error:t.error})},this.onSessionAuthenticateRequest=async(e,t)=>{try{const{requester:n,authPayload:r,expiryTimestamp:i}=t.params,o=Tg(JSON.stringify(t)),a=await this.getVerifyContext(o,this.client.metadata),s={requester:n,pairingTopic:e,id:t.id,authPayload:r,verifyContext:a,expiryTimestamp:i};await this.setAuthRequest(t.id,{request:s,pairingTopic:e}),this.client.events.emit("session_authenticate",{topic:e,params:t.params,id:t.id})}catch(Ks){this.client.logger.error(Ks);const r=t.params.requester.publicKey,i=await this.client.core.crypto.generateKeyPair(),o={type:bg,receiverPublicKey:r,senderPublicKey:i};await this.sendError({id:t.id,topic:e,error:Ks,encodeOpts:o,rpcOpts:hx.wc_sessionAuthenticate.autoReject})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=mx,this.processSessionRequestQueue()}),(0,qs.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=e=>{let{topic:t,error:n}=e;const r=this.client.core.history.pending;r.length>0&&r.filter((e=>e.topic===t&&"wc_sessionRequest"===e.request.method)).forEach((e=>{const t=wd("session_request",e.request.id);if(0===this.events.listenerCount(t))throw new Error("emitting ".concat(t," without any listeners"));this.events.emit(wd("session_request",e.request.id),{error:n})}))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===gx)return void this.client.logger.info("session request queue is already active.");const e=this.sessionRequestQueue.queue[0];if(e)try{this.sessionRequestQueue.state=gx,this.emitSessionRequest(e)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find((t=>t.pairingTopic===e.topic));t&&this.onSessionProposeRequest(e.topic,Ov("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id))},this.isValidConnect=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","connect() params: ".concat(JSON.stringify(e)));throw new Error(t)}const{pairingTopic:t,requiredNamespaces:n,optionalNamespaces:r,sessionProperties:i,relays:o}=e;if(ev(t)||await this.isValidPairingTopic(t),!function(e,t){let n=!1;return t&&!e?n=!0:e&&Jg(e)&&e.length&&e.forEach((e=>{n=cv(e)})),n}(o,!0)){const{message:e}=Xg("MISSING_OR_INVALID","connect() relays: ".concat(o));throw new Error(e)}!ev(n)&&0!==$g(n)&&this.validateNamespaces(n,"requiredNamespaces"),!ev(r)&&0!==$g(r)&&this.validateNamespaces(r,"optionalNamespaces"),ev(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(e,t)=>{const n=function(e,t,n){let r=null;if(e&&$g(e)){const i=sv(e,t);i&&(r=i);const o=ov(e,t,n);o&&(r=o)}else r=Xg("MISSING_OR_INVALID","".concat(t,", ").concat(n," should be an object with data"));return r}(e,"connect()",t);if(n)throw new Error(n.message)},this.isValidApprove=async e=>{if(!uv(e))throw new Error(Xg("MISSING_OR_INVALID","approve() params: ".concat(e)).message);const{id:t,namespaces:n,relayProtocol:r,sessionProperties:i}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const o=this.client.proposal.get(t),a=lv(n,"approve()");if(a)throw new Error(a.message);const s=fv(o.requiredNamespaces,n,"approve()");if(s)throw new Error(s.message);if(!tv(r,!0)){const{message:e}=Xg("MISSING_OR_INVALID","approve() relayProtocol: ".concat(r));throw new Error(e)}ev(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","reject() params: ".concat(e));throw new Error(t)}const{id:t,reason:n}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!function(e){return!(!e||"object"!=typeof e||!e.code||!nv(e.code,!1)||!e.message||!tv(e.message,!1))}(n)){const{message:e}=Xg("MISSING_OR_INVALID","reject() reason: ".concat(JSON.stringify(n)));throw new Error(e)}},this.isValidSessionSettleRequest=e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","onSessionSettleRequest() params: ".concat(e));throw new Error(t)}const{relay:t,controller:n,namespaces:r,expiry:i}=e;if(!cv(t)){const{message:e}=Xg("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const o=function(e,t){let n=null;return tv(null===e||void 0===e?void 0:e.publicKey,!1)||(n=Xg("MISSING_OR_INVALID","".concat(t," controller public key should be a string"))),n}(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);const a=lv(r,"onSessionSettleRequest()");if(a)throw new Error(a.message);if(bd(i)){const{message:e}=Xg("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","update() params: ".concat(e));throw new Error(t)}const{topic:t,namespaces:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const r=this.client.session.get(t),i=lv(n,"update()");if(i)throw new Error(i.message);const o=fv(r.requiredNamespaces,n,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","extend() params: ".concat(e));throw new Error(t)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","request() params: ".concat(e));throw new Error(t)}const{topic:t,request:n,chainId:r,expiry:i}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:o}=this.client.session.get(t);if(!dv(o,r)){const{message:e}=Xg("MISSING_OR_INVALID","request() chainId: ".concat(r));throw new Error(e)}if(!function(e){return!(ev(e)||!tv(e.method,!1))}(n)){const{message:e}=Xg("MISSING_OR_INVALID","request() ".concat(JSON.stringify(n)));throw new Error(e)}if(!pv(o,r,n.method)){const{message:e}=Xg("MISSING_OR_INVALID","request() method: ".concat(n.method));throw new Error(e)}if(i&&!function(e,t){return nv(e,!1)&&e<=t.max&&e>=t.min}(i,fx)){const{message:e}=Xg("MISSING_OR_INVALID","request() expiry: ".concat(i,". Expiry must be a number (in seconds) between ").concat(fx.min," and ").concat(fx.max));throw new Error(e)}},this.isValidRespond=async e=>{var t;if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","respond() params: ".concat(e));throw new Error(t)}const{topic:n,response:r}=e;try{await this.isValidSessionTopic(n)}catch(i){throw null!=(t=null===e||void 0===e?void 0:e.response)&&t.id&&this.cleanupAfterResponse(e),i}if(!function(e){return!(ev(e)||ev(e.result)&&ev(e.error)||!nv(e.id,!1)||!tv(e.jsonrpc,!1))}(r)){const{message:e}=Xg("MISSING_OR_INVALID","respond() response: ".concat(JSON.stringify(r)));throw new Error(e)}},this.isValidPing=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","ping() params: ".concat(e));throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","emit() params: ".concat(e));throw new Error(t)}const{topic:t,event:n,chainId:r}=e;await this.isValidSessionTopic(t);const{namespaces:i}=this.client.session.get(t);if(!dv(i,r)){const{message:e}=Xg("MISSING_OR_INVALID","emit() chainId: ".concat(r));throw new Error(e)}if(!function(e){return!(ev(e)||!tv(e.name,!1))}(n)){const{message:e}=Xg("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(n)));throw new Error(e)}if(!hv(i,r,n.name)){const{message:e}=Xg("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(n)));throw new Error(e)}},this.isValidDisconnect=async e=>{if(!uv(e)){const{message:t}=Xg("MISSING_OR_INVALID","disconnect() params: ".concat(e));throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:n,domain:r,nonce:i}=e;if(!Array.isArray(t)||0===t.length)throw new Error("chains is required and must be a non-empty array");if(!tv(n,!1))throw new Error("uri is required parameter");if(!tv(r,!1))throw new Error("domain is required parameter");if(!tv(i,!1))throw new Error("nonce is required parameter");if([...new Set(t.map((e=>Ku(e).namespace)))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:o}=Ku(t[0]);if("eip155"!==o)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(e,t)=>{const n={verified:{verifyUrl:t.verifyUrl||vw,validation:"UNKNOWN",origin:t.url||""}};try{const r=await this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});r&&(n.verified.origin=r.origin,n.verified.isScam=r.isScam,n.verified.validation=r.origin===new URL(t.url).origin?"VALID":"INVALID")}catch(fl){this.client.logger.info(fl)}return this.client.logger.info("Verify context: ".concat(JSON.stringify(n))),n},this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!tv(e,!1)){const{message:n}=Xg("MISSING_OR_INVALID","".concat(t," must be in Record<string, string> format. Received: ").concat(JSON.stringify(e)));throw new Error(n)}}))},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0;const t=this.recentlyDeletedLimit/2;for(const n of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(n)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:n}=Xg("MISSING_OR_INVALID","Record was recently deleted - ".concat(t,": ").concat(e));throw new Error(n)}}}async isInitialized(){if(!this.initialized){const{message:e}=Xg("NOT_INITIALIZED",this.name);throw new Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Ub,(async e=>{const{topic:t,message:n}=e,{publicKey:r}=this.client.auth.authKeys.keys.includes(bx)?this.client.auth.authKeys.get(bx):{responseTopic:void 0,publicKey:void 0},i=await this.client.core.crypto.decode(t,n,{receiverPublicKey:r});try{qv(i)?(this.client.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i})):Gv(i)?(await this.client.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.client.core.history.delete(t,i.id)):this.onRelayEventUnknownPayload({topic:t,payload:i})}catch(o){this.client.logger.error(o)}}))}registerExpirerEvents(){this.client.core.expirer.on(fw,(async e=>{const{topic:t,id:n}=vd(e.target);return n&&this.client.pendingRequest.keys.includes(n)?await this.deletePendingSessionRequest(n,Xg("EXPIRED"),!0):n&&this.client.auth.requests.keys.includes(n)?await this.deletePendingAuthRequest(n,Xg("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n})))}))}registerPairingEvents(){this.client.core.pairing.events.on(iw,(e=>this.onPairingCreated(e))),this.client.core.pairing.events.on(aw,(e=>{this.addToRecentlyDeleted(e.topic,"pairing")}))}isValidPairingTopic(e){if(!tv(e,!1)){const{message:t}=Xg("MISSING_OR_INVALID","pairing topic should be a string: ".concat(e));throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=Xg("NO_MATCHING_KEY","pairing topic doesn't exist: ".concat(e));throw new Error(t)}if(bd(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=Xg("EXPIRED","pairing topic: ".concat(e));throw new Error(t)}}async isValidSessionTopic(e){if(!tv(e,!1)){const{message:t}=Xg("MISSING_OR_INVALID","session topic should be a string: ".concat(e));throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){const{message:t}=Xg("NO_MATCHING_KEY","session topic doesn't exist: ".concat(e));throw new Error(t)}if(bd(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});const{message:t}=Xg("EXPIRED","session topic: ".concat(e));throw new Error(t)}if(!this.client.core.crypto.keychain.has(e)){const{message:t}=Xg("MISSING_OR_INVALID","session topic does not exist in keychain: ".concat(e));throw await this.deleteSession({topic:e}),new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(tv(e,!1)){const{message:t}=Xg("NO_MATCHING_KEY","session or pairing topic doesn't exist: ".concat(e));throw new Error(t)}{const{message:t}=Xg("MISSING_OR_INVALID","session or pairing topic should be a string: ".concat(e));throw new Error(t)}}this.isValidPairingTopic(e)}}async isValidProposalId(e){if(!function(e){return"number"==typeof e}(e)){const{message:t}=Xg("MISSING_OR_INVALID","proposal id should be a number: ".concat(e));throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=Xg("NO_MATCHING_KEY","proposal id doesn't exist: ".concat(e));throw new Error(t)}if(bd(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);const{message:t}=Xg("EXPIRED","proposal id: ".concat(e));throw new Error(t)}}}class Dx extends Yw{constructor(e,t){super(e,t,"proposal",lx),this.core=e,this.logger=t}}class Fx extends Yw{constructor(e,t){super(e,t,"session",lx),this.core=e,this.logger=t}}class Nx extends Yw{constructor(e,t){super(e,t,"request",lx,(e=>e.id)),this.core=e,this.logger=t}}class Ix extends Yw{constructor(e,t){super(e,t,"authKeys",yx,(()=>bx)),this.core=e,this.logger=t}}class Rx extends Yw{constructor(e,t){super(e,t,"pairingTopics",yx),this.core=e,this.logger=t}}class Ox extends Yw{constructor(e,t){super(e,t,"requests",yx,(e=>e.id)),this.core=e,this.logger=t}}class jx{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new Ix(this.core,this.logger),this.pairingTopics=new Rx(this.core,this.logger),this.requests=new Ox(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class Mx extends Dl{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=cx,this.events=new Le.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.update=async e=>{try{return await this.engine.update(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.request=async e=>{try{return await this.engine.request(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.find=e=>{try{return this.engine.find(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(Ks){throw this.logger.error(Ks.message),Ks}},this.name=(null===e||void 0===e?void 0:e.name)||cx,this.metadata=(null===e||void 0===e?void 0:e.metadata)||(0,Uu.g)()||{name:"",description:"",url:"",icons:[""]},this.signConfig=null===e||void 0===e?void 0:e.signConfig;const t=typeof(null===e||void 0===e?void 0:e.logger)<"u"&&"string"!=typeof(null===e||void 0===e?void 0:e.logger)?e.logger:Js()(gl({level:(null===e||void 0===e?void 0:e.logger)||ux}));this.core=(null===e||void 0===e?void 0:e.core)||new ax(e),this.logger=yl(t,this.name),this.session=new Fx(this.core,this.logger),this.proposal=new Dx(this.core,this.logger),this.pendingRequest=new Nx(this.core,this.logger),this.engine=new Px(this),this.auth=new jx(this.core,this.logger)}static async init(e){const t=new Mx(e);return await t.initialize(),t}get context(){return vl(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(Ys){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(Ys.message),Ys}}}function Lx(){return"undefined"!==typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!==typeof navigator&&/iPad/.test(navigator.userAgent)}function Bx(){return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent)||Lx()}let Ux=function(e){return e.FLOW_AUTHN="flow_authn",e.FLOW_PRE_AUTHZ="flow_pre_authz",e.FLOW_AUTHZ="flow_authz",e.FLOW_USER_SIGN="flow_user_sign",e}({}),Vx=function(e){return e.SESSION_REQUEST="session_proposal",e.SIGNING_REQUEST="signing_request",e}({});const Hx="fcl-plugin-service-walletconnect",zx=(e,t,n)=>{let{wcRequestHook:r,pairingModalOverride:i}=t;return t=>{let{service:o,body:a,opts:s}=t;return new Promise((async(t,l)=>{const c=await e;let u,d,p;y(!!c,"WalletConnect is not initialized");const h=o.endpoint,f=function(e){let{uid:t}=e;t&&/^(ftp|http|https):\/\/[^ "]+$/.test(t)||(0,v.Rm)({title:"WalletConnect Service Warning",message:"service.uid should be a valid universal link url. Found: ".concat(t),level:v.A_.warn});return t}(o),m=c.pairing.getAll({active:!0});if(m.length>0&&(d=null===m||void 0===m?void 0:m.find((e=>{var t;return(null===(t=e.peerMetadata)||void 0===t?void 0:t.url)===o.uid}))),c.session.length>0){const e=c.session.keys.length-1;u=c.session.get(c.session.keys.at(e))}var g,b;(Bx()&&(p=s.windowRef?s.windowRef:window.open("","_blank")),null==u&&(u=await function(e){return async t=>{var n,r;let{service:i,onClose:o,appLink:a,windowRef:s,client:l,method:c,pairing:u,wcRequestHook:d,pairingModalOverride:p}=t;const h=await Ji(),f={flow:{methods:[Ux.FLOW_AUTHN,Ux.FLOW_PRE_AUTHZ,Ux.FLOW_AUTHZ,Ux.FLOW_USER_SIGN],chains:["flow:".concat(h)],events:["chainChanged","accountsChanged"]}};y(!(null===(n=l.opts)||void 0===n||!n.projectId),"Cannot establish connection, WalletConnect projectId is undefined");const m=null===(r=l.opts)||void 0===r?void 0:r.projectId,g=new(await e)({projectId:m,walletConnectVersion:2});try{const{uri:e,approval:t}=await l.connect({pairingTopic:null===u||void 0===u?void 0:u.topic,requiredNamespaces:f});var b=e;if(d&&d instanceof Function&&d({type:Vx.SESSION_REQUEST,method:c,service:i,session:null,pairing:null!==u&&void 0!==u?u:null,uri:null!==e&&void 0!==e?e:null}),y(!!e,"Cannot establish connection, WalletConnect URI is undefined"),Bx()){const t=new URLSearchParams({uri:e}).toString();let n=null==u?a+"?"+t:a;s.location.href=n}else u||(p?p(e,o):g.openModal({uri:e,onClose:o}));return await t()}catch(w){throw w instanceof Error&&(0,v.Rm)({title:"".concat(w.name," Error establishing WalletConnect session"),message:"\n          ".concat(w.message,"\n          uri: ").concat(b,"\n        "),level:v.A_.error}),o(),w}finally{s&&!s.closed&&s.close(),g.closeModal()}}}(n)({service:o,onClose:function(){l("Declined: Externally Halted")},appLink:f,windowRef:p,client:c,method:h,pairing:d,wcRequestHook:r,pairingModalOverride:i})),r&&r instanceof Function)&&r({type:Vx.SIGNING_REQUEST,method:h,service:o,session:null!==(g=u)&&void 0!==g?g:null,pairing:null!==(b=d)&&void 0!==b?b:null,uri:null});Bx()&&h!==Ux.FLOW_AUTHN&&function(){if(p)if(f.startsWith("http")&&!Lx()){const e=document.createElement("a");e.href=f,e.target="_blank",e.rel="noreferrer noopener",e.click()}else p.location.href=f;else(0,v.Rm)({title:"Problem opening deep link in new window",message:"Window failed to open (was it blocked by the browser?)",level:v.A_.warn})}();const[w,x,C]=function(e){const[t,n,r]=Object.values(e.namespaces).map((e=>e.accounts)).flat().filter((e=>e.startsWith("flow:")))[0].split(":"),i="".concat(t,":").concat(n),o=r;return[i,o,r]}(u),A=JSON.stringify({...a,addr:x,address:C});try{!function(e){try{if("object"!==typeof e)return;switch(e.status){case"APPROVED":t(e.data);break;case"DECLINED":l("Declined: ".concat(e.reason||"No reason supplied"));break;case"REDIRECT":t(e);break;default:l("Declined: No reason supplied")}}catch(n){throw n instanceof Error&&(0,v.Rm)({title:"".concat(n.name,' "WC/RPC onResponse error"'),message:n.message,level:v.A_.error}),n}}(await c.request({topic:u.topic,chainId:w,request:{method:h,params:[A]}}))}catch(E){E instanceof Error&&(0,v.Rm)({title:"".concat(E.name," Error on WalletConnect client ").concat(h," request"),message:E.message,level:v.A_.error}),l("Declined: Externally Halted")}finally{p&&!p.closed&&p.close()}}))}};let Wx=Promise.resolve(null);const qx=e=>{const{FclWcServicePlugin:t,clientPromise:n}=Gx(e);return sa.authn.update(),{FclWcServicePlugin:t,clientPromise:n}},Gx=e=>{let{projectId:t,metadata:r,includeBaseWC:i=!1,wcRequestHook:o=null,pairingModalOverride:a=null,wallets:s=[]}=e;if("undefined"===typeof window)throw new Error("FCL Wallet Connect Plugin can only be initialized in the browser");Wx=Promise.resolve(Wx).catch((()=>null)).then((e=>e||(async e=>{let{projectId:t,metadata:n}=e;y(null!=t,"FCL Wallet Connect Error: WalletConnect projectId is required");try{return Mx.init({logger:"debug",relayUrl:"wss://relay.walletconnect.com",projectId:t,metadata:n})}catch(r){throw r instanceof Error&&(0,v.Rm)({title:"".concat(r.name," fcl-wc Init Client"),message:r.message,level:v.A_.error}),r}})({projectId:t,metadata:r}))).catch((e=>{throw(0,v.Rm)({title:"WalletConnect Client Initialization Error",message:e.message?e.message:e,level:v.A_.error}),e}));const l=function(e){return{name:Hx,f_type:"ServicePlugin",type:"discovery-service",serviceStrategy:{method:"WC/RPC",exec:zx(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{projectId:"",includeBaseWC:!1,wallets:[],wcRequestHook:null,pairingModalOverride:null},n.e(4).then(n.bind(n,89004)).then((e=>e.WalletConnectModal)))},services:[]}}(Wx,{projectId:t,includeBaseWC:i,wcRequestHook:o,pairingModalOverride:a,wallets:s});return{FclWcServicePlugin:l,clientPromise:Wx}},Yx="FCL_IFRAME",Kx="\n  position:fixed;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  height: 100%;\n  width: 100vw;\n  display:block;\n  background:rgba(0,0,0,0.25);\n  z-index: 2147483647;\n  box-sizing: border-box;\n  color-scheme: light;\n";function Qx(e){y(!document.getElementById(Yx),"Attempt at triggering multiple Frames",{src:e});const t=document.createElement("iframe");t.src=e,t.id=Yx,t.allow="usb *; hid *",t.frameBorder="0",t.style.cssText=Kx,document.body.append(t);return[t.contentWindow,()=>{document.getElementById(Yx)&&document.getElementById(Yx).remove()}]}const Xx="FCL_POP";let Zx=null,Jx=null;function $x(e){var t;null==Zx||null!==(t=Zx)&&void 0!==t&&t.closed?Zx=function(e,t,n,r,i){const o=n.top.outerHeight/2+n.top.screenY-i/2,a=n.top.outerWidth/2+n.top.screenX-r/2,s=n.open(e,t,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=".concat(r,", height=").concat(i,", top=").concat(o,", left=").concat(a));if(!s)throw new Error("Popup failed to open (was it blocked by a popup blocker?)");return s}(e,Xx,window,640,770):Jx!==e?(Zx.location.replace(e),Zx.focus()):Zx.focus(),Jx=e;return[Zx,()=>{Zx&&!Zx.closed&&Zx.close(),Zx=null}]}let eC=null,tC=null;function nC(e){var t;if(null==eC||null!==(t=eC)&&void 0!==t&&t.closed){if(eC=window.open(e,"_blank"),!eC)throw new Error("Tab failed to open (was it blocked by the browser?)")}else tC!==e?(eC.location.replace(e),eC.focus()):eC.focus();tC=e;return[eC,()=>{eC&&!eC.closed&&eC.close(),eC=null}]}const rC=()=>{try{const e={can:!("undefined"===typeof window),get:async e=>JSON.parse(sessionStorage.getItem(e)),put:async(e,t)=>sessionStorage.setItem(e,JSON.stringify(t))};return e}catch(e){return null}},iC=()=>{};const oC="1.11.0";const aC=()=>{};const sC=()=>{};const lC=()=>{};const cC=()=>{throw new Error("Strategy util has not been implemented on this platform")},uC={"VIEW/IFRAME":Qx,"VIEW/POP":$x,"VIEW/TAB":nC,"VIEW/MOBILE_BROWSER":cC,"VIEW/DEEPLINK":cC};async function dC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{serviceEndpoint:()=>{}};const{serviceEndpoint:n}=t;try{return uC[e.method](n(e),t)}catch(r){throw console.error("execLocal({service, opts = {}})",r,{service:e,opts:t}),r}}const pC={[io["HTTP/RPC"]]:es(dC),[io["HTTP/POST"]]:es(dC),[io["IFRAME/RPC"]]:function(e){let{service:t,body:n,config:r,opts:i}=e;return new Promise(((e,o)=>{const a=us(),s=i.includeOlderJsonRpcCall;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return{send:iC,close:iC};const n=t.onClose||iC,r=t.onMessage||iC,i=t.onReady||iC,o=t.onResponse||iC,a=ss({close:c,send:u,onReady:i,onResponse:o,onMessage:r});window.addEventListener("message",a);const[s,l]=Qx(Ka(e));return{send:u,close:c};function c(){try{window.removeEventListener("message",a),l(),n()}catch(e){console.error("Frame Close Error",e)}}function u(e){try{s.postMessage(JSON.parse(JSON.stringify(e||{})),"*")}catch(t){console.error("Frame Send Error",e,t)}}}(t,{async onReady(e,i){let{send:o}=i;try{o({type:"FCL:VIEW:READY:RESPONSE",fclVersion:oC,body:n,service:{params:t.params,data:t.data,type:t.type},config:r}),o({fclVersion:oC,type:"FCL:FRAME:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r,deprecated:{message:"FCL:FRAME:READY:RESPONSE is deprecated and replaced with type: FCL:VIEW:READY:RESPONSE"}}),s&&o({jsonrpc:"2.0",id:a,method:"fcl:sign",params:[n,t.params],deprecated:{message:"jsonrpc is deprecated and replaced with type: FCL:VIEW:READY:RESPONSE"}})}catch(l){throw l}},onResponse(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;const n=Xa(t.data);switch(n.status){case"APPROVED":e(n.data),r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execIframeRPC onResponse error",i),i}},onMessage(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;if("2.0"!==t.data.jsonrpc)return;if(t.data.id!==a)return;const n=Xa(t.data.result);switch(n.status){case"APPROVED":e(n.data),r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execIframeRPC onMessage error",i),i}},onClose(){o("Declined: Externally Halted")}})}))},[io["POP/RPC"]]:function(e){let{service:t,body:n,config:r,opts:i}=e;return new Promise(((e,o)=>{const a=us(),{redir:s,includeOlderJsonRpcCall:l}=i;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return{send:aC,close:aC};const n=t.onClose||aC,r=t.onMessage||aC,i=t.onReady||aC,o=t.onResponse||aC,a=ss({close:u,send:d,onReady:i,onResponse:o,onMessage:r});window.addEventListener("message",a);const[s,l]=$x(Ka(e)),c=setInterval((function(){s&&s.closed&&u()}),500);return{send:d,close:u};function u(){try{window.removeEventListener("message",a),clearInterval(c),l(),n()}catch(e){console.error("Popup Close Error",e)}}function d(e){try{s.postMessage(JSON.parse(JSON.stringify(e||{})),"*")}catch(t){console.error("Popup Send Error",e,t)}}}(t,{async onReady(e,i){let{send:o}=i;try{o({fclVersion:oC,type:"FCL:VIEW:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r}),o({fclVersion:oC,type:"FCL:FRAME:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r,deprecated:{message:"FCL:FRAME:READY:RESPONSE is deprecated and replaced with type: FCL:VIEW:READY:RESPONSE"}}),l&&o({jsonrpc:"2.0",id:a,method:"fcl:sign",params:[n,t.params]})}catch(s){throw s}},onResponse(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;const n=Xa(t.data);switch(n.status){case"APPROVED":e(n.data),!s&&r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execPopRPC onResponse error",i),i}},onMessage(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;if("2.0"!==t.data.jsonrpc)return;if(t.data.id!==a)return;const n=Xa(t.data.result);switch(n.status){case"APPROVED":e(n.data),!s&&r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execPopRPC onMessage error",i),i}},onClose(){o("Declined: Externally Halted")}})}))},[io["TAB/RPC"]]:function(e){let{service:t,body:n,config:r,opts:i}=e;return new Promise(((e,o)=>{const a=us(),{redir:s,includeOlderJsonRpcCall:l}=i;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return{send:sC,close:sC};const n=t.onClose||sC,r=t.onMessage||sC,i=t.onReady||sC,o=t.onResponse||sC,a=ss({close:u,send:d,onReady:i,onResponse:o,onMessage:r});window.addEventListener("message",a);const[s,l]=nC(Ka(e)),c=setInterval((function(){s&&s.closed&&u()}),500);return{send:d,close:u};function u(){try{window.removeEventListener("message",a),clearInterval(c),l(),n()}catch(e){console.error("Tab Close Error",e)}}function d(e){try{s.postMessage(JSON.parse(JSON.stringify(e||{})),"*")}catch(t){console.error("Tab Send Error",e,t)}}}(t,{async onReady(e,i){let{send:o}=i;try{o({fclVersion:oC,type:"FCL:VIEW:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r}),o({fclVersion:oC,type:"FCL:FRAME:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r,deprecated:{message:"FCL:FRAME:READY:RESPONSE is deprecated and replaced with type: FCL:VIEW:READY:RESPONSE"}}),l&&o({jsonrpc:"2.0",id:a,method:"fcl:sign",params:[n,t.params]})}catch(s){throw s}},onResponse(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;const n=Xa(t.data);switch(n.status){case"APPROVED":e(n.data),!s&&r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execPopRPC onResponse error",i),i}},onMessage(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;if("2.0"!==t.data.jsonrpc)return;if(t.data.id!==a)return;const n=Xa(t.data.result);switch(n.status){case"APPROVED":e(n.data),!s&&r();break;case"DECLINED":o("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:o("Declined: No reason supplied"),r()}}catch(i){throw console.error("execPopRPC onMessage error",i),i}},onClose(){o("Declined: Externally Halted")}})}))},[io["EXT/RPC"]]:function(e){let{service:t,body:n,config:r,opts:i}=e;return new Promise(((e,i)=>{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return{send:lC,close:lC};const n=t.onClose||lC,r=t.onMessage||lC,i=t.onReady||lC,o=t.onResponse||lC,a=ss({close:s,send:l,onReady:i,onResponse:o,onMessage:r});return window.addEventListener("message",a),l({service:e}),{send:l,close:s};function s(){try{window.removeEventListener("message",a),n()}catch(e){console.error("Ext Close Error",e)}}function l(e){try{window&&window.postMessage(JSON.parse(JSON.stringify(e||{})),"*")}catch(t){console.error("Ext Send Error",e,t)}}}(t,{async onReady(e,i){let{send:o}=i;try{o({fclVersion:oC,type:"FCL:VIEW:READY:RESPONSE",body:n,service:{params:t.params,data:t.data,type:t.type},config:r})}catch(a){throw a}},onResponse(t,n){let{close:r}=n;try{if("object"!==typeof t.data)return;const n=Xa(t.data);switch(n.status){case"APPROVED":e(n.data),r();break;case"DECLINED":i("Declined: ".concat(n.reason||"No reason supplied")),r();break;case"REDIRECT":e(n),r();break;default:i("Declined: No reason supplied"),r()}}catch(o){throw console.error("execExtRPC onResponse error",o),o}},onClose(){i("Declined: Externally Halted")}})}))}},hC="undefined"===typeof window,fC=e=>{const t=e["app.detail.title"],n=e["app.detail.icon"],r=e["app.detail.description"],i=e["app.detail.url"];return{name:null!==t&&void 0!==t?t:document.title,description:null!==r&&void 0!==r?r:"",url:null!==i&&void 0!==i?i:window.location.origin,icons:n?[n]:[]}};const mC=(e=>{let{platform:t}=e;return async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{await async function(e){return no("mutate",e)}(e),e=await to(e);const n=Ya({platform:t}),r=await _e().get("fcl.authz",n().authorization);return _e().overload(e.dependencies||{},(async()=>qr([xi(e.cadence),pi(qi(e.args||[])),e.limit&&Wi(e.limit)&&di(e.limit),fi(e.proposer||e.authz||r),mi(e.payer||e.authz||r),ti(e.authorizations||[e.authz||r])]).then(Gr)))}catch(n){throw n}}})({platform:"web"}),gC=Ya({platform:"web"}),vC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gC().authenticate(e)},yC=()=>gC().unauthenticate(),bC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gC().unauthenticate(),gC().authenticate(e)},wC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gC().authenticate(e)},xC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gC().authenticate(e)},CC=gC().authorization;_e({"discovery.wallet.method.default":"IFRAME/RPC","fcl.storage.default":rC()}),Xo({coreStrategies:pC}),function(){if(hC)return;let e=null,t=!1;_e.subscribe((async n=>{const r={"walletconnect.projectId":n["walletconnect.projectId"],"app.detail.title":n["app.detail.title"],"app.detail.icon":n["app.detail.icon"],"app.detail.description":n["app.detail.description"],"app.detail.url":n["app.detail.url"]},i=r["walletconnect.projectId"],o=e;if(e=JSON.stringify(r,null,2),t)return void(o!==e&&console.warn("FCL WalletConnect Plugin has been already loaded with different configuration. It is not possible to change the configuration after the plugin has been loaded.\n\nPrevious configuration:\n".concat(o,"\n\nCurrent configuration:\n").concat(e)));if(!!!i)return;if(y(!!i,"FCL Configuration value for 'walletconnect.projectId' is required"),Jo.getPlugins().has(Hx))return t||console.warn("It seems like the FCL WalletConnect plugins has been already loaded manually. This is no longer necessary, please see the documentation for more information."),void(t=!0);t=!0;const{FclWcServicePlugin:a}=qx({projectId:i,metadata:fC(r)});Jo.add([a])}))}()},65094:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Address:()=>V,Array:()=>q,Bool:()=>U,Character:()=>B,Dictionary:()=>G,Enum:()=>X,Event:()=>Y,Fix64:()=>M,Identity:()=>f,InclusiveRange:()=>J,Int:()=>g,Int128:()=>T,Int16:()=>w,Int256:()=>k,Int32:()=>C,Int64:()=>E,Int8:()=>y,Optional:()=>z,Path:()=>Z,Reference:()=>W,Resource:()=>K,String:()=>L,Struct:()=>Q,UFix64:()=>j,UInt:()=>m,UInt128:()=>_,UInt16:()=>b,UInt256:()=>S,UInt32:()=>x,UInt64:()=>A,UInt8:()=>v,Void:()=>H,Word128:()=>I,Word16:()=>D,Word256:()=>R,Word32:()=>F,Word64:()=>N,Word8:()=>P,_Array:()=>q});var r=n(27998);const i=(e,t,n)=>({label:e,asArgument:t,asInjection:t=>(r.Rm.deprecate({pkg:"@onflow/types",subject:"Passing in ".concat(e," as value for ").concat(e),message:"Going forward, use ".concat(e," as value for ").concat(e,".")}),n(t))}),o=e=>Array.isArray(e),a=e=>"object"===typeof e,s=e=>null==e,l=e=>"number"===typeof e,c=e=>Number.isInteger(e),u=e=>"string"===typeof e,d=e=>{throw new Error("Type Error: "+e)},p=e=>{r.Rm.deprecate({pkg:"@onflow/types",subject:"Passing in Number as value for ".concat(e),message:"Going forward, use String as value for ".concat(e,"."),transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/types/WARNINGS.md#0002-[U]Int*-and-Word*-as-Number"})};let h=!1;const f={label:"Identity",asArgument:e=>(h||(r.Rm.deprecate({pkg:"@onflow/types",subject:"Identity",message:"Identity type is deprecated and will be removed in v2.0.0.  Please remove it from your code."}),h=!0),e),asInjection:e=>e},m=i("UInt",(e=>l(e)&&c(e)?(p("UInt"),{type:"UInt",value:e.toString()}):u(e)?{type:"UInt",value:e}:d("Expected Positive Integer for type Unsigned Int")),(e=>e)),g=i("Int",(e=>l(e)&&c(e)?(p("Int"),{type:"Int",value:e.toString()}):u(e)?{type:"Int",value:e}:d("Expected Integer for type Int")),(e=>e)),v=i("UInt8",(e=>l(e)&&c(e)?(p("UInt8"),{type:"UInt8",value:e.toString()}):u(e)?{type:"UInt8",value:e}:d("Expected integer for UInt8")),(e=>e)),y=i("Int8",(e=>l(e)&&c(e)?(p("Int8"),{type:"Int8",value:e.toString()}):u(e)?{type:"Int8",value:e}:d("Expected positive integer for Int8")),(e=>e)),b=i("UInt16",(e=>l(e)&&c(e)?(p("UInt16"),{type:"UInt16",value:e.toString()}):u(e)?{type:"UInt16",value:e}:d("Expected integer for UInt16")),(e=>e)),w=i("Int16",(e=>l(e)&&c(e)?(p("Int16"),{type:"Int16",value:e.toString()}):u(e)?{type:"Int16",value:e}:d("Expected positive integer for Int16")),(e=>e)),x=i("UInt32",(e=>l(e)&&c(e)?(p("UInt32"),{type:"UInt32",value:e.toString()}):u(e)?{type:"UInt32",value:e}:d("Expected integer for UInt32")),(e=>e)),C=i("Int32",(e=>l(e)&&c(e)?(p("Int32"),{type:"Int32",value:e.toString()}):u(e)?{type:"Int32",value:e}:d("Expected positive integer for Int32")),(e=>e)),A=i("UInt64",(e=>l(e)&&c(e)?(p("UInt64"),{type:"UInt64",value:e.toString()}):u(e)?{type:"UInt64",value:e}:d("Expected integer for UInt64")),(e=>e)),E=i("Int64",(e=>l(e)&&c(e)?(p("Int64"),{type:"Int64",value:e.toString()}):u(e)?{type:"Int64",value:e}:d("Expected positive integer for Int64")),(e=>e)),_=i("UInt128",(e=>l(e)&&c(e)?(p("UInt128"),{type:"UInt128",value:e.toString()}):u(e)?{type:"UInt128",value:e}:d("Expected integer for UInt128")),(e=>e)),T=i("Int128",(e=>l(e)&&c(e)?(p("Int128"),{type:"Int128",value:e.toString()}):u(e)?{type:"Int128",value:e}:d("Expected positive integer for Int128")),(e=>e)),S=i("UInt256",(e=>l(e)&&c(e)?(p("UInt256"),{type:"UInt256",value:e.toString()}):u(e)?{type:"UInt256",value:e}:d("Expected integer for UInt256")),(e=>e)),k=i("Int256",(e=>l(e)&&c(e)?(p("Int256"),{type:"Int256",value:e.toString()}):u(e)?{type:"Int256",value:e}:d("Expected integer for Int256")),(e=>e)),P=i("Word8",(e=>l(e)&&c(e)?(p("Word8"),{type:"Word8",value:e.toString()}):u(e)?{type:"Word8",value:e}:d("Expected positive number for Word8")),(e=>e)),D=i("Word16",(e=>l(e)&&c(e)?(p("Word16"),{type:"Word16",value:e.toString()}):u(e)?{type:"Word16",value:e}:d("Expected positive number for Word16")),(e=>e)),F=i("Word32",(e=>l(e)&&c(e)?(p("Word32"),{type:"Word32",value:e.toString()}):u(e)?{type:"Word32",value:e}:d("Expected positive number for Word32")),(e=>e)),N=i("Word64",(e=>l(e)&&c(e)?(p("Word64"),{type:"Word64",value:e.toString()}):u(e)?{type:"Word64",value:e}:d("Expected positive number for Word64")),(e=>e)),I=i("Word128",(e=>l(e)&&c(e)?(p("Word128"),{type:"Word128",value:e.toString()}):u(e)?{type:"Word128",value:e}:d("Expected positive number for Word128")),(e=>e)),R=i("Word256",(e=>l(e)&&c(e)?(p("Word256"),{type:"Word256",value:e.toString()}):u(e)?{type:"Word256",value:e}:d("Expected positive number for Word256")),(e=>e)),O=()=>{r.Rm.deprecate({subject:"Passing in Numbers as values for Fix64 and UFix64 types",pkg:"@onflow/types",transition:"https://github.com/onflow/flow-js-sdk/blob/master/packages/types/WARNINGS.md#0001-[U]Fix64-as-Number"})},j=i("UFix64",(e=>{if(u(e)){const t=e.split(".");return 2!==t.length?d("Expected one decimal but found ".concat(t.length," in the [U]Fix64 value. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")):0==t[1].length||t[1].length>8?d("Expected at least one digit, and at most 8 digits following the decimal of the [U]Fix64 value but found ".concat(t[1].length," digits. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")):(t[1]=t[1].padEnd(8,"0"),{type:"UFix64",value:e=t.join(".")})}return l(e)?(O(),{type:"UFix64",value:e.toString()}):d("Expected String for UFix64")}),(e=>e)),M=i("Fix64",(e=>{if(u(e)){const t=e.split(".");return 2!==t.length?d("Expected one decimal but found ".concat(t.length," in the [U]Fix64 value. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")):0==t[1].length||t[1].length>8?d("Expected at least one digit, and at most 8 digits following the decimal of the [U]Fix64 value but found ".concat(t[1].length," digits. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")):(t[1]=t[1].padEnd(8,"0"),{type:"Fix64",value:e=t.join(".")})}return l(e)?(O(),{type:"Fix64",value:e.toString()}):d("Expected String for Fix64")}),(e=>e)),L=i("String",(e=>u(e)?{type:"String",value:e}:d("Expected String for type String")),(e=>e)),B=i("Character",(e=>u(e)?{type:"Character",value:e}:d("Expected Character for type Character")),(e=>e)),U=i("Bool",(e=>"boolean"===typeof e?{type:"Bool",value:e}:d("Expected Boolean for type Bool")),(e=>e)),V=i("Address",(e=>u(e)?{type:"Address",value:e}:d("Expected Address for type Address")),(e=>e)),H=i("Void",(e=>!e||s(e)?{type:"Void",value:null}:d("Expected Void for type Void")),(e=>e)),z=e=>i("Optional",(t=>({type:"Optional",value:s(t)?null:e.asArgument(t)})),(e=>e)),W=i("Reference",(e=>a(e)?{type:"Reference",value:e}:d("Expected Object for type Reference")),(e=>e)),q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return i("Array",(t=>({type:"Array",value:o(e)?e.map(((e,n)=>e.asArgument(t[n]))):t.map((t=>e.asArgument(t)))})),(e=>e))},G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return i("Dictionary",(t=>{const n=o(t),r=o(e);return a(t)?{type:"Dictionary",value:r&&n?e.map(((e,n)=>({key:e.key.asArgument(t[n].key),value:e.value.asArgument(t[n].value)}))):n&&!r?t.map((t=>({key:e.key.asArgument(t.key),value:e.value.asArgument(t.value)}))):n||r?d("Invalid arguments for Dictionary."):[{key:e.key.asArgument(t.key),value:e.value.asArgument(t.value)}]}:d("Expected Object for type Dictionary")}),(e=>e))},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i("Event",(n=>a(n)?{type:"Event",value:{id:e,fields:o(t)?t.map(((e,t)=>({name:n.fields[t].name,value:e.value.asArgument(n.fields[t].value)}))):n.fields.map((e=>({name:e.name,value:t.value.asArgument(e.value)})))}}:d("Expected Object for type Event")),(e=>e))},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i("Resource",(n=>a(n)?{type:"Resource",value:{id:e,fields:o(t)?t.map(((e,t)=>({name:n.fields[t].name,value:e.value.asArgument(n.fields[t].value)}))):n.fields.map((e=>({name:e.name,value:t.value.asArgument(e.value)})))}}:d("Expected Object for type Resource")),(e=>e))},Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i("Struct",(n=>a(n)?{type:"Struct",value:{id:e,fields:o(t)?t.map(((e,t)=>({name:n.fields[t].name,value:e.value.asArgument(n.fields[t].value)}))):n.fields.map((e=>({name:e.name,value:t.value.asArgument(e.value)})))}}:d("Expected Object for type Struct")),(e=>e))},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i("Enum",(n=>a(n)?{type:"Enum",value:{id:e,fields:o(t)?t.map(((e,t)=>({name:n.fields[t].name,value:e.value.asArgument(n.fields[t].value)}))):n.fields.map((e=>({name:e.name,value:t.value.asArgument(e.value)})))}}:d("Expected Object for type Enum")),(e=>e))},Z=i("Path",(e=>a(e)?u(e.domain)?"storage"!==e.domain&&"private"!==e.domain&&"public"!==e.domain?d('Expected either "storage", "private" or "public" as the Path domain but found '.concat(e.domain,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")):u(e.identifier)?{type:"Path",value:{domain:e.domain,identifier:e.identifier}}:d("Expected a string for the Path identifier but found ".concat(e.identifier,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")):d("Expected a string for the Path domain but found ".concat(e.domain,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")):d("Expected Object for type Path")),(e=>e)),J=e=>i("InclusiveRange",(t=>{if(a(t)){const{start:n,end:r,step:i}=t;return{type:"InclusiveRange",value:{start:e.asArgument(n),end:e.asArgument(r),step:e.asArgument(i)}}}return d("Expected Object for type InclusiveRange")}),(e=>e))},27998:(e,t,n)=>{"use strict";n.d(t,{A_:()=>o,Nk:()=>i,Rm:()=>a});let r=null;const i=e=>{r=e};let o=function(e){return e[e.debug=5]="debug",e[e.info=4]="info",e[e.log=3]="log",e[e.warn=2]="warn",e[e.error=1]="error",e}({});const a=async e=>{var t,n;const{title:i,message:a,level:s,always:l}=e,c=null!==(t=await(null===(n=r)||void 0===n||null===(n=n())||void 0===n?void 0:n.get("logger.level")))&&void 0!==t?t:o.warn;if(!l&&c<s)return;const u=(e=>{const{title:t,message:n}=e;return["\n    %c".concat(t,"\n    ============================\n\n    ").concat(n,"\n\n    ============================\n    ").replace(/\n[^\S\r\n]+/g,"\n").trim(),"font-weight:bold;font-family:monospace;"]})({title:i,message:a});switch(s){case o.debug:console.debug(...u);break;case o.info:console.info(...u);break;case o.warn:console.warn(...u);break;case o.error:console.error(...u);break;default:console.log(...u)}};a.deprecate=e=>{const{pkg:t,subject:n,transition:r,level:i=o.warn,message:s="",callback:l=null}=e,c=()=>{return a({title:"".concat(t?t+" ":"","Deprecation Notice"),message:"\n      ".concat(n?"".concat((e=n,e.charAt(0).toUpperCase()+e.slice(1))," is deprecated and will cease to work in future releases").concat(t?" of "+t:"","."):"").concat(s?"\n"+s:"").concat(r?"\nYou can learn more (including a guide on common transition paths) here: ".concat(r):"","\n    ").trim(),level:i});var e};return"function"===typeof l?async function(){return await c(),await l(...arguments)}:c()}},60482:(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},r.apply(this,arguments)}var i;n.d(t,{AO:()=>d,Gh:()=>R,HS:()=>O,Oi:()=>s,Rr:()=>p,pX:()=>U,pb:()=>D,rc:()=>i,tH:()=>B,ue:()=>m,yD:()=>I,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function a(e){return void 0===e&&(e={}),h((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:d(t)}),null,e)}function s(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?p(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:p=!1}=a,h=l.history,f=i.Pop,m=null,g=v();function v(){return(h.state||{idx:null}).idx}function y(){f=i.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,h.replaceState(r({},h.state,{idx:g}),""));let w={get action(){return f},get location(){return e(l,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(o,y),m=e,()=>{l.removeEventListener(o,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=i.Push;let r=u(w.location,e,t);n&&n(r,e),g=v()+1;let o=c(r,g),a=w.createHref(r);try{h.pushState(o,"",a)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;l.location.assign(a)}p&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=i.Replace;let r=u(w.location,e,t);n&&n(r,e),g=v();let o=c(r,g),a=w.createHref(r);h.replaceState(o,"",a),p&&m&&m({action:f,location:w.location,delta:0})},go:e=>h.go(e)};return w}var f;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let i=D(("string"===typeof t?p(t):t).pathname||"/",n);if(null==i)return null;let o=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=P(i);a=S(o[s],e,r)}return a}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=O([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:T(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of y(e.path))i(e,t,r);else i(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=y(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,x=2,C=1,A=10,E=-2,_=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=E),t&&(r+=x),n.filter((e=>!_(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?C:A)),r)}function S(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=k({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=k({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:O([o,u.pathname]),pathnameBase:j(O([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=O([o,u.pathnameBase]))}return a}function k(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function P(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function F(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function I(e,t){let n=N(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function R(e,t,n,i){let o;void 0===i&&(i=!1),"string"===typeof e?o=p(e):(o=r({},e),s(!o.pathname||!o.pathname.includes("?"),F("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),F("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),F("#","search","hash",o)));let a,l=""===e||""===o.pathname,c=l?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?p(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:M(r),hash:L(i)}}(o,a),d=c&&"/"!==c&&c.endsWith("/"),h=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const O=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class B extends Error{}function U(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],H=(new Set(V),["get",...V]);new Set(H),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},23151:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(67853),i=n(40745),o=n(65356);function a(){(0,i.U)(),(0,o.wD)()&&function(){const t=(0,r.EU)();if(!t.__SENTRY__)return;const n={mongodb:()=>new((0,o.fj)(e,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,o.fj)(e,"./node/integrations/mongo").Mongo),mysql:()=>new((0,o.fj)(e,"./node/integrations/mysql").Mysql),pg:()=>new((0,o.fj)(e,"./node/integrations/postgres").Postgres)},i=Object.keys(n).filter((e=>!!(0,o.Vw)(e))).map((e=>{try{return n[e]()}catch(t){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}()}e=n.hmd(e)},86393:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});const r="production"},38426:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1939:(e,t,n)=>{"use strict";n.d(t,{KU:()=>o,o5:()=>a,v4:()=>i});var r=n(67853);function i(){const e=(0,r.BF)();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(2===n.length){const[t,r]=n;return t?e.withScope((()=>(e.getStackTop().scope=t,r(t)))):e.withScope(r)}return e.withScope(n[0])}function o(){return(0,r.BF)().getClient()}function a(){return(0,r.BF)().getScope()}},67853:(e,t,n)=>{"use strict";n.d(t,{BF:()=>k,rm:()=>P,EU:()=>T,fx:()=>F});var r,i=n(89678),o=n(33842),a=n(22395),s=n(35174),l=n(51851),c=n(86393),u=n(38426);!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class d{constructor(e){d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new d(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new d(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function p(){return(0,l.BY)("globalEventProcessors",(()=>[]))}function h(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new d(((o,a)=>{const l=e[r];if(null===t||"function"!==typeof l)o(t);else{const c=l({...t},n);u.T&&l.id&&null===c&&s.vF.log('Event processor "'.concat(l.id,'" dropped event')),(0,i.Qg)(c)?c.then((t=>h(e,t,n,r+1).then(o))).then(null,a):h(e,c,n,r+1).then(o).then(null,a)}}))}var f=n(51293);function m(e){const t=(0,a.zf)(),n={sid:(0,o.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,f.Ce)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&g(n,e),n}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,a.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var v=n(37054),y=n(38854),b=n(14835);function w(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=(0,f.Ce)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=(0,f.Ce)(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=(0,f.Ce)(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=(0,f.Ce)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:(0,b.kX)(t),...e.contexts};const n=(0,y.z)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,v.k)(t),...e.sdkProcessingMetadata};const r=(0,b.et)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?(0,o.k9)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}class x{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=C()}static clone(e){return e?e.clone():new x}clone(){const e=new x;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&g(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e;if(t instanceof x){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,i.Qd)(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=C(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,a.lu)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];w(e,this.getScopeData());return h([...n,...p(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,o.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,o.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.eJ)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function C(){return{traceId:(0,o.eJ)(),spanId:(0,o.eJ)().substring(16)}}const A=parseFloat("7.114.0"),E=100;class _{constructor(e,t,n){let r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A;this._version=o,t?r=t:(r=new x,r.setClient(e)),n?i=n:(i=new x,i.setClient(e)),this._stack=[{scope:r}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(r){throw this.popScope(),r}return(0,i.Qg)(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.eJ)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,o.eJ)(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.eJ)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=E}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const l={timestamp:(0,a.lu)(),...e},c=i?(0,s.pq)((()=>i(l,t))):l;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=S(this);try{e(this)}finally{S(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return u.T&&s.vF.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(u.T&&!n){this.getClient()?s.vF.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):s.vF.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),g(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=c.U}=n&&n.getOptions()||{},{userAgent:o}=l.OW.navigator||{},a=m({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&g(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e){const t=T().__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.extensions[e].apply(this,r)}u.T&&s.vF.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}function T(){return l.OW.__SENTRY__=l.OW.__SENTRY__||{extensions:{},hub:void 0},l.OW}function S(e){const t=T(),n=I(t);return R(t,e),n}function k(){const e=T();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return D(e)}function P(){return k().getIsolationScope()}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T();return N(e)&&!I(e).isOlderThan(A)||R(e,new _),I(e)}function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=T();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function N(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function I(e){return(0,l.BY)("hub",(()=>new _),e)}function R(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},66561:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var r=n(51293);let i;function o(e){return i?i.get(e):void 0}function a(e){const t=o(e);if(!t)return;const n={};for(const[,[i,o]]of t)n[i]||(n[i]=[]),n[i].push((0,r.Ce)(o));return n}},57435:(e,t,n)=>{"use strict";n.d(t,{E1:()=>s,JD:()=>a,i_:()=>r,sy:()=>i,uT:()=>o});const r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="profile_id"},37054:(e,t,n)=>{"use strict";n.d(t,{k:()=>c,l:()=>l});var r=n(51293),i=n(86393),o=n(1939),a=n(38854),s=n(14835);function l(e,t,n){const o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},l=(0,r.Ce)({environment:o.environment||i.U,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function c(e){const t=(0,o.KU)();if(!t)return{};const n=l((0,s.et)(e).trace_id||"",t,(0,o.o5)()),r=(0,a.z)(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:c,source:u}=r.metadata;null!=c&&(n.sample_rate="".concat(c));const d=(0,s.et)(r);return u&&"url"!==u&&(n.transaction=d.description),n.sampled=String((0,s.pK)(r)),t.emit&&t.emit("createDsc",n),n}},40745:(e,t,n)=>{"use strict";n.d(t,{U:()=>A,p:()=>C});var r=n(35174),i=n(38426),o=n(67853),a=n(14835),s=n(51851),l=n(87436);let c=null;function u(){c=s.OW.onerror,s.OW.onerror=function(e,t,n,r,i){const o={column:r,error:i,line:n,msg:e,url:t};return(0,l.aj)("error",o),!(!c||c.__SENTRY_LOADER__)&&c.apply(this,arguments)},s.OW.onerror.__SENTRY_INSTRUMENTED__=!0}let d=null;function p(){d=s.OW.onunhandledrejection,s.OW.onunhandledrejection=function(e){const t=e;return(0,l.aj)("unhandledrejection",t),!(d&&!d.__SENTRY_LOADER__)||d.apply(this,arguments)},s.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var h=n(35488);let f=!1;function m(){f||(f=!0,function(e){const t="error";(0,l.s5)(t,e),(0,l.AS)(t,u)}(g),function(e){const t="unhandledrejection";(0,l.s5)(t,e),(0,l.AS)(t,p)}(g))}function g(){const e=(0,h.Z7)();if(e){const t="internal_error";i.T&&r.vF.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}g.tag="sentry_tracingErrorCallback";var v=n(86359),y=n(81356),b=n(285);function w(){const e=this.getScope().getSpan();return e?{"sentry-trace":(0,a.Qh)(e)}:{}}function x(e,t){const n=this.getClient(),o=n&&n.getOptions()||{},a=o.instrumenter||"sentry",s=e.instrumenter||"sentry";a!==s&&(i.T&&r.vF.error("A transaction was started with instrumenter=`".concat(s,"`, but the SDK is configured with the `").concat(a,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(a," instrumentation to start transactions.")),e.sampled=!1);let l=new b.Z(e,this);return l=(0,y.T)(l,o,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),l.isRecording()&&l.initSpanRecorder(o._experiments&&o._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",l),l}function C(e,t,n,r,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const l=e.getClient(),c=l&&l.getOptions()||{};let u=new v.zX(t,e,n,r,a,i,s);return u=(0,y.T)(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o}),u.isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function A(){const e=(0,o.EU)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=x),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=w),m())}},86359:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>c,zX:()=>p});var r=n(35174),i=n(22395),o=n(38426),a=n(14835),s=n(88889),l=n(285);const c={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},u=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class d extends s.l{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){var t=this;if(e.spanContext().spanId!==this.transactionSpanId){const n=e.end;e.end=function(){t._popActivity(e.spanContext().spanId);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.apply(e,i)},void 0===(0,a.et)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class p extends l.Z{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.idleTimeout,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.finalTimeout,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:c.heartbeatInterval,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=u[4],this._autoFinishAllowed=!l,s&&(o.T&&r.vF.log("Setting idle transaction on scope. Span ID: ".concat(this.spanContext().spanId)),t.getScope().setSpan(this)),l||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=u[3],this.end())}),this._finalTimeout)}end(e){const t=(0,a.cI)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){o.T&&r.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;(0,a.et)(e).timestamp||(e.setStatus("cancelled"),e.end(t),o.T&&r.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:i}=(0,a.et)(e),s=n&&n<t,l=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&n&&i-n<l;if(o.T){const t=JSON.stringify(e,void 0,2);s?c||r.vF.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):r.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&c})),o.T&&r.vF.log("[Tracing] flushing IdleTransaction")}else o.T&&r.vF.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new d(t,n,this.spanContext().spanId,e),o.T&&r.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e){let{restartOnChildSpanChange:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=u[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(o.T&&r.vF.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=u[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),o.T&&r.vF.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,o.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(o.T&&r.vF.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],o.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,i.zf)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=u[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(o.T&&r.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=u[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){o.T&&r.vF.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},81356:(e,t,n)=>{"use strict";n.d(t,{T:()=>c,v:()=>u});var r=n(35174),i=n(89678),o=n(38426),a=n(57435),s=n(14245),l=n(14835);function c(e,t,n){if(!(0,s.w)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(a.sy,Number(e.sampled)),e;let i;return"function"===typeof t.tracesSampler?(i=t.tracesSampler(n),e.setAttribute(a.sy,Number(i))):void 0!==n.parentSampled?i=n.parentSampled:"undefined"!==typeof t.tracesSampleRate?(i=t.tracesSampleRate,e.setAttribute(a.sy,Number(i))):(i=1,e.setAttribute(a.sy,i)),u(i)?i?(e.sampled=Math.random()<i,e.sampled?(o.T&&r.vF.log("[Tracing] starting ".concat(e.op," transaction - ").concat((0,l.et)(e).description)),e):(o.T&&r.vF.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(i),")")),e)):(o.T&&r.vF.log("[Tracing] Discarding transaction because ".concat("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(o.T&&r.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function u(e){return(0,i.yr)(e)||"number"!==typeof e&&"boolean"!==typeof e?(o.T&&r.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),".")),!1):!(e<0||e>1)||(o.T&&r.vF.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1)}},88889:(e,t,n)=>{"use strict";n.d(t,{L:()=>f,l:()=>h});var r=n(33842),i=n(22395),o=n(35174),a=n(51293),s=n(38426),l=n(66561),c=n(57435),u=n(38854),d=n(14835),p=n(8551);class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=e.traceId||(0,r.eJ)(),this._spanId=e.spanId||(0,r.eJ)().substring(16),this._startTime=e.startTimestamp||(0,i.zf)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[c.JD]:e.origin||"manual",[c.uT]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[c.uT]}set op(e){this.setAttribute(c.uT,e)}get origin(){return this._attributes[c.JD]}set origin(e){this.setAttribute(c.JD,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?d.aO:d.CC}}startChild(e){const t=new f({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=(0,u.z)(this);if(t.transaction=n,s.T&&n){const r=e&&e.op||"< unknown op >",i=(0,d.et)(t).description||"< unknown name >",a=n.spanContext().spanId,s="[Tracing] Starting '".concat(r,"' span on transaction '").concat(i,"' (").concat(a,").");o.vF.log(s),this._logMessage=s}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return(0,p.N8)(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=(0,u.z)(this);if(s.T&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&o.vF.log(e.replace("Starting","Finishing"))}this._endTime=(0,d.cI)(e)}toTraceparent(){return(0,d.Qh)(this)}toContext(){return(0,a.Ce)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,d.kX)(this)}getSpanJSON(){return(0,a.Ce)({data:this._getData(),description:this._name,op:this._attributes[c.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[c.JD],_metrics_summary:(0,l.g)(this),profile_id:this._attributes[c.E1],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}},8551:(e,t,n)=>{"use strict";var r;function i(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}n.d(t,{N8:()=>o}),function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(r||(r={}));function o(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=i(t);"unknown_error"!==n&&e.setStatus(n)}},84316:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>v,Uk:()=>p,Lk:()=>d});var r=n(51293),i=n(67853),o=n(14835),a=n(37054),s=n(1939),l=n(89678);function c(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};try{n=e()}catch(i){throw t(i),r(),i}return function(e,t,n){if((0,l.Qg)(e))return e.then((e=>(n(),e)),(e=>{throw t(e),n(),e}));return n(),e}(n,t,r)}var u=n(14245);function d(e,t){const n=f(e);return(0,i.fx)((()=>(0,s.v4)(e.scope,(r=>{const a=(0,i.BF)(),s=r.getSpan(),l=e.onlyIfParent&&!s?void 0:h(a,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return c((()=>t(l)),(()=>{if(l){const{status:e}=(0,o.et)(l);e&&"ok"!==e||l.setStatus("internal_error")}}),(()=>l&&l.end()))}))))}function p(e){if(!(0,u.w)())return;const t=f(e),n=(0,i.BF)(),r=e.scope?e.scope.getSpan():(0,s.o5)().getSpan();if(e.onlyIfParent&&!r)return;const o=(e.scope||(0,s.o5)()).clone();return h(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function h(e,t){let{parentSpan:n,spanContext:s,forceTransaction:l,scope:c}=t;if(!(0,u.w)())return;const d=(0,i.rm)();let p;if(n&&!l)p=n.startChild(s);else if(n){const t=(0,a.k)(n),{traceId:r,spanId:i}=n.spanContext(),l=(0,o.pK)(n);p=e.startTransaction({traceId:r,parentSpanId:i,parentSampled:l,...s,metadata:{dynamicSamplingContext:t,...s.metadata}})}else{const{traceId:t,dsc:n,parentSpanId:r,sampled:i}={...d.getPropagationContext(),...c.getPropagationContext()};p=e.startTransaction({traceId:t,parentSpanId:r,parentSampled:i,...s,metadata:{dynamicSamplingContext:n,...s.metadata}})}return c.setSpan(p),function(e,t,n){e&&((0,r.my)(e,g,n),(0,r.my)(e,m,t))}(p,c,d),p}function f(e){if(e.startTime){const t={...e};return t.startTimestamp=(0,o.cI)(e.startTime),delete t.startTime,t}return e}const m="_sentryScope",g="_sentryIsolationScope";function v(e){return{scope:e[m],isolationScope:e[g]}}},285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51293),i=n(35174),o=n(38426),a=n(67853),s=n(66561),l=n(57435),c=n(14835),u=n(37054),d=n(88889),p=n(84316);class h extends d.L{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,a.BF)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[l.i_]&&{source:this._attributes[l.i_]},...this._attributes[l.sy]&&{sampleRate:this._attributes[l.sy]}}}set metadata(e){this._metadata=e}setName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.setAttribute(l.i_,t)}updateName(e){return this._name=e,this}initSpanRecorder(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new d.l(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=(0,c.cI)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return(0,r.Ce)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,u.k)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(o.T&&i.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return o.T&&i.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&(0,c.et)(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>(0,c.et)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:a,isolationScope:l}=(0,p.Lb)(this),{metadata:d}=this,{source:h}=d,f={contexts:{...this._contexts,trace:(0,c.kX)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...d,capturedSpanScope:a,capturedSpanIsolationScope:l,...(0,r.Ce)({dynamicSamplingContext:(0,u.k)(this)})},_metrics_summary:(0,s.g)(this),...h&&{transaction_info:{source:h}}};return Object.keys(this._measurements).length>0&&(o.T&&i.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),o.T&&i.vF.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this._name,".")),f}}},35488:(e,t,n)=>{"use strict";n.d(t,{Z7:()=>i});var r=n(67853);function i(e){return(e||(0,r.BF)()).getScope().getTransaction()}},38854:(e,t,n)=>{"use strict";function r(e){return e.transaction}n.d(t,{z:()=>r})},14245:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(1939);function i(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,r.KU)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},14835:(e,t,n)=>{"use strict";n.d(t,{CC:()=>a,Qh:()=>c,aO:()=>s,cI:()=>u,et:()=>p,kX:()=>l,pK:()=>h});var r=n(51293),i=n(46106),o=n(22395);const a=0,s=1;function l(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:l,origin:c}=p(e);return(0,r.Ce)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:l,trace_id:n,origin:c})}function c(e){const{traceId:t,spanId:n}=e.spanContext(),r=h(e);return(0,i.TC)(t,n,r)}function u(e){return"number"===typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,o.zf)()}function d(e){return e>9999999999?e/1e3:e}function p(e){return function(e){return"function"===typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"===typeof e.toJSON?e.toJSON():{}}function h(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},67118:(e,t,n)=>{"use strict";n.d(t,{De:()=>d,hF:()=>a,yD:()=>u});var r=n(94150),i=n(89678),o=n(35174);const a="baggage",s="sentry-",l=/^sentry-/,c=8192;function u(e){if(!(0,i.Kg)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=p(t);for(const r of Object.keys(n))e[r]=n[r];return e}),{});else{if(!e)return;t=p(e)}const n=Object.entries(t).reduce(((e,t)=>{let[n,r]=t;if(n.match(l)){e[n.slice(s.length)]=r}return e}),{});return Object.keys(n).length>0?n:void 0}function d(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,t,n)=>{let[i,a]=t;const s="".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(a)),l=0===n?s:"".concat(e,",").concat(s);return l.length>c?(r.T&&o.vF.warn("Not adding key: ".concat(i," with val: ").concat(a," to baggage header due to exceeding baggage size limits.")),e):l}),"")}(Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return r&&(e["".concat(s).concat(n)]=r),e}),{}))}function p(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{let[n,r]=t;return e[n]=r,e}),{})}},94150:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},87436:(e,t,n)=>{"use strict";n.d(t,{AS:()=>c,aj:()=>u,s5:()=>l});var r=n(94150),i=n(35174),o=n(82243);const a={},s={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function c(e,t){s[e]||(t(),s[e]=!0)}function u(e,t){const n=e&&a[e];if(n)for(const a of n)try{a(t)}catch(s){r.T&&i.vF.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,o.qQ)(a),"\nError:"),s)}}},89678:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>o,Qd:()=>a,Qg:()=>l,gd:()=>s,tH:()=>u,yr:()=>c});const r=Object.prototype.toString;function i(e,t){return r.call(e)==="[object ".concat(t,"]")}function o(e){return i(e,"String")}function a(e){return i(e,"Object")}function s(e){return i(e,"RegExp")}function l(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function c(e){return"number"===typeof e&&e!==e}function u(e,t){try{return e instanceof t}catch(n){return!1}}},35174:(e,t,n)=>{"use strict";n.d(t,{pq:()=>s,vF:()=>l});var r=n(94150),i=n(51851);const o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.OW))return e();const t=i.OW.console,n={},r=Object.keys(a);r.forEach((e=>{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const l=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.T?o.forEach((n=>{t[n]=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e&&s((()=>{i.OW.console[n]("".concat("Sentry Logger ","[").concat(n,"]:"),...r)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}()},33842:(e,t,n)=>{"use strict";n.d(t,{eJ:()=>i,k9:()=>o});var r=n(51851);function i(){const e=r.OW,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(i){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function o(e){return Array.isArray(e)?e:[e]}},65356:(e,t,n)=>{"use strict";function r(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,t){return e.require(t)}function o(t){let n;try{n=i(e,t)}catch(r){}try{const{cwd:r}=i(e,"process");n=i(e,"".concat(r(),"/node_modules/").concat(t))}catch(r){}return n}n.d(t,{fj:()=>i,wD:()=>r,Vw:()=>o}),e=n.hmd(e)},51293:(e,t,n)=>{"use strict";n.d(t,{Ce:()=>l,GS:()=>a,my:()=>s});var r=n(94150),i=n(89678),o=n(35174);function a(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}catch(n){}}(i,r),e[t]=i}function s(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(i){r.T&&o.vF.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function l(e){return c(e,new Map)}function c(e,t){if(function(e){if(!(0,i.Qd)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=c(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(c(e,t))})),r}return e}},82243:(e,t,n)=>{"use strict";n.d(t,{qQ:()=>i});const r="<anonymous>";function i(e){try{return e&&"function"===typeof e&&e.name||r}catch(t){return r}}},22395:(e,t,n)=>{"use strict";n.d(t,{k3:()=>l,lu:()=>o,zf:()=>a});var r=n(51851);const i=1e3;function o(){return Date.now()/i}const a=function(){const{performance:e}=r.OW;if(!e||!e.now)return o;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/i}();let s;const l=(()=>{const{performance:e}=r.OW;if(!e||!e.now)return void(s="none");const t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,l=e.timing&&e.timing.navigationStart,c="number"===typeof l?Math.abs(l+n-i):t;return a||c<t?o<=c?(s="timeOrigin",e.timeOrigin):(s="navigationStart",l):(s="dateNow",i)})()},46106:(e,t,n)=>{"use strict";n.d(t,{TC:()=>l,kM:()=>s});var r=n(67118),i=n(33842);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(o);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function s(e,t){const n=a(e),o=(0,r.yD)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,i.eJ)(),parentSpanId:l||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.eJ)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.eJ)().substring(16),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}},51851:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{BY:()=>a,OW:()=>i,VZ:()=>o});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(e,t,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},61830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(386);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function o(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),u(e/4294967296>>>0,t,n),u(e>>>0,t,n+4),t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=l,t.readUint32LE=c,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=a(e,t),r=a(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=l(e,t);return 4294967296*l(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=p,t.writeInt64BE=p,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o<n+e/8;o++)r+=t[o]*i,i*=256;return r},t.writeUintBE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var o=1,a=e/8+i-1;a>=i;a--)n[a]=t/o&255,o*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a<i+e/8;a++)n[a]=t/o&255,o*=256;return n},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e),t},t.writeFloat32LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e,!0),t},t.writeFloat64BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e),t},t.writeFloat64LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e,!0),t}},37024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61830),i=n(2470),o=20;function a(e,t,n){for(var i=1634760805,a=857760878,s=2036477234,l=1797285236,c=n[3]<<24|n[2]<<16|n[1]<<8|n[0],u=n[7]<<24|n[6]<<16|n[5]<<8|n[4],d=n[11]<<24|n[10]<<16|n[9]<<8|n[8],p=n[15]<<24|n[14]<<16|n[13]<<8|n[12],h=n[19]<<24|n[18]<<16|n[17]<<8|n[16],f=n[23]<<24|n[22]<<16|n[21]<<8|n[20],m=n[27]<<24|n[26]<<16|n[25]<<8|n[24],g=n[31]<<24|n[30]<<16|n[29]<<8|n[28],v=t[3]<<24|t[2]<<16|t[1]<<8|t[0],y=t[7]<<24|t[6]<<16|t[5]<<8|t[4],b=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],x=i,C=a,A=s,E=l,_=c,T=u,S=d,k=p,P=h,D=f,F=m,N=g,I=v,R=y,O=b,j=w,M=0;M<o;M+=2)_=(_^=P=P+(I=(I^=x=x+_|0)>>>16|I<<16)|0)>>>20|_<<12,T=(T^=D=D+(R=(R^=C=C+T|0)>>>16|R<<16)|0)>>>20|T<<12,S=(S^=F=F+(O=(O^=A=A+S|0)>>>16|O<<16)|0)>>>20|S<<12,k=(k^=N=N+(j=(j^=E=E+k|0)>>>16|j<<16)|0)>>>20|k<<12,S=(S^=F=F+(O=(O^=A=A+S|0)>>>24|O<<8)|0)>>>25|S<<7,k=(k^=N=N+(j=(j^=E=E+k|0)>>>24|j<<8)|0)>>>25|k<<7,T=(T^=D=D+(R=(R^=C=C+T|0)>>>24|R<<8)|0)>>>25|T<<7,_=(_^=P=P+(I=(I^=x=x+_|0)>>>24|I<<8)|0)>>>25|_<<7,T=(T^=F=F+(j=(j^=x=x+T|0)>>>16|j<<16)|0)>>>20|T<<12,S=(S^=N=N+(I=(I^=C=C+S|0)>>>16|I<<16)|0)>>>20|S<<12,k=(k^=P=P+(R=(R^=A=A+k|0)>>>16|R<<16)|0)>>>20|k<<12,_=(_^=D=D+(O=(O^=E=E+_|0)>>>16|O<<16)|0)>>>20|_<<12,k=(k^=P=P+(R=(R^=A=A+k|0)>>>24|R<<8)|0)>>>25|k<<7,_=(_^=D=D+(O=(O^=E=E+_|0)>>>24|O<<8)|0)>>>25|_<<7,S=(S^=N=N+(I=(I^=C=C+S|0)>>>24|I<<8)|0)>>>25|S<<7,T=(T^=F=F+(j=(j^=x=x+T|0)>>>24|j<<8)|0)>>>25|T<<7;r.writeUint32LE(x+i|0,e,0),r.writeUint32LE(C+a|0,e,4),r.writeUint32LE(A+s|0,e,8),r.writeUint32LE(E+l|0,e,12),r.writeUint32LE(_+c|0,e,16),r.writeUint32LE(T+u|0,e,20),r.writeUint32LE(S+d|0,e,24),r.writeUint32LE(k+p|0,e,28),r.writeUint32LE(P+h|0,e,32),r.writeUint32LE(D+f|0,e,36),r.writeUint32LE(F+m|0,e,40),r.writeUint32LE(N+g|0,e,44),r.writeUint32LE(I+v|0,e,48),r.writeUint32LE(R+y|0,e,52),r.writeUint32LE(O+b|0,e,56),r.writeUint32LE(j+w|0,e,60)}function s(e,t,n,r,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length<n.length)throw new Error("ChaCha: destination is shorter than source");var s,c;if(0===o){if(8!==t.length&&12!==t.length)throw new Error("ChaCha nonce must be 8 or 12 bytes");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw new Error("ChaCha nonce with counter must be 16 bytes");s=t,c=o}for(var u=new Uint8Array(64),d=0;d<n.length;d+=64){a(u,s,e);for(var p=d;p<d+64&&p<n.length;p++)r[p]=n[p]^u[p-d];l(s,0,c)}return i.wipe(u),0===o&&i.wipe(s),r}function l(e,t,n){for(var r=1;n--;)r=r+(255&e[t])|0,e[t]=255&r,r>>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=s,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),s(e,t,n,n,r)}},80950:(e,t,n)=>{"use strict";var r=n(37024),i=n(68658),o=n(2470),a=n(61830),s=n(6094);t.J4=32,t.PX=12,t.iW=16;var l=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var l,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(c);return r.streamXOR(this._key,a,t,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),o.wipe(a),l},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a=new Uint8Array(16);a.set(e,a.length-e.length);var l=new Uint8Array(32);r.stream(this._key,a,l,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,l,t.subarray(0,t.length-this.tagLength),n),!s.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var u,d=t.length-this.tagLength;if(i){if(i.length!==d)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(d);return r.streamXOR(this._key,a,t.subarray(0,t.length-this.tagLength),u,4),o.wipe(a),u},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,n,r){var s=new i.Poly1305(t);r&&(s.update(r),r.length%16>0&&s.update(l.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(l.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),o.wipe(u),o.wipe(c)},e}();t.g6=c},6094:(e,t)=>{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r<e.length;r++)n|=e[r]^t[r];return 1&n-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},18426:(e,t,n)=>{"use strict";t._S=t.K=t.TP=t.wE=t.Ee=void 0;const r=n(31886),i=n(22528),o=n(2470);function a(e){const t=new Float64Array(16);if(e)for(let n=0;n<e.length;n++)t[n]=e[n];return t}t.Ee=64,t.wE=64,t.TP=32;new Uint8Array(32)[0]=9;const s=a(),l=a([1]),c=a([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=a([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=a([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),p=a([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=a([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t){for(let n=0;n<16;n++)e[n]=0|t[n]}function m(e){let t=1;for(let n=0;n<16;n++){let r=e[n]+t+65535;t=Math.floor(r/65536),e[n]=r-65536*t}e[0]+=t-1+37*(t-1)}function g(e,t,n){const r=~(n-1);for(let i=0;i<16;i++){const n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function v(e,t){const n=a(),r=a();for(let i=0;i<16;i++)r[i]=t[i];m(r),m(r),m(r);for(let i=0;i<2;i++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,g(r,n,1-e)}for(let i=0;i<16;i++)e[2*i]=255&r[i],e[2*i+1]=r[i]>>8}function y(e,t){let n=0;for(let r=0;r<32;r++)n|=e[r]^t[r];return(1&n-1>>>8)-1}function b(e,t){const n=new Uint8Array(32),r=new Uint8Array(32);return v(n,e),v(r,t),y(n,r)}function w(e){const t=new Uint8Array(32);return v(t,e),1&t[0]}function x(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function C(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function A(e,t,n){let r,i,o=0,a=0,s=0,l=0,c=0,u=0,d=0,p=0,h=0,f=0,m=0,g=0,v=0,y=0,b=0,w=0,x=0,C=0,A=0,E=0,_=0,T=0,S=0,k=0,P=0,D=0,F=0,N=0,I=0,R=0,O=0,j=n[0],M=n[1],L=n[2],B=n[3],U=n[4],V=n[5],H=n[6],z=n[7],W=n[8],q=n[9],G=n[10],Y=n[11],K=n[12],Q=n[13],X=n[14],Z=n[15];r=t[0],o+=r*j,a+=r*M,s+=r*L,l+=r*B,c+=r*U,u+=r*V,d+=r*H,p+=r*z,h+=r*W,f+=r*q,m+=r*G,g+=r*Y,v+=r*K,y+=r*Q,b+=r*X,w+=r*Z,r=t[1],a+=r*j,s+=r*M,l+=r*L,c+=r*B,u+=r*U,d+=r*V,p+=r*H,h+=r*z,f+=r*W,m+=r*q,g+=r*G,v+=r*Y,y+=r*K,b+=r*Q,w+=r*X,x+=r*Z,r=t[2],s+=r*j,l+=r*M,c+=r*L,u+=r*B,d+=r*U,p+=r*V,h+=r*H,f+=r*z,m+=r*W,g+=r*q,v+=r*G,y+=r*Y,b+=r*K,w+=r*Q,x+=r*X,C+=r*Z,r=t[3],l+=r*j,c+=r*M,u+=r*L,d+=r*B,p+=r*U,h+=r*V,f+=r*H,m+=r*z,g+=r*W,v+=r*q,y+=r*G,b+=r*Y,w+=r*K,x+=r*Q,C+=r*X,A+=r*Z,r=t[4],c+=r*j,u+=r*M,d+=r*L,p+=r*B,h+=r*U,f+=r*V,m+=r*H,g+=r*z,v+=r*W,y+=r*q,b+=r*G,w+=r*Y,x+=r*K,C+=r*Q,A+=r*X,E+=r*Z,r=t[5],u+=r*j,d+=r*M,p+=r*L,h+=r*B,f+=r*U,m+=r*V,g+=r*H,v+=r*z,y+=r*W,b+=r*q,w+=r*G,x+=r*Y,C+=r*K,A+=r*Q,E+=r*X,_+=r*Z,r=t[6],d+=r*j,p+=r*M,h+=r*L,f+=r*B,m+=r*U,g+=r*V,v+=r*H,y+=r*z,b+=r*W,w+=r*q,x+=r*G,C+=r*Y,A+=r*K,E+=r*Q,_+=r*X,T+=r*Z,r=t[7],p+=r*j,h+=r*M,f+=r*L,m+=r*B,g+=r*U,v+=r*V,y+=r*H,b+=r*z,w+=r*W,x+=r*q,C+=r*G,A+=r*Y,E+=r*K,_+=r*Q,T+=r*X,S+=r*Z,r=t[8],h+=r*j,f+=r*M,m+=r*L,g+=r*B,v+=r*U,y+=r*V,b+=r*H,w+=r*z,x+=r*W,C+=r*q,A+=r*G,E+=r*Y,_+=r*K,T+=r*Q,S+=r*X,k+=r*Z,r=t[9],f+=r*j,m+=r*M,g+=r*L,v+=r*B,y+=r*U,b+=r*V,w+=r*H,x+=r*z,C+=r*W,A+=r*q,E+=r*G,_+=r*Y,T+=r*K,S+=r*Q,k+=r*X,P+=r*Z,r=t[10],m+=r*j,g+=r*M,v+=r*L,y+=r*B,b+=r*U,w+=r*V,x+=r*H,C+=r*z,A+=r*W,E+=r*q,_+=r*G,T+=r*Y,S+=r*K,k+=r*Q,P+=r*X,D+=r*Z,r=t[11],g+=r*j,v+=r*M,y+=r*L,b+=r*B,w+=r*U,x+=r*V,C+=r*H,A+=r*z,E+=r*W,_+=r*q,T+=r*G,S+=r*Y,k+=r*K,P+=r*Q,D+=r*X,F+=r*Z,r=t[12],v+=r*j,y+=r*M,b+=r*L,w+=r*B,x+=r*U,C+=r*V,A+=r*H,E+=r*z,_+=r*W,T+=r*q,S+=r*G,k+=r*Y,P+=r*K,D+=r*Q,F+=r*X,N+=r*Z,r=t[13],y+=r*j,b+=r*M,w+=r*L,x+=r*B,C+=r*U,A+=r*V,E+=r*H,_+=r*z,T+=r*W,S+=r*q,k+=r*G,P+=r*Y,D+=r*K,F+=r*Q,N+=r*X,I+=r*Z,r=t[14],b+=r*j,w+=r*M,x+=r*L,C+=r*B,A+=r*U,E+=r*V,_+=r*H,T+=r*z,S+=r*W,k+=r*q,P+=r*G,D+=r*Y,F+=r*K,N+=r*Q,I+=r*X,R+=r*Z,r=t[15],w+=r*j,x+=r*M,C+=r*L,A+=r*B,E+=r*U,_+=r*V,T+=r*H,S+=r*z,k+=r*W,P+=r*q,D+=r*G,F+=r*Y,N+=r*K,I+=r*Q,R+=r*X,O+=r*Z,o+=38*x,a+=38*C,s+=38*A,l+=38*E,c+=38*_,u+=38*T,d+=38*S,p+=38*k,h+=38*P,f+=38*D,m+=38*F,g+=38*N,v+=38*I,y+=38*R,b+=38*O,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=p,e[8]=h,e[9]=f,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function E(e,t){A(e,t,t)}function _(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)E(n,n),2!==r&&4!==r&&A(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}function T(e,t){const n=a(),r=a(),i=a(),o=a(),s=a(),l=a(),c=a(),d=a(),p=a();C(n,e[1],e[0]),C(p,t[1],t[0]),A(n,n,p),x(r,e[0],e[1]),x(p,t[0],t[1]),A(r,r,p),A(i,e[3],t[3]),A(i,i,u),A(o,e[2],t[2]),x(o,o,o),C(s,r,n),C(l,o,i),x(c,o,i),x(d,r,n),A(e[0],s,l),A(e[1],d,c),A(e[2],c,l),A(e[3],s,d)}function S(e,t,n){for(let r=0;r<4;r++)g(e[r],t[r],n)}function k(e,t){const n=a(),r=a(),i=a();_(i,t[2]),A(n,t[0],i),A(r,t[1],i),v(e,r),e[31]^=w(n)<<7}function P(e,t,n){f(e[0],s),f(e[1],l),f(e[2],l),f(e[3],s);for(let r=255;r>=0;--r){const i=n[r/8|0]>>(7&r)&1;S(e,t,i),T(t,e),T(e,e),S(e,t,i)}}function D(e,t){const n=[a(),a(),a(),a()];f(n[0],d),f(n[1],p),f(n[2],l),A(n[3],d,p),P(e,n,t)}function F(e){if(e.length!==t.TP)throw new Error("ed25519: seed must be ".concat(t.TP," bytes"));const n=(0,i.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const r=new Uint8Array(32),o=[a(),a(),a(),a()];D(o,n),k(r,o);const s=new Uint8Array(64);return s.set(e),s.set(r,32),{publicKey:r,secretKey:s}}t.K=F;const N=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function I(e,t){let n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*N[i-(r-32)],n=Math.floor((t[i]+128)/256),t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*N[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*N[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function R(e){const t=new Float64Array(64);for(let n=0;n<64;n++)t[n]=e[n];for(let n=0;n<64;n++)e[n]=0;I(e,t)}function O(e,t){const n=a(),r=a(),i=a(),o=a(),u=a(),d=a(),p=a();return f(e[2],l),function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(e[1],t),E(i,e[1]),A(o,i,c),C(i,i,e[2]),x(o,e[2],o),E(u,o),E(d,u),A(p,d,u),A(n,p,i),A(n,n,o),function(e,t){const n=a();let r;for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)E(n,n),1!==r&&A(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}(n,n),A(n,n,i),A(n,n,o),A(n,n,o),A(e[0],n,o),E(r,e[0]),A(r,r,o),b(r,i)&&A(e[0],e[0],h),E(r,e[0]),A(r,r,o),b(r,i)?-1:(w(e[0])===t[31]>>7&&C(e[0],s,e[0]),A(e[3],e[0],e[1]),0)}t._S=function(e,t){const n=new Float64Array(64),r=[a(),a(),a(),a()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const l=new i.SHA512;l.update(s.subarray(32)),l.update(t);const c=l.digest();l.clean(),R(c),D(r,c),k(s,r),l.reset(),l.update(s.subarray(0,32)),l.update(e.subarray(32)),l.update(t);const u=l.digest();R(u);for(let i=0;i<32;i++)n[i]=c[i];for(let i=0;i<32;i++)for(let e=0;e<32;e++)n[i+e]+=u[i]*o[e];return I(s.subarray(32),n),s}},62304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},43134:(e,t,n)=>{"use strict";var r=n(7510),i=n(2470),o=function(){function e(e,t,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n<t.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[n]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.i=o},7510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62304),i=n(6094),o=n(2470),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),r.isSerializableHash(this._inner)&&r.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(n)}return e.prototype.reset=function(){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){r.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),r.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,n){var r=new a(e,t);r.update(n);var i=r.digest();return r.clean(),i},t.equal=i.equal},386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},68658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6094),i=n(2470);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var l=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|l<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(l>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],l=this._h[4],c=this._h[5],u=this._h[6],d=this._h[7],p=this._h[8],h=this._h[9],f=this._r[0],m=this._r[1],g=this._r[2],v=this._r[3],y=this._r[4],b=this._r[5],w=this._r[6],x=this._r[7],C=this._r[8],A=this._r[9];n>=16;){var E=e[t+0]|e[t+1]<<8;i+=8191&E;var _=e[t+2]|e[t+3]<<8;o+=8191&(E>>>13|_<<3);var T=e[t+4]|e[t+5]<<8;a+=8191&(_>>>10|T<<6);var S=e[t+6]|e[t+7]<<8;s+=8191&(T>>>7|S<<9);var k=e[t+8]|e[t+9]<<8;l+=8191&(S>>>4|k<<12),c+=k>>>1&8191;var P=e[t+10]|e[t+11]<<8;u+=8191&(k>>>14|P<<2);var D=e[t+12]|e[t+13]<<8;d+=8191&(P>>>11|D<<5);var F=e[t+14]|e[t+15]<<8,N=0,I=N;I+=i*f,I+=o*(5*A),I+=a*(5*C),I+=s*(5*x),N=(I+=l*(5*w))>>>13,I&=8191,I+=c*(5*b),I+=u*(5*y),I+=d*(5*v),I+=(p+=8191&(D>>>8|F<<8))*(5*g);var R=N+=(I+=(h+=F>>>5|r)*(5*m))>>>13;R+=i*m,R+=o*f,R+=a*(5*A),R+=s*(5*C),N=(R+=l*(5*x))>>>13,R&=8191,R+=c*(5*w),R+=u*(5*b),R+=d*(5*y),R+=p*(5*v),N+=(R+=h*(5*g))>>>13,R&=8191;var O=N;O+=i*g,O+=o*m,O+=a*f,O+=s*(5*A),N=(O+=l*(5*C))>>>13,O&=8191,O+=c*(5*x),O+=u*(5*w),O+=d*(5*b),O+=p*(5*y);var j=N+=(O+=h*(5*v))>>>13;j+=i*v,j+=o*g,j+=a*m,j+=s*f,N=(j+=l*(5*A))>>>13,j&=8191,j+=c*(5*C),j+=u*(5*x),j+=d*(5*w),j+=p*(5*b);var M=N+=(j+=h*(5*y))>>>13;M+=i*y,M+=o*v,M+=a*g,M+=s*m,N=(M+=l*f)>>>13,M&=8191,M+=c*(5*A),M+=u*(5*C),M+=d*(5*x),M+=p*(5*w);var L=N+=(M+=h*(5*b))>>>13;L+=i*b,L+=o*y,L+=a*v,L+=s*g,N=(L+=l*m)>>>13,L&=8191,L+=c*f,L+=u*(5*A),L+=d*(5*C),L+=p*(5*x);var B=N+=(L+=h*(5*w))>>>13;B+=i*w,B+=o*b,B+=a*y,B+=s*v,N=(B+=l*g)>>>13,B&=8191,B+=c*m,B+=u*f,B+=d*(5*A),B+=p*(5*C);var U=N+=(B+=h*(5*x))>>>13;U+=i*x,U+=o*w,U+=a*b,U+=s*y,N=(U+=l*v)>>>13,U&=8191,U+=c*g,U+=u*m,U+=d*f,U+=p*(5*A);var V=N+=(U+=h*(5*C))>>>13;V+=i*C,V+=o*x,V+=a*w,V+=s*b,N=(V+=l*y)>>>13,V&=8191,V+=c*v,V+=u*g,V+=d*m,V+=p*f;var H=N+=(V+=h*(5*A))>>>13;H+=i*A,H+=o*C,H+=a*x,H+=s*w,N=(H+=l*b)>>>13,H&=8191,H+=c*y,H+=u*v,H+=d*g,H+=p*m,i=I=8191&(N=(N=((N+=(H+=h*f)>>>13)<<2)+N|0)+(I&=8191)|0),o=R+=N>>>=13,a=O&=8191,s=j&=8191,l=M&=8191,c=L&=8191,u=B&=8191,d=U&=8191,p=V&=8191,h=H&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=l,this._h[5]=c,this._h[6]=u,this._h[7]=d,this._h[8]=p,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[n+i];if(r-=t,n+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(r>=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;i<r;i++)this._buffer[this._leftover+i]=e[n+i];this._leftover+=r}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=o,t.oneTimeAuth=function(e,t){var n=new o(e);n.update(t);var r=n.digest();return n.clean(),r},t.equal=function(e,n){return e.length===t.DIGEST_LENGTH&&n.length===t.DIGEST_LENGTH&&r.equal(e,n)}},31886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(18874),i=n(61830),o=n(2470);function a(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource).randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(){const e=a(4,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource),n=(0,i.readUint32LE)(e);return(0,o.wipe)(e),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const l=n.length,c=256-256%l;for(;e>0;){const t=a(Math.ceil(256*e/c),r);for(let r=0;r<t.length&&e>0;r++){const o=t[r];o<c&&(i+=n.charAt(o%l),e--)}(0,o.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;return l(Math.ceil(e/(Math.log(n.length)/Math.LN2)),n,r)}},36700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let n=0;n<t.length;n+=65536)this._crypto.getRandomValues(t.subarray(n,n+Math.min(t.length-n,65536)));return t}}},6443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const r=n(2470);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(45423);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let r=0;r<n.length;r++)n[r]=t[r];return(0,r.wipe)(t),n}}},18874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const r=n(36700),i=n(6443);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},85758:(e,t,n)=>{"use strict";var r=n(61830),i=n(2470);t.On=32,t.cS=64;var o=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%64<56?64:128;this._buffer[n]=128;for(var l=n+1;l<a-8;l++)this._buffer[l]=0;r.writeUint32BE(i,this._buffer,a-8),r.writeUint32BE(o,this._buffer,a-4),s(this._temp,this._state,this._buffer,0,a),this._finished=!0}for(l=0;l<this.digestLength/4;l++)r.writeUint32BE(this._state[l],e,4*l);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.aD=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,i,o){for(;o>=64;){for(var s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],p=t[5],h=t[6],f=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=r.readUint32BE(n,g)}for(m=16;m<64;m++){var v=e[m-2],y=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,b=((v=e[m-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[m]=(y+e[m-7]|0)+(b+e[m-16]|0)}for(m=0;m<64;m++){y=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&h)|0)+(f+(a[m]+e[m]|0)|0)|0,b=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;f=h,h=p,p=d,d=u+y|0,u=c,c=l,l=s,s=y+b|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=p,t[6]+=h,t[7]+=f,i+=64,o-=64}return i}t.tW=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},22528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61830),i=n(2470);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,n){if(void 0===n&&(n=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&n>0;)this._buffer[this._bufferLength++]=e[r++],n--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=e[r++],n--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%128<112?128:256;this._buffer[n]=128;for(var l=n+1;l<a-8;l++)this._buffer[l]=0;r.writeUint32BE(i,this._buffer,a-8),r.writeUint32BE(o,this._buffer,a-4),s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,a),this._finished=!0}for(l=0;l<this.digestLength/8;l++)r.writeUint32BE(this._stateHi[l],e,8*l),r.writeUint32BE(this._stateLo[l],e,8*l+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,n,i,o,s,l){for(var c,u,d,p,h,f,m,g,v=n[0],y=n[1],b=n[2],w=n[3],x=n[4],C=n[5],A=n[6],E=n[7],_=i[0],T=i[1],S=i[2],k=i[3],P=i[4],D=i[5],F=i[6],N=i[7];l>=128;){for(var I=0;I<16;I++){var R=8*I+s;e[I]=r.readUint32BE(o,R),t[I]=r.readUint32BE(o,R+4)}for(I=0;I<80;I++){var O,j,M=v,L=y,B=b,U=w,V=x,H=C,z=A,W=_,q=T,G=S,Y=k,K=P,Q=D,X=F;if(h=65535&(u=N),f=u>>>16,m=65535&(c=E),g=c>>>16,h+=65535&(u=(P>>>14|x<<18)^(P>>>18|x<<14)^(x>>>9|P<<23)),f+=u>>>16,m+=65535&(c=(x>>>14|P<<18)^(x>>>18|P<<14)^(P>>>9|x<<23)),g+=c>>>16,h+=65535&(u=P&D^~P&F),f+=u>>>16,m+=65535&(c=x&C^~x&A),g+=c>>>16,c=a[2*I],h+=65535&(u=a[2*I+1]),f+=u>>>16,m+=65535&c,g+=c>>>16,c=e[I%16],f+=(u=t[I%16])>>>16,m+=65535&c,g+=c>>>16,m+=(f+=(h+=65535&u)>>>16)>>>16,h=65535&(u=p=65535&h|f<<16),f=u>>>16,m=65535&(c=d=65535&m|(g+=m>>>16)<<16),g=c>>>16,h+=65535&(u=(_>>>28|v<<4)^(v>>>2|_<<30)^(v>>>7|_<<25)),f+=u>>>16,m+=65535&(c=(v>>>28|_<<4)^(_>>>2|v<<30)^(_>>>7|v<<25)),g+=c>>>16,f+=(u=_&T^_&S^T&S)>>>16,m+=65535&(c=v&y^v&b^y&b),g+=c>>>16,O=65535&(m+=(f+=(h+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,j=65535&h|f<<16,h=65535&(u=Y),f=u>>>16,m=65535&(c=U),g=c>>>16,f+=(u=p)>>>16,m+=65535&(c=d),g+=c>>>16,y=M,b=L,w=B,x=U=65535&(m+=(f+=(h+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,C=V,A=H,E=z,v=O,T=W,S=q,k=G,P=Y=65535&h|f<<16,D=K,F=Q,N=X,_=j,I%16===15)for(R=0;R<16;R++)c=e[R],h=65535&(u=t[R]),f=u>>>16,m=65535&c,g=c>>>16,c=e[(R+9)%16],h+=65535&(u=t[(R+9)%16]),f+=u>>>16,m+=65535&c,g+=c>>>16,d=e[(R+1)%16],h+=65535&(u=((p=t[(R+1)%16])>>>1|d<<31)^(p>>>8|d<<24)^(p>>>7|d<<25)),f+=u>>>16,m+=65535&(c=(d>>>1|p<<31)^(d>>>8|p<<24)^d>>>7),g+=c>>>16,d=e[(R+14)%16],f+=(u=((p=t[(R+14)%16])>>>19|d<<13)^(d>>>29|p<<3)^(p>>>6|d<<26))>>>16,m+=65535&(c=(d>>>19|p<<13)^(p>>>29|d<<3)^d>>>6),g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,e[R]=65535&m|g<<16,t[R]=65535&h|f<<16}h=65535&(u=_),f=u>>>16,m=65535&(c=v),g=c>>>16,c=n[0],f+=(u=i[0])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[0]=v=65535&m|g<<16,i[0]=_=65535&h|f<<16,h=65535&(u=T),f=u>>>16,m=65535&(c=y),g=c>>>16,c=n[1],f+=(u=i[1])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[1]=y=65535&m|g<<16,i[1]=T=65535&h|f<<16,h=65535&(u=S),f=u>>>16,m=65535&(c=b),g=c>>>16,c=n[2],f+=(u=i[2])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[2]=b=65535&m|g<<16,i[2]=S=65535&h|f<<16,h=65535&(u=k),f=u>>>16,m=65535&(c=w),g=c>>>16,c=n[3],f+=(u=i[3])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[3]=w=65535&m|g<<16,i[3]=k=65535&h|f<<16,h=65535&(u=P),f=u>>>16,m=65535&(c=x),g=c>>>16,c=n[4],f+=(u=i[4])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[4]=x=65535&m|g<<16,i[4]=P=65535&h|f<<16,h=65535&(u=D),f=u>>>16,m=65535&(c=C),g=c>>>16,c=n[5],f+=(u=i[5])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[5]=C=65535&m|g<<16,i[5]=D=65535&h|f<<16,h=65535&(u=F),f=u>>>16,m=65535&(c=A),g=c>>>16,c=n[6],f+=(u=i[6])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[6]=A=65535&m|g<<16,i[6]=F=65535&h|f<<16,h=65535&(u=N),f=u>>>16,m=65535&(c=E),g=c>>>16,c=n[7],f+=(u=i[7])>>>16,m+=65535&c,g+=c>>>16,g+=(m+=(f+=(h+=65535&u)>>>16)>>>16)>>>16,n[7]=E=65535&m|g<<16,i[7]=N=65535&h|f<<16,s+=128,l-=128}return s}t.hash=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},2470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},78144:(e,t,n)=>{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;const r=n(31886),i=n(2470);function o(e){const t=new Float64Array(16);if(e)for(let n=0;n<e.length;n++)t[n]=e[n];return t}t.Xx=32,t.wE=32;const a=new Uint8Array(32);a[0]=9;const s=o([56129,1]);function l(e){let t=1;for(let n=0;n<16;n++){let r=e[n]+t+65535;t=Math.floor(r/65536),e[n]=r-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,n){const r=~(n-1);for(let i=0;i<16;i++){const n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function u(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function d(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function p(e,t,n){let r,i,o=0,a=0,s=0,l=0,c=0,u=0,d=0,p=0,h=0,f=0,m=0,g=0,v=0,y=0,b=0,w=0,x=0,C=0,A=0,E=0,_=0,T=0,S=0,k=0,P=0,D=0,F=0,N=0,I=0,R=0,O=0,j=n[0],M=n[1],L=n[2],B=n[3],U=n[4],V=n[5],H=n[6],z=n[7],W=n[8],q=n[9],G=n[10],Y=n[11],K=n[12],Q=n[13],X=n[14],Z=n[15];r=t[0],o+=r*j,a+=r*M,s+=r*L,l+=r*B,c+=r*U,u+=r*V,d+=r*H,p+=r*z,h+=r*W,f+=r*q,m+=r*G,g+=r*Y,v+=r*K,y+=r*Q,b+=r*X,w+=r*Z,r=t[1],a+=r*j,s+=r*M,l+=r*L,c+=r*B,u+=r*U,d+=r*V,p+=r*H,h+=r*z,f+=r*W,m+=r*q,g+=r*G,v+=r*Y,y+=r*K,b+=r*Q,w+=r*X,x+=r*Z,r=t[2],s+=r*j,l+=r*M,c+=r*L,u+=r*B,d+=r*U,p+=r*V,h+=r*H,f+=r*z,m+=r*W,g+=r*q,v+=r*G,y+=r*Y,b+=r*K,w+=r*Q,x+=r*X,C+=r*Z,r=t[3],l+=r*j,c+=r*M,u+=r*L,d+=r*B,p+=r*U,h+=r*V,f+=r*H,m+=r*z,g+=r*W,v+=r*q,y+=r*G,b+=r*Y,w+=r*K,x+=r*Q,C+=r*X,A+=r*Z,r=t[4],c+=r*j,u+=r*M,d+=r*L,p+=r*B,h+=r*U,f+=r*V,m+=r*H,g+=r*z,v+=r*W,y+=r*q,b+=r*G,w+=r*Y,x+=r*K,C+=r*Q,A+=r*X,E+=r*Z,r=t[5],u+=r*j,d+=r*M,p+=r*L,h+=r*B,f+=r*U,m+=r*V,g+=r*H,v+=r*z,y+=r*W,b+=r*q,w+=r*G,x+=r*Y,C+=r*K,A+=r*Q,E+=r*X,_+=r*Z,r=t[6],d+=r*j,p+=r*M,h+=r*L,f+=r*B,m+=r*U,g+=r*V,v+=r*H,y+=r*z,b+=r*W,w+=r*q,x+=r*G,C+=r*Y,A+=r*K,E+=r*Q,_+=r*X,T+=r*Z,r=t[7],p+=r*j,h+=r*M,f+=r*L,m+=r*B,g+=r*U,v+=r*V,y+=r*H,b+=r*z,w+=r*W,x+=r*q,C+=r*G,A+=r*Y,E+=r*K,_+=r*Q,T+=r*X,S+=r*Z,r=t[8],h+=r*j,f+=r*M,m+=r*L,g+=r*B,v+=r*U,y+=r*V,b+=r*H,w+=r*z,x+=r*W,C+=r*q,A+=r*G,E+=r*Y,_+=r*K,T+=r*Q,S+=r*X,k+=r*Z,r=t[9],f+=r*j,m+=r*M,g+=r*L,v+=r*B,y+=r*U,b+=r*V,w+=r*H,x+=r*z,C+=r*W,A+=r*q,E+=r*G,_+=r*Y,T+=r*K,S+=r*Q,k+=r*X,P+=r*Z,r=t[10],m+=r*j,g+=r*M,v+=r*L,y+=r*B,b+=r*U,w+=r*V,x+=r*H,C+=r*z,A+=r*W,E+=r*q,_+=r*G,T+=r*Y,S+=r*K,k+=r*Q,P+=r*X,D+=r*Z,r=t[11],g+=r*j,v+=r*M,y+=r*L,b+=r*B,w+=r*U,x+=r*V,C+=r*H,A+=r*z,E+=r*W,_+=r*q,T+=r*G,S+=r*Y,k+=r*K,P+=r*Q,D+=r*X,F+=r*Z,r=t[12],v+=r*j,y+=r*M,b+=r*L,w+=r*B,x+=r*U,C+=r*V,A+=r*H,E+=r*z,_+=r*W,T+=r*q,S+=r*G,k+=r*Y,P+=r*K,D+=r*Q,F+=r*X,N+=r*Z,r=t[13],y+=r*j,b+=r*M,w+=r*L,x+=r*B,C+=r*U,A+=r*V,E+=r*H,_+=r*z,T+=r*W,S+=r*q,k+=r*G,P+=r*Y,D+=r*K,F+=r*Q,N+=r*X,I+=r*Z,r=t[14],b+=r*j,w+=r*M,x+=r*L,C+=r*B,A+=r*U,E+=r*V,_+=r*H,T+=r*z,S+=r*W,k+=r*q,P+=r*G,D+=r*Y,F+=r*K,N+=r*Q,I+=r*X,R+=r*Z,r=t[15],w+=r*j,x+=r*M,C+=r*L,A+=r*B,E+=r*U,_+=r*V,T+=r*H,S+=r*z,k+=r*W,P+=r*q,D+=r*G,F+=r*Y,N+=r*K,I+=r*Q,R+=r*X,O+=r*Z,o+=38*x,a+=38*C,s+=38*A,l+=38*E,c+=38*_,u+=38*T,d+=38*S,p+=38*k,h+=38*P,f+=38*D,m+=38*F,g+=38*N,v+=38*I,y+=38*R,b+=38*O,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=p,e[8]=h,e[9]=f,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function h(e,t){p(e,t,t)}function f(e,t){const n=new Uint8Array(32),r=new Float64Array(80),i=o(),a=o(),f=o(),m=o(),g=o(),v=o();for(let o=0;o<31;o++)n[o]=e[o];n[31]=127&e[31]|64,n[0]&=248,function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(r,t);for(let o=0;o<16;o++)a[o]=r[o];i[0]=m[0]=1;for(let o=254;o>=0;--o){const e=n[o>>>3]>>>(7&o)&1;c(i,a,e),c(f,m,e),u(g,i,f),d(i,i,f),u(f,a,m),d(a,a,m),h(m,g),h(v,i),p(i,f,i),p(f,a,g),u(g,i,f),d(i,i,f),h(a,i),d(f,m,v),p(i,f,s),u(i,i,m),p(f,f,i),p(i,m,v),p(m,a,r),h(a,g),c(i,a,e),c(f,m,e)}for(let o=0;o<16;o++)r[o+16]=i[o],r[o+32]=f[o],r[o+48]=a[o],r[o+64]=m[o];const y=r.subarray(32),b=r.subarray(16);!function(e,t){const n=o();for(let r=0;r<16;r++)n[r]=t[r];for(let r=253;r>=0;r--)h(n,n),2!==r&&4!==r&&p(n,n,t);for(let r=0;r<16;r++)e[r]=n[r]}(y,y),p(b,b,y);const w=new Uint8Array(32);return function(e,t){const n=o(),r=o();for(let i=0;i<16;i++)r[i]=t[i];l(r),l(r),l(r);for(let i=0;i<2;i++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let i=0;i<16;i++)e[2*i]=255&r[i],e[2*i+1]=r[i]>>8}(w,b),w}function m(e){return f(e,a)}function g(e){if(e.length!==t.wE)throw new Error("x25519: seed must be ".concat(t.wE," bytes"));const n=new Uint8Array(e);return{publicKey:m(n),secretKey:n}}t.TZ=function(e){const t=(0,r.randomBytes)(32,e),n=g(t);return(0,i.wipe)(t),n},t.Tc=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.Xx)throw new Error("X25519: incorrect secret key length");if(n.length!==t.Xx)throw new Error("X25519: incorrect public key length");const i=f(e,n);if(r){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw new Error("X25519: invalid shared key")}return i}},94183:(e,t,n)=>{"use strict";function r(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function i(){const e=r();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=r,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!r()&&!!i()}},54803:(e,t)=>{"use strict";function n(){return"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product}function r(){return"undefined"!==typeof process&&"undefined"!==typeof process.versions&&"undefined"!==typeof process.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}},36360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90980);r.__exportStar(n(94183),t),r.__exportStar(n(54803),t)},90980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>u,__classPrivateFieldGet:()=>_,__classPrivateFieldSet:()=>T,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>i,__generator:()=>d,__importDefault:()=>E,__importStar:()=>A,__makeTemplateObject:()=>C,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>v,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof y?Promise.resolve(e.value.v).then(l,c):u(o[0][2],e)}(i[e](t))}catch(n){u(o[0][3],n)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},96330:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},92767:()=>{},93968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77558);r.__exportStar(n(27706),t),r.__exportStar(n(53187),t)},27706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},53187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},40230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77558);r.__exportStar(n(38624),t),r.__exportStar(n(20761),t),r.__exportStar(n(34756),t),r.__exportStar(n(93968),t)},34756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(77558).__exportStar(n(76315),t)},76315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},35495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(93968);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},90119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},38624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77558);r.__exportStar(n(90119),t),r.__exportStar(n(35495),t)},20761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error("Watch already started for label: ".concat(e));this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if("undefined"!==typeof t.elapsed)throw new Error("Watch already stopped for label: ".concat(e));const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if("undefined"===typeof t)throw new Error("No timestamp found for label: ".concat(e));return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},77558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>u,__classPrivateFieldGet:()=>_,__classPrivateFieldSet:()=>T,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>i,__generator:()=>d,__importDefault:()=>E,__importStar:()=>A,__makeTemplateObject:()=>C,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>v,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof y?Promise.resolve(e.value.v).then(l,c):u(o[0][2],e)}(i[e](t))}catch(n){u(o[0][3],n)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},38938:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},82829:(e,t,n)=>{"use strict";t.g=void 0;const r=n(38938);t.g=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(o){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){const t=i[e],r=["itemprop","property","name"].map((e=>t.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){const i=n[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},79118:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!==typeof self?self:"undefined"!==typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},51557:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},2035:(e,t,n)=>{e.exports=n(85621)},53826:(e,t,n)=>{"use strict";var r=n(28974),i=n(78356),o=n(70306),a=n(8288),s=n(38313),l=n(48322),c=n(32696),u=n(58670),d=n(94755),p=n(16041),h=n(59470);e.exports=function(e){return new Promise((function(t,n){var f,m=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+x)}var C=s(e.baseURL,e.url);function A(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(C,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=A:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(A)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||c(C))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),m||(m=null);var _=h(C);_&&-1===["http","https","file"].indexOf(_)?n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e)):b.send(m)}))}},85621:(e,t,n)=>{"use strict";var r=n(28974),i=n(75818),o=n(6581),a=n(43813);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(72038));s.Axios=o,s.CanceledError=n(16041),s.CancelToken=n(48577),s.isCancel=n(14102),s.VERSION=n(22519).version,s.toFormData=n(83046),s.AxiosError=n(94755),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(98194),s.isAxiosError=n(90221),e.exports=s,e.exports.default=s},48577:(e,t,n)=>{"use strict";var r=n(16041);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},16041:(e,t,n)=>{"use strict";var r=n(94755);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(28974).inherits(i,r,{__CANCEL__:!0}),e.exports=i},14102:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},6581:(e,t,n)=>{"use strict";var r=n(28974),i=n(8288),o=n(4645),a=n(24852),s=n(43813),l=n(38313),c=n(5415),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;r.length;){var h=r.shift(),f=r.shift();try{p=h(p)}catch(m){f(m);break}}try{o=a(p)}catch(m){return Promise.reject(m)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},94755:(e,t,n)=>{"use strict";var r=n(28974);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},4645:(e,t,n)=>{"use strict";var r=n(28974);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},38313:(e,t,n)=>{"use strict";var r=n(59919),i=n(73626);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},24852:(e,t,n)=>{"use strict";var r=n(28974),i=n(70987),o=n(14102),a=n(72038),s=n(16041);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},43813:(e,t,n)=>{"use strict";var r=n(28974);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},78356:(e,t,n)=>{"use strict";var r=n(94755);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},70987:(e,t,n)=>{"use strict";var r=n(28974),i=n(72038);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},72038:(e,t,n)=>{"use strict";var r=n(28974),i=n(52004),o=n(94755),a=n(58670),s=n(83046),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u={transitional:a,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(53826)),e}(),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(93192)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(l)})),e.exports=u},58670:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},22519:e=>{e.exports={version:"0.27.2"}},75818:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},8288:(e,t,n)=>{"use strict";var r=n(28974);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},73626:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},70306:(e,t,n)=>{"use strict";var r=n(28974);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},59919:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},90221:(e,t,n)=>{"use strict";var r=n(28974);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},32696:(e,t,n)=>{"use strict";var r=n(28974);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},52004:(e,t,n)=>{"use strict";var r=n(28974);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},93192:e=>{e.exports=null},48322:(e,t,n)=>{"use strict";var r=n(28974),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},59470:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},98194:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},83046:(e,t,n)=>{"use strict";var r=n(28974);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(r.isPlainObject(o)||r.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+a);n.push(o),r.forEach(o,(function(n,o){if(!r.isUndefined(n)){var s,l=a?a+"."+o:o;if(n&&!a&&"object"===typeof n)if(r.endsWith(o,"{}"))n=JSON.stringify(n);else if(r.endsWith(o,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(o))}(e),t}},5415:(e,t,n)=>{"use strict";var r=n(22519).version,i=n(94755),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],c=void 0===l||s(l,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},28974:(e,t,n)=>{"use strict";var r,i=n(75818),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function c(e){return"undefined"===typeof e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"===typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),f=s("File"),m=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var w,x=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||o.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:d,isPlainObject:p,isUndefined:c,isDate:h,isFile:f,isBlob:m,isFunction:v,isStream:function(e){return d(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:g}},87067:(e,t,n)=>{e.exports={default:n(52503),__esModule:!0}},58334:(e,t,n)=>{e.exports={default:n(46978),__esModule:!0}},31607:(e,t,n)=>{e.exports={default:n(14723),__esModule:!0}},40105:(e,t,n)=>{e.exports={default:n(34197),__esModule:!0}},373:(e,t,n)=>{e.exports={default:n(99081),__esModule:!0}},14816:(e,t,n)=>{e.exports={default:n(67091),__esModule:!0}},39745:(e,t,n)=>{e.exports={default:n(77229),__esModule:!0}},33652:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},40970:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(31607),o=(r=i)&&r.__esModule?r:{default:r};t.default=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),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},7547:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(87067),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default||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}},1084:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(373)),i=a(n(58334)),o=a(n(70941));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},92369:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(70941),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,o.default)(t))&&"function"!==typeof t?e:t}},70941:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(39745)),i=a(n(14816)),o="function"===typeof i.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof i.default&&"symbol"===o(r.default)?function(e){return"undefined"===typeof e?"undefined":o(e)}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":"undefined"===typeof e?"undefined":o(e)}},52503:(e,t,n)=>{n(23921),e.exports=n(84133).Object.assign},46978:(e,t,n)=>{n(36575);var r=n(84133).Object;e.exports=function(e,t){return r.create(e,t)}},14723:(e,t,n)=>{n(68669);var r=n(84133).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},34197:(e,t,n)=>{n(60527),e.exports=n(84133).Object.getPrototypeOf},99081:(e,t,n)=>{n(21707),e.exports=n(84133).Object.setPrototypeOf},67091:(e,t,n)=>{n(31527),n(90927),n(52047),n(96131),e.exports=n(84133).Symbol},77229:(e,t,n)=>{n(77720),n(59211),e.exports=n(62309).f("iterator")},73636:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},3303:e=>{e.exports=function(){}},75669:(e,t,n)=>{var r=n(51224);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},76763:(e,t,n)=>{var r=n(42690),i=n(89588),o=n(86320);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},97220:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},84133:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},62629:(e,t,n)=>{var r=n(73636);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},56577:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},96830:(e,t,n)=>{e.exports=!n(69977)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},92861:(e,t,n)=>{var r=n(51224),i=n(98485).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},90181:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},36096:(e,t,n)=>{var r=n(33850),i=n(37997),o=n(31266);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},40580:(e,t,n)=>{var r=n(98485),i=n(84133),o=n(62629),a=n(1450),s=n(66036),l="prototype",c=function(e,t,n){var u,d,p,h=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,b=f?i:i[t]||(i[t]={}),w=b[l],x=f?r:m?r[t]:(r[t]||{})[l];for(u in f&&(n=t),n)(d=!h&&x&&void 0!==x[u])&&s(b,u)||(p=d?x[u]:n[u],b[u]=f&&"function"!=typeof x[u]?n[u]:v&&d?o(p,r):y&&x[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):g&&"function"==typeof p?o(Function.call,p):p,g&&((b.virtual||(b.virtual={}))[u]=p,e&c.R&&w&&!w[u]&&a(w,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},69977:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},98485:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},66036:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1450:(e,t,n)=>{var r=n(40766),i=n(26185);e.exports=n(96830)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},34779:(e,t,n)=>{var r=n(98485).document;e.exports=r&&r.documentElement},10823:(e,t,n)=>{e.exports=!n(96830)&&!n(69977)((function(){return 7!=Object.defineProperty(n(92861)("div"),"a",{get:function(){return 7}}).a}))},16100:(e,t,n)=>{var r=n(97220);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},62914:(e,t,n)=>{var r=n(97220);e.exports=Array.isArray||function(e){return"Array"==r(e)}},51224:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},17721:(e,t,n)=>{"use strict";var r=n(42282),i=n(26185),o=n(99445),a={};n(1450)(a,n(63679)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},73286:(e,t,n)=>{"use strict";var r=n(83739),i=n(40580),o=n(38332),a=n(1450),s=n(59351),l=n(17721),c=n(99445),u=n(43712),d=n(63679)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,n,g,v,y,b){l(n,t,g);var w,x,C,A=function(e){if(!p&&e in S)return S[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",_=v==f,T=!1,S=e.prototype,k=S[d]||S["@@iterator"]||v&&S[v],P=k||A(v),D=v?_?A("entries"):P:void 0,F="Array"==t&&S.entries||k;if(F&&(C=u(F.call(new e)))!==Object.prototype&&C.next&&(c(C,E,!0),r||"function"==typeof C[d]||a(C,d,m)),_&&k&&k.name!==f&&(T=!0,P=function(){return k.call(this)}),r&&!b||!p&&!T&&S[d]||a(S,d,P),s[t]=P,s[E]=m,v)if(w={values:_?P:A(f),keys:y?P:A(h),entries:D},b)for(x in w)x in S||o(S,x,w[x]);else i(i.P+i.F*(p||T),t,w);return w}},67375:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},59351:e=>{e.exports={}},83739:e=>{e.exports=!0},64451:(e,t,n)=>{var r=n(12458)("meta"),i=n(51224),o=n(66036),a=n(40766).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(69977)((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!o(e,r)&&u(e),e}}},75999:(e,t,n)=>{"use strict";var r=n(96830),i=n(33850),o=n(37997),a=n(31266),s=n(71819),l=n(16100),c=Object.assign;e.exports=!c||n(69977)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,f=l(arguments[u++]),m=d?i(f).concat(d(f)):i(f),g=m.length,v=0;g>v;)h=m[v++],r&&!p.call(f,h)||(n[h]=f[h]);return n}:c},42282:(e,t,n)=>{var r=n(75669),i=n(51957),o=n(90181),a=n(51617)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(92861)("iframe"),r=o.length;for(t.style.display="none",n(34779).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},40766:(e,t,n)=>{var r=n(75669),i=n(10823),o=n(42643),a=Object.defineProperty;t.f=n(96830)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},51957:(e,t,n)=>{var r=n(40766),i=n(75669),o=n(33850);e.exports=n(96830)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},11208:(e,t,n)=>{var r=n(31266),i=n(26185),o=n(42690),a=n(42643),s=n(66036),l=n(10823),c=Object.getOwnPropertyDescriptor;t.f=n(96830)?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},35732:(e,t,n)=>{var r=n(42690),i=n(54858).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(r(e))}},54858:(e,t,n)=>{var r=n(82150),i=n(90181).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},37997:(e,t)=>{t.f=Object.getOwnPropertySymbols},43712:(e,t,n)=>{var r=n(66036),i=n(71819),o=n(51617)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},82150:(e,t,n)=>{var r=n(66036),i=n(42690),o=n(76763)(!1),a=n(51617)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},33850:(e,t,n)=>{var r=n(82150),i=n(90181);e.exports=Object.keys||function(e){return r(e,i)}},31266:(e,t)=>{t.f={}.propertyIsEnumerable},13228:(e,t,n)=>{var r=n(40580),i=n(84133),o=n(69977);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},26185:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},38332:(e,t,n)=>{e.exports=n(1450)},66635:(e,t,n)=>{var r=n(51224),i=n(75669),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(62629)(Function.call,n(11208).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},99445:(e,t,n)=>{var r=n(40766).f,i=n(66036),o=n(63679)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},51617:(e,t,n)=>{var r=n(6423)("keys"),i=n(12458);e.exports=function(e){return r[e]||(r[e]=i(e))}},6423:(e,t,n)=>{var r=n(84133),i=n(98485),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(83739)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},74905:(e,t,n)=>{var r=n(77788),i=n(56577);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},86320:(e,t,n)=>{var r=n(77788),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},77788:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},42690:(e,t,n)=>{var r=n(16100),i=n(56577);e.exports=function(e){return r(i(e))}},89588:(e,t,n)=>{var r=n(77788),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},71819:(e,t,n)=>{var r=n(56577);e.exports=function(e){return Object(r(e))}},42643:(e,t,n)=>{var r=n(51224);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},12458:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},55667:(e,t,n)=>{var r=n(98485),i=n(84133),o=n(83739),a=n(62309),s=n(40766).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},62309:(e,t,n)=>{t.f=n(63679)},63679:(e,t,n)=>{var r=n(6423)("wks"),i=n(12458),o=n(98485).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},70980:(e,t,n)=>{"use strict";var r=n(3303),i=n(67375),o=n(59351),a=n(42690);e.exports=n(73286)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},23921:(e,t,n)=>{var r=n(40580);r(r.S+r.F,"Object",{assign:n(75999)})},36575:(e,t,n)=>{var r=n(40580);r(r.S,"Object",{create:n(42282)})},68669:(e,t,n)=>{var r=n(40580);r(r.S+r.F*!n(96830),"Object",{defineProperty:n(40766).f})},60527:(e,t,n)=>{var r=n(71819),i=n(43712);n(13228)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},21707:(e,t,n)=>{var r=n(40580);r(r.S,"Object",{setPrototypeOf:n(66635).set})},90927:()=>{},77720:(e,t,n)=>{"use strict";var r=n(74905)(!0);n(73286)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},31527:(e,t,n)=>{"use strict";var r=n(98485),i=n(66036),o=n(96830),a=n(40580),s=n(38332),l=n(64451).KEY,c=n(69977),u=n(6423),d=n(99445),p=n(12458),h=n(63679),f=n(62309),m=n(55667),g=n(36096),v=n(62914),y=n(75669),b=n(51224),w=n(71819),x=n(42690),C=n(42643),A=n(26185),E=n(42282),_=n(35732),T=n(11208),S=n(37997),k=n(40766),P=n(33850),D=T.f,F=k.f,N=_.f,I=r.Symbol,R=r.JSON,O=R&&R.stringify,j="prototype",M=h("_hidden"),L=h("toPrimitive"),B={}.propertyIsEnumerable,U=u("symbol-registry"),V=u("symbols"),H=u("op-symbols"),z=Object[j],W="function"==typeof I&&!!S.f,q=r.QObject,G=!q||!q[j]||!q[j].findChild,Y=o&&c((function(){return 7!=E(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=D(z,t);r&&delete z[t],F(e,t,n),r&&e!==z&&F(z,t,r)}:F,K=function(e){var t=V[e]=E(I[j]);return t._k=e,t},Q=W&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},X=function(e,t,n){return e===z&&X(H,t,n),y(e),t=C(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,M)&&e[M][t]&&(e[M][t]=!1),n=E(n,{enumerable:A(0,!1)})):(i(e,M)||F(e,M,A(1,{})),e[M][t]=!0),Y(e,t,n)):F(e,t,n)},Z=function(e,t){y(e);for(var n,r=g(t=x(t)),i=0,o=r.length;o>i;)X(e,n=r[i++],t[n]);return e},J=function(e){var t=B.call(this,e=C(e,!0));return!(this===z&&i(V,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,M)&&this[M][e])||t)},$=function(e,t){if(e=x(e),t=C(t,!0),e!==z||!i(V,t)||i(H,t)){var n=D(e,t);return!n||!i(V,t)||i(e,M)&&e[M][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=N(x(e)),r=[],o=0;n.length>o;)i(V,t=n[o++])||t==M||t==l||r.push(t);return r},te=function(e){for(var t,n=e===z,r=N(n?H:x(e)),o=[],a=0;r.length>a;)!i(V,t=r[a++])||n&&!i(z,t)||o.push(V[t]);return o};W||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(H,n),i(this,M)&&i(this[M],e)&&(this[M][e]=!1),Y(this,e,A(1,n))};return o&&G&&Y(z,e,{configurable:!0,set:t}),K(e)})[j],"toString",(function(){return this._k})),T.f=$,k.f=X,n(54858).f=_.f=ee,n(31266).f=J,S.f=te,o&&!n(83739)&&s(z,"propertyIsEnumerable",J,!0),f.f=function(e){return K(h(e))}),a(a.G+a.W+a.F*!W,{Symbol:I});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=P(h.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(U,e+="")?U[e]:U[e]=I(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?E(e):Z(E(e),t)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c((function(){S.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return S.f(w(e))}}),R&&a(a.S+a.F*(!W||c((function(){var e=I();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,O.apply(R,r)}}),I[j][L]||n(1450)(I[j],L,I[j].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},52047:(e,t,n)=>{n(55667)("asyncIterator")},96131:(e,t,n)=>{n(55667)("observable")},59211:(e,t,n)=>{n(70980);for(var r=n(98485),i=n(1450),o=n(59351),a=n(63679)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[a]&&i(d,a,c),o[c]=o.Array}},90956:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(l(e,s,s+a>c?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},75701:(e,t,n)=>{"use strict";const r=n(90956),i=n(24153),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||X(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(X(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return K(G(t,e.length-n),e,n,r)}function C(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return K(Y(t),e,n,r)}function E(e,t,n,r){return K(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){o=c[l],a=u[l];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function k(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function D(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=Z[e[o]];return i}function F(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function O(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){I(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){I(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const B={};function U(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function z(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!==e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},67718:e=>{function t(e){var n,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function n(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=t(e))&&(i&&(i+=" "),i+=n);return i}e.exports=n,e.exports.clsx=n},11871:function(e,t){var n="undefined"!==typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(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)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=f(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 p(t.headers)),this.method=function(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(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 x(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function C(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 p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];C.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(_){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:x(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new C(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=p,e.Request=b,e.Response=C),t.Headers=p,t.Request=b,t.Response=C,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(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},59665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default},72368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},81221:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)({},e)};var i=r(n(72368));e.exports=t.default},15052:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(11035)).default;t.default=i,e.exports=t.default},56892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};var n={}},92436:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(82467)),o=r(n(42772)),a=r(n(9677)),s=r(n(15759)),l=r(n(54978)),c=r(n(59665)),u=r(n(46566)),d="midnight",p="noon",h="morning",f="afternoon",m="evening",g="night";function v(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+(0,c.default)(o,2)}function y(e,t){return e%60===0?(e>0?"-":"+")+(0,c.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,c.default)(Math.floor(i/60),2)+n+(0,c.default)(i%60,2)}var w={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,n,r){var i=(0,l.default)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,c.default)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,c.default)(o,t.length)},R:function(e,t){var n=(0,a.default)(e);return(0,c.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,c.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,c.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,c.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,c.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,s.default)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,c.default)(i,t.length)},I:function(e,t,n){var r=(0,o.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,c.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,n){var r=(0,i.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,c.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,c.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,c.default)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,c.default)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?p:0===i?d:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?m:i>=12?f:i>=4?h:g,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return y(i);case"XXXX":case"XX":return b(i);default:return b(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(i);case"xxxx":case"xx":return b(i);default:return b(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(i,":");default:return"GMT"+b(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(i,":");default:return"GMT"+b(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return(0,c.default)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,c.default)(i,t.length)}};t.default=w,e.exports=t.default},46566:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(59665)),o={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,i.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,i.default)(n+1,2)},d:function(e,t){return(0,i.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,i.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,i.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,i.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,i.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return(0,i.default)(o,t.length)}};t.default=o,e.exports=t.default},73558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:r,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.default=i,e.exports=t.default},83974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},82467:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=n-r;return Math.floor(s/a)+1};var i=r(n(44557)),o=r(n(44145)),a=864e5;e.exports=t.default},42772:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e),n=(0,o.default)(t).getTime()-(0,a.default)(t).getTime();return Math.round(n/l)+1};var i=r(n(44557)),o=r(n(46017)),a=r(n(94424)),s=r(n(44145)),l=6048e5;e.exports=t.default},9677:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=(0,a.default)(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,a.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var i=r(n(44557)),o=r(n(44145)),a=r(n(46017));e.exports=t.default},15759:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(1,arguments);var n=(0,i.default)(e),r=(0,o.default)(n,t).getTime()-(0,a.default)(n,t).getTime();return Math.round(r/l)+1};var i=r(n(44557)),o=r(n(13312)),a=r(n(50865)),s=r(n(44145)),l=6048e5;e.exports=t.default},54978:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,u,d,p,h,f;(0,o.default)(1,arguments);var m=(0,i.default)(e),g=m.getUTCFullYear(),v=(0,l.getDefaultOptions)(),y=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==r?r:null===(h=v.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,a.default)(b,t),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var C=(0,a.default)(x,t);return m.getTime()>=w.getTime()?g+1:m.getTime()>=C.getTime()?g:g-1};var i=r(n(44557)),o=r(n(44145)),a=r(n(13312)),s=r(n(52550)),l=n(56892);e.exports=t.default},49787:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},44145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},46017:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t};var i=r(n(44557)),o=r(n(44145));e.exports=t.default},94424:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.default)(n)};var i=r(n(9677)),o=r(n(46017)),a=r(n(44145));e.exports=t.default},13312:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,l,c,u,d,p,h;(0,o.default)(1,arguments);var f=(0,s.getDefaultOptions)(),m=(0,a.default)(null!==(n=null!==(r=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==r?r:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,i.default)(e),v=g.getUTCDay(),y=(v<m?7:0)+v-m;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g};var i=r(n(44557)),o=r(n(44145)),a=r(n(52550)),s=n(56892);e.exports=t.default},50865:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,u,d,p,h,f;(0,o.default)(1,arguments);var m=(0,l.getDefaultOptions)(),g=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,i.default)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,a.default)(y,t)};var i=r(n(54978)),o=r(n(44145)),a=r(n(13312)),s=r(n(52550)),l=n(56892);e.exports=t.default},52550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},38445:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,o.default)(e).getTime(),r=(0,i.default)(t);return new Date(n+r)};var i=r(n(52550)),o=r(n(44557)),a=r(n(44145));e.exports=t.default},11540:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var u;const d={code:"en-US",formatDistance:i,formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(u.matchPattern);if(!n)return null;var r=n[0],i=e.match(u.parsePattern);if(!i)return null;var o=u.valueCallback?u.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},40328:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r={};function i(){return r}},15522:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}},83674:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>r})},32253:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(76705),i=n(16997),o=n(21345),a=n(49413);var s=6048e5;function l(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=(0,i.A)(t).getTime()-function(e){(0,a.A)(1,arguments);var t=(0,o.A)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.A)(n)}(t).getTime();return Math.round(n/s)+1}},21345:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(76705),i=n(49413),o=n(16997);function a(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.A)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,o.A)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},25694:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(76705),i=n(1140),o=n(95206),a=n(49413),s=n(51330),l=n(40328);var c=6048e5;function u(e,t){(0,a.A)(1,arguments);var n=(0,r.default)(e),u=(0,i.A)(n,t).getTime()-function(e,t){var n,r,c,u,d,p,h,f;(0,a.A)(1,arguments);var m=(0,l.q)(),g=(0,s.A)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(h=m.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,o.A)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,i.A)(y,t)}(n,t).getTime();return Math.round(u/c)+1}},95206:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(76705),i=n(49413),o=n(1140),a=n(51330),s=n(40328);function l(e,t){var n,l,c,u,d,p,h,f;(0,i.A)(1,arguments);var m=(0,r.default)(e),g=m.getUTCFullYear(),v=(0,s.q)(),y=(0,a.A)(null!==(n=null!==(l=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==l?l:null===(h=v.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,o.A)(b,t),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var C=(0,o.A)(x,t);return m.getTime()>=w.getTime()?g+1:m.getTime()>=C.getTime()?g:g-1}},78799:(e,t,n)=>{"use strict";n.d(t,{ef:()=>o,lJ:()=>s,xM:()=>a});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},49413:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},43913:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},i="trunc";function o(e){return e?r[e]:r[i]}},16997:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}},1140:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(76705),i=n(49413),o=n(51330),a=n(40328);function s(e,t){var n,s,l,c,u,d,p,h;(0,i.A)(1,arguments);var f=(0,a.q)(),m=(0,o.A)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getUTCDay(),y=(v<m?7:0)+v-m;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}},51330:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},33744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},11170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51330),i=n(201),o=n(49413),a=36e5;function s(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.A)(e,n*a)}},201:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.A)(t);return new Date(n+a)}},1068:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51330),i=n(201),o=n(49413),a=6e4;function s(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.A)(e,n*a)}},23160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+a+1,0),s>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},88910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(23160),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=3*(0,r.A)(t);return(0,i.default)(e,n)}},17604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(33744),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=7*(0,r.A)(t);return(0,i.default)(e,n)}},71903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(23160),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.default)(e,12*n)}},86305:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>r,_m:()=>o,s0:()=>i});Math.pow(10,8);var r=6e4,i=36e5,o=1e3},65521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(83674),i=n(6321),o=n(49413),a=864e5;function s(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.A)(n),c=s.getTime()-(0,r.A)(s);return Math.round((l-c)/a)}},46125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}},24140:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},43619:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(76705),i=n(65521),o=n(49413);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function s(e,t){(0,o.A)(2,arguments);var n=(0,r.default)(e),s=(0,r.default)(t),l=a(n,s),c=Math.abs((0,i.default)(n,s));n.setDate(n.getDate()-l*c);var u=l*(c-Number(a(n,s)===-l));return 0===u?0:u}},40559:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(86305),i=n(50694),o=n(49413),a=n(43913);function s(e,t,n){(0,o.A)(2,arguments);var s=(0,i.A)(e,t)/r.s0;return(0,a.u)(null===n||void 0===n?void 0:n.roundingMethod)(s)}},50694:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(76705),i=n(49413);function o(e,t){return(0,i.A)(2,arguments),(0,r.default)(e).getTime()-(0,r.default)(t).getTime()}},50453:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(86305),i=n(50694),o=n(49413),a=n(43913);function s(e,t,n){(0,o.A)(2,arguments);var s=(0,i.A)(e,t)/r.Cg;return(0,a.u)(null===n||void 0===n?void 0:n.roundingMethod)(s)}},59513:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(50694),i=n(49413),o=n(43913);function a(e,t,n){(0,i.A)(2,arguments);var a=(0,r.A)(e,t)/1e3;return(0,o.u)(null===n||void 0===n?void 0:n.roundingMethod)(a)}},48266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},73814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},19808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(40328),i=n(76705),o=n(51330),a=n(49413);function s(e,t){var n,s,l,c,u,d,p,h;(0,a.A)(1,arguments);var f=(0,r.q)(),m=(0,o.A)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,i.default)(e),v=g.getDay(),y=6+(v<m?-7:0)-(v-m);return g.setDate(g.getDate()+y),g.setHours(23,59,59,999),g}},22469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},20390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(94034),i=n(43792),o=n(76705),a=n(49413);var s=n(32253),l=n(21345),c=n(25694),u=n(95206);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)}};var h="midnight",f="noon",m="morning",g="afternoon",v="evening",y="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+d(o,2)}function w(e,t){return e%60===0?(e>0?"-":"+")+d(Math.abs(e)/60,2):x(e,t)}function x(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+d(Math.floor(i/60),2)+n+d(i%60,2)}const C={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=(0,u.A)(e,r),o=i>0?i:1-i;return"YY"===t?d(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):d(o,t.length)},R:function(e,t){return d((0,l.A)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,c.A)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,n){var r=(0,s.A)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return d(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return d(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f:0===i?h:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?v:i>=12?g:i>=4?m:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return w(i);case"XXXX":case"XX":return x(i);default:return x(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(i);case"xxxx":case"xx":return x(i);default:return x(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(i,":");default:return"GMT"+x(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(i,":");default:return"GMT"+x(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return d(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var A=n(15522),E=n(83674),_=n(78799),T=n(51330),S=n(40328),k=n(11540),P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'([^]*?)'?$/,N=/''/g,I=/[a-zA-Z]/;function R(e,t,n){var s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,R,O,j;(0,a.A)(2,arguments);var M=String(t),L=(0,S.q)(),B=null!==(s=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:L.locale)&&void 0!==s?s:k.A,U=(0,T.A)(null!==(c=null!==(u=null!==(d=null!==(p=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null===n||void 0===n||null===(h=n.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==d?d:L.firstWeekContainsDate)&&void 0!==u?u:null===(m=L.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,T.A)(null!==(v=null!==(y=null!==(b=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n||null===(x=n.locale)||void 0===x||null===(R=x.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==b?b:L.weekStartsOn)&&void 0!==y?y:null===(O=L.locale)||void 0===O||null===(j=O.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==v?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var H=(0,o.default)(e);if(!(0,r.default)(H))throw new RangeError("Invalid time value");var z=(0,E.A)(H),W=(0,i.A)(H,z),q={firstWeekContainsDate:U,weekStartsOn:V,locale:B,_originalDate:H};return M.match(D).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,A.A[t])(e,B.formatLong):e})).join("").match(P).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(F);if(!t)return e;return t[1].replace(N,"'")}(r);var o=C[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,_.xM)(r)||(0,_.lJ)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,_.ef)(r)||(0,_.lJ)(r,t,String(e)),o(W,r,B.localize,q);if(i.match(I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}},63436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getDate()}},30022:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getDay()}},84635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getHours()}},28205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(76705),i=n(37121),o=n(49413);function a(e){return(0,o.A)(1,arguments),(0,i.default)(e,{weekStartsOn:1})}function s(e){(0,o.A)(1,arguments);var t=function(e){(0,o.A)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=a(i),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=a(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),a(n)}var l=6048e5;function c(e){(0,o.A)(1,arguments);var t=(0,r.default)(e),n=a(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},98105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getMinutes()}},60154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getMonth()}},80036:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return Math.floor(t.getMonth()/3)+1}},33125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getSeconds()}},71993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getTime()}},2585:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){return(0,i.A)(1,arguments),(0,r.default)(e).getFullYear()}},42762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},5819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()<o.getTime()}},3288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17545),i=n(49413);function o(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},85716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},70336:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(6321),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},88948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},62646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(89983),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},10211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},94034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(3288),i=n(76705),o=n(49413);function a(e){if((0,o.A)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},47566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),a=(0,r.default)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},65022:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17545),i=n(76705),o=n(49413);function a(e){var t,n;if((0,o.A)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,i.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},57208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17545),i=n(76705),o=n(49413);function a(e){var t,n;if((0,o.A)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,i.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},61987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tt});var r=n(17545),i=n(27985);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,i.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=n(11540),s=n(43792),l=n(76705);function c(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var u=n(15522),d=n(83674),p=n(78799),h=n(51330),f=n(49413),m=n(2474),g=n(48926),v=n(72715);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var b=n(95309);function w(e){var t=y();return function(){var n,r=(0,v.A)(e);if(t){var i=(0,v.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,b.A)(this,n)}}var x=n(55152),C=n(30414),A=n(24586),E=function(){function e(){(0,x.A)(this,e),(0,A.A)(this,"priority",void 0),(0,A.A)(this,"subPriority",0)}return(0,C.A)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),_=function(e){(0,g.A)(n,e);var t=w(n);function n(e,r,i,o,a){var s;return(0,x.A)(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return(0,C.A)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(E),T=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",10),(0,A.A)((0,m.A)(e),"subPriority",-1),e}return(0,C.A)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(E),S=function(){function e(){(0,x.A)(this,e),(0,A.A)(this,"incompatibleTokens",void 0),(0,A.A)(this,"priority",void 0),(0,A.A)(this,"subPriority",void 0)}return(0,C.A)(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new _(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),k=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",140),(0,A.A)((0,m.A)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(S),P=n(86305),D=/^(1[0-2]|0?\d)/,F=/^(3[0-1]|[0-2]?\d)/,N=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,I=/^(5[0-3]|[0-4]?\d)/,R=/^(2[0-3]|[0-1]?\d)/,O=/^(2[0-4]|[0-1]?\d)/,j=/^(1[0-1]|0?\d)/,M=/^(1[0-2]|0?\d)/,L=/^[0-5]?\d/,B=/^[0-5]?\d/,U=/^\d/,V=/^\d{1,2}/,H=/^\d{1,3}/,z=/^\d{1,4}/,W=/^-?\d+/,q=/^-?\d/,G=/^-?\d{1,2}/,Y=/^-?\d{1,3}/,K=/^-?\d{1,4}/,Q=/^([+-])(\d{2})(\d{2})?|Z/,X=/^([+-])(\d{2})(\d{2})|Z/,Z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,J=/^([+-])(\d{2}):(\d{2})|Z/,$=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(e,t){return e?{value:t(e.value),rest:e.rest}:e}function te(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ne(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*P.s0+o*P.Cg+a*P._m),rest:t.slice(n[0].length)}}function re(e){return te(W,e)}function ie(e,t){switch(e){case 1:return te(U,t);case 2:return te(V,t);case 3:return te(H,t);case 4:return te(z,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function oe(e,t){switch(e){case 1:return te(q,t);case 2:return te(G,t);case 3:return te(Y,t);case 4:return te(K,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ae(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function le(e){return e%400===0||e%4===0&&e%100!==0}var ce=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",130),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ee(ie(4,e),r);case"yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(ie(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=se(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(S),ue=n(95206),de=n(1140),pe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",130),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ee(ie(4,e),r);case"Yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(ie(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=(0,ue.A)(e,r);if(n.isTwoDigitYear){var o=se(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,de.A)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,de.A)(e,r)}}]),n}(S),he=n(16997),fe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",130),(0,A.A)((0,m.A)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t){return oe("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,he.A)(r)}}]),n}(S),me=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",130),(0,A.A)((0,m.A)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t){return oe("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(S),ge=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",120),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ie(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(S),ve=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",120),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ie(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(S),ye=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,A.A)((0,m.A)(e),"priority",110),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return ee(te(D,e),r);case"MM":return ee(ie(2,e),r);case"Mo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(S),be=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",110),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return ee(te(D,e),r);case"LL":return ee(ie(2,e),r);case"Lo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(S),we=n(25694);var xe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",100),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return te(I,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,de.A)(function(e,t,n){(0,f.A)(2,arguments);var r=(0,l.default)(e),i=(0,h.A)(t),o=(0,we.A)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(S),Ce=n(32253);var Ae=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",100),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return te(I,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,he.A)(function(e,t){(0,f.A)(2,arguments);var n=(0,l.default)(e),r=(0,h.A)(t),i=(0,Ce.A)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(S),Ee=[31,28,31,30,31,30,31,31,30,31,30,31],_e=[31,29,31,30,31,30,31,31,30,31,30,31],Te=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"subPriority",1),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return te(F,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){var n=le(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=_e[r]:t>=1&&t<=Ee[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(S),Se=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"subpriority",1),(0,A.A)((0,m.A)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return te(N,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return le(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(S),ke=n(40328);function Pe(e,t,n){var r,i,o,a,s,c,u,d;(0,f.A)(2,arguments);var p=(0,ke.q)(),m=(0,h.A)(null!==(r=null!==(i=null!==(o=null!==(a=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==a?a:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==i?i:null===(u=p.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,l.default)(e),v=(0,h.A)(t),y=((v%7+7)%7<m?7:0)+v-g.getUTCDay();return g.setUTCDate(g.getUTCDate()+y),g}var De=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(S),Fe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ee(ie(t.length,e),i);case"eo":return ee(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(S),Ne=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ee(ie(t.length,e),i);case"co":return ee(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(S);var Ie=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",90),(0,A.A)((0,m.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ie(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ee(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ee(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ee(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ee(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,f.A)(2,arguments);var n=(0,h.A)(t);n%7===0&&(n-=7);var r=(0,l.default)(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(S),Re=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",80),(0,A.A)((0,m.A)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ae(n),0,0,0),e}}]),n}(S),Oe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",80),(0,A.A)((0,m.A)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ae(n),0,0,0),e}}]),n}(S),je=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",80),(0,A.A)((0,m.A)(e),"incompatibleTokens",["a","b","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ae(n),0,0,0),e}}]),n}(S),Me=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",70),(0,A.A)((0,m.A)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return te(M,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(S),Le=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",70),(0,A.A)((0,m.A)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return te(R,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(S),Be=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",70),(0,A.A)((0,m.A)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return te(j,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(S),Ue=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",70),(0,A.A)((0,m.A)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return te(O,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(S),Ve=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",60),(0,A.A)((0,m.A)(e),"incompatibleTokens",["t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return te(L,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(S),He=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",50),(0,A.A)((0,m.A)(e),"incompatibleTokens",["t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return te(B,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ie(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(S),ze=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",30),(0,A.A)((0,m.A)(e),"incompatibleTokens",["t","T"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t){return ee(ie(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(S),We=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",10),(0,A.A)((0,m.A)(e),"incompatibleTokens",["t","T","x"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return ne(Q,e);case"XX":return ne(X,e);case"XXXX":return ne(Z,e);case"XXXXX":return ne($,e);default:return ne(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(S),qe=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",10),(0,A.A)((0,m.A)(e),"incompatibleTokens",["t","T","X"]),e}return(0,C.A)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return ne(Q,e);case"xx":return ne(X,e);case"xxxx":return ne(Z,e);case"xxxxx":return ne($,e);default:return ne(J,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(S),Ge=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",40),(0,A.A)((0,m.A)(e),"incompatibleTokens","*"),e}return(0,C.A)(n,[{key:"parse",value:function(e){return re(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(S),Ye=function(e){(0,g.A)(n,e);var t=w(n);function n(){var e;(0,x.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,A.A)((0,m.A)(e),"priority",20),(0,A.A)((0,m.A)(e),"incompatibleTokens","*"),e}return(0,C.A)(n,[{key:"parse",value:function(e){return re(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(S),Ke={G:new k,y:new ce,Y:new pe,R:new fe,u:new me,Q:new ge,q:new ve,M:new ye,L:new be,w:new xe,I:new Ae,d:new Te,D:new Se,E:new De,e:new Fe,c:new Ne,i:new Ie,a:new Re,b:new Oe,B:new je,h:new Me,H:new Le,K:new Be,k:new Ue,m:new Ve,s:new He,S:new ze,X:new We,x:new qe,t:new Ge,T:new Ye},Qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ze=/^'([^]*?)'?$/,Je=/''/g,$e=/\S/,et=/[a-zA-Z]/;function tt(e,t,n,i){var m,g,v,y,b,w,x,C,A,E,_,S,k,P,D,F,N,I;(0,f.A)(3,arguments);var R=String(e),O=String(t),j=(0,ke.q)(),M=null!==(m=null!==(g=null===i||void 0===i?void 0:i.locale)&&void 0!==g?g:j.locale)&&void 0!==m?m:a.A;if(!M.match)throw new RangeError("locale must contain match property");var L=(0,h.A)(null!==(v=null!==(y=null!==(b=null!==(w=null===i||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==w?w:null===i||void 0===i||null===(x=i.locale)||void 0===x||null===(C=x.options)||void 0===C?void 0:C.firstWeekContainsDate)&&void 0!==b?b:j.firstWeekContainsDate)&&void 0!==y?y:null===(A=j.locale)||void 0===A||null===(E=A.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==v?v:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,h.A)(null!==(_=null!==(S=null!==(k=null!==(P=null===i||void 0===i?void 0:i.weekStartsOn)&&void 0!==P?P:null===i||void 0===i||null===(D=i.locale)||void 0===D||null===(F=D.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==k?k:j.weekStartsOn)&&void 0!==S?S:null===(N=j.locale)||void 0===N||null===(I=N.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==_?_:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===O)return""===R?(0,l.default)(n):new Date(NaN);var U,V={firstWeekContainsDate:L,weekStartsOn:B,locale:M},H=[new T],z=O.match(Xe).map((function(e){var t=e[0];return t in u.A?(0,u.A[t])(e,M.formatLong):e})).join("").match(Qe),W=[],q=o(z);try{var G=function(){var t=U.value;null!==i&&void 0!==i&&i.useAdditionalWeekYearTokens||!(0,p.xM)(t)||(0,p.lJ)(t,O,e),null!==i&&void 0!==i&&i.useAdditionalDayOfYearTokens||!(0,p.ef)(t)||(0,p.lJ)(t,O,e);var n=t[0],r=Ke[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var a=W.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));W.push({token:n,fullToken:t});var s=r.run(R,t,M.match,V);if(!s)return{v:new Date(NaN)};H.push(s.setter),R=s.rest}else{if(n.match(et))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Ze)[1].replace(Je,"'")),0!==R.indexOf(t))return{v:new Date(NaN)};R=R.slice(t.length)}};for(q.s();!(U=q.n()).done;){var Y=G();if("object"===(0,r.A)(Y))return Y.v}}catch(ne){q.e(ne)}finally{q.f()}if(R.length>0&&$e.test(R))return new Date(NaN);var K=H.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return H.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Q=(0,l.default)(n);if(isNaN(Q.getTime()))return new Date(NaN);var X,Z=(0,s.A)(Q,(0,d.A)(Q)),J={},$=o(K);try{for($.s();!(X=$.n()).done;){var ee=X.value;if(!ee.validate(Z,V))return new Date(NaN);var te=ee.set(Z,J,V);Array.isArray(te)?(Z=te[0],c(J,te[1])):Z=te}}catch(ne){$.e(ne)}finally{$.f()}return Z}},11056:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(86305),i=n(49413),o=n(51330);function a(e,t){var n;(0,i.A)(1,arguments);var a=(0,o.A)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var m,g=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,a);m=function(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=d(n[1]),o=d(n[2])-1,a=d(n[3]),s=d(n[4]),c=d(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(h[t]||(f(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(f(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,a)),u):new Date(NaN)}(v.restDateString,v.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);var y,b=m.getTime(),w=0;if(g.time&&(w=function(e){var t=e.match(c);if(!t)return NaN;var n=p(t[1]),i=p(t[2]),o=p(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o))return NaN;return n*r.s0+i*r.Cg+1e3*o}(g.time),isNaN(w)))return new Date(NaN);if(!g.timezone){var x=new Date(b+w),C=new Date(0);return C.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),C.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),C}return y=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(i*r.s0+o*r.Cg)}(g.timezone),isNaN(y)?new Date(NaN):new Date(b+w+y)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400===0||e%4===0&&e%100!==0}},71108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(17545),i=n(76705),o=n(64603),a=n(51330),s=n(49413);function l(e,t){if((0,s.A)(2,arguments),"object"!==(0,r.A)(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,i.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.default)(n,t.month)),null!=t.date&&n.setDate((0,a.A)(t.date)),null!=t.hours&&n.setHours((0,a.A)(t.hours)),null!=t.minutes&&n.setMinutes((0,a.A)(t.minutes)),null!=t.seconds&&n.setSeconds((0,a.A)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,a.A)(t.milliseconds)),n)}},93759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);return n.setHours(a),n}},32389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);return n.setMinutes(a),n}},64603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,a,15),c.setHours(0,0,0,0);var u=function(e){(0,o.A)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(c);return n.setMonth(a,Math.min(l,u)),n}},87520:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51330),i=n(76705),o=n(64603),a=n(49413);function s(e,t){(0,a.A)(2,arguments);var n=(0,i.default)(e),s=(0,r.A)(t)-(Math.floor(n.getMonth()/3)+1);return(0,o.default)(n,n.getMonth()+3*s)}},36393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);return n.setSeconds(a),n}},91485:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(76705),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.default)(e),a=(0,r.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},6321:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},24713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},89983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},37121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(76705),i=n(51330),o=n(49413),a=n(40328);function s(e,t){var n,s,l,c,u,d,p,h;(0,o.A)(1,arguments);var f=(0,a.q)(),m=(0,i.A)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(p=f.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getDay(),y=(v<m?7:0)+v-m;return g.setDate(g.getDate()-y),g.setHours(0,0,0,0),g}},93408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76705),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},66717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(33744),i=n(49413),o=n(51330);function a(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(t);return(0,r.default)(e,-n)}},43792:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(201),i=n(49413),o=n(51330);function a(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(t);return(0,r.A)(e,-n)}},69377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(23160),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.default)(e,-n)}},37099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(88910),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.default)(e,-n)}},38503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(17604),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.default)(e,-n)}},74688:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51330),i=n(71903),o=n(49413);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.default)(e,-n)}},76705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17545),i=n(49413);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},42463:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j;(0,p.default)(2,arguments);var M=String(t),L=(0,h.getDefaultOptions)(),B=null!==(r=null!==(w=null===n||void 0===n?void 0:n.locale)&&void 0!==w?w:L.locale)&&void 0!==r?r:f.default,U=(0,d.default)(null!==(x=null!==(C=null!==(A=null!==(E=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==E?E:null===n||void 0===n||null===(_=n.locale)||void 0===_||null===(T=_.options)||void 0===T?void 0:T.firstWeekContainsDate)&&void 0!==A?A:L.firstWeekContainsDate)&&void 0!==C?C:null===(S=L.locale)||void 0===S||null===(k=S.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==x?x:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,d.default)(null!==(P=null!==(D=null!==(F=null!==(N=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==N?N:null===n||void 0===n||null===(I=n.locale)||void 0===I||null===(R=I.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==F?F:L.weekStartsOn)&&void 0!==D?D:null===(O=L.locale)||void 0===O||null===(j=O.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==P?P:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var H=(0,a.default)(e);if(!(0,i.default)(H))throw new RangeError("Invalid time value");var z=(0,c.default)(H),W=(0,o.default)(H,z),q={firstWeekContainsDate:U,weekStartsOn:V,locale:B,_originalDate:H};return M.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,B.formatLong):e})).join("").match(m).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(v);if(!t)return e;return t[1].replace(y,"'")}(r);var o=s.default[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,u.isProtectedWeekYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,u.isProtectedDayOfYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),o(W,r,B.localize,q);if(i.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")};var i=r(n(7734)),o=r(n(25324)),a=r(n(44557)),s=r(n(92436)),l=r(n(73558)),c=r(n(83974)),u=n(49787),d=r(n(52550)),p=r(n(44145)),h=n(56892),f=r(n(15052)),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;e.exports=t.default},68932:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var i=r(n(14319)),o=r(n(44145));e.exports=t.default},7734:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(1,arguments),!(0,i.default)(e)&&"number"!==typeof e)return!1;var t=(0,o.default)(e);return!isNaN(Number(t))};var i=r(n(68932)),o=r(n(44557)),a=r(n(44145));e.exports=t.default},60477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},54639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},28145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}},e.exports=t.default},84589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}},e.exports=t.default},33261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,r){var i,o=n[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};t.default=r,e.exports=t.default},77512:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(60477)),o={date:(0,i.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=o,e.exports=t.default},54218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(e,t,r,i){return n[e]};t.default=r,e.exports=t.default},77330:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(54639)),o={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,i.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,i.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=o,e.exports=t.default},8630:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(28145)),o={ordinalNumber:(0,r(n(84589)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=o,e.exports=t.default},11035:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(33261)),o=r(n(77512)),a=r(n(54218)),s=r(n(77330)),l=r(n(8630)),c={code:"en-US",formatDistance:i.default,formatLong:o.default,formatRelative:a.default,localize:s.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=c,e.exports=t.default},25324:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,a.default)(t);return(0,i.default)(e,-n)};var i=r(n(38445)),o=r(n(44145)),a=r(n(52550));e.exports=t.default},44557:(e,t,n)=>{"use strict";var r=n(4293).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var i=r(n(14319)),o=r(n(44145));e.exports=t.default},99332:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=r.exec(e);i;){try{n[i[0]]=decodeURIComponent(i[0])}catch(t){var a=o(i[0]);a!==i[0]&&(n[i[0]]=a)}i=r.exec(e)}n["%C2"]="\ufffd";for(var s=Object.keys(n),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),n[c])}return e}(e)}}},65472:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!==typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=C(Array.prototype.forEach),d=C(Array.prototype.pop),p=C(Array.prototype.push),h=C(String.prototype.toLowerCase),f=C(String.prototype.toString),m=C(String.prototype.match),g=C(String.prototype.replace),v=C(String.prototype.indexOf),y=C(String.prototype.trim),b=C(Object.prototype.hasOwnProperty),w=C(RegExp.prototype.test),x=A(TypeError);function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return l(e,t,r)}}function A(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function E(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"===typeof t){const e=i(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function _(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function T(t){const n=s(null);for(const[r,i]of e(t))b(t,r)&&(Array.isArray(i)?n[r]=_(i):i&&"object"===typeof i&&i.constructor===Object?n[r]=T(i):n[r]=i);return n}function S(e,t){for(;null!==e;){const n=i(e,t);if(n){if(n.get)return C(n.get);if("function"===typeof n.value)return C(n.value)}e=r(e)}function n(){return null}return n}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),j=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=a(/<%[\w\W]*|[\w\W]*%>/gm),V=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),K=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:U,TMPLIT_EXPR:V,DATA_ATTR:H,ARIA_ATTR:z,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:G,DOCTYPE_NAME:Y,CUSTOM_ELEMENT:K});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Z=function(){return"undefined"===typeof window?null:window},J=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function $(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>$(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==X.document)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:C,Element:A,NodeFilter:_,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:U,DOMParser:V,trustedTypes:H}=t,z=A.prototype,q=S(z,"cloneNode"),G=S(z,"remove"),K=S(z,"nextSibling"),ee=S(z,"childNodes"),te=S(z,"parentNode");if("function"===typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:ie,createNodeIterator:oe,createDocumentFragment:ae,getElementsByTagName:se}=r,{importNode:le}=i;let ce={};n.isSupported="function"===typeof e&&"function"===typeof te&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=Q;let{IS_ALLOWED_URI:ye}=Q,be=null;const we=E({},[...k,...P,...D,...N,...R]);let xe=null;const Ce=E({},[...O,...j,...M,...L]);let Ae=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,_e=null,Te=!0,Se=!0,ke=!1,Pe=!0,De=!1,Fe=!0,Ne=!1,Ie=!1,Re=!1,Oe=!1,je=!1,Me=!1,Le=!0,Be=!1;const Ue="user-content-";let Ve=!0,He=!1,ze={},We=null;const qe=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ye=E({},["audio","video","img","source","image","track"]);let Ke=null;const Qe=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let $e=Je,et=!1,tt=null;const nt=E({},[Xe,Ze,Je],f);let rt=null;const it=["application/xhtml+xml","text/html"],ot="text/html";let at=null,st=null;const lt=r.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"===typeof e||(e={}),e=T(e),rt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?ot:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?f:h,be=b(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,at):Ce,tt=b(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):nt,Ke=b(e,"ADD_URI_SAFE_ATTR")?E(T(Qe),e.ADD_URI_SAFE_ATTR,at):Qe,Ge=b(e,"ADD_DATA_URI_TAGS")?E(T(Ye),e.ADD_DATA_URI_TAGS,at):Ye,We=b(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,at):qe,Ee=b(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,at):{},_e=b(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,at):{},ze=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Fe=!1!==e.SAFE_FOR_XML,Ne=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Me=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,Ve=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||W,$e=e.NAMESPACE||Je,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Se=!1),je&&(Oe=!0),ze&&(be=E({},R),xe=[],!0===ze.html&&(E(be,k),E(xe,O)),!0===ze.svg&&(E(be,P),E(xe,j),E(xe,L)),!0===ze.svgFilters&&(E(be,D),E(xe,j),E(xe,L)),!0===ze.mathMl&&(E(be,N),E(xe,M),E(xe,L))),e.ADD_TAGS&&(be===we&&(be=T(be)),E(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===Ce&&(xe=T(xe)),E(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&E(Ke,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(We===qe&&(We=T(We)),E(We,e.FORBID_CONTENTS,at)),Ve&&(be["#text"]=!0),Ne&&E(be,["html","head","body"]),be.table&&(E(be,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=J(H,a)),null!==ne&&"string"===typeof re&&(re=ne.createHTML(""));o&&o(e),st=e}},dt=E({},["mi","mo","mn","ms","mtext"]),pt=E({},["foreignobject","annotation-xml"]),ht=E({},["title","style","font","a","script"]),ft=E({},[...P,...D,...F]),mt=E({},[...N,...I]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ft[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!pt[r])&&!(t.namespaceURI===Xe&&!dt[r])&&!mt[n]&&(ht[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){G(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Oe||je)try{vt(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},bt=function(e){let t=null,n=null;if(Re)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&$e===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ne?ne.createHTML(e):e;if($e===Je)try{t=(new V).parseFromString(i,rt)}catch(a){}if(!t||!t.documentElement){t=ie.createDocument($e,"template",null);try{t.documentElement.innerHTML=et?re:i}catch(a){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),$e===Je?se.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:o},wt=function(e){return oe.call(e.ownerDocument||e,e,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof U&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof B)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Ct=function(e){return"function"===typeof C&&e instanceof C},At=function(e,t,r){ce[e]&&u(ce[e],(e=>{e.call(n,t,r,st)}))},Et=function(e){let t=null;if(At("beforeSanitizeElements",e,null),xt(e))return vt(e),!0;const r=at(e.nodeName);if(At("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===X.progressingInstruction)return vt(e),!0;if(Fe&&e.nodeType===X.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Ee[r]){if(!Ee[r]&&Tt(r)){if(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,r))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))return!1}if(Ve&&!We[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=q(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,K(e))}}return vt(e),!0}return e instanceof A&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===X.text&&(t=e.textContent,u([ue,de,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(vt(e),!0)},_t=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(Se&&!_e[t]&&w(he,t));else if(Te&&w(fe,t));else if(!xe[t]||_e[t]){if(!(Tt(e)&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&w(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Ke[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ge[e])if(ke&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&m(e,ve)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let i=t.length;for(;i--;){const a=t[i],{name:s,namespaceURI:l,value:c}=a,p=at(s);let h="value"===s?c:y(c);if(r.attrName=p,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,r),h=r.attrValue,Fe&&w(/((--!?|])>)|<\/(style|title)/i,h)){yt(s,e);continue}if(r.forceKeepAttr)continue;if(yt(s,e),!r.keepAttr)continue;if(!Pe&&w(/\/>/i,h)){yt(s,e);continue}De&&u([ue,de,pe],(e=>{h=g(h,e," ")}));const f=at(e.nodeName);if(_t(f,p,h)){if(!Be||"id"!==p&&"name"!==p||(yt(s,e),h=Ue+h),ne&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(l);else switch(H.getAttributeType(f,p)){case"TrustedHTML":h=ne.createHTML(h);break;case"TrustedScriptURL":h=ne.createScriptURL(h)}try{l?e.setAttributeNS(l,s,h):e.setAttribute(s,h),xt(e)?vt(e):d(n.removed)}catch(o){}}}At("afterSanitizeAttributes",e,null)},kt=function e(t){let n=null;const r=wt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof l&&e(n.content),St(n));At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Ct(e)){if("function"!==typeof e.toString)throw x("toString is not a function");if("string"!==typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||ut(t),n.removed=[],"string"===typeof e&&(He=!1),He){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Ee[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof C)r=bt("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===X.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Oe&&!De&&!Ne&&-1===e.indexOf("<"))return ne&&Me?ne.createHTML(e):e;if(r=bt(e),!r)return Oe?null:Me?re:""}r&&Re&&vt(r.firstChild);const c=wt(He?e:r);for(;a=c.nextNode();)Et(a)||(a.content instanceof l&&kt(a.content),St(a));if(He)return e;if(Oe){if(je)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(i,s,!0)),s}let d=Ne?r.outerHTML:r.innerHTML;return Ne&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(Y,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),De&&u([ue,de,pe],(e=>{d=g(d,e," ")})),ne&&Me?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){st=null,Ie=!1},n.isValidAttribute=function(e,t,n){st||ut({});const r=at(e),i=at(t);return _t(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},n.removeHook=function(e){if(ce[e])return d(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return $()}()},66973:e=>{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"===typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},98043:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"===typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(f&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(f,u,i)})):"undefined"!==typeof i&&s(d,{name:n,newValue:i}));return d}},31945:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},98860:(e,t,n)=>{"use strict";n.d(t,{Kw:()=>Dr,D0:()=>Cr,ED:()=>Pr,lV:()=>Ar,l1:()=>gr,Mt:()=>xr});var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=o(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=s(e[i],t[i],n):r[i]=o(t[i],n)})),r}(e,t,n):o(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};const l=s;const c="object"==typeof global&&global&&global.Object===Object&&global;var u="object"==typeof self&&self&&self.Object===Object&&self;const d=c||u||Function("return this")();const p=d.Symbol;var h=Object.prototype,f=h.hasOwnProperty,m=h.toString,g=p?p.toStringTag:void 0;const v=function(e){var t=f.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(o){}var i=m.call(e);return r&&(t?e[g]=n:delete e[g]),i};var y=Object.prototype.toString;const b=function(e){return y.call(e)};var w=p?p.toStringTag:void 0;const x=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?v(e):b(e)};const C=function(e,t){return function(n){return e(t(n))}};const A=C(Object.getPrototypeOf,Object);const E=function(e){return null!=e&&"object"==typeof e};var _=Function.prototype,T=Object.prototype,S=_.toString,k=T.hasOwnProperty,P=S.call(Object);const D=function(e){if(!E(e)||"[object Object]"!=x(e))return!1;var t=A(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&S.call(n)==P};const F=function(){this.__data__=[],this.size=0};const N=function(e,t){return e===t||e!==e&&t!==t};const I=function(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return-1};var R=Array.prototype.splice;const O=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():R.call(t,n,1),--this.size,!0)};const j=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]};const M=function(e){return I(this.__data__,e)>-1};const L=function(e,t){var n=this.__data__,r=I(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}B.prototype.clear=F,B.prototype.delete=O,B.prototype.get=j,B.prototype.has=M,B.prototype.set=L;const U=B;const V=function(){this.__data__=new U,this.size=0};const H=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const z=function(e){return this.__data__.get(e)};const W=function(e){return this.__data__.has(e)};const q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const G=function(e){if(!q(e))return!1;var t=x(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Y=d["__core-js_shared__"];var K=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const Q=function(e){return!!K&&K in e};var X=Function.prototype.toString;const Z=function(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var J=/^\[object .+?Constructor\]$/,$=Function.prototype,ee=Object.prototype,te=$.toString,ne=ee.hasOwnProperty,re=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ie=function(e){return!(!q(e)||Q(e))&&(G(e)?re:J).test(Z(e))};const oe=function(e,t){return null==e?void 0:e[t]};const ae=function(e,t){var n=oe(e,t);return ie(n)?n:void 0};const se=ae(d,"Map");const le=ae(Object,"create");const ce=function(){this.__data__=le?le(null):{},this.size=0};const ue=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var de=Object.prototype.hasOwnProperty;const pe=function(e){var t=this.__data__;if(le){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return de.call(t,e)?t[e]:void 0};var he=Object.prototype.hasOwnProperty;const fe=function(e){var t=this.__data__;return le?void 0!==t[e]:he.call(t,e)};const me=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?"__lodash_hash_undefined__":t,this};function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ge.prototype.clear=ce,ge.prototype.delete=ue,ge.prototype.get=pe,ge.prototype.has=fe,ge.prototype.set=me;const ve=ge;const ye=function(){this.size=0,this.__data__={hash:new ve,map:new(se||U),string:new ve}};const be=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const we=function(e,t){var n=e.__data__;return be(t)?n["string"==typeof t?"string":"hash"]:n.map};const xe=function(e){var t=we(this,e).delete(e);return this.size-=t?1:0,t};const Ce=function(e){return we(this,e).get(e)};const Ae=function(e){return we(this,e).has(e)};const Ee=function(e,t){var n=we(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_e.prototype.clear=ye,_e.prototype.delete=xe,_e.prototype.get=Ce,_e.prototype.has=Ae,_e.prototype.set=Ee;const Te=_e;const Se=function(e,t){var n=this.__data__;if(n instanceof U){var r=n.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Te(r)}return n.set(e,t),this.size=n.size,this};function ke(e){var t=this.__data__=new U(e);this.size=t.size}ke.prototype.clear=V,ke.prototype.delete=H,ke.prototype.get=z,ke.prototype.has=W,ke.prototype.set=Se;const Pe=ke;const De=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const Fe=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ne=function(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ie=Object.prototype.hasOwnProperty;const Re=function(e,t,n){var r=e[t];Ie.call(e,t)&&N(r,n)&&(void 0!==n||t in e)||Ne(e,t,n)};const Oe=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Ne(n,s,l):Re(n,s,l)}return n};const je=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Me=function(e){return E(e)&&"[object Arguments]"==x(e)};var Le=Object.prototype,Be=Le.hasOwnProperty,Ue=Le.propertyIsEnumerable;const Ve=Me(function(){return arguments}())?Me:function(e){return E(e)&&Be.call(e,"callee")&&!Ue.call(e,"callee")};const He=Array.isArray;const ze=function(){return!1};var We="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=We&&"object"==typeof module&&module&&!module.nodeType&&module,Ge=qe&&qe.exports===We?d.Buffer:void 0;const Ye=(Ge?Ge.isBuffer:void 0)||ze;var Ke=/^(?:0|[1-9]\d*)$/;const Qe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ke.test(e))&&e>-1&&e%1==0&&e<t};const Xe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;const Je=function(e){return E(e)&&Xe(e.length)&&!!Ze[x(e)]};const $e=function(e){return function(t){return e(t)}};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,tt=et&&"object"==typeof module&&module&&!module.nodeType&&module,nt=tt&&tt.exports===et&&c.process;const rt=function(){try{var e=tt&&tt.require&&tt.require("util").types;return e||nt&&nt.binding&&nt.binding("util")}catch(t){}}();var it=rt&&rt.isTypedArray;const ot=it?$e(it):Je;var at=Object.prototype.hasOwnProperty;const st=function(e,t){var n=He(e),r=!n&&Ve(e),i=!n&&!r&&Ye(e),o=!n&&!r&&!i&&ot(e),a=n||r||i||o,s=a?je(e.length,String):[],l=s.length;for(var c in e)!t&&!at.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qe(c,l))||s.push(c);return s};var lt=Object.prototype;const ct=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lt)};const ut=C(Object.keys,Object);var dt=Object.prototype.hasOwnProperty;const pt=function(e){if(!ct(e))return ut(e);var t=[];for(var n in Object(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const ht=function(e){return null!=e&&Xe(e.length)&&!G(e)};const ft=function(e){return ht(e)?st(e):pt(e)};const mt=function(e,t){return e&&Oe(t,ft(t),e)};const gt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var vt=Object.prototype.hasOwnProperty;const yt=function(e){if(!q(e))return gt(e);var t=ct(e),n=[];for(var r in e)("constructor"!=r||!t&&vt.call(e,r))&&n.push(r);return n};const bt=function(e){return ht(e)?st(e,!0):yt(e)};const wt=function(e,t){return e&&Oe(t,bt(t),e)};var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=xt&&"object"==typeof module&&module&&!module.nodeType&&module,At=Ct&&Ct.exports===xt?d.Buffer:void 0,Et=At?At.allocUnsafe:void 0;const _t=function(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r};const Tt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const St=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};const kt=function(){return[]};var Pt=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols;const Ft=Dt?function(e){return null==e?[]:(e=Object(e),St(Dt(e),(function(t){return Pt.call(e,t)})))}:kt;const Nt=function(e,t){return Oe(e,Ft(e),t)};const It=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};const Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)It(t,Ft(e)),e=A(e);return t}:kt;const Ot=function(e,t){return Oe(e,Rt(e),t)};const jt=function(e,t,n){var r=t(e);return He(e)?r:It(r,n(e))};const Mt=function(e){return jt(e,ft,Ft)};const Lt=function(e){return jt(e,bt,Rt)};const Bt=ae(d,"DataView");const Ut=ae(d,"Promise");const Vt=ae(d,"Set");const Ht=ae(d,"WeakMap");var zt="[object Map]",Wt="[object Promise]",qt="[object Set]",Gt="[object WeakMap]",Yt="[object DataView]",Kt=Z(Bt),Qt=Z(se),Xt=Z(Ut),Zt=Z(Vt),Jt=Z(Ht),$t=x;(Bt&&$t(new Bt(new ArrayBuffer(1)))!=Yt||se&&$t(new se)!=zt||Ut&&$t(Ut.resolve())!=Wt||Vt&&$t(new Vt)!=qt||Ht&&$t(new Ht)!=Gt)&&($t=function(e){var t=x(e),n="[object Object]"==t?e.constructor:void 0,r=n?Z(n):"";if(r)switch(r){case Kt:return Yt;case Qt:return zt;case Xt:return Wt;case Zt:return qt;case Jt:return Gt}return t});const en=$t;var tn=Object.prototype.hasOwnProperty;const nn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tn.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const rn=d.Uint8Array;const on=function(e){var t=new e.constructor(e.byteLength);return new rn(t).set(new rn(e)),t};const an=function(e,t){var n=t?on(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var sn=/\w*$/;const ln=function(e){var t=new e.constructor(e.source,sn.exec(e));return t.lastIndex=e.lastIndex,t};var cn=p?p.prototype:void 0,un=cn?cn.valueOf:void 0;const dn=function(e){return un?Object(un.call(e)):{}};const pn=function(e,t){var n=t?on(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const hn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return on(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return an(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return pn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return ln(e);case"[object Symbol]":return dn(e)}};var fn=Object.create;const mn=function(){function e(){}return function(t){if(!q(t))return{};if(fn)return fn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const gn=function(e){return"function"!=typeof e.constructor||ct(e)?{}:mn(A(e))};const vn=function(e){return E(e)&&"[object Map]"==en(e)};var yn=rt&&rt.isMap;const bn=yn?$e(yn):vn;const wn=function(e){return E(e)&&"[object Set]"==en(e)};var xn=rt&&rt.isSet;const Cn=xn?$e(xn):wn;var An="[object Arguments]",En="[object Function]",_n="[object Object]",Tn={};Tn[An]=Tn["[object Array]"]=Tn["[object ArrayBuffer]"]=Tn["[object DataView]"]=Tn["[object Boolean]"]=Tn["[object Date]"]=Tn["[object Float32Array]"]=Tn["[object Float64Array]"]=Tn["[object Int8Array]"]=Tn["[object Int16Array]"]=Tn["[object Int32Array]"]=Tn["[object Map]"]=Tn["[object Number]"]=Tn[_n]=Tn["[object RegExp]"]=Tn["[object Set]"]=Tn["[object String]"]=Tn["[object Symbol]"]=Tn["[object Uint8Array]"]=Tn["[object Uint8ClampedArray]"]=Tn["[object Uint16Array]"]=Tn["[object Uint32Array]"]=!0,Tn["[object Error]"]=Tn[En]=Tn["[object WeakMap]"]=!1;const Sn=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!q(t))return t;var d=He(t);if(d){if(s=nn(t),!l)return Tt(t,s)}else{var p=en(t),h=p==En||"[object GeneratorFunction]"==p;if(Ye(t))return _t(t,l);if(p==_n||p==An||h&&!o){if(s=c||h?{}:gn(t),!l)return c?Ot(t,wt(s,t)):Nt(t,mt(s,t))}else{if(!Tn[p])return o?t:{};s=hn(t,p,l)}}a||(a=new Pe);var f=a.get(t);if(f)return f;a.set(t,s),Cn(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):bn(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=d?void 0:(u?c?Lt:Mt:c?bt:ft)(t);return De(m||t,(function(i,o){m&&(i=t[o=i]),Re(s,o,e(i,n,r,o,t,a))})),s};const kn=function(e){return Sn(e,5)};var Pn=n(61462),Dn=n(36813),Fn=n.n(Dn),Nn=n(77623);const In=function(e){return Sn(e,4)};const Rn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};const On=function(e){return"symbol"==typeof e||E(e)&&"[object Symbol]"==x(e)};function jn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(jn.Cache||Te),n}jn.Cache=Te;const Mn=jn;var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bn=/\\(\\)?/g;const Un=function(e){var t=Mn(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ln,(function(e,n,r,i){t.push(r?i.replace(Bn,"$1"):n||e)})),t}));const Vn=function(e){if("string"==typeof e||On(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Hn=p?p.prototype:void 0,zn=Hn?Hn.toString:void 0;const Wn=function e(t){if("string"==typeof t)return t;if(He(t))return Rn(t,e)+"";if(On(t))return zn?zn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const qn=function(e){return null==e?"":Wn(e)};const Gn=function(e){return He(e)?Rn(e,Vn):On(e)?[e]:Tt(Un(qn(e)))};var Yn=n(35100),Kn=n.n(Yn);function Qn(){return Qn=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},Qn.apply(this,arguments)}function Xn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zn(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}function Jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $n=(0,Pn.createContext)(void 0);$n.displayName="FormikContext";var er=$n.Provider,tr=$n.Consumer;function nr(){var e=(0,Pn.useContext)($n);return e||(0,Nn.A)(!1),e}var rr=function(e){return Array.isArray(e)&&0===e.length},ir=function(e){return"function"===typeof e},or=function(e){return null!==e&&"object"===typeof e},ar=function(e){return String(Math.floor(Number(e)))===e},sr=function(e){return"[object String]"===Object.prototype.toString.call(e)},lr=function(e){return 0===Pn.Children.count(e)},cr=function(e){return or(e)&&ir(e.then)};function ur(e,t,n,r){void 0===r&&(r=0);for(var i=Gn(t);e&&r<i.length;)e=e[i[r++]];return r===i.length||e?void 0===e?n:e:n}function dr(e,t,n){for(var r=In(e),i=r,o=0,a=Gn(t);o<a.length-1;o++){var s=a[o],l=ur(e,a.slice(0,o+1));if(l&&(or(l)||Array.isArray(l)))i=i[s]=In(l);else{var c=a[o+1];i=i[s]=ar(c)&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function pr(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];or(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},pr(s,t,n,r[a])):r[a]=t}return r}var hr={},fr={};function mr(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,i=void 0===r||r,o=e.validateOnMount,a=void 0!==o&&o,s=e.isInitialValid,c=e.enableReinitialize,u=void 0!==c&&c,d=e.onSubmit,p=Zn(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Qn({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),f=(0,Pn.useRef)(h.initialValues),m=(0,Pn.useRef)(h.initialErrors||hr),g=(0,Pn.useRef)(h.initialTouched||fr),v=(0,Pn.useRef)(h.initialStatus),y=(0,Pn.useRef)(!1),b=(0,Pn.useRef)({});(0,Pn.useEffect)((function(){return y.current=!0,function(){y.current=!1}}),[]);var w=(0,Pn.useState)(0)[1],x=(0,Pn.useRef)({values:kn(h.initialValues),errors:kn(h.initialErrors)||hr,touched:kn(h.initialTouched)||fr,status:kn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=x.current,A=(0,Pn.useCallback)((function(e){var t=x.current;x.current=function(e,t){switch(t.type){case"SET_VALUES":return Qn({},e,{values:t.payload});case"SET_TOUCHED":return Qn({},e,{touched:t.payload});case"SET_ERRORS":return Fn()(e.errors,t.payload)?e:Qn({},e,{errors:t.payload});case"SET_STATUS":return Qn({},e,{status:t.payload});case"SET_ISSUBMITTING":return Qn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Qn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Qn({},e,{values:dr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Qn({},e,{touched:dr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Qn({},e,{errors:dr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Qn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Qn({},e,{touched:pr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Qn({},e,{isSubmitting:!1});default:return e}}(t,e),t!==x.current&&w((function(e){return e+1}))}),[]),E=(0,Pn.useCallback)((function(e,t){return new Promise((function(n,r){var i=h.validate(e,t);null==i?n(hr):cr(i)?i.then((function(e){n(e||hr)}),(function(e){r(e)})):n(i)}))}),[h.validate]),_=(0,Pn.useCallback)((function(e,t){var n=h.validationSchema,r=ir(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var i=vr(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r||i})}(e,r);return new Promise((function(e,t){i.then((function(){e(hr)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return dr(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;ur(t,a.path)||(t=dr(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[h.validationSchema]),T=(0,Pn.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),S=(0,Pn.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return ir(b.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,ur(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=dr(e,t[r],n)),e}),{})}))}),[T]),k=(0,Pn.useCallback)((function(e){return Promise.all([S(e),h.validationSchema?_(e):{},h.validate?E(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return l.all([t,n,r],{arrayMerge:yr})}))}),[h.validate,h.validationSchema,S,E,_]),P=wr((function(e){return void 0===e&&(e=C.values),A({type:"SET_ISVALIDATING",payload:!0}),k(e).then((function(e){return y.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:e})),e}))}));(0,Pn.useEffect)((function(){a&&!0===y.current&&Fn()(f.current,h.initialValues)&&P(f.current)}),[a,P]);var D=(0,Pn.useCallback)((function(e){var t=e&&e.values?e.values:f.current,n=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:h.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:h.initialStatus;f.current=t,m.current=n,g.current=r,v.current=i;var o=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(C.values,Q);cr(a)?a.then(o):o()}else o()}),[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);(0,Pn.useEffect)((function(){!0!==y.current||Fn()(f.current,h.initialValues)||u&&(f.current=h.initialValues,D(),a&&P(f.current))}),[u,h.initialValues,D,a,P]),(0,Pn.useEffect)((function(){u&&!0===y.current&&!Fn()(m.current,h.initialErrors)&&(m.current=h.initialErrors||hr,A({type:"SET_ERRORS",payload:h.initialErrors||hr}))}),[u,h.initialErrors]),(0,Pn.useEffect)((function(){u&&!0===y.current&&!Fn()(g.current,h.initialTouched)&&(g.current=h.initialTouched||fr,A({type:"SET_TOUCHED",payload:h.initialTouched||fr}))}),[u,h.initialTouched]),(0,Pn.useEffect)((function(){u&&!0===y.current&&!Fn()(v.current,h.initialStatus)&&(v.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var F=wr((function(e){if(b.current[e]&&ir(b.current[e].validate)){var t=ur(C.values,e),n=b.current[e].validate(t);return cr(n)?(A({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),A({type:"SET_ISVALIDATING",payload:!1})}))):(A({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(A({type:"SET_ISVALIDATING",payload:!0}),_(C.values,e).then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:ur(t,e)}}),A({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),N=(0,Pn.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),I=(0,Pn.useCallback)((function(e){delete b.current[e]}),[]),R=wr((function(e,t){return A({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?P(C.values):Promise.resolve()})),O=(0,Pn.useCallback)((function(e){A({type:"SET_ERRORS",payload:e})}),[]),j=wr((function(e,t){var r=ir(e)?e(C.values):e;return A({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?P(r):Promise.resolve()})),M=(0,Pn.useCallback)((function(e,t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),L=wr((function(e,t,r){return A({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?P(dr(C.values,e,t)):Promise.resolve()})),B=(0,Pn.useCallback)((function(e,t){var n,r=t,i=e;if(!sr(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=(o.outerHTML,o.options),p=o.multiple;r=t||(s||l),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(ur(C.values,r),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}r&&L(r,i)}),[L,C.values]),U=wr((function(e){if(sr(e))return function(t){return B(t,e)};B(e)})),V=wr((function(e,t,n){return void 0===t&&(t=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?P(C.values):Promise.resolve()})),H=(0,Pn.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));V(o,!0)}),[V]),z=wr((function(e){if(sr(e))return function(t){return H(t,e)};H(e)})),W=(0,Pn.useCallback)((function(e){ir(e)?A({type:"SET_FORMIK_STATE",payload:e}):A({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),q=(0,Pn.useCallback)((function(e){A({type:"SET_STATUS",payload:e})}),[]),G=(0,Pn.useCallback)((function(e){A({type:"SET_ISSUBMITTING",payload:e})}),[]),Y=wr((function(){return A({type:"SUBMIT_ATTEMPT"}),P().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=X()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return y.current&&A({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(y.current)throw A({type:"SUBMIT_FAILURE"}),e}))}if(y.current&&(A({type:"SUBMIT_FAILURE"}),t))throw e}))})),K=wr((function(e){e&&e.preventDefault&&ir(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ir(e.stopPropagation)&&e.stopPropagation(),Y().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Q={resetForm:D,validateForm:P,validateField:F,setErrors:O,setFieldError:M,setFieldTouched:V,setFieldValue:L,setStatus:q,setSubmitting:G,setTouched:R,setValues:j,setFormikState:W,submitForm:Y},X=wr((function(){return d(C.values,Q)})),Z=wr((function(e){e&&e.preventDefault&&ir(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ir(e.stopPropagation)&&e.stopPropagation(),D()})),J=(0,Pn.useCallback)((function(e){return{value:ur(C.values,e),error:ur(C.errors,e),touched:!!ur(C.touched,e),initialValue:ur(f.current,e),initialTouched:!!ur(g.current,e),initialError:ur(m.current,e)}}),[C.errors,C.touched,C.values]),$=(0,Pn.useCallback)((function(e){return{setValue:function(t,n){return L(e,t,n)},setTouched:function(t,n){return V(e,t,n)},setError:function(t){return M(e,t)}}}),[L,V,M]),ee=(0,Pn.useCallback)((function(e){var t=or(e),n=t?e.name:e,r=ur(C.values,n),i={name:n,value:r,onChange:U,onBlur:z};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[z,U,C.values]),te=(0,Pn.useMemo)((function(){return!Fn()(f.current,C.values)}),[f.current,C.values]),ne=(0,Pn.useMemo)((function(){return"undefined"!==typeof s?te?C.errors&&0===Object.keys(C.errors).length:!1!==s&&ir(s)?s(h):s:C.errors&&0===Object.keys(C.errors).length}),[s,te,C.errors,h]);return Qn({},C,{initialValues:f.current,initialErrors:m.current,initialTouched:g.current,initialStatus:v.current,handleBlur:z,handleChange:U,handleReset:Z,handleSubmit:K,resetForm:D,setErrors:O,setFormikState:W,setFieldTouched:V,setFieldValue:L,setFieldError:M,setStatus:q,setSubmitting:G,setTouched:R,setValues:j,submitForm:Y,validateForm:P,validateField:F,isValid:ne,dirty:te,unregisterField:I,registerField:N,getFieldProps:ee,getFieldMeta:J,getFieldHelpers:$,validateOnBlur:i,validateOnChange:n,validateOnMount:a})}function gr(e){var t=mr(e),n=e.component,r=e.children,i=e.render,o=e.innerRef;return(0,Pn.useImperativeHandle)(o,(function(){return t})),(0,Pn.createElement)(er,{value:t},n?(0,Pn.createElement)(n,t):i?i(t):r?ir(r)?r(t):lr(r)?null:Pn.Children.only(r):null)}function vr(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||D(e)?vr(e):""!==e?e:void 0})):D(e[r])?t[r]=vr(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function yr(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?l(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=l(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var br="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?Pn.useLayoutEffect:Pn.useEffect;function wr(e){var t=(0,Pn.useRef)(e);return br((function(){t.current=e})),(0,Pn.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function xr(e){var t=nr(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,o=t.registerField,a=t.unregisterField,s=or(e)?e:{name:e},l=s.name,c=s.validate;(0,Pn.useEffect)((function(){return l&&o(l,{validate:c}),function(){l&&a(l)}}),[o,a,l,c]),l||(0,Nn.A)(!1);var u=(0,Pn.useMemo)((function(){return i(l)}),[i,l]);return[n(s),r(l),u]}function Cr(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,a=e.component,s=e.className,l=Zn(e,["validate","name","render","children","as","component","className"]),c=Zn(nr(),["validate","validationSchema"]);var u=c.registerField,d=c.unregisterField;(0,Pn.useEffect)((function(){return u(n,{validate:t}),function(){d(n)}}),[u,d,n,t]);var p=c.getFieldProps(Qn({name:n},l)),h=c.getFieldMeta(n),f={field:p,form:c};if(r)return r(Qn({},f,{meta:h}));if(ir(i))return i(Qn({},f,{meta:h}));if(a){if("string"===typeof a){var m=l.innerRef,g=Zn(l,["innerRef"]);return(0,Pn.createElement)(a,Qn({ref:m},p,g,{className:s}),i)}return(0,Pn.createElement)(a,Qn({field:p,form:c},l,{className:s}),i)}var v=o||"input";if("string"===typeof v){var y=l.innerRef,b=Zn(l,["innerRef"]);return(0,Pn.createElement)(v,Qn({ref:y},p,b,{className:s}),i)}return(0,Pn.createElement)(v,Qn({},p,l,{className:s}),i)}var Ar=(0,Pn.forwardRef)((function(e,t){var n=e.action,r=Zn(e,["action"]),i=null!=n?n:"#",o=nr(),a=o.handleReset,s=o.handleSubmit;return(0,Pn.createElement)("form",Qn({onSubmit:s,ref:t,onReset:a,action:i},r))}));function Er(e){var t=function(t){return(0,Pn.createElement)(tr,null,(function(n){return n||(0,Nn.A)(!1),(0,Pn.createElement)(e,Qn({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Kn()(t,e)}Ar.displayName="Form";var _r=function(e,t,n){var r=Tr(e);return r.splice(t,0,n),r},Tr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Qn({},e,{length:t+1}))}return[]},Sr=function(e,t){var n="function"===typeof e?e:t;return function(e){if(Array.isArray(e)||or(e)){var t=Tr(e);return n(t)}return e}},kr=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i=Sr(r,e),a=Sr(t,e),s=dr(n.values,o,e(ur(n.values,o))),l=r?i(ur(n.errors,o)):void 0,c=t?a(ur(n.touched,o)):void 0;return rr(l)&&(l=void 0),rr(c)&&(c=void 0),Qn({},n,{values:s,errors:r?dr(n.errors,o,l):n.errors,touched:t?dr(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Tr(t),[kn(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Tr(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Tr(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return _r(n,e,t)}),(function(t){return _r(t,e,null)}),(function(t){return _r(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Tr(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Jn(n)),n.pop=n.pop.bind(Jn(n)),n}Xn(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Fn()(ur(e.formik.values,e.name),ur(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Tr(n):[];return t||(t=r[e]),ir(r.splice)&&r.splice(e,1),ir(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,a=Qn({},e,{form:Zn(t.formik,["validate","validationSchema"]),name:o});return n?(0,Pn.createElement)(n,a):r?r(a):i?"function"===typeof i?i(a):lr(i)?null:Pn.Children.only(i):null},t}(Pn.Component);kr.defaultProps={validateOnChange:!0};var Pr=Er(kr),Dr=Er(function(e){function t(){return e.apply(this,arguments)||this}Xn(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return ur(this.props.formik.errors,this.props.name)!==ur(e.formik.errors,this.props.name)||ur(this.props.formik.touched,this.props.name)!==ur(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,i=e.children,o=e.name,a=Zn(e,["component","formik","render","children","name"]),s=ur(n.touched,o),l=ur(n.errors,o);return s&&l?r?ir(r)?r(l):null:i?ir(i)?i(l):null:t?(0,Pn.createElement)(t,a,l):l:null},t}(Pn.Component))},35100:(e,t,n)=>{"use strict";var r=n(64926),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},55234:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},64926:(e,t,n)=>{"use strict";e.exports=n(55234)},24153:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},11286:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function C(){var e=f(),n=y(i);if(n){if(x(),!y(o))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},35165:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},48532:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},51598:(e,t,n)=>{e.exports=self.fetch||(self.fetch=n(60796).default||n(60796))},58956:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",C="[object Set]",A="[object String]",E="[object Symbol]",_="[object Undefined]",T="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",P=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,F={};F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F[s]=F[l]=F[S]=F[u]=F[k]=F[d]=F[p]=F[h]=F[m]=F[g]=F[y]=F[x]=F[C]=F[A]=F[T]=!1;var N="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,R=N||I||Function("return this")(),O=t&&!t.nodeType&&t,j=O&&e&&!e.nodeType&&e,M=j&&j.exports===O,L=M&&N.process,B=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),U=B&&B.isTypedArray;function V(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var W,q,G=Array.prototype,Y=Function.prototype,K=Object.prototype,Q=R["__core-js_shared__"],X=Y.toString,Z=K.hasOwnProperty,J=function(){var e=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$=K.toString,ee=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=M?R.Buffer:void 0,ne=R.Symbol,re=R.Uint8Array,ie=K.propertyIsEnumerable,oe=G.splice,ae=ne?ne.toStringTag:void 0,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=(W=Object.keys,q=Object,function(e){return W(q(e))}),ue=Le(R,"DataView"),de=Le(R,"Map"),pe=Le(R,"Promise"),he=Le(R,"Set"),fe=Le(R,"WeakMap"),me=Le(Object,"create"),ge=He(ue),ve=He(de),ye=He(pe),be=He(he),we=He(fe),xe=ne?ne.prototype:void 0,Ce=xe?xe.valueOf:void 0;function Ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _e;++t<n;)this.add(e[t])}function Se(e){var t=this.__data__=new Ee(e);this.size=t.size}function ke(e,t){var n=qe(e),r=!n&&We(e),i=!n&&!r&&Ge(e),o=!n&&!r&&!i&&Ze(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Z.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ve(c,l))||s.push(c);return s}function Pe(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function De(e){return null==e?void 0===e?_:v:ae&&ae in Object(e)?function(e){var t=Z.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(o){}var i=$.call(e);r&&(t?e[ae]=n:delete e[ae]);return i}(e):function(e){return $.call(e)}(e)}function Fe(e){return Xe(e)&&De(e)==s}function Ne(e,t,n,r,a){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!==e&&t!==t:function(e,t,n,r,a,c){var h=qe(e),f=qe(t),v=h?l:Ue(e),b=f?l:Ue(t),w=(v=v==s?y:v)==y,_=(b=b==s?y:b)==y,T=v==b;if(T&&Ge(e)){if(!Ge(t))return!1;h=!0,w=!1}if(T&&!w)return c||(c=new Se),h||Ze(e)?Oe(e,t,n,r,a,c):function(e,t,n,r,a,s,l){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!s(new re(e),new re(t)));case u:case d:case g:return ze(+e,+t);case p:return e.name==t.name&&e.message==t.message;case x:case A:return e==t+"";case m:var c=H;case C:var h=r&i;if(c||(c=z),e.size!=t.size&&!h)return!1;var f=l.get(e);if(f)return f==t;r|=o,l.set(e,t);var v=Oe(c(e),c(t),r,a,s,l);return l.delete(e),v;case E:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,v,n,r,a,c);if(!(n&i)){var P=w&&Z.call(e,"__wrapped__"),D=_&&Z.call(t,"__wrapped__");if(P||D){var F=P?e.value():e,N=D?t.value():t;return c||(c=new Se),a(F,N,n,r,c)}}if(!T)return!1;return c||(c=new Se),function(e,t,n,r,o,a){var s=n&i,l=je(e),c=l.length,u=je(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:Z.call(t,h)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++p<c;){var v=e[h=l[p]],y=t[h];if(r)var b=s?r(y,v,h,t,e,a):r(v,y,h,e,t,a);if(!(void 0===b?v===y||o(v,y,n,r,a):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,a,c)}(e,t,n,r,Ne,a))}function Ie(e){return!(!Qe(e)||function(e){return!!J&&J in e}(e))&&(Ye(e)?ee:P).test(He(e))}function Re(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||K;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Oe(e,t,n,r,a,s){var l=n&i,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=n&o?new Te:void 0;for(s.set(e,t),s.set(t,e);++p<c;){var m=e[p],g=t[p];if(r)var v=l?r(g,m,p,t,e,s):r(m,g,p,e,t,s);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!V(t,(function(e,t){if(i=t,!f.has(i)&&(m===e||a(m,e,n,r,s)))return f.push(t);var i}))){h=!1;break}}else if(m!==g&&!a(m,g,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function je(e){return function(e,t,n){var r=t(e);return qe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Je,Be)}function Me(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=me?me(null):{},this.size=0},Ae.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ae.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Z.call(t,e)},Ae.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=Pe(t,e);return!(n<0)&&(n==t.length-1?t.pop():oe.call(t,n,1),--this.size,!0)},Ee.prototype.get=function(e){var t=this.__data__,n=Pe(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Pe(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Pe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_e.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(de||Ee),string:new Ae}},_e.prototype.delete=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},_e.prototype.get=function(e){return Me(this,e).get(e)},_e.prototype.has=function(e){return Me(this,e).has(e)},_e.prototype.set=function(e,t){var n=Me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,r),this},Te.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new Ee,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _e(r)}return n.set(e,t),this.size=n.size,this};var Be=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(se(e),(function(t){return ie.call(e,t)})))}:function(){return[]},Ue=De;function Ve(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function He(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!==e&&t!==t}(ue&&Ue(new ue(new ArrayBuffer(1)))!=k||de&&Ue(new de)!=m||pe&&Ue(pe.resolve())!=b||he&&Ue(new he)!=C||fe&&Ue(new fe)!=T)&&(Ue=function(e){var t=De(e),n=t==y?e.constructor:void 0,r=n?He(n):"";if(r)switch(r){case ge:return k;case ve:return m;case ye:return b;case be:return C;case we:return T}return t});var We=Fe(function(){return arguments}())?Fe:function(e){return Xe(e)&&Z.call(e,"callee")&&!ie.call(e,"callee")},qe=Array.isArray;var Ge=le||function(){return!1};function Ye(e){if(!Qe(e))return!1;var t=De(e);return t==h||t==f||t==c||t==w}function Ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==typeof e}var Ze=U?function(e){return function(t){return e(t)}}(U):function(e){return Xe(e)&&Ke(e.length)&&!!F[De(e)]};function Je(e){return null!=(t=e)&&Ke(t.length)&&!Ye(t)?ke(e):Re(e);var t}e.exports=function(e,t){return Ne(e,t)}},83562:(e,t,n)=>{var r=n(95652)(n(31455),"DataView");e.exports=r},7887:(e,t,n)=>{var r=n(94454),i=n(89728),o=n(44675),a=n(11215),s=n(16935);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},23253:(e,t,n)=>{var r=n(9304),i=n(73646),o=n(25),a=n(86133),s=n(9373);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},23697:(e,t,n)=>{var r=n(95652)(n(31455),"Map");e.exports=r},99835:(e,t,n)=>{var r=n(84122),i=n(62588),o=n(14703),a=n(62931),s=n(85643);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38418:(e,t,n)=>{var r=n(95652)(n(31455),"Promise");e.exports=r},71911:(e,t,n)=>{var r=n(95652)(n(31455),"Set");e.exports=r},40901:(e,t,n)=>{var r=n(99835),i=n(27834),o=n(485);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},44823:(e,t,n)=>{var r=n(23253),i=n(69470),o=n(47352),a=n(65883),s=n(6807),l=n(12351);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},81363:(e,t,n)=>{var r=n(31455).Symbol;e.exports=r},97390:(e,t,n)=>{var r=n(31455).Uint8Array;e.exports=r},42265:(e,t,n)=>{var r=n(95652)(n(31455),"WeakMap");e.exports=r},371:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},65508:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},35461:(e,t,n)=>{var r=n(2606),i=n(76506),o=n(38559),a=n(15026),s=n(21611),l=n(4929),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},34522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},28326:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},18180:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},50402:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},50460:e=>{e.exports=function(e){return e.split("")}},89787:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},82611:(e,t,n)=>{var r=n(68390);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},50971:(e,t,n)=>{var r=n(6215);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},82070:(e,t,n)=>{var r=n(35285);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},6215:(e,t,n)=>{var r=n(41087),i=n(71387)(r);e.exports=i},98239:(e,t,n)=>{var r=n(86195)();e.exports=r},41087:(e,t,n)=>{var r=n(98239),i=n(29908);e.exports=function(e,t){return e&&r(e,t,i)}},29676:(e,t,n)=>{var r=n(76711),i=n(23023);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},27073:(e,t,n)=>{var r=n(28326),i=n(38559);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},97534:(e,t,n)=>{var r=n(81363),i=n(13493),o=n(60256),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},6248:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},34071:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},19180:(e,t,n)=>{var r=n(97534),i=n(70856);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},17700:(e,t,n)=>{var r=n(60042),i=n(70856);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},60042:(e,t,n)=>{var r=n(44823),i=n(79909),o=n(17920),a=n(87531),s=n(32531),l=n(38559),c=n(15026),u=n(4929),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?p:s(e),x=b?p:s(t),C=(w=w==d?h:w)==h,A=(x=x==d?h:x)==h,E=w==x;if(E&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(E&&!C)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var _=C&&f.call(e,"__wrapped__"),T=A&&f.call(t,"__wrapped__");if(_||T){var S=_?e.value():e,k=T?t.value():t;return v||(v=new r),g(S,k,n,m,v)}}return!!E&&(v||(v=new r),a(e,t,n,m,g,v))}},73793:(e,t,n)=>{var r=n(44823),i=n(17700);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(o)var f=o(d,p,u,e,t,h);if(!(void 0===f?i(p,d,3,o,h):f))return!1}}return!0}},32357:(e,t,n)=>{var r=n(56824),i=n(59266),o=n(82943),a=n(62307),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},55407:(e,t,n)=>{var r=n(97534),i=n(68712),o=n(70856),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},52735:(e,t,n)=>{var r=n(37473),i=n(68272),o=n(6018),a=n(38559),s=n(76961);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},38350:(e,t,n)=>{var r=n(12761),i=n(86672),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},37473:(e,t,n)=>{var r=n(73793),i=n(1582),o=n(5163);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},68272:(e,t,n)=>{var r=n(17700),i=n(35954),o=n(97265),a=n(91668),s=n(2314),l=n(5163),c=n(23023);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},13879:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},26089:(e,t,n)=>{var r=n(29676);e.exports=function(e){return function(t){return r(t,e)}}},93410:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},93946:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},2606:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},43270:(e,t,n)=>{var r=n(81363),i=n(34522),o=n(38559),a=n(16816),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},59098:(e,t,n)=>{var r=n(47734),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},88607:e=>{e.exports=function(e){return function(t){return e(t)}}},29805:e=>{e.exports=function(e,t){return e.has(t)}},76711:(e,t,n)=>{var r=n(38559),i=n(91668),o=n(88940),a=n(66112);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},43772:(e,t,n)=>{var r=n(93946);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},49363:(e,t,n)=>{var r=n(31455)["__core-js_shared__"];e.exports=r},45414:(e,t,n)=>{var r=n(371),i=n(50971),o=n(52735),a=n(38559);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,c=t?t():{};return l(n,e,o(s,2),c)}}},71387:(e,t,n)=>{var r=n(83784);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},86195:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},59865:(e,t,n)=>{var r=n(43772),i=n(48888),o=n(81766),a=n(66112);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},90413:(e,t,n)=>{var r=n(18180),i=n(11510),o=n(16703),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},15685:(e,t,n)=>{var r=n(93410)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},35285:(e,t,n)=>{var r=n(95652),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},79909:(e,t,n)=>{var r=n(40901),i=n(50402),o=n(29805);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var b=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},17920:(e,t,n)=>{var r=n(81363),i=n(97390),o=n(68390),a=n(79909),s=n(23079),l=n(9173),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},87531:(e,t,n)=>{var r=n(33844),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:i.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],y=t[p];if(o)var b=l?o(y,v,p,t,e,s):o(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},55738:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},33844:(e,t,n)=>{var r=n(27073),i=n(490),o=n(29908);e.exports=function(e){return r(e,o,i)}},98581:(e,t,n)=>{var r=n(28376);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1582:(e,t,n)=>{var r=n(2314),i=n(29908);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},95652:(e,t,n)=>{var r=n(32357),i=n(83902);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},13493:(e,t,n)=>{var r=n(81363),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},490:(e,t,n)=>{var r=n(65508),i=n(24883),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},32531:(e,t,n)=>{var r=n(83562),i=n(23697),o=n(38418),a=n(71911),s=n(42265),l=n(97534),c=n(62307),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case v:return d;case y:return p;case b:return h}return t}),e.exports=w},83902:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},90780:(e,t,n)=>{var r=n(76711),i=n(76506),o=n(38559),a=n(21611),s=n(68712),l=n(23023);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(o(e)||i(e))}},48888:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52516:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},94454:(e,t,n)=>{var r=n(80488);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},89728:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},44675:(e,t,n)=>{var r=n(80488),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},11215:(e,t,n)=>{var r=n(80488),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},16935:(e,t,n)=>{var r=n(80488);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},21611:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4122:(e,t,n)=>{var r=n(68390),i=n(83784),o=n(21611),a=n(82943);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},91668:(e,t,n)=>{var r=n(38559),i=n(16816),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},28376:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},59266:(e,t,n)=>{var r=n(49363),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},12761:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2314:(e,t,n)=>{var r=n(82943);e.exports=function(e){return e===e&&!r(e)}},9304:e=>{e.exports=function(){this.__data__=[],this.size=0}},73646:(e,t,n)=>{var r=n(82611),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},25:(e,t,n)=>{var r=n(82611);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},86133:(e,t,n)=>{var r=n(82611);e.exports=function(e){return r(this.__data__,e)>-1}},9373:(e,t,n)=>{var r=n(82611);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},84122:(e,t,n)=>{var r=n(7887),i=n(23253),o=n(23697);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},62588:(e,t,n)=>{var r=n(98581);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},14703:(e,t,n)=>{var r=n(98581);e.exports=function(e){return r(this,e).get(e)}},62931:(e,t,n)=>{var r=n(98581);e.exports=function(e){return r(this,e).has(e)}},85643:(e,t,n)=>{var r=n(98581);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},23079:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},5163:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},36910:(e,t,n)=>{var r=n(73274);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},80488:(e,t,n)=>{var r=n(95652)(Object,"create");e.exports=r},86672:(e,t,n)=>{var r=n(98357)(Object.keys,Object);e.exports=r},35303:(e,t,n)=>{e=n.nmd(e);var r=n(55738),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},60256:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},98357:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},31455:(e,t,n)=>{var r=n(55738),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},27834:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},485:e=>{e.exports=function(e){return this.__data__.has(e)}},9173:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},69470:(e,t,n)=>{var r=n(23253);e.exports=function(){this.__data__=new r,this.size=0}},47352:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},65883:e=>{e.exports=function(e){return this.__data__.get(e)}},6807:e=>{e.exports=function(e){return this.__data__.has(e)}},12351:(e,t,n)=>{var r=n(23253),i=n(23697),o=n(99835);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},81766:(e,t,n)=>{var r=n(50460),i=n(48888),o=n(7116);e.exports=function(e){return i(e)?o(e):r(e)}},88940:(e,t,n)=>{var r=n(36910),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},23023:(e,t,n)=>{var r=n(16816);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},62307:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},47734:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7116:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},6475:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+i+"]",f="(?:"+c+"|"+u+")",m="(?:"+h+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+y+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+b+y+")*"),x="(?:"+[l,d,p].join("|")+")"+w,C=RegExp([h+"?"+c+"+"+g+"(?="+[a,h,"$"].join("|")+")",m+"+"+v+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(C)||[]}},17648:(e,t,n)=>{var r=n(96198),i=n(90413)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},96198:(e,t,n)=>{var r=n(66112),i=n(66718);e.exports=function(e){return i(r(e).toLowerCase())}},75027:(e,t,n)=>{var r=n(93946),i=n(4122),o=n(91179),a=Math.ceil,s=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:s(o(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var c=0,u=0,d=Array(a(l/t));c<l;)d[u++]=r(e,c,c+=t);return d}},11510:(e,t,n)=>{var r=n(15685),i=n(66112),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},68390:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},35954:(e,t,n)=>{var r=n(29676);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},66278:(e,t,n)=>{var r=n(6248),i=n(90780);e.exports=function(e,t){return null!=e&&i(e,t,r)}},97265:(e,t,n)=>{var r=n(34071),i=n(90780);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6018:e=>{e.exports=function(e){return e}},76506:(e,t,n)=>{var r=n(19180),i=n(70856),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},38559:e=>{var t=Array.isArray;e.exports=t},83784:(e,t,n)=>{var r=n(56824),i=n(68712);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},15026:(e,t,n)=>{e=n.nmd(e);var r=n(31455),i=n(3361),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},56824:(e,t,n)=>{var r=n(97534),i=n(82943);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},68712:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},66653:e=>{e.exports=function(e){return null==e}},82943:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},70856:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},16816:(e,t,n)=>{var r=n(97534),i=n(70856);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},4929:(e,t,n)=>{var r=n(55407),i=n(88607),o=n(35303),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},70124:(e,t,n)=>{var r=n(82070),i=n(45414)((function(e,t,n){r(e,n,t)}));e.exports=i},29908:(e,t,n)=>{var r=n(35461),i=n(38350),o=n(83784);e.exports=function(e){return o(e)?r(e):i(e)}},59844:(e,t,n)=>{var r=n(82070),i=n(41087),o=n(52735);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},99958:(e,t,n)=>{var r=n(82070),i=n(41087),o=n(52735);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},73274:(e,t,n)=>{var r=n(99835);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},76961:(e,t,n)=>{var r=n(13879),i=n(26089),o=n(91668),a=n(23023);e.exports=function(e){return o(e)?r(a(e)):i(e)}},76970:(e,t,n)=>{var r=n(90413)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},24883:e=>{e.exports=function(){return[]}},3361:e=>{e.exports=function(){return!1}},72338:(e,t,n)=>{var r=n(20500),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},91179:(e,t,n)=>{var r=n(72338);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},20500:(e,t,n)=>{var r=n(59098),i=n(82943),o=n(16816),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},66112:(e,t,n)=>{var r=n(43270);e.exports=function(e){return null==e?"":r(e)}},66718:(e,t,n)=>{var r=n(59865)("toUpperCase");e.exports=r},16703:(e,t,n)=>{var r=n(89787),i=n(52516),o=n(66112),a=n(6475);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},51733:function(module,exports,__webpack_require__){var factory;"undefined"!==typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var o in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(t.prototype[o]=r[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return idPrefix$1+"__lottie_element_"+(e+=1)}}();function HSVtoRGB(e,t,n){var r,i,o,a,s,l,c,u;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),a%6){case 0:r=n,i=u,o=l;break;case 1:r=c,i=n,o=l;break;case 2:r=l,i=n,o=u;break;case 3:r=l,i=c,o=n;break;case 4:r=u,i=l,o=n;break;case 5:r=n,i=l,o=c}return[r,i,o]}function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),o=Math.min(e,t,n),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,l,c,d,p,h=i.length;for(s=0;s<h;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(p=f[l].pt.k.length,d=0;d<p;d+=1)f[l].pt.k[d].s&&r(f[l].pt.k[d].s[0]),f[l].pt.k[d].e&&r(f[l].pt.k[d].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?n(a.shapes):5===a.ty&&u(a)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var o=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),a=function(){var e=[4,7,99];return function(t){if(t.chars&&!i(e,t.v)){var r,o=t.chars.length;for(r=0;r<o;r+=1){var a=t.chars[r];a.data&&a.data.shapes&&(n(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[r].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),s=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"===typeof t.a&&(t.a={a:0,k:t.a}),"number"===typeof t.p&&(t.p={a:0,k:t.p}),"number"===typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var n,r,i,o=e.length;for(n=0;n<o;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,o,a,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function u(e){0===e.t.a.length&&e.t.p}var d={completeData:function(n){n.__complete||(l(n),o(n),a(n),s(n),c(n),e(n.layers,n.assets),function(n,r){if(n){var i=0,o=n.length;for(i=0;i<o;i+=1)1===n[i].t&&(n[i].data.layers=t(n[i].data.refId,r),e(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return d.checkColors=l,d.checkChars=a,d.checkPathProperties=s,d.checkShapes=c,d.completeLayers=e,d}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"===typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(s){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),r(o);else try{o=e(a),r(o)}catch(s){i&&i(s)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(l){a.open(["G","E","T"].join(""),n+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){a();var i=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){a();var i=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){a();var i=s(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var o={img:i,assetData:t};return o},createImageData:function(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(t=n[o].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[r].cm)}catch(a){try{o.payload=e(t[r].cm)}catch(s){o.payload={name:t[r].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,o=e.layers,a=o.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(r[t].id===o[n].id){r[t]=o[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"===typeof e?e:void 0,r="number"===typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(r){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,o=!0,a=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return d(o,e),o.setData(e,n),o}function c(){i+=1,f()}function u(){i-=1}function d(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function p(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!a?window.requestAnimationFrame(p):o=!0}function h(e){n=e,window.requestAnimationFrame(p)}function f(){!a&&i&&o&&(window.requestAnimationFrame(h),o=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)},e.setDirection=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===o){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,i){var o;for(o=0;o<r;o+=1)t[o].animation.goToAndStop(e,n,i)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,f()},e.setVolume=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,i,o){var a=o||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,n,r,i]);return t[a]=s,s}},t={},n=11,r=1/(n-1),i="function"===typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((o(t,n)*e+a(t,n))*e+s(t))*e}function c(e,t,n){return 3*o(t,n)*e*e+2*a(t,n)*e+s(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:l(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<n;++i)this._mSampleValues[i]=l(i*r,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],o=this._mSampleValues,a=0,s=1,u=n-1;s!==u&&o[s]<=e;++s)a+=r;var d=a+(e-o[--s])/(o[s+1]-o[s])*r,p=c(d,t,i);return p>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=c(t,n,r);if(0===o)return t;t-=(l(t,n,r)-e)/o}return t}(e,d,t,i):0===p?d:function(e,t,n,r,i){var o,a,s=0;do{(o=l(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+r,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,o=createSizedArray(i);return{newElement:function(){return r?o[r-=1]:t()},release:function(e){r===i&&(o=pooling.double(o),i*=2),n&&n(e),o[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,i,o){var a=e*r+t*i+n*o-i*r-o*e-n*t;return a>-.001&&a<.001}var n=function(e,t,n,r){var i,o,a,s,l,c,u=getDefaultCurveSegments(),d=0,p=[],h=[],f=bezierLengthPool.newElement();for(a=n.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*n[o]+3*(1-l)*bmPow(l,2)*r[o]+bmPow(l,3)*t[o],p[o]=s,null!==h[o]&&(c+=bmPow(p[o]-h[o],2)),h[o]=p[o];c&&(d+=c=bmSqrt(c)),f.percents[i]=l,f.lengths[i]=d}return f.addedLength=d,f};function r(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o=function(){var e={};return function(n,o,a,s){var l=(n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var c,u,d,p,h,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&t(n[0],n[1],o[0],o[1],n[0]+a[0],n[1]+a[1])&&t(n[0],n[1],o[0],o[1],o[0]+s[0],o[1]+s[1])&&(g=2);var b=new r(g);for(d=a.length,c=0;c<g;c+=1){for(m=createSizedArray(d),h=c/(g-1),f=0,u=0;u<d;u+=1)p=bmPow(1-h,3)*n[u]+3*bmPow(1-h,2)*h*(n[u]+a[u])+3*(1-h)*bmPow(h,2)*(o[u]+s[u])+bmPow(h,3)*o[u],m[u]=p,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[c]=new i(f,m),y=m}b.segmentLength=v,e[l]=b}return e[l]}}();function a(e,t){var n=t.percents,r=t.lengths,i=n.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===r[o])return n[o];for(var l=r[o]>a?-1:1,c=!0;c;)if(r[o]<=a&&r[o+1]>a?(s=(a-r[o])/(r[o+1]-r[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*s}var s=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=n(o[t],o[t+1],a[t],s[t+1]),u+=c[t].addedLength;return i&&l&&(c[t]=n(o[t],o[0],a[t],s[0]),u+=c[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,i,o,l,c){o<0?o=0:o>1&&(o=1);var u,d=a(o,c),p=a(l=l>1?1:l,c),h=t.length,f=1-d,m=1-p,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,x=d*f*m+f*d*m+f*f*p,C=d*d*m+f*d*p+d*f*p,A=d*d*p,E=f*m*m,_=d*m*m+f*p*m+f*m*p,T=d*p*m+f*p*p+d*m*p,S=d*p*p,k=m*m*m,P=p*m*m+m*p*m+m*m*p,D=p*p*m+m*p*p+p*m*p,F=p*p*p;for(u=0;u<h;u+=1)s[4*u]=e.round(1e3*(g*t[u]+v*r[u]+y*i[u]+b*n[u]))/1e3,s[4*u+1]=e.round(1e3*(w*t[u]+x*r[u]+C*i[u]+A*n[u]))/1e3,s[4*u+2]=e.round(1e3*(E*t[u]+_*r[u]+T*i[u]+S*n[u]))/1e3,s[4*u+3]=e.round(1e3*(k*t[u]+P*r[u]+D*i[u]+F*n[u]))/1e3;return s},getPointInSegment:function(t,n,r,i,o,s){var l=a(o,s),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(n,r,i,o,a,s,l,c,u){if(0===i&&0===s&&0===u)return t(n,r,o,a,l,c);var d,p=e.sqrt(e.pow(o-n,2)+e.pow(a-r,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(l-o,2)+e.pow(c-a,2)+e.pow(u-s,2));return(d=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,o,a,s,l,c,u,d,p,h=t.lastIndex,f=h,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],o=this.keyframes[f+1],f===m-1&&e>=o.t-r){i.h&&(i=o),h=0;break}if(o.t-r>e){h=f;break}f<m-1?f+=1:(h=0,g=!1)}a=this.keyframesMetadata[f]||{};var v,y=o.t-r,b=i.t-r;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var w=a.bezierData;if(e>=y||e<b){var x=e>=y?w.points.length-1:0;for(l=w.points[x].point.length,s=0;s<l;s+=1)n[s]=w.points[x].point[s]}else{a.__fnct?p=a.__fnct:(p=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=p),c=p((e-b)/(y-b));var C,A=w.segmentLength*c,E=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,u=w.points.length;g;){if(E+=w.points[d].partialLength,0===A||0===c||d===w.points.length-1){for(l=w.points[d].point.length,s=0;s<l;s+=1)n[s]=w.points[d].point[s];break}if(A>=E&&A<E+w.points[d+1].partialLength){for(C=(A-E)/w.points[d+1].partialLength,l=w.points[d].point.length,s=0;s<l;s+=1)n[s]=w.points[d].point[s]+(w.points[d+1].point[s]-w.points[d].point[s])*C;break}d<u-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=E-w.points[d].partialLength,t._lastKeyframeIndex=f}}else{var _,T,S,k,P;if(m=i.s.length,v=o.s||i.e,this.sh&&1!==i.h)e>=y?(n[0]=v[0],n[1]=v[1],n[2]=v[2]):e<=b?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):quaternionToEuler(n,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=y?c=1:e<b?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?p=a.__fnct[f]:(_=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],T=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],S=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],k=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],p=BezierFactory.getBezierEasing(_,T,S,k).get,a.__fnct[f]=p)):a.__fnct?p=a.__fnct:(_=i.o.x,T=i.o.y,S=i.i.x,k=i.i.y,p=BezierFactory.getBezierEasing(_,T,S,k).get,i.keyframeMetadata=p),c=p((e-b)/(y-b)))),v=o.s||i.e,P=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*c,"multidimensional"===this.propType?n[f]=P:n=P}return t.lastIndex=h,n}function slerp(e,t,n){var r,i,o,a,s,l=[],c=e[0],u=e[1],d=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=c*h+u*f+d*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),a=Math.sin((1-n)*r)/o,s=Math.sin(n*r)/o):(a=1-n,s=n),l[0]=a*c+s*h,l[1]=a*u+s*f,l[2]=a*d+s*m,l[3]=a*p+s*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){var i;this.propType="multidimensional";var o,a,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"===typeof t.k[0])o=new MultiDimensionalProperty(e,t,r,i);else switch(n){case 0:o=new KeyframedValueProperty(e,t,r,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,r,i)}else o=new ValueProperty(e,t,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=pointPool.newElement()),o[r][0]=e,o[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],r[a][0],r[a][1],n[a][0],n[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){var e=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}));return e.clone=function(t){var n,r=e.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,n=0;n<i;n+=1)r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],n);return r},e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?r[t-=1]:new ShapeCollection},release:function(e){var i,o=e._length;for(i=0;i<o;i+=1)shapePool.release(e.shapes[i]);e._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=e,t+=1}},t=0,n=4,r=createSizedArray(n);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,i,o,a,s,l,c,u,d,p=n.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)r=h[0].s[0],o=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var f,m,g,v=p,y=h.length-1,b=!0;b&&(f=h[v],!((m=h[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(o=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var w;g.__fnct?w=g.__fnct:(w=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),u=w((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=p,a=0;a<l;a+=1)for(s=0;s<c;s+=1)d=o?r.i[a][s]:r.i[a][s]+(i.i[a][s]-r.i[a][s])*u,t.i[a][s]=d,d=o?r.o[a][s]:r.o[a][s]+(i.o[a][s]-r.o[a][s])*u,t.o[a][s]=d,d=o?r.v[a][s]:r.v[a][s]+(i.v[a][s]-r.v[a][s])*u,t.v[a][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=o?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=o?t-r:t+r,a.v[3][1]=n,a.i[0][0]=o?t-r*e:t+r*e,a.i[0][1]=n-i,a.i[1][0]=o?t+r:t-r,a.i[1][1]=n-i*e,a.i[2][0]=o?t+r*e:t-r*e,a.i[2][1]=n+i,a.i[3][0]=o?t-r:t+r,a.i[3][1]=n+i*e,a.o[0][0]=o?t+r*e:t-r*e,a.o[0][1]=n-i,a.o[1][0]=o?t+r:t-r,a.o[1][1]=n+i*e,a.o[2][0]=o?t-r*e:t+r*e,a.o[2][1]=n+i,a.o[3][0]=o?t-r:t+r,a.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*i),p=2*Math.PI*l/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=a?c:u,r=a?d:p;var m=(t=a?s:l)*Math.cos(h),g=t*Math.sin(h),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*f,g-y*r*n*f,m+v*r*n*f,g+y*r*n*f,e,!0),a=!a,h+=o*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(a),c=r*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*s,c-d*o*i*s,l+u*o*i*s,c+d*o*i*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+o,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-o,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-o,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+o,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+o,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+o,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-o,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+o,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+o,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+o,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-o,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+o,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+o,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-o,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+o,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-o,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-o,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+o,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-o,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-o,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new a(e,t,n):5===n?r=new d(e,t):6===n?r=new c(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function d(r,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function p(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*o+g[15]*h,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],x=g[4],C=g[5],A=g[6],E=g[7],_=g[8],T=g[9],S=g[10],k=g[11],P=g[12],D=g[13],F=g[14],N=g[15];return g[0]=v*e+y*i+b*l+w*p,g[1]=v*t+y*o+b*c+w*h,g[2]=v*n+y*a+b*u+w*f,g[3]=v*r+y*s+b*d+w*m,g[4]=x*e+C*i+A*l+E*p,g[5]=x*t+C*o+A*c+E*h,g[6]=x*n+C*a+A*u+E*f,g[7]=x*r+C*s+A*d+E*m,g[8]=_*e+T*i+S*l+k*p,g[9]=_*t+T*o+S*c+k*h,g[10]=_*n+T*a+S*u+k*f,g[11]=_*r+T*s+S*d+k*m,g[12]=P*e+D*i+F*l+N*p,g[13]=P*t+D*o+F*c+N*h,g[14]=P*n+D*a+F*u+N*f,g[15]=P*r+D*s+F*d+N*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function w(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function C(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function A(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function E(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function _(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function T(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function S(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=T(e[t]);return r}function k(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*i+e[1]*a+l,r[1]=e[0]*o+e[1]*s+c,r[2]=t[0]*i+t[1]*a+l,r[3]=t[0]*o+t[1]*s+c,r[4]=n[0]*i+n[1]*a+l,r[5]=n[0]*o+n[1]*s+c}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function D(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function F(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function N(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function I(){var e=this.props;return"matrix("+N(e[0])+","+N(e[1])+","+N(e[4])+","+N(e[5])+","+N(e[12])+","+N(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=p,this.setTransform=h,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=C,this.applyToY=A,this.applyToZ=E,this.applyToPointArray=P,this.applyToTriplePoints=k,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=I,this.clone=b,this.cloneFromProps=w,this.equals=y,this.inversePoints=S,this.inversePoint=T,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"===typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var u,d;(s=o[a]).e*i<r||s.s*i>r+n||(u=s.s*i<=r?0:(s.s*i-r)/n,d=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([u,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,d,p=this.shapes.length,h=0;if(n===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<p;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(r.shapes[s]),c.push(u),d+=u.totalLength;f.totalShapeLength=d,f.pathsData=c}h+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=n,w=0;for(i=p-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(t,n,f.totalShapeLength,w,h),w+=f.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var x=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var C=x.pop();this.addPaths(x,m),x=this.addShapes(f,g[1],C)}else this.addPaths(x,m),x=this.addShapes(f,g[1]);this.addPaths(x,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,o,a,s,l,c,u,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),m.push(n),r=0;r<h;r+=1){for(l=d[r].lengths,n.c=p[r].c,o=p[r].c?l.length:l.length+1,i=1;i<o;i+=1)if(f+(a=l[i-1]).addedLength<t.s)f+=a.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[i],p[r].v[i],n,s,g),g=!1):(c=bez.getNewSegment(p[r].v[i-1],p[r].v[i],p[r].o[i-1],p[r].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),f+=a.addedLength,s+=1}if(p[r].c&&l.length){if(a=l[i-1],f<=t.e){var v=l[i-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[0],p[r].v[0],n,s,g),g=!1):(c=bez.getNewSegment(p[r].v[i-1],p[r].v[0],p[r].o[i-1],p[r].i[0],(t.s-f)/v,(t.e-f)/v,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;f+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<h-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)r[0]+=e.v[o][0],r[1]+=e.v[o][1];r[0]/=i,r[1]/=i;var a,s,l,c,u,d,p=shapePool.newElement();for(p.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(r[0]-e.v[o][0])*n,s=e.v[o][1]+(r[1]-e.v[o][1])*n,l=e.o[o][0]+(r[0]-e.o[o][0])*-n,c=e.o[o][1]+(r[1]-e.o[o][1])*-n,u=e.i[o][0]+(r[0]-e.i[o][0])*-n,d=e.i[o][1]+(r[1]-e.i[o][1])*-n,p.setTripleAt(a,s,l,c,u,d,o);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var o=Math.sqrt(r)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],r[0]),a=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,i,o){if(boxIntersect(e,t))if(n>=o||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],n+1,r,i,o),intersectsImpl(a[0],s[1],n+1,r,i,o),intersectsImpl(a[1],s[0],n+1,r,i,o),intersectsImpl(a[1],s[1],n+1,r,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,o,a){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*i,u=t[1]-Math.sin(n)*r*i;e.setTripleAt(c,u,c+Math.cos(s)*o,u-Math.sin(s)*o,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,o,a){var s=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],d=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],s,a,r,p/(2*(i+1)),d/(2*(i+1)),o)}function zigZagSegment(e,t,n,r,i,o){for(var a=0;a<r;a+=1){var s=(a+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,o,n,l/(2*(r+1)),l/(2*(r+1)),i),o=-o}return o}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,i,o,a,s,l;n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(n,r,i,o);null===c&&(c=r);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(n,c,u,s)}function joinLines(e,t,n,r,i){var o=t.points[3],a=n.points[0];if(3===r)return o;if(pointEqual(o,a))return o;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,l,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var p=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,n.points[1])?n.points[3]:n.points[1]);return p&&pointDistance(p,o)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):o}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return n=(i=e.split(a[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],r=i[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,o){var a=o?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*a*i,r.p.v[1]*a*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/s:s,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,r=0;r<=this._groups.length-1;r+=1){if(s=o<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}o+=1}this._currentCopies=l;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(p>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),w+=h)}else if(p<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),w-=h)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==w){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];w+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,r+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var i,o,a,s,l,c,u,d,p,h,f,m,g=e._length,v=0;for(n=0;n<g;n+=1)i=e.v[n],a=e.o[n],o=e.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=f=i[0]+(s[0]-i[0])*c,d=m=i[1]-(i[1]-s[1])*c,p=u-(u-i[0])*roundCorner,h=d-(d-i[1])*roundCorner,r.setTripleAt(u,d,p,h,f,m,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=p=i[0]+(s[0]-i[0])*c,d=h=i[1]+(s[1]-i[1])*c,f=u-(u-i[0])*roundCorner,m=d-(d-i[1])*roundCorner,r.setTripleAt(u,d,p,h,f,m,v),v+=1):(r.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),o=lerpPoint(n,r,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,r,a);for(var l=0;l<i;l+=1)a=zigZagSegment(o,s,t,n,r,-a),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(o,e,l+1,t,n,r,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i=shapePool.newElement();i.c=e.c;var o,a,s,l=e.length();e.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(s,t));if(!e.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,d=null;for(o=0;o<c.length;o+=1){var p=c[o];for(d&&(u=joinLines(i,d,p[0],n,r)),d=p[p.length-1],a=0;a<p.length;a+=1)s=p[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return c.length&&joinLines(i,d,c[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=127462,i=127487,o=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function a(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}(e)+", "+t,{node:r,w:i,parent:n}}function s(e,t){var n,r=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===r){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),n=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=a}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function l(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function c(e){var t=l(e);return t>=r&&t<=i}var u=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};u.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==o.indexOf(n)},u.isZeroWidthJoiner=function(e){return 8205===e},u.isFlagEmoji=function(e){return c(e.substr(0,2))&&c(e.substr(2,2))},u.isRegionalCode=c,u.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},u.isRegionalFlag=function(e,t){var r=l(e.substr(t,2));if(r!==n)return!1;var i=0;for(t+=2;i<5;){if((r=l(e.substr(t,2)))<917601||r>917626)return!1;i+=1,t+=2}return 917631===l(e.substr(t,2))},u.isVariationSelector=function(e){return 65039===e},u.BLACK_FLAG_CODE_POINT=n;var d={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<o;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=s(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,i=r.length,o=i;for(n=0;n<i;n+=1){var l,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=a(r[n].fFamily,"monospace"),r[n].sansCase=a(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("f-family",r[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(d)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[n].fPath)&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.type="text/css",p.rel="stylesheet",p.href=r[n].fPath,document.body.appendChild(p)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",r[n].fPath),t.appendChild(h)}}}else r[n].loaded=!0,o-=1;r[n].helper=s(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"===typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),i=e;if(!r.cache[i]){var o=r.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");r.cache[i]=(a-s)/100}else r.cache[i]=o.measureText(e)/100}return r.cache[i]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,i=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return u.prototype=d,u}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var i,o=r.length;for(n=0;n<o;n+=1)i=new GroupEffect(r[n],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,o=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,o[n].ty){case 0:r=new SliderEffect(o[n],t,this);break;case 1:r=new AngleEffect(o[n],t,this);break;case 2:r=new ColorEffect(o[n],t,this);break;case 3:r=new PointEffect(o[n],t,this);break;case 4:case 7:r=new CheckboxEffect(o[n],t,this);break;case 10:r=new LayerIndexEffect(o[n],t,this);break;case 11:r=new MaskIndexEffect(o[n],t,this);break;case 5:r=new EffectsManager(o[n],t,this);break;default:r=new NoValueEffect(o[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,n):e.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"===typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,d,p,h=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<a;r+=1)if(("a"!==h[r].mode&&"n"!==h[r].mode||h[r].inv||100!==h[r].o.k||h[r].o.x)&&(v="mask",y="mask"),"s"!==h[r].mode&&"i"!==h[r].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===h[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===h[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[r].x.k?(v="mask",y="mask",p=PropertyFactory.getProp(this.element,h[r].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),o.appendChild(u),i.setAttribute("stroke","s"===h[r].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[r]={elem:i,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[r].mode){l=m.length;var w=createNS("g");for(s=0;s<l;s+=1)w.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+f),x.appendChild(i),o.appendChild(x),w.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(w)}else m.push(i);h[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(h[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,a=t.length;for(n=0;n<a;n+=1)o=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==o){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!==typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(d),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(d),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4===0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2===0?100:1,r=t%2===0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),r.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=o,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[i][0],a[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var o,a,s,l,c,u,d,p,h,f,m=r.styles.length,g=r.lvl;for(u=0;u<m;u+=1){if(l=r.sh._mdf||i,r.styles[u].lvl<g){for(p=t.reset(),h=g-r.styles[u].lvl,f=r.transformers.length-1;!l&&h>0;)l=r.transformers[f].mProps._mdf||l,h-=1,f-=1;if(l)for(h=g-r.styles[u].lvl,f=r.transformers.length-1;h>0;)p.multiply(r.transformers[f].mProps.v),h-=1,f-=1}else p=e;if(a=(d=r.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=d.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,p));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=l||r.styles[u]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){s(e,t,n),l(0,t,n)}function s(e,t,n){var r,i,o,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||n){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||n){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";l.setAttribute(h,u[0]),l.setAttribute(f,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(o=r.length,i=0;i<o;i+=1)(a=r[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(o=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=r[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var v=Math.atan2(d[1]-u[1],d[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,w=Math.cos(v+t.a.v)*b+u[0],x=Math.sin(v+t.a.v)*b+u[1];l.setAttribute("fx",w),l.setAttribute("fy",x),c&&!t.g._collapsable&&(t.of.setAttribute("fx",w),t.of.setAttribute("fy",x))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n<o;n+=1){for(r=this.stylesList[n],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,o,a){var s,l,c,u,d,p,h=[].concat(o),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=n[p-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,a),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,h.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)o=n!==this.keysIndex?this.effectsSequence[r](o,o.t):this.effectsSequence[r](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,o=e.length,a=!1,s=!1,l="";i<o;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],d=0,p=c.m.g,h=0,f=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),w=0,x=getFontProperties(b);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var C,A=e.tr/1e3*e.finalSize;if(e.sz)for(var E,_,T=!0,S=e.sz[0],k=e.sz[1];T;){E=0,v=0,n=(_=this.buildFinalText(e.t)).length,A=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<n;t+=1)C=_[t].charCodeAt(0),r=!1," "===_[t]?P=t:13!==C&&3!==C||(v=0,r=!0,E+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(_[t],b.fStyle,b.fFamily),w=r?0:s.w*e.finalSize/100):w=l.measureText(_[t],e.f,e.finalSize),v+w>S&&" "!==_[t]?(-1===P?n+=1:t=P,E+=e.finalLineHeight||1.2*e.finalSize,_.splice(t,P===t?1:0,"\r"),P=-1,v=0):(v+=w,v+=A);E+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=_,n=e.finalText.length,T=!1)}v=-A,w=0;var D,F=0;for(t=0;t<n;t+=1)if(r=!1,13===(C=(D=e.finalText[t]).charCodeAt(0))||3===C?(F=0,g.push(v),y=v>y?v:y,v=-2*A,i="",r=!0,m+=1):i=D,l.chars?(s=l.getCharData(D,b.fStyle,l.getFontByName(e.f).fFamily),w=r?0:s.w*e.finalSize/100):w=l.measureText(i,e.f,e.finalSize)," "===D?F+=w+A:(v+=w+A+F,F=0),u.push({l:w,an:w,add:h,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(h+=w,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(h-=w);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=w,f+=1;d+=1,h=0}}else if(3==p){if(h+=w,""===i||t===n-1){for(""===i&&(h-=w);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=w,f+=1;h=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var N,I,R,O,j=c.a;a=j.length;var M=[];for(o=0;o<a;o+=1){for((N=j[o]).a.sc&&(e.strokeColorAnim=!0),N.a.sw&&(e.strokeWidthAnim=!0),(N.a.fc||N.a.fh||N.a.fs||N.a.fb)&&(e.fillColorAnim=!0),O=0,R=N.s.b,t=0;t<n;t+=1)(I=u[t]).anIndexes[o]=O,(1==R&&""!==I.val||2==R&&""!==I.val&&" "!==I.val||3==R&&(I.n||" "==I.val||t==n-1)||4==R&&(I.n||t==n-1))&&(1===N.s.rn&&M.push(O),O+=1);c.a[o].s.totalChars=O;var L,B=-1;if(1===N.s.rn)for(t=0;t<n;t+=1)B!=(I=u[t]).anIndexes[o]&&(B=I.anIndexes[o],L=M.splice(Math.floor(Math.random()*M.length),1)[0]),I.anIndexes[o]=L}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)c=l(c=d===u?r>=d?1:0:e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(3===p)c=l(c=d===u?r>=d?0:1:1-e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(4===p)d===u?c=0:(c=e(0,t(.5/(d-u)+(r-u)/(d-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(d===u)c=0;else{var h=d-u,f=-h/2+(r=t(e(0,r+.5-u),d-u)),m=h/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===p?(d===u?c=0:(r=t(e(0,r+.5-u),d-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(d-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(d,1)-(u-r):d-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;c<v?c=0:(c=(c-v)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,n):r,rx:o.rx?i(e,o.rx,0,degToRads,n):r,ry:o.ry?i(e,o.ry,0,degToRads,n):r,sk:o.sk?i(e,o.sk,0,degToRads,n):r,sa:o.sa?i(e,o.sa,0,degToRads,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x=this._moreOptions.alignment.v,C=this._animatorsData,A=this._textData,E=this.mHelper,_=this._renderType,T=this.renderedLetters.length,S=e.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,P=w.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},o=P._length-1,v=0,i=0;i<o;i+=1)k=bez.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),a.tLength+=k.segmentLength,a.segments.push(k),v+=k.segmentLength;i=o,w.v.c&&(k=bez.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=k.segmentLength,a.segments.push(k),v+=k.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,c=0,u=!0,m=a.segments,s<0&&w.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);h=(f=m[p].points)[d-1],g=(l=f[d]).partialLength}o=S.length,n=0,r=0;var D,F,N,I,R,O=1.2*e.finalSize*.714,j=!0;N=C.length;var M,L,B,U,V,H,z,W,q,G,Y,K,Q=-1,X=s,Z=p,J=d,$=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(S[i].n){for(ne&&(ne+=re);oe<i;)S[oe].animatorJustifyOffset=ne,oe+=1;ne=0,ae=!0}else{for(F=0;F<N;F+=1)(D=C[F].a).t.propType&&(ae&&2===e.j&&(re+=D.t.v*ie),(R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars)).length?ne+=D.t.v*R[0]*ie:ne+=D.t.v*R*ie);ae=!1}for(ne&&(ne+=re);oe<i;)S[oe].animatorJustifyOffset=ne,oe+=1}for(i=0;i<o;i+=1){if(E.reset(),U=1,S[i].n)n=0,r+=e.yOffset,r+=j?1:0,s=X,j=!1,this._hasMaskedPath&&(d=J,h=(f=m[p=Z].points)[d-1],g=(l=f[d]).partialLength,c=0),ee="",Y="",q="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==S[i].line){switch(e.j){case 1:s+=v-e.lineWidths[S[i].line];break;case 2:s+=(v-e.lineWidths[S[i].line])/2}$=S[i].line}Q!==S[i].ind&&(S[Q]&&(s+=S[Q].extra),s+=S[i].an/2,Q=S[i].ind),s+=x[0]*S[i].an*.005;var se=0;for(F=0;F<N;F+=1)(D=C[F].a).p.propType&&((R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars)).length?se+=D.p.v[0]*R[0]:se+=D.p.v[0]*R),D.a.propType&&((R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars)).length?se+=D.a.v[0]*R[0]:se+=D.a.v[0]*R);for(u=!0,this._pathData.a.v&&(s=.5*S[0].an+(v-this._pathData.f.v-.5*S[0].an-.5*S[S.length-1].an)*Q/(o-1),s+=this._pathData.f.v);u;)c+g>=s+se||!f?(y=(s+se-c)/l.partialLength,L=h.point[0]+(l.point[0]-h.point[0])*y,B=h.point[1]+(l.point[1]-h.point[1])*y,E.translate(-x[0]*S[i].an*.005,-x[1]*O*.01),u=!1):f&&(c+=l.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:w.v.c?(d=0,f=m[p=0].points):(c-=l.partialLength,f=null)),f&&(h=l,g=(l=f[d]).partialLength));M=S[i].an/2-S[i].add,E.translate(-M,0,0)}else M=S[i].an/2-S[i].add,E.translate(-M,0,0),E.translate(-x[0]*S[i].an*.005,-x[1]*O*.01,0);for(F=0;F<N;F+=1)(D=C[F].a).t.propType&&(R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?R.length?s+=D.t.v*R[0]:s+=D.t.v*R:R.length?n+=D.t.v*R[0]:n+=D.t.v*R));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),F=0;F<N;F+=1)(D=C[F].a).a.propType&&((R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars)).length?E.translate(-D.a.v[0]*R[0],-D.a.v[1]*R[1],D.a.v[2]*R[2]):E.translate(-D.a.v[0]*R,-D.a.v[1]*R,D.a.v[2]*R));for(F=0;F<N;F+=1)(D=C[F].a).s.propType&&((R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars)).length?E.scale(1+(D.s.v[0]-1)*R[0],1+(D.s.v[1]-1)*R[1],1):E.scale(1+(D.s.v[0]-1)*R,1+(D.s.v[1]-1)*R,1));for(F=0;F<N;F+=1){if(D=C[F].a,R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars),D.sk.propType&&(R.length?E.skewFromAxis(-D.sk.v*R[0],D.sa.v*R[1]):E.skewFromAxis(-D.sk.v*R,D.sa.v*R)),D.r.propType&&(R.length?E.rotateZ(-D.r.v*R[2]):E.rotateZ(-D.r.v*R)),D.ry.propType&&(R.length?E.rotateY(D.ry.v*R[1]):E.rotateY(D.ry.v*R)),D.rx.propType&&(R.length?E.rotateX(D.rx.v*R[0]):E.rotateX(D.rx.v*R)),D.o.propType&&(R.length?U+=(D.o.v*R[0]-U)*R[0]:U+=(D.o.v*R-U)*R),e.strokeWidthAnim&&D.sw.propType&&(R.length?H+=D.sw.v*R[0]:H+=D.sw.v*R),e.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)R.length?V[W]+=(D.sc.v[W]-V[W])*R[0]:V[W]+=(D.sc.v[W]-V[W])*R;if(e.fillColorAnim&&e.fc){if(D.fc.propType)for(W=0;W<3;W+=1)R.length?z[W]+=(D.fc.v[W]-z[W])*R[0]:z[W]+=(D.fc.v[W]-z[W])*R;D.fh.propType&&(z=R.length?addHueToRGB(z,D.fh.v*R[0]):addHueToRGB(z,D.fh.v*R)),D.fs.propType&&(z=R.length?addSaturationToRGB(z,D.fs.v*R[0]):addSaturationToRGB(z,D.fs.v*R)),D.fb.propType&&(z=R.length?addBrightnessToRGB(z,D.fb.v*R[0]):addBrightnessToRGB(z,D.fb.v*R))}}for(F=0;F<N;F+=1)(D=C[F].a).p.propType&&(R=C[F].s.getMult(S[i].anIndexes[F],A.a[F].s.totalChars),this._hasMaskedPath?R.length?E.translate(0,D.p.v[1]*R[0],-D.p.v[2]*R[1]):E.translate(0,D.p.v[1]*R,-D.p.v[2]*R):R.length?E.translate(D.p.v[0]*R[0],D.p.v[1]*R[1],-D.p.v[2]*R[2]):E.translate(D.p.v[0]*R,D.p.v[1]*R,-D.p.v[2]*R));if(e.strokeWidthAnim&&(q=H<0?0:H),e.strokeColorAnim&&(G="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(Y="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,x[1]*O*.01+r,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(le+=180),E.rotate(-le*Math.PI/180)}E.translate(L,B,0),s-=x[0]*S[i].an*.005,S[i+1]&&Q!==S[i+1].ind&&(s+=S[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,r,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(S[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[S[i].line]),0,0);break;case 2:E.translate(S[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[S[i].line])/2,0,0)}E.translate(0,-e.ls),E.translate(M,0,0),E.translate(x[0]*S[i].an*.005,x[1]*O*.01,0),n+=S[i].l+.001*e.tr*e.finalSize}"html"===_?ee=E.toCSS():"svg"===_?ee=E.to2dCSS():te=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],K=U}T<=i?(I=new LetterProps(K,q,G,Y,ee,te),this.renderedLetters.push(I),T+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[i],this.lettersChangedFlag=I.update(K,q,G,Y,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,o="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,o+=buildShapeString(r,r.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,d=0,p=0,h=!0,f=.001*n.tr*n.finalSize;if(!u||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var v=createNS("g");a.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(d=-f,p+=n.yOffset,p+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,d,p),d+=s[e].l||0,d+=f),l){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var w=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var x=this.textContainer,C="start";switch(n.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}x.setAttribute("text-anchor",C),x.setAttribute("letter-spacing",f);var A=this.buildTextContents(n.finalText);for(t=A.length,p=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=A[e],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",x.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,p+=n.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=o[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n=0,r=e.transforms.length,i=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){i=!0;break}n+=1}if(i)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function i(){t||(r=function(){var t=createNS("svg"),n=createNS("filter"),r=createNS("feColorMatrix");return n.setAttribute("id",e),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(r),t.appendChild(n),t.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(t.style.display="none"),t}(),document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:i,get:function(r){return t||i(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(n=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),r=this.viewData[e].v,t=i.applyToPointArray(r.v[0][0],r.v[0][1],0),o.moveTo(t[0],t[1]);var l=r._length;for(s=1;s<l;s+=1)n=i.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=n.length;for(i=0;i<s;i+=1)n[i].closed||(a={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(a),n[i].elements.push(a))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var o,a,s,l,c,u,d=e.length-1,p=[],h=[],f=[].concat(i);for(o=d;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=n[l-1]:e[o]._shouldRender=r,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],f),p.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,r,f)}else"tr"===e[o].ty?(l||(u=this.createTransformElement(e[o]),t[o]=u),f.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[o].ty&&(l?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),r=!1),h.push(c));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=h.length,o=0;o<d;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,i,o,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=l.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===s?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=o.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),i=(a=o[t].trNodes).length,r=0;r<i;r+=1)"m"===a[r].t?d.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?d.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=n[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],o):"st"===t[i].ty?this.renderStroke(t[i],n[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var c=a.shapes[i];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)r=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=c*d,h=Math.cos(u+t.a.v)*p+s[0],f=Math.sin(u+t.a.v)*p+s[1];r=a.createRadialGradient(h,f,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,v=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*o+1]),r.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+v+")");i.grd=r}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,i,o,a,s,l,c,u,d,p,h,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,w=0,x=0,C=!0,A=0;for(r=0;r<i;r+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},v.reset(),y&&g[r].n&&(w=-b,x+=e.yOffset,x+=C?1:0,C=!1),d=(c=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,w,x),h=createSizedArray(d-1);var E=0;for(u=0;u<d;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,p=c[u].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),f.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[s][0],p.i[s][1],0),v.applyToY(p.i[s][0],p.i[s][1],0),v.applyToX(p.v[s][0],p.v[s][1],0),v.applyToY(p.v[s][0],p.v[s][1],0));f.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[0][0],p.i[0][1],0),v.applyToY(p.i[0][0],p.i[0][1],0),v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),h[E]=f,E+=1}y&&(w+=g[r].l,w+=b),this.textSpans[A]?this.textSpans[A].elem=h:this.textSpans[A]={elem:h},A+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,d=null,p=null,h=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(f.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,f.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?p!==a.sc&&(p=a.sc,f.ctxStrokeStyle(a.sc)):p!==this.values.stroke&&(p=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(n=o)*s:n=(t=i)/s,r.drawImage(this.img,(i-t)/2,(o-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,r,i,o;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=n/r,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=r[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,i,o,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,i,o,a,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i,o,a,s,l,c,u,d=[[e[0],r[0]],[e[1],r[1]]],p=0;p<2;++p)o=6*e[p]-12*t[p]+6*n[p],i=-3*e[p]+9*t[p]-9*n[p]+3*r[p],a=3*t[p]-3*e[p],o|=0,a|=0,0===(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[p].push(this.calculateF(s,e,t,n,r,p)):(l=o*o-4*a*i)>=0&&((c=(-o+bmSqrt(l))/(2*i))>0&&c<1&&d[p].push(this.calculateF(c,e,t,n,r,p)),(u=(-o-bmSqrt(l))/(2*i))>0&&u<1&&d[p].push(this.calculateF(u,e,t,n,r,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*r[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,d=e.l;i=d.length;var p,h=this.mHelper,f="",m=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[r],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,p),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,w="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=w,b.webkitTransform=w,d[r].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=d[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var x=l.style,C="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=C,x.webkitTransform=C}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,i,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?s+=1:(o=this.textSpans[n],a=this.textPaths[n],i=l[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=o,n.webkitPerspective=o,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,p,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(h=d.container.style).transform=f,h.webkitTransform=f}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=o.style).transform=s,r.webkitTransform=s}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i,o=this.threeDElements[n].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[n].container.insertBefore(e,i):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var n,r=this,i=256,o="random",a=t.pow(i,6),s=t.pow(2,52),l=2*s,c=i-1;function u(e){var t,n=e.length,r=this,o=0,a=r.i=r.j=0,s=r.S=[];for(n||(e=[n++]);o<i;)s[o]=o++;for(o=0;o<i;o++)s[o]=s[a=c&a+e[o%n]+(t=s[o])],s[a]=t;r.g=function(e){for(var t,n=0,o=r.i,a=r.j,s=r.S;e--;)t=s[o=c&o+1],n=n*i+s[c&(s[o]=s[a=c&a+t])+(s[a]=t)];return r.i=o,r.j=a,n}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var n,r=[],i=_typeof$2(e);if(t&&"object"==i)for(n in e)try{r.push(p(e[n],t-1))}catch(o){}return r.length?r:"string"==i?e:e+"\0"}function h(e,t){for(var n,r=e+"",i=0;i<r.length;)t[c&i]=c&(n^=19*t[c&i])+r.charCodeAt(i++);return f(t)}function f(e){return String.fromCharCode.apply(0,e)}t["seed"+o]=function(c,m,g){var v=[],y=h(p((m=!0===m?{entropy:!0}:m||{}).entropy?[c,f(e)]:null===c?function(){try{if(n)return f(n.randomBytes(i));var t=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(t),f(t)}catch(s){var o=r.navigator,a=o&&o.plugins;return[+new Date,r,a,r.screen,f(e)]}}():c,3),v),b=new u(v),w=function(){for(var e=b.g(6),t=a,n=0;e<s;)e=(e+n)*i,t*=i,n=b.g(1);for(;e>=l;)e/=2,t/=2,n>>>=1;return(e+n)/t};return w.int32=function(){return 0|b.g(4)},w.quick=function(){return b.g(4)/4294967296},w.double=w,h(f(b.S),e),(m.pass||g||function(e,n,r,i){return i&&(i.S&&d(i,b),e.state=function(){return d(b,{})}),r?(t[o]=e,n):e})(w,y,"global"in m?m.global:this==t,m.state)},h(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"===typeof e[i]||e[i]instanceof Number)&&("number"===typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"===typeof e[i]||e[i]instanceof Number)&&("number"===typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var n,r,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"===typeof e&&(e=parseInt(e,10)),"string"===typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"===typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2;if(a===s)t=0,n=0;else{var c=a-s;switch(n=l>.5?c/(2-a-s):c/(a+s),a){case r:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-r)/c+2;break;case o:t=(r-i)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],o=e[1],a=e[2];if(0===o)t=a,r=a,n=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,i+1/3),n=hue2rgb(l,s,i),r=hue2rgb(l,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n<t){var o=n;n=t,t=o}if(e<=t)return r;if(e>=n)return i;var a,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var l=r.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=r[a]+(i[a]-r[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),o=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+o*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!r,o);var s,l,c=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:c,l=n&&n[i]?n[i]:c,a.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(n=0,r=0;n<a;){for(r=0;r<i;r+=1)o[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)c[r]=this.pv[r]+o[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+o[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,o){void 0===i?(i=n,o=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-i[s])*a+i[s];return c}return(o-i)*a+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!==typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var o={};return o.index=n,o.time=r/elem.comp.globalData.frameRate,o}function key(e){var t,n,r;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"===typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"===typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0===(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var o="unidimensional"===n?new Number(i):Object.assign({},i);return o.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===n?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,o=new Number(i);return o.value=i,n(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,o.value!==i&&((o=new Number(i)).value=i,n(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,n(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*r,o[t]=a[t];return o}}(i):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=o,d.toWorld=n,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=r,d.toComp=n,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c;var p=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=0===c.data.ty?c.data.h:100,d.width=0===c.data.ty?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,c)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,i,o){function a(e){for(var t=n.ef,r=0,i=t.length;r<i;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(a,i),c=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?c.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,o)):c.push(t(r.effectElements[s],n.ef[s].ty,o,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),a.enabled=0!==n.en,a.active=a.enabled,a}function t(e,t,n,r){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)i.push(e(o[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,a=s.length;r<a;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function e(e,a,p){var h,f=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?f.push(t(e[h],a[h],p)):"fl"===e[h].ty?f.push(n(e[h],a[h],p)):"st"===e[h].ty?f.push(i(e[h],a[h],p)):"tm"===e[h].ty?f.push(o(e[h],a[h],p)):"tr"===e[h].ty||("el"===e[h].ty?f.push(s(e[h],a[h],p)):"sr"===e[h].ty?f.push(l(e[h],a[h],p)):"sh"===e[h].ty?f.push(ShapePathInterface(e[h],a[h],p)):"rc"===e[h].ty?f.push(c(e[h],a[h],p)):"rd"===e[h].ty?f.push(u(e[h],a[h],p)):"rp"===e[h].ty?f.push(d(e[h],a[h],p)):"gf"===e[h].ty?f.push(r(e[h],a[h],p)):f.push((e[h],a[h],function(){return null})));return f}function t(t,n,r){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var o=function(t,n,r){var i,o=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"===typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,r),i=e(t.it,n.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,n,i.propertyGroup),s=a(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(e,t,n){var r,i=propertyGroupFactory(c,n),o=propertyGroupFactory(l,i);function a(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(o);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function o(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function a(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function s(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),o="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),o="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),o=t;return r.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),o=t;return r.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function o(e){if("number"===typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return r})),i=e(t,n,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=function(){var e=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(n=n[o])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t};return function(t){function n(e){return"Data"===e?n.dataInterface:null}return n._name="Data",n.dataInterface=e(t),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var i;for(i=0;i<t.length;i+=1)r+=Math.pow(n[i]-t[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+r);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(o[n]-i[n])/r;else t=(o-i)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(n?i=u-(r=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!==0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/r);if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=(p[o]-d[o])*f+h[o];return s}return(p-d)*f+h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(n?i=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2===0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-l)/r)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(p[o]-d[o])*f;return s}return h-(p-d)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-h*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var a=o(e,t,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,o,s,l){var c=a(r,i,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,i,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,o=r[e],a=r.v,s=createSizedArray(i);for(n=0;n<i;n+=1)s[n]="i"===e||"o"===e?[o[n][0]-a[n][0],o[n][1]-a[n][1]]:[o[n][0],o[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var u=s,d=n.c&&s===l-1?0:s+1,p=(a-c)/o[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],p,o[s]);break}c+=o[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-r[0],a=i[1]-r[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var o=u(e,t,n,r,i);return o.propertyIndex=t.ix,o.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,o):4===n&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,i=createNS("feMerge");for(i.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),i.appendChild(n),i.appendChild(n);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",r+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,n,r,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(c=0;c<p;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],o=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var o,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),d=0,p=i-r,h=t-e;s<=256;)a=(o=s/256)<=l?h<0?i:r:o>=c?h<0?r:i:r+p*Math.pow((o-e)/h,1/n),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(r=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+n),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,i=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},65747:e=>{"use strict";var t,n={DEBUG:!1,LIB_VERSION:"2.53.0"};if("undefined"===typeof window){var r={hostname:""};t={navigator:{userAgent:""},document:{location:r,referrer:""},screen:{width:0,height:0},location:r}}else t=window;var i=Array.prototype,o=Function.prototype,a=Object.prototype,s=i.slice,l=a.toString,c=a.hasOwnProperty,u=t.console,d=t.navigator,p=t.document,h=t.opera,f=t.screen,m=d.userAgent,g=o.bind,v=i.forEach,y=i.indexOf,b=i.map,w=Array.isArray,x={},C={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={log:function(){if(n.DEBUG&&!C.isUndefined(u)&&u)try{u.log.apply(u,arguments)}catch(e){C.each(arguments,(function(e){u.log(e)}))}},warn:function(){if(n.DEBUG&&!C.isUndefined(u)&&u){var e=["Mixpanel warning:"].concat(C.toArray(arguments));try{u.warn.apply(u,e)}catch(t){C.each(e,(function(e){u.warn(e)}))}}},error:function(){if(n.DEBUG&&!C.isUndefined(u)&&u){var e=["Mixpanel error:"].concat(C.toArray(arguments));try{u.error.apply(u,e)}catch(t){C.each(e,(function(e){u.error(e)}))}}},critical:function(){if(!C.isUndefined(u)&&u){var e=["Mixpanel error:"].concat(C.toArray(arguments));try{u.error.apply(u,e)}catch(t){C.each(e,(function(e){u.error(e)}))}}}},E=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(A,arguments)}},_=function(e){return{log:E(A.log,e),error:E(A.error,e),critical:E(A.critical,e)}};C.bind=function(e,t){var n,r;if(g&&e.bind===g)return g.apply(e,s.call(arguments,1));if(!C.isFunction(e))throw new TypeError;return n=s.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(s.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,n.concat(s.call(arguments)));return Object(a)===a?a:o},r},C.each=function(e,t,n){if(null!==e&&void 0!==e)if(v&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===x)return}else for(var o in e)if(c.call(e,o)&&t.call(n,e[o],o,e)===x)return},C.extend=function(e){return C.each(s.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},C.isArray=w||function(e){return"[object Array]"===l.call(e)},C.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(t){return!1}},C.isArguments=function(e){return!(!e||!c.call(e,"callee"))},C.toArray=function(e){return e?e.toArray?e.toArray():C.isArray(e)||C.isArguments(e)?s.call(e):C.values(e):[]},C.map=function(e,t,n){if(b&&e.map===b)return e.map(t,n);var r=[];return C.each(e,(function(e){r.push(t.call(n,e))})),r},C.keys=function(e){var t=[];return null===e||C.each(e,(function(e,n){t[t.length]=n})),t},C.values=function(e){var t=[];return null===e||C.each(e,(function(e){t[t.length]=e})),t},C.include=function(e,t){var n=!1;return null===e?n:y&&e.indexOf===y?-1!=e.indexOf(t):(C.each(e,(function(e){if(n||(n=e===t))return x})),n)},C.includes=function(e,t){return-1!==e.indexOf(t)},C.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},C.isObject=function(e){return e===Object(e)&&!C.isArray(e)},C.isEmptyObject=function(e){if(C.isObject(e)){for(var t in e)if(c.call(e,t))return!1;return!0}return!1},C.isUndefined=function(e){return void 0===e},C.isString=function(e){return"[object String]"==l.call(e)},C.isDate=function(e){return"[object Date]"==l.call(e)},C.isNumber=function(e){return"[object Number]"==l.call(e)},C.isElement=function(e){return!(!e||1!==e.nodeType)},C.encodeDates=function(e){return C.each(e,(function(t,n){C.isDate(t)?e[n]=C.formatDate(t):C.isObject(t)&&(e[n]=C.encodeDates(t))})),e},C.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},C.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},C.strip_empty_properties=function(e){var t={};return C.each(e,(function(e,n){C.isString(e)&&e.length>0&&(t[n]=e)})),t},C.truncate=function(e,t){var n;return"string"===typeof e?n=e.slice(0,t):C.isArray(e)?(n=[],C.each(e,(function(e){n.push(C.truncate(e,t))}))):C.isObject(e)?(n={},C.each(e,(function(e,r){n[r]=C.truncate(e,t)}))):n=e,n},C.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=n[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},n=function(e,r){var i="",o=0,a="",s="",u=0,d=i,p=[],h=r[e];switch(h&&"object"===typeof h&&"function"===typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+="    ",p=[],"[object Array]"===l.apply(h)){for(u=h.length,o=0;o<u;o+=1)p[o]=n(o,h)||"null";return s=0===p.length?"[]":i?"[\n"+i+p.join(",\n"+i)+"\n"+d+"]":"["+p.join(",")+"]",i=d,s}for(a in h)c.call(h,a)&&(s=n(a,h))&&p.push(t(a)+(i?": ":":")+s);return s=0===p.length?"{}":i?"{"+p.join(",")+d+"}":"{"+p.join(",")+"}",i=d,s}};return n("",{"":e})},C.JSONDecode=function(){var e,t,n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var r=new SyntaxError(t);throw r.at=e,r.text=n,r},a=function(r){return r&&r!==t&&o("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,n="";for("-"===t&&(n="-",a("-"));t>="0"&&t<="9";)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&t<="9";)n+=t;if("e"===t||"E"===t)for(n+=t,a(),"-"!==t&&"+"!==t||(n+=t,a());t>="0"&&t<="9";)n+=t,a();if(e=+n,isFinite(e))return e;o("Bad number")},l=function(){var e,n,r,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;n<4&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;s+=String.fromCharCode(r)}else{if("string"!==typeof i[t])break;s+=i[t]}else s+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)a()};return r=function(){switch(c(),t){case"{":return function(){var e,n={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),n;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(n,e)&&o('Duplicate key "'+e+'"'),n[e]=r(),c(),"}"===t)return a("}"),n;a(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),c(),"]"===t)return a("]"),e;a(","),c()}}o("Bad array")}();case'"':return l();case"-":return s();default:return t>="0"&&t<="9"?s():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var a;return n=i,e=0,t=" ",a=r(),c(),t&&o("Syntax error"),a}}(),C.base64Encode=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=C.utf8Encode(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},C.utf8Encode=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o},C.UUID=function(){var e=function(){var e,n=1*new Date;if(t.performance&&t.performance.now)e=t.performance.now();else for(e=0;n==1*new Date;)e++;return n.toString(16)+Math.floor(e).toString(16)};return function(){var t=(f.height*f.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=m,r=[],i=0;function o(e,t){var n,i=0;for(n=0;n<t.length;n++)i|=r[n]<<8*n;return e^i}for(e=0;e<n.length;e++)t=n.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=o(i,r),r=[]);return r.length>0&&(i=o(i,r)),i.toString(16)}()+"-"+t+"-"+e()}}();var T=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];C.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<T.length;t++)if(-1!==e.indexOf(T[t]))return!0;return!1},C.HTTPBuildQuery=function(e,t){var n,r,i=[];return C.isUndefined(t)&&(t="&"),C.each(e,(function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n})),i.join(t)},C.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!==typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(i){A.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},C.cookie={get:function(e){for(var t=e+"=",n=p.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=C.JSONDecode(C.cookie.get(e))||{}}catch(n){}return t},set_seconds:function(e,t,n,r,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(r){var u=O(p.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+1e3*n),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),p.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,n,r,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(r){var u=O(p.location.hostname);s=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+24*n*60*60*1e3),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var h=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return p.cookie=h,h},remove:function(e,t,n){C.cookie.set(e,"",-1,t,!1,!1,n)}};var S=null,k=function(e,t){if(null!==S&&!t)return S;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+N(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(n=!1),e.removeItem(r)}catch(i){n=!1}return S=n,n};C.localStorage={is_supported:function(e){var t=k(null,e);return t||A.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){A.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){C.localStorage.error(t)}return null},parse:function(e){try{return C.JSONDecode(C.localStorage.get(e))||{}}catch(t){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(n){C.localStorage.error(n)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){C.localStorage.error(t)}}},C.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{var a="on"+n,s=t[a];t[a]=function(t,n,r){var i=function(i){if(i=i||e(window.event)){var o,a,s=!0;return C.isFunction(r)&&(o=r(i)),a=n.call(t,i),!1!==o&&!1!==a||(s=!1),s}};return i}(t,r,s)}else A.error("No valid element provided to register_event")}}();var P=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');C.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!p.getElementsByTagName)return[];var r,i,o,a,s,l,c,u,d,h,f=t.split(" "),m=[p];for(l=0;l<f.length;l++)if((r=f[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=r.split("#"))[0];var g=i[1],v=p.getElementById(g);if(!v||o&&v.nodeName.toLowerCase()!=o)return[];m=[v]}else if(r.indexOf(".")>-1){o=(i=r.split("."))[0];var y=i[1];for(o||(o="*"),a=[],s=0,c=0;c<m.length;c++)for(d="*"==o?e(m[c]):m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];for(m=[],h=0,c=0;c<a.length;c++)a[c].className&&C.isString(a[c].className)&&n(a[c],y)&&(m[h++]=a[c])}else{var b=r.match(P);if(b){o=b[1];var w,x=b[2],A=b[3],E=b[4];for(o||(o="*"),a=[],s=0,c=0;c<m.length;c++)for(d="*"==o?e(m[c]):m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];switch(m=[],h=0,A){case"=":w=function(e){return e.getAttribute(x)==E};break;case"~":w=function(e){return e.getAttribute(x).match(new RegExp("\\b"+E+"\\b"))};break;case"|":w=function(e){return e.getAttribute(x).match(new RegExp("^"+E+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(x).indexOf(E)};break;case"$":w=function(e){return e.getAttribute(x).lastIndexOf(E)==e.getAttribute(x).length-E.length};break;case"*":w=function(e){return e.getAttribute(x).indexOf(E)>-1};break;default:w=function(e){return e.getAttribute(x)}}for(m=[],h=0,c=0;c<a.length;c++)w(a[c])&&(m[h++]=a[c])}else{for(o=r,a=[],s=0,c=0;c<m.length;c++)for(d=m[c].getElementsByTagName(o),u=0;u<d.length;u++)a[s++]=d[u];m=a}}return m}return function(e){return C.isElement(e)?[e]:C.isObject(e)&&!C.isUndefined(e.length)?e:r.call(this,e)}}();var D=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],F=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];C.info={campaignParams:function(e){var t="",n={};return C.each(D,(function(r){(t=C.getQueryParam(p.URL,r)).length?n[r]=t:void 0!==e&&(n[r]=e)})),n},clickParams:function(){var e="",t={};return C.each(F,(function(n){(e=C.getQueryParam(p.URL,n)).length&&(t[n]=e)})),t},marketingParams:function(){return C.extend(C.info.campaignParams(),C.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=C.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var i=C.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||C.includes(e," OPR/")?C.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":C.includes(e,"IEMobile")||C.includes(e,"WPDesktop")?"Internet Explorer Mobile":C.includes(e,"SamsungBrowser/")?"Samsung Internet":C.includes(e,"Edge")||C.includes(e,"Edg/")?"Microsoft Edge":C.includes(e,"FBIOS")?"Facebook Mobile":C.includes(e,"Chrome")?"Chrome":C.includes(e,"CriOS")?"Chrome iOS":C.includes(e,"UCWEB")||C.includes(e,"UCBrowser")?"UC Browser":C.includes(e,"FxiOS")?"Firefox iOS":C.includes(t,"Apple")?C.includes(e,"Mobile")?"Mobile Safari":"Safari":C.includes(e,"Android")?"Android Mobile":C.includes(e,"Konqueror")?"Konqueror":C.includes(e,"Firefox")?"Firefox":C.includes(e,"MSIE")||C.includes(e,"Trident/")?"Internet Explorer":C.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[C.info.browser(e,t,n)];if(void 0===r)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var e=m;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return t.location.href},properties:function(e){return"object"!==typeof e&&(e={}),C.extend(C.strip_empty_properties({$os:C.info.os(),$browser:C.info.browser(m,d.vendor,h),$referrer:p.referrer,$referring_domain:C.info.referringDomain(p.referrer),$device:C.info.device(m)}),{$current_url:C.info.currentUrl(),$browser_version:C.info.browserVersion(m,d.vendor,h),$screen_height:f.height,$screen_width:f.width,mp_lib:"web",$lib_version:n.LIB_VERSION,$insert_id:N(),time:C.timestamp()/1e3},C.strip_empty_properties(e))},people_properties:function(){return C.extend(C.strip_empty_properties({$os:C.info.os(),$browser:C.info.browser(m,d.vendor,h)}),{$browser_version:C.info.browserVersion(m,d.vendor,h)})},mpPageViewProperties:function(){return C.strip_empty_properties({current_page_title:p.title,current_domain:t.location.hostname,current_url_path:t.location.pathname,current_url_protocol:t.location.protocol,current_url_search:t.location.search})}};var N=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},I=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,R=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,O=function(e){var t=R,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=I);var i=e.match(t);return i?i[0]:""},j=null,M=null;"undefined"!==typeof JSON&&(j=JSON.stringify,M=JSON.parse),j=j||C.JSONEncode,M=M||C.JSONDecode,C.toArray=C.toArray,C.isObject=C.isObject,C.JSONEncode=C.JSONEncode,C.JSONDecode=C.JSONDecode,C.isBlockedUA=C.isBlockedUA,C.isEmptyObject=C.isEmptyObject,C.info=C.info,C.info.device=C.info.device,C.info.browser=C.info.browser,C.info.browserVersion=C.info.browserVersion,C.info.properties=C.info.properties;var L=function(){};L.prototype.create_properties=function(){},L.prototype.event_handler=function(){},L.prototype.after_track_handler=function(){},L.prototype.init=function(e){return this.mp=e,this},L.prototype.track=function(e,t,n,r){var i=this,o=C.dom_query(e);if(0!==o.length)return C.each(o,(function(e){C.register_event(e,this.override_event,(function(e){var o={},a=i.create_properties(n,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(r,a,o,!0),s),i.mp.track(t,a,i.track_callback(r,a,o))}))}),this),!0;A.error("The DOM query ("+e+") returned 0 elements")},L.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||i.after_track_handler(t,n,r))}},L.prototype.create_properties=function(e,t){return"function"===typeof e?e(t):C.extend({},e)};var B=function(){this.override_event="click"};C.inherit(B,L),B.prototype.create_properties=function(e,t){var n=B.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},B.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},B.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var U=function(){this.override_event="submit"};C.inherit(U,L),U.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},U.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var V=_("lock"),H=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};H.prototype.withLock=function(e,t,n){n||"function"===typeof t||(n=t,t=null);var r=n||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),o=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,c=o+":X",u=o+":Y",d=o+":Z",p=function(e){t&&t(e)},h=function(e){if((new Date).getTime()-i>s)return V.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),l.removeItem(d),l.removeItem(u),void g();setTimeout((function(){try{e()}catch(t){p(t)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!k(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(c,r),f(m,(function(){l.getItem(c)!==r?h((function(){l.getItem(u)===r?f((function(){return!l.getItem(d)}),v):g()})):v()}))},v=function(){l.setItem(d,"1");try{e()}finally{l.removeItem(d),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(!k(l,!0))throw new Error("localStorage support check failed");g()}catch(y){p(y)}};var z=_("batch"),W=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||C.bind(z.error,z),this.lock=new H(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};W.prototype.enqueue=function(e,t,n){var r={id:N(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(C.bind((function(){var t;try{var i=this.readFromStorage();i.push(r),(t=this.saveToStorage(i))&&this.memQueue.push(r)}catch(o){this.reportError("Error enqueueing item",e),t=!1}n&&n(t)}),this),C.bind((function(e){this.reportError("Error acquiring storage lock",e),n&&n(!1)}),this),this.pid)},W.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};C.each(t,(function(e){r[e.id]=!0}));for(var i=0;i<n.length;i++){var o=n[i];if((new Date).getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var q=function(e,t){var n=[];return C.each(e,(function(e){e.id&&!t[e.id]&&n.push(e)})),n};W.prototype.removeItemsByID=function(e,t){var n={};C.each(e,(function(e){n[e]=!0})),this.memQueue=q(this.memQueue,n);var r=C.bind((function(){var t;try{var r=this.readFromStorage();if(r=q(r,n),t=this.saveToStorage(r)){r=this.readFromStorage();for(var i=0;i<r.length;i++){var o=r[i];if(o.id&&n[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(a){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=r();t&&t(e)}),C.bind((function(e){var n=!1;if(this.reportError("Error acquiring storage lock",e),!k(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(n)}),this),this.pid)};var G=function(e,t){var n=[];return C.each(e,(function(e){var r=e.id;if(r in t){var i=t[r];null!==i&&(e.payload=i,n.push(e))}else n.push(e)})),n};W.prototype.updatePayloads=function(e,t){this.memQueue=G(this.memQueue,e),this.lock.withLock(C.bind((function(){var n;try{var r=this.readFromStorage();r=G(r,e),n=this.saveToStorage(r)}catch(i){this.reportError("Error updating items",e),n=!1}t&&t(n)}),this),C.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},W.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=M(e),C.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},W.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,j(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}},W.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var Y=_("batch"),K=function(e,t){this.errorReporter=t.errorReporter,this.queue=new W(e,{errorReporter:C.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};K.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},K.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},K.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},K.prototype.clear=function(){this.queue.clear()},K.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},K.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},K.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(C.bind(this.flush,this),this.flushInterval))},K.prototype.flush=function(e){try{if(this.requestInProgress)return void Y.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),i=this.batchSize,o=this.queue.fillBatch(i),a=[],s={};if(C.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=C.extend({},t.properties,{mp_sent_by_lib_version:n.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}s[e.id]=t}),this),a.length<1)return void this.resetFlush();this.requestInProgress=!0;var l=C.bind((function(n){this.requestInProgress=!1;try{var a=!1;if(e.unloading)this.queue.updatePayloads(s);else if(C.isObject(n)&&"timeout"===n.error&&(new Date).getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(C.isObject(n)&&n.xhr_req&&(n.xhr_req.status>=500||429===n.xhr_req.status||"timeout"===n.error)){var l=2*this.flushInterval,c=n.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(l=1e3*parseInt(u,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(C.isObject(n)&&n.xhr_req&&413===n.xhr_req.status)if(o.length>1){var d=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,d,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),a=!0;else a=!0;a&&(this.queue.removeItemsByID(C.map(o,(function(e){return e.id})),C.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),C.each(o,C.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(p){this.reportError("Error handling API response",p),this.resetFlush()}}),this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),Y.log("MIXPANEL REQUEST:",a),this.sendRequest(a,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}},K.prototype.reportError=function(e,t){if(Y.error.apply(Y.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Y.error(t)}};var Q="__mp_opt_in_out_";function X(e,t){se(!0,e,t)}function Z(e,t){se(!1,e,t)}function J(e,t){return"1"===ae(e,t)}function $(e,n){if(function(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||t,r=n.navigator||{},i=!1;return C.each([r.doNotTrack,r.msDoNotTrack,n.doNotTrack],(function(e){C.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(n))return A.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===ae(e,n);return r&&A.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function ee(e){return le(e,(function(e){return this.get_config(e)}))}function te(e){return le(e,(function(e){return this._get_config(e)}))}function ne(e){return le(e,(function(e){return this._get_config(e)}))}function re(e,t){ie(t=t||{}).remove(oe(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ie(e){return"localStorage"===(e=e||{}).persistenceType?C.localStorage:C.cookie}function oe(e,t){return((t=t||{}).persistencePrefix||Q)+e}function ae(e,t){return ie(t).get(oe(e,t))}function se(e,t,n){C.isString(t)&&t.length?(ie(n=n||{}).set(oe(t,n),e?1:0,C.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):A.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function le(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(n=$(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(c){A.error("Unexpected error when checking tracking opt-out status: "+c)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"===typeof l&&l(0)}}var ce="$set",ue="$set_once",de="$unset",pe="$add",he="$append",fe="$union",me="$remove",ge={set_action:function(e,t){var n={},r={};return C.isObject(e)?C.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[ce]=r,n},unset_action:function(e){var t={},n=[];return C.isArray(e)||(e=[e]),C.each(e,(function(e){this._is_reserved_property(e)||n.push(e)}),this),t[de]=n,t},set_once_action:function(e,t){var n={},r={};return C.isObject(e)?C.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[ue]=r,n},union_action:function(e,t){var n={},r={};return C.isObject(e)?C.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=C.isArray(e)?e:[e])}),this):r[e]=C.isArray(t)?t:[t],n[fe]=r,n},append_action:function(e,t){var n={},r={};return C.isObject(e)?C.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[he]=r,n},remove_action:function(e,t){var n={},r={};return C.isObject(e)?C.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n[me]=r,n},delete_action:function(){var e={$delete:""};return e}},ve=function(){};C.extend(ve.prototype,ge),ve.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},ve.prototype.set=ne((function(e,t,n){var r=this.set_action(e,t);return C.isObject(e)&&(n=t),this._send_request(r,n)})),ve.prototype.set_once=ne((function(e,t,n){var r=this.set_once_action(e,t);return C.isObject(e)&&(n=t),this._send_request(r,n)})),ve.prototype.unset=ne((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),ve.prototype.union=ne((function(e,t,n){C.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),ve.prototype.delete=ne((function(e){var t=this.delete_action();return this._send_request(t,e)})),ve.prototype.remove=ne((function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)})),ve.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=C.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},ve.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ve.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ve.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ve.prototype.remove=ve.prototype.remove,ve.prototype.set=ve.prototype.set,ve.prototype.set_once=ve.prototype.set_once,ve.prototype.union=ve.prototype.union,ve.prototype.unset=ve.prototype.unset,ve.prototype.toString=ve.prototype.toString;var ye=function(){};C.extend(ye.prototype,ge),ye.prototype._init=function(e){this._mixpanel=e},ye.prototype.set=te((function(e,t,n){var r=this.set_action(e,t);return C.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[ce]=C.extend({},C.info.people_properties(),r[ce]),this._send_request(r,n)})),ye.prototype.set_once=te((function(e,t,n){var r=this.set_once_action(e,t);return C.isObject(e)&&(n=t),this._send_request(r,n)})),ye.prototype.unset=te((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),ye.prototype.increment=te((function(e,t,n){var r={},i={};return C.isObject(e)?(C.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void A.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),n=t):(C.isUndefined(t)&&(t=1),i[e]=t),r[pe]=i,this._send_request(r,n)})),ye.prototype.append=te((function(e,t,n){C.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)})),ye.prototype.remove=te((function(e,t,n){C.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)})),ye.prototype.union=te((function(e,t,n){C.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),ye.prototype.track_charge=te((function(e,t,n){if(C.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",C.extend({$amount:e},t),n);A.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),ye.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ye.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}A.error("mixpanel.people.delete_user() requires you to call identify() first")},ye.prototype.toString=function(){return this._mixpanel.toString()+".people"},ye.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var o=C.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),C.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),C.truncate(o,255))},ye.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ye.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ye.prototype._enqueue=function(e){ce in e?this._mixpanel.persistence._add_to_people_queue(ce,e):ue in e?this._mixpanel.persistence._add_to_people_queue(ue,e):de in e?this._mixpanel.persistence._add_to_people_queue(de,e):pe in e?this._mixpanel.persistence._add_to_people_queue(pe,e):he in e?this._mixpanel.persistence._add_to_people_queue(he,e):me in e?this._mixpanel.persistence._add_to_people_queue(me,e):fe in e?this._mixpanel.persistence._add_to_people_queue(fe,e):A.error("Invalid call to _enqueue():",e)},ye.prototype._flush_one_queue=function(e,t,n,r){var i=this,o=C.extend({},this._mixpanel.persistence.load_queue(e)),a=o;C.isUndefined(o)||!C.isObject(o)||C.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),r&&(a=r(o)),t.call(i,a,(function(t,r){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),C.isUndefined(n)||n(t,r)})))},ye.prototype._flush=function(e,t,n,r,i,o,a){var s=this;this._flush_one_queue(ce,this.set,e),this._flush_one_queue(ue,this.set_once,r),this._flush_one_queue(de,this.unset,o,(function(e){return C.keys(e)})),this._flush_one_queue(pe,this.increment,t),this._flush_one_queue(fe,this.union,i);var l=this._mixpanel.persistence.load_queue(he);if(!C.isUndefined(l)&&C.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(he,c),C.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(he),c=l.pop(),s._mixpanel.persistence.save(),C.isEmptyObject(c)||s.append(c,u);var p=this._mixpanel.persistence.load_queue(me);if(!C.isUndefined(p)&&C.isArray(p)&&p.length)for(var h,f=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(me,h),C.isUndefined(a)||a(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue(me),h=p.pop(),s._mixpanel.persistence.save(),C.isEmptyObject(h)||s.remove(h,f)},ye.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ye.prototype.set=ye.prototype.set,ye.prototype.set_once=ye.prototype.set_once,ye.prototype.unset=ye.prototype.unset,ye.prototype.increment=ye.prototype.increment,ye.prototype.append=ye.prototype.append,ye.prototype.remove=ye.prototype.remove,ye.prototype.union=ye.prototype.union,ye.prototype.track_charge=ye.prototype.track_charge,ye.prototype.clear_charges=ye.prototype.clear_charges,ye.prototype.delete_user=ye.prototype.delete_user,ye.prototype.toString=ye.prototype.toString;var be,we,xe="__mps",Ce="__mpso",Ae="__mpus",Ee="__mpa",_e="__mpap",Te="__mpr",Se="__mpu",ke="$people_distinct_id",Pe="__alias",De="__timers",Fe=[xe,Ce,Ae,Ee,_e,Te,Se,ke,Pe,De],Ne=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(A.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&C.localStorage.is_supported()?this.storage=C.localStorage:this.storage=C.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Ne.prototype.properties=function(){var e={};return this.load(),C.each(this.props,(function(t,n){C.include(Fe,n)||(e[n]=t)})),e},Ne.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=C.extend({},e))}},Ne.prototype.upgrade=function(){var e,t;this.storage===C.localStorage?(e=C.cookie.parse(this.name),C.cookie.remove(this.name),C.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===C.cookie&&(t=C.localStorage.parse(this.name),C.localStorage.remove(this.name),t&&this.register_once(t))},Ne.prototype.save=function(){this.disabled||this.storage.set(this.name,C.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Ne.prototype.load_prop=function(e){return this.load(),this.props[e]},Ne.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Ne.prototype.clear=function(){this.remove(),this.props={}},Ne.prototype.register_once=function(e,t,n){return!!C.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof n?this.default_expiry:n,this.load(),C.each(e,(function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)}),this),this.save(),!0)},Ne.prototype.register=function(e,t){return!!C.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),C.extend(this.props,e),this.save(),!0)},Ne.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Ne.prototype.update_search_keyword=function(e){this.register(C.info.searchInfo(e))},Ne.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:C.info.referringDomain(e)||"$direct"},"")},Ne.prototype.get_referrer_info=function(){return C.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ne.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Ne.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ne.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Ne.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Ne.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ne.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ne.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ne.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(ce),o=this._get_or_create_queue(ue),a=this._get_or_create_queue(de),s=this._get_or_create_queue(pe),l=this._get_or_create_queue(fe),c=this._get_or_create_queue(me,[]),u=this._get_or_create_queue(he,[]);n===xe?(C.extend(i,r),this._pop_from_people_queue(pe,r),this._pop_from_people_queue(fe,r),this._pop_from_people_queue(de,r)):n===Ce?(C.each(r,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(de,r)):n===Ae?C.each(r,(function(e){C.each([i,o,s,l],(function(t){e in t&&delete t[e]})),C.each(u,(function(t){e in t&&delete t[e]})),a[e]=!0})):n===Ee?(C.each(r,(function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue(de,r)):n===Se?(C.each(r,(function(e,t){C.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue(de,r)):n===Te?(c.push(r),this._pop_from_people_queue(he,r)):n===_e&&(u.push(r),this._pop_from_people_queue(de,r)),A.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),A.log(t),this.save()},Ne.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];C.isUndefined(n)||C.each(t,(function(t,r){e===he||e===me?C.each(n,(function(e){e[r]===t&&delete e[r]})):delete n[r]}),this)},Ne.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Ne.prototype._get_queue_key=function(e){return e===ce?xe:e===ue?Ce:e===de?Ae:e===pe?Ee:e===he?_e:e===me?Te:e===fe?Se:void A.error("Invalid queue:",e)},Ne.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=C.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Ne.prototype.set_event_timer=function(e,t){var n=this.load_prop(De)||{};n[e]=t,this.props[De]=n,this.save()},Ne.prototype.remove_event_timer=function(e){var t=(this.load_prop(De)||{})[e];return C.isUndefined(t)||(delete this.props[De][e],this.save()),t};var Ie=function(e){return e},Re=function(){},Oe="mixpanel",je="base64",Me="$device:",Le=t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Be=!Le&&-1===m.indexOf("MSIE")&&-1===m.indexOf("Mozilla"),Ue=null;d.sendBeacon&&(Ue=function(){return d.sendBeacon.apply(d,arguments)});var Ve={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},He={api_host:"https://api-js.mixpanel.com",api_routes:Ve,api_method:"POST",api_transport:"XHR",api_payload_format:je,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Re,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Re,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},ze=!1,We=function(){},qe=function(e,t,r){var i,o=r===Oe?we:we[r];if(o&&0===be)i=o;else{if(o&&!C.isArray(o))return void A.error("You have already initialized "+r);i=new We}if(i._cached_groups={},i._init(e,t,r),i.people=new ye,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var a=C.info.campaignParams(null),s={},l=!1;C.each(a,(function(e,t){s["initial_"+t]=e,e&&(l=!0)})),l&&i.people.set_once(s)}return n.DEBUG=n.DEBUG||i.get_config("debug"),!C.isUndefined(o)&&C.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};We.prototype.init=function(e,t,n){if(C.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if(n!==Oe){var r=qe(e,t,n);return we[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},We.prototype._init=function(e,n,r){n=n||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in n||(n.api_host||He.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.set_config(C.extend({},He,i,n,{name:r,token:e,callback_fn:(r===Oe?r:Oe+"."+r)+"._jsc"})),this._jsc=Re,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(C.localStorage.is_supported(!0)&&Le){if(this.init_batchers(),Ue&&t.addEventListener){var o=C.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);t.addEventListener("pagehide",(function(e){e.persisted&&o()})),t.addEventListener("visibilitychange",(function(){"hidden"===p.visibilityState&&o()}))}}else this._batch_requests=!1,A.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),C.each(this.get_batcher_configs(),(function(e){A.log("Clearing batch queue "+e.queue_key),C.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Ne(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=C.UUID();this.get_distinct_id()||this.register_once({distinct_id:Me+a,$device_id:a},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},We.prototype.start_session_recording=ee((function(){if(t.MutationObserver){var e=C.bind((function(){this._recorder=this._recorder||new t.__mp_recorder(this),this._recorder.startRecording()}),this);if(C.isUndefined(t.__mp_recorder)){var n=p.createElement("script");n.type="text/javascript",n.async=!0,n.onload=e,n.src=this.get_config("recorder_src"),p.head.appendChild(n)}else e()}else A.critical("Browser does not support MutationObserver; skipping session recording")})),We.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():A.critical("Session recorder module not loaded")},We.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},We.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=C.info.campaignParams(null);C.each(e,function(e,t){this.unregister(t)}.bind(this))}},We.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(p.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(C.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(p.referrer)},We.prototype._dom_loaded=function(){C.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||C.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},We.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ze)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},We.prototype._init_url_change_tracking=function(e){var n="";if(this.track_pageview()&&(n=C.info.currentUrl()),C.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){t.addEventListener("popstate",(function(){t.dispatchEvent(new Event("mp_locationchange"))})),t.addEventListener("hashchange",(function(){t.dispatchEvent(new Event("mp_locationchange"))}));var r=t.history.pushState;"function"===typeof r&&(t.history.pushState=function(e,n,i){r.call(t.history,e,n,i),t.dispatchEvent(new Event("mp_locationchange"))});var i=t.history.replaceState;"function"===typeof i&&(t.history.replaceState=function(e,n,r){i.call(t.history,e,n,r),t.dispatchEvent(new Event("mp_locationchange"))}),t.addEventListener("mp_locationchange",function(){var t=C.info.currentUrl(),r=!1;("full-url"===e?r=t!==n:"url-with-path-and-query-string"===e?r=t.split("#")[0]!==n.split("#")[0]:"url-with-path"===e&&(r=t.split("#")[0].split("?")[0]!==n.split("#")[0].split("?")[0]),r)&&(this.track_pageview()&&(n=t))}.bind(this))}},We.prototype._prepare_callback=function(e,t){if(C.isUndefined(e))return null;if(Le){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],e(i,t)},i},We.prototype._send_request=function(e,t,n,r){var i=!0;if(Be)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;r||!C.isFunction(n)&&"string"!==typeof n||(r=n,n=null),n=C.extend(o,n||{}),Le||(n.method="GET");var s="POST"===n.method,l=Ue&&s&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Le||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+C.HTTPBuildQuery(t);var u=this;if("img"in t){var d=p.createElement("img");d.src=e,p.body.appendChild(d)}else if(l){try{i=Ue(e,a)}catch(y){u.report_error(y),i=!1}try{r&&r(i?1:0)}catch(y){u.report_error(y)}}else if(Le)try{var h=new XMLHttpRequest;h.open(n.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),C.each(f,(function(e,t){h.setRequestHeader(t,e)})),n.timeout_ms&&"undefined"!==typeof h.timeout){h.timeout=n.timeout_ms;var m=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(r)if(c){var t;try{t=C.JSONDecode(h.responseText)}catch(y){if(u.report_error(y),!n.ignore_json_errors)return;t=h.responseText}r(t)}else r(Number(h.responseText))}else e=h.timeout&&!h.status&&(new Date).getTime()-m>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(e),r&&r(c?{status:0,error:e,xhr_req:h}:0)},h.send(a)}catch(y){u.report_error(y),i=!1}else{var g=p.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var v=p.getElementsByTagName("script")[0];v.parentNode.insertBefore(g,v)}return i},We.prototype._execute_array=function(e){var t,n=[],r=[],i=[];C.each(e,(function(e){e&&(t=e[0],C.isArray(t)?i.push(e):"function"===typeof e?e.call(this):C.isArray(e)&&"alias"===t?n.push(e):C.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):r.push(e))}),this);var o=function(e,t){C.each(e,(function(e){if(C.isArray(e[0])){var n=t;C.each(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(n,this),o(r,this),o(i,this)},We.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},We.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},We.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=C.bind((function(e){return new K(e.queue_key,{libConfig:this.config,sendRequestFunc:C.bind((function(t,n,r){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),n,this._prepare_callback(r,t))}),this),beforeSendHook:C.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:C.bind(this.stop_batch_senders,this)})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},We.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,C.each(this.request_batchers,(function(e){e.start()})))},We.prototype.stop_batch_senders=function(){this._batch_requests=!1,C.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},We.prototype.push=function(e){this._execute_array([e])},We.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},We.prototype._encode_data_for_request=function(e){var t=C.JSONEncode(e);return this.get_config("api_payload_format")===je&&(t=C.base64Encode(t)),{data:t}},We.prototype._track_or_batch=function(e,t){var n=C.truncate(e.data,255),r=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||Re;var s=!0,l=C.bind((function(){return a.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(A.log("MIXPANEL REQUEST:"),A.log(n),this._send_request(r,this._encode_data_for_request(n),a,this._prepare_callback(t,n))):null}),this);return this._batch_requests&&!o?i.enqueue(n,(function(e){e?t(1,n):l()})):s=l(),s&&n},We.prototype.track=ee((function(e,t,n,r){r||"function"!==typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var o=n.send_immediately;if("function"!==typeof r&&(r=Re),C.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=C.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!C.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?C.info.marketingParams():{};t=C.extend({},C.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");C.isArray(c)?C.each(c,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r)}r(0)}})),We.prototype.set_group=ee((function(e,t,n){C.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)})),We.prototype.add_group=ee((function(e,t,n){var r=this.get_property(e),i={};return void 0===r?(i[e]=[t],this.register(i)):-1===r.indexOf(t)&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)})),We.prototype.remove_group=ee((function(e,t,n){var r=this.get_property(e);if(void 0!==r){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)})),We.prototype.track_with_groups=ee((function(e,t,n,r){var i=C.extend({},t||{});return C.each(n,(function(e,t){null!==e&&void 0!==e&&(i[t]=e)})),this.track(e,i,r)})),We.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},We.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},We.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new ve)._init(this,e,t),this._cached_groups[n]=r),r},We.prototype.track_pageview=ee((function(e,t){"object"!==typeof e&&(e={});var n=(t=t||{}).event_name||"$mp_web_page_view",r=C.extend(C.info.mpPageViewProperties(),C.info.campaignParams(),C.info.clickParams()),i=C.extend({},r,e);return this.track(n,i)})),We.prototype.track_links=function(){return this._track_dom.call(this,B,arguments)},We.prototype.track_forms=function(){return this._track_dom.call(this,U,arguments)},We.prototype.time_event=function(e){C.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Ge={persistent:!0},Ye=function(e){var t;return t=C.isObject(e)?e:C.isUndefined(e)?{}:{days:e},C.extend({},Ge,t)};We.prototype.register=function(e,t){var n=Ye(t);n.persistent?this.persistence.register(e,n.days):C.extend(this.unpersisted_superprops,e)},We.prototype.register_once=function(e,t,n){var r=Ye(n);r.persistent?this.persistence.register_once(e,t,r.days):("undefined"===typeof t&&(t="None"),C.each(e,(function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)}),this))},We.prototype.unregister=function(e,t){(t=Ye(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},We.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},We.prototype.identify=function(e,t,n,r,i,o,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"===typeof e&&0===e.indexOf(Me))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property(Pe)&&(this.unregister(Pe),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,o,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},We.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=C.UUID();this.register_once({distinct_id:Me+e,$device_id:e},"")},We.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},We.prototype.alias=function(e,t){if(e===this.get_property(ke))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return C.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Pe,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){n.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},We.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},We.prototype.set_config=function(e){C.isObject(e)&&(C.extend(this.config,e),e.batch_size&&C.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),n.DEBUG=n.DEBUG||this.get_config("debug"))},We.prototype.get_config=function(e){return this.config[e]},We.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Ie).apply(this,s.call(arguments,1));return"undefined"===typeof t&&(this.report_error(e+" hook did not return a value"),t=null),t},We.prototype.get_property=function(e){return this.persistence.load_prop([e])},We.prototype.toString=function(){var e=this.get_config("name");return e!==Oe&&(e=Oe+"."+e),e},We.prototype._event_is_disabled=function(e){return C.isBlockedUA(m)||this._flags.disable_all_events||C.include(this.__disabled_events,e)},We.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&C.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!C.cookie.get("mp_optout")||(C.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},We.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},We.prototype._gdpr_call_func=function(e,t){return t=C.extend({track:C.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),C.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},We.prototype.opt_in_tracking=function(e){e=C.extend({enable_persistence:!0},e),this._gdpr_call_func(X,e),this._gdpr_update_persistence(e)},We.prototype.opt_out_tracking=function(e){(e=C.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Z,e),this._gdpr_update_persistence(e)},We.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(J,e)},We.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func($,e)},We.prototype.clear_opt_in_out_tracking=function(e){e=C.extend({enable_persistence:!0},e),this._gdpr_call_func(re,e),this._gdpr_update_persistence(e)},We.prototype.report_error=function(e,t){A.error.apply(A.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){A.error(t)}},We.prototype.init=We.prototype.init,We.prototype.reset=We.prototype.reset,We.prototype.disable=We.prototype.disable,We.prototype.time_event=We.prototype.time_event,We.prototype.track=We.prototype.track,We.prototype.track_links=We.prototype.track_links,We.prototype.track_forms=We.prototype.track_forms,We.prototype.track_pageview=We.prototype.track_pageview,We.prototype.register=We.prototype.register,We.prototype.register_once=We.prototype.register_once,We.prototype.unregister=We.prototype.unregister,We.prototype.identify=We.prototype.identify,We.prototype.alias=We.prototype.alias,We.prototype.name_tag=We.prototype.name_tag,We.prototype.set_config=We.prototype.set_config,We.prototype.get_config=We.prototype.get_config,We.prototype.get_property=We.prototype.get_property,We.prototype.get_distinct_id=We.prototype.get_distinct_id,We.prototype.toString=We.prototype.toString,We.prototype.opt_out_tracking=We.prototype.opt_out_tracking,We.prototype.opt_in_tracking=We.prototype.opt_in_tracking,We.prototype.has_opted_out_tracking=We.prototype.has_opted_out_tracking,We.prototype.has_opted_in_tracking=We.prototype.has_opted_in_tracking,We.prototype.clear_opt_in_out_tracking=We.prototype.clear_opt_in_out_tracking,We.prototype.get_group=We.prototype.get_group,We.prototype.set_group=We.prototype.set_group,We.prototype.add_group=We.prototype.add_group,We.prototype.remove_group=We.prototype.remove_group,We.prototype.track_with_groups=We.prototype.track_with_groups,We.prototype.start_batch_senders=We.prototype.start_batch_senders,We.prototype.stop_batch_senders=We.prototype.stop_batch_senders,We.prototype.start_session_recording=We.prototype.start_session_recording,We.prototype.stop_session_recording=We.prototype.stop_session_recording,We.prototype.get_session_recording_properties=We.prototype.get_session_recording_properties,We.prototype.DEFAULT_API_ROUTES=Ve,Ne.prototype.properties=Ne.prototype.properties,Ne.prototype.update_search_keyword=Ne.prototype.update_search_keyword,Ne.prototype.update_referrer_info=Ne.prototype.update_referrer_info,Ne.prototype.get_cross_subdomain=Ne.prototype.get_cross_subdomain,Ne.prototype.clear=Ne.prototype.clear;var Ke={},Qe=function(){we.init=function(e,n,r){if(r)return we[r]||(we[r]=Ke[r]=qe(e,n,r),we[r]._loaded()),we[r];var i=we;Ke[Oe]?i=Ke[Oe]:e&&((i=qe(e,n,Oe))._loaded(),Ke[Oe]=i),we=i,1===be&&(t[Oe]=we),C.each(Ke,(function(e,t){t!==Oe&&(we[t]=e)})),we._=C}};var Xe=(be=0,we=new We,Qe(),we.init(),function(){function e(){e.done||(e.done=!0,ze=!0,Be=!1,C.each(Ke,(function(e){e._dom_loaded()})))}if(p.addEventListener)"complete"===p.readyState?e():p.addEventListener("DOMContentLoaded",e,!1);else if(p.attachEvent){p.attachEvent("onreadystatechange",e);var n=!1;try{n=null===t.frameElement}catch(r){}p.documentElement.doScroll&&n&&function t(){try{p.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}()}C.register_event(t,"load",e,!0)}(),we);e.exports=Xe},88642:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>Z,WQ:()=>$,PA:()=>Y});var r=n(31991),i=n(61462);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.Gn)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(72551);function a(e){e()}function s(e){return(0,r.yl)(e)}var l=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),c=new("undefined"!==typeof FinalizationRegistry?FinalizationRegistry:l)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),u=!1;function d(){return u}var p=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function h(e){return"observer".concat(e)}var f=function(){};function m(){return new f}function g(e,t){if(void 0===t&&(t="observed"),d())return e();var n=p(i.useState(m),1)[0],o=p(i.useState(),2)[1],a=function(){return o([])},l=i.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var u,f,g=l.current;if(g.reaction||(g.reaction=new r.qT(h(t),(function(){g.mounted?a():g.changedBeforeMount=!0})),c.register(n,g,g)),i.useDebugValue(g.reaction,s),i.useEffect((function(){return c.unregister(g),g.mounted=!0,g.reaction?g.changedBeforeMount&&(g.changedBeforeMount=!1,a()):(g.reaction=new r.qT(h(t),(function(){a()})),a()),function(){g.reaction.dispose(),g.reaction=null,g.mounted=!1,g.changedBeforeMount=!1}}),[]),g.reaction.track((function(){try{u=e()}catch(t){f=t}})),f)throw f;return u}var v="function"===typeof Symbol&&Symbol.for,y=v?Symbol.for("react.forward_ref"):"function"===typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,b=v?Symbol.for("react.memo"):"function"===typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function w(e,t){var n;if(b&&e.$$typeof===b)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(d())return e;var r=null!==(n=null===t||void 0===t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(y&&e.$$typeof===y&&(r=!0,"function"!==typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,l,c=function(e,t){return g((function(){return o(e,t)}),a)};return""!==a&&(c.displayName=a),e.contextTypes&&(c.contextTypes=e.contextTypes),r&&(c=(0,i.forwardRef)(c)),c=(0,i.memo)(c),s=e,l=c,Object.keys(s).forEach((function(e){x[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(s,e))})),c}var x={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var C,A;(A=o.unstable_batchedUpdates)||(A=a),(0,r.jK)({reactionScheduler:A});C=c.finalizeAllImmediately;var E=0;var _={};function T(e){return _[e]||(_[e]=function(e){if("function"===typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+E+")";return E++,t}(e)),_[e]}function S(e,t){if(k(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.hasOwnProperty.call(t,n[i])||!k(e[n[i]],t[n[i]]))return!1;return!0}function k(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}var P={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1};function D(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var F=T("patchMixins"),N=T("patchedDefinition");function I(e,t){for(var n=this,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t.locks++;try{var a;return void 0!==e&&null!==e&&(a=e.apply(this,i)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,i)}))}}function R(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];I.call.apply(I,[this,e,t].concat(r))}}function O(e,t,n){var r=function(e,t){var n=e[F]=e[F]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[N]){var o=e[t],a=j(e,t,i?i.enumerable:void 0,r,o);Object.defineProperty(e,t,a)}}function j(e,t,n,r,i){var o,a=R(i,r);return(o={})[N]=!0,o.get=function(){return a},o.set=function(i){if(this===e)a=R(i,r);else{var o=j(this,t,n,r,i);Object.defineProperty(this,t,o)}},o.configurable=!0,o.enumerable=n,o}var M=r.BQ||"$mobx",L=T("isMobXReactObserver"),B=T("isUnmounted"),U=T("skipRender"),V=T("isForcingUpdate");function H(e){var t=e.prototype;if(e[L]){var n=z(t);console.warn("The provided component class ("+n+")\n                has already been declared as an observer component.")}else e[L]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==q)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=q;G(t,"props"),G(t,"state"),e.contextType&&G(t,"context");var r=t.render;if("function"!==typeof r){var o=z(t);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return t.render=function(){return this.render=d()?r:W.call(this,r),this.render()},O(t,"componentDidMount",(function(){this[B]=!1,this.render[M]||i.Component.prototype.forceUpdate.call(this)})),O(t,"componentWillUnmount",(function(){if(!d()){var e=this.render[M];if(e)e.dispose(),this.render[M]=null;else{var t=z(this);console.warn("The reactive render of an observer class component ("+t+")\n                was overridden after MobX attached. This may result in a memory leak if the\n                overridden reactive render was not properly disposed.")}this[B]=!0}})),e}function z(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function W(e){var t=this;D(this,U,!1),D(this,V,!1);var n=z(this),o=e.bind(this),a=!1;return function e(){var s;a=!1;var l=null!=(s=e[M])?s:e[M]=function(){var e=new r.qT(n+".render()",(function(){if(!a&&(a=!0,!0!==t[B])){var n=!0;try{D(t,V,!0),t[U]||i.Component.prototype.forceUpdate.call(t),n=!1}finally{D(t,V,!1),n&&(e.dispose(),t.render[M]=null)}}}));return e.reactComponent=t,e}(),c=void 0,u=void 0;if(l.track((function(){try{u=(0,r.vx)(!1,o)}catch(e){c=e}})),c)throw c;return u}}function q(e,t){return d()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!S(this.props,e)}function G(e,t){var n=T("reactProp_"+t+"_valueHolder"),i=T("reactProp_"+t+"_atomHolder");function o(){return this[i]||D(this,i,(0,r.MN)("reactive "+t)),this[i]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r.f2&&r.w6&&(e=(0,r.f2)(!0)),o.call(this).reportObserved(),r.f2&&r.w6&&(0,r.w6)(e),this[n]},set:function(e){this[V]||S(this[n],e)?D(this,n,e):(D(this,n,e),D(this,U,!0),o.call(this).reportChanged(),D(this,U,!1))}})}function Y(e){return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(i.Component,e)||Object.prototype.isPrototypeOf.call(i.PureComponent,e)?H(e):w(e)}function K(){return K=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},K.apply(this,arguments)}var Q=["children"],X=i.createContext({});function Z(e){var t=e.children,n=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,Q),r=i.useContext(X),o=i.useRef(K({},r,n)).current;return i.createElement(X.Provider,{value:o},t)}function J(e,t,n,r){var o=i.forwardRef((function(n,r){var o=K({},n),a=i.useContext(X);return Object.assign(o,e(a||{},o)||{}),r&&(o.ref=r),i.createElement(t,o)}));return r&&(o=Y(o)),o.isMobxInjector=!0,function(e,t){var n=Object.getOwnPropertyNames(Object.getPrototypeOf(e));Object.getOwnPropertyNames(e).forEach((function(r){P[r]||-1!==n.indexOf(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}(t,o),o.wrappedComponent=t,o.displayName=function(e,t){var n,r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";n=t?"inject-with-"+t+"("+r+")":"inject("+r+")";return n}(t,n),o}function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("function"===typeof arguments[0]){var r=arguments[0];return function(e){return J(r,e,r.name,!0)}}return function(e){return J(function(e){return function(t,n){return e.forEach((function(e){if(!(e in n)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");n[e]=t[e]}})),n}}(t),e,t.join("-"),!1)}}Z.displayName="MobXProvider";if(!i.Component)throw new Error("mobx-react requires React to be available");if(!r.sH)throw new Error("mobx-react requires mobx to be available")},31991:(e,t,n)=>{"use strict";n.d(t,{BQ:()=>W,Es:()=>Xn,Fq:()=>Gn,Gn:()=>Nn,H8:()=>pn,HO:()=>Cn,Jt:()=>bn,MN:()=>Y,O8:()=>st,OB:()=>sr,TF:()=>yn,XI:()=>Lt,f2:()=>ut,h5:()=>Ut,hZ:()=>vn,jK:()=>$t,l_:()=>Rn,mJ:()=>qt,qT:()=>Et,sH:()=>Ie,uz:()=>Zn,ve:()=>Vt,vx:()=>We,w6:()=>dt,yl:()=>tn,zu:()=>gn});function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"===typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var i={};function o(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var p="undefined"!==typeof Proxy,h=Object.toString();function f(){p||r("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function v(e){return"function"===typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"===typeof e}function w(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n.toString()===h}function x(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function C(e,t,n){l(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function A(e,t,n){l(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function E(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function _(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function T(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var S="undefined"!==typeof Object.getOwnPropertySymbols;var k="undefined"!==typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:S?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"===typeof e?""+e:e}function D(e,t){return c.hasOwnProperty.call(e,t)}var F=Object.getOwnPropertyDescriptors||function(e){var t={};return k(e).forEach((function(n){t[n]=s(e,n)})),t};function N(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 I(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,B(r.key),r)}}function R(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}function M(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L(e,t)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function B(e){var t=function(e,t){if("object"!=typeof e||!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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var U=Symbol("mobx-stored-annotations");function V(e){return Object.assign((function(t,n){if(z(n))return e.decorate_20223_(t,n);H(t,n,e)}),e)}function H(e,t,n){D(e,U)||C(e,U,j({},e[U])),function(e){return e.annotationType_===Z}(n)||(e[U][t]=n)}function z(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),q=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Ct(this)},t.reportChanged=function(){wt(),At(this),xt()},t.toString=function(){return this.name_},e}(),G=E("Atom",q);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r,i=new q(e);return t!==g&&Qt(Gt,i,t,r),n!==g&&Kt(i,n),i}var K={identity:function(e,t){return e===t},structural:function(e,t){return Tr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return Tr(e,t,1)}};function Q(e,t,n){return fn(e)?e:Array.isArray(e)?Ie.array(e,{name:n}):w(e)?Ie.object(e,void 0,{name:n}):_(e)?Ie.map(e,{name:n}):T(e)?Ie.set(e,{name:n}):"function"!==typeof e||Vt(e)||un(e)?e:x(e)?ln(e):Bt(n,e)}function X(e){return e}var Z="override";function J(e,t){return{annotationType_:e,options_:t,make_:$,extend_:ee,decorate_20223_:te}}function $(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Vt(n.value))return 1;var o=ne(e,this,t,n,!1);return l(r,t,o),2}function ee(e,t,n,r){var i=ne(e,this,t,n);return e.defineProperty_(t,i,r)}function te(e,t){var n=t.kind,i=t.name,o=t.addInitializer,a=this;if("field"!=n){var s;if("method"==n)return Vt(e)||(e=function(e){var t,n,r,o;return He(null!=(t=null==(n=a.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=a.options_)?void 0:o.autoAction)&&r)}(e)),null!=(s=this.options_)&&s.bound&&o((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e;r("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}else o((function(){H(this,i,a)}))}function ne(e,t,n,r,i){var o,a,s,l,c,u,d,p;void 0===i&&(i=gt.safeDescriptors),p=r,t.annotationType_,p.value;var h,f=r.value;null!=(o=t.options_)&&o.bound&&(f=f.bind(null!=(h=e.proxy_)?h:e.target_));return{value:He(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),f,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function re(e,t){return{annotationType_:e,options_:t,make_:ie,extend_:oe,decorate_20223_:ae}}function ie(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!D(e.target_,t)||!un(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(un(n.value))return 1;var o=se(e,this,t,n,!1,!1);return l(r,t,o),2}function oe(e,t,n,r){var i,o=se(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ae(e,t){var n;var r=t.name,i=t.addInitializer;return un(e)||(e=ln(e)),null!=(n=this.options_)&&n.bound&&i((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function se(e,t,n,r,i,o){var a;void 0===o&&(o=gt.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;(un(l)||(l=ln(l)),i)&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:l,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function le(e,t){return{annotationType_:e,options_:t,make_:ce,extend_:ue,decorate_20223_:de}}function ce(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ue(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,j({},this.options_,{get:n.get,set:n.set}),r)}function de(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=ir(this)[W],i=j({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Ze(i))})),function(){return this[W].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:he,extend_:fe,decorate_20223_:me}}function he(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function fe(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Q,r)}function me(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function a(e,t){var r,a,s=ir(e)[W],l=new Ye(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:Q,"ObservableObject."+i.toString(),!1);s.values_.set(i,l),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[W].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var ge="true",ve=ye();function ye(e){return{annotationType_:ge,options_:e,make_:be,extend_:we,decorate_20223_:xe}}function be(e,t,n,r){var i,o,a,s;if(n.get)return Me.make_(e,t,n,r);if(n.set){var c=He(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!gt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"===typeof n.value)return x(n.value)?(null!=(s=this.options_)&&s.autoBind?ln.bound:ln).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Bt.bound:Bt).make_(e,t,n,r);var u,d=!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie;"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return d.make_(e,t,n,r)}function we(e,t,n,r){var i,o,a;if(n.get)return Me.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!gt.safeDescriptors||e.isPlainObject_,set:He(t.toString(),n.set)},r);"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie).extend_(e,t,n,r)}function xe(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Ce={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Ce}Object.freeze(Ce);var Ee=pe("observable"),_e=pe("observable.ref",{enhancer:X}),Te=pe("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||sr(e)||Gn(e)||Zn(e)||er(e)?e:Array.isArray(e)?Ie.array(e,{name:n,deep:!1}):w(e)?Ie.object(e,void 0,{name:n,deep:!1}):_(e)?Ie.map(e,{name:n,deep:!1}):T(e)?Ie.set(e,{name:n,deep:!1}):void 0}}),Se=pe("observable.struct",{enhancer:function(e,t){return Tr(e,t)?t:e}}),ke=V(Ee);function Pe(e){return!0===e.deep?Q:!1===e.deep?X:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Q}(e.defaultDecorator)}function De(e,t,n){return z(t)?Ee.decorate_20223_(e,t):y(t)?void H(e,t,Ee):fn(e)?e:w(e)?Ie.object(e,t,n):Array.isArray(e)?Ie.array(e,t):_(e)?Ie.map(e,t):T(e)?Ie.set(e,t):"object"===typeof e&&null!==e?e:Ie.box(e,t)}a(De,ke);var Fe,Ne,Ie=a(De,{box:function(e,t){var n=Ae(t);return new Ye(e,Pe(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===gt.useProxies||!1===n.proxy?wr:Bn)(e,Pe(n),n.name)},map:function(e,t){var n=Ae(t);return new Xn(e,Pe(n),n.name)},set:function(e,t){var n=Ae(t);return new $n(e,Pe(n),n.name)},object:function(e,t,n){return Er((function(){return en(!1===gt.useProxies||!1===(null==n?void 0:n.proxy)?ir({},n):function(e,t){var n,r;return f(),e=ir(e,t),null!=(r=(n=e[W]).proxy_)?r:n.proxy_=new Proxy(e,_n)}({},n),e,t)}))},ref:V(_e),shallow:V(Te),deep:ke,struct:V(Se)}),Re="computed",Oe=le(Re),je=le("computed.struct",{equals:K.structural}),Me=function(e,t){if(z(t))return Oe.decorate_20223_(e,t);if(y(t))return H(e,t,Oe);if(w(e))return V(le(Re,e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ze(n)};Object.assign(Me,Oe),Me.struct=V(je);var Le=0,Be=1,Ue=null!=(Fe=null==(Ne=s((function(){}),"name"))?void 0:Ne.configurable)&&Fe,Ve={value:"action",configurable:!0,writable:!1,enumerable:!1};function He(e,t,n,r){function i(){return ze(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},Ue&&(Ve.value=e,l(i,"name",Ve)),i}function ze(e,t,n,i,o){var a=function(e,t,n,r){var i=!1,o=0;0;var a=gt.trackingDerivation,s=!t||!a;wt();var l=gt.allowStateChanges;s&&(lt(),l=qe(!0));var c=ut(!0),u={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:i,startTime_:o,actionId_:Be++,parentActionId_:Le};return Le=u.actionId_,u}(0,t);try{return n.apply(i,o)}catch(s){throw a.error_=s,s}finally{!function(e){Le!==e.actionId_&&r(30);Le=e.parentActionId_,void 0!==e.error_&&(gt.suppressReactionErrors=!0);Ge(e.prevAllowStateChanges_),dt(e.prevAllowStateReads_),xt(),e.runAsAction_&&ct(e.prevDerivation_);0;gt.suppressReactionErrors=!1}(a)}}function We(e,t){var n=qe(e);try{return t()}finally{Ge(n)}}function qe(e){var t=gt.allowStateChanges;return gt.allowStateChanges=e,t}function Ge(e){gt.allowStateChanges=e}var Ye=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=K.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}M(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==gt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(it(this),Tn(this)){var t=kn(this,{object:this,type:jn,newValue:e});if(!t)return gt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?gt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Pn(this)&&Fn(this,{type:jn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Sn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:jn,newValue:this.value_,oldValue:void 0}),Dn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(q),Ke=E("ObservableValue",Ye);function Qe(e,t){return!!(e&t)}function Xe(e,t,n){return n?e|=t:e&=~t,e}var Ze=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new tt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$e.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=He("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?K.structural:K.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Je.UP_TO_DATE_)return;e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==gt.inBatch||0!==this.observers_.size||this.keepAlive_){if(Ct(this),rt(this)){var e=gt.trackingContext;this.keepAlive_&&!e&&(gt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Je.STALE_)return;e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)}))}(this),gt.trackingContext=e}}else rt(this)&&(this.warnAboutUntrackedRead_(),wt(),this.value_=this.computeValue_(!1),xt());var t=this.value_;if(nt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||nt(e)||nt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=qe(!1);if(e)t=ot(this,this.derivation,this.scope_);else if(!0===gt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new tt(r)}return Ge(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(at(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Ht((function(){var o=n.get();if(!r||t){var a=lt();e({observableKind:"computed",debugObjectName:n.name_,type:jn,object:n,newValue:o,oldValue:i}),ct(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},R(e,[{key:"isComputing",get:function(){return Qe(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=Xe(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return Qe(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=Xe(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return Qe(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=Xe(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return Qe(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=Xe(this.flags_,e.isPendingUnobservationMask_,t)}}])}();Ze.isComputingMask_=1,Ze.isRunningSetterMask_=2,Ze.isBeingObservedMask_=4,Ze.isPendingUnobservationMask_=8;var Je,$e,et=E("ComputedValue",Ze);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}($e||($e={}));var tt=function(e){this.cause=void 0,this.cause=e};function nt(e){return e instanceof tt}function rt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=ut(!0),n=lt(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(et(a)){if(gt.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return ct(n),dt(t),!0}if(e.dependenciesState_===Je.STALE_)return ct(n),dt(t),!0}}return pt(e),ct(n),dt(t),!1}}function it(e){}function ot(e,t,n){var r=ut(!0);pt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++gt.runId;var i,o=gt.trackingDerivation;if(gt.trackingDerivation=e,gt.inBatch++,!0===gt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(a){i=new tt(a)}return gt.inBatch--,gt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var l=t[o];0===l.diffValue_&&yt(l,e),l.diffValue_=0}for(;i--;){var c=n[i];1===c.diffValue_&&(c.diffValue_=0,vt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),dt(r),i}function at(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)yt(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function st(e){var t=lt();try{return e()}finally{ct(t)}}function lt(){var e=gt.trackingDerivation;return gt.trackingDerivation=null,e}function ct(e){gt.trackingDerivation=e}function ut(e){var t=gt.allowStateReads;return gt.allowStateReads=e,t}function dt(e){gt.allowStateReads=e}function pt(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var ht=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ft=!0,mt=!1,gt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ht).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ht):(setTimeout((function(){mt||r(35)}),1),new ht)}();function vt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function yt(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,gt.pendingUnobservations.push(e))}function wt(){gt.inBatch++}function xt(){if(0===--gt.inBatch){St();for(var e=gt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Ze&&n.suspend_())}gt.pendingUnobservations=[]}}function Ct(e){var t=gt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&gt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&gt.inBatch>0&&bt(e),!1)}function At(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_})))}var Et=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Je.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=$e.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,gt.pendingReactions.push(this),St())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){wt(),this.isScheduled_=!1;var e=gt.trackingContext;if(gt.trackingContext=this,rt(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}gt.trackingContext=e,xt()}},t.track=function(e){if(!this.isDisposed_){wt();0,this.isRunning_=!0;var t=gt.trackingContext;gt.trackingContext=this;var n=ot(this,e,void 0);gt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&at(this),nt(n)&&this.reportExceptionInDerivation_(n.cause),xt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(gt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";gt.suppressReactionErrors||console.error(n,e),gt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(wt(),at(this),xt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[W]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();var _t=100,Tt=function(e){return e()};function St(){gt.inBatch>0||gt.isRunningReactions||Tt(kt)}function kt(){gt.isRunningReactions=!0;for(var e=gt.pendingReactions,t=0;e.length>0;){++t===_t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}gt.isRunningReactions=!1}var Pt=E("Reaction",Et);var Dt="action",Ft="autoAction",Nt="<unnamed action>",It=J(Dt),Rt=J("action.bound",{bound:!0}),Ot=J(Ft,{autoAction:!0}),jt=J("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return v(t)?He(t.name||Nt,t,e):v(n)?He(t,n,e):z(n)?(e?Ot:It).decorate_20223_(t,n):y(n)?H(t,n,e?Ot:It):y(t)?V(J(e?Ft:Dt,{name:t,autoAction:e})):void 0}}var Lt=Mt(!1);Object.assign(Lt,It);var Bt=Mt(!0);function Ut(e){return ze(e.name,!1,e,this,void 0)}function Vt(e){return v(e)&&!0===e.isMobxAction}function Ht(e,t){var n,r,i,o;void 0===t&&(t=d);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)a=new Et(s,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var l=Wt(t),c=!1;a=new Et(s,(function(){c||(c=!0,l((function(){c=!1,a.isDisposed_||a.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}Object.assign(Bt,Ot),Lt.bound=V(Rt),Bt.bound=V(jt);var zt=function(e){return e()};function Wt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:zt}function qt(e,t,n){var r,i,o;void 0===n&&(n=d);var a,s,l,c=null!=(r=n.name)?r:"Reaction",u=Lt(c,n.onError?(a=n.onError,s=t,function(){try{return s.apply(this,arguments)}catch(e){a.call(this,e)}}):t),p=!n.scheduler&&!n.delay,h=Wt(n),f=!0,m=!1,g=n.compareStructural?K.structural:n.equals||K.default,v=new Et(c,(function(){f||p?y():m||(m=!0,h(y))}),n.onError,n.requiresObservable);function y(){if(m=!1,!v.isDisposed_){var t=!1,r=l;v.track((function(){var n=We(!1,(function(){return e(v)}));t=f||!g(l,n),l=n})),(f&&n.fireImmediately||!f&&t)&&u(l,r,v),f=!1}}return null!=(i=n)&&null!=(i=i.signal)&&i.aborted||v.schedule_(),v.getDisposer_(null==(o=n)?void 0:o.signal)}var Gt="onBO",Yt="onBUO";function Kt(e,t,n){return Qt(Yt,e,t,n)}function Qt(e,t,n,r){var i="function"===typeof r?xr(t,n):xr(t),o=v(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Xt="never",Zt="always",Jt="observed";function $t(e){!0===e.isolateGlobalState&&function(){if((gt.pendingReactions.length||gt.inBatch||gt.isRunningReactions)&&r(36),mt=!0,ft){var e=o();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),gt=new ht}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(gt.useProxies=t===Zt||t!==Xt&&"undefined"!==typeof Proxy),"ifavailable"===t&&(gt.verifyProxies=!0),void 0!==n){var i=n===Zt?Zt:n===Jt;gt.enforceActions=i,gt.allowStateChanges=!0!==i&&i!==Zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(gt[t]=!!e[t])})),gt.allowStateReads=!gt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=Tt;Tt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function en(e,t,n,r){var i=F(t);return Er((function(){var t=ir(e,r)[W];k(i).forEach((function(e){t.extend_(e,i[e],!n||(!(e in n)||n[e]))}))})),e}function tn(e,t){return nn(xr(e,t))}function nn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(nn)),n}var rn=0;function on(){this.message="FLOW_CANCELLED"}on.prototype=Object.create(Error.prototype);var an=re("flow"),sn=re("flow.bound",{bound:!0}),ln=Object.assign((function(e,t){if(z(t))return an.decorate_20223_(e,t);if(y(t))return H(e,t,an);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++rn,o=Lt(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=Lt(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(l){return n(l)}u(t)}function c(e){var t;a=void 0;try{t=Lt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(l){return n(l)}u(t)}function u(e){if(!v(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)}));return s.cancel=Lt(r+" - runid: "+i+" - cancel",(function(){try{a&&cn(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(g,g),cn(n),e(new on)}catch(r){e(r)}})),s};return i.isMobXFlow=!0,i}),an);function cn(e){v(e.cancel)&&e.cancel()}function un(e){return!0===(null==e?void 0:e.isMobXFlow)}function dn(e,t){if(void 0===t)return et(e);if(!1===sr(e))return!1;if(!e[W].values_.has(t))return!1;var n=xr(e,t);return et(n)}function pn(e,t){return dn(e,t)}function hn(e,t){return!!e&&(void 0!==t?!!sr(e)&&e[W].values_.has(t):sr(e)||!!e[W]||G(e)||Pt(e)||et(e))}function fn(e){return hn(e)}function mn(e){return sr(e)?e[W].keys_():Zn(e)||er(e)?Array.from(e.keys()):Gn(e)?e.map((function(e,t){return t})):void r(5)}function gn(e){return sr(e)?mn(e).map((function(t){return e[t]})):Zn(e)?mn(e).map((function(t){return e.get(t)})):er(e)?Array.from(e.values()):Gn(e)?e.slice():void r(6)}function vn(e,t,n){if(2!==arguments.length||er(e))sr(e)?e[W].set_(t,n):Zn(e)?e.set(t,n):er(e)?e.add(t):Gn(e)?("number"!==typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),wt(),t>=e.length&&(e.length=t+1),e[t]=n,xt()):r(8);else{wt();var i=t;try{for(var o in i)vn(e,o,i[o])}finally{xt()}}}function yn(e,t){sr(e)?e[W].delete_(t):Zn(e)||er(e)?e.delete(t):Gn(e)?("number"!==typeof t&&(t=parseInt(t,10)),e.splice(t,1)):r(9)}function bn(e,t){if(function(e,t){return sr(e)?e[W].has_(t):Zn(e)||er(e)?e.has(t):Gn(e)?t>=0&&t<e.length:void r(10)}(e,t))return sr(e)?e[W].get_(t):Zn(e)?e.get(t):Gn(e)?e[t]:void r(11)}function wn(e,t,n){return e.set(t,n),n}function xn(e,t){if(null==e||"object"!==typeof e||e instanceof Date||!fn(e))return e;if(Ke(e)||et(e))return xn(e.get(),t);if(t.has(e))return t.get(e);if(Gn(e)){var n=wn(t,e,new Array(e.length));return e.forEach((function(e,r){n[r]=xn(e,t)})),n}if(er(e)){var i=wn(t,e,new Set);return e.forEach((function(e){i.add(xn(e,t))})),i}if(Zn(e)){var o=wn(t,e,new Map);return e.forEach((function(e,n){o.set(n,xn(e,t))})),o}var a=wn(t,e,{});return function(e){if(sr(e))return e[W].ownKeys_();r(38)}(e).forEach((function(n){c.propertyIsEnumerable.call(e,n)&&(a[n]=xn(e[n],t))})),a}function Cn(e,t){return xn(e,new Map)}function An(e,t){void 0===t&&(t=void 0),wt();try{return e.apply(t)}finally{xt()}}function En(e){return e[W]}ln.bound=V(sn);var _n={has:function(e,t){return En(e).has_(t)},get:function(e,t){return En(e).get_(t)},set:function(e,t,n){var r;return!!y(t)&&(null==(r=En(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(t)&&(null==(n=En(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=En(e).defineProperty_(t,n))||r},ownKeys:function(e){return En(e).ownKeys_()},preventExtensions:function(e){r(13)}};function Tn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Sn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function kn(e,t){var n=lt();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{ct(n)}}function Pn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Dn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Fn(e,t){var n=lt(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);ct(n)}}function Nn(e,t,n){return Er((function(){var r=ir(e,n)[W];null!=t||(t=function(e){return D(e,U)||C(e,U,j({},e[U])),e[U]}(e)),k(t).forEach((function(e){return r.make_(e,t[e])}))})),e}var In=Symbol("mobx-keys");function Rn(e,t,n){return w(e)?en(e,e,t,n):(Er((function(){var r=ir(e,n)[W];if(!e[In]){var i=Object.getPrototypeOf(e),o=new Set([].concat(k(e),k(i)));o.delete("constructor"),o.delete(W),C(i,In,o)}e[In].forEach((function(e){return r.make_(e,!t||(!(e in t)||t[e]))}))})),e)}var On="splice",jn="update",Mn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!==typeof t||isNaN(t)?D(Un,t)?Un[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"===typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Ln=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new q(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return Sn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Dn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&br(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=u),Tn(this)){var o=kn(this,{object:this.proxy_,type:On,index:e,removedCount:t,added:n});if(!o)return u;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=Pn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:jn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&Fn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=Pn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:On,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&Fn(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(Tn(this)){var o=kn(this,{type:jn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var a=new Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function Bn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),f(),Er((function(){var i=new Ln(n,t,r,!1);A(i.values_,W,i);var o=new Proxy(i.values_,Mn);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o}))}var Un={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[W];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return gt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){gt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Vn(e,t){"function"===typeof Array.prototype[e]&&(Un[e]=t(e))}function Hn(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function zn(e){return function(t,n){var r=this,i=this[W];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Wn(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}Vn("at",Hn),Vn("concat",Hn),Vn("flat",Hn),Vn("includes",Hn),Vn("indexOf",Hn),Vn("join",Hn),Vn("lastIndexOf",Hn),Vn("slice",Hn),Vn("toString",Hn),Vn("toLocaleString",Hn),Vn("toSorted",Hn),Vn("toSpliced",Hn),Vn("with",Hn),Vn("every",zn),Vn("filter",zn),Vn("find",zn),Vn("findIndex",zn),Vn("findLast",zn),Vn("findLastIndex",zn),Vn("flatMap",zn),Vn("forEach",zn),Vn("map",zn),Vn("some",zn),Vn("toReversed",zn),Vn("reduce",Wn),Vn("reduceRight",Wn);var qn=E("ObservableArrayAdministration",Ln);function Gn(e){return b(e)&&qn(e[W])}var Yn={},Kn="add",Qn="delete",Xn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=Yn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,v(Map)||r(18),Er((function(){i.keysAtom_=Y("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!gt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ye(this.has_(e),X,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Tn(this)){var r=kn(this,{type:n?jn:Kn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,Tn(this))&&!kn(this,{type:Qn,object:this,name:e}))return!1;if(this.has_(e)){var n=Pn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Qn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return An((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&Fn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==gt.UNCHANGED){var r=Pn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:jn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&Fn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,An((function(){var r,i=new Ye(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=Pn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Kn,object:this,name:e,newValue:t}:null;r&&Fn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=O(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return Zn(e)&&(e=new Map(e)),An((function(){w(e)?function(e){var t=Object.keys(e);if(!S)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return c.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):_(e)?(function(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return null===Object.getPrototypeOf(n)}(e)||r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&r(20,e)})),this},t.clear=function(){var e=this;An((function(){st((function(){for(var t,n=O(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return An((function(){for(var n,i=function(e){if(_(e)||Zn(e))return e;if(Array.isArray(e))return new Map(e);if(w(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=O(t.data_.keys());!(n=s()).done;){var l=n.value;if(!i.has(l))if(t.delete(l))a=!0;else{var c=t.data_.get(l);o.set(l,c)}}for(var u,d=O(i.entries());!(u=d()).done;){var p=u.value,h=p[0],f=p[1],m=t.data_.has(h);if(t.set(h,f),t.data_.has(h)){var g=t.data_.get(h);o.set(h,g),m||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),y=o.keys(),b=v.next(),x=y.next();!b.done;){if(b.value!==x.value){t.keysAtom_.reportChanged();break}b=v.next(),x=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return Dn(this,e)},t.intercept_=function(e){return Sn(this,e)},R(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Zn=E("ObservableMap",Xn);var Jn={},$n=function(){function e(e,t,n){var i=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=Jn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,v(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},Er((function(){i.atom_=Y(i.name_),e&&i.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;An((function(){st((function(){for(var t,n=O(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=O(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,Tn(this))&&!kn(this,{type:Kn,object:this,newValue:e}))return this;if(!this.has(e)){An((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=Pn(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:Kn,object:this,newValue:e}:null;n,r&&Fn(this,i)}return this},t.delete=function(e){var t=this;if(Tn(this)&&!kn(this,{type:Qn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=Pn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Qn,object:this,oldValue:e}:null;return An((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Fn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Pr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Pr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.intersection=function(e){return T(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return T(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return T(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return T(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return er(e)&&(e=new Set(e)),An((function(){Array.isArray(e)||T(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!==e&&void 0!==e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return Dn(this,e)},t.intercept_=function(e){return Sn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},R(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),er=E("ObservableSet",$n),tr=Object.create(null),nr="remove",rr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=ve),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new q("ObservableObject.keys"),this.isPlainObject_=w(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Ze)return n.set(t),!0;if(Tn(this)){var r=kn(this,{type:jn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==gt.UNCHANGED){var i=Pn(this),o=i?{type:jn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),i&&Fn(this,o)}return!0},t.get_=function(e){return gt.trackingDerivation&&!D(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),D(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!gt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ye(e in this.target_,X,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(cr(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[U])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==c;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}lr(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);cr(this,n,e);var i=n.extend_(this,e,t,r);return i&&lr(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{wt();var r=this.delete_(e);if(!r)return r;if(Tn(this)){var i=kn(this,{object:this.proxy_||this.target_,name:e,type:Kn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=j({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else l(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{xt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{wt();var i=this.delete_(e);if(!i)return i;if(Tn(this)){var o=kn(this,{object:this.proxy_||this.target_,name:e,type:Kn,newValue:t});if(!o)return null;t=o.newValue}var a=ar(e),s={configurable:!gt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else l(this.target_,e,s);var c=new Ye(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{xt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{wt();var r=this.delete_(e);if(!r)return r;if(Tn(this))if(!kn(this,{object:this.proxy_||this.target_,name:e,type:Kn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=ar(e),o={configurable:!gt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else l(this.target_,e,o);this.values_.set(e,new Ze(t)),this.notifyPropertyAddition_(e,void 0)}finally{xt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!D(this.target_,e))return!0;if(Tn(this)&&!kn(this,{object:this.proxy_||this.target_,name:e,type:nr}))return null;try{var n;wt();var r,i=Pn(this),o=this.values_.get(e),a=void 0;if(!o&&i)a=null==(r=s(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof Ye&&(a=o.value_),At(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var l={type:nr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,i&&Fn(this,l)}}finally{xt()}return!0},t.observe_=function(e,t){return Dn(this,e)},t.intercept_=function(e){return Sn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=Pn(this);if(r){var i=r?{type:Kn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,r&&Fn(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),k(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function ir(e,t){var n;if(D(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new rr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ye(e):void 0}(t));return C(e,W,i),e}var or=E("ObservableObjectAdministration",rr);function ar(e){return tr[e]||(tr[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function sr(e){return!!b(e)&&or(e[W])}function lr(e,t,n){var r;null==(r=e.target_[U])||delete r[n]}function cr(e,t,n){}var ur,dr,pr=vr(0),hr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),fr=0,mr=function(){};ur=mr,dr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(ur.prototype,dr):void 0!==ur.prototype.__proto__?ur.prototype.__proto__=dr:ur.prototype=dr;var gr=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,Er((function(){var e=new Ln(r,n,i,!0);e.proxy_=o,A(o,W,e),t&&t.length&&o.spliceWithArray(0,0,t),hr&&Object.defineProperty(o,"0",pr)})),o}M(t,e);var n=t.prototype;return n.concat=function(){this[W].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Gn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Pr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},R(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(mr);function vr(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function yr(e){l(gr.prototype,""+e,vr(e))}function br(e){if(e>fr){for(var t=fr;t<e+100;t++)yr(t);fr=e}}function wr(e,t,n){return new gr(e,t,n)}function xr(e,t){if("object"===typeof e&&null!==e){if(Gn(e))return void 0!==t&&r(23),e[W].atom_;if(er(e))return e.atom_;if(Zn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,Ar(e)),n}if(sr(e)){if(!t)return r(26);var i=e[W].values_.get(t);return i||r(27,t,Ar(e)),i}if(G(e)||et(e)||Pt(e))return e}else if(v(e)&&Pt(e[W]))return e[W];r(28)}function Cr(e,t){return e||r(29),void 0!==t?Cr(xr(e,t)):G(e)||et(e)||Pt(e)||Zn(e)||er(e)?e:e[W]?e[W]:void r(24,e)}function Ar(e,t){var n;if(void 0!==t)n=xr(e,t);else{if(Vt(e))return e.name;n=sr(e)||Zn(e)||er(e)?Cr(e):xr(e)}return n.name_}function Er(e){var t=lt(),n=qe(!0);wt();try{return e()}finally{xt(),Ge(n),ct(t)}}Object.entries(Un).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&C(gr.prototype,t,n)})),br(1e3);var _r=c.toString;function Tr(e,t,n){return void 0===n&&(n=-1),Sr(e,t,n)}function Sr(e,t,n,r,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=_r.call(e);if(a!==_r.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=kr(e),t=kr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(v(l)&&l instanceof l&&v(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Sr(e[u],t[u],n-1,r,i))return!1}else{var d,p=Object.keys(e);if(u=p.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!D(t,d=p[u])||!Sr(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function kr(e){return Gn(e)?e.slice():_(e)||Zn(e)||T(e)||er(e)?Array.from(e.entries()):e}function Pr(e){return e[Symbol.iterator]=Dr,e}function Dr(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:Ar},$mobx:W})},4377:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if((c="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat)&&n.match(c)){l=r[o].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,l,c,u,d,p=i[e.options.currentLocale],h=!1,f=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",C=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!o||"t"===o?(g+=p.abbreviations.trillion,t/=v):a<v&&a>=y&&!o||"b"===o?(g+=p.abbreviations.billion,t/=y):a<y&&a>=b&&!o||"m"===o?(g+=p.abbreviations.million,t/=b):(a<b&&a>=w&&!o||"k"===o)&&(g+=p.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(f=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?p.delimiters.decimal+x.split(".")[1]:"",f&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!o&&Number(s)>=1e3&&g!==p.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),C=!0),s.length<m)for(var A=m-s.length;A>0;A--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),h?d=(h&&C?"(":"")+d+(h&&C?")":""):c>=0?d=0===c?(C?"-":"+")+d:d+(C?"-":"+"):C&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===o))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===l&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}o=(s=s||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},45006:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},58706:(module,__unused_webpack_exports,__webpack_require__)=>{var _defineProperty=__webpack_require__(58212).default,_classPrivateMethodInitSpec=__webpack_require__(89333).default,_classPrivateFieldInitSpec=__webpack_require__(98740).default,_classPrivateFieldSet=__webpack_require__(13675).default,_classPrivateFieldGet=__webpack_require__(19159).default,_assertClassBrand=__webpack_require__(66337).default,factory;globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let o=0;o<t;o++)n+=u(e[o]);let r=0;const i=new Uint8Array(n);for(let o=0;o<t;o++){let t=e[o];t instanceof Uint8Array||(t="string"===typeof t?c(t):new Uint8Array(t));const n=t.byteLength;i.set(t,r),r+=n}return i},t.assert=function(e,t){e||a(t)},t.bytesToString=function(e){"object"===typeof e&&null!==e&&void 0!==e.length||a("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=n){const o=Math.min(i+n,t),a=e.subarray(i,o);r.push(String.fromCharCode.apply(null,a))}return r.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=f(e)}catch(r){}}const i=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(r){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)))},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=s,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=c(e);return n.decode(r)}catch(n){o('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let r=0,i=e.length;r<i;r++){const n=h[e.charCodeAt(r)];t.push(n?String.fromCharCode(n):e.charAt(r))}return t.join("")},t.stringToUTF16BEString=function(e){const t=["\xfe\xff"];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);t.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return t.join("")},t.stringToUTF8String=f,t.unreachable=a,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=o,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function o(e){i>=r.WARNINGS&&console.log("Warning: ".concat(e))}function a(e){throw new Error(e)}function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&a("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!==typeof e&&a("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function u(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void a("Invalid argument for arrayByteLength")}t.BaseException=l,t.PasswordException=class extends l{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends l{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends l{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends l{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends l{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends l{constructor(e){super(e,"FormatError")}},t.AbortException=class extends l{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return s(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return s(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return s(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}};const d=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class p{static makeHexColor(e,t,n){return"#".concat(d[e]).concat(d[t]).concat(d[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=p.applyTransform(e,t),r=p.applyTransform(e.slice(2,4),t),i=p.applyTransform([e[0],e[3]],t),o=p.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(n+o)/2,s=Math.sqrt((n+o)**2-4*(n*o-i*r))/2,l=a+s||1,c=a-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>o?null:[n,i,r,o]}static bezierBoundingBox(e,t,n,r,i,o,a,s){const l=[],c=[[],[]];let u,d,p,h,f,m,g,v;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*a,p=3*n-3*e):(d=6*t-12*r+6*o,u=-3*t+9*r-9*o+3*s,p=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-p/d,0<h&&h<1&&l.push(h)}else g=d*d-4*p*u,v=Math.sqrt(g),g<0||(f=(-d+v)/(2*u),0<f&&f<1&&l.push(f),m=(-d-v)/(2*u),0<m&&m<1&&l.push(m));let y,b=l.length;const w=b;for(;b--;)h=l[b],y=1-h,c[0][b]=y*y*y*e+3*y*y*h*n+3*y*h*h*i+h*h*h*a,c[1][b]=y*y*y*t+3*y*y*h*r+3*y*h*h*o+h*h*h*s;return c[0][w]=e,c[1][w]=t,c[0][w+1]=a,c[1][w+1]=s,c[0].length=c[1].length=w+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=p;const h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function f(e){return decodeURIComponent(escape(e))}},(e,t,n)=>{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(8),_font_loader=__w_pdfjs_require__(11),_canvas=__w_pdfjs_require__(12),_worker_options=__w_pdfjs_require__(15),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(16),_metadata=__w_pdfjs_require__(17),_optional_content_config=__w_pdfjs_require__(18),_transport_stream=__w_pdfjs_require__(19),_xfa_text=__w_pdfjs_require__(20);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(21);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"===typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!==typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let i=null,o=null;for(const l in n){const e=n[l];switch(l){case"url":if("undefined"!==typeof window)try{r[l]=new URL(e,window.location).href;continue}catch(s){(0,_util.warn)('Cannot create valid URL: "'.concat(s,'".'))}else if("string"===typeof e||e instanceof URL){r[l]=e.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":i=e;continue;case"worker":o=e;continue;case"data":if(_is_node.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)r[l]=new Uint8Array(e);else{if(e instanceof Uint8Array)break;if("string"===typeof e)r[l]=(0,_util.stringToBytes)(e);else if("object"!==typeof e||null===e||isNaN(e.length)){if(!(0,_util.isArrayBuffer)(e))throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");r[l]=new Uint8Array(e)}else r[l]=new Uint8Array(e)}continue}r[l]=e}if(r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.StandardFontDataFactory=r.StandardFontDataFactory||DefaultStandardFontDataFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,r.enableXfa=!0===r.enableXfa,(!Number.isInteger(r.rangeChunkSize)||r.rangeChunkSize<1)&&(r.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!==typeof r.docBaseUrl||(0,_display_utils.isDataScheme)(r.docBaseUrl))&&(r.docBaseUrl=null),(!Number.isInteger(r.maxImageSize)||r.maxImageSize<-1)&&(r.maxImageSize=-1),"string"!==typeof r.cMapUrl&&(r.cMapUrl=null),"string"!==typeof r.standardFontDataUrl&&(r.standardFontDataUrl=null),"boolean"!==typeof r.useWorkerFetch&&(r.useWorkerFetch=r.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&r.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!==typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!==typeof r.disableFontFace&&(r.disableFontFace=_is_node.isNodeJS),"boolean"!==typeof r.useSystemFonts&&(r.useSystemFonts=!_is_node.isNodeJS&&!r.disableFontFace),"object"===typeof r.ownerDocument&&null!==r.ownerDocument||(r.ownerDocument=globalThis.document),"boolean"!==typeof r.disableRange&&(r.disableRange=!1),"boolean"!==typeof r.disableStream&&(r.disableStream=!1),"boolean"!==typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=o}const a=t.docId;return o.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(o,r,i,a),n=new Promise((function(e){let t;i?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,contentDispositionFilename:r.contentDispositionFilename,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,n]).then((function(e){let[n,i]=e;if(t.destroyed)throw new Error("Loading aborted");const s=new _message_handler.MessageHandler(a,n,o.port),l=new WorkerTransport(s,t,i,r);t._transport=l,s.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,r){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const i=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.16.105",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(t.data&&(t.data=null),e.destroyed)throw new Error("Worker was destroyed");return i}class PDFDocumentLoadingTask{constructor(){var e,t;this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat((_docId._=(e=_docId._,t=e++,e),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){var e;this.destroyed=!0,await(null===(e=this._transport)||void 0===e?void 0:e.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}var _docId={_:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._pageIndex=e,this._pageInfo=t,this._ownerDocument=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}async getXfa(){var e;return(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null}render(e){var t,n,r;let{canvasContext:i,viewport:o,intent:a="display",annotationMode:s=_util.AnnotationMode.ENABLE,transform:l=null,imageLayer:c=null,canvasFactory:u=null,background:d=null,optionalContentConfigPromise:p=null,annotationCanvasMap:h=null,pageColors:f=null,printAnnotationStorage:m=null}=e;void 0!==(null===(t=arguments[0])||void 0===t?void 0:t.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&s===_util.AnnotationMode.ENABLE&&(s=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null===(n=arguments[0])||void 0===n?void 0:n.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&s===_util.AnnotationMode.ENABLE&&(s=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const g=this._transport.getRenderingIntent(a,s,m);this.pendingCleanup=!1,p||(p=this._transport.getOptionalContentConfig());let v=this._intentStates.get(g.cacheKey);v||(v=Object.create(null),this._intentStates.set(g.cacheKey,v)),v.streamReaderCancelTimeout&&(clearTimeout(v.streamReaderCancelTimeout),v.streamReaderCancelTimeout=null);const y=u||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),b=!!(g.renderingIntent&_util.RenderingIntentFlag.PRINT);v.displayReadyCapability||(v.displayReadyCapability=(0,_util.createPromiseCapability)(),v.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(g));const w=e=>{v.renderTasks.delete(x),(this.cleanupAfterRender||b)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(x.capability.reject(e),this._abortOperatorList({intentState:v,reason:e instanceof Error?e:new Error(e)})):x.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:w,params:{canvasContext:i,viewport:o,transform:l,imageLayer:c,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:h,operatorList:v.operatorList,pageIndex:this._pageIndex,canvasFactory:y,useRequestAnimationFrame:!b,pdfBug:this._pdfBug,pageColors:f});((r=v).renderTasks||(r.renderTasks=new Set)).add(x);const C=x.task;return Promise.all([v.displayReadyCapability.promise,p]).then((e=>{let[t,n]=e;this.pendingCleanup?w():(this._stats&&this._stats.time("Rendering"),x.initializeGraphics({transparency:t,optionalContentConfig:n}),x.operatorListChanged())})).catch(w),C}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,!0);let i,o=this._intentStates.get(r.cacheKey);var a;return o||(o=Object.create(null),this._intentStates.set(r.cacheKey,o)),o.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(i))},o.opListReadCapability=(0,_util.createPromiseCapability)(),((a=o).renderTasks||(a.renderTasks=new Set)).add(i),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(r)),o.opListReadCapability.promise}streamTextContent(){let{disableCombineTextItems:e=!1,includeMarkedContent:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){let{value:r,done:o}=n;o?e(i):(Object.assign(i.styles,r.styles),i.items.push(...r.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const n of t.renderTasks)n.operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){let{renderingIntent:t,cacheKey:n,annotationStorageMap:r}=e;const i=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:r}).getReader(),o=this._intentStates.get(n);o.streamReader=i;const a=()=>{i.read().then((e=>{let{value:t,done:n}=e;n?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,o),a())}),(e=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const e of o.renderTasks)e.operatorListChanged();this._tryCleanup()}if(o.displayReadyCapability)o.displayReadyCapability.reject(e);else{if(!o.opListReadCapability)throw e;o.opListReadCapability.reject(e)}}}))};a()}_abortOperatorList(e){let{intentState:t,reason:n,force:r=!1}=e;if(t.streamReader){if(!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException)return void(t.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:t,reason:n,force:!0}),t.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document;const e=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(i){return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t&&_workerPorts._.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return _workerPorts._.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:t}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t),n=new _message_handler.MessageHandler("main","worker",e),r=()=>{e.removeEventListener("error",i),n.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};e.addEventListener("error",i),n.on("test",(t=>{e.removeEventListener("error",i),this.destroyed?r():t?(this._messageHandler=n,this._port=e,this._webWorker=e,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),e.terminate())})),n.on("ready",(t=>{if(e.removeEventListener("error",i),this.destroyed)r();else try{o()}catch(n){this._setupFakeWorker()}}));const o=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void o()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake".concat(PDFWorkerUtil.fakeWorkerId++),r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_workerPorts._.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return _assertClassBrand(PDFWorker,this,_workerPorts)._.has(e.port)?_assertClassBrand(PDFWorker,this,_workerPorts)._.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={_:new WeakMap};exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap;class WorkerTransport{constructor(e,t,n,r){_classPrivateFieldInitSpec(this,_docStats,null),_classPrivateFieldInitSpec(this,_pageCache,new Map),_classPrivateFieldInitSpec(this,_pagePromises,new Map),_classPrivateFieldInitSpec(this,_metadataPromise,null),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,r.useWorkerFetch||(this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.StandardFontDataFactory=new r.StandardFontDataFactory({baseUrl:r.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return _classPrivateFieldGet(_docStats,this)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,o=null;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,o=(i&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return r&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:"".concat(i,"_").concat(_annotation_storage.AnnotationStorage.getHash(o)),annotationStorageMap:o}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const n of _classPrivateFieldGet(_pageCache,this).values())e.push(n._destroy());_classPrivateFieldGet(_pageCache,this).clear(),_classPrivateFieldGet(_pagePromises,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldSet(_metadataPromise,this,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(n),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then((()=>{var e;r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),r.onProgress=e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})});n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(n),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(n){this._passwordCapability.reject(n)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(_pageCache,this).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var n;let[r,i,o]=t;if(!this.destroyed&&!this.commonObjs.has(r))switch(i){case"Font":const t=this._params;if("error"in o){const e=o.error;(0,_util.warn)("Error during font loading: ".concat(e)),this.commonObjs.resolve(r,e);break}let a=null;t.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const s=new _font_loader.FontFaceObject(o,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(s).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&s.data&&(s.data=null),this.commonObjs.resolve(r,s)}));break;case"FontPath":case"Image":this.commonObjs.resolve(r,o);break;default:throw new Error("Got unknown common object type ".concat(i))}})),e.on("obj",(e=>{let[t,n,r,i]=e;if(this.destroyed)return;const o=_classPrivateFieldGet(_pageCache,this).get(n);if(!o.objs.has(t))switch(r){case"Image":o.objs.resolve(t,i);const e=8e6;if(i){let t;if(i.bitmap){const{bitmap:e,width:n,height:r}=i;t=n*r*4,o._bitmaps.add(e)}else{var a;t=(null===(a=i.data)||void 0===a?void 0:a.length)||0}t>e&&(o.cleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(t,i);break;default:throw new Error("Got unknown object type ".concat(r))}})),e.on("DocProgress",(e=>{var n;this.destroyed||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||_classPrivateFieldSet(_docStats,this,Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature(e){var t,n;let{featureId:r}=e;this.destroyed||null===(t=(n=this.loadingTask).onUnsupportedFeature)||void 0===t||t.call(n,r)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=_classPrivateFieldGet(_pagePromises,this).get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return _classPrivateFieldGet(_pageCache,this).set(t,n),n}));return _classPrivateFieldGet(_pagePromises,this).set(t,r),r}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){var e,t;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return _classPrivateFieldGet(_metadataPromise,this)||_classPrivateFieldSet(_metadataPromise,this,this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>{var t,n,r,i;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==t?t:null,contentLength:null!==(r=null===(i=this._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==r?r:null}})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of _classPrivateFieldGet(_pageCache,this).values())if(!e.cleanup())throw new Error("startCleanup: Page ".concat(e.pageNumber," is currently rendering."));this.commonObjs.clear(),e||this.fontLoader.clear(),_classPrivateFieldSet(_metadataPromise,this,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}var _objs=new WeakMap,_PDFObjects_brand=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_PDFObjects_brand),_classPrivateFieldInitSpec(this,_objs,Object.create(null))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);return n.capability.promise.then((()=>t(n.data))),null}const n=_classPrivateFieldGet(_objs,this)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){const t=_classPrivateFieldGet(_objs,this)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);n.data=t,n.capability.resolve()}clear(){_classPrivateFieldSet(_objs,this,Object.create(null))}}function _ensureObj(e){const t=_classPrivateFieldGet(_objs,this)[e];return t||(_classPrivateFieldGet(_objs,this)[e]={capability:(0,_util.createPromiseCapability)(),data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,null),_classPrivateFieldSet(_internalRenderTask,this,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(_internalRenderTask,this).capability.promise}cancel(){_classPrivateFieldGet(_internalRenderTask,this).cancel()}get separateAnnots(){const{separateAnnots:e}=_classPrivateFieldGet(_internalRenderTask,this).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=_classPrivateFieldGet(_internalRenderTask,this);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){let{callback:t,params:n,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:a,pageIndex:s,canvasFactory:l,useRequestAnimationFrame:c=!1,pdfBug:u=!1,pageColors:d=null}=e;this.callback=t,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this._pdfBug=u,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t;let{transparency:n=!1,optionalContentConfig:r}=e;if(this.cancelled)return;if(this._canvas){if(_canvasInUse._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_canvasInUse._.add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:i,viewport:o,transform:a,imageLayer:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(i,this.commonObjs,this.objs,this.canvasFactory,s,r,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:o,transparency:n,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&_canvasInUse._.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&_canvasInUse._.delete(this._canvas),this.callback())))}}var _canvasInUse={_:new WeakSet};const version="2.16.105";exports.version=version;const build="172ccdbe5";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),i=n(6),o=n(10),a=new WeakSet;class s{constructor(){_classPrivateMethodInitSpec(this,a),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}remove(e){if(this._storage.delete(e),0===this._storage.size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of this._storage.values())if(e instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this._storage.get(e);let r=!1;if(void 0!==n)for(const[i,o]of Object.entries(t))n[i]!==o&&(r=!0,n[i]=o);else r=!0,this._storage.set(e,t);r&&_assertClassBrand(a,this,l).call(this),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this._storage.has(e)}getAll(){return this._storage.size>0?(0,r.objectFromMap)(this._storage):null}get size(){return this._storage.size}resetModified(){this._modified&&(this._modified=!1,"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new u(this)}get serializable(){if(0===this._storage.size)return null;const e=new Map;for(const[t,n]of this._storage){const r=n instanceof i.AnnotationEditor?n.serialize():n;r&&e.set(t,r)}return e}static getHash(e){if(!e)return"";const t=new o.MurmurHash3_64;for(const[n,r]of e)t.update("".concat(n,":").concat(JSON.stringify(r)));return t.hexdigest()}}function l(){this._modified||(this._modified=!0,"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=s;var c=new WeakMap;class u extends s{constructor(e){super(),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldSet(c,this,structuredClone(e.serializable))}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(c,this)}}t.PrintAnnotationStorage=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(7),i=n(1),o=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap;class d{constructor(e){_classPrivateFieldInitSpec(this,o,this.focusin.bind(this)),_classPrivateFieldInitSpec(this,a,this.focusout.bind(this)),_classPrivateFieldInitSpec(this,s,!1),_classPrivateFieldInitSpec(this,l,!1),_classPrivateFieldInitSpec(this,c,!1),_classPrivateFieldInitSpec(this,u,d._zIndex++),this.constructor===d&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null;const[t,n]=this.parent.viewportBaseDimensions;this.x=e.x/t,this.y=e.y/n,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(u,this)}focusin(e){_classPrivateFieldGet(s,this)?_classPrivateFieldSet(s,this,!1):this.parent.setSelected(this)}focusout(e){if(!this.isAttachedToDOM)return;const t=e.relatedTarget;null!==t&&void 0!==t&&t.closest("#".concat(this.id))||(e.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(e){const t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}setAt(e,t,n,r){const[i,o]=this.parent.viewportBaseDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/i,this.y=(t+r)/o,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}translate(e,t){const[n,r]=this.parent.viewportBaseDimensions;[e,t]=this.screenToPageTranslation(e,t),this.x+=e/n,this.y+=t/r,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}screenToPageTranslation(e,t){const{rotation:n}=this.parent.viewport;switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}setDims(e,t){const[n,r]=this.parent.viewportBaseDimensions;this.div.style.width="".concat(100*e/n,"%"),this.div.style.height="".concat(100*t/r,"%")}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(o,this)),this.div.addEventListener("focusout",_classPrivateFieldGet(a,this));const[e,t]=this.getInitialTranslation();return this.translate(e,t),(0,r.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),_classPrivateFieldSet(s,this,!0))}getRect(e,t){const[n,r]=this.parent.viewportBaseDimensions,[i,o]=this.parent.pageDimensions,a=i*e/n,s=o*t/r,l=this.x*i,c=this.y*o,u=this.width*i,d=this.height*o;switch(this.rotation){case 0:return[l+a,o-c-s-d,l+a+u,o-c-s];case 90:return[l+s,o-c+a,l+s+d,o-c+a+u];case 180:return[l-a-u,o-c+s,l-a,o-c+s+d];case 270:return[l-s-d,o-c-a-u,l-s,o-c-a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,i,o]=e,a=i-n,s=o-r;switch(this.rotation){case 0:return[n,t-o,a,s];case 90:return[n,t-r,s,a];case 180:return[i,t-r,a,s];case 270:return[i,t-o,s,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(c,this,!0)}disableEditMode(){_classPrivateFieldSet(c,this,!1)}isInEditMode(){return _classPrivateFieldGet(c,this)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(o,this))}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(e,t){const n=new this.prototype.constructor({parent:t,id:t.getNextId()});n.rotation=e.rotation;const[r,i]=t.pageDimensions,[o,a,s,l]=n.getRectInCurrentCoords(e.rect,i);return n.x=o/r,n.y=a/i,n.width=s/r,n.height=l/i,n}remove(){this.div.removeEventListener("focusin",_classPrivateFieldGet(o,this)),this.div.removeEventListener("focusout",_classPrivateFieldGet(a,this)),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){var e;null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e;null===(e=this.div)||void 0===e||e.classList.remove("selectedEditor")}updateParams(e,t){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(l,this)}set isEditing(e){_classPrivateFieldSet(l,this,e),e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}_defineProperty(d,"_colorManager",new r.ColorManager),_defineProperty(d,"_zIndex",1),t.AnnotationEditor=d},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=n(1),o=n(8),a=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,a,0)}getId(){var e,t;return"".concat(i.AnnotationEditorPrefix).concat((_classPrivateFieldSet(a,this,(e=_classPrivateFieldGet(a,this),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;class p{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,l,[]),_classPrivateFieldInitSpec(this,c,!1),_classPrivateFieldInitSpec(this,u,void 0),_classPrivateFieldInitSpec(this,d,-1),_classPrivateFieldSet(u,this,e)}add(e){let{cmd:t,undo:n,mustExec:r,type:i=NaN,overwriteIfSameType:o=!1,keepUndo:a=!1}=e;if(r&&t(),_classPrivateFieldGet(c,this))return;const s={cmd:t,undo:n,type:i};if(-1===_classPrivateFieldGet(d,this))return _classPrivateFieldGet(l,this).length>0&&(_classPrivateFieldGet(l,this).length=0),_classPrivateFieldSet(d,this,0),void _classPrivateFieldGet(l,this).push(s);if(o&&_classPrivateFieldGet(l,this)[_classPrivateFieldGet(d,this)].type===i)return a&&(s.undo=_classPrivateFieldGet(l,this)[_classPrivateFieldGet(d,this)].undo),void(_classPrivateFieldGet(l,this)[_classPrivateFieldGet(d,this)]=s);const p=_classPrivateFieldGet(d,this)+1;p===_classPrivateFieldGet(u,this)?_classPrivateFieldGet(l,this).splice(0,1):(_classPrivateFieldSet(d,this,p),p<_classPrivateFieldGet(l,this).length&&_classPrivateFieldGet(l,this).splice(p)),_classPrivateFieldGet(l,this).push(s)}undo(){-1!==_classPrivateFieldGet(d,this)&&(_classPrivateFieldSet(c,this,!0),_classPrivateFieldGet(l,this)[_classPrivateFieldGet(d,this)].undo(),_classPrivateFieldSet(c,this,!1),_classPrivateFieldSet(d,this,_classPrivateFieldGet(d,this)-1))}redo(){_classPrivateFieldGet(d,this)<_classPrivateFieldGet(l,this).length-1&&(_classPrivateFieldSet(d,this,_classPrivateFieldGet(d,this)+1),_classPrivateFieldSet(c,this,!0),_classPrivateFieldGet(l,this)[_classPrivateFieldGet(d,this)].cmd(),_classPrivateFieldSet(c,this,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(d,this)}hasSomethingToRedo(){return _classPrivateFieldGet(d,this)<_classPrivateFieldGet(l,this).length-1}destroy(){_classPrivateFieldSet(l,this,null)}}t.CommandManager=p;var h=new WeakSet;class f{constructor(e){_classPrivateMethodInitSpec(this,h),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const t=f.platform.isMac;for(const[n,r]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),r),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,r),this.allKeys.add(e.split("+").at(-1)))}}static get platform(){const e="undefined"!==typeof navigator?navigator.platform:"";return(0,i.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(_assertClassBrand(h,this,m).call(this,t));n&&(n.bind(e)(),t.stopPropagation(),t.preventDefault())}}function m(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=f;var g=new WeakMap;class v{constructor(){_classPrivateFieldInitSpec(this,g,null)}copy(e){e&&(Array.isArray(e)?_classPrivateFieldSet(g,this,e.map((e=>e.serialize()))):_classPrivateFieldSet(g,this,[e.serialize()]),_classPrivateFieldSet(g,this,_classPrivateFieldGet(g,this).filter((e=>!!e))),0===_classPrivateFieldGet(g,this).length&&_classPrivateFieldSet(g,this,null))}paste(){return _classPrivateFieldGet(g,this)}isEmpty(){return null===_classPrivateFieldGet(g,this)}destroy(){_classPrivateFieldSet(g,this,null)}}class y{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,o.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){const t=(0,o.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,r]of this._colors)if(r.every(((e,n)=>e===t[n])))return y._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?i.Util.makeHexColor(...t):e}}_defineProperty(y,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=y;var b=new WeakMap,w=new WeakMap,x=new WeakMap,C=new WeakMap,A=new WeakMap,E=new WeakMap,_=new WeakMap,T=new WeakMap,S=new WeakMap,k=new WeakMap,P=new WeakMap,D=new WeakMap,F=new WeakMap,N=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,j=new WeakSet;class M{constructor(e,t){_classPrivateMethodInitSpec(this,j),_classPrivateFieldInitSpec(this,b,null),_classPrivateFieldInitSpec(this,w,new Map),_classPrivateFieldInitSpec(this,x,new Map),_classPrivateFieldInitSpec(this,C,new v),_classPrivateFieldInitSpec(this,A,new p),_classPrivateFieldInitSpec(this,E,0),_classPrivateFieldInitSpec(this,_,null),_classPrivateFieldInitSpec(this,T,null),_classPrivateFieldInitSpec(this,S,new s),_classPrivateFieldInitSpec(this,k,!1),_classPrivateFieldInitSpec(this,P,i.AnnotationEditorType.NONE),_classPrivateFieldInitSpec(this,D,new Set),_classPrivateFieldInitSpec(this,F,this.keydown.bind(this)),_classPrivateFieldInitSpec(this,N,this.onEditingAction.bind(this)),_classPrivateFieldInitSpec(this,I,this.onPageChanging.bind(this)),_classPrivateFieldInitSpec(this,R,{isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}),_classPrivateFieldInitSpec(this,O,null),_classPrivateFieldSet(O,this,e),_classPrivateFieldSet(T,this,t),_classPrivateFieldGet(T,this)._on("editingaction",_classPrivateFieldGet(N,this)),_classPrivateFieldGet(T,this)._on("pagechanging",_classPrivateFieldGet(I,this))}destroy(){_assertClassBrand(j,this,B).call(this),_classPrivateFieldGet(T,this)._off("editingaction",_classPrivateFieldGet(N,this)),_classPrivateFieldGet(T,this)._off("pagechanging",_classPrivateFieldGet(I,this));for(const e of _classPrivateFieldGet(x,this).values())e.destroy();_classPrivateFieldGet(x,this).clear(),_classPrivateFieldGet(w,this).clear(),_classPrivateFieldSet(b,this,null),_classPrivateFieldGet(D,this).clear(),_classPrivateFieldGet(C,this).destroy(),_classPrivateFieldGet(A,this).destroy()}onPageChanging(e){let{pageNumber:t}=e;_classPrivateFieldSet(E,this,t-1)}focusMainContainer(){_classPrivateFieldGet(O,this).focus()}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||M._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","cut","copy","paste","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_assertClassBrand(j,this,L).call(this),_assertClassBrand(j,this,U).call(this,{isEditing:_classPrivateFieldGet(P,this)!==i.AnnotationEditorType.NONE,isEmpty:_assertClassBrand(j,this,q).call(this),hasSomethingToUndo:_classPrivateFieldGet(A,this).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(A,this).hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:_classPrivateFieldGet(C,this).isEmpty()})):(_assertClassBrand(j,this,B).call(this),_assertClassBrand(j,this,U).call(this,{isEditing:!1}))}registerEditorTypes(e){_classPrivateFieldSet(_,this,e);for(const t of _classPrivateFieldGet(_,this))_assertClassBrand(j,this,V).call(this,t.defaultPropertiesToUpdate)}getId(){return _classPrivateFieldGet(S,this).getId()}addLayer(e){_classPrivateFieldGet(x,this).set(e.pageIndex,e),_classPrivateFieldGet(k,this)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(x,this).delete(e.pageIndex)}updateMode(e){if(_classPrivateFieldSet(P,this,e),e===i.AnnotationEditorType.NONE)this.setEditingState(!1),_assertClassBrand(j,this,z).call(this);else{this.setEditingState(!0),_assertClassBrand(j,this,H).call(this);for(const t of _classPrivateFieldGet(x,this).values())t.updateMode(e)}}updateToolbar(e){e!==_classPrivateFieldGet(P,this)&&_classPrivateFieldGet(T,this).dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){for(const n of _classPrivateFieldGet(D,this))n.updateParams(e,t);for(const n of _classPrivateFieldGet(_,this))n.updateDefaultParams(e,t)}getEditors(e){const t=[];for(const n of _classPrivateFieldGet(w,this).values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return _classPrivateFieldGet(w,this).get(e)}addEditor(e){_classPrivateFieldGet(w,this).set(e.id,e)}removeEditor(e){_classPrivateFieldGet(w,this).delete(e.id),this.unselect(e)}setActiveEditor(e){_classPrivateFieldGet(b,this)!==e&&(_classPrivateFieldSet(b,this,e),e&&_assertClassBrand(j,this,V).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(D,this).has(e))return _classPrivateFieldGet(D,this).delete(e),e.unselect(),void _assertClassBrand(j,this,U).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(D,this).add(e),e.select(),_assertClassBrand(j,this,V).call(this,e.propertiesToUpdate),_assertClassBrand(j,this,U).call(this,{hasSelectedEditor:!0})}setSelected(e){for(const t of _classPrivateFieldGet(D,this))t!==e&&t.unselect();_classPrivateFieldGet(D,this).clear(),_classPrivateFieldGet(D,this).add(e),e.select(),_assertClassBrand(j,this,V).call(this,e.propertiesToUpdate),_assertClassBrand(j,this,U).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(D,this).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(D,this).delete(e),_assertClassBrand(j,this,U).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(D,this).size}undo(){_classPrivateFieldGet(A,this).undo(),_assertClassBrand(j,this,U).call(this,{hasSomethingToUndo:_classPrivateFieldGet(A,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_assertClassBrand(j,this,q).call(this)})}redo(){_classPrivateFieldGet(A,this).redo(),_assertClassBrand(j,this,U).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(A,this).hasSomethingToRedo(),isEmpty:_assertClassBrand(j,this,q).call(this)})}addCommands(e){_classPrivateFieldGet(A,this).add(e),_assertClassBrand(j,this,U).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_assertClassBrand(j,this,q).call(this)})}delete(){if(_classPrivateFieldGet(b,this)&&_classPrivateFieldGet(b,this).commitOrRemove(),!this.hasSelection)return;const e=[..._classPrivateFieldGet(D,this)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)_assertClassBrand(j,this,W).call(this,t)},mustExec:!0})}copy(){if(_classPrivateFieldGet(b,this)&&_classPrivateFieldGet(b,this).commitOrRemove(),this.hasSelection){const e=[];for(const t of _classPrivateFieldGet(D,this))t.isEmpty()||e.push(t);if(0===e.length)return;_classPrivateFieldGet(C,this).copy(e),_assertClassBrand(j,this,U).call(this,{hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(_classPrivateFieldGet(C,this).isEmpty())return;this.unselectAll();const e=_classPrivateFieldGet(x,this).get(_classPrivateFieldGet(E,this)),t=_classPrivateFieldGet(C,this).paste().map((t=>e.deserialize(t)));this.addCommands({cmd:()=>{for(const e of t)_assertClassBrand(j,this,W).call(this,e);_assertClassBrand(j,this,G).call(this,t)},undo:()=>{for(const e of t)e.remove()},mustExec:!0})}selectAll(){for(const e of _classPrivateFieldGet(D,this))e.commit();_assertClassBrand(j,this,G).call(this,_classPrivateFieldGet(w,this).values())}unselectAll(){if(_classPrivateFieldGet(b,this))_classPrivateFieldGet(b,this).commitOrRemove();else if(0!==_assertClassBrand(j,this,G).size){for(const e of _classPrivateFieldGet(D,this))e.unselect();_classPrivateFieldGet(D,this).clear(),_assertClassBrand(j,this,U).call(this,{hasSelectedEditor:!1})}}isActive(e){return _classPrivateFieldGet(b,this)===e}getActive(){return _classPrivateFieldGet(b,this)}getMode(){return _classPrivateFieldGet(P,this)}}function L(){_classPrivateFieldGet(O,this).addEventListener("keydown",_classPrivateFieldGet(F,this))}function B(){_classPrivateFieldGet(O,this).removeEventListener("keydown",_classPrivateFieldGet(F,this))}function U(e){Object.entries(e).some((e=>{let[t,n]=e;return _classPrivateFieldGet(R,this)[t]!==n}))&&_classPrivateFieldGet(T,this).dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(R,this),e)})}function V(e){_classPrivateFieldGet(T,this).dispatch("annotationeditorparamschanged",{source:this,details:e})}function H(){if(!_classPrivateFieldGet(k,this)){_classPrivateFieldSet(k,this,!0);for(const e of _classPrivateFieldGet(x,this).values())e.enable()}}function z(){if(this.unselectAll(),_classPrivateFieldGet(k,this)){_classPrivateFieldSet(k,this,!1);for(const e of _classPrivateFieldGet(x,this).values())e.disable()}}function W(e){const t=_classPrivateFieldGet(x,this).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function q(){if(0===_classPrivateFieldGet(w,this).size)return!0;if(1===_classPrivateFieldGet(w,this).size)for(const e of _classPrivateFieldGet(w,this).values())return e.isEmpty();return!1}function G(e){_classPrivateFieldGet(D,this).clear();for(const t of e)t.isEmpty()||(_classPrivateFieldGet(D,this).add(t),t.select());_assertClassBrand(j,this,U).call(this,{hasSelectedEditor:!0})}_defineProperty(M,"_keyboardManager",new f([[["ctrl+a","mac+meta+a"],(r=M).prototype.selectAll],[["ctrl+c","mac+meta+c"],r.prototype.copy],[["ctrl+v","mac+meta+v"],r.prototype.paste],[["ctrl+x","mac+meta+x"],r.prototype.cut],[["ctrl+z","mac+meta+z"],r.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],r.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],r.prototype.delete],[["Escape","mac+Escape"],r.prototype.unselectAll]])),t.AnnotationEditorUIManager=M},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,v(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:i,e:o,f:a}=e.getTransform();return[t,n,r,i,o,a]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:i,e:o,f:a}=e.getTransform().invertSelf();return[t,n,r,i,o,a]},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(f(e))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let i=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch(a){}return i||t},t.getRGB=v,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:r=0}=t;const{width:i,height:o}=e.attributes.style,a=[0,0,parseInt(i),parseInt(o)];return new p({viewBox:a,scale:n,rotation:r})},t.isDataScheme=f,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=m,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,r)=>{const i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),n(e)},i.onerror=function(){r(new Error("Cannot load script at: ".concat(i.src)))},(document.head||document.documentElement).append(i)}))};var i=n(9),o=n(1);t.AnnotationPrefix="pdfjs_internal_id_";class a{}r=a,_defineProperty(a,"CSS",96),_defineProperty(a,"PDF",72),_defineProperty(a,"PDF_TO_CSS_UNITS",r.CSS/r.PDF),t.PixelsPerInch=a;class s extends i.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(m(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,o.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;if(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,o.stringToBytes)(i.responseText)),e)return void n(e)}r(new Error(i.statusText))}},i.send(null)}))}t.DOMCanvasFactory=s;class c extends i.BaseCMapReaderFactory{_fetchData(e,t){return l(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=c;class u extends i.BaseStandardFontDataFactory{_fetchData(e){return l(e,!0)}}t.DOMStandardFontDataFactory=u;class d extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=d;class p{constructor(e){let{viewBox:t,scale:n,rotation:r,offsetX:i=0,offsetY:o=0,dontFlip:a=!1}=e;this.viewBox=t,this.scale=n,this.rotation=r,this.offsetX=i,this.offsetY=o;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,p,h,f,m,g;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,u=0,d=0,p=1;break;case 90:c=0,u=1,d=1,p=0;break;case 270:c=0,u=-1,d=-1,p=0;break;case 0:c=1,u=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(d=-d,p=-p),0===c?(h=Math.abs(l-t[1])*n+i,f=Math.abs(s-t[0])*n+o,m=Math.abs(t[3]-t[1])*n,g=Math.abs(t[2]-t[0])*n):(h=Math.abs(s-t[0])*n+i,f=Math.abs(l-t[1])*n+o,m=Math.abs(t[2]-t[0])*n,g=Math.abs(t[3]-t[1])*n),this.transform=[c*n,u*n,d*n,p*n,h-c*n*s-d*n*l,f-u*n*s-p*n*l],this.width=m,this.height=g}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new p({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return o.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=o.Util.applyTransform([e[0],e[1]],this.transform),n=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=p;class h extends o.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function f(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function m(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(n){return!1}}let g;function v(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,o.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=h,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,o.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,o.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const n of this.times){const e=n.name;e.length>t&&(t=e.length)}for(const n of this.times){const r=n.end-n.start;e.push("".concat(n.name.padEnd(t)," ").concat(r,"ms\n"))}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;g||(g=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=g.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(o+=c,a+=u):"+"===l&&(o-=c,a-=u),new Date(Date.UTC(n,r,i,o,a,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i;class o{constructor(e){let{baseUrl:t=null,isCompressed:n=!1}=e;this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),i=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(n,i).catch((e=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o;class a{constructor(e){let{baseUrl:t=null}=e;this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=a;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width","".concat(e,"px")),r.setAttribute("height","".concat(t,"px"))),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),r}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const i=3285377520,o=4294901760,a=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,s=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,d=this.h1,p=this.h2;const h=3432918353,f=461845907,m=11601,g=13715;for(let r=0;r<i;r++)1&r?(c=l[r],c=c*h&o|c*m&a,c=c<<15|c>>>17,c=c*f&o|c*g&a,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*h&o|u*m&a,u=u<<15|u>>>17,u=u*f&o|u*g&a,p^=u,p=p<<13|p>>>19,p=5*p+3864292196);switch(c=0,s){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*h&o|c*m&a,c=c<<15|c>>>17,c=c*f&o|c*g&a,1&i?d^=c:p^=c}this.h1=d,this.h2=p}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&o|36045*e&a,t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,e=444984403*e&o|60499*e&a,t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1);class i{constructor(e){let{docId:t,onUnsupportedFeature:n,ownerDocument:o=globalThis.document,styleElement:a=null}=e;this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=t,this._onUnsupportedFeature=n,this._document=o,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].append(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)("Failed to load font '".concat(t.family,"': '").concat(n,"'.")),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)}))}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var e;const t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,r.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let o;t.FontLoader=o,t.FontLoader=o=class extends i{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;if("undefined"===typeof navigator)e=!0;else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null===t||void 0===t?void 0:t[1])>=14&&(e=!0)}return(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function o(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let a,s;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d="lt".concat(Date.now()).concat(this.loadTestFontId++);let p=this._loadTestFont;p=o(p,976,d.length,d);const h=1482184792;let f=i(p,16);for(a=0,s=d.length-3;a<s;a+=4)f=f-h+i(d,a)|0;a<d.length&&(f=f-h+i(d+"XXX",a)|0),p=o(p,16,4,(0,r.string32)(f));const m="url(data:font/opentype;base64,".concat(btoa(p),");"),g='@font-face {font-family:"'.concat(d,'";src:').concat(m,"}");this.insertRule(g);const v=[];for(const r of t)v.push(r.loadedName);v.push(d);const y=this._document.createElement("div");y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px";for(const r of v){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=r,y.append(e)}this._document.body.append(y),function e(t,n){if(u++,u>30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{y.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:r=!1,ignoreErrors:i=!1,onUnsupportedFeature:o,fontRegistry:a=null}=t;this.compiledGlyphs=Object.create(null);for(const s in e)this[s]=e[s];this.isEvalSupported=!1!==n,this.disableFontFace=!0===r,this.ignoreErrors=!0===i,this._onUnsupportedFeature=o,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(this.data),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");");let n;if(this.cssFontInfo){let e="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(e+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),n='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(e,"src:").concat(t,"}")}else n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(i){if(!this.ignoreErrors)throw i;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)('getPathGenerator - ignoring character: "'.concat(i,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(8),i=n(1),o=n(13),a=n(14),s=n(3);const l=4096,c=s.isNodeJS&&"undefined"===typeof Path2D?-1:1e3,u=16;class d{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function p(e,t,n,i,o,a,s,l,c,u){const[d,p,h,f,m,g]=(0,r.getCurrentTransform)(e);if(0===p&&0===h){const r=s*d+m,v=Math.round(r),y=l*f+g,b=Math.round(y),w=(s+c)*d+m,x=Math.abs(Math.round(w)-v)||1,C=(l+u)*f+g,A=Math.abs(Math.round(C)-b)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(f),v,b),e.drawImage(t,n,i,o,a,0,0,x,A),e.setTransform(d,p,h,f,m,g),[x,A]}if(0===d&&0===f){const r=l*h+m,v=Math.round(r),y=s*p+g,b=Math.round(y),w=(l+u)*h+m,x=Math.abs(Math.round(w)-v)||1,C=(s+c)*p+g,A=Math.abs(Math.round(C)-b)||1;return e.setTransform(0,Math.sign(p),Math.sign(h),0,v,b),e.drawImage(t,n,i,o,a,0,0,A,x),e.setTransform(d,p,h,f,m,g),[A,x]}return e.drawImage(t,n,i,o,a,s,l,c,u),[Math.hypot(d,p)*c,Math.hypot(h,f)*u]}class h{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=i.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=i.Util.applyTransform(t,e),r=i.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],r[0]),this.minY=Math.min(this.minY,n[1],r[1]),this.maxX=Math.max(this.maxX,n[0],r[0]),this.maxY=Math.max(this.maxY,n[1],r[1])}updateScalingPathMinMax(e,t){i.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,r,o,a,s,l,c,u){const d=i.Util.bezierBoundingBox(t,n,r,o,a,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===o.PathType.STROKE){t||(0,i.unreachable)("Stroke bounding box must include transform.");const e=i.Util.singularValueDecompose2dScale(t),r=e[0]*this.lineWidth/2,o=e[1]*this.lineWidth/2;n[0]-=r,n[1]-=o,n[2]+=r,n[3]+=o}return n}updateClipFromPath(){const e=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const r=t.height,o=t.width,a=r%u,s=(r-a)/u,l=0===a?s:s+1,c=e.createImageData(o,u);let d,p=0;const h=t.data,f=c.data;let m,g,v,y,b,w,x,C;if(n)switch(n.length){case 1:b=n[0],w=n[0],x=n[0],C=n[0];break;case 4:b=n[0],w=n[1],x=n[2],C=n[3]}if(t.kind===i.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,n=new Uint32Array(f.buffer,0,f.byteLength>>2),r=n.length,y=o+7>>3;let b=4294967295,w=i.FeatureTest.isLittleEndian?4278190080:255;for(C&&255===C[0]&&0===C[255]&&([b,w]=[w,b]),m=0;m<l;m++){for(v=m<s?u:a,d=0,g=0;g<v;g++){const e=t-p;let r=0;const i=e>y?o:8*e-7,a=-8&i;let s=0,l=0;for(;r<a;r+=8)l=h[p++],n[d++]=128&l?b:w,n[d++]=64&l?b:w,n[d++]=32&l?b:w,n[d++]=16&l?b:w,n[d++]=8&l?b:w,n[d++]=4&l?b:w,n[d++]=2&l?b:w,n[d++]=1&l?b:w;for(;r<i;r++)0===s&&(l=h[p++],s=128),n[d++]=l&s?b:w,s>>=1}for(;d<r;)n[d++]=0;e.putImageData(c,0,m*u)}}else if(t.kind===i.ImageKind.RGBA_32BPP){const t=!!(b||w||x);for(g=0,y=o*u*4,m=0;m<s;m++){if(f.set(h.subarray(p,p+y)),p+=y,t)for(let e=0;e<y;e+=4)b&&(f[e+0]=b[f[e+0]]),w&&(f[e+1]=w[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(c,0,g),g+=u}if(m<l){if(y=o*a*4,f.set(h.subarray(p,p+y)),t)for(let e=0;e<y;e+=4)b&&(f[e+0]=b[f[e+0]]),w&&(f[e+1]=w[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(c,0,g)}}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));{const t=!!(b||w||x);for(v=u,y=o*v,m=0;m<l;m++){for(m>=s&&(v=a,y=o*v),d=0,g=y;g--;)f[d++]=h[p++],f[d++]=h[p++],f[d++]=h[p++],f[d++]=255;if(t)for(let e=0;e<d;e+=4)b&&(f[e+0]=b[f[e+0]]),w&&(f[e+1]=w[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(c,0,m*u)}}}}function m(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,i=n%u,o=(n-i)/u,s=0===i?o:o+1,l=e.createImageData(r,u);let c=0;const d=t.data,p=l.data;for(let h=0;h<s;h++){const t=h<o?u:i;({srcPos:c}=(0,a.applyMaskImageData)({src:d,srcPos:c,dest:p,width:r,height:t})),e.putImageData(l,0,h*u)}}function g(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let r=0,i=n.length;r<i;r++){const i=n[r];void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function v(e,t){e.strokeStyle=e.fillStyle=t||"#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function y(e,t,n,r){const i=e.length;for(let o=3;o<i;o+=4){const i=e[o];if(0===i)e[o-3]=t,e[o-2]=n,e[o-1]=r;else if(i<255){const a=255-i;e[o-3]=e[o-3]*i+t*a>>8,e[o-2]=e[o-2]*i+n*a>>8,e[o-1]=e[o-1]*i+r*a>>8}}}function b(e,t,n){const r=e.length,i=1/255;for(let o=3;o<r;o+=4){const r=n?n[e[o]]:e[o];t[o]=t[o]*r*i|0}}function w(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[r>>8]>>8:t[i]*r>>16}}function x(e,t,n,r){const i=r[0],o=r[1],a=r[2]-i,s=r[3]-o;0!==a&&0!==s&&(function(e,t,n,r,i,o,a,s,l,c,u){const d=!!o,p=d?o[0]:0,h=d?o[1]:0,f=d?o[2]:0;let m;m="Luminosity"===i?w:b;const g=Math.min(r,Math.ceil(1048576/n));for(let v=0;v<r;v+=g){const i=Math.min(g,r-v),o=e.getImageData(s-c,v+(l-u),n,i),b=t.getImageData(s,v+l,n,i);d&&y(o.data,p,h,f),m(o.data,b.data,a),t.putImageData(b,s,v+l)}}(t.context,n,a,s,t.subtype,t.backdrop,t.transferMap,i,o,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}function C(e,t){const n=i.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const o=Math.fround((globalThis.devicePixelRatio||1)*r.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=o||n[1]<=o}const A=["butt","round","square"],E=["miter","round","bevel"],_={},T={};var S=new WeakSet;class k{constructor(e,t,n,r,i,o,a,s){_classPrivateMethodInitSpec(this,S),this.ctx=e,this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=o,this.cachedCanvases=new d(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=a,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null===s||void 0===s?void 0:s.background)||null,this.foregroundColor=(null===s||void 0===s?void 0:s.foreground)||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:i=!1,background:o=null}=e;const a=this.ctx.canvas.width,s=this.ctx.canvas.height,l=o||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,i=l;if(this.ctx.fillStyle=l,i=this.ctx.fillStyle,n="string"===typeof i&&/^#[0-9A-Fa-f]{6}$/.test(i),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const[n,o,a]=(0,r.getRGB)(i),s=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*s(n)+.7152*s(o)+.0722*s(a));this.selectColor=(n,r,i)=>{const o=.2126*s(n)+.7152*s(r)+.0722*s(i);return Math.round(o)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||l,this.ctx.fillRect(0,0,a,s),this.ctx.restore(),i){const e=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,r.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),v(this.ctx,this.foregroundColor),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,r.getCurrentTransform)(this.ctx),this.imageLayer&&((0,r.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(e,t,n,r){const o=e.argsArray,a=e.fnArray;let s=t||0;const l=o.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const p=this.commonObjs,h=this.objs;let f;for(;;){if(void 0!==r&&s===r.nextBreakPoint)return r.breakIt(s,n),s;if(f=a[s],f!==i.OPS.dependency)this[f].apply(this,o[s]);else for(const e of o[s]){const t=e.startsWith("g_")?p:h;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}endDrawing(){_assertClassBrand(S,this,P).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,r=e.height;let i,o,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;a>2&&l>1||s>2&&c>1;){let t=l,n=c;a>2&&l>1&&(t=Math.ceil(l/2),a/=l/t),s>2&&c>1&&(n=Math.ceil(c/2),s/=c/n),i=this.cachedCanvases.getCanvas(u,t,n),o=i.context,o.clearRect(0,0,t,n),o.drawImage(e,0,0,l,c,0,0,t,n),e=i.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:a}=e,s=this.current.fillColor,l=this.current.patternFill,c=(0,r.getCurrentTransform)(t);let u,d,h,f;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=c.slice(0,4);d=JSON.stringify(l?n:[n,s]),u=this._cachedBitmapsMap.get(t),u||(u=new Map,this._cachedBitmapsMap.set(t,u));const r=u.get(d);if(r&&!l)return{canvas:r,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};h=r}h||(f=this.cachedCanvases.getCanvas("maskCanvas",n,a),m(f.context,e));let g=i.Util.transform(c,[1/n,0,0,-1/a,0,0]);g=i.Util.transform(g,[1,0,0,1,0,-a]);const v=i.Util.applyTransform([0,0],g),y=i.Util.applyTransform([n,a],g),b=i.Util.normalizeRect([v[0],v[1],y[0],y[1]]),w=Math.round(b[2]-b[0])||1,x=Math.round(b[3]-b[1])||1,A=this.cachedCanvases.getCanvas("fillCanvas",w,x),E=A.context,_=Math.min(v[0],y[0]),T=Math.min(v[1],y[1]);E.translate(-_,-T),E.transform(...g),h||(h=this._scaleImage(f.canvas,(0,r.getCurrentTransformInverse)(E)),h=h.img,u&&l&&u.set(d,h)),E.imageSmoothingEnabled=C((0,r.getCurrentTransform)(E),e.interpolate),p(E,h,0,0,h.width,h.height,0,0,n,a),E.globalCompositeOperation="source-in";const S=i.Util.transform((0,r.getCurrentTransformInverse)(E),[1,0,0,1,-_,-T]);return E.fillStyle=l?s.getPattern(t,this,S,o.PathType.FILL):s,E.fillRect(0,0,n,a),u&&!l&&(this.cachedCanvases.delete("fillCanvas"),u.set(d,A.canvas)),{canvas:A.canvas,offsetX:Math.round(_),offsetY:Math.round(T)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=A[e]}setLineJoin(e){this.ctx.lineJoin=E[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t<n;t++){const n=e[t],r=n[0],i=n[1];switch(r){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=i}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;const o=this.ctx;o.setTransform(...(0,r.getCurrentTransform)(this.suspendedCtx)),g(this.suspendedCtx,o),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,i,o,a){t.transform(e,n,r,i,o,a),this.__originalTransform(e,n,r,i,o,a)},e.setTransform=function(e,n,r,i,o,a){t.setTransform(e,n,r,i,o,a),this.__originalSetTransform(e,n,r,i,o,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,i,o,a){t.bezierCurveTo(e,n,r,i,o,a),this.__originalBezierCurveTo(e,n,r,i,o,a)},e.rect=function(e,n,r,i){t.rect(e,n,r,i),this.__originalRect(e,n,r,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),g(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;x(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(g(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),g(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,i,o){this.ctx.transform(e,t,n,r,i,o),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const o=this.ctx,a=this.current;let s,l,c=a.x,u=a.y;const d=(0,r.getCurrentTransform)(o),p=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],h=p?n.slice(0):null;for(let r=0,f=0,m=e.length;r<m;r++)switch(0|e[r]){case i.OPS.rectangle:c=t[f++],u=t[f++];const e=t[f++],n=t[f++],r=c+e,m=u+n;o.moveTo(c,u),0===e||0===n?o.lineTo(r,m):(o.lineTo(r,u),o.lineTo(r,m),o.lineTo(c,m)),p||a.updateRectMinMax(d,[c,u,r,m]),o.closePath();break;case i.OPS.moveTo:c=t[f++],u=t[f++],o.moveTo(c,u),p||a.updatePathMinMax(d,c,u);break;case i.OPS.lineTo:c=t[f++],u=t[f++],o.lineTo(c,u),p||a.updatePathMinMax(d,c,u);break;case i.OPS.curveTo:s=c,l=u,c=t[f+4],u=t[f+5],o.bezierCurveTo(t[f],t[f+1],t[f+2],t[f+3],c,u),a.updateCurvePathMinMax(d,s,l,t[f],t[f+1],t[f+2],t[f+3],c,u,h),f+=6;break;case i.OPS.curveTo2:s=c,l=u,o.bezierCurveTo(c,u,t[f],t[f+1],t[f+2],t[f+3]),a.updateCurvePathMinMax(d,s,l,c,u,t[f],t[f+1],t[f+2],t[f+3],h),c=t[f+2],u=t[f+3],f+=4;break;case i.OPS.curveTo3:s=c,l=u,c=t[f+2],u=t[f+3],o.bezierCurveTo(t[f],t[f+1],c,u,c,u),a.updateCurvePathMinMax(d,s,l,t[f],t[f+1],c,u,c,u,h),f+=4;break;case i.OPS.closePath:o.closePath()}p&&a.updateScalingPathMinMax(d,h),a.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(e){e="undefined"===typeof e||e;const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&null!==n&&void 0!==n&&n.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),o.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e){e="undefined"===typeof e||e;const t=this.ctx,n=this.current.fillColor;let i=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),o.PathType.FILL),i=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==a&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=_}eoClip(){this.pendingClip=T}beginText(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const n=this.commonObjs.get(e),r=this.current;if(!n)throw new Error("Can't find font for ".concat(e));if(r.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;const o=n.loadedName||"sans-serif";let a="normal";n.black?a="900":n.bold&&(a="bold");const s=n.italic?"italic":"normal",l='"'.concat(o,'", ').concat(n.fallbackName);let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(s," ").concat(a," ").concat(c,"px ").concat(l)}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,i,o){this.current.textMatrix=[e,t,n,r,i,o],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,o){const a=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&i.TextRenderingMode.FILL_STROKE_MASK,p=!!(c&i.TextRenderingMode.ADD_TO_PATH_FLAG),h=s.patternFill&&!l.missingFile;let f;(l.disableFontFace||p||h)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||h?(a.save(),a.translate(t,n),a.beginPath(),f(a,u),o&&a.setTransform(...o),d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fill(),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),p&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,r.getCurrentTransform)(a),x:t,y:n,fontSize:u,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const a=t.fontSize;if(0===a)return;const s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,p=t.textHScale*d,h=e.length,f=n.vertical,m=f?1:-1,g=n.defaultVMetrics,v=a*t.fontMatrix[0],y=t.textRenderingMode===i.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(s.save(),s.transform(...t.textMatrix),s.translate(t.x,t.y+t.textRise),d>0?s.scale(p,-1):s.scale(p,1),t.patternFill){s.save();const e=t.fillColor.getPattern(s,this,(0,r.getCurrentTransformInverse)(s),o.PathType.FILL);b=(0,r.getCurrentTransform)(s),s.restore(),s.fillStyle=e}let w=t.lineWidth;const x=t.textMatrixScale;if(0===x||0===w){const e=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;e!==i.TextRenderingMode.STROKE&&e!==i.TextRenderingMode.FILL_STROKE||(w=this.getSinglePixelWidth())}else w/=x;1!==l&&(s.scale(l,l),w/=l),s.lineWidth=w;let C,A=0;for(C=0;C<h;++C){const t=e[C];if("number"===typeof t){A+=m*t*a/1e3;continue}let r=!1;const i=(t.isSpace?u:0)+c,o=t.fontChar,p=t.accent;let h,w,x,E=t.width;if(f){const e=t.vmetric||g,n=-(t.vmetric?e[1]:.5*E)*v,r=e[2]*v;E=e?-e[0]:E,h=n/l,w=(A+r)/l}else h=A/l,w=0;if(n.remeasure&&E>0){const e=1e3*s.measureText(o).width/a*l;if(E<e&&this.isFontSubpixelAAEnabled){const t=E/e;r=!0,s.save(),s.scale(t,1),h/=t}else E!==e&&(h+=(E-e)/2e3*a/l)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(y&&!p)s.fillText(o,h,w);else if(this.paintChar(o,h,w,b),p){const e=h+a*p.offset.x/l,t=w-a*p.offset.y/l;this.paintChar(p.fontChar,e,t,b)}x=f?E*v-i*d:E*v+i*d,A+=x,r&&s.restore()}f?t.y-=A:t.x+=A*p,s.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,r=n.font,o=n.fontSize,a=n.fontDirection,s=r.vertical?1:-1,l=n.charSpacing,c=n.wordSpacing,u=n.textHScale*a,d=n.fontMatrix||i.FONT_IDENTITY_MATRIX,p=e.length;let h,f,m,g;if(n.textRenderingMode!==i.TextRenderingMode.INVISIBLE&&0!==o){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...n.textMatrix),t.translate(n.x,n.y),t.scale(u,a),h=0;h<p;++h){if(f=e[h],"number"===typeof f){g=s*f*o/1e3,this.ctx.translate(g,0),n.x+=g*u;continue}const a=(f.isSpace?c:0)+l,p=r.charProcOperatorList[f.operatorListId];p?(this.contentVisible&&(this.processingType3=f,this.save(),t.scale(o,o),t.transform(...d),this.executeOperatorList(p),this.restore()),m=i.Util.applyTransform([f.width,0],d)[0]*o+a,t.translate(m,0),n.x+=m*u):(0,i.warn)('Type3 character "'.concat(f.operatorListId,'" is not available.'))}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],i=this.baseTransform||(0,r.getCurrentTransform)(this.ctx),a={createCanvasGraphics:e=>new k(e,this.commonObjs,this.objs,this.canvasFactory)};t=new o.TilingPattern(e,n,this.ctx,a,i)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){var r;const o=(null===(r=this.selectColor)||void 0===r?void 0:r.call(this,e,t,n))||i.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,n){var r;const o=(null===(r=this.selectColor)||void 0===r?void 0:r.call(this,e,t,n))||i.Util.makeHexColor(e,t,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,o.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),o.PathType.SHADING);const a=(0,r.getCurrentTransformInverse)(t);if(a){const e=t.canvas,n=e.width,r=e.height,o=i.Util.applyTransform([0,0],a),s=i.Util.applyTransform([0,r],a),l=i.Util.applyTransform([n,0],a),c=i.Util.applyTransform([n,r],a),u=Math.min(o[0],s[0],l[0],c[0]),d=Math.min(o[1],s[1],l[1],c[1]),p=Math.max(o[0],s[0],l[0],c[0]),h=Math.max(o[1],s[1],l[1],c[1]);this.ctx.fillRect(u,d,p-u,h-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,r.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,r.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");const n=(0,r.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=i.Util.getAxialAlignedBoundingBox(e.bbox,(0,r.getCurrentTransform)(t));const a=[0,0,t.canvas.width,t.canvas.height];o=i.Util.intersect(o,a)||[0,0,0,0];const s=Math.floor(o[0]),c=Math.floor(o[1]);let u=Math.max(Math.ceil(o[2])-s,1),d=Math.max(Math.ceil(o[3])-c,1),p=1,h=1;u>l&&(p=u/l,u=l),d>l&&(h=d/l,d=l),this.current.startNewPathAndClipBox([0,0,u,d]);let f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);const m=this.cachedCanvases.getCanvas(f,u,d),v=m.context;v.scale(1/p,1/h),v.translate(-s,-c),v.transform(...n),e.smask?this.smaskStack.push({canvas:m.canvas,context:v,offsetX:s,offsetY:c,scaleX:p,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,c),t.scale(p,h),t.save()),g(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,r.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=i.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,o,a){if(_assertClassBrand(S,this,P).call(this),v(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const o=t[2]-t[0],s=t[3]-t[1];if(a&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=s;const[a,l]=i.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(o*this.outputScaleX*c),d=Math.ceil(s*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:p,context:h}=this.annotationCanvas;this.annotationCanvasMap.set(e,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=h,this.ctx.setTransform(a,0,0,-l,0,s*l),v(this.ctx,this.foregroundColor)}else v(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],o,s),this.ctx.clip(),this.endPath()}this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>c||n>c)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let o,a,s,l=new Uint8Array(i*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),p=0;for(const c of e.data){let e=128;for(;e>0;)d[p++]=c&e?0:255,e>>=1}let h=0;for(p=0,0!==d[p]&&(l[0]=1,++h),a=1;a<t;a++)d[p]!==d[p+1]&&(l[a]=d[p]?2:1,++h),p++;for(0!==d[p]&&(l[a]=2,++h),o=1;o<n;o++){p=o*u,s=o*i,d[p-u]!==d[p]&&(l[s]=d[p]?1:8,++h);let e=(d[p]?4:0)+(d[p-u]?8:0);for(a=1;a<t;a++)e=(e>>2)+(d[p+1]?4:0)+(d[p-u+1]?8:0),r[e]&&(l[s+a]=r[e],++h),p++;if(d[p-u]!==d[p]&&(l[s+a]=d[p]?2:4,++h),h>1e3)return null}for(p=u*(n-1),s=o*i,0!==d[p]&&(l[s]=8,++h),a=1;a<t;a++)d[p]!==d[p+1]&&(l[s+a]=d[p]?4:8,++h),p++;if(0!==d[p]&&(l[s+a]=4,++h),h>1e3)return null;const f=new Int32Array([0,i,-1,0,-i,0,0,0,1]),m=new Path2D;for(o=0;h&&o<=n;o++){let e=o*i;const n=e+t;for(;e<n&&!l[e];)e++;if(e===n)continue;m.moveTo(e%i,o);const r=e;let a=l[e];do{const t=f[a];do{e+=t}while(!l[e]);const n=l[e];5!==n&&10!==n?(a=n,l[e]=0):(a=n&51*a>>4,l[e]&=a>>2|a<<2),m.lineTo(e%i,e/i|0),l[e]||--h}while(r!==e);--o}return d=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(m),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const i=this._createMaskCanvas(e),o=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(o,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,r.getCurrentTransform)(l);l.transform(t,n,o,a,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,0,0);for(let r=0,d=s.length;r<d;r+=2){const e=i.Util.transform(c,[t,n,o,a,s[r],s[r+1]]),[d,p]=i.Util.applyTransform([0,0],e);l.drawImage(u.canvas,d,p)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,i=this.current.patternFill;for(const a of e){const{data:e,width:s,height:l,transform:c}=a,u=this.cachedCanvases.getCanvas("maskCanvas",s,l),d=u.context;d.save(),m(d,this.getObject(e,a)),d.globalCompositeOperation="source-in",d.fillStyle=i?n.getPattern(d,this,(0,r.getCurrentTransformInverse)(t),o.PathType.FILL):n,d.fillRect(0,0,s,l),d.restore(),t.save(),t.transform(...c),t.scale(1,-1),p(t,u.canvas,0,0,s,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,r){if(!this.contentVisible)return;const o=this.getObject(e);if(!o)return void(0,i.warn)("Dependent image isn't ready yet");const a=o.width,s=o.height,l=[];for(let i=0,c=r.length;i<c;i+=2)l.push({transform:[t,0,0,n,r[i],r[i+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,l)}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,o=this.ctx;let a;if(this.save(),o.scale(1/t,-1/n),"function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{const r=this.cachedCanvases.getCanvas("inlineImage",t,n);f(r.context,e,this.current.transferMaps),a=r.canvas}const s=this._scaleImage(a,(0,r.getCurrentTransformInverse)(o));o.imageSmoothingEnabled=C((0,r.getCurrentTransform)(o),e.interpolate);const[l,c]=p(o,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,t,n);if(this.imageLayer){const[t,o]=i.Util.applyTransform([0,-n],(0,r.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:e,left:t,top:o,width:l,height:c})}this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx,o=e.width,a=e.height,s=this.cachedCanvases.getCanvas("inlineImage",o,a);f(s.context,e,this.current.transferMaps);for(const l of t){if(n.save(),n.transform(...l.transform),n.scale(1,-1),p(n,s.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){const[t,n]=i.Util.applyTransform([l.x,l.y],(0,r.getCurrentTransform)(this.ctx));this.imageLayer.appendImage({imgData:e,left:t,top:n,width:o,height:a})}n.restore()}this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===T?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,r.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:e}=this.current,t=(0,r.getCurrentTransform)(this.ctx);let n,i;if(0===t[1]&&0===t[2]){const r=Math.abs(t[0]),o=Math.abs(t[3]);if(0===e)n=1/r,i=1/o;else{const t=r*e,a=o*e;n=t<1?1/t:1,i=a<1?1/a:1}}else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),o=Math.hypot(t[0],t[1]),a=Math.hypot(t[2],t[3]);if(0===e)n=a/r,i=o/r;else{const t=e*r;n=a>t?a/t:1,i=o>t?o/t:1}}this._cachedScaleForStroking=[n,i]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[i,o]=this.getScaleForStroking();if(t.lineWidth=n||1,1===i&&1===o)return void t.stroke();let a,s,l;e&&(a=(0,r.getCurrentTransform)(t),s=t.getLineDash().slice(),l=t.lineDashOffset),t.scale(i,o);const c=Math.max(i,o);t.setLineDash(t.getLineDash().map((e=>e/c))),t.lineDashOffset/=c,t.stroke(),e&&(t.setTransform(...a),t.setLineDash(s),t.lineDashOffset=l)}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function P(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}t.CanvasGraphics=k;for(const D in i.OPS)void 0!==k.prototype[D]&&(k.prototype[i.OPS[D]]=k.prototype[D])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new c(e);case"Mesh":return new p(e);case"Dummy":return new h}throw new Error("Unknown IR type: ".concat(e[0]))};var r=n(1),i=n(8),o=n(3);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(!t||o.isNodeJS)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}t.PathType=a;class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class c extends l{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,o){let l;if(o===a.STROKE||o===a.FILL){const a=t.current.getClippedPathBoundingBox(o,(0,i.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,p=t.cachedCanvases.getCanvas("pattern",u,d,!0),h=p.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-a[0],-a[1]),n=r.Util.transform(n,[1,0,0,1,a[0],a[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),s(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(p.canvas,"no-repeat");const f=new DOMMatrix(n);try{l.setTransform(f)}catch(c){(0,r.warn)('RadialAxialShadingPattern.getPattern: "'.concat(null===c||void 0===c?void 0:c.message,'".'))}}else s(e,this._bbox),l=this._createGradient(e);return l}}function u(e,t,n,r,i,o,a,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let p;l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=o,o=a,a=p),l[r+1]>l[i+1]&&(p=r,r=i,i=p,p=a,a=s,s=p),l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=o,o=a,a=p);const h=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,v=(l[i]+t.offsetX)*t.scaleX,y=(l[i+1]+t.offsetY)*t.scaleY;if(f>=y)return;const b=c[o],w=c[o+1],x=c[o+2],C=c[a],A=c[a+1],E=c[a+2],_=c[s],T=c[s+1],S=c[s+2],k=Math.round(f),P=Math.round(y);let D,F,N,I,R,O,j,M;for(let L=k;L<=P;L++){if(L<g){let e;e=L<f?0:(f-L)/(f-g),D=h-(h-m)*e,F=b-(b-C)*e,N=w-(w-A)*e,I=x-(x-E)*e}else{let e;e=L>y?1:g===y?0:(g-L)/(g-y),D=m-(m-v)*e,F=C-(C-_)*e,N=A-(A-T)*e,I=E-(E-S)*e}let e;e=L<f?0:L>y?1:(f-L)/(f-y),R=h-(h-v)*e,O=b-(b-_)*e,j=w-(w-T)*e,M=x-(x-S)*e;const t=Math.round(Math.min(D,R)),n=Math.round(Math.max(D,R));let r=d*L+4*t;for(let i=t;i<=n;i++)e=(D-i)/(D-R),e<0?e=0:e>1&&(e=1),u[r++]=F-(F-O)*e|0,u[r++]=N-(N-j)*e|0,u[r++]=I-(I-M)*e|0,u[r++]=255}}function d(e,t,n){const r=t.coords,i=t.colors;let o,a;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,c=s-1;for(o=0;o<l;o++){let t=o*s;for(let o=0;o<c;o++,t++)u(e,n,r[t],r[t+1],r[t+s],i[t],i[t+1],i[t+s]),u(e,n,r[t+s+1],r[t+1],r[t+s],i[t+s+1],i[t+1],i[t+s])}break;case"triangles":for(o=0,a=r.length;o<a;o+=3)u(e,n,r[o],r[o+1],r[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class p extends l{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const r=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),o=Math.ceil(this._bounds[2])-r,a=Math.ceil(this._bounds[3])-i,s=Math.min(Math.ceil(Math.abs(o*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),c=o/s,u=a/l,p={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-i,scaleX:1/c,scaleY:1/u},h=s+4,f=l+4,m=n.getCanvas("mesh",h,f,!1),g=m.context,v=g.createImageData(s,l);if(t){const e=v.data;for(let n=0,r=e.length;n<r;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const y of this._figures)d(v,y,p);return g.putImageData(v,2,2),{canvas:m.canvas,offsetX:r-2*c,offsetY:i-2*u,scaleX:c,scaleY:u}}getPattern(e,t,n,o){let l;if(s(e,this._bbox),o===a.SHADING)l=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(e));else if(l=r.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=r.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,o===a.SHADING?null:this._background,t.cachedCanvases);return o!==a.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class h extends l{getPattern(){return"hotpink"}}const f=1,m=2;class g{static get MAX_PATTERN_SIZE(){return(0,r.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,o=this.xstep,a=this.ystep,s=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+l);const d=n[0],p=n[1],h=n[2],f=n[3],m=r.Util.singularValueDecompose2dScale(this.matrix),g=r.Util.singularValueDecompose2dScale(this.baseTransform),v=[m[0]*g[0],m[1]*g[1]],y=this.getSizeAndScale(o,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(a,this.ctx.canvas.height,v[1]),w=e.cachedCanvases.getCanvas("pattern",y.size,b.size,!0),x=w.context,C=u.createCanvasGraphics(x);C.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(C,s,c);let A=d,E=p,_=h,T=f;return d<0&&(A=0,_+=Math.abs(d)),p<0&&(E=0,T+=Math.abs(p)),x.translate(-y.scale*A,-b.scale*E),C.transform(y.scale,0,0,b.scale,0,0),x.save(),this.clipBbox(C,A,E,_,T),C.baseTransform=(0,i.getCurrentTransform)(C.ctx),C.executeOperatorList(t),C.endDrawing(),{canvas:w.canvas,scaleX:y.scale,scaleY:b.scale,offsetX:A,offsetY:E}}getSizeAndScale(e,t,n){e=Math.abs(e);const r=Math.max(g.MAX_PATTERN_SIZE,t);let i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}}clipBbox(e,t,n,r,o){const a=r-t,s=o-n;e.ctx.rect(t,n,a,s),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,n,r,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,o=e.current;switch(t){case f:const e=this.ctx;i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,o.fillColor=e.fillStyle,o.strokeColor=e.strokeStyle;break;case m:const a=r.Util.makeHexColor(n[0],n[1],n[2]);i.fillStyle=a,i.strokeStyle=a,o.fillColor=a,o.strokeColor=a;break;default:throw new r.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,n,i){let o=n;i!==a.SHADING&&(o=r.Util.transform(o,t.baseTransform),this.matrix&&(o=r.Util.transform(o,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(o);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");try{c.setTransform(l)}catch(u){(0,r.warn)('TilingPattern.getPattern: "'.concat(null===u||void 0===u?void 0:u.message,'".'))}return c}}t.TilingPattern=g},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:n=0,dest:i,destPos:o=0,width:a,height:s,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[0,c]:[c,0],p=a>>3,h=7&a,f=t.length;i=new Uint32Array(i.buffer);for(let r=0;r<s;r++){for(const r=n+p;n<r;n++){const e=n<f?t[n]:255;i[o++]=128&e?d:u,i[o++]=64&e?d:u,i[o++]=32&e?d:u,i[o++]=16&e?d:u,i[o++]=8&e?d:u,i[o++]=4&e?d:u,i[o++]=2&e?d:u,i[o++]=1&e?d:u}if(0===h)continue;const e=n<f?t[n++]:255;for(let t=0;t<h;t++)i[o++]=e&1<<7-t?d:u}return{srcPos:n,destPos:o}};var r=n(1)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const i=1,o=2,a=1,s=2,l=3,c=4,u=5,d=6,p=7,h=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==o)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:a,callback:i,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:a,callback:o,callbackId:t.callbackId,reason:f(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,o=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(a){o.reject(a)}return o.promise}sendWithStream(e,t,n,i){const o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const a=(0,r.createPromiseCapability)();return this.streamControllers[o]={controller:n,startCall:a,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:o,data:t,desiredSize:n.desiredSize},i),a.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:a,streamId:o,reason:f(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,a=this,s=this.actionHandler[e.action],d={enqueue(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=a,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete a.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,reason:f(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,m=this.streamControllers[t],g=this.streamSinks[t];switch(e.stream){case h:e.success?m.startCall.resolve():m.startCall.reject(f(e.reason));break;case p:e.success?m.pullCall.resolve():m.pullCall.reject(f(e.reason));break;case d:if(!g){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0});break}g.desiredSize<=0&&e.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=e.desiredSize,new Promise((function(e){e(g.onPull&&g.onPull())})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}));break;case c:if((0,r.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this._deleteStreamController(m,t);break;case u:(0,r.assert)(m,"error should have stream controller"),m.controller.error(f(e.reason)),this._deleteStreamController(m,t);break;case s:e.success?m.cancelCall.resolve():m.cancelCall.reject(f(e.reason)),this._deleteStreamController(m,t);break;case a:if(!g)break;new Promise((function(t){t(g.onCancel&&g.onCancel(f(e.reason)))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:s,streamId:t,reason:f(e)})})),g.sinkCapability.reject(f(e.reason)),g.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),i=new WeakMap,o=new WeakMap;t.Metadata=class{constructor(e){let{parsedData:t,rawData:n}=e;_classPrivateFieldInitSpec(this,i,void 0),_classPrivateFieldInitSpec(this,o,void 0),_classPrivateFieldSet(i,this,t),_classPrivateFieldSet(o,this,n)}getRaw(){return _classPrivateFieldGet(o,this)}get(e){var t;return null!==(t=_classPrivateFieldGet(i,this).get(e))&&void 0!==t?t:null}getAll(){return(0,r.objectFromMap)(_classPrivateFieldGet(i,this))}has(e){return _classPrivateFieldGet(i,this).has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1);const i=Symbol("INTERNAL");var o=new WeakMap;class a{constructor(e,t){_classPrivateFieldInitSpec(this,o,!0),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(o,this)}_setVisible(e,t){e!==i&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(o,this,t)}}var s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function p(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i<t;i++){const t=e[i];let o;if(Array.isArray(t))o=_assertClassBrand(d,this,p).call(this,t);else{if(!_classPrivateFieldGet(l,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;o=_classPrivateFieldGet(l,this).get(t).visible}switch(n){case"And":if(!o)return!1;break;case"Or":if(o)return!0;break;case"Not":return!o;default:return!0}}return"And"===n}t.OptionalContentConfig=class{constructor(e){if(_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,s,!0),_classPrivateFieldInitSpec(this,l,new Map),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,u,null),this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,_classPrivateFieldSet(u,this,e.order);for(const t of e.groups)_classPrivateFieldGet(l,this).set(t.id,new a(t.name,t.intent));if("OFF"===e.baseState)for(const e of _classPrivateFieldGet(l,this).values())e._setVisible(i,!1);for(const t of e.on)_classPrivateFieldGet(l,this).get(t)._setVisible(i,!0);for(const t of e.off)_classPrivateFieldGet(l,this).get(t)._setVisible(i,!1);_classPrivateFieldSet(c,this,new Map);for(const[e,t]of _classPrivateFieldGet(l,this))_classPrivateFieldGet(c,this).set(e,t.visible)}}isVisible(e){if(0===_classPrivateFieldGet(l,this).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(l,this).has(e.id)?_classPrivateFieldGet(l,this).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _assertClassBrand(d,this,p).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(l,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(l,this).get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(l,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(l,this).get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(l,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(l,this).get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(l,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(l,this).get(t).visible)return!1}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}setVisibility(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(l,this).has(e)?(_classPrivateFieldGet(l,this).get(e)._setVisible(i,!!t),_classPrivateFieldSet(s,this,null)):(0,r.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){if(null!==_classPrivateFieldGet(s,this))return _classPrivateFieldGet(s,this);for(const[e,t]of _classPrivateFieldGet(l,this)){const n=_classPrivateFieldGet(c,this).get(e);if(t.visible!==n)return _classPrivateFieldSet(s,this,!1)}return _classPrivateFieldSet(s,this,!0)}getOrder(){return _classPrivateFieldGet(l,this).size?_classPrivateFieldGet(u,this)?_classPrivateFieldGet(u,this).slice():[..._classPrivateFieldGet(l,this).keys()]:null}getGroups(){return _classPrivateFieldGet(l,this).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(l,this)):null}getGroup(e){return _classPrivateFieldGet(l,this).get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),i=n(8);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if((null===n||void 0===n?void 0:n.length)>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];null!==t&&void 0!==t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;null!==t&&void 0!==t&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new o(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,i.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){var i;if(!r)return;let o=null;const a=r.name;if("#text"===a)o=r.value;else{if(!n.shouldBuildText(a))return;null!==r&&void 0!==r&&null!==(i=r.attributes)&&void 0!==i&&i.textContent?o=r.attributes.textContent:r.value&&(o=r.value)}if(null!==o&&t.push({str:o}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(9);const i=function(e){return new Promise(((t,n)=>{__webpack_require__(82590).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class o extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(28383).createCanvas(e,t)}}t.NodeCanvasFactory=o;class a extends r.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=a;class s extends r.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(7),i=n(1),o=n(23),a=n(24),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakSet;class g{constructor(e){_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,s,void 0),_classPrivateFieldInitSpec(this,l,!1),_classPrivateFieldInitSpec(this,c,this.pointerup.bind(this)),_classPrivateFieldInitSpec(this,u,this.pointerdown.bind(this)),_classPrivateFieldInitSpec(this,d,new Map),_classPrivateFieldInitSpec(this,p,!1),_classPrivateFieldInitSpec(this,h,!1),_classPrivateFieldInitSpec(this,f,void 0),g._initialized||(g._initialized=!0,o.FreeTextEditor.initialize(e.l10n),a.InkEditor.initialize(e.l10n),e.uiManager.registerEditorTypes([o.FreeTextEditor,a.InkEditor])),_classPrivateFieldSet(f,this,e.uiManager),this.annotationStorage=e.annotationStorage,this.pageIndex=e.pageIndex,this.div=e.div,_classPrivateFieldSet(s,this,e.accessibilityManager),_classPrivateFieldGet(f,this).addLayer(this)}updateToolbar(e){_classPrivateFieldGet(f,this).updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(f,this).getMode();_assertClassBrand(m,this,w).call(this),e===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),_classPrivateFieldGet(f,this).unselectAll()}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(f,this).getMode()===i.AnnotationEditorType.INK){if(!e)for(const e of _classPrivateFieldGet(d,this).values())if(e.isEmpty())return void e.setInBackground();_assertClassBrand(m,this,b).call(this,{offsetX:0,offsetY:0}).setInBackground()}}setEditingState(e){_classPrivateFieldGet(f,this).setEditingState(e)}addCommands(e){_classPrivateFieldGet(f,this).addCommands(e)}enable(){this.div.style.pointerEvents="auto";for(const e of _classPrivateFieldGet(d,this).values())e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const e of _classPrivateFieldGet(d,this).values())e.disableEditing()}setActiveEditor(e){_classPrivateFieldGet(f,this).getActive()!==e&&_classPrivateFieldGet(f,this).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(u,this)),this.div.addEventListener("pointerup",_classPrivateFieldGet(c,this))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(u,this)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(c,this))}attach(e){_classPrivateFieldGet(d,this).set(e.id,e)}detach(e){var t;_classPrivateFieldGet(d,this).delete(e.id),null===(t=_classPrivateFieldGet(s,this))||void 0===t||t.removePointerInTextLayer(e.contentDiv)}remove(e){_classPrivateFieldGet(f,this).removeEditor(e),this.detach(e),this.annotationStorage.remove(e.id),e.div.style.display="none",setTimeout((()=>{e.div.style.display="",e.div.remove(),e.isAttachedToDOM=!1,document.activeElement===document.body&&_classPrivateFieldGet(f,this).focusMainContainer()}),0),_classPrivateFieldGet(h,this)||this.addInkEditorIfNeeded(!1)}add(e){if(_assertClassBrand(m,this,v).call(this,e),_classPrivateFieldGet(f,this).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveEditorInDOM(e),e.onceAdded(),this.addToAnnotationStorage(e)}moveEditorInDOM(e){var t;null===(t=_classPrivateFieldGet(s,this))||void 0===t||t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addToAnnotationStorage(e){e.isEmpty()||this.annotationStorage.has(e.id)||this.annotationStorage.setValue(e.id,e)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addANewEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!0})}addUndoableEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(f,this).getId()}deserialize(e){switch(e.annotationType){case i.AnnotationEditorType.FREETEXT:return o.FreeTextEditor.deserialize(e,this);case i.AnnotationEditorType.INK:return a.InkEditor.deserialize(e,this)}return null}setSelected(e){_classPrivateFieldGet(f,this).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(f,this).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(f,this).isSelected(e)}unselect(e){_classPrivateFieldGet(f,this).unselect(e)}pointerup(e){const t=r.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(p,this)&&(_classPrivateFieldSet(p,this,!1),_classPrivateFieldGet(l,this)?_assertClassBrand(m,this,b).call(this,e):_classPrivateFieldSet(l,this,!0))}pointerdown(e){const t=r.KeyboardManager.platform.isMac;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;_classPrivateFieldSet(p,this,!0);const n=_classPrivateFieldGet(f,this).getActive();_classPrivateFieldSet(l,this,!n||n.isEmpty())}drop(e){const t=e.dataTransfer.getData("text/plain"),n=_classPrivateFieldGet(f,this).getEditor(t);if(!n)return;e.preventDefault(),e.dataTransfer.dropEffect="move",_assertClassBrand(m,this,v).call(this,n);const r=this.div.getBoundingClientRect(),i=e.clientX-r.x,o=e.clientY-r.y;n.translate(i-n.startX,o-n.startY),this.moveEditorInDOM(n),n.div.focus()}dragover(e){e.preventDefault()}destroy(){var e;(null===(e=_classPrivateFieldGet(f,this).getActive())||void 0===e?void 0:e.parent)===this&&_classPrivateFieldGet(f,this).setActiveEditor(null);for(const n of _classPrivateFieldGet(d,this).values()){var t;null===(t=_classPrivateFieldGet(s,this))||void 0===t||t.removePointerInTextLayer(n.contentDiv),n.isAttachedToDOM=!1,n.div.remove(),n.parent=null}this.div=null,_classPrivateFieldGet(d,this).clear(),_classPrivateFieldGet(f,this).removeLayer(this)}render(e){this.viewport=e.viewport,(0,r.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const t of _classPrivateFieldGet(f,this).getEditors(this.pageIndex))this.add(t);this.updateMode()}update(e){this.viewport=e.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[e,t,n,r]=this.viewport.viewBox;return[n-e,r-t]}get viewportBaseDimensions(){const{width:e,height:t,rotation:n}=this.viewport;return n%180===0?[e,t]:[t,e]}setDimensions(){const{width:e,height:t,rotation:n}=this.viewport,r=n%180!==0,i=Math.floor(e)+"px",o=Math.floor(t)+"px";this.div.style.width=r?o:i,this.div.style.height=r?i:o,this.div.setAttribute("data-main-rotation",n)}}function v(e){var t;e.parent!==this&&(this.attach(e),e.pageIndex=this.pageIndex,null===(t=e.parent)||void 0===t||t.detach(e),e.parent=this,e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}function y(e){switch(_classPrivateFieldGet(f,this).getMode()){case i.AnnotationEditorType.FREETEXT:return new o.FreeTextEditor(e);case i.AnnotationEditorType.INK:return new a.InkEditor(e)}return null}function b(e){const t=this.getNextId(),n=_assertClassBrand(m,this,y).call(this,{parent:this,id:t,x:e.offsetX,y:e.offsetY});return n&&this.add(n),n}function w(){_classPrivateFieldSet(h,this,!0);for(const e of _classPrivateFieldGet(d,this).values())e.isEmpty()&&e.remove();_classPrivateFieldSet(h,this,!1)}_defineProperty(g,"_initialized",!1),t.AnnotationEditorLayer=g},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=n(1),o=n(7),a=n(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakSet;class m extends a.AnnotationEditor{constructor(e){super({...e,name:"freeTextEditor"}),_classPrivateMethodInitSpec(this,f),_classPrivateFieldInitSpec(this,s,this.editorDivBlur.bind(this)),_classPrivateFieldInitSpec(this,l,this.editorDivFocus.bind(this)),_classPrivateFieldInitSpec(this,c,this.editorDivKeydown.bind(this)),_classPrivateFieldInitSpec(this,u,void 0),_classPrivateFieldInitSpec(this,d,""),_classPrivateFieldInitSpec(this,p,!1),_classPrivateFieldInitSpec(this,h,void 0),_classPrivateFieldSet(u,this,e.color||m._defaultColor||a.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(h,this,e.fontSize||m._defaultFontSize)}static initialize(e){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map((t=>[t,e.get(t)])));const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:m._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:m._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:_assertClassBrand(f,this,g).call(this,t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:_assertClassBrand(f,this,v).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,m._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,m._defaultColor||a.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(h,this)],[i.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(u,this)]]}getInitialTranslation(){return[-m._internalPadding*this.parent.scaleFactor,-(m._internalPadding+_classPrivateFieldGet(h,this))*this.parent.scaleFactor]}rebuild(){super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(c,this)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(l,this)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(s,this)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(c,this)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(l,this)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(s,this)),this.div.focus(),this.isEditing=!1)}focusin(e){super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}commit(){super.commit(),_classPrivateFieldGet(p,this)||(_classPrivateFieldSet(p,this,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),_classPrivateFieldSet(d,this,_assertClassBrand(f,this,y).call(this).trimEnd()),_assertClassBrand(f,this,b).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(e){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(e){m._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id","".concat(this.id,"-editor")),this.enableEditing(),m._l10nPromise.get("editor_free_text_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),m._l10nPromise.get("free_text_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(_classPrivateFieldGet(h,this),"px * var(--scale-factor))"),n.color=_classPrivateFieldGet(u,this),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,o.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r);for(const e of _classPrivateFieldGet(d,this).split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t){const n=super.deserialize(e,t);return _classPrivateFieldSet(h,n,e.fontSize),_classPrivateFieldSet(u,n,i.Util.makeHexColor(...e.color)),_classPrivateFieldSet(d,n,e.value),n}serialize(){if(this.isEmpty())return null;const e=m._internalPadding*this.parent.scaleFactor,t=this.getRect(e,e),n=a.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:i.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(h,this),value:_classPrivateFieldGet(d,this),pageIndex:this.parent.pageIndex,rect:t,rotation:this.rotation}}}function g(e){const t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(h,this))*this.parent.scaleFactor),_classPrivateFieldSet(h,this,e),_assertClassBrand(f,this,b).call(this)},n=_classPrivateFieldGet(h,this);this.parent.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function v(e){const t=_classPrivateFieldGet(u,this);this.parent.addCommands({cmd:()=>{_classPrivateFieldSet(u,this,e),this.editorDiv.style.color=e},undo:()=>{_classPrivateFieldSet(u,this,t),this.editorDiv.style.color=t},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function y(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n].firstChild;"#text"===(null===r||void 0===r?void 0:r.nodeName)?t.push(r.data):t.push("")}return t.join("\n")}function b(){const[e,t]=this.parent.viewportBaseDimensions,n=this.div.getBoundingClientRect();this.width=n.width/e,this.height=n.height/t}r=m,_defineProperty(m,"_freeTextDefaultContent",""),_defineProperty(m,"_l10nPromise",void 0),_defineProperty(m,"_internalPadding",0),_defineProperty(m,"_defaultColor",null),_defineProperty(m,"_defaultFontSize",10),_defineProperty(m,"_keyboardManager",new o.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],r.prototype.commitOrRemove]])),_defineProperty(m,"_type","freetext"),t.FreeTextEditor=m},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return a.fitCurve}});var i=n(1),o=n(6),a=n(25),s=n(7);const l=16;var c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,x=new WeakMap,C=new WeakMap,A=new WeakSet;class E extends o.AnnotationEditor{constructor(e){super({...e,name:"inkEditor"}),_classPrivateMethodInitSpec(this,A),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,u,0),_classPrivateFieldInitSpec(this,d,0),_classPrivateFieldInitSpec(this,p,this.canvasPointermove.bind(this)),_classPrivateFieldInitSpec(this,h,this.canvasPointerleave.bind(this)),_classPrivateFieldInitSpec(this,f,this.canvasPointerup.bind(this)),_classPrivateFieldInitSpec(this,m,this.canvasPointerdown.bind(this)),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,y,null),_classPrivateFieldInitSpec(this,b,null),_classPrivateFieldInitSpec(this,w,0),_classPrivateFieldInitSpec(this,x,0),_classPrivateFieldInitSpec(this,C,null),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map((t=>[t,e.get(t)])))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:E._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:E._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:E._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:_assertClassBrand(A,this,_).call(this,t);break;case i.AnnotationEditorParamsType.INK_COLOR:_assertClassBrand(A,this,T).call(this,t);break;case i.AnnotationEditorParamsType.INK_OPACITY:_assertClassBrand(A,this,S).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,E._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,E._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*E._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||E._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||E._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:E._defaultOpacity))]]}rebuild(){super.rebuild(),null!==this.div&&(this.canvas||(_assertClassBrand(A,this,O).call(this),_assertClassBrand(A,this,j).call(this)),this.isAttachedToDOM||(this.parent.add(this),_assertClassBrand(A,this,M).call(this)),_assertClassBrand(A,this,G).call(this))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(b,this).disconnect(),_classPrivateFieldSet(b,this,null),super.remove())}enableEditMode(){_classPrivateFieldGet(g,this)||null===this.canvas||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(m,this)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(f,this)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(m,this)),this.canvas.removeEventListener("pointerup",_classPrivateFieldGet(f,this)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(g,this)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(g,this,!0),this.div.classList.add("disabled"),_assertClassBrand(A,this,G).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(e){super.focusin(e),this.enableEditMode()}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(g,this)&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(h,this)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(p,this)),_assertClassBrand(A,this,D).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.stopPropagation(),_assertClassBrand(A,this,F).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),_assertClassBrand(A,this,R).call(this,e),this.setInBackground())}canvasPointerleave(e){_assertClassBrand(A,this,R).call(this,e),this.setInBackground()}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),E._l10nPromise.get("editor_ink_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));const[n,r,i,o]=_assertClassBrand(A,this,k).call(this);if(this.setAt(n,r,0,0),this.setDims(i,o),_assertClassBrand(A,this,O).call(this),this.width){const[n,r]=this.parent.viewportBaseDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),_classPrivateFieldSet(v,this,!0),_assertClassBrand(A,this,M).call(this),this.setDims(this.width*n,this.height*r),_assertClassBrand(A,this,I).call(this),_assertClassBrand(A,this,Y).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _assertClassBrand(A,this,j).call(this),this.div}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(_classPrivateFieldGet(w,this)===n&&_classPrivateFieldGet(x,this)===r)return;_classPrivateFieldSet(w,this,n),_classPrivateFieldSet(x,this,r),this.canvas.style.visibility="hidden",_classPrivateFieldGet(c,this)&&Math.abs(_classPrivateFieldGet(c,this)-e/t)>.01&&(t=Math.ceil(e/_classPrivateFieldGet(c,this)),this.setDims(e,t));const[i,o]=this.parent.viewportBaseDimensions;this.width=e/i,this.height=t/o,_classPrivateFieldGet(g,this)&&_assertClassBrand(A,this,L).call(this,e,t),_assertClassBrand(A,this,M).call(this),_assertClassBrand(A,this,I).call(this),this.canvas.style.visibility="visible"}static deserialize(e,t){const n=super.deserialize(e,t);n.thickness=e.thickness,n.color=i.Util.makeHexColor(...e.color),n.opacity=e.opacity;const[r,o]=t.pageDimensions,a=n.width*r,s=n.height*o,p=t.scaleFactor,h=e.thickness/2;_classPrivateFieldSet(c,n,a/s),_classPrivateFieldSet(g,n,!0),_classPrivateFieldSet(w,n,Math.round(a)),_classPrivateFieldSet(x,n,Math.round(s));for(const{bezier:i}of e.paths){const e=[];n.paths.push(e);let t=p*(i[0]-h),r=p*(s-i[1]-h);for(let n=2,a=i.length;n<a;n+=6){const o=p*(i[n]-h),a=p*(s-i[n+1]-h),l=p*(i[n+2]-h),c=p*(s-i[n+3]-h),u=p*(i[n+4]-h),d=p*(s-i[n+5]-h);e.push([[t,r],[o,a],[l,c],[u,d]]),t=u,r=d}const o=_assertClassBrand(E,this,U).call(this,e);n.bezierPath2D.push(o)}const f=_assertClassBrand(A,n,W).call(n);return _classPrivateFieldSet(d,n,Math.max(l,f[2]-f[0])),_classPrivateFieldSet(u,n,Math.max(l,f[3]-f[1])),_assertClassBrand(A,n,L).call(n,a,s),n}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=this.rotation%180===0?e[3]-e[1]:e[2]-e[0],n=o.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:i.AnnotationEditorType.INK,color:n,thickness:this.thickness,opacity:this.opacity,paths:_assertClassBrand(A,this,V).call(this,this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,t),pageIndex:this.parent.pageIndex,rect:e,rotation:this.rotation}}}function _(e){const t=this.thickness;this.parent.addCommands({cmd:()=>{this.thickness=e,_assertClassBrand(A,this,G).call(this)},undo:()=>{this.thickness=t,_assertClassBrand(A,this,G).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function T(e){const t=this.color;this.parent.addCommands({cmd:()=>{this.color=e,_assertClassBrand(A,this,I).call(this)},undo:()=>{this.color=t,_assertClassBrand(A,this,I).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function S(e){e/=100;const t=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=e,_assertClassBrand(A,this,I).call(this)},undo:()=>{this.opacity=t,_assertClassBrand(A,this,I).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function k(){const{width:e,height:t,rotation:n}=this.parent.viewport;switch(n){case 90:return[0,e,e,t];case 180:return[e,t,e,t];case 270:return[t,0,e,t];default:return[0,0,e,t]}}function P(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle="".concat(this.color).concat((0,s.opacityToHex)(this.opacity))}function D(e,t){var n;this.isEditing=!0,_classPrivateFieldGet(v,this)||(_classPrivateFieldSet(v,this,!0),_assertClassBrand(A,this,M).call(this),this.thickness||(this.thickness=r._defaultThickness),this.color||(this.color=r._defaultColor||o.AnnotationEditor._defaultLineColor),null!==(n=this.opacity)&&void 0!==n||(this.opacity=r._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(y,this,null),_assertClassBrand(A,this,P).call(this),this.ctx.beginPath(),this.ctx.moveTo(e,t),_classPrivateFieldSet(C,this,(()=>{_classPrivateFieldGet(C,this)&&(_classPrivateFieldGet(y,this)&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):_assertClassBrand(A,this,I).call(this),this.ctx.lineTo(..._classPrivateFieldGet(y,this)),_classPrivateFieldSet(y,this,null),this.ctx.stroke()),window.requestAnimationFrame(_classPrivateFieldGet(C,this)))})),window.requestAnimationFrame(_classPrivateFieldGet(C,this))}function F(e,t){const[n,r]=this.currentPath.at(-1);e===n&&t===r||(this.currentPath.push([e,t]),_classPrivateFieldSet(y,this,[e,t]))}function N(e,t){this.ctx.closePath(),_classPrivateFieldSet(C,this,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);const[n,i]=this.currentPath.at(-1);let o;if(e===n&&t===i||this.currentPath.push([e,t]),1!==this.currentPath.length)o=(0,a.fitCurve)(this.currentPath,30,null);else{const n=[e,t];o=[[n,n.slice(),n.slice(),n]]}const s=U.call(r,o);this.currentPath.length=0,this.parent.addCommands({cmd:()=>{this.paths.push(o),this.bezierPath2D.push(s),this.rebuild()},undo:()=>{this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_assertClassBrand(A,this,O).call(this),_assertClassBrand(A,this,j).call(this)),_assertClassBrand(A,this,G).call(this))},mustExec:!0})}function I(){if(this.isEmpty())return void _assertClassBrand(A,this,B).call(this);_assertClassBrand(A,this,P).call(this);const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),_assertClassBrand(A,this,B).call(this);for(const n of this.bezierPath2D)t.stroke(n)}function R(e){_assertClassBrand(A,this,N).call(this,e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",_classPrivateFieldGet(h,this)),this.canvas.removeEventListener("pointermove",_classPrivateFieldGet(p,this)),this.parent.addToAnnotationStorage(this)}function O(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",r._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function j(){_classPrivateFieldSet(b,this,new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(b,this).observe(this.div)}function M(){if(!_classPrivateFieldGet(v,this))return;const[e,t]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_assertClassBrand(A,this,B).call(this)}function L(e,t){const n=_assertClassBrand(A,this,q).call(this),r=(e-n)/_classPrivateFieldGet(d,this),i=(t-n)/_classPrivateFieldGet(u,this);this.scaleFactor=Math.min(r,i)}function B(){const e=_assertClassBrand(A,this,q).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function U(e){const t=new Path2D;for(let n=0,r=e.length;n<r;n++){const[r,i,o,a]=e[n];0===n&&t.moveTo(...r),t.bezierCurveTo(i[0],i[1],o[0],o[1],a[0],a[1])}return t}function V(e,t,n,r){const i=[],o=this.thickness/2;let a,s;for(const l of this.paths){a=[],s=[];for(let i=0,c=l.length;i<c;i++){const[c,u,d,p]=l[i],h=e*(c[0]+t)+o,f=r-e*(c[1]+n)-o,m=e*(u[0]+t)+o,g=r-e*(u[1]+n)-o,v=e*(d[0]+t)+o,y=r-e*(d[1]+n)-o,b=e*(p[0]+t)+o,w=r-e*(p[1]+n)-o;0===i&&(a.push(h,f),s.push(h,f)),a.push(m,g,v,y,b,w),_assertClassBrand(A,this,H).call(this,h,f,m,g,v,y,b,w,4,s)}i.push({bezier:a,points:s})}return i}function H(e,t,n,r,i,o,a,s,l,c){if(_assertClassBrand(A,this,z).call(this,e,t,n,r,i,o,a,s))c.push(a,s);else{for(let u=1;u<l-1;u++){const d=u/l,p=1-d;let h=d*e+p*n,f=d*t+p*r,m=d*n+p*i,g=d*r+p*o;h=d*h+p*m,f=d*f+p*g,m=d*m+p*(d*i+p*a),g=d*g+p*(d*o+p*s),h=d*h+p*m,f=d*f+p*g,c.push(h,f)}c.push(a,s)}}function z(e,t,n,r,i,o,a,s){const l=(3*n-2*e-a)**2,c=(3*r-2*t-s)**2,u=(3*i-e-2*a)**2,d=(3*o-t-2*s)**2;return Math.max(l,u)+Math.max(c,d)<=10}function W(){let e=1/0,t=-1/0,n=1/0,r=-1/0;for(const o of this.paths)for(const[a,s,l,c]of o){const o=i.Util.bezierBoundingBox(...a,...s,...l,...c);e=Math.min(e,o[0]),n=Math.min(n,o[1]),t=Math.max(t,o[2]),r=Math.max(r,o[3])}return[e,n,t,r]}function q(){return _classPrivateFieldGet(g,this)?Math.ceil(this.thickness*this.parent.scaleFactor):0}function G(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!_classPrivateFieldGet(g,this))return void _assertClassBrand(A,this,I).call(this);const t=_assertClassBrand(A,this,W).call(this),n=_assertClassBrand(A,this,q).call(this);_classPrivateFieldSet(d,this,Math.max(l,t[2]-t[0])),_classPrivateFieldSet(u,this,Math.max(l,t[3]-t[1]));const r=Math.ceil(n+_classPrivateFieldGet(d,this)*this.scaleFactor),i=Math.ceil(n+_classPrivateFieldGet(u,this)*this.scaleFactor),[o,a]=this.parent.viewportBaseDimensions;this.width=r/o,this.height=i/a,_classPrivateFieldSet(c,this,r/i),_assertClassBrand(A,this,Y).call(this);const s=this.translationX,p=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_assertClassBrand(A,this,M).call(this),_assertClassBrand(A,this,I).call(this),_classPrivateFieldSet(w,this,r),_classPrivateFieldSet(x,this,i),this.setDims(r,i);const h=e?n/this.scaleFactor/2:0;this.translate(s-this.translationX-h,p-this.translationY-h)}function Y(){const{style:e}=this.div;_classPrivateFieldGet(c,this)>=1?(e.minHeight="".concat(l,"px"),e.minWidth="".concat(Math.round(_classPrivateFieldGet(c,this)*l),"px")):(e.minWidth="".concat(l,"px"),e.minHeight="".concat(Math.round(l/_classPrivateFieldGet(c,this)),"px"))}r=E,_defineProperty(E,"_defaultColor",null),_defineProperty(E,"_defaultOpacity",1),_defineProperty(E,"_defaultThickness",1),_defineProperty(E,"_l10nPromise",void 0),_defineProperty(E,"_type","ink"),t.InkEditor=E},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const r=n(26);t.fitCurve=r},e=>{function t(e,i,o,a,s){var c,u,d,p,h,f,m,g,v,y,b,w,x;if(2===e.length)return w=l.vectorLen(l.subtract(e[0],e[1]))/3,[c=[e[0],l.addArrays(e[0],l.mulItems(i,w)),l.addArrays(e[1],l.mulItems(o,w)),e[1]]];if(u=function(e){var t,n,r,i=[];return e.forEach(((e,o)=>{t=o?n+l.vectorLen(l.subtract(e,r)):0,i.push(t),n=t,r=e})),i=i.map((e=>e/n))}(e),[c,p,f]=n(e,u,u,i,o,s),0===p||p<a)return[c];if(p<a*a)for(d=u,h=p,m=f,x=0;x<20;x++){if(d=r(c,e,d),[c,p,f]=n(e,u,d,i,o,s),p<a)return[c];if(f===m){let e=p/h;if(e>.9999&&e<1.0001)break}h=p,m=f}return b=[],(g=l.subtract(e[f-1],e[f+1])).every((e=>0===e))&&(g=l.subtract(e[f-1],e[f]),[g[0],g[1]]=[-g[1],g[0]]),v=l.normalize(g),y=l.mulItems(v,-1),b=(b=b.concat(t(e.slice(0,f+1),i,v,a,s))).concat(t(e.slice(f),y,o,a,s))}function n(e,t,n,r,i,s){var u,d,p;return u=function(e,t,n,r){var i,o,a,s,u,d,p,h,f,m,g,v,y,b,w,x,C,A=e[0],E=e[e.length-1];for(i=[A,null,null,E],o=l.zeros_Xx2x2(t.length),y=0,b=t.length;y<b;y++)C=1-(x=t[y]),(a=o[y])[0]=l.mulItems(n,3*x*(C*C)),a[1]=l.mulItems(r,3*C*(x*x));for(s=[[0,0],[0,0]],u=[0,0],y=0,b=e.length;y<b;y++)x=t[y],a=o[y],s[0][0]+=l.dot(a[0],a[0]),s[0][1]+=l.dot(a[0],a[1]),s[1][0]+=l.dot(a[0],a[1]),s[1][1]+=l.dot(a[1],a[1]),w=l.subtract(e[y],c.q([A,A,E,E],x)),u[0]+=l.dot(a[0],w),u[1]+=l.dot(a[1],w);return d=s[0][0]*s[1][1]-s[1][0]*s[0][1],p=s[0][0]*u[1]-s[1][0]*u[0],h=u[0]*s[1][1]-u[1]*s[0][1],f=0===d?0:h/d,m=0===d?0:p/d,v=l.vectorLen(l.subtract(A,E)),f<(g=1e-6*v)||m<g?(i[1]=l.addArrays(A,l.mulItems(n,v/3)),i[2]=l.addArrays(E,l.mulItems(r,v/3))):(i[1]=l.addArrays(A,l.mulItems(n,f)),i[2]=l.addArrays(E,l.mulItems(r,m))),i}(e,n,r,i),[d,p]=function(e,t,n){var r,i,s,u,d,p,h,f;i=0,s=Math.floor(e.length/2);const m=o(t,10);for(d=0,p=e.length;d<p;d++)h=e[d],f=a(0,n[d],m,10),(r=(u=l.subtract(c.q(t,f),h))[0]*u[0]+u[1]*u[1])>i&&(i=r,s=d);return[i,s]}(e,u,t),s&&s({bez:u,points:e,params:t,maxErr:d,maxPoint:p}),[u,d,p]}function r(e,t,n){return n.map(((n,r)=>i(e,t[r],n)))}function i(e,t,n){var r=l.subtract(c.q(e,n),t),i=c.qprime(e,n),o=l.mulMatrix(r,i),a=l.sum(l.squareItems(i))+2*l.mulMatrix(r,c.qprimeprime(e,n));return 0===a?n:n-o/a}var o=function(e,t){for(var n,r=[0],i=e[0],o=0,a=1;a<=t;a++)n=c.q(e,a/t),o+=l.vectorLen(l.subtract(n,i)),r.push(o),i=n;return r=r.map((e=>e/o))};function a(e,t,n,r){if(t<0)return 0;if(t>1)return 1;for(var i,o,a,s,l=1;l<=r;l++)if(t<=n[l]){a=(l-1)/r,o=l/r,s=(t-(i=n[l-1]))/(n[l]-i)*(o-a)+a;break}return s}function s(e,t){return l.normalize(l.subtract(e,t))}class l{static zeros_Xx2x2(e){for(var t=[];e--;)t.push([0,0]);return t}static mulItems(e,t){return e.map((e=>e*t))}static mulMatrix(e,t){return e.reduce(((e,n,r)=>e+n*t[r]),0)}static subtract(e,t){return e.map(((e,n)=>e-t[n]))}static addArrays(e,t){return e.map(((e,n)=>e+t[n]))}static addItems(e,t){return e.map((e=>e+t))}static sum(e){return e.reduce(((e,t)=>e+t))}static dot(e,t){return l.mulMatrix(e,t)}static vectorLen(e){return Math.hypot(...e)}static divItems(e,t){return e.map((e=>e/t))}static squareItems(e){return e.map((e=>e*e))}static normalize(e){return this.divItems(e,this.vectorLen(e))}}class c{static q(e,t){var n=1-t,r=l.mulItems(e[0],n*n*n),i=l.mulItems(e[1],3*n*n*t),o=l.mulItems(e[2],3*n*t*t),a=l.mulItems(e[3],t*t*t);return l.addArrays(l.addArrays(r,i),l.addArrays(o,a))}static qprime(e,t){var n=1-t,r=l.mulItems(l.subtract(e[1],e[0]),3*n*n),i=l.mulItems(l.subtract(e[2],e[1]),6*n*t),o=l.mulItems(l.subtract(e[3],e[2]),3*t*t);return l.addArrays(l.addArrays(r,i),o)}static qprimeprime(e,t){return l.addArrays(l.mulItems(l.addArrays(l.subtract(e[2],l.mulItems(e[1],2)),e[0]),6*(1-t)),l.mulItems(l.addArrays(l.subtract(e[3],l.mulItems(e[2],2)),e[1]),6*t))}}e.exports=function(e,n,r){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((t=>{if(!Array.isArray(t)||t.some((e=>"number"!==typeof e))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),(e=e.filter(((t,n)=>0===n||!t.every(((t,r)=>t===e[n-1][r]))))).length<2)return[];const i=e.length,o=s(e[1],e[0]),a=s(e[i-2],e[i-1]);return t(e,o,a,n,r)},e.exports.fitCubic=t,e.exports.createTangent=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(8),o=n(5),a=n(28),s=n(29);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new h(e);case r.AnnotationType.TEXT:return new f(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new g(e);case"Btn":return e.data.radioButton?new y(e):e.data.checkBox?new v(e):new b(e);case"Ch":return new w(e)}return new m(e);case r.AnnotationType.POPUP:return new x(e);case r.AnnotationType.FREETEXT:return new A(e);case r.AnnotationType.LINE:return new E(e);case r.AnnotationType.SQUARE:return new _(e);case r.AnnotationType.CIRCLE:return new T(e);case r.AnnotationType.POLYLINE:return new S(e);case r.AnnotationType.CARET:return new P(e);case r.AnnotationType.INK:return new D(e);case r.AnnotationType.POLYGON:return new k(e);case r.AnnotationType.HIGHLIGHT:return new F(e);case r.AnnotationType.UNDERLINE:return new N(e);case r.AnnotationType.SQUIGGLY:return new I(e);case r.AnnotationType.STRIKEOUT:return new R(e);case r.AnnotationType.STAMP:return new O(e);case r.AnnotationType.FILEATTACHMENT:return new j(e);default:return new p(e)}}}class p{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),r&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.data,n=this.page,i=this.viewport,o=document.createElement("section"),{width:a,height:s}=u(t.rect),[l,c,d,p]=i.viewBox,h=d-l,f=p-c;o.setAttribute("data-annotation-id",t.id);const m=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){o.style.borderWidth="".concat(t.borderStyle.width,"px");const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t="calc(".concat(e,"px * var(--scale-factor)) / calc(").concat(n,"px * var(--scale-factor))");o.style.borderRadius=t}else if(this instanceof y){const e="calc(".concat(a,"px * var(--scale-factor)) / calc(").concat(s,"px * var(--scale-factor))");o.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}const i=t.borderColor||null;i?o.style.borderColor=r.Util.makeHexColor(0|i[0],0|i[1],0|i[2]):o.style.borderWidth=0}o.style.left="".concat(100*(m[0]-l)/h,"%"),o.style.top="".concat(100*(m[1]-c)/f,"%");const{rotation:g}=t;return t.hasOwnCanvas||0===g?(o.style.width="".concat(100*a/h,"%"),o.style.height="".concat(100*s/f,"%")):this.setRotation(g,o),o}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;const[n,r,i,o]=this.viewport.viewBox,a=i-n,s=o-r,{width:l,height:c}=u(this.data.rect);let d,p;e%180===0?(d=100*l/a,p=100*c/s):(d=100*c/a,p=100*l/s),t.style.width="".concat(d,"%"),t.style.height="".concat(p,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e];n.target.style[t]=a.ColorConverters["".concat(r[0],"_HTML")](r.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2===1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{this.container.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const i=e[r]||n[r];i&&i(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,i]of Object.entries(t)){const o=n[r];o&&(o({detail:{[r]:i},target:e}),delete t[r])}}_createQuadrilaterals(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const r of this.data.quadPoints)this.data.rect=[r[2].x,r[2].y,r[1].x,r[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).className="popupTriggerArea",n.append(e));const r=new C({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();r.style.left="100%",n.append(r)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:o,exportValues:a}of i){if(-1===e)continue;if(o===t)continue;const i="string"===typeof a?a:null,s=document.querySelector('[data-element-id="'.concat(o,'"]'));!s||c.has(s)?n.push({id:o,exportValue:i,domElement:s}):(0,r.warn)("_getElementsByName - element not allowed: ".concat(o))}return n}for(const r of document.getElementsByName(e)){const{id:e,exportValue:i}=r;e!==t&&c.has(r)&&n.push({id:e,exportValue:i,domElement:r})}return n}static get platform(){const e="undefined"!==typeof navigator?navigator.platform:"";return(0,r.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class h extends p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const r=0===t?n:n.cloneNode();return e.append(r),e})):(this.container.className="linkAnnotation",r&&this.container.append(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const i=n.get(r);i&&(e[i]=()=>{var e;return null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1})}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:i,include:o}=t,a=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===o&&a.push(n)}else for(const t of Object.values(this._fieldObjects))a.push(...t);const s=this.annotationStorage,l=[];for(const t of a){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;s.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(e,'"]'));n&&(c.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)("_bindResetFormAction - element not allowed: ".concat(e)))}var u;return this.enableScripting&&(null===(u=this.linkService.eventBus)||void 0===u||u.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}})),!1}}}class f extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class m extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=p.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r){t.includes("mouse")?e.addEventListener(t,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})}))}_setEventListeners(e,t,n){for(const[i,o]of t){var r;("Action"===o||null!==(r=this.data.actions)&&void 0!==r&&r[o])&&this._setEventListener(e,i,o,n)}}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style;let a;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]),t=e/(Math.round(e/(r.LINE_FACTOR*i))||1);a=Math.min(i,Math.round(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]);a=Math.min(i,Math.round(e/r.LINE_FACTOR))}o.fontSize="calc(".concat(a,"px * var(--scale-factor))"),o.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class g extends m{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const i=this.annotationStorage;for(const o of this._getElementsByName(e.name,e.id))o.domElement&&(o.domElement[t]=n),i.setValue(o.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const i=e.getValue(t,{value:this.data.fieldValue});let o=i.formattedValue||i.value||"";const a=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;a&&o.length>a&&(o=o.slice(0,a));const s={userValue:o,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",o),this.data.doNotScroll&&(n.style.overflowX="hidden")),c.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value")})),n.addEventListener("resetform",(e=>{var t;const r=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";n.value=s.userValue=r,s.formattedValue=null}));let u=e=>{const{formattedValue:t}=s;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var r;n.addEventListener("focus",(e=>{s.userValue&&(e.target.value=s.userValue),s.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const r={value(n){var r;s.userValue=null!==(r=n.detail.value)&&void 0!==r?r:"",e.setValue(t,{value:s.userValue.toString()}),n.target.value=s.userValue},formattedValue(n){const{formattedValue:r}=n.detail;s.formattedValue=r,null!==r&&void 0!==r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{var r;const{charLimit:i}=n.detail,{target:o}=n;if(0===i)return void o.removeAttribute("maxLength");o.setAttribute("maxLength",i);let a=s.userValue;!a||a.length<=i||(a=a.slice(0,i),o.value=s.userValue=a,e.setValue(t,{value:a}),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{var n;let r=-1;if("Escape"===e.key?r=0:"Enter"===e.key?r=2:"Tab"===e.key&&(r=3),-1===r)return;const{value:i}=e.target;s.valueOnFocus!==i&&(s.userValue=i,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const i=u;u=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;var r;s.userValue=n,this._mouseState.isDown&&s.valueOnFocus!==n&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),i(e)})),null!==(r=this.data.actions)&&void 0!==r&&r.Keystroke&&n.addEventListener("beforeinput",(e=>{var n;const{data:r,target:i}=e,{value:o,selectionStart:a,selectionEnd:s}=i;let l=a,c=s;switch(e.inputType){case"deleteWordBackward":{const e=o.substring(0,a).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=o.substring(a).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":a===s&&(l-=1);break;case"deleteContentForward":a===s&&(c+=1)}e.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:r||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(u&&n.addEventListener("blur",u),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(e,"px * var(--scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class v extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.className="buttonWidgetAnnotation checkBox";const i=document.createElement("input");return c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=l,i.addEventListener("change",(r=>{const{name:i,checked:o}=r.target;for(const a of this._getElementsByName(i,n)){const n=o&&a.exportValue===t.exportValue;a.domElement&&(a.domElement.checked=n),e.setValue(a.id,{value:n})}e.setValue(n,{value:o})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class y extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const i=document.createElement("input");if(c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.tabIndex=l,i.addEventListener("change",(t=>{const{name:r,checked:i}=t.target;for(const o of this._getElementsByName(r,n))e.setValue(o.id,{value:!1});e.setValue(n,{value:i})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{const i={value:t=>{const i=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=i&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class b extends h{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class w extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");c.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=l;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of r.options)n.selected=n.value===t}));for(const l of this.data.options){const e=document.createElement("option");e.textContent=l.displayValue,e.value=l.exportValue,n.value.includes(l.exportValue)&&(e.setAttribute("selected",!0),i=!1),r.append(e)}let o=null;if(i){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),o=()=>{e.remove(),r.removeEventListener("input",o),o=null},r.addEventListener("input",o)}const a=(e,t)=>{const n=t?"value":"textContent",r=e.target.options;return e.target.multiple?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[n])):-1===r.selectedIndex?null:r[r.selectedIndex][n]},s=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const i={value(n){var i;null===(i=o)||void 0===i||i();const s=n.detail.value,l=new Set(Array.isArray(s)?s:[s]);for(const e of r.options)e.selected=l.has(e.value);e.setValue(t,{value:a(n,!0)})},multipleSelection(e){r.multiple=!0},remove(n){const i=r.options,o=n.detail.remove;i[o].selected=!1,r.remove(o),i.length>0&&-1===Array.prototype.findIndex.call(i,(e=>e.selected))&&(i[0].selected=!0),e.setValue(t,{value:a(n,!0),items:s(n)})},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:i,displayValue:o,exportValue:l}=n.detail.insert,c=r.children[i],u=document.createElement("option");u.textContent=o,u.value=l,c?c.before(u):r.append(u),e.setValue(t,{value:a(n,!0),items:s(n)})},items(n){const{items:i}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of i){const{displayValue:t,exportValue:n}=e,i=document.createElement("option");i.textContent=t,i.value=n,r.append(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:a(n,!0),items:s(n)})},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:a(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,n)})),r.addEventListener("input",(n=>{var r;const i=a(n,!0),o=a(n,!1);e.setValue(t,{value:i}),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,changeEx:i,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(n){e.setValue(t,{value:a(n,!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class x extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new C({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),i=this.page,o=r.Util.normalizeRect([this.data.parentRect[0],i.view[3]-this.data.parentRect[1]+i.view[1],this.data.parentRect[2],i.view[3]-this.data.parentRect[3]+i.view[1]]),a=o[0]+this.data.parentRect[2]-this.data.parentRect[0],s=o[1],[l,c,u,d]=this.viewport.viewBox,p=u-l,h=d-c;return this.container.style.left="".concat(100*(a-l)/p,"%"),this.container.style.top="".concat(100*(s-c)/h,"%"),this.container.append(n.render()),this.container}}class C{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){var e,t;const n=document.createElement("div");n.className="popupWrapper",this.hideElement=this.hideWrapper?n:this.container,this.hideElement.hidden=!0;const o=document.createElement("div");o.className="popup";const a=this.color;if(a){const e=.7*(255-a[0])+a[0],t=.7*(255-a[1])+a[1],n=.7*(255-a[2])+a[2];o.style.backgroundColor=r.Util.makeHexColor(0|e,0|t,0|n)}const l=document.createElement("h1");l.dir=this.titleObj.dir,l.textContent=this.titleObj.str,o.append(l);const c=i.PDFDateString.toDateObject(this.modificationDate);if(c){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:c.toLocaleDateString(),time:c.toLocaleTimeString()}),o.append(e)}if(null===(e=this.richText)||void 0===e||!e.str||null!==(t=this.contentsObj)&&void 0!==t&&t.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);o.append(e)}else s.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:o}),o.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const r of this.trigger)r.addEventListener("click",this._toggle.bind(this)),r.addEventListener("mouseover",this._show.bind(this,!1)),r.addEventListener("mouseout",this._hide.bind(this,!1));return o.addEventListener("click",this._hide.bind(this,!0)),n.append(o),n}_formatContents(e){let{str:t,dir:n}=e;const r=document.createElement("p");r.className="popupContent",r.dir=n;const i=t.split(/(?:\r\n?|\n)/);for(let o=0,a=i.length;o<a;++o){const e=i[o];r.append(document.createTextNode(e)),o<a-1&&r.append(document.createElement("br"))}return r}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class A extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.textContent=e.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class E extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class _ extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class T extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class S extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);let i=[];for(const a of e.vertices){const t=a.x-e.rect[0],n=e.rect[3]-a.y;i.push(t+","+n)}i=i.join(" ");const o=this.svgFactory.createElement(this.svgElementName);return o.setAttribute("points",i),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class k extends S{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class P extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class D extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);for(const i of e.inkLists){let t=[];for(const r of i){const n=r.x-e.rect[0],i=e.rect[3]-r.y;t.push("".concat(n,",").concat(i))}t=t.join(" ");const n=this.svgFactory.createElement(this.svgElementName);n.setAttribute("points",t),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),this._createPopup(n,e),r.append(n)}return this.container.append(r),this.container}}class F extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class N extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class I extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class R extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class O extends p{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class j extends p{constructor(e){var t;super(e,{isRenderable:!0});const{filename:n,content:r}=this.data.file;this.filename=(0,i.getFilenameFromUrl)(n),this.content=r,null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("fileattachmentannotation",{source:this,filename:n,content:r})}render(){var e,t;this.container.className="fileAttachmentAnnotation";const n=document.createElement("div");return n.className="popupTriggerArea",n.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(null!==(e=this.data.titleObj)&&void 0!==e&&e.str||null!==(t=this.data.contentsObj)&&void 0!==t&&t.str||this.data.richText)&&this._createPopup(n,this.data),this.container.append(n),this.container}_download(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}}class M{static render(e){const{annotations:t,div:n,viewport:a,accessibilityManager:s}=e;_assertClassBrand(M,this,B).call(this,n,a);let l=0;for(const c of t){if(c.annotationType!==r.AnnotationType.POPUP){const{width:e,height:t}=u(c.rect);if(e<=0||t<=0)continue}const t=d.create({data:c,layer:n,page:e.page,viewport:a,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,mouseState:e.mouseState||{isDown:!1}});if(t.isRenderable){const e=t.render();if(c.hidden&&(e.style.visibility="hidden"),Array.isArray(e))for(const t of e)t.style.zIndex=l++,L.call(M,t,c.id,n,s);else e.style.zIndex=l++,t instanceof x?n.prepend(e):L.call(M,e,c.id,n,s)}}_assertClassBrand(M,this,U).call(this,n,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:t,div:n,viewport:r}=e;_assertClassBrand(M,this,B).call(this,n,r),_assertClassBrand(M,this,U).call(this,n,t),n.hidden=!1}}function L(e,t,n,r){const o=e.firstChild||e;o.id="".concat(i.AnnotationPrefix).concat(t),n.append(e),null===r||void 0===r||r.moveElementInDOM(n,e,o,!1)}function B(e,t){let{width:n,height:r,rotation:i}=t;const{style:o}=e,a=i%180!==0,s=Math.floor(n)+"px",l=Math.floor(r)+"px";o.width=a?l:s,o.height=a?s:l,e.setAttribute("data-main-rotation",i)}function U(e,t){if(t){for(const[n,r]of t){const t=e.querySelector('[data-annotation-id="'.concat(n,'"]'));if(!t)continue;const{firstChild:i}=t;i?"CANVAS"===i.nodeName?i.replaceWith(r):i.before(r):t.append(r)}t.clear()}}t.AnnotationLayer=M},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,r,i]=e;return["G",1-Math.min(1,.3*t+.59*r+.11*n+i)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_HTML(e){let[t]=e;const r=n(t);return"#".concat(r).concat(r).concat(r)}static RGB_G(e){let[t,n,r]=e;return["G",.3*t+.59*n+.11*r]}static RGB_HTML(e){let[t,r,i]=e;const o=n(t),a=n(r),s=n(i);return"#".concat(o).concat(a).concat(s)}static T_HTML(){return"#00000000"}static CMYK_RGB(e){let[t,n,r,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,r+i),1-Math.min(1,n+i)]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,r]=e;const i=1-t,o=1-n,a=1-r;return["CMYK",i,o,a,Math.min(i,o,a)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(20);t.XfaLayer=class{static setupStorage(e,t,n,r,i){const o=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==o.value&&(e.textContent=o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(o.value===n.attributes.xfaOn?e.setAttribute("checked",!0):o.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==o.value&&e.setAttribute("value",o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==o.value)for(const e of n.children)e.attributes.value===o.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,i=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:i})}))}}static setAttributes(e){let{html:t,element:n,storage:r=null,intent:i,linkService:o}=e;const{attributes:a}=n,s=t instanceof HTMLAnchorElement;"radio"===a.type&&(a.name="".concat(a.name,"-").concat(i));for(const[l,c]of Object.entries(a))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&o.addLinkAttributes(t,a.href,a.newWindow),r&&a.dataId&&this.setupStorage(t,a.dataId,n,r)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,o=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:o,linkService:n});const s=[[i,-1,a]],l=e.div;if(l.append(a),e.viewport){const t="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=t}"richText"!==o&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){var u;const[e,i,a]=s.at(-1);if(i+1===e.children.length){s.pop();continue}const l=e.children[++s.at(-1)[1]];if(null===l)continue;const{name:d}=l;if("#text"===d){const e=document.createTextNode(l.value);c.push(e),a.append(e);continue}let p;if(p=null!==l&&void 0!==l&&null!==(u=l.attributes)&&void 0!==u&&u.xmlns?document.createElementNS(l.attributes.xmlns,d):document.createElement(d),a.append(p),l.attributes&&this.setAttributes({html:p,element:l,storage:t,intent:o,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,p]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(d)&&c.push(e),p.append(e)}}for(const r of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))r.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){const t=new f({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var r=n(1),i=n(8);const o=30,a=.8,s=new Map,l=/^\s+$/g;function c(e,t,n,i){const c=document.createElement("span"),u=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(c);const d=r.Util.transform(e._viewport.transform,t.transform);let p=Math.atan2(d[1],d[0]);const h=n[t.fontName];h.vertical&&(p+=Math.PI/2);const f=Math.hypot(d[2],d[3]),m=f*function(e,t){const n=s.get(e);if(n)return n;t.save(),t.font="".concat(o,"px ").concat(e);const r=t.measureText("");let i=r.fontBoundingBoxAscent,l=Math.abs(r.fontBoundingBoxDescent);if(i){t.restore();const n=i/(i+l);return s.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,o,o),t.strokeText("g",0,0);let c=t.getImageData(0,0,o,o).data;l=0;for(let a=c.length-1-3;a>=0;a-=4)if(c[a]>0){l=Math.ceil(a/4/o);break}t.clearRect(0,0,o,o),t.strokeText("A",0,o),c=t.getImageData(0,0,o,o).data,i=0;for(let a=0,s=c.length;a<s;a+=4)if(c[a]>0){i=o-Math.floor(a/4/o);break}if(t.restore(),i){const t=i/(i+l);return s.set(e,t),t}return s.set(e,a),a}(h.fontFamily,i);let g,v;0===p?(g=d[4],v=d[5]-m):(g=d[4]+m*Math.sin(p),v=d[5]-m*Math.cos(p)),c.style.left="".concat(g,"px"),c.style.top="".concat(v,"px"),c.style.fontSize="".concat(f,"px"),c.style.fontFamily=h.fontFamily,u.fontSize=f,c.setAttribute("role","presentation"),c.textContent=t.str,c.dir=t.dir,e._fontInspectorEnabled&&(c.dataset.fontName=t.fontName),0!==p&&(u.angle=p*(180/Math.PI));let y=!1;if(t.str.length>1||e._enhanceTextSelection&&l.test(t.str))y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(y=!0)}if(y&&(h.vertical?u.canvasWidth=t.height*e._viewport.scale:u.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(c,u),e._textContentStream&&e._layoutText(c),e._enhanceTextSelection&&u.hasText){let n=1,i=0;0!==p&&(n=Math.cos(p),i=Math.sin(p));const o=(h.vertical?t.height:t.width)*e._viewport.scale,a=f;let s,l;0!==p?(s=[n,i,-i,n,g,v],l=r.Util.getAxialAlignedBoundingBox([0,0,o,a],s)):l=[g,v,g+o,v+a],e._bounds.push({left:l[0],top:l[1],right:l[2],bottom:l[3],div:c,size:[o,a],m:s})}}function u(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,r=t.length;if(r>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let i=0;i<r;i++)e._layoutText(t[i]);e._renderingDone=!0,n.resolve()}function d(e,t,n){let r=0;for(let i=0;i<n;i++){const n=e[t++];n>0&&(r=r?Math.min(n,r):n)}return r}function p(e){const t=e._bounds,n=e._viewport,i=function(e,t,n){const r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));h(e,r);const i=new Array(n.length);for(const o of r){const e=o.index;i[e]={left:o.x1New,top:0,right:o.x2New,bottom:0}}n.map((function(t,n){const o=i[n],a=r[n];a.x1=t.top,a.y1=e-o.right,a.x2=t.bottom,a.y2=e-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0})),h(t,r);for(const o of r){const e=o.index;i[e].top=o.x1New,i[e].bottom=o.x2New}return i}(n.width,n.height,t);for(let o=0;o<i.length;o++){const n=t[o].div,a=e._textDivProperties.get(n);if(0===a.angle){a.paddingLeft=t[o].left-i[o].left,a.paddingTop=t[o].top-i[o].top,a.paddingRight=i[o].right-t[o].right,a.paddingBottom=i[o].bottom-t[o].bottom,e._textDivProperties.set(n,a);continue}const s=i[o],l=t[o],c=l.m,u=c[0],p=c[1],h=[[0,0],[0,l.size[1]],[l.size[0],0],l.size],f=new Float64Array(64);for(let e=0,t=h.length;e<t;e++){const t=r.Util.applyTransform(h[e],c);f[e+0]=u&&(s.left-t[0])/u,f[e+4]=p&&(s.top-t[1])/p,f[e+8]=u&&(s.right-t[0])/u,f[e+12]=p&&(s.bottom-t[1])/p,f[e+16]=p&&(s.left-t[0])/-p,f[e+20]=u&&(s.top-t[1])/u,f[e+24]=p&&(s.right-t[0])/-p,f[e+28]=u&&(s.bottom-t[1])/u,f[e+32]=u&&(s.left-t[0])/-u,f[e+36]=p&&(s.top-t[1])/-p,f[e+40]=u&&(s.right-t[0])/-u,f[e+44]=p&&(s.bottom-t[1])/-p,f[e+48]=p&&(s.left-t[0])/p,f[e+52]=u&&(s.top-t[1])/-u,f[e+56]=p&&(s.right-t[0])/p,f[e+60]=u&&(s.bottom-t[1])/-u}const m=1+Math.min(Math.abs(u),Math.abs(p));a.paddingLeft=d(f,32,16)/m,a.paddingTop=d(f,48,16)/m,a.paddingRight=d(f,0,16)/m,a.paddingBottom=d(f,16,16)/m,e._textDivProperties.set(n,a)}}function h(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));const n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const r of t){let e=0;for(;e<n.length&&n[e].end<=r.y1;)e++;let t,i,o=n.length-1;for(;o>=0&&n[o].start>=r.y2;)o--;let a,s,l=-1/0;for(a=e;a<=o;a++){let e;t=n[a],i=t.boundary,e=i.x2>r.x1?i.index>r.index?i.x1New:r.x1:void 0===i.x2New?(i.x2+r.x1)/2:i.x2New,e>l&&(l=e)}for(r.x1New=l,a=e;a<=o;a++)t=n[a],i=t.boundary,void 0===i.x2New?i.x2>r.x1?i.index>r.index&&(i.x2New=i.x2):i.x2New=l:i.x2New>l&&(i.x2New=Math.max(l,i.x2));const c=[];let u=null;for(a=e;a<=o;a++){t=n[a],i=t.boundary;const e=i.x2>r.x2?i:r;u===e?c.at(-1).end=t.end:(c.push({start:t.start,end:t.end,boundary:e}),u=e)}for(n[e].start<r.y1&&(c[0].start=r.y1,c.unshift({start:n[e].start,end:r.y1,boundary:n[e].boundary})),r.y2<n[o].end&&(c.at(-1).end=r.y2,c.push({start:r.y2,end:n[o].end,boundary:n[o].boundary})),a=e;a<=o;a++){if(t=n[a],i=t.boundary,void 0!==i.x2New)continue;let r=!1;for(s=e-1;!r&&s>=0&&n[s].start>=i.y1;s--)r=n[s].boundary===i;for(s=o+1;!r&&s<n.length&&n[s].end<=i.y2;s++)r=n[s].boundary===i;for(s=0;!r&&s<c.length;s++)r=c[s].boundary===i;r||(i.x2New=l)}Array.prototype.splice.apply(n,[e,o-e+1,...c])}for(const r of n){const t=r.boundary;void 0===t.x2New&&(t.x2New=Math.max(e,t.x2))}}class f{constructor(e){var t;let{textContent:n,textContentStream:o,container:a,viewport:s,textDivs:l,textContentItemsStr:c,enhanceTextSelection:u}=e;u&&(0,i.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=n,this._textContentStream=o,this._container=a,this._document=a.ownerDocument,this._viewport=s,this._textDivs=l||[],this._textContentItemsStr=c||[],this._enhanceTextSelection=!!u,this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise.finally((()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,r=e.length;n<r;n++)if(void 0!==e[n].str)this._textContentItemsStr.push(e[n].str),c(this,e[n],t,this._layoutTextCtx);else if("beginMarkedContentProps"===e[n].type||"beginMarkedContent"===e[n].type){const t=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[n].id&&this._container.setAttribute("id","".concat(e[n].id)),t.append(this._container)}else"endMarkedContent"===e[n].type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._textDivProperties.get(e);let n="";if(0!==t.canvasWidth&&t.hasText){const{fontFamily:r}=e.style,{fontSize:i}=t;i===this._layoutTextLastFontSize&&r===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i*this._devicePixelRatio,"px ").concat(r),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=r);const{width:o}=this._layoutTextCtx.measureText(e.textContent);if(o>0){const e=this._devicePixelRatio*t.canvasWidth/o;this._enhanceTextSelection&&(t.scale=e),n="scaleX(".concat(e,")")}}if(0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=(0,r.createPromiseCapability)();let n=Object.create(null);const i=this._document.createElement("canvas");if(i.height=i.width=o,this._layoutTextCtx=i.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((r=>{let{value:i,done:o}=r;o?t.resolve():(Object.assign(n,i.styles),this._processItems(i.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{u(this),this._renderTimer=null}),e):u(this)}),this._capability.reject)}expandTextDivs(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(p(this),this._bounds=null);const t=[],n=[];for(let r=0,i=this._textDivs.length;r<i;r++){const i=this._textDivs[r],o=this._textDivProperties.get(i);o.hasText&&(e?(t.length=0,n.length=0,o.originalTransform&&t.push(o.originalTransform),o.paddingTop>0?(n.push("".concat(o.paddingTop,"px")),t.push("translateY(".concat(-o.paddingTop,"px)"))):n.push(0),o.paddingRight>0?n.push("".concat(o.paddingRight/o.scale,"px")):n.push(0),o.paddingBottom>0?n.push("".concat(o.paddingBottom,"px")):n.push(0),o.paddingLeft>0?(n.push("".concat(o.paddingLeft/o.scale,"px")),t.push("translateX(".concat(-o.paddingLeft/o.scale,"px)"))):n.push(0),i.style.padding=n.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=o.originalTransform))}}}t.TextLayerRenderTask=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(8),i=n(1),o=n(3);let a=class{constructor(){(0,i.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=a;{const s={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i="data:".concat(t,";base64,");for(let o=0,a=e.length;o<a;o+=3){const t=255&e[o],n=255&e[o+1],s=255&e[o+2];i+=r[t>>2]+r[(3&t)<<4|n>>4]+r[o+1<a?(15&n)<<2|s>>6:64]+r[o+2<a?63&s:64]}return i},h=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let i=0;i<256;i++){let e=i;for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647;t[i]=e}function n(e,n,r,i){let o=i;const a=n.length;r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a,o+=4,r[o]=255&e.charCodeAt(0),r[o+1]=255&e.charCodeAt(1),r[o+2]=255&e.charCodeAt(2),r[o+3]=255&e.charCodeAt(3),o+=4,r.set(n,o),o+=n.length;const s=function(e,n,r){let i=-1;for(let o=n;o<r;o++){const n=255&(i^e[o]);i=i>>>8^t[n]}return~i}(r,i+4,o);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function r(e){let t=e.length;const n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4);let o=0;i[o++]=120,i[o++]=156;let a=0;for(;t>n;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+n),o),o+=n,a+=n,t-=n;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;const s=function(e,t,n){let r=1,i=0;for(let o=t;o<n;++o)r=(r+(255&e[o]))%65521,i=(i+r)%65521;return i<<16|r}(e,0,e.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function a(t,a,s,l){const c=t.width,u=t.height;let d,h,f;const m=t.data;switch(a){case i.ImageKind.GRAYSCALE_1BPP:h=0,d=1,f=c+7>>3;break;case i.ImageKind.RGB_24BPP:h=2,d=8,f=3*c;break;case i.ImageKind.RGBA_32BPP:h=6,d=8,f=4*c;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+f)*u);let v=0,y=0;for(let e=0;e<u;++e)g[v++]=0,g.set(m.subarray(y,y+f),v),y+=f,v+=f;if(a===i.ImageKind.GRAYSCALE_1BPP&&l){v=0;for(let e=0;e<u;e++){v++;for(let e=0;e<f;e++)g[v++]^=255}}const b=new Uint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),w=function(e){if(!o.isNodeJS)return r(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(71040).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return r(e)}(g),x=e.length+36+b.length+w.length,C=new Uint8Array(x);let A=0;return C.set(e,A),A+=e.length,n("IHDR",b,C,A),A+=12+b.length,n("IDATA",w,C,A),A+=12+w.length,n("IEND",new Uint8Array(0),C,A),p(C,"image/png",s)}return function(e,t,n){return a(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=s.fontWeight,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function m(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function v(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(g(e[0])," ").concat(g(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){const t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(g(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(g(e[4])," ").concat(g(e[5]),")");return"matrix(".concat(g(e[0])," ").concat(g(e[1])," ").concat(g(e[2])," ").concat(g(e[3])," ").concat(g(e[4])," ")+"".concat(g(e[5]),")")}let y=0,b=0,w=0;t.SVGGraphics=a=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new f,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const r in i.OPS)this._operatorIdMapping[i.OPS[r]]=r}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let r=0,o=t.length;r<o;r++)if(t[r]===i.OPS.dependency)for(const e of n[r]){const t=e.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,o,a){const s=[e,t,n,r,o,a];this.transformMatrix=i.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let o=0,a=r.length;o<a;o++){const e=r[o];i.push({fnId:e,fn:t[e],args:n[o]})}return m(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,r=t.args;switch(0|n){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(r);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case i.OPS.setFont:this.setFont(r);break;case i.OPS.showText:case i.OPS.showSpacedText:this.showText(r[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(r[0],r[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case i.OPS.setHScale:this.setHScale(r[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.setTextRise:this.setTextRise(r[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case i.OPS.setLineWidth:this.setLineWidth(r[0]);break;case i.OPS.setLineJoin:this.setLineJoin(r[0]);break;case i.OPS.setLineCap:this.setLineCap(r[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(r);break;case i.OPS.setFillColorN:this.setFillColorN(r);break;case i.OPS.shadingFill:this.shadingFill(r[0]);break;case i.OPS.setDash:this.setDash(r[0],r[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(r[0]);break;case i.OPS.setFlatness:this.setFlatness(r[0]);break;case i.OPS.setGState:this.setGState(r[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.constructPath:this.constructPath(r[0],r[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,i.warn)("Unimplemented operator ".concat(e))}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,o){const a=this.current;a.textMatrix=a.lineMatrix=[e,t,n,r,i,o],a.textMatrixScale=Math.hypot(e,t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(g(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",g(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.append(a.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=i.IDENTITY_MATRIX,e.lineMatrix=i.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(g(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",g(-n.y))}showText(e){const t=this.current,n=t.font,r=t.fontSize;if(0===r)return;const o=t.fontSizeScale,a=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,p=n.vertical,h=p?1:-1,f=n.defaultVMetrics,m=r*t.fontMatrix[0];let y=0;for(const i of e){if(null===i){y+=u*c;continue}if("number"===typeof i){y+=h*i*r/1e3;continue}const e=(i.isSpace?c:0)+a,s=i.fontChar;let l,d,g,v=i.width;if(p){let e;const t=i.vmetric||f;e=i.vmetric?t[1]:.5*v,e=-e*m;const n=t[2]*m;v=t?-t[0]:v,l=e/o,d=(y+n)/o}else l=y/o,d=0;(i.isInFont||n.missingFile)&&(t.xcoords.push(t.x+l),p&&t.ycoords.push(-t.y+d),t.tspan.textContent+=s),g=p?v*m-e*u:v*m+e*u,y+=g}t.tspan.setAttributeNS(null,"x",t.xcoords.map(g).join(" ")),p?t.tspan.setAttributeNS(null,"y",t.ycoords.map(g).join(" ")):t.tspan.setAttributeNS(null,"y",g(-t.y)),p?t.y-=y:t.x+=y*d,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(g(t.fontSize),"px")),t.fontStyle!==s.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==s.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const b=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(b===i.TextRenderingMode.FILL||b===i.TextRenderingMode.FILL_STROKE?(t.fillColor!==s.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),b===i.TextRenderingMode.STROKE||b===i.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let w=t.textMatrix;0!==t.textRise&&(w=w.slice(),w[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(v(w)," scale(").concat(g(d),", -1)")),t.txtElement.setAttributeNS(l,"xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=p(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX;let o="normal";n.black?o="900":n.bold&&(o="bold");const a=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",g(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){var e;const t=this.current;t.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=i.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=i.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,r=i.Util.inverseTransform(this.transformMatrix),o=i.Util.applyTransform([0,0],r),a=i.Util.applyTransform([0,n],r),s=i.Util.applyTransform([t,0],r),l=i.Util.applyTransform([t,n],r),c=Math.min(o[0],a[0],s[0],l[0]),u=Math.min(o[1],a[1],s[1],l[1]),d=Math.max(o[0],a[0],s[0],l[0]),p=Math.max(o[1],a[1],s[1],l[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",c),h.setAttributeNS(null,"y",u),h.setAttributeNS(null,"width",d-c),h.setAttributeNS(null,"height",p-u),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(h)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||i.IDENTITY_MATRIX,[o,a,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading".concat(w++),[h,f,m,g]=i.Util.normalizeRect([...i.Util.applyTransform([o,a],r),...i.Util.applyTransform([s,l],r)]),[v,y]=i.Util.singularValueDecompose2dScale(r),b=c*v,x=u*y,C=this.svgFactory.createElement("svg:pattern");C.setAttributeNS(null,"id",p),C.setAttributeNS(null,"patternUnits","userSpaceOnUse"),C.setAttributeNS(null,"width",b),C.setAttributeNS(null,"height",x),C.setAttributeNS(null,"x","".concat(h)),C.setAttributeNS(null,"y","".concat(f));const A=this.svg,E=this.transformMatrix,_=this.current.fillColor,T=this.current.strokeColor,S=this.svgFactory.create(m-h,g-f);if(this.svg=S,this.transformMatrix=r,2===d){const e=i.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=A,this.transformMatrix=E,this.current.fillColor=_,this.current.strokeColor=T,C.append(S.childNodes[0]),this.defs.append(C),"url(#".concat(p,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading".concat(w++),n=e[3];let r;switch(e[1]){case"axial":const n=e[4],i=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",i[0]),r.setAttributeNS(null,"y2",i[1]);break;case"radial":const o=e[4],a=e[5],s=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",a[0]),r.setAttributeNS(null,"cy",a[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",o[0]),r.setAttributeNS(null,"fy",o[1]),r.setAttributeNS(null,"fr",s);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),"url(#".concat(t,")");case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,o=n.y,a=[],s=0;for(const l of e)switch(0|l){case i.OPS.rectangle:r=t[s++],o=t[s++];const e=r+t[s++],n=o+t[s++];a.push("M",g(r),g(o),"L",g(e),g(o),"L",g(e),g(n),"L",g(r),g(n),"Z");break;case i.OPS.moveTo:r=t[s++],o=t[s++],a.push("M",g(r),g(o));break;case i.OPS.lineTo:r=t[s++],o=t[s++],a.push("L",g(r),g(o));break;case i.OPS.curveTo:r=t[s+4],o=t[s+5],a.push("C",g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3]),g(r),g(o)),s+=6;break;case i.OPS.curveTo2:a.push("C",g(r),g(o),g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3])),r=t[s+2],o=t[s+3],s+=4;break;case i.OPS.curveTo3:r=t[s+2],o=t[s+3],a.push("C",g(t[s]),g(t[s+1]),g(r),g(o),g(r),g(o)),s+=4;break;case i.OPS.closePath:a.push("Z")}a=a.join(" "),n.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,o)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath".concat(y++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",v(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=h(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",g(n)),o.setAttributeNS(null,"height",g(r)),this.current.element=o,this.clip("nonzero");const a=this.svgFactory.createElement("svg:image");a.setAttributeNS(c,"xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",g(-r)),a.setAttributeNS(null,"width",g(n)+"px"),a.setAttributeNS(null,"height",g(r)+"px"),a.setAttributeNS(null,"transform","scale(".concat(g(1/n)," ").concat(g(-1/r),")")),t?t.append(a):this._ensureTransformGroup().append(a)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId="mask".concat(b++);const o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);const a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(n)),a.setAttributeNS(null,"height",g(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.append(o),this._ensureTransformGroup().append(a),this.paintInlineImageXObject(e,o)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",g(e)),r.setAttributeNS(null,"height",g(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",v(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",v(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),i=n(33);const o=__webpack_require__(82590),a=__webpack_require__(85515),s=__webpack_require__(82474),l=__webpack_require__(39630),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new h(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function p(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class h extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:o,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=a.request(p(this._url,e.httpHeaders),t):this._request=s.request(p(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const r in e.httpHeaders){const t=e.httpHeaders[r];"undefined"!==typeof t&&(this._httpHeaders[r]=t)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(n-1);const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=a.request(p(this._url,this._httpHeaders),i):this._request=s.request(p(this._url,this._httpHeaders),i),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class m extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),o.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(o.createReadStream(t)),this._headersCapability.resolve()}))}}class g extends d{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(o.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(n){}if((0,o.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:r,disableRange:i}=e;const o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*r||i||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),i=n(34),o=n(8)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),a(e)}if(n=function(e){const t=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,i]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,i]}const o=[];for(let i=0;i<t.length&&i in t;++i){let[e,n]=t[i];n=s(n),e&&(n=unescape(n),0===i&&(n=l(n))),o.push(n)}return o.join("")}(e),n)return a(c(n));if(n=i("filename","i").exec(e),n){n=n[1];let e=s(n);return e=c(e),a(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function o(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(e,{fatal:!0}),o=(0,r.stringToBytes)(n);n=i.decode(o),t=!1}catch(i){}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=o("utf-8",e),t&&(e=o("iso-8859-1",e))),e}function s(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'");return-1===t?e:o(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return o(t,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch(i){}return o(t,r)}))}return""};var r=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),i=n(33);class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const i in n)r[i]=n[i];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const e=this.httpHeaders[i];"undefined"!==typeof e&&t.setRequestHeader(i,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){var n;const r=this.pendingRequests[e];r&&(null===(n=r.onProgress)||void 0===n||n.call(r,t))}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;var o;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(null===(o=n.onError)||void 0===o||o.call(n,i.status));const a=i.status||200;var s;if((200!==a||206!==n.expectedStatus)&&a!==n.expectedStatus)return void(null===(s=n.onError)||void 0===s||s.call(n,i.status));const l=function(e){const t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(206===a){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else if(l)n.onDone({begin:0,chunk:l});else{var c;null===(c=n.onError)||void 0===c||c.call(n,i.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new o(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new a(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class a{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),i=n(33);function o(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function a(e){const t=new Headers;for(const n in e){const r=e[n];"undefined"!==typeof r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);const n=t.url;fetch(n,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:o,suggestedLength:a}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=a(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(n-1));const l=s.url;fetch(l,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return i.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return o.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return s.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return d.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),r=__w_pdfjs_require__(8),i=__w_pdfjs_require__(22),o=__w_pdfjs_require__(7),a=__w_pdfjs_require__(27),s=__w_pdfjs_require__(15),l=__w_pdfjs_require__(3),c=__w_pdfjs_require__(30),u=__w_pdfjs_require__(31),d=__w_pdfjs_require__(29);if(l.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(32);(0,n.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(35),{PDFFetchStream:t}=__w_pdfjs_require__(36);(0,n.setPDFNetworkStreamFactory)((n=>(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n)))}})(),__nested_webpack_exports__})(),module.exports=factory()},73384:(e,t,n)=>{"use strict";var r=n(89711);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new 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 s.name="Invariant Violation",s}}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};return n.PropTypes=n,n}},5982:(e,t,n)=>{e.exports=n(73384)()},89711:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6342:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(a,"$2")})))}function d(e){return e.match(n)||[""]}function p(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){return!p(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(h(r)&&(r='"'+r+'"'),o=!(a=p(r))&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},79529:(e,t,n)=>{"use strict";const r=n(86110),i=n(99332),o=n(1822),a=n(31945),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=f(e[n],t);else r[i]=f(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const a of Object.keys(e))n(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=p(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l="?".concat(l));let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(r).concat(l).concat(u)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},79527:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}e.exports=function(e,n,r){var i=r&&r.stringify||t;if("object"===typeof e&&null!==e){var o=n.length+1;if(1===o)return e;var a=new Array(o);a[0]=i(e);for(var s=1;s<o;s++)a[s]=i(n[s]);return a.join(" ")}if("string"!==typeof e)return e;var l=n.length;if(0===l)return e;for(var c="",u=0,d=-1,p=e&&e.length||0,h=0;h<p;){if(37===e.charCodeAt(h)&&h+1<p){switch(d=d>-1?d:0,e.charCodeAt(h+1)){case 100:case 102:if(u>=l)break;if(null==n[u])break;d<h&&(c+=e.slice(d,h)),c+=Number(n[u]),d=h+2,h++;break;case 105:if(u>=l)break;if(null==n[u])break;d<h&&(c+=e.slice(d,h)),c+=Math.floor(Number(n[u])),d=h+2,h++;break;case 79:case 111:case 106:if(u>=l)break;if(void 0===n[u])break;d<h&&(c+=e.slice(d,h));var f=typeof n[u];if("string"===f){c+="'"+n[u]+"'",d=h+2,h++;break}if("function"===f){c+=n[u].name||"<anonymous>",d=h+2,h++;break}c+=i(n[u]),d=h+2,h++;break;case 115:if(u>=l)break;d<h&&(c+=e.slice(d,h)),c+=String(n[u]),d=h+2,h++;break;case 37:d<h&&(c+=e.slice(d,h)),c+="%",d=h+2,h++,u--}++u}++h}if(-1===d)return e;d<p&&(c+=e.slice(d));return c}},11226:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(5019)),l=a(n(42318)),c=function(e){function t(){var t=e.apply(this,o([],i(arguments),!1))||this;return t.tickAnimation=function(){t.confetti(t.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,l.default)(.1,.3),y:Math.random()-.2}})),t.confetti(t.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,l.default)(.7,.9),y:Math.random()-.2}}))},t}return r(t,e),t}(s.default);t.default=c},5019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.confetti,n=e.decorateOptions,r=this;this.interval=null,this.shoot=function(){return r.tickAnimation()},this.run=function(e){var t=e.speed,n=e.delay,i=void 0===n?0:n,o=e.duration;r.interval||setTimeout((function(){r.shoot(),r.interval=setInterval(r.shoot,1e3/Math.min(t,1e3)),o&&setTimeout(r.pause,o)}),i)},this.pause=function(){clearInterval(r.interval),r.interval=null},this.stop=function(){r.pause(),r.confetti.reset()},this.confetti=t,this.decorateOptions=n};t.default=n},42318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.random()*(t-e)+e}},79221:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(61462)),c=s(n(71549)),u={resize:!0,useWorker:!1},d={position:"fixed",pointerEvents:"none",width:"100%",height:"100%",top:0,left:0};function p(e,t){return e||t?e:d}t.default=function(e){var t=e.style,n=e.className,i=e.width,o=e.height,a=e.globalOptions,s=e.onInit,d=(0,l.useRef)(null),h=(0,l.useRef)(null);return(0,l.useEffect)((function(){if(d.current)return h.current=c.default.create(d.current,r(r({},u),a)),null===s||void 0===s||s({confetti:h.current}),function(){var e;null===(e=h.current)||void 0===e||e.reset()}}),[]),l.default.createElement("canvas",{ref:d,style:p(t,n),className:n,width:i,height:o})}},52027:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(61462)),a=i(n(28374)),s=i(n(11226));t.default=function(e){return o.default.createElement(a.default,r({Conductor:s.default},e))}},28374:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},l=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(61462)),d=c(n(79221)),p=function(e){return e};t.default=function(e){var t=e.decorateOptions,n=void 0===t?p:t,i=e.Conductor,o=e.autorun,a=e.onInit,c=s(e,["decorateOptions","Conductor","autorun","onInit"]),h=l((0,u.useState)(),2),f=h[0],m=h[1],g=(0,u.useCallback)((function(e){var t=e.confetti;m((function(){return t}))}),[]);return(0,u.useEffect)((function(){if(f){var e=new i({confetti:f,decorateOptions:n});return o&&e.run(o),null===a||void 0===a||a({confetti:f,conductor:e}),e.stop}}),[f]),u.default.createElement(d.default,r({onInit:g},c))}},77364:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B,U,V,H,z,W,q,G,Y,K,Q,X,Z,J,$,ee,te,ne,re,ie,oe,ae,se,le,ce,ue){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var pe=de(n),he=de(r),fe=de(ue),me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ve=function(){return ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ve.apply(this,arguments)};function ye(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var be,we=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,r=e.showTime,i=void 0!==r&&r,o=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return pe.default.createElement("div",{className:o,role:"dialog","aria-label":s,"aria-modal":"true"},a)};function xe(){return"undefined"!=typeof window?window:globalThis}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(be||(be={}));var Ce=12,Ae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ee(e){if(null==e)return new Date;var t="string"==typeof e?W.parseISO(e):le.toDate(e);return _e(t)?t:new Date}function _e(e,t){return B.isValid(e)&&!N.isBefore(e,null!=t?t:new Date("1/1/1800"))}function Te(e,t,n){if("en"===n)return w.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?ze(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&He()&&ze(He())&&(r=ze(He())),w.format(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Se(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&Te(e,i,r)||""}function ke(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return G.setHours(Y.setMinutes(X.setSeconds(e,s),o),r)}function Pe(e){return J.startOfDay(e)}function De(e,t,n){var r=ze(t||He());return te.startOfWeek(e,{locale:r,weekStartsOn:n})}function Fe(e){return $.startOfMonth(e)}function Ne(e){return ne.startOfYear(e)}function Ie(e){return ee.startOfQuarter(e)}function Re(){return J.startOfDay(Ee())}function Oe(e){return g.endOfDay(e)}function je(e,t){return e&&t?L.isSameYear(e,t):!e&&!t}function Me(e,t){return e&&t?j.isSameMonth(e,t):!e&&!t}function Le(e,t){return e&&t?M.isSameQuarter(e,t):!e&&!t}function Be(e,t){return e&&t?O.isSameDay(e,t):!e&&!t}function Ue(e,t){return e&&t?R.isEqual(e,t):!e&&!t}function Ve(e,t,n){var r,i=J.startOfDay(t),o=g.endOfDay(n);try{r=U.isWithinInterval(e,{start:i,end:o})}catch(e){r=!1}return r}function He(){return xe().__localeId__}function ze(e){if("string"==typeof e){var t=xe();return t.__localeData__?t.__localeData__[e]:void 0}return e}function We(e,t){return Te(K.setMonth(Ee(),e),"LLLL",t)}function qe(e,t){return Te(K.setMonth(Ee(),e),"LLL",t)}function Ge(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return tt(e,{minDate:r,maxDate:i})||o&&o.some((function(t){var n;return t instanceof Date?Be(e,t):Be(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||a&&a.some((function(t){var n=t.start,r=t.end;return U.isWithinInterval(e,{start:n,end:r})}))||s&&!s.some((function(t){return Be(e,t)}))||l&&!l.some((function(t){var n=t.start,r=t.end;return U.isWithinInterval(e,{start:n,end:r})}))||c&&!c(Ee(e))||!1}function Ye(e,t){var n=void 0===t?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some((function(t){var n=t.start,r=t.end;return U.isWithinInterval(e,{start:n,end:r})})):r&&r.some((function(t){var n;return t instanceof Date?Be(e,t):Be(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||!1}function Ke(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return tt(e,{minDate:r?$.startOfMonth(r):void 0,maxDate:i?v.endOfMonth(i):void 0})||(null==o?void 0:o.some((function(t){return Me(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return Me(e,t)}))||s&&!s(Ee(e))||!1}function Qe(e,t,n,r){var i=D.getYear(e),o=T.getMonth(e),a=D.getYear(t),s=T.getMonth(t),l=D.getYear(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function Xe(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates;return tt(e,{minDate:r,maxDate:i})||o&&o.some((function(t){return Me(t instanceof Date?t:t.date,e)}))||a&&!a.some((function(t){return Me(t,e)}))||!1}function Ze(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate;return tt(e,{minDate:r,maxDate:i})||(null==o?void 0:o.some((function(t){return Le(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return Le(e,t)}))||s&&!s(Ee(e))||!1}function Je(e,t,n){if(!t||!n)return!1;if(!B.isValid(t)||!B.isValid(n))return!1;var r=D.getYear(t),i=D.getYear(n);return r<=e&&i>=e}function $e(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,a=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return tt(l,{minDate:r?ne.startOfYear(r):void 0,maxDate:i?b.endOfYear(i):void 0})||(null==o?void 0:o.some((function(e){return je(l,e instanceof Date?e:e.date)})))||a&&!a.some((function(e){return je(l,e)}))||s&&!s(Ee(l))||!1}function et(e,t,n,r){var i=D.getYear(e),o=S.getQuarter(e),a=D.getYear(t),s=S.getQuarter(t),l=D.getYear(r);return i===a&&i===l?o<=n&&n<=s:i<a&&(l===i&&o<=n||l===a&&s>=n||l<a&&l>i)}function tt(e,t){var n,r=void 0===t?{}:t,i=r.minDate,o=r.maxDate;return null!==(n=i&&p.differenceInCalendarDays(e,i)<0||o&&p.differenceInCalendarDays(e,o)>0)&&void 0!==n&&n}function nt(e,t){return t.some((function(t){return A.getHours(t)===A.getHours(e)&&_.getMinutes(t)===_.getMinutes(e)&&k.getSeconds(t)===k.getSeconds(e)}))}function rt(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&nt(e,r)||i&&!nt(e,i)||o&&!o(e)||!1}function it(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=Ee();i=G.setHours(i,A.getHours(e)),i=Y.setMinutes(i,_.getMinutes(e)),i=X.setSeconds(i,k.getSeconds(e));var o=Ee();o=G.setHours(o,A.getHours(n)),o=Y.setMinutes(o,_.getMinutes(n)),o=X.setSeconds(o,k.getSeconds(n));var a,s=Ee();s=G.setHours(s,A.getHours(r)),s=Y.setMinutes(s,_.getMinutes(r)),s=X.setSeconds(s,k.getSeconds(r));try{a=!U.isWithinInterval(i,{start:o,end:s})}catch(e){a=!1}return a}function ot(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=ie.subMonths(e,1);return r&&h.differenceInCalendarMonths(r,o)>0||i&&i.every((function(e){return h.differenceInCalendarMonths(e,o)>0}))||!1}function at(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=s.addMonths(e,1);return r&&h.differenceInCalendarMonths(o,r)>0||i&&i.every((function(e){return h.differenceInCalendarMonths(o,e)>0}))||!1}function st(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=se.subYears(e,1);return r&&m.differenceInCalendarYears(r,o)>0||i&&i.every((function(e){return m.differenceInCalendarYears(e,o)>0}))||!1}function lt(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=d.addYears(e,1);return r&&m.differenceInCalendarYears(o,r)>0||i&&i.every((function(e){return m.differenceInCalendarYears(o,e)>0}))||!1}function ct(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return p.differenceInCalendarDays(e,t)>=0}));return H.min(r)}return n?H.min(n):t}function ut(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return p.differenceInCalendarDays(e,t)<=0}));return V.max(r)}return n?V.max(n):t}function dt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var a=e[i];if(I.isDate(a)){var s=Te(a,"MM.dd.yyyy");(p=r.get(s)||[]).includes(t)||(p.push(t),r.set(s,p))}else if("object"==typeof a){var l=null!==(n=Object.keys(a)[0])&&void 0!==n?n:"",c=a[l];if("string"==typeof l&&Array.isArray(c))for(var u=0,d=c.length;u<d;u++){var p,h=c[u];h&&(s=Te(h,"MM.dd.yyyy"),(p=r.get(s)||[]).includes(l)||(p.push(l),r.set(s,p)))}}}return r}function pt(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach((function(e){var r=e.date,i=e.holidayName;if(I.isDate(r)){var o=Te(r,"MM.dd.yyyy"),a=n.get(o)||{className:"",holidayNames:[]};if(!("className"in a)||a.className!==t||(s=a.holidayNames,l=[i],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;a.className=t;var c=a.holidayNames;a.holidayNames=c?ye(ye([],c,!0),[i],!1):[i],n.set(o,a)}}})),n}function ht(e,t,n,r,i){for(var s=i.length,l=[],u=0;u<s;u++){var d=e,p=i[u];p&&(d=o.addHours(d,A.getHours(p)),d=a.addMinutes(d,_.getMinutes(p)),d=c.addSeconds(d,k.getSeconds(p)));var h=a.addMinutes(e,(n+1)*r);F.isAfter(d,t)&&N.isBefore(d,h)&&null!=p&&l.push(p)}return l}function ft(e){return e<10?"0".concat(e):"".concat(e)}function mt(e,t){void 0===t&&(t=Ce);var n=Math.ceil(D.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function gt(e){var t=e.getSeconds(),n=e.getMilliseconds();return le.toDate(e.getTime()-1e3*t-n)}function vt(e){if(!I.isDate(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function yt(e,t){if(!I.isDate(e)||!I.isDate(t))throw new Error("Invalid date received");var n=vt(e),r=vt(t);return N.isBefore(n,r)}function bt(e){return e.key===be.Space}var wt,xt=function(e){function t(t){var r=e.call(this,t)||this;return r.onTimeChange=function(e){var t,n;r.setState({time:e});var i=r.props.date,o=i instanceof Date&&!isNaN(+i)?i:new Date;if(null==e?void 0:e.includes(":")){var a=e.split(":"),s=a[0],l=a[1];o.setHours(Number(s)),o.setMinutes(Number(l))}null===(n=(t=r.props).onChange)||void 0===n||n.call(t,o)},r.renderTimeInput=function(){var e=r.state.time,t=r.props,i=t.date,o=t.timeString,a=t.customTimeInput;return a?n.cloneElement(a,{date:i,value:e,onChange:r.onTimeChange}):pe.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})},r.state={time:r.props.timeString},r}return ge(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return pe.default.createElement("div",{className:"react-datepicker__input-time-container"},pe.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),pe.default.createElement("div",{className:"react-datepicker-time__input-container"},pe.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),Ct=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.dayEl=n.createRef(),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.handleOnKeyDown=function(e){var t,n;e.key===be.Space&&(e.preventDefault(),e.key=be.Enter),null===(n=(t=r.props).handleOnKeyDown)||void 0===n||n.call(t,e)},r.isSameDay=function(e){return Be(r.props.day,e)},r.isKeyboardSelected=function(){var e;if(r.props.disabledKeyboardNavigation)return!1;var t=r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some((function(e){return r.isSameDayOrWeek(e)})):r.isSameDayOrWeek(r.props.selected),n=r.props.preSelection&&r.isDisabled(r.props.preSelection);return!t&&r.isSameDayOrWeek(r.props.preSelection)&&!n},r.isDisabled=function(e){return void 0===e&&(e=r.props.day),Ge(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(){return Ye(r.props.day,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.isStartOfWeek=function(){return Be(r.props.day,De(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameWeek=function(e){return r.props.showWeekPicker&&Be(e,De(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameDayOrWeek=function(e){return r.isSameDay(e)||r.isSameWeek(e)},r.getHighLightedClass=function(){var e=r.props,t=e.day,n=e.highlightDates;if(!n)return!1;var i=Te(t,"MM.dd.yyyy");return n.get(i)},r.getHolidaysClass=function(){var e,t=r.props,n=t.day,i=t.holidays;if(!i)return[void 0];var o=Te(n,"MM.dd.yyyy");return i.has(o)?[null===(e=i.get(o))||void 0===e?void 0:e.className]:[void 0]},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Ve(t,n,i)},r.isInSelectingRange=function(){var e,t=r.props,n=t.day,i=t.selectsStart,o=t.selectsEnd,a=t.selectsRange,s=t.selectsDisabledDaysInRange,l=t.startDate,c=t.endDate,u=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return!(!(i||o||a)||!u||!s&&r.isDisabled())&&(i&&c&&(N.isBefore(u,c)||Ue(u,c))?Ve(n,u,c):(o&&l&&(F.isAfter(u,l)||Ue(u,l))||!(!a||!l||c||!F.isAfter(u,l)&&!Ue(u,l)))&&Ve(n,l,u))},r.isSelectingRangeStart=function(){var e;if(!r.isInSelectingRange())return!1;var t=r.props,n=t.day,i=t.startDate,o=t.selectsStart,a=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return Be(n,o?a:i)},r.isSelectingRangeEnd=function(){var e;if(!r.isInSelectingRange())return!1;var t=r.props,n=t.day,i=t.endDate,o=t.selectsEnd,a=t.selectsRange,s=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return Be(n,o||a?s:i)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Be(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Be(i,t)},r.isWeekend=function(){var e=C.getDay(r.props.day);return 0===e||6===e},r.isAfterMonth=function(){return void 0!==r.props.month&&(r.props.month+1)%12===T.getMonth(r.props.day)},r.isBeforeMonth=function(){return void 0!==r.props.month&&(T.getMonth(r.props.day)+1)%12===r.props.month},r.isCurrentDay=function(){return r.isSameDay(Ee())},r.isSelected=function(){var e;return r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some((function(e){return r.isSameDayOrWeek(e)})):r.isSameDayOrWeek(r.props.selected)},r.getClassNames=function(e){var n,i=r.props.dayClassName?r.props.dayClassName(e):void 0;return t.clsx("react-datepicker__day",i,"react-datepicker__day--"+Te(r.props.day,"ddd",n),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass(),r.getHolidaysClass())},r.getAriaLabel=function(){var e=r.props,t=e.day,n=e.ariaLabelPrefixWhenEnabled,i=void 0===n?"Choose":n,o=e.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=r.isDisabled()||r.isExcluded()?a:i;return"".concat(s," ").concat(Te(t,"PPPP",r.props.locale))},r.getTitle=function(){var e=r.props,t=e.day,n=e.holidays,i=void 0===n?new Map:n,o=e.excludeDates,a=Te(t,"MM.dd.yyyy"),s=[];return i.has(a)&&s.push.apply(s,i.get(a).holidayNames),r.isExcluded()&&s.push(null==o?void 0:o.filter((function(e){return e instanceof Date?Be(e,t):Be(null==e?void 0:e.date,t)})).map((function(e){if(!(e instanceof Date))return null==e?void 0:e.message}))),s.join(", ")},r.getTabIndex=function(){var e=r.props.selected,t=r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(e)&&Be(t,e))?0:-1},r.handleFocusDay=function(){var e;r.shouldFocusDay()&&(null===(e=r.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},r.renderDayContents=function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(x.getDate(r.props.day),r.props.day):x.getDate(r.props.day)},r.render=function(){return pe.default.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.props.usePointerEvent?void 0:r.handleMouseEnter,onPointerEnter:r.props.usePointerEvent?r.handleMouseEnter:void 0,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),""!==r.getTitle()&&pe.default.createElement("span",{className:"overlay"},r.getTitle()))},r}return ge(r,e),r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},r.prototype.isDayActiveElement=function(){var e,t,n;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(n.Component),At=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=n.createRef(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,r;e.key===be.Space&&(e.preventDefault(),e.key=be.Enter),null===(r=(n=t.props).handleOnKeyDown)||void 0===r||r.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Be(t.props.date,t.props.selected)&&Be(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Be(t.props.date,t.props.selected)&&Be(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&Be(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return ge(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},r.prototype.render=function(){var e=this.props,n=e.weekNumber,i=e.ariaLabelPrefix,o=void 0===i?r.defaultProps.ariaLabelPrefix:i,a=e.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&Be(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return pe.default.createElement("div",{ref:this.weekNumberEl,className:t.clsx(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},r}(n.Component),Et=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisabled=function(e){return Ge(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(e,n){t.props.onDayClick&&t.props.onDayClick(e,n)},t.handleDayMouseEnter=function(e){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(e)},t.handleWeekClick=function(e,r,i){for(var o,a,s,l=new Date(e),c=0;c<7;c++){var u=new Date(e);if(u.setDate(u.getDate()+c),!t.isDisabled(u)){l=u;break}}"function"==typeof t.props.onWeekSelect&&t.props.onWeekSelect(l,r,i),t.props.showWeekPicker&&t.handleDayClick(l,i),(null!==(o=t.props.shouldCloseOnSelect)&&void 0!==o?o:n.defaultProps.shouldCloseOnSelect)&&(null===(s=(a=t.props).setOpen)||void 0===s||s.call(a,!1))},t.formatWeekNumber=function(e){return t.props.formatWeekNumber?t.props.formatWeekNumber(e):function(e){return E.getISOWeek(e)}(e)},t.renderDays=function(){var e=t.startOfWeek(),r=[],o=t.formatWeekNumber(e);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,e,o):void 0;r.push(pe.default.createElement(At,ve({key:"W"},n.defaultProps,t.props,{weekNumber:o,date:e,onClick:a})))}return r.concat([0,1,2,3,4,5,6].map((function(r){var o=i.addDays(e,r);return pe.default.createElement(Ct,ve({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,onClick:t.handleDayClick.bind(t,o),onMouseEnter:t.handleDayMouseEnter.bind(t,o)}))})))},t.startOfWeek=function(){return De(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Be(t.startOfWeek(),t.props.selected)&&Be(t.startOfWeek(),t.props.preSelection)},t}return ge(n,e),Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Be(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return pe.default.createElement("div",{className:t.clsx(e)},this.renderDays())},n}(n.Component),_t="two_columns",Tt="three_columns",St="four_columns",kt=((wt={})[_t]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},wt[Tt]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},wt[St]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},wt);function Pt(e,t){return e?St:t?_t:Tt}var Dt=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.MONTH_REFS=ye([],Array(12),!0).map((function(){return n.createRef()})),r.QUARTER_REFS=ye([],Array(4),!0).map((function(){return n.createRef()})),r.isDisabled=function(e){return Ge(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(e){return Ye(e,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.handleDayClick=function(e,t){var n,i;null===(i=(n=r.props).onDayClick)||void 0===i||i.call(n,e,t,r.props.orderInDisplay)},r.handleDayMouseEnter=function(e){var t,n;null===(n=(t=r.props).onDayMouseEnter)||void 0===n||n.call(t,e)},r.handleMouseLeave=function(){var e,t;null===(t=(e=r.props).onMouseLeave)||void 0===t||t.call(e)},r.isRangeStartMonth=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&Me(K.setMonth(n,e),i)},r.isRangeStartQuarter=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&Le(Q.setQuarter(n,e),i)},r.isRangeEndMonth=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&Me(K.setMonth(n,e),o)},r.isRangeEndQuarter=function(e){var t=r.props,n=t.day,i=t.startDate,o=t.endDate;return!(!i||!o)&&Le(Q.setQuarter(n,e),o)},r.isInSelectingRangeMonth=function(e){var t,n=r.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?Qe(u,c,e,i):(a&&l||!(!s||!l||c))&&Qe(l,u,e,i))},r.isSelectingMonthRangeStart=function(e){var t;if(!r.isInSelectingRangeMonth(e))return!1;var n=r.props,i=n.day,o=n.startDate,a=n.selectsStart,s=K.setMonth(i,e),l=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return Me(s,a?l:o)},r.isSelectingMonthRangeEnd=function(e){var t;if(!r.isInSelectingRangeMonth(e))return!1;var n=r.props,i=n.day,o=n.endDate,a=n.selectsEnd,s=n.selectsRange,l=K.setMonth(i,e),c=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return Me(l,a||s?c:o)},r.isInSelectingRangeQuarter=function(e){var t,n=r.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?et(u,c,e,i):(a&&l||!(!s||!l||c))&&et(l,u,e,i))},r.isWeekInMonth=function(e){var t=r.props.day,n=i.addDays(e,6);return Me(e,t)||Me(n,t)},r.isCurrentMonth=function(e,t){return D.getYear(e)===D.getYear(Ee())&&t===T.getMonth(Ee())},r.isCurrentQuarter=function(e,t){return D.getYear(e)===D.getYear(Ee())&&t===S.getQuarter(Ee())},r.isSelectedMonth=function(e,t,n){return T.getMonth(n)===t&&D.getYear(e)===D.getYear(n)},r.isSelectMonthInList=function(e,t,n){return n.some((function(n){return r.isSelectedMonth(e,t,n)}))},r.isSelectedQuarter=function(e,t,n){return S.getQuarter(e)===t&&D.getYear(e)===D.getYear(n)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=0,i=!1,o=De(Fe(r.props.day),r.props.locale,r.props.calendarStartDay),a=r.props.selected?function(e){return r.props.showWeekPicker?De(e,r.props.locale,r.props.calendarStartDay):r.props.selected}(r.props.selected):void 0,s=r.props.preSelection?function(e){return r.props.showWeekPicker?De(e,r.props.locale,r.props.calendarStartDay):r.props.preSelection}(r.props.preSelection):void 0;e.push(pe.default.createElement(Et,ve({},r.props,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,key:n,day:o,month:T.getMonth(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,selected:a,preSelection:s,showWeekNumber:r.props.showWeekNumbers}))),!i;){n++,o=u.addWeeks(o,1);var l=t&&n>=6,c=!t&&!r.isWeekInMonth(o);if(l||c){if(!r.props.peekNextMonth)break;i=!0}}return e},r.onMonthClick=function(e,t){var n=r.isMonthDisabledForLabelDate(t),i=n.isDisabled,o=n.labelDate;i||r.handleDayClick(Fe(o),e)},r.onMonthMouseEnter=function(e){var t=r.isMonthDisabledForLabelDate(e),n=t.isDisabled,i=t.labelDate;n||r.handleDayMouseEnter(Fe(i))},r.handleMonthNavigation=function(e,t){var n,i,o,a;null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,t),null===(a=null===(o=r.MONTH_REFS[e])||void 0===o?void 0:o.current)||void 0===a||a.focus()},r.handleKeyboardNavigation=function(e,t,n){var i,o=r.props,a=o.selected,l=o.preSelection,c=o.setPreSelection,u=o.minDate,d=o.maxDate,p=o.showFourColumnMonthYearPicker,h=o.showTwoColumnMonthYearPicker;if(l){var f=Pt(p,h),m=r.getVerticalOffset(f),g=null===(i=kt[f])||void 0===i?void 0:i.grid,v=function(e,t,n){var r,i,o=t,a=n;switch(e){case be.ArrowRight:o=s.addMonths(t,1),a=11===n?0:n+1;break;case be.ArrowLeft:o=ie.subMonths(t,1),a=0===n?11:n-1;break;case be.ArrowUp:o=ie.subMonths(t,m),a=(null===(r=null==g?void 0:g[0])||void 0===r?void 0:r.includes(n))?n+12-m:n-m;break;case be.ArrowDown:o=s.addMonths(t,m),a=(null===(i=null==g?void 0:g[g.length-1])||void 0===i?void 0:i.includes(n))?n-12+m:n+m}return{newCalculatedDate:o,newCalculatedMonth:a}};if(t!==be.Enter){var y=function(e,t,n){for(var i=e,o=!1,a=0,s=v(i,t,n),l=s.newCalculatedDate,c=s.newCalculatedMonth;!o;){if(a>=40){l=t,c=n;break}var p;u&&l<u&&(i=be.ArrowRight,l=(p=v(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth),d&&l>d&&(i=be.ArrowLeft,l=(p=v(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth),Xe(l,r.props)?(l=(p=v(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth):o=!0,a++}return{newCalculatedDate:l,newCalculatedMonth:c}}(t,l,n),b=y.newCalculatedDate,w=y.newCalculatedMonth;switch(t){case be.ArrowRight:case be.ArrowLeft:case be.ArrowUp:case be.ArrowDown:r.handleMonthNavigation(w,b)}}else r.isMonthDisabled(n)||(r.onMonthClick(e,n),null==c||c(a))}},r.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=kt[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},r.onMonthKeyDown=function(e,t){var n=r.props,i=n.disabledKeyboardNavigation,o=n.handleOnMonthKeyDown,a=e.key;a!==be.Tab&&e.preventDefault(),i||r.handleKeyboardNavigation(e,a,t),o&&o(e)},r.onQuarterClick=function(e,t){var n=Q.setQuarter(r.props.day,t);Ze(n,r.props)||r.handleDayClick(Ie(n),e)},r.onQuarterMouseEnter=function(e){var t=Q.setQuarter(r.props.day,e);Ze(t,r.props)||r.handleDayMouseEnter(Ie(t))},r.handleQuarterNavigation=function(e,t){var n,i,o,a;r.isDisabled(t)||r.isExcluded(t)||(null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,t),null===(a=null===(o=r.QUARTER_REFS[e-1])||void 0===o?void 0:o.current)||void 0===a||a.focus())},r.onQuarterKeyDown=function(e,t){var n,i,o=e.key;if(!r.props.disabledKeyboardNavigation)switch(o){case be.Enter:r.onQuarterClick(e,t),null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,r.props.selected);break;case be.ArrowRight:if(!r.props.preSelection)break;r.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(r.props.preSelection,1));break;case be.ArrowLeft:if(!r.props.preSelection)break;r.handleQuarterNavigation(1===t?4:t-1,oe.subQuarters(r.props.preSelection,1))}},r.isMonthDisabledForLabelDate=function(e){var t,n=r.props,i=n.day,o=n.minDate,a=n.maxDate,s=n.excludeDates,l=n.includeDates,c=K.setMonth(i,e);return{isDisabled:null!==(t=(o||a||s||l)&&Ke(c,r.props))&&void 0!==t&&t,labelDate:c}},r.isMonthDisabled=function(e){return r.isMonthDisabledForLabelDate(e).isDisabled},r.getMonthClassNames=function(e){var n=r.props,i=n.day,o=n.startDate,a=n.endDate,s=n.preSelection,l=n.monthClassName,c=l?l(K.setMonth(i,e)):void 0,u=r.getSelection();return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),c,{"react-datepicker__month-text--disabled":r.isMonthDisabled(e),"react-datepicker__month-text--selected":u?r.isSelectMonthInList(i,e,u):void 0,"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&s&&r.isSelectedMonth(i,e,s)&&!r.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":o&&a?Qe(o,a,e,i):void 0,"react-datepicker__month-text--range-start":r.isRangeStartMonth(e),"react-datepicker__month-text--range-end":r.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":r.isCurrentMonth(i,e)})},r.getTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=T.getMonth(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getQuarterTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=S.getQuarter(r.props.preSelection);return r.props.disabledKeyboardNavigation||e!==t?"-1":"0"},r.getAriaLabel=function(e){var t=r.props,n=t.chooseDayAriaLabelPrefix,i=void 0===n?"Choose":n,o=t.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=t.day,l=t.locale,c=K.setMonth(s,e),u=r.isDisabled(c)||r.isExcluded(c)?a:i;return"".concat(u," ").concat(Te(c,"MMMM yyyy",l))},r.getQuarterClassNames=function(e){var n=r.props,i=n.day,o=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,c=n.maxDate,u=n.excludeDates,d=n.includeDates,p=n.filterDate,h=n.preSelection,f=n.disabledKeyboardNavigation,m=(l||c||u||d||p)&&Ze(Q.setQuarter(i,e),r.props);return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":m,"react-datepicker__quarter-text--selected":s?r.isSelectedQuarter(i,e,s):void 0,"react-datepicker__quarter-text--keyboard-selected":!f&&h&&r.isSelectedQuarter(i,e,h)&&!m,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":o&&a?et(o,a,e,i):void 0,"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(e)})},r.getMonthContent=function(e){var t=r.props,n=t.showFullMonthYearPicker,i=t.renderMonthContent,o=t.locale,a=t.day,s=qe(e,o),l=We(e,o);return i?i(e,s,l,a):n?l:s},r.getQuarterContent=function(e){var t,n=r.props,i=n.renderQuarterContent,o=function(e,t){return Te(Q.setQuarter(Ee(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==i?void 0:i(e,o))&&void 0!==t?t:o},r.renderMonths=function(){var e,t=r.props,n=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,o=t.day,a=t.selected,s=null===(e=kt[Pt(i,n)])||void 0===e?void 0:e.grid;return null==s?void 0:s.map((function(e,t){return pe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map((function(e,t){return pe.default.createElement("div",{ref:r.MONTH_REFS[e],key:t,onClick:function(t){r.onMonthClick(t,e)},onKeyDown:function(t){bt(t)&&(t.preventDefault(),t.key=be.Enter),r.onMonthKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onMonthMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onMonthMouseEnter(e)}:void 0,tabIndex:Number(r.getTabIndex(e)),className:r.getMonthClassNames(e),"aria-disabled":r.isMonthDisabled(e),role:"option","aria-label":r.getAriaLabel(e),"aria-current":r.isCurrentMonth(o,e)?"date":void 0,"aria-selected":a?r.isSelectedMonth(o,e,a):void 0},r.getMonthContent(e))})))}))},r.renderQuarters=function(){var e=r.props,t=e.day,n=e.selected;return pe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,i){return pe.default.createElement("div",{key:i,ref:r.QUARTER_REFS[i],role:"option",onClick:function(t){r.onQuarterClick(t,e)},onKeyDown:function(t){r.onQuarterKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onQuarterMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onQuarterMouseEnter(e)}:void 0,className:r.getQuarterClassNames(e),"aria-selected":n?r.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(r.getQuarterTabIndex(e)),"aria-current":r.isCurrentQuarter(t,e)?"date":void 0},r.getQuarterContent(e))})))},r.getClassNames=function(){var e=r.props,n=e.selectingDate,i=e.selectsStart,o=e.selectsEnd,a=e.showMonthYearPicker,s=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(i||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})},r}return ge(r,e),r.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"Month ":i,a=o?o.trim()+" ":"";return pe.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(a).concat(Te(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},r}(n.Component),Ft=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map((function(e,n){return pe.default.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?pe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return ge(t,e),t.prototype.render=function(){return pe.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(n.Component),Nt=he.default(Ft),It=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map((function(e,t){return pe.default.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return pe.default.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return pe.default.createElement(Nt,ve({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ge(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return qe(e,t.props.locale)}:function(e){return We(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return pe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function Rt(e,t){for(var n=[],r=Fe(e),i=Fe(t);!F.isAfter(r,i);)n.push(Ee(r)),r=s.addMonths(r,1);return n}var Ot=function(e){function n(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map((function(e){var t=P.getTime(e),r=je(n.props.date,e)&&Me(n.props.date,e);return pe.default.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?pe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Te(e,n.props.dateFormat,n.props.locale))}))},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Rt(n.props.minDate,n.props.maxDate)},n}return ge(n,e),n.prototype.render=function(){var e=t.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return pe.default.createElement("div",{className:e},this.renderOptions())},n}(n.Component),jt=he.default(Ot),Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=Fe(t.props.minDate),n=Fe(t.props.maxDate),r=[];!F.isAfter(e,n);){var i=P.getTime(e);r.push(pe.default.createElement("option",{key:i,value:i},Te(e,t.props.dateFormat,t.props.locale))),e=s.addMonths(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:P.getTime(Fe(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=Te(t.props.date,t.props.dateFormat,t.props.locale);return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return pe.default.createElement(jt,ve({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=Ee(e);je(t.props.date,n)&&Me(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ge(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Lt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var e,r,i;n.list&&(n.list.scrollTop=null!==(i=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==i?i:0)}))},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&it(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&rt(e,n.props)||null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,gt(n.props.selected).getTime()===gt(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&it(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&rt(e,n.props)},n.liClasses=function(e){var r,i=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&i.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&i.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*A.getHours(e)+60*_.getMinutes(e)+k.getSeconds(e))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:t.defaultProps.intervals))!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},n.handleOnKeyDown=function(e,t){var r,i;e.key===be.Space&&(e.preventDefault(),e.key=be.Enter),(e.key===be.ArrowUp||e.key===be.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===be.ArrowDown||e.key===be.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===be.Enter&&n.handleClick(t),null===(i=(r=n.props).handleOnKeyDown)||void 0===i||i.call(r,e)},n.renderTimes=function(){for(var e,r=[],i=n.props.format?n.props.format:"p",o=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Ee(),l=Pe(s),c=n.props.injectTimes&&n.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),u=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(s),d=u/o,p=0;p<d;p++){var h=a.addMinutes(l,p*o);if(r.push(h),c){var f=ht(l,h,p,o,c);r=r.concat(f)}}var m=r.reduce((function(e,t){return t.getTime()<=s.getTime()?t:e}),r[0]);return r.map((function(e){return pe.default.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===m&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===m?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},Te(e,i,n.props.locale))}))},n}return ge(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,r=this.state.height;return pe.default.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},pe.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),pe.default.createElement("div",{className:"react-datepicker__time"},pe.default.createElement("div",{className:"react-datepicker__time-box"},pe.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:r?{height:r}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(n.Component),Bt=function(e){function r(r){var i=e.call(this,r)||this;return i.YEAR_REFS=ye([],Array(i.props.yearItemNumber),!0).map((function(){return n.createRef()})),i.isDisabled=function(e){return Ge(e,{minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,includeDates:i.props.includeDates,filterDate:i.props.filterDate})},i.isExcluded=function(e){return Ye(e,{excludeDates:i.props.excludeDates})},i.selectingDate=function(){var e;return null!==(e=i.props.selectingDate)&&void 0!==e?e:i.props.preSelection},i.updateFocusOnPaginate=function(e){window.requestAnimationFrame((function(){var t,n;null===(n=null===(t=i.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()}))},i.handleYearClick=function(e,t){i.props.onDayClick&&i.props.onDayClick(e,t)},i.handleYearNavigation=function(e,t){var n,r,o,a,s=i.props,l=s.date,c=s.yearItemNumber;if(void 0!==l&&void 0!==c){var u=mt(l,c).startPeriod;i.isDisabled(t)||i.isExcluded(t)||(null===(r=(n=i.props).setPreSelection)||void 0===r||r.call(n,t),e-u<0?i.updateFocusOnPaginate(c-(u-e)):e-u>=c?i.updateFocusOnPaginate(Math.abs(c-(e-u))):null===(a=null===(o=i.YEAR_REFS[e-u])||void 0===o?void 0:o.current)||void 0===a||a.focus())}},i.isSameDay=function(e,t){return Be(e,t)},i.isCurrentYear=function(e){return e===D.getYear(Ee())},i.isRangeStart=function(e){return i.props.startDate&&i.props.endDate&&je(Z.setYear(Ee(),e),i.props.startDate)},i.isRangeEnd=function(e){return i.props.startDate&&i.props.endDate&&je(Z.setYear(Ee(),e),i.props.endDate)},i.isInRange=function(e){return Je(e,i.props.startDate,i.props.endDate)},i.isInSelectingRange=function(e){var t=i.props,n=t.selectsStart,r=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||r||o)||!i.selectingDate())&&(n&&s?Je(e,i.selectingDate(),s):(r&&a||!(!o||!a||s))&&Je(e,a,i.selectingDate()))},i.isSelectingRangeStart=function(e){var t;if(!i.isInSelectingRange(e))return!1;var n=i.props,r=n.startDate,o=n.selectsStart;return je(Z.setYear(Ee(),e),o?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},i.isSelectingRangeEnd=function(e){var t;if(!i.isInSelectingRange(e))return!1;var n=i.props,r=n.endDate,o=n.selectsEnd,a=n.selectsRange;return je(Z.setYear(Ee(),e),o||a?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},i.isKeyboardSelected=function(e){if(void 0!==i.props.date&&null!=i.props.selected&&null!=i.props.preSelection){var t=i.props,n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,s=t.filterDate,l=Ne(Z.setYear(i.props.date,e)),c=(n||r||o||a||s)&&$e(e,i.props);return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!Be(l,Ne(i.props.selected))&&Be(l,Ne(i.props.preSelection))&&!c}},i.onYearClick=function(e,t){var n=i.props.date;void 0!==n&&i.handleYearClick(Ne(Z.setYear(n,t)),e)},i.onYearKeyDown=function(e,t){var n,r,o=e.key,a=i.props,s=a.date,l=a.yearItemNumber,c=a.handleOnKeyDown;if(o!==be.Tab&&e.preventDefault(),!i.props.disabledKeyboardNavigation)switch(o){case be.Enter:if(null==i.props.selected)break;i.onYearClick(e,t),null===(r=(n=i.props).setPreSelection)||void 0===r||r.call(n,i.props.selected);break;case be.ArrowRight:if(null==i.props.preSelection)break;i.handleYearNavigation(t+1,d.addYears(i.props.preSelection,1));break;case be.ArrowLeft:if(null==i.props.preSelection)break;i.handleYearNavigation(t-1,se.subYears(i.props.preSelection,1));break;case be.ArrowUp:if(void 0===s||void 0===l||null==i.props.preSelection)break;var u=mt(s,l).startPeriod;if((f=t-(h=3))<u){var p=l%h;t>=u&&t<u+p?h=p:h+=p,f=t-h}i.handleYearNavigation(f,se.subYears(i.props.preSelection,h));break;case be.ArrowDown:if(void 0===s||void 0===l||null==i.props.preSelection)break;var h,f,m=mt(s,l).endPeriod;(f=t+(h=3))>m&&(p=l%h,t<=m&&t>m-p?h=p:h+=p,f=t+h),i.handleYearNavigation(f,d.addYears(i.props.preSelection,h))}c&&c(e)},i.getYearClassNames=function(e){var n=i.props,r=n.date,o=n.minDate,a=n.maxDate,s=n.selected,l=n.excludeDates,c=n.includeDates,u=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),r?null==d?void 0:d(Z.setYear(r,e)):void 0,{"react-datepicker__year-text--selected":s?e===D.getYear(s):void 0,"react-datepicker__year-text--disabled":(o||a||l||c||u)&&$e(e,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(e),"react-datepicker__year-text--range-start":i.isRangeStart(e),"react-datepicker__year-text--range-end":i.isRangeEnd(e),"react-datepicker__year-text--in-range":i.isInRange(e),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(e),"react-datepicker__year-text--today":i.isCurrentYear(e)})},i.getYearTabIndex=function(e){return i.props.disabledKeyboardNavigation||null==i.props.preSelection?"-1":e===D.getYear(i.props.preSelection)?"0":"-1"},i.getYearContainerClassNames=function(){var e=i.props,n=e.selectingDate,r=e.selectsStart,o=e.selectsEnd,a=e.selectsRange;return t.clsx("react-datepicker__year",{"react-datepicker__year--selecting-range":n&&(r||o||a)})},i.getYearContent=function(e){return i.props.renderYearContent?i.props.renderYearContent(e):e},i}return ge(r,e),r.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,o=n.onYearMouseEnter,a=n.onYearMouseLeave;if(void 0===r)return null;for(var s=mt(r,i),l=s.startPeriod,c=s.endPeriod,u=function(n){t.push(pe.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){bt(t)&&(t.preventDefault(),t.key=be.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(e){return o(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return o(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return a(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,p=l;p<=c;p++)u(p);return pe.default.createElement("div",{className:this.getYearContainerClassNames()},pe.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},r}(n.Component);function Ut(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=D.getYear(n)<=a),r&&s&&(s=D.getYear(r)>=a),s&&i.push(a)}return i}var Vt,Ht=function(e){function r(t){var r=e.call(this,t)||this;r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return pe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?pe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?D.getYear(r.props.minDate):null,i=r.props.maxDate?D.getYear(r.props.maxDate):null;return i&&r.state.yearsList.find((function(e){return e===i}))||t.unshift(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=t.yearDropdownItemNumber,o=t.scrollableYearDropdown,a=i||(o?10:5);return r.state={yearsList:Ut(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=n.createRef(),r}return ge(r,e),r.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},r.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return pe.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())},r}(n.Component),zt=he.default(Ht),Wt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?D.getYear(t.props.minDate):1900,n=t.props.maxDate?D.getYear(t.props.maxDate):2100,r=[],i=e;i<=n;i++)r.push(pe.default.createElement("option",{key:i,value:i},i));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},pe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return pe.default.createElement(zt,ve({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},(function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)}))},t.handleYearChange=function(e,n){t.onSelect(e,n),t.setOpen()},t.onSelect=function(e,n){t.props.onSelect&&t.props.onSelect(e,n)},t.setOpen=function(){t.props.setOpen&&t.props.setOpen(!0)},t}return ge(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),qt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Gt=function(e){function r(o){var a=e.call(this,o)||this;return a.monthContainer=void 0,a.handleClickOutside=function(e){a.props.onClickOutside(e)},a.setClickOutsideRef=function(){return a.containerRef.current},a.handleDropdownFocus=function(e){var t,n,r,i;r=e.target,i=(r.className||"").split(/\s+/),qt.some((function(e){return i.indexOf(e)>=0}))&&(null===(n=(t=a.props).onDropdownFocus)||void 0===n||n.call(t,e))},a.getDateInView=function(){var e=a.props,t=e.preSelection,n=e.selected,r=e.openToDate,i=ct(a.props),o=ut(a.props),s=Ee();return r||n||t||(i&&N.isBefore(s,i)?i:o&&F.isAfter(s,o)?o:s)},a.increaseMonth=function(){a.setState((function(e){var t=e.date;return{date:s.addMonths(t,1)}}),(function(){return a.handleMonthChange(a.state.date)}))},a.decreaseMonth=function(){a.setState((function(e){var t=e.date;return{date:ie.subMonths(t,1)}}),(function(){return a.handleMonthChange(a.state.date)}))},a.handleDayClick=function(e,t,n){a.props.onSelect(e,t,n),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleDayMouseEnter=function(e){a.setState({selectingDate:e}),a.props.onDayMouseEnter&&a.props.onDayMouseEnter(e)},a.handleMonthMouseLeave=function(){a.setState({selectingDate:void 0}),a.props.onMonthMouseLeave&&a.props.onMonthMouseLeave()},a.handleYearMouseEnter=function(e,t){a.setState({selectingDate:Z.setYear(Ee(),t)}),a.props.onYearMouseEnter&&a.props.onYearMouseEnter(e,t)},a.handleYearMouseLeave=function(e,t){a.props.onYearMouseLeave&&a.props.onYearMouseLeave(e,t)},a.handleYearChange=function(e){a.props.onYearChange&&(a.props.onYearChange(e),a.setState({isRenderAriaLiveMessage:!0})),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleMonthChange=function(e){a.handleCustomMonthChange(e),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(e),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(e)},a.handleCustomMonthChange=function(e){a.props.onMonthChange&&(a.props.onMonthChange(e),a.setState({isRenderAriaLiveMessage:!0}))},a.handleMonthYearChange=function(e){a.handleYearChange(e),a.handleMonthChange(e)},a.changeYear=function(e){a.setState((function(t){var n=t.date;return{date:Z.setYear(n,Number(e))}}),(function(){return a.handleYearChange(a.state.date)}))},a.changeMonth=function(e){a.setState((function(t){var n=t.date;return{date:K.setMonth(n,Number(e))}}),(function(){return a.handleMonthChange(a.state.date)}))},a.changeMonthYear=function(e){a.setState((function(t){var n=t.date;return{date:Z.setYear(K.setMonth(n,T.getMonth(e)),D.getYear(e))}}),(function(){return a.handleMonthYearChange(a.state.date)}))},a.header=function(e){void 0===e&&(e=a.state.date);var n=De(e,a.props.locale,a.props.calendarStartDay),r=[];return a.props.showWeekNumbers&&r.push(pe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},a.props.weekLabel||"#")),r.concat([0,1,2,3,4,5,6].map((function(e){var r=i.addDays(n,e),o=a.formatWeekday(r,a.props.locale),s=a.props.weekDayClassName?a.props.weekDayClassName(r):void 0;return pe.default.createElement("div",{key:e,"aria-label":Te(r,"EEEE",a.props.locale),className:t.clsx("react-datepicker__day-name",s)},o)})))},a.formatWeekday=function(e,t){return a.props.formatWeekDay?function(e,t,n){return t(Te(e,"EEEE",n))}(e,a.props.formatWeekDay,t):a.props.useWeekdaysShort?function(e,t){return Te(e,"EEE",t)}(e,t):function(e,t){return Te(e,"EEEEEE",t)}(e,t)},a.decreaseYear=function(){a.setState((function(e){var t,n=e.date;return{date:se.subYears(n,a.props.showYearPicker?null!==(t=a.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}}),(function(){return a.handleYearChange(a.state.date)}))},a.clearSelectingDate=function(){a.setState({selectingDate:void 0})},a.renderPreviousButton=function(){var e;if(!a.props.renderCustomHeader){var t;switch(!0){case a.props.showMonthYearPicker:t=st(a.state.date,a.props);break;case a.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.yearItemNumber,o=void 0===i?Ce:i,a=mt(Ne(se.subYears(e,o)),o).endPeriod,s=r&&D.getYear(r);return s&&s>a||!1}(a.state.date,a.props);break;case a.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,o=ne.startOfYear(e),a=oe.subQuarters(o,1);return r&&f.differenceInCalendarQuarters(r,a)>0||i&&i.every((function(e){return f.differenceInCalendarQuarters(e,a)>0}))||!1}(a.state.date,a.props);break;default:t=ot(a.state.date,a.props)}if(((null!==(e=a.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||a.props.showDisabledMonthNavigation||!t)&&!a.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--previous"],i=a.decreaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(i=a.decreaseYear),t&&a.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--previous--disabled"),i=void 0);var o=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,s=a.props,l=s.previousMonthButtonLabel,c=void 0===l?r.defaultProps.previousMonthButtonLabel:l,u=s.previousYearButtonLabel,d=void 0===u?r.defaultProps.previousYearButtonLabel:u,p=a.props,h=p.previousMonthAriaLabel,m=void 0===h?"string"==typeof c?c:"Previous Month":h,g=p.previousYearAriaLabel,v=void 0===g?"string"==typeof d?d:"Previous Year":g;return pe.default.createElement("button",{type:"button",className:n.join(" "),onClick:i,onKeyDown:a.props.handleOnKeyDown,"aria-label":o?v:m},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?d:c))}}},a.increaseYear=function(){a.setState((function(e){var t,n=e.date;return{date:d.addYears(n,a.props.showYearPicker?null!==(t=a.props.yearItemNumber)&&void 0!==t?t:r.defaultProps.yearItemNumber:1)}}),(function(){return a.handleYearChange(a.state.date)}))},a.renderNextButton=function(){var e;if(!a.props.renderCustomHeader){var t;switch(!0){case a.props.showMonthYearPicker:t=lt(a.state.date,a.props);break;case a.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.yearItemNumber,o=void 0===i?Ce:i,a=mt(d.addYears(e,o),o).startPeriod,s=r&&D.getYear(r);return s&&s<a||!1}(a.state.date,a.props);break;case a.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,o=b.endOfYear(e),a=l.addQuarters(o,1);return r&&f.differenceInCalendarQuarters(a,r)>0||i&&i.every((function(e){return f.differenceInCalendarQuarters(a,e)>0}))||!1}(a.state.date,a.props);break;default:t=at(a.state.date,a.props)}if(((null!==(e=a.props.forceShowMonthNavigation)&&void 0!==e?e:r.defaultProps.forceShowMonthNavigation)||a.props.showDisabledMonthNavigation||!t)&&!a.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];a.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),a.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var i=a.increaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(i=a.increaseYear),t&&a.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),i=void 0);var o=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,s=a.props,c=s.nextMonthButtonLabel,u=void 0===c?r.defaultProps.nextMonthButtonLabel:c,p=s.nextYearButtonLabel,h=void 0===p?r.defaultProps.nextYearButtonLabel:p,m=a.props,g=m.nextMonthAriaLabel,v=void 0===g?"string"==typeof u?u:"Next Month":g,y=m.nextYearAriaLabel,w=void 0===y?"string"==typeof h?h:"Next Year":y;return pe.default.createElement("button",{type:"button",className:n.join(" "),onClick:i,onKeyDown:a.props.handleOnKeyDown,"aria-label":o?w:v},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},o?h:u))}}},a.renderCurrentMonth=function(e){void 0===e&&(e=a.state.date);var t=["react-datepicker__current-month"];return a.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),a.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),a.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),pe.default.createElement("h2",{className:t.join(" ")},Te(e,a.props.dateFormat,a.props.locale))},a.renderYearDropdown=function(e){if(void 0===e&&(e=!1),a.props.showYearDropdown&&!e)return pe.default.createElement(Wt,ve({},r.defaultProps,a.props,{date:a.state.date,onChange:a.changeYear,year:D.getYear(a.state.date)}))},a.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),a.props.showMonthDropdown&&!e)return pe.default.createElement(It,ve({},r.defaultProps,a.props,{month:T.getMonth(a.state.date),onChange:a.changeMonth}))},a.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),a.props.showMonthYearDropdown&&!e)return pe.default.createElement(Mt,ve({},r.defaultProps,a.props,{date:a.state.date,onChange:a.changeMonthYear}))},a.handleTodayButtonClick=function(e){a.props.onSelect(Re(),e),a.props.setPreSelection&&a.props.setPreSelection(Re())},a.renderTodayButton=function(){if(a.props.todayButton&&!a.props.showTimeSelectOnly)return pe.default.createElement("div",{className:"react-datepicker__today-button",onClick:a.handleTodayButtonClick},a.props.todayButton)},a.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return pe.default.createElement("div",{className:"react-datepicker__header ".concat(a.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},a.renderCurrentMonth(t),pe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode),onFocus:a.handleDropdownFocus},a.renderMonthDropdown(0!==n),a.renderMonthYearDropdown(0!==n),a.renderYearDropdown(0!==n)),pe.default.createElement("div",{className:"react-datepicker__day-names"},a.header(t)))},a.renderCustomHeader=function(e){var t,n,r=e.monthDate,i=e.i;if(a.props.showTimeSelect&&!a.state.monthContainer||a.props.showTimeSelectOnly)return null;var o=ot(a.state.date,a.props),s=at(a.state.date,a.props),l=st(a.state.date,a.props),c=lt(a.state.date,a.props),u=!a.props.showMonthYearPicker&&!a.props.showQuarterYearPicker&&!a.props.showYearPicker;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:a.props.onDropdownFocus},null===(n=(t=a.props).renderCustomHeader)||void 0===n?void 0:n.call(t,ve(ve({},a.state),{customHeaderCount:i,monthDate:r,changeMonth:a.changeMonth,changeYear:a.changeYear,decreaseMonth:a.decreaseMonth,increaseMonth:a.increaseMonth,decreaseYear:a.decreaseYear,increaseYear:a.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:s,prevYearButtonDisabled:l,nextYearButtonDisabled:c})),u&&pe.default.createElement("div",{className:"react-datepicker__day-names"},a.header(r)))},a.renderYearHeader=function(e){var t=e.monthDate,n=a.props,i=n.showYearPicker,o=n.yearItemNumber,s=mt(t,void 0===o?r.defaultProps.yearItemNumber:o),l=s.startPeriod,c=s.endPeriod;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},i?"".concat(l," - ").concat(c):D.getYear(t))},a.renderHeader=function(e){var t=e.monthDate,n=e.i,r={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==a.props.renderCustomHeader:return a.renderCustomHeader(r);case a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker:return a.renderYearHeader(r);default:return a.renderDefaultHeader(r)}},a.renderMonths=function(){var e,t;if(!a.props.showTimeSelectOnly&&!a.props.showYearPicker){for(var n=[],i=null!==(e=a.props.monthsShown)&&void 0!==e?e:r.defaultProps.monthsShown,o=a.props.showPreviousMonths?i-1:0,l=a.props.showMonthYearPicker||a.props.showQuarterYearPicker?d.addYears(a.state.date,o):ie.subMonths(a.state.date,o),c=null!==(t=a.props.monthSelectedIn)&&void 0!==t?t:o,u=0;u<i;++u){var p=u-c+o,h=a.props.showMonthYearPicker||a.props.showQuarterYearPicker?d.addYears(l,p):s.addMonths(l,p),f="month-".concat(u),m=u<i-1,g=u>0;n.push(pe.default.createElement("div",{key:f,ref:function(e){a.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},a.renderHeader({monthDate:h,i:u}),pe.default.createElement(Dt,ve({},r.defaultProps,a.props,{ariaLabelPrefix:a.props.monthAriaLabelPrefix,day:h,onDayClick:a.handleDayClick,handleOnKeyDown:a.props.handleOnDayKeyDown,handleOnMonthKeyDown:a.props.handleOnKeyDown,onDayMouseEnter:a.handleDayMouseEnter,onMouseLeave:a.handleMonthMouseLeave,orderInDisplay:u,selectingDate:a.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:g}))))}return n}},a.renderYears=function(){if(!a.props.showTimeSelectOnly)return a.props.showYearPicker?pe.default.createElement("div",{className:"react-datepicker__year--container"},a.renderHeader({monthDate:a.state.date}),pe.default.createElement(Bt,ve({},r.defaultProps,a.props,{selectingDate:a.state.selectingDate,date:a.state.date,onDayClick:a.handleDayClick,clearSelectingDate:a.clearSelectingDate,onYearMouseEnter:a.handleYearMouseEnter,onYearMouseLeave:a.handleYearMouseLeave}))):void 0},a.renderTimeSection=function(){if(a.props.showTimeSelect&&(a.state.monthContainer||a.props.showTimeSelectOnly))return pe.default.createElement(Lt,ve({},r.defaultProps,a.props,{onChange:a.props.onTimeChange,format:a.props.timeFormat,intervals:a.props.timeIntervals,monthRef:a.state.monthContainer}))},a.renderInputTimeSection=function(){var e=a.props.selected?new Date(a.props.selected):void 0,t=e&&_e(e)&&Boolean(a.props.selected)?"".concat(ft(e.getHours()),":").concat(ft(e.getMinutes())):"";if(a.props.showTimeInput)return pe.default.createElement(xt,ve({},r.defaultProps,a.props,{date:e,timeString:t,onChange:a.props.onTimeChange}))},a.renderAriaLiveRegion=function(){var e,t,n=mt(a.state.date,null!==(e=a.props.yearItemNumber)&&void 0!==e?e:r.defaultProps.yearItemNumber),i=n.startPeriod,o=n.endPeriod;return t=a.props.showYearPicker?"".concat(i," - ").concat(o):a.props.showMonthYearPicker||a.props.showQuarterYearPicker?D.getYear(a.state.date):"".concat(We(T.getMonth(a.state.date),a.props.locale)," ").concat(D.getYear(a.state.date)),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},a.state.isRenderAriaLiveMessage&&t)},a.renderChildren=function(){if(a.props.children)return pe.default.createElement("div",{className:"react-datepicker__children-container"},a.props.children)},a.containerRef=n.createRef(),a.state={date:a.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},a}return ge(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ce}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},r.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||Be(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Be(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Me(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}},r.prototype.render=function(){var e=this.props.container||we;return pe.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},pe.default.createElement(e,{className:t.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(n.Component),Yt=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return"string"==typeof t?pe.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):pe.default.isValidElement(t)?pe.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):pe.default.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},pe.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Kt=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return ge(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return fe.default.createPortal(this.props.children,this.el)},t}(n.Component),Qt=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},Xt=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Qt)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=n.createRef(),r}return ge(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?pe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},pe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,pe.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),Zt=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return ge(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,i=e.className,o=e.wrapperClassName,a=e.hidePopper,s=void 0===a?r.defaultProps.hidePopper:a,l=e.popperComponent,c=e.targetComponent,u=e.enableTabLoop,d=e.popperOnKeyDown,p=e.portalId,h=e.portalHost,f=e.popperProps,m=e.showArrow,g=void 0;if(!s){var v=t.clsx("react-datepicker-popper",i);g=pe.default.createElement(Xt,{enableTabLoop:u},pe.default.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:v,"data-placement":f.placement,onKeyDown:d},l,m&&pe.default.createElement(ce.FloatingArrow,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=n.createElement(this.props.popperContainer,{},g)),p&&!s&&(g=pe.default.createElement(Kt,{portalId:p,portalHost:h},g));var y=t.clsx("react-datepicker-wrapper",o);return pe.default.createElement(pe.default.Fragment,null,pe.default.createElement("div",{ref:f.refs.setReference,className:y},c),g)},r}(n.Component),Jt=(Vt=Zt,function(e){var t,r="boolean"!=typeof e.hidePopper||e.hidePopper,i=n.useRef(null),o=ce.useFloating(ve({open:!r,whileElementsMounted:ce.autoUpdate,placement:e.popperPlacement,middleware:ye([ce.flip({padding:15}),ce.offset(10),ce.arrow({element:i})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),a=ve(ve({},e),{hidePopper:r,popperProps:ve(ve({},o),{arrowRef:i})});return pe.default.createElement(Vt,ve({},a))}),$t="react-datepicker-ignore-onclickoutside",en=he.default(Gt),tn="Date input not valid.",nn=function(e){function r(o){var a=e.call(this,o)||this;return a.calendar=null,a.input=null,a.getPreSelection=function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:Ee()},a.modifyHolidays=function(){var e;return null===(e=a.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return _e(n)?ye(ye([],e,!0),[ve(ve({},t),{date:n})],!1):e}),[])},a.calcInitialState=function(){var e,t=a.getPreSelection(),n=ct(a.props),r=ut(a.props),i=n&&N.isBefore(t,Pe(n))?n:r&&F.isAfter(t,Oe(r))?r:t;return{open:a.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=a.props.selectsRange?a.props.startDate:a.props.selected)&&void 0!==e?e:i,highlightDates:dt(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},a.resetHiddenStatus=function(){a.setState(ve(ve({},a.state),{wasHidden:!1}))},a.setHiddenStatus=function(){a.setState(ve(ve({},a.state),{wasHidden:!0}))},a.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&a.setHiddenStatus()},a.clearPreventFocusTimeout=function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)},a.setFocus=function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})},a.setBlur=function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()},a.setOpen=function(e,t){void 0===t&&(t=!1),a.setState({open:e,preSelection:e&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:on},(function(){e||a.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&a.setBlur(),a.setState({inputValue:null})}))}))},a.inputOk=function(){return I.isDate(a.state.preSelection)},a.isCalendarOpen=function(){return void 0===a.props.open?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open},a.handleFocus=function(e){var t,n,r=a.state.wasHidden,i=!r||a.state.open;r&&a.resetHiddenStatus(),!a.state.preventFocus&&i&&(null===(n=(t=a.props).onFocus)||void 0===n||n.call(t,e),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})},a.sendFocusBackToInput=function(){a.preventFocusTimeout&&a.clearPreventFocusTimeout(),a.setState({preventFocus:!0},(function(){a.preventFocusTimeout=setTimeout((function(){a.setFocus(),a.setState({preventFocus:!1})}))}))},a.cancelFocusInput=function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=void 0},a.deferFocusInput=function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout((function(){return a.setFocus()}),1)},a.handleDropdownFocus=function(){a.cancelFocusInput()},a.handleBlur=function(e){var t,n;(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&(null===(n=(t=a.props).onBlur)||void 0===n||n.call(t,e)),a.setState({focused:!1})},a.handleCalendarClickOutside=function(e){var t,n;a.props.inline||a.setOpen(!1),null===(n=(t=a.props).onClickOutside)||void 0===n||n.call(t,e),a.props.withPortal&&e.preventDefault()},a.handleChange=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0];if(!a.props.onChangeRaw||(a.props.onChangeRaw.apply(a,e),n&&"function"==typeof n.isDefaultPrevented&&!n.isDefaultPrevented())){a.setState({inputValue:(null==n?void 0:n.target)instanceof HTMLInputElement?n.target.value:null,lastPreSelectChange:rn});var i=a.props,o=i.dateFormat,s=void 0===o?r.defaultProps.dateFormat:o,l=i.strictParsing,c=void 0===l?r.defaultProps.strictParsing:l,u=function(e,t,n,r,i){var o,a=null,s=ze(n)||ze(He()),l=!0;if(Array.isArray(t))return t.forEach((function(t){var o=z.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(l=_e(o,i)&&e===Te(o,t,n)),_e(o,i)&&l&&(a=o)})),a;if(a=z.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)l=_e(a)&&e===Te(a,t,n);else if(!_e(a)){var c=(null!==(o=t.match(Ae))&&void 0!==o?o:[]).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=w.longFormatters[t];return s?n(e,s.formatLong):t}return e})).join("");e.length>0&&(a=z.parse(e,c.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),_e(a)||(a=new Date(e))}return _e(a)&&l?a:null}((null==n?void 0:n.target)instanceof HTMLInputElement?n.target.value:"",s,a.props.locale,c,a.props.minDate);a.props.showTimeSelectOnly&&a.props.selected&&u&&!Be(u,a.props.selected)&&(u=q.set(a.props.selected,{hours:A.getHours(u),minutes:_.getMinutes(u),seconds:k.getSeconds(u)})),!u&&(null==n?void 0:n.target)instanceof HTMLInputElement&&(null==n?void 0:n.target.value)||a.setSelected(u,n,!0)}},a.handleSelect=function(e,t,n){if(a.props.shouldCloseOnSelect&&!a.props.showTimeSelect&&a.sendFocusBackToInput(),a.props.onChangeRaw&&a.props.onChangeRaw(t),a.setSelected(e,t,!1,n),a.props.showDateSelect&&a.setState({isRenderAriaLiveMessage:!0}),!a.props.shouldCloseOnSelect||a.props.showTimeSelect)a.setPreSelection(e);else if(!a.props.inline){a.props.selectsRange||a.setOpen(!1);var r=a.props,i=r.startDate,o=r.endDate;!i||o||!a.props.swapRange&&yt(e,i)||a.setOpen(!1)}},a.setSelected=function(e,t,n,i){var o,s=e;if(a.props.showYearPicker){if(null!==s&&$e(D.getYear(s),a.props))return}else if(a.props.showMonthYearPicker){if(null!==s&&Ke(s,a.props))return}else if(null!==s&&Ge(s,a.props))return;var l=a.props,c=l.onChange,u=l.selectsRange,d=l.startDate,p=l.endDate,h=l.selectsMultiple,f=l.selectedDates,m=l.minTime,g=l.swapRange;if(!Ue(a.props.selected,s)||a.props.allowSameDay||u||h)if(null!==s&&(!a.props.selected||n&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(s=ke(s,{hour:A.getHours(a.props.selected),minute:_.getMinutes(a.props.selected),second:k.getSeconds(a.props.selected)})),n||!a.props.showTimeSelect&&!a.props.showTimeSelectOnly||m&&(s=ke(s,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),a.props.inline||a.setState({preSelection:s}),a.props.focusSelectedMonth||a.setState({monthSelectedIn:i})),u){var v=d&&p;d||p?d&&!p&&(null===s?c?c([null,null],t):r.defaultProps.onChange:yt(s,d)?g?c?c([s,d],t):r.defaultProps.onChange:c?c([s,null],t):r.defaultProps.onChange:c?c([d,s],t):r.defaultProps.onChange):c?c([s,null],t):r.defaultProps.onChange,v&&(c?c([s,null],t):r.defaultProps.onChange)}else if(h){if(null!==s)if(null==f?void 0:f.length)if(f.some((function(e){return Be(e,s)}))){var y=f.filter((function(e){return!Be(e,s)}));c?c(y,t):r.defaultProps.onChange}else c?c(ye(ye([],f,!0),[s],!1),t):r.defaultProps.onChange;else c?c([s],t):r.defaultProps.onChange}else c?c(s,t):r.defaultProps.onChange;n||((null!==(o=a.props.onSelect)&&void 0!==o?o:r.defaultProps.onSelect)(s,t),a.setState({inputValue:null}))},a.setPreSelection=function(e){var t=I.isDate(a.props.minDate),n=I.isDate(a.props.maxDate),r=!0;if(e){var i=Pe(e);if(t&&n)r=Ve(e,a.props.minDate,a.props.maxDate);else if(t){var o=Pe(a.props.minDate);r=F.isAfter(e,o)||Ue(i,o)}else if(n){var s=Oe(a.props.maxDate);r=N.isBefore(e,s)||Ue(i,s)}}r&&a.setState({preSelection:e})},a.toggleCalendar=function(){a.setOpen(!a.state.open)},a.handleTimeChange=function(e){var t;if(!a.props.selectsRange&&!a.props.selectsMultiple){var n=a.props.selected?a.props.selected:a.getPreSelection(),i=a.props.selected?e:ke(n,{hour:A.getHours(e),minute:_.getMinutes(e)});a.setState({preSelection:i}),(null!==(t=a.props.onChange)&&void 0!==t?t:r.defaultProps.onChange)(i),a.props.shouldCloseOnSelect&&!a.props.showTimeInput&&(a.sendFocusBackToInput(),a.setOpen(!1)),a.props.showTimeInput&&a.setOpen(!0),(a.props.showTimeSelectOnly||a.props.showTimeSelect)&&a.setState({isRenderAriaLiveMessage:!0}),a.setState({inputValue:null})}},a.onInputClick=function(){var e,t;a.props.disabled||a.props.readOnly||a.setOpen(!0),null===(t=(e=a.props).onInputClick)||void 0===t||t.call(e)},a.onInputKeyDown=function(e){var t,n,r,i,o;null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e);var s=e.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if(s===be.ArrowDown||s===be.ArrowUp){e.preventDefault();var l=a.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":a.props.showWeekPicker&&a.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':a.props.showFullMonthYearPicker||a.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=(null===(r=a.calendar)||void 0===r?void 0:r.componentNode)instanceof Element&&a.calendar.componentNode.querySelector(l);return void(c instanceof HTMLElement&&c.focus({preventScroll:!0}))}var u=Ee(a.state.preSelection);s===be.Enter?(e.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===on?(a.handleSelect(u,e),!a.props.shouldCloseOnSelect&&a.setPreSelection(u)):a.setOpen(!1)):s===be.Escape?(e.preventDefault(),a.sendFocusBackToInput(),a.setOpen(!1)):s===be.Tab&&a.setOpen(!1),a.inputOk()||null===(o=(i=a.props).onInputError)||void 0===o||o.call(i,{code:1,msg:tn})}}else s!==be.ArrowDown&&s!==be.ArrowUp&&s!==be.Enter||a.onInputClick()},a.onPortalKeyDown=function(e){e.key===be.Escape&&(e.preventDefault(),a.setState({preventFocus:!0},(function(){a.setOpen(!1),setTimeout((function(){a.setFocus(),a.setState({preventFocus:!1})}))})))},a.onDayKeyDown=function(e){var t,n,r,o,l=a.props,c=l.minDate,p=l.maxDate,h=l.disabledKeyboardNavigation,f=l.showWeekPicker,m=l.shouldCloseOnSelect,g=l.locale,v=l.calendarStartDay,b=l.adjustDateOnChange,w=l.inline;if(null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e),!h){var x=e.key,C=e.shiftKey,A=Ee(a.state.preSelection),E=function(e,t){var n=t;switch(e){case be.ArrowRight:n=f?u.addWeeks(t,1):i.addDays(t,1);break;case be.ArrowLeft:n=f?ae.subWeeks(t,1):re.subDays(t,1);break;case be.ArrowUp:n=ae.subWeeks(t,1);break;case be.ArrowDown:n=u.addWeeks(t,1);break;case be.PageUp:n=C?se.subYears(t,1):ie.subMonths(t,1);break;case be.PageDown:n=C?d.addYears(t,1):s.addMonths(t,1);break;case be.Home:n=De(t,g,v);break;case be.End:n=function(e){return y.endOfWeek(e)}(t)}return n};if(x===be.Enter)return e.preventDefault(),a.handleSelect(A,e),void(!m&&a.setPreSelection(A));if(x===be.Escape)return e.preventDefault(),a.setOpen(!1),void(a.inputOk()||null===(o=(r=a.props).onInputError)||void 0===o||o.call(r,{code:1,msg:tn}));var _=null;switch(x){case be.ArrowLeft:case be.ArrowRight:case be.ArrowUp:case be.ArrowDown:case be.PageUp:case be.PageDown:case be.Home:case be.End:_=function(e,t){for(var n=e,r=!1,i=0,o=E(e,t);!r;){if(i>=40){o=t;break}c&&o<c&&(n=be.ArrowRight,o=Ge(c,a.props)?E(n,o):c),p&&o>p&&(n=be.ArrowLeft,o=Ge(p,a.props)?E(n,o):p),Ge(o,a.props)?(n!==be.PageUp&&n!==be.Home||(n=be.ArrowRight),n!==be.PageDown&&n!==be.End||(n=be.ArrowLeft),o=E(n,o)):r=!0,i++}return o}(x,A)}if(_){if(e.preventDefault(),a.setState({lastPreSelectChange:on}),b&&a.setSelected(_),a.setPreSelection(_),w){var S=T.getMonth(A),k=T.getMonth(_),P=D.getYear(A),F=D.getYear(_);S!==k||P!==F?a.setState({shouldFocusDayInline:!0}):a.setState({shouldFocusDayInline:!1})}}else a.props.onInputError&&a.props.onInputError({code:1,msg:tn})}},a.onPopperKeyDown=function(e){e.key===be.Escape&&(e.preventDefault(),a.sendFocusBackToInput())},a.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),a.sendFocusBackToInput();var t=a.props,n=t.selectsRange,i=t.onChange;n?i?i([null,null],e):r.defaultProps.onChange():i?i(null,e):r.defaultProps.onChange(),a.setState({inputValue:null})},a.clear=function(){a.onClearClick()},a.onScroll=function(e){"boolean"==typeof a.props.closeOnScroll&&a.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||a.setOpen(!1):"function"==typeof a.props.closeOnScroll&&a.props.closeOnScroll(e)&&a.setOpen(!1)},a.renderCalendar=function(){var e,t;return a.props.inline||a.isCalendarOpen()?pe.default.createElement(en,ve({ref:function(e){a.calendar=e}},a.props,a.state,{setOpen:a.setOpen,dateFormat:null!==(e=a.props.dateFormatCalendar)&&void 0!==e?e:r.defaultProps.dateFormatCalendar,onSelect:a.handleSelect,onClickOutside:a.handleCalendarClickOutside,holidays:pt(a.modifyHolidays()),outsideClickIgnoreClass:$t,onDropdownFocus:a.handleDropdownFocus,onTimeChange:a.handleTimeChange,className:a.props.calendarClassName,container:a.props.calendarContainer,handleOnKeyDown:a.props.onKeyDown,handleOnDayKeyDown:a.onDayKeyDown,setPreSelection:a.setPreSelection,dropdownMode:null!==(t=a.props.dropdownMode)&&void 0!==t?t:r.defaultProps.dropdownMode}),a.props.children):null},a.renderAriaLiveRegion=function(){var e,t=a.props,n=t.dateFormat,i=void 0===n?r.defaultProps.dateFormat:n,o=t.locale,s=a.props.showTimeInput||a.props.showTimeSelect?"PPPPp":"PPPP";return e=a.props.selectsRange?"Selected start date: ".concat(Se(a.props.startDate,{dateFormat:s,locale:o}),". ").concat(a.props.endDate?"End date: "+Se(a.props.endDate,{dateFormat:s,locale:o}):""):a.props.showTimeSelectOnly?"Selected time: ".concat(Se(a.props.selected,{dateFormat:i,locale:o})):a.props.showYearPicker?"Selected year: ".concat(Se(a.props.selected,{dateFormat:"yyyy",locale:o})):a.props.showMonthYearPicker?"Selected month: ".concat(Se(a.props.selected,{dateFormat:"MMMM yyyy",locale:o})):a.props.showQuarterYearPicker?"Selected quarter: ".concat(Se(a.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(Se(a.props.selected,{dateFormat:s,locale:o})),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},a.renderDateInput=function(){var e,i,o,s=t.clsx(a.props.className,((e={})[$t]=a.state.open,e)),l=a.props.customInput||pe.default.createElement("input",{type:"text"}),c=a.props.customInputRef||"ref",u=a.props,d=u.dateFormat,p=void 0===d?r.defaultProps.dateFormat:d,h=u.locale,f="string"==typeof a.props.value?a.props.value:"string"==typeof a.state.inputValue?a.state.inputValue:a.props.selectsRange?function(e,t,n){if(!e)return"";var r=Se(e,n),i=t?Se(t,n):"";return"".concat(r," - ").concat(i)}(a.props.startDate,a.props.endDate,{dateFormat:p,locale:h}):a.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?Se(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=Se(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}(null!==(o=a.props.selectedDates)&&void 0!==o?o:[],{dateFormat:p,locale:h}):Se(a.props.selected,{dateFormat:p,locale:h});return n.cloneElement(l,((i={})[c]=function(e){a.input=e},i.value=f,i.onBlur=a.handleBlur,i.onChange=a.handleChange,i.onClick=a.onInputClick,i.onFocus=a.handleFocus,i.onKeyDown=a.onInputKeyDown,i.id=a.props.id,i.name=a.props.name,i.form=a.props.form,i.autoFocus=a.props.autoFocus,i.placeholder=a.props.placeholderText,i.disabled=a.props.disabled,i.autoComplete=a.props.autoComplete,i.className=t.clsx(l.props.className,s),i.title=a.props.title,i.readOnly=a.props.readOnly,i.required=a.props.required,i.tabIndex=a.props.tabIndex,i["aria-describedby"]=a.props.ariaDescribedBy,i["aria-invalid"]=a.props.ariaInvalid,i["aria-labelledby"]=a.props.ariaLabelledBy,i["aria-required"]=a.props.ariaRequired,i))},a.renderClearButton=function(){var e=a.props,n=e.isClearable,r=e.disabled,i=e.selected,o=e.startDate,s=e.endDate,l=e.clearButtonTitle,c=e.clearButtonClassName,u=void 0===c?"":c,d=e.ariaLabelClose,p=void 0===d?"Close":d,h=e.selectedDates;return n&&(null!=i||null!=o||null!=s||(null==h?void 0:h.length))?pe.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",u,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":p,onClick:a.onClearClick,title:l,tabIndex:-1}):null},a.state=a.calcInitialState(),a.preventFocusTimeout=void 0,a}return ge(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ce,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var n,r,i,o,a,s;e.inline&&(a=e.selected,s=this.props.selected,a&&s?T.getMonth(a)!==T.getMonth(s)||D.getYear(a)!==D.getYear(s):a!==s)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:dt(this.props.highlightDates)}),t.focused||Ue(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===t.open&&!1===this.state.open&&(null===(o=(i=this.props).onCalendarClose)||void 0===o||o.call(i)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,r=e.icon,i=e.calendarIconClassname,o=e.calendarIconClassName,a=e.toggleCalendarOnIconClick,s=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),pe.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&pe.default.createElement(Yt,ve({icon:r,className:t.clsx(o,!o&&i,s&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?pe.default.createElement(Xt,{enableTabLoop:this.props.enableTabLoop},pe.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=pe.default.createElement(Kt,ve({portalId:this.props.portalId},this.props),t)),pe.default.createElement("div",null,this.renderInputContainer(),t)}return pe.default.createElement(Jt,ve({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(n.Component),rn="input",on="navigate";e.CalendarContainer=we,e.default=nn,e.getDefaultLocale=He,e.registerLocale=function(e,t){var n=xe();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){xe().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(67718),n(61462),n(66762),n(13587),n(92933),n(64615),n(66627),n(88929),n(40783),n(71583),n(73820),n(60838),n(42122),n(18140),n(15503),n(8573),n(3521),n(36411),n(36122),n(25216),n(16391),n(13753),n(41768),n(85354),n(41142),n(58725),n(26119),n(39498),n(48446),n(29742),n(13117),n(96192),n(3811),n(12023),n(78048),n(88959),n(51689),n(91488),n(44229),n(62113),n(18049),n(63699),n(92644),n(73891),n(32159),n(22820),n(23610),n(6593),n(43035),n(52374),n(57530),n(47894),n(20502),n(93084),n(43166),n(627),n(29842),n(54366),n(46888),n(19116),n(15971),n(97926),n(32739),n(72551))},97306:(e,t)=>{"use strict";t.addLeadingZeros=function(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}},50395:(e,t,n)=>{"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return r.enUS}});var r=n(96220)},98827:(e,t)=>{"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},2547:(e,t,n)=>{"use strict";t.formatters=void 0;var r=n(74437),i=n(85354),o=n(79383),a=n(78047),s=n(26874),l=n(97306),c=n(57285);const u="midnight",d="noon",p="morning",h="afternoon",f="evening",m="night";t.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return c.lightFormatters.y(e,t)},Y:function(e,t,n,r){const i=(0,s.getWeekYear)(e,r),o=i>0?i:1-i;if("YY"===t){const e=o%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,l.addLeadingZeros)(o,t.length)},R:function(e,t){const n=(0,o.getISOWeekYear)(e);return(0,l.addLeadingZeros)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return c.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=(0,a.getWeek)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,l.addLeadingZeros)(i,t.length)},I:function(e,t,n){const r=(0,i.getISOWeek)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.addLeadingZeros)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):c.lightFormatters.d(e,t)},D:function(e,t,n){const i=(0,r.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(i,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,l.addLeadingZeros)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,l.addLeadingZeros)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,l.addLeadingZeros)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?d:0===r?u:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?f:r>=12?h:r>=4?p:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return c.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):c.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):c.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):c.lightFormatters.s(e,t)},S:function(e,t){return c.lightFormatters.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return v(r);case"XXXX":case"XX":return y(r);default:return y(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return v(r);case"xxxx":case"xx":return y(r);default:return y(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+y(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+y(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.addLeadingZeros)(r,t.length)}};function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+(0,l.addLeadingZeros)(o,2)}function v(e,t){if(e%60===0){return(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2)}return y(e,t)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,l.addLeadingZeros)(r%60,2)}},57285:(e,t,n)=>{"use strict";t.lightFormatters=void 0;var r=n(97306);t.lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return(0,r.addLeadingZeros)("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,r.addLeadingZeros)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,r.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,r.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,n-3));return(0,r.addLeadingZeros)(o,t.length)}}},64805:(e,t)=>{"use strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.longFormatters={p:r,P:(e,t)=>{const i=e.match(/(P+)(p+)?/)||[],o=i[1],a=i[2];if(!a)return n(e,t);let s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",n(o,t)).replace("{{time}}",r(a,t))}}},79973:(e,t,n)=>{"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,r.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n};var r=n(97926)},42972:(e,t)=>{"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return r.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),i.includes(e))throw new RangeError(r)};const n=/^D+$/,r=/^Y+$/,i=["D","DD","YY","YYYY"]},13587:(e,t,n)=>{"use strict";t.addDays=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,i.constructFrom)(e,NaN);if(!t)return n;return n.setDate(n.getDate()+t),n};var r=n(97926),i=n(49958)},92933:(e,t,n)=>{"use strict";t.addHours=function(e,t){return(0,r.addMilliseconds)(e,t*i.millisecondsInHour)};var r=n(83862),i=n(49790)},83862:(e,t,n)=>{"use strict";t.addMilliseconds=function(e,t){const n=+(0,r.toDate)(e);return(0,i.constructFrom)(e,n+t)};var r=n(97926),i=n(49958)},64615:(e,t,n)=>{"use strict";t.addMinutes=function(e,t){return(0,r.addMilliseconds)(e,t*i.millisecondsInMinute)};var r=n(83862),i=n(49790)},66627:(e,t,n)=>{"use strict";t.addMonths=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,i.constructFrom)(e,NaN);if(!t)return n;const o=n.getDate(),a=(0,i.constructFrom)(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)};var r=n(97926),i=n(49958)},88929:(e,t,n)=>{"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,r.addMonths)(e,n)};var r=n(66627)},40783:(e,t,n)=>{"use strict";t.addSeconds=function(e,t){return(0,r.addMilliseconds)(e,1e3*t)};var r=n(83862)},71583:(e,t,n)=>{"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,r.addDays)(e,n)};var r=n(13587)},73820:(e,t,n)=>{"use strict";t.addYears=function(e,t){return(0,r.addMonths)(e,12*t)};var r=n(66627)},49790:(e,t)=>{"use strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secondsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsInQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsInHour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void 0;t.daysInWeek=7;const n=t.daysInYear=365.2425,r=t.maxTime=24*Math.pow(10,8)*60*60*1e3,i=(t.minTime=-r,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minutesInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.monthsInYear=12,t.quartersInYear=4,t.secondsInHour=3600),o=(t.secondsInMinute=60,t.secondsInDay=24*i),a=(t.secondsInWeek=7*o,t.secondsInYear=o*n),s=t.secondsInMonth=a/12;t.secondsInQuarter=3*s},49958:(e,t)=>{"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},60838:(e,t,n)=>{"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,i.startOfDay)(e),a=(0,i.startOfDay)(t),s=+n-(0,o.getTimezoneOffsetInMilliseconds)(n),l=+a-(0,o.getTimezoneOffsetInMilliseconds)(a);return Math.round((s-l)/r.millisecondsInDay)};var r=n(49790),i=n(47894),o=n(79973)},42122:(e,t,n)=>{"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t),o=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return 12*o+a};var r=n(97926)},18140:(e,t,n)=>{"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,i.toDate)(e),o=(0,i.toDate)(t),a=n.getFullYear()-o.getFullYear(),s=(0,r.getQuarter)(n)-(0,r.getQuarter)(o);return 4*a+s};var r=n(26119),i=n(97926)},15503:(e,t,n)=>{"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getFullYear()-i.getFullYear()};var r=n(97926)},8573:(e,t,n)=>{"use strict";t.endOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(23,59,59,999),t};var r=n(97926)},3521:(e,t,n)=>{"use strict";t.endOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var r=n(97926)},36411:(e,t,n)=>{"use strict";t.endOfWeek=function(e,t){var n,o,a,s,l,c;const u=(0,i.getDefaultOptions)(),d=null!==(n=null!==(o=null!==(a=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==o?o:null===(c=u.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0,p=(0,r.toDate)(e),h=p.getDay(),f=6+(h<d?-7:0)-(h-d);return p.setDate(p.getDate()+f),p.setHours(23,59,59,999),p};var r=n(97926),i=n(98827)},36122:(e,t,n)=>{"use strict";t.endOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var r=n(97926)},25216:(e,t,n)=>{"use strict";t.format=t.formatDate=function(e,t,n){var p,h,g,v,y,b,w,x,C,A,E,_,T,S;const k=(0,i.getDefaultOptions)(),P=null!==(p=null!==(h=null===n||void 0===n?void 0:n.locale)&&void 0!==h?h:k.locale)&&void 0!==p?p:r.defaultLocale,D=null!==(g=null!==(v=null!==(y=null!==(b=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==b?b:null===n||void 0===n||null===(w=n.locale)||void 0===w||null===(w=w.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==y?y:k.firstWeekContainsDate)&&void 0!==v?v:null===(x=k.locale)||void 0===x||null===(x=x.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==g?g:1,F=null!==(C=null!==(A=null!==(E=null!==(_=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==_?_:null===n||void 0===n||null===(T=n.locale)||void 0===T||null===(T=T.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==E?E:k.weekStartsOn)&&void 0!==A?A:null===(S=k.locale)||void 0===S||null===(S=S.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==C?C:0,N=(0,c.toDate)(e);if(!(0,l.isValid)(N))throw new RangeError("Invalid time value");let I=t.match(d).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,a.longFormatters[t])(e,P.formatLong)}return e})).join("").match(u).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:m(e)};if(o.formatters[t])return{isToken:!0,value:e};if(t.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));P.localize.preprocessor&&(I=P.localize.preprocessor(N,I));const R={firstWeekContainsDate:D,weekStartsOn:F,locale:P};return I.map((r=>{if(!r.isToken)return r.value;const i=r.value;(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,s.isProtectedWeekYearToken)(i))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,s.isProtectedDayOfYearToken)(i))||(0,s.warnOrThrowProtectedError)(i,t,String(e));return(0,o.formatters[i[0]])(N,i,P.localize,R)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return o.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var r=n(50395),i=n(98827),o=n(2547),a=n(64805),s=n(42972),l=n(44229),c=n(97926);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,f=/[a-zA-Z]/;function m(e){const t=e.match(p);return t?t[1].replace(h,"'"):e}},16391:(e,t,n)=>{"use strict";t.getDate=function(e){const t=(0,r.toDate)(e);return t.getDate()};var r=n(97926)},13753:(e,t,n)=>{"use strict";t.getDay=function(e){const t=(0,r.toDate)(e);return t.getDay()};var r=n(97926)},74437:(e,t,n)=>{"use strict";t.getDayOfYear=function(e){const t=(0,o.toDate)(e),n=(0,r.differenceInCalendarDays)(t,(0,i.startOfYear)(t));return n+1};var r=n(60838),i=n(627),o=n(97926)},26621:(e,t,n)=>{"use strict";t.getDaysInMonth=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=t.getMonth(),a=(0,i.constructFrom)(e,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()};var r=n(97926),i=n(49958)},80538:(e,t,n)=>{"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,r.getDefaultOptions)())};var r=n(98827)},41768:(e,t,n)=>{"use strict";t.getHours=function(e){const t=(0,r.toDate)(e);return t.getHours()};var r=n(97926)},30858:(e,t,n)=>{"use strict";t.getISODay=function(e){let t=(0,r.toDate)(e).getDay();0===t&&(t=7);return t};var r=n(97926)},85354:(e,t,n)=>{"use strict";t.getISOWeek=function(e){const t=(0,a.toDate)(e),n=+(0,i.startOfISOWeek)(t)-+(0,o.startOfISOWeekYear)(t);return Math.round(n/r.millisecondsInWeek)+1};var r=n(49790),i=n(97909),o=n(17460),a=n(97926)},79383:(e,t,n)=>{"use strict";t.getISOWeekYear=function(e){const t=(0,o.toDate)(e),n=t.getFullYear(),a=(0,r.constructFrom)(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=(0,i.startOfISOWeek)(a),l=(0,r.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=(0,i.startOfISOWeek)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var r=n(49958),i=n(97909),o=n(97926)},41142:(e,t,n)=>{"use strict";t.getMinutes=function(e){const t=(0,r.toDate)(e);return t.getMinutes()};var r=n(97926)},58725:(e,t,n)=>{"use strict";t.getMonth=function(e){const t=(0,r.toDate)(e);return t.getMonth()};var r=n(97926)},26119:(e,t,n)=>{"use strict";t.getQuarter=function(e){const t=(0,r.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var r=n(97926)},39498:(e,t,n)=>{"use strict";t.getSeconds=function(e){const t=(0,r.toDate)(e);return t.getSeconds()};var r=n(97926)},48446:(e,t,n)=>{"use strict";t.getTime=function(e){const t=(0,r.toDate)(e);return t.getTime()};var r=n(97926)},78047:(e,t,n)=>{"use strict";t.getWeek=function(e,t){const n=(0,a.toDate)(e),s=+(0,i.startOfWeek)(n,t)-+(0,o.startOfWeekYear)(n,t);return Math.round(s/r.millisecondsInWeek)+1};var r=n(49790),i=n(43166),o=n(53811),a=n(97926)},26874:(e,t,n)=>{"use strict";t.getWeekYear=function(e,t){var n,s,l,c,u,d;const p=(0,o.toDate)(e),h=p.getFullYear(),f=(0,a.getDefaultOptions)(),m=null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:f.firstWeekContainsDate)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,g=(0,r.constructFrom)(e,0);g.setFullYear(h+1,0,m),g.setHours(0,0,0,0);const v=(0,i.startOfWeek)(g,t),y=(0,r.constructFrom)(e,0);y.setFullYear(h,0,m),y.setHours(0,0,0,0);const b=(0,i.startOfWeek)(y,t);return p.getTime()>=v.getTime()?h+1:p.getTime()>=b.getTime()?h:h-1};var r=n(49958),i=n(43166),o=n(97926),a=n(98827)},29742:(e,t,n)=>{"use strict";t.getYear=function(e){return(0,r.toDate)(e).getFullYear()};var r=n(97926)},13117:(e,t,n)=>{"use strict";t.isAfter=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getTime()>i.getTime()};var r=n(97926)},96192:(e,t,n)=>{"use strict";t.isBefore=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return+n<+i};var r=n(97926)},3811:(e,t)=>{"use strict";t.isDate=function(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},12023:(e,t,n)=>{"use strict";t.isEqual=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return+n===+i};var r=n(97926)},78048:(e,t,n)=>{"use strict";t.isSameDay=function(e,t){const n=(0,r.startOfDay)(e),i=(0,r.startOfDay)(t);return+n===+i};var r=n(47894)},88959:(e,t,n)=>{"use strict";t.isSameMonth=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()};var r=n(97926)},51689:(e,t,n)=>{"use strict";t.isSameQuarter=function(e,t){const n=(0,r.startOfQuarter)(e),i=(0,r.startOfQuarter)(t);return+n===+i};var r=n(93084)},91488:(e,t,n)=>{"use strict";t.isSameYear=function(e,t){const n=(0,r.toDate)(e),i=(0,r.toDate)(t);return n.getFullYear()===i.getFullYear()};var r=n(97926)},44229:(e,t,n)=>{"use strict";t.isValid=function(e){if(!(0,r.isDate)(e)&&"number"!==typeof e)return!1;const t=(0,i.toDate)(e);return!isNaN(Number(t))};var r=n(3811),i=n(97926)},62113:(e,t,n)=>{"use strict";t.isWithinInterval=function(e,t){const n=+(0,r.toDate)(e),[i,o]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return n>=i&&n<=o};var r=n(97926)},50742:(e,t)=>{"use strict";t.buildFormatLongFn=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},90304:(e,t)=>{"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},18330:(e,t)=>{"use strict";t.buildMatchFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}},89574:(e,t)=>{"use strict";t.buildMatchPatternFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(i.length)}}}},96220:(e,t,n)=>{"use strict";t.enUS=void 0;var r=n(80102),i=n(80263),o=n(43929),a=n(46737),s=n(99589);t.enUS={code:"en-US",formatDistance:r.formatDistance,formatLong:i.formatLong,formatRelative:o.formatRelative,localize:a.localize,match:s.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},80102:(e,t)=>{"use strict";t.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.formatDistance=(e,t,r)=>{let i;const o=n[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i}},80263:(e,t,n)=>{"use strict";t.formatLong=void 0;var r=n(50742);t.formatLong={date:(0,r.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},43929:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.formatRelative=(e,t,r,i)=>n[e]},46737:(e,t,n)=>{"use strict";t.localize=void 0;var r=n(90304);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},99589:(e,t,n)=>{"use strict";t.match=void 0;var r=n(18330),i=n(89574);t.match={ordinalNumber:(0,i.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},18049:(e,t,n)=>{"use strict";t.max=function(e){let t;return e.forEach((function(e){const n=(0,r.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)};var r=n(97926)},63699:(e,t,n)=>{"use strict";t.min=function(e){let t;return e.forEach((e=>{const n=(0,r.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)};var r=n(97926)},92644:(e,t,n)=>{"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return s.longFormatters}}),t.parse=function(e,t,n,v){var y,b,w,x,C,A,E,_,T,S,k,P,D,F;const N=(0,i.getDefaultOptions)(),I=null!==(y=null!==(b=null===v||void 0===v?void 0:v.locale)&&void 0!==b?b:N.locale)&&void 0!==y?y:o.defaultLocale,R=null!==(w=null!==(x=null!==(C=null!==(A=null===v||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==A?A:null===v||void 0===v||null===(E=v.locale)||void 0===E||null===(E=E.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==C?C:N.firstWeekContainsDate)&&void 0!==x?x:null===(_=N.locale)||void 0===_||null===(_=_.options)||void 0===_?void 0:_.firstWeekContainsDate)&&void 0!==w?w:1,O=null!==(T=null!==(S=null!==(k=null!==(P=null===v||void 0===v?void 0:v.weekStartsOn)&&void 0!==P?P:null===v||void 0===v||null===(D=v.locale)||void 0===D||null===(D=D.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==k?k:N.weekStartsOn)&&void 0!==S?S:null===(F=N.locale)||void 0===F||null===(F=F.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==T?T:0;if(""===t)return""===e?(0,a.toDate)(n):(0,r.constructFrom)(n,NaN);const j={firstWeekContainsDate:R,weekStartsOn:O,locale:I},M=[new u.DateToSystemTimezoneSetter],L=t.match(p).map((e=>{const t=e[0];if(t in s.longFormatters){return(0,s.longFormatters[t])(e,I.formatLong)}return e})).join("").match(d),B=[];for(let i of L){null!==v&&void 0!==v&&v.useAdditionalWeekYearTokens||!(0,l.isProtectedWeekYearToken)(i)||(0,l.warnOrThrowProtectedError)(i,t,e),null!==v&&void 0!==v&&v.useAdditionalDayOfYearTokens||!(0,l.isProtectedDayOfYearToken)(i)||(0,l.warnOrThrowProtectedError)(i,t,e);const o=i[0],a=c.parsers[o];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=B.find((e=>t.includes(e.token)||e.token===o));if(e)throw new RangeError("The format string mustn't contain `".concat(e.fullToken,"` and `").concat(i,"` at the same time"))}else if("*"===a.incompatibleTokens&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(i,"` and any other token at the same time"));B.push({token:o,fullToken:i});const s=a.run(e,i,I.match,j);if(!s)return(0,r.constructFrom)(n,NaN);M.push(s.setter),e=s.rest}else{if(o.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===i?i="'":"'"===o&&(i=i.match(h)[1].replace(f,"'")),0!==e.indexOf(i))return(0,r.constructFrom)(n,NaN);e=e.slice(i.length)}}if(e.length>0&&m.test(e))return(0,r.constructFrom)(n,NaN);const U=M.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>M.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let V=(0,a.toDate)(n);if(isNaN(V.getTime()))return(0,r.constructFrom)(n,NaN);const H={};for(const i of U){if(!i.validate(V,j))return(0,r.constructFrom)(n,NaN);const e=i.set(V,H,j);Array.isArray(e)?(V=e[0],Object.assign(H,e[1])):V=e}return(0,r.constructFrom)(n,V)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return c.parsers}});var r=n(49958),i=n(80538),o=n(50395),a=n(97926),s=n(64805),l=n(42972),c=n(26796),u=n(70301);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,f=/''/g,m=/\S/,g=/[a-zA-Z]/},99881:(e,t,n)=>{"use strict";t.Parser=void 0;var r=n(70301);t.Parser=class{run(e,t,n,i){const o=this.parse(e,t,n,i);return o?{setter:new r.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}},70301:(e,t,n)=>{"use strict";var r=n(58212).default;t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var i=n(49356),o=n(49958);class a{constructor(){r(this,"subPriority",0)}validate(e,t){return!0}}t.Setter=a;t.ValueSetter=class extends a{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}};t.DateToSystemTimezoneSetter=class extends a{constructor(){super(...arguments),r(this,"priority",10),r(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:(0,o.constructFrom)(e,(0,i.transpose)(e,Date))}}},46577:(e,t)=>{"use strict";t.timezonePatterns=t.numericPatterns=void 0;t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},26796:(e,t,n)=>{"use strict";t.parsers=void 0;var r=n(93566),i=n(36081),o=n(75018),a=n(98176),s=n(60124),l=n(43376),c=n(27349),u=n(2130),d=n(36331),p=n(32171),h=n(29061),f=n(76536),m=n(87474),g=n(70102),v=n(51343),y=n(66264),b=n(79885),w=n(16505),x=n(64853),C=n(3563),A=n(52567),E=n(58152),_=n(84529),T=n(92270),S=n(34284),k=n(72424),P=n(86027),D=n(28336),F=n(49806),N=n(90709),I=n(40890);t.parsers={G:new r.EraParser,y:new i.YearParser,Y:new o.LocalWeekYearParser,R:new a.ISOWeekYearParser,u:new s.ExtendedYearParser,Q:new l.QuarterParser,q:new c.StandAloneQuarterParser,M:new u.MonthParser,L:new d.StandAloneMonthParser,w:new p.LocalWeekParser,I:new h.ISOWeekParser,d:new f.DateParser,D:new m.DayOfYearParser,E:new g.DayParser,e:new v.LocalDayParser,c:new y.StandAloneLocalDayParser,i:new b.ISODayParser,a:new w.AMPMParser,b:new x.AMPMMidnightParser,B:new C.DayPeriodParser,h:new A.Hour1to12Parser,H:new E.Hour0to23Parser,K:new _.Hour0To11Parser,k:new T.Hour1To24Parser,m:new S.MinuteParser,s:new k.SecondParser,S:new P.FractionOfSecondParser,X:new D.ISOTimezoneWithZParser,x:new F.ISOTimezoneParser,t:new N.TimestampSecondsParser,T:new I.TimestampMillisecondsParser}},64853:(e,t,n)=>{"use strict";var r=n(58212).default;t.AMPMMidnightParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}}t.AMPMMidnightParser=a},16505:(e,t,n)=>{"use strict";var r=n(58212).default;t.AMPMParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}}t.AMPMParser=a},76536:(e,t,n)=>{"use strict";var r=n(58212).default;t.DateParser=void 0;var i=n(46577),o=n(99881),a=n(1157);const s=[31,28,31,30,31,30,31,31,30,31,30,31],l=[31,29,31,30,31,30,31,31,30,31,30,31];class c extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subPriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return(0,a.parseNumericPattern)(i.numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear(),r=(0,a.isLeapYearIndex)(n),i=e.getMonth();return r?t>=1&&t<=l[i]:t>=1&&t<=s[i]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}t.DateParser=c},87474:(e,t,n)=>{"use strict";var r=n(58212).default;t.DayOfYearParser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subpriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return(0,a.parseNumericPattern)(i.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear();return(0,a.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}t.DayOfYearParser=s},70102:(e,t,n)=>{"use strict";var r=n(58212).default;t.DayParser=void 0;var i=n(35389),o=n(99881);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,i.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.DayParser=a},3563:(e,t,n)=>{"use strict";var r=n(58212).default;t.DayPeriodParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}}t.DayPeriodParser=a},93566:(e,t,n)=>{"use strict";var r=n(58212).default;t.EraParser=void 0;var i=n(99881);class o extends i.Parser{constructor(){super(...arguments),r(this,"priority",140),r(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}t.EraParser=o},60124:(e,t,n)=>{"use strict";var r=n(58212).default;t.ExtendedYearParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return"u"===t?(0,o.parseNDigitsSigned)(4,e):(0,o.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}t.ExtendedYearParser=a},86027:(e,t,n)=>{"use strict";var r=n(58212).default;t.FractionOfSecondParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",30),r(this,"incompatibleTokens",["t","T"])}parse(e,t){return(0,o.mapValue)((0,o.parseNDigits)(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}}t.FractionOfSecondParser=a},84529:(e,t,n)=>{"use strict";var r=n(58212).default;t.Hour0To11Parser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return(0,a.parseNumericPattern)(i.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}t.Hour0To11Parser=s},58152:(e,t,n)=>{"use strict";var r=n(58212).default;t.Hour0to23Parser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return(0,a.parseNumericPattern)(i.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}}t.Hour0to23Parser=s},92270:(e,t,n)=>{"use strict";var r=n(58212).default;t.Hour1To24Parser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return(0,a.parseNumericPattern)(i.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}t.Hour1To24Parser=s},52567:(e,t,n)=>{"use strict";var r=n(58212).default;t.Hour1to12Parser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return(0,a.parseNumericPattern)(i.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}}t.Hour1to12Parser=s},79885:(e,t,n)=>{"use strict";var r=n(58212).default;t.ISODayParser=void 0;var i=n(25166),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,a.parseNDigits)(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return(0,a.mapValue)(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return(0,a.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return(0,a.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return(0,a.mapValue)(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,i.setISODay)(e,n)).setHours(0,0,0,0),e}}t.ISODayParser=s},49806:(e,t,n)=>{"use strict";var r=n(58212).default;t.ISOTimezoneParser=void 0;var i=n(49958),o=n(79973),a=n(46577),s=n(99881),l=n(1157);class c extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,l.parseTimezonePattern)(a.timezonePatterns.basic,e);case"xxxx":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,l.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.constructFrom)(e,e.getTime()-(0,o.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneParser=c},28336:(e,t,n)=>{"use strict";var r=n(58212).default;t.ISOTimezoneWithZParser=void 0;var i=n(49958),o=n(79973),a=n(46577),s=n(99881),l=n(1157);class c extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,l.parseTimezonePattern)(a.timezonePatterns.basic,e);case"XXXX":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,l.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.constructFrom)(e,e.getTime()-(0,o.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneWithZParser=c},29061:(e,t,n)=>{"use strict";var r=n(58212).default;t.ISOWeekParser=void 0;var i=n(16262),o=n(97909),a=n(46577),s=n(99881),l=n(1157);class c extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return(0,l.parseNumericPattern)(a.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,o.startOfISOWeek)((0,i.setISOWeek)(e,n))}}t.ISOWeekParser=c},98176:(e,t,n)=>{"use strict";var r=n(58212).default;t.ISOWeekYearParser=void 0;var i=n(97909),o=n(49958),a=n(99881),s=n(1157);class l extends a.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return"R"===t?(0,s.parseNDigitsSigned)(4,e):(0,s.parseNDigitsSigned)(t.length,e)}set(e,t,n){const r=(0,o.constructFrom)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,i.startOfISOWeek)(r)}}t.ISOWeekYearParser=l},51343:(e,t,n)=>{"use strict";var r=n(58212).default;t.LocalDayParser=void 0;var i=n(35389),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),i);case"eo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,i.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.LocalDayParser=s},32171:(e,t,n)=>{"use strict";var r=n(58212).default;t.LocalWeekParser=void 0;var i=n(53083),o=n(43166),a=n(46577),s=n(99881),l=n(1157);class c extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return(0,l.parseNumericPattern)(a.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,o.startOfWeek)((0,i.setWeek)(e,n,r),r)}}t.LocalWeekParser=c},75018:(e,t,n)=>{"use strict";var r=n(58212).default;t.LocalWeekYearParser=void 0;var i=n(26874),o=n(43166),a=n(99881),s=n(1157);class l extends a.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,s.mapValue)((0,s.parseNDigits)(4,e),r);case"Yo":return(0,s.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,s.mapValue)((0,s.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=(0,i.getWeekYear)(e,r);if(n.isTwoDigitYear){const t=(0,s.normalizeTwoDigitYear)(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,o.startOfWeek)(e,r)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,o.startOfWeek)(e,r)}}t.LocalWeekYearParser=l},34284:(e,t,n)=>{"use strict";var r=n(58212).default;t.MinuteParser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",60),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return(0,a.parseNumericPattern)(i.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}}t.MinuteParser=s},2130:(e,t,n)=>{"use strict";var r=n(58212).default;t.MonthParser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),r(this,"priority",110)}parse(e,t,n){const r=e=>e-1;switch(t){case"M":return(0,a.mapValue)((0,a.parseNumericPattern)(i.numericPatterns.month,e),r);case"MM":return(0,a.mapValue)((0,a.parseNDigits)(2,e),r);case"Mo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=s},43376:(e,t,n)=>{"use strict";var r=n(58212).default;t.QuarterParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return(0,o.parseNDigits)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}t.QuarterParser=a},72424:(e,t,n)=>{"use strict";var r=n(58212).default;t.SecondParser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",50),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return(0,a.parseNumericPattern)(i.numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}}t.SecondParser=s},66264:(e,t,n)=>{"use strict";var r=n(58212).default;t.StandAloneLocalDayParser=void 0;var i=n(35389),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),i);case"co":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=(0,i.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.StandAloneLocalDayParser=s},36331:(e,t,n)=>{"use strict";var r=n(58212).default;t.StandAloneMonthParser=void 0;var i=n(46577),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",110),r(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const r=e=>e-1;switch(t){case"L":return(0,a.mapValue)((0,a.parseNumericPattern)(i.numericPatterns.month,e),r);case"LL":return(0,a.mapValue)((0,a.parseNDigits)(2,e),r);case"Lo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.StandAloneMonthParser=s},27349:(e,t,n)=>{"use strict";var r=n(58212).default;t.StandAloneQuarterParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return(0,o.parseNDigits)(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}t.StandAloneQuarterParser=a},40890:(e,t,n)=>{"use strict";var r=n(58212).default;t.TimestampMillisecondsParser=void 0;var i=n(49958),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",20),r(this,"incompatibleTokens","*")}parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,i.constructFrom)(e,n),{timestampIsSet:!0}]}}t.TimestampMillisecondsParser=s},90709:(e,t,n)=>{"use strict";var r=n(58212).default;t.TimestampSecondsParser=void 0;var i=n(49958),o=n(99881),a=n(1157);class s extends o.Parser{constructor(){super(...arguments),r(this,"priority",40),r(this,"incompatibleTokens","*")}parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,i.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}}t.TimestampSecondsParser=s},36081:(e,t,n)=>{"use strict";var r=n(58212).default;t.YearParser=void 0;var i=n(99881),o=n(1157);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,o.mapValue)((0,o.parseNDigits)(4,e),r);case"yo":return(0,o.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,o.mapValue)((0,o.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=(0,o.normalizeTwoDigitYear)(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}t.YearParser=a},1157:(e,t,n)=>{"use strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},t.isLeapYearIndex=function(e){return e%400===0||e%4===0&&e%100!==0},t.mapValue=function(e,t){if(!e)return e;return{value:t(e.value),rest:e.rest}},t.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i},t.parseAnyDigitsSigned=function(e){return o(i.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return o(i.numericPatterns.singleDigit,t);case 2:return o(i.numericPatterns.twoDigits,t);case 3:return o(i.numericPatterns.threeDigits,t);case 4:return o(i.numericPatterns.fourDigits,t);default:return o(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return o(i.numericPatterns.singleDigitSigned,t);case 2:return o(i.numericPatterns.twoDigitsSigned,t);case 3:return o(i.numericPatterns.threeDigitsSigned,t);case 4:return o(i.numericPatterns.fourDigitsSigned,t);default:return o(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=o,t.parseTimezonePattern=function(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const i="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:i*(o*r.millisecondsInHour+a*r.millisecondsInMinute+s*r.millisecondsInSecond),rest:t.slice(n[0].length)}};var r=n(49790),i=n(46577);function o(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},73891:(e,t,n)=>{"use strict";t.parseISO=function(e,t){var n;const p=null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2,h=function(e){const t={},n=e.split(i.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],i.timeZoneDelimiter.test(t.date)&&(t.date=e.split(i.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=i.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let f;if(h.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(h.date,p);f=function(e,t){if(null===t)return new Date(NaN);const n=e.match(o);if(!n)return new Date(NaN);const r=!!n[4],i=l(n[1]),a=l(n[2])-1,s=l(n[3]),c=l(n[4]),p=l(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,p)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,c,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(u[t]||(d(e)?29:28))}(t,a,s)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,i)?(e.setUTCFullYear(t,a,Math.max(i,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!f||isNaN(f.getTime()))return new Date(NaN);const m=f.getTime();let g,v=0;if(h.time&&(v=function(e){const t=e.match(a);if(!t)return NaN;const n=c(t[1]),i=c(t[2]),o=c(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o))return NaN;return n*r.millisecondsInHour+i*r.millisecondsInMinute+1e3*o}(h.time),isNaN(v)))return new Date(NaN);if(!h.timezone){const e=new Date(m+v),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}if(g=function(e){if("Z"===e)return 0;const t=e.match(s);if(!t)return 0;const n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(i*r.millisecondsInHour+o*r.millisecondsInMinute)}(h.timezone),isNaN(g))return new Date(NaN);return new Date(m+v+g)};var r=n(49790);const i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},o=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,a=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,s=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400===0||e%4===0&&e%100!==0}},32159:(e,t,n)=>{"use strict";t.set=function(e,t){let n=(0,o.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);null!=t.year&&n.setFullYear(t.year);null!=t.month&&(n=(0,i.setMonth)(n,t.month));null!=t.date&&n.setDate(t.date);null!=t.hours&&n.setHours(t.hours);null!=t.minutes&&n.setMinutes(t.minutes);null!=t.seconds&&n.setSeconds(t.seconds);null!=t.milliseconds&&n.setMilliseconds(t.milliseconds);return n};var r=n(49958),i=n(6593),o=n(97926)},35389:(e,t,n)=>{"use strict";t.setDay=function(e,t,n){var a,s,l,c,u,d;const p=(0,o.getDefaultOptions)(),h=null!==(a=null!==(s=null!==(l=null!==(c=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==c?c:null===n||void 0===n||null===(u=n.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(d=p.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==a?a:0,f=(0,i.toDate)(e),m=f.getDay(),g=(t%7+7)%7,v=7-h,y=t<0||t>6?t-(m+v)%7:(g+v)%7-(m+v)%7;return(0,r.addDays)(f,y)};var r=n(13587),i=n(97926),o=n(98827)},22820:(e,t,n)=>{"use strict";t.setHours=function(e,t){const n=(0,r.toDate)(e);return n.setHours(t),n};var r=n(97926)},25166:(e,t,n)=>{"use strict";t.setISODay=function(e,t){const n=(0,o.toDate)(e),a=(0,i.getISODay)(n),s=t-a;return(0,r.addDays)(n,s)};var r=n(13587),i=n(30858),o=n(97926)},16262:(e,t,n)=>{"use strict";t.setISOWeek=function(e,t){const n=(0,i.toDate)(e),o=(0,r.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*o),n};var r=n(85354),i=n(97926)},23610:(e,t,n)=>{"use strict";t.setMinutes=function(e,t){const n=(0,r.toDate)(e);return n.setMinutes(t),n};var r=n(97926)},6593:(e,t,n)=>{"use strict";t.setMonth=function(e,t){const n=(0,o.toDate)(e),a=n.getFullYear(),s=n.getDate(),l=(0,r.constructFrom)(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const c=(0,i.getDaysInMonth)(l);return n.setMonth(t,Math.min(s,c)),n};var r=n(49958),i=n(26621),o=n(97926)},43035:(e,t,n)=>{"use strict";t.setQuarter=function(e,t){const n=(0,i.toDate)(e),o=Math.trunc(n.getMonth()/3)+1,a=t-o;return(0,r.setMonth)(n,n.getMonth()+3*a)};var r=n(6593),i=n(97926)},52374:(e,t,n)=>{"use strict";t.setSeconds=function(e,t){const n=(0,r.toDate)(e);return n.setSeconds(t),n};var r=n(97926)},53083:(e,t,n)=>{"use strict";t.setWeek=function(e,t,n){const o=(0,i.toDate)(e),a=(0,r.getWeek)(o,n)-t;return o.setDate(o.getDate()-7*a),o};var r=n(78047),i=n(97926)},57530:(e,t,n)=>{"use strict";t.setYear=function(e,t){const n=(0,i.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);return n.setFullYear(t),n};var r=n(49958),i=n(97926)},47894:(e,t,n)=>{"use strict";t.startOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(0,0,0,0),t};var r=n(97926)},97909:(e,t,n)=>{"use strict";t.startOfISOWeek=function(e){return(0,r.startOfWeek)(e,{weekStartsOn:1})};var r=n(43166)},17460:(e,t,n)=>{"use strict";t.startOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,o.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,i.startOfISOWeek)(n)};var r=n(79383),i=n(97909),o=n(49958)},20502:(e,t,n)=>{"use strict";t.startOfMonth=function(e){const t=(0,r.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(97926)},93084:(e,t,n)=>{"use strict";t.startOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t};var r=n(97926)},43166:(e,t,n)=>{"use strict";t.startOfWeek=function(e,t){var n,o,a,s,l,c;const u=(0,i.getDefaultOptions)(),d=null!==(n=null!==(o=null!==(a=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==o?o:null===(c=u.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0,p=(0,r.toDate)(e),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p};var r=n(97926),i=n(98827)},53811:(e,t,n)=>{"use strict";t.startOfWeekYear=function(e,t){var n,s,l,c,u,d;const p=(0,a.getDefaultOptions)(),h=null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==s?s:null===(d=p.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,f=(0,i.getWeekYear)(e,t),m=(0,r.constructFrom)(e,0);m.setFullYear(f,0,h),m.setHours(0,0,0,0);return(0,o.startOfWeek)(m,t)};var r=n(49958),i=n(26874),o=n(43166),a=n(98827)},627:(e,t,n)=>{"use strict";t.startOfYear=function(e){const t=(0,r.toDate)(e),n=(0,i.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var r=n(97926),i=n(49958)},29842:(e,t,n)=>{"use strict";t.subDays=function(e,t){return(0,r.addDays)(e,-t)};var r=n(13587)},54366:(e,t,n)=>{"use strict";t.subMonths=function(e,t){return(0,r.addMonths)(e,-t)};var r=n(66627)},46888:(e,t,n)=>{"use strict";t.subQuarters=function(e,t){return(0,r.addQuarters)(e,-t)};var r=n(88929)},19116:(e,t,n)=>{"use strict";t.subWeeks=function(e,t){return(0,r.addWeeks)(e,-t)};var r=n(71583)},15971:(e,t,n)=>{"use strict";t.subYears=function(e,t){return(0,r.addYears)(e,-t)};var r=n(73820)},97926:(e,t)=>{"use strict";t.toDate=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}},49356:(e,t,n)=>{"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,r.constructFrom)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n};var r=n(49958)},73969:(e,t,n)=>{"use strict";var r=n(61462),i=n(86756);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function O(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var j,M=Object.assign;function L(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function V(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case C:return"Portal";case _:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case F:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ae=null,Ee=null;function _e(e){if(e=bi(e)){if("function"!==typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Ce(e.stateNode,e.type,t))}}function Te(e){Ae?Ee?Ee.push(e):Ee=[e]:Ae=e}function Se(){if(Ae){var e=Ae,t=Ee;if(Ee=Ae=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function ke(e,t){return e(t)}function Pe(){}var De=!1;function Fe(e,t,n){if(De)return e(t,n);De=!0;try{return ke(e,t,n)}finally{De=!1,(null!==Ae||null!==Ee)&&(Pe(),Se())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Ie=!1}function Oe(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,Me=null,Le=!1,Be=null,Ue={onError:function(e){je=!0,Me=e}};function Ve(e,t,n,r,i,o,a,s,l){je=!1,Me=null,Oe.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ze=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,At,Et,_t,Tt=!1,St=[],kt=null,Pt=null,Dt=null,Ft=new Map,Nt=new Map,It=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function jt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mt(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void _t(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Lt(e)&&n.delete(t)}function Ut(){Tt=!1,null!==kt&&Lt(kt)&&(kt=null),null!==Pt&&Lt(Pt)&&(Pt=null),null!==Dt&&Lt(Dt)&&(Dt=null),Ft.forEach(Bt),Nt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return Vt(t,e)}if(0<St.length){Vt(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Vt(kt,e),null!==Pt&&Vt(Pt,e),null!==Dt&&Vt(Dt,e),Ft.forEach(t),Nt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Mt(n),null===n.blockedOn&&It.shift()}var zt=w.ReactCurrentBatchConfig,Wt=!0;function qt(e,t,n,r){var i=bt,o=zt.transition;zt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=i,zt.transition=o}}function Gt(e,t,n,r){var i=bt,o=zt.transition;zt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=i,zt.transition=o}}function Yt(e,t,n,r){if(Wt){var i=Qt(e,t,n,r);if(null===i)Wr(e,t,r,Kt,n),Ot(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=jt(kt,e,t,n,r,i),!0;case"dragenter":return Pt=jt(Pt,e,t,n,r,i),!0;case"mouseover":return Dt=jt(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ft.set(o,jt(Ft.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Nt.set(o,jt(Nt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Qt(e,t,n,r))&&Wr(e,t,r,Kt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=yi(e=xe(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,$t=null;function en(){if($t)return $t;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=M({},cn,{view:0,detail:0}),pn=on(dn),hn=M({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),mn=on(M({},hn,{dataTransfer:0})),gn=on(M({},dn,{relatedTarget:0})),vn=on(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(M({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function _n(){return En}var Tn=M({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=on(Tn),kn=on(M({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(M({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Dn=on(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=M({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=on(Fn),In=[9,13,27,32],Rn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var jn=u&&"TextEvent"in window&&!On,Mn=u&&(!Rn||On&&8<On&&11>=On),Ln=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Gr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Kn(e){Lr(e,0)}function Qn(e){if(Y(wi(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Jn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Jn=$n}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];qn(t,Yn,e,xe(e)),Fe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function or(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Ar={},Er={};function _r(e){if(Ar[e])return Ar[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Ar[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Tr=_r("animationend"),Sr=_r("animationiteration"),kr=_r("animationstart"),Pr=_r("transitionend"),Dr=new Map,Fr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Dr.set(e,t),l(t,[e])}for(var Ir=0;Ir<Fr.length;Ir++){var Rr=Fr[Ir];Nr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Nr(Tr,"onAnimationEnd"),Nr(Sr,"onAnimationIteration"),Nr(kr,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ve.apply(this,arguments),je){if(!je)throw Error(o(198));var u=Me;je=!1,Me=null,Le||(Le=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Mr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Mr(i,s,c),o=l}}}if(Le)throw e=Be,Le=!1,Be=null,e}function Br(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Xt(t)){case 1:var i=qt;break;case 4:i=Gt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Fe((function(){var r=o,i=xe(n),a=[];e:{var s=Dr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Tr:case Sr:case kr:l=vn;break;case Pr:l=Dn;break;case"scroll":l=pn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Ne(f,p))&&u.push(qr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=kn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:wi(l),h=null==c?s:wi(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,yi(i)===r&&((u=new u(p,f+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Yr(h))f++;for(h=0,m=p;m;m=Yr(m))h++;for(;0<f-h;)u=Yr(u),f--;for(;0<h-f;)p=Yr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Yr(u),p=Yr(p)}u=null}else u=null;null!==l&&Kr(a,s,l,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(l=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Wn(s))if(Zn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?qn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),$t=Jt=Zt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Lr(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ne(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Ne(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ne(n,o))&&a.unshift(qr(n,l,s)):i||null!=(l=Ne(n,o))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(o(425))}function $r(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),pi="__reactFiber$"+di,hi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[pi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[pi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[hi]||null}var Ci=[],Ai=-1;function Ei(e){return{current:e}}function _i(e){0>Ai||(e.current=Ci[Ai],Ci[Ai]=null,Ai--)}function Ti(e,t){Ai++,Ci[Ai]=e.current,e.current=t}var Si={},ki=Ei(Si),Pi=Ei(!1),Di=Si;function Fi(e,t){var n=e.type.contextTypes;if(!n)return Si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ni(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){_i(Pi),_i(ki)}function Ri(e,t,n){if(ki.current!==Si)throw Error(o(168));Ti(ki,t),Ti(Pi,n)}function Oi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,z(e)||"Unknown",i));return M({},n,r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Di=ki.current,Ti(ki,e),Ti(Pi,Pi.current),!0}function Mi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Oi(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,_i(Pi),_i(ki),Ti(ki,e)):_i(Pi),Ti(Pi,n)}var Li=null,Bi=!1,Ui=!1;function Vi(e){null===Li?Li=[e]:Li.push(e)}function Hi(){if(!Ui&&null!==Li){Ui=!0;var e=0,t=bt;try{var n=Li;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Bi=!1}catch(i){throw null!==Li&&(Li=Li.slice(e+1)),Ye($e,Hi),i}finally{bt=t,Ui=!1}}return null}var zi=[],Wi=0,qi=null,Gi=0,Yi=[],Ki=0,Qi=null,Xi=1,Zi="";function Ji(e,t){zi[Wi++]=Gi,zi[Wi++]=qi,qi=e,Gi=t}function $i(e,t,n){Yi[Ki++]=Xi,Yi[Ki++]=Zi,Yi[Ki++]=Qi,Qi=e;var r=Xi;e=Zi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Zi=o+e}else Xi=1<<o|n<<i|r,Zi=e}function eo(e){null!==e.return&&(Ji(e,1),$i(e,1,0))}function to(e){for(;e===qi;)qi=zi[--Wi],zi[Wi]=null,Gi=zi[--Wi],zi[Wi]=null;for(;e===Qi;)Qi=Yi[--Ki],Yi[Ki]=null,Zi=Yi[--Ki],Yi[Ki]=null,Xi=Yi[--Ki],Yi[Ki]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Fc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Xi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Fc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===A?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===N&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Oc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case C:return(t=Lc(t,e.mode,n)).return=e,t;case N:return p(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Oc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null;case N:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||O(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||O(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=O(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===A){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===N&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===A?((o=Oc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Lc(a,r.mode,l)).return=r,r=o}return s(r);case N:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(O(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Mc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var xo=wo(!0),Co=wo(!1),Ao=Ei(null),Eo=null,_o=null,To=null;function So(){To=_o=Eo=null}function ko(e){var t=Ao.current;_i(Ao),e._currentValue=t}function Po(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Do(e,t){Eo=e,To=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Fo(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===Eo)throw Error(o(308));_o=e,Eo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var No=null;function Io(e){null===No?No=[e]:No.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Io(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var jo=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&kl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oo(e,n)}return null===(i=r.interleaved)?(t.next=t,Io(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oo(e,n)}function Vo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,r){var i=e.updateQueue;jo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(p="function"===typeof(f=m.payload)?f.call(h,d,p):f)||void 0===p)break e;d=M({},d,p);break e;case 2:jo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var qo={},Go=Ei(qo),Yo=Ei(qo),Ko=Ei(qo);function Qo(e){if(e===qo)throw Error(o(174));return e}function Xo(e,t){switch(Ti(Ko,t),Ti(Yo,e),Ti(Go,qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_i(Go),Ti(Go,t)}function Zo(){_i(Go),_i(Yo),_i(Ko)}function Jo(e){Qo(Ko.current);var t=Qo(Go.current),n=le(t,e.type);t!==n&&(Ti(Yo,e),Ti(Go,n))}function $o(e){Yo.current===e&&(_i(Go),_i(Yo))}var ea=Ei(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,ha=0;function fa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?$a:es,e=n(r,i),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,sa.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,jl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Aa(){}function Ea(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,ja(Sa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Fa(9,Ta.bind(null,n,r,i,t),void 0,null),null===Pl)throw Error(o(349));0!==(30&aa)||_a(n,t,i)}return i}function _a(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Pa(e)}function Sa(e,t,n){return n((function(){ka(t)&&Pa(e)}))}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Pa(e){var t=Oo(e,1);null!==t&&nc(t,e,1,-1)}function Da(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Na(){return ba().memoizedState}function Ia(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Fa(t,n,o,r))}sa.flags|=e,i.memoizedState=Fa(1|t,n,o,r)}function Oa(e,t){return Ia(8390656,8,e,t)}function ja(e,t){return Ra(2048,8,e,t)}function Ma(e,t){return Ra(4,2,e,t)}function La(e,t){return Ra(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4,4,Ba.bind(null,t,e),n)}function Va(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function za(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,jl|=n,e.baseState=!0),t)}function qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ga(){return ba().memoizedState}function Ya(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Xa(t,n);else if(null!==(n=Ro(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function Ka(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Io(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ro(e,t,i,r))&&(nc(n,e,r,i=ec()),Za(n,t,r))}}function Qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Fo,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},$a={readContext:Fo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Fo,useEffect:Oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ia(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Da,useDebugValue:Va,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=qa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!==(30&aa)||_a(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Oa(Sa.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Ta.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Pl.identifierPrefix;if(io){var n=Zi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Fo,useCallback:Ha,useContext:Fo,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Ma,useLayoutEffect:La,useMemo:za,useReducer:xa,useRef:Na,useState:function(){return xa(wa)},useDebugValue:Va,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Ea,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Fo,useCallback:Ha,useContext:Fo,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Ma,useLayoutEffect:La,useMemo:za,useReducer:Ca,useRef:Na,useState:function(){return Ca(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Ea,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Bo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nc(t,e,i,r),Vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Bo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nc(t,e,i,r),Vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Bo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(nc(t,e,r,n),Vo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Si,o=t.contextType;return"object"===typeof o&&null!==o?o=Fo(o):(i=Ni(t)?Di:ki.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Fi(e,i):Si),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Mo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Fo(o):(o=Ni(t)?Di:ki.current,i.context=Fi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),zo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,ql=r),ds(0,t)},n}function fs(e,t,n){(n=Bo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Co(t,null,n,r):xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Do(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Cs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Nc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,As(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ws(e,t,i)}return t.flags|=1,(e=Ic(o,r)).ref=t.ref,e.return=t,t.child=e}function As(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ws(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Ts(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Il,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Il,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ti(Il,Nl),Nl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ti(Il,Nl),Nl|=r;return ws(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var o=Ni(n)?Di:ki.current;return o=Fi(t,o),Do(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Ss(e,t,n,r,i){if(Ni(n)){var o=!0;ji(t)}else o=!1;if(Do(t,i),null===t.stateNode)zs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Fo(c):c=Fi(t,c=Ni(n)?Di:ki.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),jo=!1;var p=t.memoizedState;a.state=p,zo(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Pi.current||jo?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=jo||os(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Fo(l):l=Fi(t,l=Ni(n)?Di:ki.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),jo=!1,p=t.memoizedState,a.state=p,zo(t,r,a,i);var f=t.memoizedState;s!==d||p!==f||Pi.current||jo?("function"===typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=jo||os(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,o,i)}function ks(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Mi(t,n,!1),Ws(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Mi(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Xo(e,t.containerInfo)}function Ds(e,t,n,r,i){return fo(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Fs,Ns,Is,Rs,Os={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=jc(l,i,0,null),e=Oc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Os,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=jc({mode:"visible",children:r.children},i,0,null),(a=Oc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Os,a);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Oo(e,i),nc(r,e,i,-1))}return mc(),Bs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Sc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Yi[Ki++]=Xi,Yi[Ki++]=Zi,Yi[Ki++]=Qi,Xi=e.id,Zi=e.overflow,Qi=t),t=Ls(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Ic(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Ic(r,s):(s=Oc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Os,i}return e=(s=e.child).sibling,i=Ic(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ls(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mo(r),xo(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Po(e.return,t,n)}function Vs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ti(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Vs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Ni(t.type)&&Ii(),Gs(t),null;case 3:return r=t.stateNode,Zo(),_i(Pi),_i(ki),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ns(e,t),Gs(t),null;case 5:$o(t);var i=Qo(Ko.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=Qo(Go.current),po(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)Br(Or[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":G(r),$(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=$r)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pi]=t,e[hi]=r,Fs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Br(Or[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":X(e,r),i=Q(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=M({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":G(e),$(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Qo(Ko.current),Qo(Go.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=t,t.stateNode=r}return Gs(t),null;case 13:if(_i(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),fo(),t.flags|=98560,a=!1;else if(a=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[pi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Zo(),Ns(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return ko(t.type._context),Gs(t),null;case 19:if(_i(ea),null===(a=t.memoizedState))return Gs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)qs(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,qs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Hl&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Gs(t),null}else 2*Ze()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,Ti(ea,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Ni(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),_i(Pi),_i(ki),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $o(t),null;case 13:if(_i(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _i(ea),null;case 4:return Zo(),null;case 10:return ko(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Fs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qo(Go.current);var o,a=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),a=[];break;case"select":i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Xs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[hi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Xs||$s(n,t);case 6:var r=ul,i=dl;ul=null,pl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Xs&&($s(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=kc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Ec(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Ec(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Ec(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&$s(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&$s(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(g){Ec(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(i,p):"dangerouslySetInnerHTML"===d?de(i,p):"children"===d?pe(i,p):b(i,d,p,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(i,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(g){Ec(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Ec(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){Ec(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Vl=Ze())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(f=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$s(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ec(r,n,g)}}break;case 5:$s(h,h.return);break;case 22:if(null!==h.memoizedState){xl(p);continue}}null!==f?(f.return=h,Js=f):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Ec(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Ec(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),vl(e),4&r&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Qs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Qs;var c=Xs;if(Qs=a,(Xs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Cl(i):null!==l?(l.return=a,Js=l):Cl(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Qs=s,Xs=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&il(t)}catch(h){Ec(t,t.return,h)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Cl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ec(t,i,l)}}var o=t.return;try{il(t)}catch(l){Ec(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Ec(t,a,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Al,El=Math.ceil,_l=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Sl=w.ReactCurrentBatchConfig,kl=0,Pl=null,Dl=null,Fl=0,Nl=0,Il=Ei(0),Rl=0,Ol=null,jl=0,Ml=0,Ll=0,Bl=null,Ul=null,Vl=0,Hl=1/0,zl=null,Wl=!1,ql=null,Gl=null,Yl=!1,Kl=null,Ql=0,Xl=0,Zl=null,Jl=-1,$l=0;function ec(){return 0!==(6&kl)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&kl)&&0!==Fl?Fl&-Fl:null!==go.transition?(0===$l&&($l=mt()),$l):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,r){if(50<Xl)throw Xl=0,Zl=null,Error(o(185));vt(e,n,r),0!==(2&kl)&&e===Pl||(e===Pl&&(0===(2&kl)&&(Ml|=n),4===Rl&&sc(e,Fl)),rc(e,r),1===n&&0===kl&&0===(1&t.mode)&&(Hl=Ze()+500,Bi&&Hi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Pl?Fl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Bi=!0,Vi(e)}(lc.bind(null,e)):Vi(lc.bind(null,e)),ai((function(){0===(6&kl)&&Hi()})),n=null;else{switch(wt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,$l=0,0!==(6&kl))throw Error(o(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Fl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=kl;kl|=2;var a=fc();for(Pl===e&&Fl===t||(zl=null,Hl=Ze()+500,pc(e,t));;)try{yc();break}catch(l){hc(e,l)}So(),_l.current=a,kl=i,null!==Dl?t=0:(Pl=null,Fl=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=oc(e,i))),1===t)throw n=Ol,pc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ft(e))&&(r=a,t=oc(e,a))),1===t))throw n=Ol,pc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Ul,zl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Vl+500-Ze())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Ul,zl),t);break}xc(e,Ul,zl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Ul,zl),r);break}xc(e,Ul,zl);break;default:throw Error(o(329))}}}return rc(e,Ze()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ul,Ul=n,null!==t&&ac(t)),e}function ac(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~Ll,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&kl))throw Error(o(327));Cc();var t=pt(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Ol,pc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Ul,zl),rc(e,Ze()),null}function cc(e,t){var n=kl;kl|=1;try{return e(t)}finally{0===(kl=n)&&(Hl=Ze()+500,Bi&&Hi())}}function uc(e){null!==Kl&&0===Kl.tag&&0===(6&kl)&&Cc();var t=kl;kl|=1;var n=Sl.transition,r=bt;try{if(Sl.transition=null,bt=1,e)return e()}finally{bt=r,Sl.transition=n,0===(6&(kl=t))&&Hi()}}function dc(){Nl=Il.current,_i(Il)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Dl)for(n=Dl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:Zo(),_i(Pi),_i(ki),ra();break;case 5:$o(r);break;case 4:Zo();break;case 13:case 19:_i(ea);break;case 10:ko(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Pl=e,Dl=e=Ic(e.current,null),Fl=Nl=t,Rl=0,Ol=null,Ll=Ml=jl=0,Ul=Bl=null,null!==No){for(t=0;t<No.length;t++)if(null!==(r=(n=No[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}No=null}return e}function hc(e,t){for(;;){var n=Dl;try{if(So(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,Tl.current=null,null===n||null===n.return){Rl=1,Ol=t,Dl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Fl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&ms(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Gl||!Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function fc(){var e=_l.current;return _l.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Pl||0===(268435455&jl)&&0===(268435455&Ml)||sc(Pl,Fl)}function gc(e,t){var n=kl;kl|=2;var r=fc();for(Pl===e&&Fl===t||(zl=null,pc(e,t));;)try{vc();break}catch(i){hc(e,i)}if(So(),kl=n,_l.current=r,null!==Dl)throw Error(o(261));return Pl=null,Fl=0,Rl}function vc(){for(;null!==Dl;)bc(Dl)}function yc(){for(;null!==Dl&&!Qe();)bc(Dl)}function bc(e){var t=Al(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wc(e):Dl=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ys(n,t,Nl)))return void(Dl=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Rl=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Rl&&(Rl=5)}function xc(e,t,n){var r=bt,i=Sl.transition;try{Sl.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Kl);if(0!==(6&kl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Pl&&(Dl=Pl=null,Fl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Pc(tt,(function(){return Cc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Sl.transition,Sl.transition=null;var s=bt;bt=1;var l=kl;kl|=4,Tl.current=null,function(e,t){if(ei=Wt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===i&&(l=s),h===a&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Ec(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(ti),Wt=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Xe(),kl=l,bt=s,Sl.transition=a}else e.current=n;if(Yl&&(Yl=!1,Kl=e,Ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=ql,ql=null,e;0!==(1&Ql)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Zl?Xl++:(Xl=0,Zl=e):Xl=0,Hi()}(e,t,n,r)}finally{Sl.transition=i,bt=r}return null}function Cc(){if(null!==Kl){var e=wt(Ql),t=Sl.transition,n=bt;try{if(Sl.transition=null,bt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Ql=0,0!==(6&kl))throw Error(o(331));var i=kl;for(kl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var h=(d=Js).sibling,f=d.return;if(ol(d),d===u){Js=null;break}if(null!==h){h.return=f,Js=h;break}Js=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){Ec(l,l.return,C)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(kl=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(C){}r=!0}return r}finally{bt=n,Sl.transition=t}}return!1}function Ac(e,t,n){e=Uo(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Ec(e,t,n){if(3===e.tag)Ac(e,e,n);else for(;null!==t;){if(3===t.tag){Ac(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Uo(t,e=fs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Fl&n)===n&&(4===Rl||3===Rl&&(130023424&Fl)===Fl&&500>Ze()-Vl?pc(e,0):Ll|=n),rc(e,t)}function Tc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Oo(e,t))&&(vt(e,t,n),rc(e,n))}function Sc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function kc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tc(e,n)}function Pc(e,t){return Ye(e,t)}function Dc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fc(e,t,n,r){return new Dc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=Fc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Nc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return Oc(n.children,i,a,t);case E:s=8,i|=8;break;case _:return(e=Fc(12,n,t,2|i)).elementType=_,e.lanes=a,e;case P:return(e=Fc(13,n,t,i)).elementType=P,e.lanes=a,e;case D:return(e=Fc(19,n,t,i)).elementType=D,e.lanes=a,e;case I:return jc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case S:s=9;break e;case k:s=11;break e;case F:s=14;break e;case N:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fc(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Oc(e,t,n,r){return(e=Fc(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Fc(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Fc(6,e,null,t)).lanes=n,e}function Lc(e,t,n){return(t=Fc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,o,a,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Fc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Vc(e){if(!e)return Si;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ni(n))return Oi(e,n,t)}return t}function Hc(e,t,n,r,i,o,a,s,l){return(e=Uc(n,r,!0,e,0,o,0,s,l)).context=Vc(null),n=e.current,(o=Bo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Uo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function zc(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(nc(e,i,a,o),Vo(e,i,a)),a}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Al=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pi.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),fo();break;case 5:Jo(t);break;case 1:Ni(t.type)&&ji(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ti(Ao,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(Ti(ea,1&ea.current),null!==(e=Ws(e,t,n))?e.sibling:null);Ti(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&$i(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zs(e,t),e=t.pendingProps;var i=Fi(t,ki.current);Do(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(r)?(a=!0,ji(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Mo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=ks(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Nc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===k)return 11;if(e===F)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Ss(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ps(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Lo(e,t),zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Ds(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Co(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Ws(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ms(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ti(Ao,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Pi.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Po(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Po(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Do(t,n),r=r(i=Fo(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Cs(e,t,r,i=ns(r.type,i),n);case 15:return As(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),zs(e,t),t.tag=1,Ni(r)?(e=!0,ji(t)):e=!1,Do(t,n),as(t,r,i),ls(t,r,i,n),ks(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function $c(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Wc(a);s.call(e)}}zc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Wc(a);o.call(e)}}var a=Hc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[fi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Wc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[fi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc((function(){zc(t,l,n,r)})),l}(n,t,e,i,r);return Wc(a)}Qc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));zc(e,t,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){zc(null,e,null,null)})),t[fi]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Mt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&kl)&&(Hl=Ze()+500,Hi()))}break;case 13:uc((function(){var t=Oo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Gc(e,1)}},Ct=function(e){if(13===e.tag){var t=Oo(e,134217728);if(null!==t)nc(t,e,134217728,ec());Gc(e,134217728)}},At=function(e){if(13===e.tag){var t=tc(e),n=Oo(e,t);if(null!==n)nc(n,e,t,ec());Gc(e,t)}},Et=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));Y(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},ke=cc,Pe=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,Te,Se,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,r="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return $c(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,i,0,a,s),e[fi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Qc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return $c(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){$c(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return $c(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},55808:(e,t,n)=>{"use strict";var r=n(72551);t.H=r.createRoot,r.hydrateRoot},72551:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(73969)},36813:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!==typeof Element;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,l,c,u=t(e),d=t(a);if(u&&d){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(!o(e[s],a[s]))return!1;return!0}if(u!=d)return!1;var p=e instanceof Date,h=a instanceof Date;if(p!=h)return!1;if(p&&h)return e.getTime()==a.getTime();var f=e instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return e.toString()==a.toString();var g=n(e);if((l=g.length)!==n(a).length)return!1;for(s=l;0!==s--;)if(!r.call(a,g[s]))return!1;if(i&&e instanceof Element&&a instanceof Element)return e===a;for(s=l;0!==s--;)if(("_owner"!==(c=g[s])||!e.$$typeof)&&!o(e[c],a[c]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},62215:(e,t,n)=>{var r=n(61462);function i(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var o=i(r);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');const a=r.forwardRef((function(e,t){let{style:n={},className:i="",autoFill:a=!1,play:s=!0,pauseOnHover:l=!1,pauseOnClick:c=!1,direction:u="left",speed:d=50,delay:p=0,loop:h=0,gradient:f=!1,gradientColor:m="white",gradientWidth:g=200,onFinish:v,onCycleComplete:y,onMount:b,children:w}=e;const[x,C]=r.useState(0),[A,E]=r.useState(0),[_,T]=r.useState(1),[S,k]=r.useState(!1),P=r.useRef(null),D=t||P,F=r.useRef(null),N=r.useCallback((()=>{if(F.current&&D.current){const e=D.current.getBoundingClientRect(),t=F.current.getBoundingClientRect();let n=e.width,r=t.width;"up"!==u&&"down"!==u||(n=e.height,r=t.height),T(a&&n&&r&&r<n?Math.ceil(n/r):1),C(n),E(r)}}),[a,D,u]);r.useEffect((()=>{if(S&&(N(),F.current&&D.current)){const e=new ResizeObserver((()=>N()));return e.observe(D.current),e.observe(F.current),()=>{e&&e.disconnect()}}}),[N,D,S]),r.useEffect((()=>{N()}),[N,w]),r.useEffect((()=>{k(!0)}),[]),r.useEffect((()=>{"function"===typeof b&&b()}),[]);const I=r.useMemo((()=>a?A*_/d:A<x?x/d:A/d),[a,x,A,_,d]),R=r.useMemo((()=>Object.assign(Object.assign({},n),{"--pause-on-hover":!s||l?"paused":"running","--pause-on-click":!s||l&&!c||c?"paused":"running","--width":"up"===u||"down"===u?"100vh":"100%","--transform":"up"===u?"rotate(-90deg)":"down"===u?"rotate(90deg)":"none"})),[n,s,l,c,u]),O=r.useMemo((()=>({"--gradient-color":m,"--gradient-width":"number"===typeof g?"".concat(g,"px"):g})),[m,g]),j=r.useMemo((()=>({"--play":s?"running":"paused","--direction":"left"===u?"normal":"reverse","--duration":"".concat(I,"s"),"--delay":"".concat(p,"s"),"--iteration-count":h?"".concat(h):"infinite","--min-width":a?"auto":"100%"})),[s,u,I,p,h,a]),M=r.useMemo((()=>({"--transform":"up"===u?"rotate(90deg)":"down"===u?"rotate(-90deg)":"none"})),[u]),L=r.useCallback((e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map(((e,t)=>o.default.createElement(r.Fragment,{key:t},r.Children.map(w,(e=>o.default.createElement("div",{style:M,className:"rfm-child"},e))))))),[M,w]);return S?o.default.createElement("div",{ref:D,style:R,className:"rfm-marquee-container "+i},f&&o.default.createElement("div",{style:O,className:"rfm-overlay"}),o.default.createElement("div",{className:"rfm-marquee",style:j,onAnimationIteration:y,onAnimationEnd:v},o.default.createElement("div",{className:"rfm-initial-child-container",ref:F},r.Children.map(w,(e=>o.default.createElement("div",{style:M,className:"rfm-child"},e)))),L(_-1)),o.default.createElement("div",{className:"rfm-marquee",style:j},L(_))):null}));t.A=a},45175:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},30274:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1353:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===p},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===a||e===p||e===h||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},54437:(e,t,n)=>{"use strict";e.exports=n(1353)},95899:(e,t,n)=>{"use strict";n.d(t,{BM:()=>qe});var r=n(61462),i="#4fa94d",o={"aria-busy":!0,role:"status"};var a=n(54437),s=n(88043),l=n.n(s);const c=function(e){function t(e,r,l,c,p){for(var h,f,m,g,w,C=0,A=0,E=0,_=0,T=0,N=0,R=m=h=0,j=0,M=0,L=0,B=0,U=l.length,V=U-1,H="",z="",W="",q="";j<U;){if(f=l.charCodeAt(j),j===V&&0!==A+_+E+C&&(0!==A&&(f=47===A?10:47),_=E=C=0,U++,V++),0===A+_+E+C){if(j===V&&(0<M&&(H=H.replace(d,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(j)}f=59}switch(f){case 123:for(h=(H=H.trim()).charCodeAt(0),m=1,B=++j;j<U;){switch(f=l.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(j+1)){case 42:case 47:e:{for(R=j+1;R<V;++R)switch(l.charCodeAt(R)){case 47:if(42===f&&42===l.charCodeAt(R-1)&&j+2!==R){j=R+1;break e}break;case 10:if(47===f){j=R+1;break e}}j=R}}break;case 91:f++;case 40:f++;case 34:case 39:for(;j++<V&&l.charCodeAt(j)!==f;);}if(0===m)break;j++}if(m=l.substring(B,j),0===h&&(h=(H=H.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<M&&(H=H.replace(d,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=F}if(B=(m=t(r,M,m,f,p+1)).length,0<I&&(w=s(3,m,M=n(F,H,L),r,k,S,B,f,p,c),H=M.join(""),void 0!==w&&0===(B=(m=w.trim()).length)&&(f=0,m="")),0<B)switch(f){case 115:H=H.replace(x,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(v,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,H,L),m,c,p+1);W+=m,m=L=M=R=h=0,H="",f=l.charCodeAt(++j);break;case 125:case 59:if(1<(B=(H=(0<M?H.replace(d,""):H).trim()).length))switch(0===R&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(B=(H=H.replace(" ",":")).length),0<I&&void 0!==(w=s(1,H,r,e,k,S,z.length,c,p,c))&&0===(B=(H=w.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),f=H.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){q+=H+l.charAt(j);break}default:58!==H.charCodeAt(B-1)&&(z+=i(H,h,f,H.charCodeAt(2)))}L=M=R=h=0,H="",f=l.charCodeAt(++j)}}switch(f){case 13:case 10:47===A?A=0:0===1+h&&107!==c&&0<H.length&&(M=1,H+="\0"),0<I*O&&s(0,H,r,e,k,S,z.length,c,p,c),S=1,k++;break;case 59:case 125:if(0===A+_+E+C){S++;break}default:switch(S++,g=l.charAt(j),f){case 9:case 32:if(0===_+C+A)switch(T){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===_+A+C&&(M=L=1,g="\f"+g);break;case 108:if(0===_+A+C+P&&0<R)switch(j-R){case 2:112===T&&58===l.charCodeAt(j-3)&&(P=T);case 8:111===N&&(P=N)}break;case 58:0===_+A+C&&(R=j);break;case 44:0===A+E+_+C&&(M=1,g+="\r");break;case 34:case 39:0===A&&(_=_===f?0:0===_?f:_);break;case 91:0===_+A+E&&C++;break;case 93:0===_+A+E&&C--;break;case 41:0===_+A+C&&E--;break;case 40:if(0===_+A+C){if(0===h)if(2*T+3*N===533);else h=1;E++}break;case 64:0===A+E+_+C+R+m&&(m=1);break;case 42:case 47:if(!(0<_+C+E))switch(A){case 0:switch(2*f+3*l.charCodeAt(j+1)){case 235:A=47;break;case 220:B=j,A=42}break;case 42:47===f&&42===T&&B+2!==j&&(33===l.charCodeAt(B+2)&&(z+=l.substring(B,j+1)),g="",A=0)}}0===A&&(H+=g)}N=T,T=f,j++}if(0<(B=z.length)){if(M=r,0<I&&(void 0!==(w=s(2,z,M,e,k,S,B,c,p,c))&&0===(z=w).length))return q+z+W;if(z=M.join(",")+"{"+z+"}",0!==D*P){switch(2!==D||o(z,2)||(P=0),P){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(y,"::-webkit-input-$1")+z.replace(y,"::-moz-$1")+z.replace(y,":-ms-input-$1")+z}P=0}}return q+z+W}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===D||2===D&&o(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(A,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(A,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,h=t;p<I;++p)switch(d=N[p].call(c,e,h,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!==typeof e?D=1:(D=2,R=e):D=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var i=s(-1,n,r,r,k,S,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(F,r,n,0,0);return 0<I&&(void 0!==(i=s(-2,o,r,r,k,S,o.length,0,0,0))&&(o=i)),P=0,S=k=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,A=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,S=1,k=1,P=0,D=1,F=[],N=[],I=0,R=null,O=0;return c.use=function e(t){switch(t){case void 0:case null:I=N.length=0;break;default:if("function"===typeof t)N[I++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};const u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function d(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=d((function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=n(35100),m=n.n(f);function g(){return(g=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}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,a.typeOf)(e)},b=Object.freeze([]),w=Object.freeze({});function x(e){return"function"==typeof e}function C(e){return e.displayName||e.name||"Component"}function A(e){return e&&"string"==typeof e.styledComponentId}var E="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_ATTR)||"data-styled",_="undefined"!=typeof window&&"HTMLElement"in window,T=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}&&(void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"}.SC_DISABLE_SPEEDY)));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),P=new Map,D=new Map,F=1,N=function(e){if(P.has(e))return P.get(e);for(;D.has(F);)F++;var t=F++;return P.set(e,t),D.set(t,e),t},I=function(e){return D.get(e)},R=function(e,t){t>=F&&(F=t+1),P.set(e,t),D.set(t,e)},O="style["+E+'][data-styled-version="5.3.11"]',j=new RegExp("^"+E+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(j);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(R(c,l),M(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},B=function(){return n.nc},U=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(E))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(E,"active"),r.setAttribute("data-styled-version","5.3.11");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},V=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=U(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=_,q={isServer:!_,useCSSOMInjection:!T},G=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=g({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&_&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(O),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(E)&&(L(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return N(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(g({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new z(i):r?new V(i):new H(i),new k(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=I(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=E+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Y=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return(K(t%52)+n).replace(Y,"$1-$2")}var X=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Z=function(e){return X(5381,e)};function J(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(x(n)&&!A(n))return!1}return!0}var $=Z("5.3.11"),ee=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&J(e),this.componentId=t,this.baseHash=X($,t),this.baseStyle=n,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ye(this.rules,e,t,n).join(""),a=Q(X(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=X(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var h=ye(p,e,t,n),f=Array.isArray(h)?h.join(""):h;c=X(c,f+d),u+=f}}if(u){var m=Q(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,i,o=void 0===e?w:e,a=o.options,s=void 0===a?w:a,l=o.plugins,u=void 0===l?b:l,d=new c(s),p=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),f=function(e,r,o){return 0===r&&-1!==ne.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(te,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(a||!o?"":o,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},h,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||S(15),X(e,t.name)}),5381).toString():"",m}var ie=r.createContext(),oe=(ie.Consumer,r.createContext()),ae=(oe.Consumer,new G),se=re();function le(){return(0,r.useContext)(ie)||ae}function ce(){return(0,r.useContext)(oe)||se}function ue(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],i=t[1],o=le(),a=(0,r.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,r.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,r.useEffect)((function(){l()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r.createElement(ie.Provider,{value:a},r.createElement(oe.Provider,{value:s},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,fe=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function ge(e){return pe.test(e)?e.replace(he,me).replace(fe,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function ye(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ye(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ve(e)?"":A(e)?"."+e.styledComponentId:x(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ye(e(t),t,n,r):e instanceof de?n?(e.inject(n,r),e.getName(r)):e:y(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||x(t[a])?o.push(ge(a)+":",t[a],";"):y(t[a])?o.push.apply(o,e(t[a],a)):o.push(ge(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in u||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return x(e)||y(e)?be(ye(v(b,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ye(v(e,n)))}new Set;var xe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Ce=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ae=/(^-|-$)/g;function Ee(e){return e.replace(Ce,"-").replace(Ae,"")}var _e=function(e){return Q(Z(e)>>>0)};function Te(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pe(e,t,n){var r=e[n];Se(t)&&Se(r)?De(r,t):e[n]=t}function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Se(a))for(var s in a)ke(s)&&Pe(e,a[s],s)}return e}var Fe=r.createContext();Fe.Consumer;var Ne={};function Ie(e,t,n){var i=A(e),o=!Te(e),a=t.attrs,s=void 0===a?b:a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Ne[n]=(Ne[n]||0)+1;var r=n+"-"+_e("5.3.11"+n+Ne[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,d=void 0===u?function(e){return Te(e)?"styled."+e:"Styled("+C(e)+")"}(e):u,p=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,f=i&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,v=t.shouldForwardProp;i&&e.shouldForwardProp&&(v=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var y,E=new ee(n,p,i?e.componentStyle:void 0),_=E.isStatic&&0===s.length,T=function(e,t){return function(e,t,n,i){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=w);var r=g({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in x(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(xe(t,(0,r.useContext)(Fe),s)||w,t,o),f=p[0],m=p[1],v=function(e,t,n,r){var i=le(),o=ce();return t?e.generateAndInjectStyles(w,i,o):e.generateAndInjectStyles(n,i,o)}(a,i,f),y=n,b=m.$as||t.$as||m.as||t.as||d,C=Te(b),A=m!==t?g({},t,{},m):t,E={};for(var _ in A)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?E.as=A[_]:(c?c(_,h,b):!C||h(_))&&(E[_]=A[_]));return t.style&&m.style!==t.style&&(E.style=g({},t.style,{},m.style)),E.className=Array.prototype.concat(l,u,v!==u?v:null,t.className,m.className).filter(Boolean).join(" "),E.ref=y,(0,r.createElement)(b,E)}(y,e,t,_)};return T.displayName=d,(y=r.forwardRef(T)).attrs=f,y.componentStyle=E,y.displayName=d,y.shouldForwardProp=v,y.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):b,y.styledComponentId=p,y.target=i?e.target:e,y.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),o=r&&r+"-"+(Te(e)?e:Ee(C(e)));return Ie(e,g({},i,{attrs:f,componentId:o}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?De({},e.defaultProps,t):t}}),Object.defineProperty(y,"toString",{value:function(){return"."+y.styledComponentId}}),o&&m()(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Re=function(e){return function e(t,n,r){if(void 0===r&&(r=w),!(0,a.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,r,we.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,g({},r,{},i))},i.attrs=function(i){return e(t,n,g({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Ie,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Re[e]=Re(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),G.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(ye(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=we.apply(void 0,[e].concat(n)).join(""),o=_e(i);return new de(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=B();return"<style "+[n&&'nonce="'+n+'"',E+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[E]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=B();return i&&(n.nonce=i),[r.createElement("style",g({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):r.createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();const je=Re;var Me=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Le=242.776657104492,Be=Oe(Ue||(Ue=Me(["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"],["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"])),.14*Le,Le,.11*Le,.35*Le,Le,.35*Le,.01*Le,Le,.99*Le);je.path(Ve||(Ve=Me(["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"],["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"])),.01*Le,Le,Be,1.6);var Ue,Ve;var He=function(e){return{display:e?"flex":"none"}},ze=function(){return ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ze.apply(this,arguments)},We=function(e,t,n){var r=Math.max(e,t),i=-n-r/2+1,o=2*n+r;return[i,i,o,o].join(" ")};const qe=function(e){var t,n=e.height,a=void 0===n?80:n,s=e.width,l=void 0===s?80:s,c=e.color,u=void 0===c?i:c,d=e.secondaryColor,p=void 0===d?i:d,h=e.ariaLabel,f=void 0===h?"oval-loading":h,m=e.wrapperStyle,g=e.wrapperClass,v=e.visible,y=void 0===v||v,b=e.strokeWidth,w=void 0===b?2:b,x=e.strokeWidthSecondary;return r.createElement("div",ze({style:ze(ze({},He(y)),m),className:g,"data-testid":"oval-loading","aria-label":f},o),r.createElement("svg",{width:l,height:a,viewBox:We(Number(w),Number(x||w),20),xmlns:"http://www.w3.org/2000/svg",stroke:u,"data-testid":"oval-svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(1 1)",strokeWidth:Number(x||w),"data-testid":"oval-secondary-group"},r.createElement("circle",{strokeOpacity:".5",cx:"0",cy:"0",r:20,stroke:p,strokeWidth:w}),r.createElement("path",{d:(t=20,["M"+t+" 0c0-9.94-8.06",t,t,t].join("-"))},r.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"1s",repeatCount:"indefinite"}))))))};const Ge=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!==typeof n[e])return n[e];if(e&&e.indexOf(".")>0){for(var r=e.split("."),i=r.length,o=n[r[0]],a=1;null!=o&&a<i;)o=o[r[a]],a+=1;if("undefined"!==typeof o)return o}return t}};var Ye,Ke,Qe,Xe=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ze=Oe(Ye||(Ye=Xe(["\n to {\n    transform: rotate(360deg);\n  }\n"],["\n to {\n    transform: rotate(360deg);\n  }\n"])));je.svg(Ke||(Ke=Xe(["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"],["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"])),Ze,Ge("speed","0.75")),je.polyline(Qe||(Qe=Xe(["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0) {\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1) {\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2) {\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3) {\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4) {\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5) {\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6) {\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7) {\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8) {\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9) {\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11) {\n    stroke-opacity: 0.92;\n  }\n"],["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0) {\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1) {\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2) {\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3) {\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4) {\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5) {\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6) {\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7) {\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8) {\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9) {\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11) {\n    stroke-opacity: 0.92;\n  }\n"])),(function(e){return e.width}));var Je=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},$e=Oe(et||(et=Je(["\n to {\n    stroke-dashoffset: 136;\n  }\n"],["\n to {\n    stroke-dashoffset: 136;\n  }\n"])));je.polygon(tt||(tt=Je(["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"],["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"])),$e),je.svg(nt||(nt=Je(["\n  transform-origin: 50% 65%;\n"],["\n  transform-origin: 50% 65%;\n"])));var et,tt,nt},64191:(e,t,n)=>{"use strict";var r=p(n(7547)),i=p(n(40105)),o=p(n(33652)),a=p(n(40970)),s=p(n(92369)),l=p(n(1084)),c=p(n(61462)),u=p(n(5982)),d=p(n(51733));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){var e,n,r,a;(0,o.default)(this,t);for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];return n=r=(0,s.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.handleClickToPause=function(){r.anim.isPaused?r.anim.play():r.anim.pause()},a=n,(0,s.default)(r,a)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.eventListeners,i=t.loop,o=t.autoplay,a=t.animationData,s=t.rendererSettings,l=t.segments;this.options={container:this.el,renderer:"svg",loop:!1!==i,autoplay:!1!==o,segments:!1!==l,animationData:a,rendererSettings:s},this.options=(0,r.default)({},this.options,t),this.anim=d.default.loadAnimation(this.options),this.registerEvents(n)}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,r.default)({},this.options,e.options),this.anim=d.default.loadAnimation(this.options),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.addEventListener(e.eventName,e.callback)}))}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.removeEventListener(e.eventName,e.callback)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,i=t.height,o=t.ariaRole,a=t.ariaLabel,s=t.isClickToPauseDisabled,l=t.title,u=function(e){return"number"===typeof e?e+"px":e||"100%"},d=(0,r.default)({width:u(n),height:u(i),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),p=s?function(){return null}:this.handleClickToPause;return c.default.createElement("div",{ref:function(t){e.el=t},style:d,onClick:p,title:l,role:o,"aria-label":a,tabIndex:"0"})}}]),t}(c.default.Component);t.A=h,h.propTypes={eventListeners:u.default.arrayOf(u.default.object),options:u.default.object.isRequired,height:u.default.oneOfType([u.default.string,u.default.number]),width:u.default.oneOfType([u.default.string,u.default.number]),isStopped:u.default.bool,isPaused:u.default.bool,speed:u.default.number,segments:u.default.arrayOf(u.default.number),direction:u.default.number,ariaRole:u.default.string,ariaLabel:u.default.string,isClickToPauseDisabled:u.default.bool,title:u.default.string,style:u.default.string},h.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}},66762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>f,default:()=>g});var r=n(61462),i=n(72551);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,c,u=(void 0===l&&(l=0),function(){return++l}),d={},p={},h=["touchstart","touchmove"],f="ignore-react-onclickoutside";function m(e,t){var n={};return-1!==h.indexOf(t)&&c&&(n.passive=!e.props.preventDefault),n}const g=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,f;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!p[r._uid]){"undefined"===typeof c&&(c=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.initTimeStamp>e.timeStamp||(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)))},e.forEach((function(e){document.addEventListener(e,d[r._uid],m(a(r),e))}))}},r.disableOnClickOutside=function(){delete p[r._uid];var e=d[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(a(r),t))})),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=u(),r.initTimeStamp=performance.now(),r}f=n,(l=g).prototype=Object.create(f.prototype),l.prototype.constructor=l,o(l,f);var v=g.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=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}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},81397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>a,Popper:()=>Oe,Reference:()=>Le,usePopper:()=>Fe});var r=n(61462),i=r.createContext(),o=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1],l=r.useRef(!1);r.useEffect((function(){return function(){l.current=!0}}),[]);var c=r.useCallback((function(e){l.current||s(e)}),[]);return r.createElement(i.Provider,{value:a},r.createElement(o.Provider,{value:c},t))}var s=function(e){return Array.isArray(e)?e[0]:e},l=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},c=function(e,t){if("function"===typeof e)return l(e,t);null!=e&&(e.current=t)},u=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},d="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,p=n(72551);function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){return e instanceof h(e).Element||e instanceof Element}function m(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!==typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,y=Math.min,b=Math.round;function w(){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 x(){return!/^((?!chrome|android).)*safari/i.test(w())}function C(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&&b(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&b(r.height)/e.offsetHeight||1);var a=(f(e)?h(e):window).visualViewport,s=!x()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function A(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function E(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return C(_(e)).left+A(e).scrollLeft}function S(e){return h(e).getComputedStyle(e)}function k(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function P(e,t,n){void 0===n&&(n=!1);var r=m(t),i=m(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,r=b(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=_(t),a=C(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==E(t)||k(o))&&(s=function(e){return e!==h(e)&&m(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:A(e);var t}(t)),m(t)?((l=C(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=T(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function D(e){var t=C(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||_(e)}function N(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:m(e)&&k(e)?e:N(F(e))}function I(e,t){var n;void 0===t&&(t=[]);var r=N(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=h(r),a=i?[o].concat(o.visualViewport||[],k(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(I(F(a)))}function R(e){return["table","td","th"].indexOf(E(e))>=0}function O(e){return m(e)&&"fixed"!==S(e).position?e.offsetParent:null}function j(e){for(var t=h(e),n=O(e);n&&R(n)&&"static"===S(n).position;)n=O(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&m(e)&&"fixed"===S(e).position)return null;var n=F(e);for(g(n)&&(n=n.host);m(n)&&["html","body"].indexOf(E(n))<0;){var r=S(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}var M="top",L="bottom",B="right",U="left",V="auto",H=[M,L,B,U],z="start",W="end",q="clippingParents",G="viewport",Y="popper",K="reference",Q=H.reduce((function(e,t){return e.concat([t+"-"+z,t+"-"+W])}),[]),X=[].concat(H,[V]).reduce((function(e,t){return e.concat([t,t+"-"+z,t+"-"+W])}),[]),Z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function J(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function $(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ee={placement:"bottom",modifiers:[],strategy:"absolute"};function te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function ne(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?ee:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ee,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:f(e)?I(e):e.contextElement?I(e.contextElement):[],popper:I(t)};var u=function(e){var t=J(e);return Z.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(te(t,n)){i.rects={reference:P(t,j(n),"fixed"===i.options.strategy),popper:D(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:$((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!te(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var re={passive:!0};function ie(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function ae(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function se(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?ie(i):null,a=i?oe(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case M:t={x:s,y:n.y-r.height};break;case L:t={x:s,y:n.y+n.height};break;case B:t={x:n.x+n.width,y:l};break;case U:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?ae(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case z:t[c]=t[c]-(n[u]/2-r[u]/2);break;case W:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ce(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,g=void 0===m?0:m,v="function"===typeof u?u({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=U,C=M,A=window;if(c){var E=j(n),T="clientHeight",k="clientWidth";if(E===h(n)&&"static"!==S(E=_(n)).position&&"absolute"===s&&(T="scrollHeight",k="scrollWidth"),i===M||(i===U||i===B)&&o===W)C=L,g-=(d&&E===A&&A.visualViewport?A.visualViewport.height:E[T])-r.height,g*=l?1:-1;if(i===U||(i===M||i===L)&&o===W)x=B,f-=(d&&E===A&&A.visualViewport?A.visualViewport.width:E[k])-r.width,f*=l?1:-1}var P,D=Object.assign({position:s},c&&le),F=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:b(n*i)/i||0,y:b(r*i)/i||0}}({x:f,y:g},h(n)):{x:f,y:g};return f=F.x,g=F.y,l?Object.assign({},D,((P={})[C]=w?"0":"",P[x]=y?"0":"",P.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",P)):Object.assign({},D,((t={})[C]=w?g+"px":"",t[x]=y?f+"px":"",t.transform="",t))}const ue={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,a=X.reduce((function(e,n){return e[n]=function(e,t,n){var r=ie(e),i=[U,M].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[U,B].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var de={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e){return e.replace(/left|right|bottom|top/g,(function(e){return de[e]}))}var he={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return he[e]}))}function me(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ve(e,t,n){return t===G?ge(function(e,t){var n=h(e),r=_(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=x();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+T(e),y:l}}(e,n)):f(t)?function(e,t){var n=C(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ge(function(e){var t,n=_(e),r=A(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=v(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=v(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+T(e),l=-r.scrollTop;return"rtl"===S(i||n).direction&&(s+=v(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(_(e)))}function ye(e,t,n,r){var i="clippingParents"===t?function(e){var t=I(F(e)),n=["absolute","fixed"].indexOf(S(e).position)>=0&&m(e)?j(e):e;return f(n)?t.filter((function(e){return f(e)&&me(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ve(e,n,r);return t.top=v(i.top,t.top),t.right=y(i.right,t.right),t.bottom=y(i.bottom,t.bottom),t.left=v(i.left,t.left),t}),ve(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function be(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function we(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?q:s,c=n.rootBoundary,u=void 0===c?G:c,d=n.elementContext,p=void 0===d?Y:d,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=be("number"!==typeof v?v:we(v,H)),b=p===Y?K:Y,w=e.rects.popper,x=e.elements[m?b:p],A=ye(f(x)?x:x.contextElement||_(e.elements.popper),l,u,a),E=C(e.elements.reference),T=se({reference:E,element:w,strategy:"absolute",placement:i}),S=ge(Object.assign({},w,T)),k=p===Y?S:E,P={top:A.top-k.top+y.top,bottom:k.bottom-A.bottom+y.bottom,left:A.left-k.left+y.left,right:k.right-A.right+y.right},D=e.modifiersData.offset;if(p===Y&&D){var F=D[i];Object.keys(P).forEach((function(e){var t=[B,L].indexOf(e)>=0?1:-1,n=[M,L].indexOf(e)>=0?"y":"x";P[e]+=F[n]*t}))}return P}function Ce(e,t,n){return v(e,y(t,n))}const Ae={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=xe(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=ie(t.placement),w=oe(t.placement),x=!w,C=ae(b),A="x"===C?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,T=t.rects.popper,S="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(E){if(o){var N,I="y"===C?M:U,R="y"===C?L:B,O="y"===C?"height":"width",V=E[C],H=V+g[I],W=V-g[R],q=h?-T[O]/2:0,G=w===z?_[O]:T[O],Y=w===z?-T[O]:-_[O],K=t.elements.arrow,Q=h&&K?D(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[I],J=X[R],$=Ce(0,_[O],Q[O]),ee=x?_[O]/2-q-$-Z-k.mainAxis:G-$-Z-k.mainAxis,te=x?-_[O]/2+q+$+J+k.mainAxis:Y+$+J+k.mainAxis,ne=t.elements.arrow&&j(t.elements.arrow),re=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,se=null!=(N=null==P?void 0:P[C])?N:0,le=V+te-se,ce=Ce(h?y(H,V+ee-se-re):H,V,h?v(W,le):W);E[C]=ce,F[C]=ce-V}if(s){var ue,de="x"===C?M:U,pe="x"===C?L:B,he=E[A],fe="y"===A?"height":"width",me=he+g[de],ge=he-g[pe],ve=-1!==[M,U].indexOf(b),ye=null!=(ue=null==P?void 0:P[A])?ue:0,be=ve?me:he-_[fe]-T[fe]-ye+k.altAxis,we=ve?he+_[fe]+T[fe]-ye-k.altAxis:ge,Ae=h&&ve?function(e,t,n){var r=Ce(e,t,n);return r>n?n:r}(be,he,we):Ce(h?be:me,he,h?we:ge);E[A]=Ae,F[A]=Ae-he}t.modifiersData[r]=F}},requiresIfExists:["offset"]};const Ee={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ie(n.placement),l=ae(s),c=[U,B].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return be("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:we(e,H))}(i.padding,n),d=D(o),p="y"===l?M:U,h="y"===l?L:B,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=j(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],w=v-d[c]-u[h],x=v/2-d[c]/2+y,C=Ce(b,x,w),A=l;n.modifiersData[r]=((t={})[A]=C,t.centerOffset=C-x,t)}},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)))&&me(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(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 Te(e){return[M,B,L,U].some((function(t){return e[t]>=0}))}var Se=ne({defaultModifiers:[{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,a=r.resize,s=void 0===a||a,l=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,re)})),s&&l.addEventListener("resize",n.update,re),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,re)})),s&&l.removeEventListener("resize",n.update,re)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=se({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=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:ie(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ce(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];m(i)&&E(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});m(r)&&E(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ue,{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,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=ie(g),y=l||(v===g||!f?[pe(g)]:function(e){if(ie(e)===V)return[];var t=pe(e);return[fe(e),t,fe(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(ie(n)===V?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?X:l,u=oe(r),d=u?s?Q:Q.filter((function(e){return oe(e)===u})):H,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=xe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[ie(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,A=!0,E=b[0],_=0;_<b.length;_++){var T=b[_],S=ie(T),k=oe(T)===z,P=[M,L].indexOf(S)>=0,D=P?"width":"height",F=xe(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=P?k?B:U:k?L:M;w[D]>x[D]&&(N=pe(N));var I=pe(N),R=[];if(o&&R.push(F[S]<=0),s&&R.push(F[N]<=0,F[I]<=0),R.every((function(e){return e}))){E=T,A=!1;break}C.set(T,R)}if(A)for(var O=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},j=f?3:1;j>0;j--){if("break"===O(j))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ae,Ee,{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,a=xe(t,{elementContext:"reference"}),s=xe(t,{altBoundary:!0}),l=_e(a,r),c=_e(s,i,o),u=Te(l),d=Te(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ke=n(87625),Pe=n.n(ke),De=[],Fe=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||De},a=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p.flushSync((function(){l({styles:u(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:u(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),h=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Pe()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),f=r.useRef();return d((function(){f.current&&f.current.setOptions(h)}),[h]),d((function(){if(null!=e&&null!=t){var r=(n.createPopper||Se)(e,t,h);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Ne=function(){},Ie=function(){return Promise.resolve(null)},Re=[];function Oe(e){var t=e.placement,n=void 0===t?"bottom":t,o=e.strategy,a=void 0===o?"absolute":o,l=e.modifiers,u=void 0===l?Re:l,d=e.referenceElement,p=e.onFirstUpdate,h=e.innerRef,f=e.children,m=r.useContext(i),g=r.useState(null),v=g[0],y=g[1],b=r.useState(null),w=b[0],x=b[1];r.useEffect((function(){c(h,v)}),[h,v]);var C=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:p,modifiers:[].concat(u,[{name:"arrow",enabled:null!=w,options:{element:w}}])}}),[n,a,p,u,w]),A=Fe(d||m,v,C),E=A.state,_=A.styles,T=A.forceUpdate,S=A.update,k=r.useMemo((function(){return{ref:y,style:_.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:_.arrow,ref:x},forceUpdate:T||Ne,update:S||Ie}}),[y,x,n,E,_,S,T]);return s(f)(k)}var je=n(7273),Me=n.n(je);function Le(e){var t=e.children,n=e.innerRef,i=r.useContext(o),a=r.useCallback((function(e){c(n,e),l(i,e)}),[n,i]);return r.useEffect((function(){return function(){return c(n,null)}}),[]),r.useEffect((function(){Me()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),s(t)({ref:a})}},87625:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},83906:(e,t,n)=>{"use strict";var r,i;n.d(t,{Kd:()=>f,N_:()=>v,ok:()=>w});var o=n(61462),a=n(72551),s=n(98853),l=n(60482);function c(){return c=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},c.apply(this,arguments)}function u(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}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(x){}new Map;const h=(r||(r=n.t(o,2))).startTransition;(i||(i=n.t(a,2))).flushSync,(r||(r=n.t(o,2))).useId;function f(e){let{basename:t,children:n,future:r,window:i}=e,a=o.useRef();null==a.current&&(a.current=(0,l.zR)({window:i,v5Compat:!0}));let c=a.current,[u,d]=o.useState({action:c.action,location:c.location}),{v7_startTransition:p}=r||{},f=o.useCallback((e=>{p&&h?h((()=>d(e))):d(e)}),[d,p]);return o.useLayoutEffect((()=>c.listen(f)),[c,f]),o.createElement(s.Ix,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:r})}const m="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,v=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:d,state:h,target:f,to:v,preventScrollReset:y,unstable_viewTransition:b}=e,w=u(e,p),{basename:C}=o.useContext(s.jb),A=!1;if("string"===typeof v&&g.test(v)&&(n=v,m))try{let e=new URL(window.location.href),t=v.startsWith("//")?new URL(e.protocol+v):new URL(v),n=(0,l.pb)(t.pathname,C);t.origin===e.origin&&null!=n?v=n+t.search+t.hash:A=!0}catch(x){}let E=(0,s.$P)(v,{relative:i}),_=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:c,unstable_viewTransition:u}=void 0===t?{}:t,d=(0,s.Zp)(),p=(0,s.zy)(),h=(0,s.x$)(e,{relative:c});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,l.AO)(p)===(0,l.AO)(h);d(e,{replace:n,state:i,preventScrollReset:a,relative:c,unstable_viewTransition:u})}}),[p,d,h,r,i,n,e,a,c,u])}(v,{replace:d,state:h,target:f,preventScrollReset:y,relative:i,unstable_viewTransition:b});return o.createElement("a",c({},w,{href:n||E,onClick:A||a?r:function(e){r&&r(e),e.defaultPrevented||_(e)},ref:t,target:f}))}));var y,b;function w(e){let t=o.useRef(d(e)),n=o.useRef(!1),r=(0,s.zy)(),i=o.useMemo((()=>function(e,t){let n=d(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),a=(0,s.Zp)(),l=o.useCallback(((e,t)=>{const r=d("function"===typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(y||(y={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},98853:(e,t,n)=>{"use strict";var r;n.d(t,{$P:()=>h,BV:()=>O,C5:()=>N,Ix:()=>R,Zp:()=>v,g:()=>y,jb:()=>c,qh:()=>I,x$:()=>b,zy:()=>m});var i=n(61462),o=n(60482);function a(){return a=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},a.apply(this,arguments)}const s=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const u=i.createContext(null);const d=i.createContext({outlet:null,matches:[],isDataRoute:!1});const p=i.createContext(null);function h(e,t){let{relative:n}=void 0===t?{}:t;f()||(0,o.Oi)(!1);let{basename:r,navigator:a}=i.useContext(c),{hash:s,pathname:l,search:u}=b(e,{relative:n}),d=l;return"/"!==r&&(d="/"===l?r:(0,o.HS)([r,l])),a.createHref({pathname:d,search:u,hash:s})}function f(){return null!=i.useContext(u)}function m(){return f()||(0,o.Oi)(!1),i.useContext(u).location}function g(e){i.useContext(c).static||i.useLayoutEffect(e)}function v(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=k(T.UseNavigateStable),t=D(S.UseNavigateStable),n=i.useRef(!1);return g((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){f()||(0,o.Oi)(!1);let e=i.useContext(s),{basename:t,future:n,navigator:r}=i.useContext(c),{matches:a}=i.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,o.yD)(a,n.v7_relativeSplatPath)),p=i.useRef(!1);return g((()=>{p.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!p.current)return;if("number"===typeof n)return void r.go(n);let a=(0,o.Gh)(n,JSON.parse(u),l,"path"===i.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)}),[t,r,u,l,e])}()}function y(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=i.useContext(c),{matches:a}=i.useContext(d),{pathname:s}=m(),l=JSON.stringify((0,o.yD)(a,r.v7_relativeSplatPath));return i.useMemo((()=>(0,o.Gh)(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function w(e,t,n,r){f()||(0,o.Oi)(!1);let{navigator:s}=i.useContext(c),{matches:l}=i.useContext(d),p=l[l.length-1],h=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let v,y=m();if(t){var b;let e="string"===typeof t?(0,o.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.Oi)(!1),v=e}else v=y;let w=v.pathname||"/",x=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,o.ue)(e,{pathname:x});let A=_(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,r);return t&&A?i.createElement(u.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:o.rc.Pop}},A):A}function x(){let e=function(){var e;let t=i.useContext(p),n=P(S.UseRouteError),r=D(S.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,null)}const C=i.createElement(x,null);class A extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(s);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}function _(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,c=null==(a=n)?void 0:a.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let i=0;i<l.length;i++){let e=l[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,o)=>{let a,s=!1,p=null,h=null;var f;n&&(a=c&&r.route.id?c[r.route.id]:void 0,p=r.route.errorElement||C,u&&(d<0&&0===o?(f="route-fallback",!1||F[f]||(F[f]=!0),s=!0,h=null):d===o&&(s=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),g=()=>{let t;return t=a?p:s?h:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(E,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(A,{location:n.location,revalidation:n.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var T=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T||{}),S=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(S||{});function k(e){let t=i.useContext(s);return t||(0,o.Oi)(!1),t}function P(e){let t=i.useContext(l);return t||(0,o.Oi)(!1),t}function D(e){let t=function(e){let t=i.useContext(d);return t||(0,o.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const F={};(r||(r=n.t(i,2))).startTransition;function N(e){let{to:t,replace:n,state:r,relative:a}=e;f()||(0,o.Oi)(!1);let{future:s,static:l}=i.useContext(c),{matches:u}=i.useContext(d),{pathname:p}=m(),h=v(),g=(0,o.Gh)(t,(0,o.yD)(u,s.v7_relativeSplatPath),p,"path"===a),y=JSON.stringify(g);return i.useEffect((()=>h(JSON.parse(y),{replace:n,state:r,relative:a})),[h,y,a,n,r]),null}function I(e){(0,o.Oi)(!1)}function R(e){let{basename:t="/",children:n=null,location:r,navigationType:s=o.rc.Pop,navigator:l,static:d=!1,future:p}=e;f()&&(0,o.Oi)(!1);let h=t.replace(/^\/*/,"/"),m=i.useMemo((()=>({basename:h,navigator:l,static:d,future:a({v7_relativeSplatPath:!1},p)})),[h,p,l,d]);"string"===typeof r&&(r=(0,o.Rr)(r));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:w="default"}=r,x=i.useMemo((()=>{let e=(0,o.pb)(g,h);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:w},navigationType:s}}),[h,g,v,y,b,w,s]);return null==x?null:i.createElement(c.Provider,{value:m},i.createElement(u.Provider,{children:n,value:x}))}function O(e){let{children:t,location:n}=e;return w(j(t),n)}new Promise((()=>{}));i.Component;function j(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,j(e.props.children,a));e.type!==I&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=j(e.props.children,a)),n.push(s)})),n}},26284:(e,t,n)=>{"use strict";var r,i=n(61462),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},44320:function(e,t,n){!function(e,t){"use strict";var n="default"in t?t.default:t;function r(e){return(r="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 i(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)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,r=a(t);return e=n?(e=a(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!e||"object"!=typeof e&&"function"!=typeof e?l(r):e}}function u(e,t){var n,r=(t=void 0===t?{}:t).insertAt;e&&"undefined"!=typeof document&&(n=document.head||document.getElementsByTagName("head")[0],(t=document.createElement("style")).type="text/css","top"===r&&n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)))}var d={animated:"rsw_1z",fadeInRight:"rsw_1M",fadeInLeft:"rsw_19",fadeOutRight:"rsw_3C",fadeOutLeft:"rsw_1u"};u("/**\n * Snippets from animate.css\n * Credit goes to https://github.com/daneden\n * github.com/daneden/animate.css\n*/\n.rsw_1z {\n  -webkit-animation-duration: .8192s;\n  animation-duration: .8192s;\n  -webkit-animation-fill-mode: backwards;\n  animation-fill-mode: backwards;\n}\n\n/** fadeInRight */\n@-webkit-keyframes rsw_1M {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    -webkit-transform: none;\n    transform: none;\n  }\n}\n\n@keyframes rsw_1M {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    -webkit-transform: none;\n    transform: none;\n  }\n}\n\n.rsw_1M {\n  -webkit-animation-name: rsw_1M;\n  animation-name: rsw_1M;\n}\n\n/** fadeInLeft */\n@-webkit-keyframes rsw_19 {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    -webkit-transform: none;\n    transform: none;\n  }\n}\n\n@keyframes rsw_19 {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    -webkit-transform: none;\n    transform: none;\n  }\n}\n\n.rsw_19 {\n  -webkit-animation-name: rsw_19;\n  animation-name: rsw_19;\n}\n\n/** fadeOutRight */\n@-webkit-keyframes rsw_3C {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n@keyframes rsw_3C {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n.rsw_3C {\n  -webkit-animation-name: rsw_3C;\n  animation-name: rsw_3C;\n}\n\n/** fadeOutLeft */\n@-webkit-keyframes rsw_1u {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n  }\n}\n\n@keyframes rsw_1u {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n  }\n}\n\n.rsw_1u {\n  -webkit-animation-name: rsw_1u;\n  animation-name: rsw_1u;\n}\n");var p="rsw_2Y",h="rsw_2f",f="rsw_3G";u("/** Step Wizard */\n.rsw_2Y {\n    position: relative;\n}\n\n.rsw_2f {\n    opacity: 0;\n    pointer-events: none;\n    position: absolute;\n    top: 0;\n    width: 100%;\n    z-index: 0;\n}\n\n.rsw_3G {\n    opacity: 1;\n    pointer-events: inherit;\n    position: relative;\n    z-index: 1;\n}\n");var m=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,t.PureComponent);var e,a,u,h=c(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o(l(t=h.call(this,e)),"initialState",(function(){var e={activeStep:0,classes:{},hashKeys:{},namedSteps:{}},n="object"===("undefined"==typeof window?"undefined":r(window))?t.getHash():"",i=t.getSteps();i.forEach((function(t,n){e.hashKeys[n]=t.props&&t.props.hashKey||"step".concat(n+1),e.hashKeys[e.hashKeys[n]]=n,e.namedSteps[n]=t.props&&t.props.stepName||"step".concat(n+1),e.namedSteps[e.namedSteps[n]]=n}));var o=t.props.initialStep-1;return o&&i[o]&&(e.activeStep=o),t.props.isHashEnabled&&n&&void 0!==e.hashKeys[n]&&(e.activeStep=e.hashKeys[n]),t.props.transitions&&(e.classes[e.activeStep]=t.props.transitions.intro||""),e})),o(l(t),"getHash",(function(){return decodeURI(window.location.hash).replace(/^#/,"")})),o(l(t),"getTransitions",(function(){return t.props.transitions||{enterRight:"".concat(d.animated," ").concat(d.fadeInRight),enterLeft:"".concat(d.animated," ").concat(d.fadeInLeft),exitRight:"".concat(d.animated," ").concat(d.fadeOutRight),exitLeft:"".concat(d.animated," ").concat(d.fadeOutLeft)}})),o(l(t),"onHashChange",(function(){t.setActiveStep(t.state.hashKeys[t.getHash()]||0)})),o(l(t),"isInvalidStep",(function(e){return e<0||e>=t.totalSteps})),o(l(t),"setActiveStep",(function(e){var n,r,i=t.state.activeStep;i!==e&&!t.isInvalidStep(e)&&(n=t.state.classes,r=t.getTransitions(),i<e?(n[i]=r.exitLeft,n[e]=r.enterRight):(n[i]=r.exitRight,n[e]=r.enterLeft),t.setState({activeStep:e,classes:n},(function(){t.onStepChange({previousStep:i+1,activeStep:e+1})})))})),o(l(t),"onStepChange",(function(e){t.props.onStepChange(e),t.props.isHashEnabled&&t.updateHash(t.state.activeStep)})),o(l(t),"getSteps",(function(){return n.Children.toArray(t.props.children)})),o(l(t),"firstStep",(function(){return t.goToStep(1)})),o(l(t),"lastStep",(function(){return t.goToStep(t.totalSteps)})),o(l(t),"nextStep",(function(){return t.setActiveStep(t.state.activeStep+1)})),o(l(t),"previousStep",(function(){return t.setActiveStep(t.state.activeStep-1)})),o(l(t),"goToStep",(function(e){t.props.isHashEnabled&&"string"==typeof e&&void 0!==t.state.hashKeys[e]?t.setActiveStep(t.state.hashKeys[e]):t.setActiveStep(e-1)})),o(l(t),"goToNamedStep",(function(e){"string"==typeof e&&void 0!==t.state.namedSteps[e]?t.setActiveStep(t.state.namedSteps[e]):console.error('Cannot find step with name "'.concat(e,'"'))})),o(l(t),"updateHash",(function(e){window.location.hash=t.state.hashKeys[e]})),o(l(t),"isReactComponent",(function(e){return"function"==typeof(e=e.type)||"object"===r(e)})),t.state=t.initialState(),t}return e=f,(a=[{key:"componentDidMount",value:function(){this.props.isHashEnabled&&window.addEventListener("hashchange",this.onHashChange),this.props.instance(this)}},{key:"componentWillUnmount",value:function(){this.props.isHashEnabled&&window.removeEventListener("hashchange",this.onHashChange)}},{key:"currentStep",get:function(){return this.state.activeStep+1}},{key:"totalSteps",get:function(){return this.getSteps().length}},{key:"render",value:function(){var e=this,t={currentStep:this.currentStep,totalSteps:this.totalSteps,nextStep:this.nextStep,previousStep:this.previousStep,goToStep:this.goToStep,goToNamedStep:this.goToNamedStep,firstStep:this.firstStep,lastStep:this.lastStep},r=this.state.classes,i=n.Children.map(this.getSteps(),(function(i,o){return i?(t.isActive=o===e.state.activeStep,t.transitions=r[o],!e.props.isLazyMount||e.props.isLazyMount&&t.isActive?n.createElement(g,t,e.isReactComponent(i)?n.cloneElement(i,t):i):null):null}));return n.createElement("div",{className:this.props.className},this.props.nav&&n.cloneElement(this.props.nav,t),n.createElement("div",{className:p},i))}}])&&i(e.prototype,a),u&&i(e,u),f}();m.defaultProps={children:[],className:null,initialStep:1,instance:function(){},isHashEnabled:!1,isLazyMount:!1,nav:null,onStepChange:function(){},transitions:void 0};var g=function(e){var t=e.children,r=e.isActive;return e=e.transitions,n.createElement("div",{className:"".concat(h," ").concat(e," ").concat(r?f:"").trim()},t)};g.defaultProps={children:[],isActive:!1,transitions:""},e.Step=g,e.default=m,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(61462))},55878:(e,t,n)=>{"use strict";var r=n(61462),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},72825:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,A={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:A.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function k(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+k(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(S,"$&/")+"/"),P(a,t,i,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+k(s=e[c],c);l+=P(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,i,u=o+k(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function F(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},I={transition:null},R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:I,ReactCurrentOwner:A};function O(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=O,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:F}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=O,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},61462:(e,t,n)=>{"use strict";e.exports=n(72825)},99334:(e,t,n)=>{"use strict";e.exports=n(55878)},53017:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,I(C);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function C(e,n){m=!1,g&&(g=!1,y(T),T=-1),f=!0;var o=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&i(c),w(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{p=null,h=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,E=!1,_=null,T=-1,S=5,k=-1;function P(){return!(t.unstable_now()-k<S)}function D(){if(null!==_){var e=t.unstable_now();k=e;var n=!0;try{n=_(!0,e)}finally{n?A():(E=!1,_=null)}}else E=!1}if("function"===typeof b)A=function(){b(D)};else if("undefined"!==typeof MessageChannel){var F=new MessageChannel,N=F.port2;F.port1.onmessage=D,A=function(){N.postMessage(null)}}else A=function(){v(D,0)};function I(e){_=e,E||(E=!0,A())}function R(e,n){T=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,I(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(T),T=-1):g=!0,R(x,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,I(C))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},86756:(e,t,n)=>{"use strict";e.exports=n(53017)},90884:(e,t,n)=>{"use strict";t.KN=void 0;var r,i=n(75701),o=(r=n(74143))&&r.__esModule?r:{default:r};var a=function(e){var t=e.allowedSizes,n=e.defaultSize,r=e.padding;return function e(){var a=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;if(!this||this.constructor!==e)return new e(s);if(t&&!t.includes(s))throw new Error("Unsupported hash length");var l=new o.default({capacity:s});return this.update=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(i.Buffer.isBuffer(e))return l.absorb(e),a;if("string"===typeof e)return a.update(i.Buffer.from(e,t));throw new TypeError("Not a string or buffer")},this.digest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",t="string"===typeof e?{format:e}:e,n=l.squeeze({buffer:t.buffer,padding:t.padding||r});return t.format&&"binary"!==t.format?n.toString(t.format):n},this.reset=function(){return l.reset(),a},this}},s=a({allowedSizes:[224,256,384,512],defaultSize:512,padding:1});var l=a({allowedSizes:[224,256,384,512],defaultSize:512,padding:6});t.KN=l,a({allowedSizes:[128,256],defaultSize:256,padding:31});var c=s;l.SHA3Hash=c},74143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(75701),o=(r=n(83614))&&r.__esModule?r:{default:r};var a=function(e,t){for(var n=0;n<e.length;n+=8){var r=n/4;t[r]^=e[n+7]<<24|e[n+6]<<16|e[n+5]<<8|e[n+4],t[r+1]^=e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]}return t},s=function(e,t){for(var n=0;n<t.length;n+=8){var r=n/4;t[n]=e[r+1],t[n+1]=e[r+1]>>>8,t[n+2]=e[r+1]>>>16,t[n+3]=e[r+1]>>>24,t[n+4]=e[r],t[n+5]=e[r]>>>8,t[n+6]=e[r]>>>16,t[n+7]=e[r]>>>24}return t},l=function(e){var t=this,n=e.capacity,r=e.padding,l=(0,o.default)(),c=n/8,u=200-n/4,d=0,p=new Uint32Array(50),h=i.Buffer.allocUnsafe(u);return this.absorb=function(e){for(var n=0;n<e.length;n++)h[d]=e[n],(d+=1)>=u&&(a(h,p),l(p),d=0);return t},this.squeeze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={buffer:e.buffer||i.Buffer.allocUnsafe(c),padding:e.padding||r,queue:i.Buffer.allocUnsafe(h.length),state:new Uint32Array(p.length)};h.copy(t.queue);for(var n=0;n<p.length;n++)t.state[n]=p[n];t.queue.fill(0,d),t.queue[d]|=t.padding,t.queue[u-1]|=128,a(t.queue,t.state);for(var o=0;o<t.buffer.length;o+=u)l(t.state),s(t.state,t.buffer.slice(o,o+u));return t.buffer},this.reset=function(){return h.fill(0),p.fill(0),d=0,t},this};t.default=l},64443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(22162))&&r.__esModule?r:{default:r};var o=function(e){for(var t=e.A,n=e.C,r=0;r<25;r+=5){for(var o=0;o<5;o++)(0,i.default)(t,r+o)(n,o);for(var a=0;a<5;a++){var s=2*(r+a),l=(a+1)%5*2,c=(a+2)%5*2;t[s]^=~n[l]&n[c],t[s+1]^=~n[l+1]&n[c+1]}}};t.default=o},22162:e=>{"use strict";e.exports=function(e,t){return function(n,r){var i=2*r,o=2*t;n[i]=e[o],n[i+1]=e[o+1]}}},83614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(64443)),i=s(n(82184)),o=s(n(78090)),a=s(n(99841));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=new Uint32Array(10),t=new Uint32Array(10),n=new Uint32Array(2);return function(s){for(var l=0;l<24;l++)(0,a.default)({A:s,C:e,D:t,W:n}),(0,o.default)({A:s,C:e,W:n}),(0,r.default)({A:s,C:e}),(0,i.default)({A:s,roundIndex:l});e.fill(0),t.fill(0),n.fill(0)}};t.default=l},82184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(53775))&&r.__esModule?r:{default:r};var o=function(e){var t=e.A,n=2*e.roundIndex;t[0]^=i.default[n],t[1]^=i.default[n+1]};t.default=o},53775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]);t.default=n},78090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(17369)),i=a(n(10991)),o=a(n(22162));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.A,n=e.C,a=e.W;(0,o.default)(t,1)(a,0);for(var s=0,l=0,c=0,u=32,d=0;d<24;d++){var p=r.default[d],h=i.default[d];(0,o.default)(t,p)(n,0),s=a[0],l=a[1],u=32-h,a[c=h<32?0:1]=s<<h|l>>>u,a[(c+1)%2]=l<<h|s>>>u,(0,o.default)(a,0)(t,p),(0,o.default)(n,0)(a,0)}};t.default=s},17369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1];t.default=n},10991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44];t.default=n},99841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(22162))&&r.__esModule?r:{default:r};var o=function(e){for(var t=e.A,n=e.C,r=e.D,o=e.W,a=0,s=0,l=0;l<5;l++){var c=2*l,u=2*(l+5),d=2*(l+10),p=2*(l+15),h=2*(l+20);n[c]=t[c]^t[u]^t[d]^t[p]^t[h],n[c+1]=t[c+1]^t[u+1]^t[d+1]^t[p+1]^t[h+1]}for(var f=0;f<5;f++){(0,i.default)(n,(f+1)%5)(o,0),a=o[0],s=o[1],o[0]=a<<1|s>>>31,o[1]=s<<1|a>>>31,r[2*f]=n[(f+4)%5*2]^o[0],r[2*f+1]=n[(f+4)%5*2+1]^o[1];for(var m=0;m<25;m+=5)t[2*(m+f)]^=r[2*f],t[2*(m+f)+1]^=r[2*f+1]}};t.default=o},88043:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},1822:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},86110:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},73151:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(11286));t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,i.default)(e),o="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n}},799:function(e){e.exports=function(){"use strict";function e(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 t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t=g(t),A(e,y()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return e.get(r(e,t))}function c(e,t,n){a(e,t),t.set(e,n)}function u(e,t,n){return e.set(r(e,t),n),n}function d(e,t,n){if(y())return Reflect.construct.apply(null,arguments);var r=[null];return r.push.apply(r,t),new(e.bind.apply(e,r))}function p(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,P(r.key),r)}}function h(e,t,n){return t&&p(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=F(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=T(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},m.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function w(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(e,n){return t(e)||w(e,n)||F(e,n)||x()}function T(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function S(e){return n(e)||b(e)||F(e)||C()}function k(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function P(e){var t=k(e,"string");return"symbol"==typeof t?t:t+""}function D(e){return D="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},D(e)}function F(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var N=100,I={},R=function(){I.previousActiveElement instanceof HTMLElement?(I.previousActiveElement.focus(),I.previousActiveElement=null):document.body&&document.body.focus()},O=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,r=window.scrollY;I.restoreFocusTimeout=setTimeout((function(){R(),t()}),N),window.scrollTo(n,r)}))},j="swal2-",M=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((function(e,t){return e[t]=j+t,e}),{}),L=["success","warning","info","question","error"].reduce((function(e,t){return e[t]=j+t,e}),{}),B="SweetAlert2:",U=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},V=function(e){console.warn("".concat(B," ").concat("object"===D(e)?e.join(" "):e))},H=function(e){console.error("".concat(B," ").concat(e))},z=[],W=function(e){z.includes(e)||(z.push(e),V(e))},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;W('"'.concat(e,'" is deprecated and will be removed in the next major release.').concat(t?' Use "'.concat(t,'" instead.'):""))},G=function(e){return"function"===typeof e?e():e},Y=function(e){return e&&"function"===typeof e.toPromise},K=function(e){return Y(e)?e.toPromise():Promise.resolve(e)},Q=function(e){return e&&Promise.resolve(e)===e},X=function(){return document.body.querySelector(".".concat(M.container))},Z=function(e){var t=X();return t?t.querySelector(e):null},J=function(e){return Z(".".concat(e))},$=function(){return J(M.popup)},ee=function(){return J(M.icon)},te=function(){return J(M["icon-content"])},ne=function(){return J(M.title)},re=function(){return J(M["html-container"])},ie=function(){return J(M.image)},oe=function(){return J(M["progress-steps"])},ae=function(){return J(M["validation-message"])},se=function(){return Z(".".concat(M.actions," .").concat(M.confirm))},le=function(){return Z(".".concat(M.actions," .").concat(M.cancel))},ce=function(){return Z(".".concat(M.actions," .").concat(M.deny))},ue=function(){return J(M["input-label"])},de=function(){return Z(".".concat(M.loader))},pe=function(){return J(M.actions)},he=function(){return J(M.footer)},fe=function(){return J(M["timer-progress-bar"])},me=function(){return J(M.close)},ge='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',ve=function(){var e=$();if(!e)return[];var t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((function(e,t){var n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll(ge),i=Array.from(r).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return S(new Set(n.concat(i))).filter((function(e){return Me(e)}))},ye=function(){return Ce(document.body,M.shown)&&!Ce(document.body,M["toast-shown"])&&!Ce(document.body,M["no-backdrop"])},be=function(){var e=$();return!!e&&Ce(e,M.toast)},we=function(){var e=$();return!!e&&e.hasAttribute("data-loading")},xe=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((function(t){e.appendChild(t)}));var i=n.querySelector("body");i&&Array.from(i.childNodes).forEach((function(t){t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},Ce=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},Ae=function(e,t){Array.from(e.classList).forEach((function(n){Object.values(M).includes(n)||Object.values(L).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},Ee=function(e,t,n){if(Ae(e,t),t.customClass){var r=t.customClass[n];r&&("string"===typeof r||r.forEach?ke(e,r):V("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(D(r),'"')))}},_e=function(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(M.popup," > .").concat(M[t]));case"checkbox":return e.querySelector(".".concat(M.popup," > .").concat(M.checkbox," input"));case"radio":return e.querySelector(".".concat(M.popup," > .").concat(M.radio," input:checked"))||e.querySelector(".".concat(M.popup," > .").concat(M.radio," input:first-child"));case"range":return e.querySelector(".".concat(M.popup," > .").concat(M.range," input"));default:return e.querySelector(".".concat(M.popup," > .").concat(M.input))}},Te=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},Se=function(e,t,n){e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){Array.isArray(e)?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ke=function(e,t){Se(e,t,!0)},Pe=function(e,t){Se(e,t,!1)},De=function(e,t){for(var n=Array.from(e.children),r=0;r<n.length;r++){var i=n[r];if(i instanceof HTMLElement&&Ce(i,t))return i}},Fe=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"===typeof n?"".concat(n,"px"):n):e.style.removeProperty(t)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},Ie=function(e){e&&(e.style.display="none")},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((function(){je(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},Oe=function(e,t,n,r){var i=e.querySelector(t);i&&i.style.setProperty(n,r)},je=function(e,t){t?Ne(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):Ie(e)},Me=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},Le=function(){return!Me(se())&&!Me(ce())&&!Me(le())},Be=function(e){return!!(e.scrollHeight>e.clientHeight)},Ue=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fe();n&&Me(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},He=function(){var e=fe();if(e){var t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(n,"%")}},ze=function(){return"undefined"===typeof window||"undefined"===typeof document},We='\n <div aria-labelledby="'.concat(M.title,'" aria-describedby="').concat(M["html-container"],'" class="').concat(M.popup,'" tabindex="-1">\n   <button type="button" class="').concat(M.close,'"></button>\n   <ul class="').concat(M["progress-steps"],'"></ul>\n   <div class="').concat(M.icon,'"></div>\n   <img class="').concat(M.image,'" />\n   <h2 class="').concat(M.title,'" id="').concat(M.title,'"></h2>\n   <div class="').concat(M["html-container"],'" id="').concat(M["html-container"],'"></div>\n   <input class="').concat(M.input,'" id="').concat(M.input,'" />\n   <input type="file" class="').concat(M.file,'" />\n   <div class="').concat(M.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(M.select,'" id="').concat(M.select,'"></select>\n   <div class="').concat(M.radio,'"></div>\n   <label class="').concat(M.checkbox,'">\n     <input type="checkbox" id="').concat(M.checkbox,'" />\n     <span class="').concat(M.label,'"></span>\n   </label>\n   <textarea class="').concat(M.textarea,'" id="').concat(M.textarea,'"></textarea>\n   <div class="').concat(M["validation-message"],'" id="').concat(M["validation-message"],'"></div>\n   <div class="').concat(M.actions,'">\n     <div class="').concat(M.loader,'"></div>\n     <button type="button" class="').concat(M.confirm,'"></button>\n     <button type="button" class="').concat(M.deny,'"></button>\n     <button type="button" class="').concat(M.cancel,'"></button>\n   </div>\n   <div class="').concat(M.footer,'"></div>\n   <div class="').concat(M["timer-progress-bar-container"],'">\n     <div class="').concat(M["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),qe=function(){var e=X();return!!e&&(e.remove(),Pe([document.documentElement,document.body],[M["no-backdrop"],M["toast-shown"],M["has-column"]]),!0)},Ge=function(){I.currentInstance.resetValidationMessage()},Ye=function(){var e=$(),t=De(e,M.input),n=De(e,M.file),r=e.querySelector(".".concat(M.range," input")),i=e.querySelector(".".concat(M.range," output")),o=De(e,M.select),a=e.querySelector(".".concat(M.checkbox," input")),s=De(e,M.textarea);t.oninput=Ge,n.onchange=Ge,o.onchange=Ge,a.onchange=Ge,s.oninput=Ge,r.oninput=function(){Ge(),i.value=r.value},r.onchange=function(){Ge(),i.value=r.value}},Ke=function(e){return"string"===typeof e?document.querySelector(e):e},Qe=function(e){var t=$();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Xe=function(e){"rtl"===window.getComputedStyle(e).direction&&ke(X(),M.rtl)},Ze=function(e){var t=qe();if(ze())H("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=M.container,t&&ke(n,M["no-transition"]),xe(n,We);var r=Ke(e.target);r.appendChild(n),Qe(e),Xe(r),Ye()}},Je=function(e,t){e instanceof HTMLElement?t.appendChild(e):"object"===D(e)?$e(e,t):e&&xe(t,e)},$e=function(e,t){e.jquery?et(t,e):xe(t,e.toString())},et=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},tt=function(){if(ze())return!1;var e=document.createElement("div");return"undefined"!==typeof e.style.webkitAnimation?"webkitAnimationEnd":"undefined"!==typeof e.style.animation&&"animationend"}(),nt=function(e,t){var n=pe(),r=de();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Ne(n):Ie(n),Ee(n,t,"actions"),rt(n,r,t),xe(r,t.loaderHtml||""),Ee(r,t,"loader"))};function rt(e,t,n){var r=se(),i=ce(),o=le();r&&i&&o&&(ot(r,"confirm",n),ot(i,"deny",n),ot(o,"cancel",n),it(r,i,o,n),n.reverseButtons&&(n.toast?(e.insertBefore(o,r),e.insertBefore(i,r)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function it(e,t,n,r){r.buttonsStyling?(ke([e,t,n],M.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,ke(e,M["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,ke(t,M["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,ke(n,M["default-outline"]))):Pe([e,t,n],M.styled)}function ot(e,t,n){var r=U(t);je(e,n["show".concat(r,"Button")],"inline-block"),xe(e,n["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]||""),e.className=M[t],Ee(e,n,"".concat(t,"Button"))}var at=function(e,t){var n=me();n&&(xe(n,t.closeButtonHtml||""),Ee(n,t,"closeButton"),je(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},st=function(e,t){var n=X();n&&(lt(n,t.backdrop),ct(n,t.position),ut(n,t.grow),Ee(n,t,"container"))};function lt(e,t){"string"===typeof t?e.style.background=t:t||ke([document.documentElement,document.body],M["no-backdrop"])}function ct(e,t){t&&(t in M?ke(e,M[t]):(V('The "position" parameter is not valid, defaulting to "center"'),ke(e,M.center)))}function ut(e,t){t&&ke(e,M["grow-".concat(t)])}var dt={innerParams:new WeakMap,domCache:new WeakMap},pt=["input","file","range","select","radio","checkbox","textarea"],ht=function(e,t){var n=$();if(n){var r=dt.innerParams.get(e),i=!r||t.input!==r.input;pt.forEach((function(e){var r=De(n,M[e]);r&&(gt(e,t.inputAttributes),r.className=M[e],i&&Ie(r))})),t.input&&(i&&ft(t),vt(t))}},ft=function(e){if(e.input)if(Ct[e.input]){var t=wt(e.input),n=Ct[e.input](t,e);Ne(t),e.inputAutoFocus&&setTimeout((function(){Te(n)}))}else H("Unexpected type of input! Expected ".concat(Object.keys(Ct).join(" | "),', got "').concat(e.input,'"'))},mt=function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},gt=function(e,t){var n=_e($(),e);if(n)for(var r in mt(n),t)n.setAttribute(r,t[r])},vt=function(e){var t=wt(e.input);"object"===D(e.customClass)&&ke(t,e.customClass.input)},yt=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},bt=function(e,t,n){if(n.inputLabel){var r=document.createElement("label"),i=M["input-label"];r.setAttribute("for",e.id),r.className=i,"object"===D(n.customClass)&&ke(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},wt=function(e){return De($(),M[e]||M.input)},xt=function(e,t){["string","number"].includes(D(t))?e.value="".concat(t):Q(t)||V('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(D(t),'"'))},Ct={};Ct.text=Ct.email=Ct.password=Ct.number=Ct.tel=Ct.url=Ct.search=Ct.date=Ct["datetime-local"]=Ct.time=Ct.week=Ct.month=function(e,t){return xt(e,t.inputValue),bt(e,e,t),yt(e,t),e.type=t.input,e},Ct.file=function(e,t){return bt(e,e,t),yt(e,t),e},Ct.range=function(e,t){var n=e.querySelector("input"),r=e.querySelector("output");return xt(n,t.inputValue),n.type=t.input,xt(r,t.inputValue),bt(n,e,t),e},Ct.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");xe(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return bt(e,e,t),e},Ct.radio=function(e){return e.textContent="",e},Ct.checkbox=function(e,t){var n=_e($(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);var r=e.querySelector("span");return xe(r,t.inputPlaceholder),n},Ct.textarea=function(e,t){xt(e,t.inputValue),yt(e,t),bt(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight)};return setTimeout((function(){if("MutationObserver"in window){var r=parseInt(window.getComputedStyle($()).width);new MutationObserver((function(){if(document.body.contains(e)){var i=e.offsetWidth+n(e);i>r?$().style.width="".concat(i,"px"):Fe($(),"width",t.width)}})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};var At=function(e,t){var n=re();n&&(Re(n),Ee(n,t,"htmlContainer"),t.html?(Je(t.html,n),Ne(n,"block")):t.text?(n.textContent=t.text,Ne(n,"block")):Ie(n),ht(e,t))},Et=function(e,t){var n=he();n&&(Re(n),je(n,t.footer,"block"),t.footer&&Je(t.footer,n),Ee(n,t,"footer"))},_t=function(e,t){var n=dt.innerParams.get(e),r=ee();if(r){if(n&&t.icon===n.icon)return Dt(r,t),void Tt(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(L).indexOf(t.icon))return H('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void Ie(r);Ne(r),Dt(r,t),Tt(r,t),ke(r,t.showClass&&t.showClass.icon)}else Ie(r)}},Tt=function(e,t){for(var n=0,r=Object.entries(L);n<r.length;n++){var i=_(r[n],2),o=i[0],a=i[1];t.icon!==o&&Pe(e,a)}ke(e,t.icon&&L[t.icon]),Ft(e,t),St(),Ee(e,t,"icon")},St=function(){var e=$();if(e)for(var t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),r=0;r<n.length;r++)n[r].style.backgroundColor=t},kt='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',Pt='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',Dt=function(e,t){if(t.icon||t.iconHtml){var n=e.innerHTML,r="";t.iconHtml?r=Nt(t.iconHtml):"success"===t.icon?(r=kt,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?r=Pt:t.icon&&(r=Nt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&xe(e,r)}},Ft=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,r=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<r.length;n++){var i=r[n];Oe(e,i,"background-color",t.iconColor)}Oe(e,".swal2-success-ring","border-color",t.iconColor)}},Nt=function(e){return'<div class="'.concat(M["icon-content"],'">').concat(e,"</div>")},It=function(e,t){var n=ie();n&&(t.imageUrl?(Ne(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Fe(n,"width",t.imageWidth),Fe(n,"height",t.imageHeight),n.className=M.image,Ee(n,t,"image")):Ie(n))},Rt=function(e,t){var n=X(),r=$();if(n&&r){if(t.toast){Fe(n,"width",t.width),r.style.width="100%";var i=de();i&&r.insertBefore(i,ee())}else Fe(r,"width",t.width);Fe(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),Ie(ae()),Ot(r,t)}},Ot=function(e,t){var n=t.showClass||{};e.className="".concat(M.popup," ").concat(Me(e)?n.popup:""),t.toast?(ke([document.documentElement,document.body],M["toast-shown"]),ke(e,M.toast)):ke(e,M.modal),Ee(e,t,"popup"),"string"===typeof t.customClass&&ke(e,t.customClass),t.icon&&ke(e,M["icon-".concat(t.icon)])},jt=function(e,t){var n=oe();if(n){var r=t.progressSteps,i=t.currentProgressStep;r&&0!==r.length&&void 0!==i?(Ne(n),n.textContent="",i>=r.length&&V("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((function(e,o){var a=Mt(e);if(n.appendChild(a),o===i&&ke(a,M["active-progress-step"]),o!==r.length-1){var s=Lt(t);n.appendChild(s)}}))):Ie(n)}},Mt=function(e){var t=document.createElement("li");return ke(t,M["progress-step"]),xe(t,e),t},Lt=function(e){var t=document.createElement("li");return ke(t,M["progress-step-line"]),e.progressStepsDistance&&Fe(t,"width",e.progressStepsDistance),t},Bt=function(e,t){var n=ne();n&&(Re(n),je(n,t.title||t.titleText,"block"),t.title&&Je(t.title,n),t.titleText&&(n.innerText=t.titleText),Ee(n,t,"title"))},Ut=function(e,t){Rt(e,t),st(e,t),jt(e,t),_t(e,t),It(e,t),Bt(e,t),at(e,t),At(e,t),nt(e,t),Et(e,t);var n=$();"function"===typeof t.didRender&&n&&t.didRender(n)},Vt=function(){return Me($())},Ht=function(){var e;return null===(e=se())||void 0===e?void 0:e.click()},zt=function(){var e;return null===(e=ce())||void 0===e?void 0:e.click()},Wt=function(){var e;return null===(e=le())||void 0===e?void 0:e.click()},qt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Gt=function(e){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Yt=function(e,t,n){Gt(e),t.toast||(e.keydownHandler=function(e){return Zt(t,e,n)},e.keydownTarget=t.keydownListenerCapture?window:$(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Kt=function(e,t){var n,r=ve();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=$())||void 0===n||n.focus()},Qt=["ArrowRight","ArrowDown"],Xt=["ArrowLeft","ArrowUp"],Zt=function(e,t,n){e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Jt(t,e):"Tab"===t.key?$t(t):[].concat(Qt,Xt).includes(t.key)?en(t.key):"Escape"===t.key&&tn(t,e,n)))},Jt=function(e,t){if(G(t.allowEnterKey)){var n=_e($(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Ht(),e.preventDefault()}}},$t=function(e){for(var t=e.target,n=ve(),r=-1,i=0;i<n.length;i++)if(t===n[i]){r=i;break}e.shiftKey?Kt(r,-1):Kt(r,1),e.stopPropagation(),e.preventDefault()},en=function(e){var t=pe(),n=se(),r=ce(),i=le();if(t&&n&&r&&i){var o=[n,r,i];if(!(document.activeElement instanceof HTMLElement)||o.includes(document.activeElement)){var a=Qt.includes(e)?"nextElementSibling":"previousElementSibling",s=document.activeElement;if(s){for(var l=0;l<t.children.length;l++){if(!(s=s[a]))return;if(s instanceof HTMLButtonElement&&Me(s))break}s instanceof HTMLButtonElement&&s.focus()}}}},tn=function(e,t,n){G(t.allowEscapeKey)&&(e.preventDefault(),n(qt.esc))},nn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},rn=function(){var e=X();Array.from(document.body.children).forEach((function(t){t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))},on=function(){Array.from(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},an="undefined"!==typeof window&&!!window.GestureEvent,sn=function(){if(an&&!Ce(document.body,M.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),ke(document.body,M.iosfix),ln()}},ln=function(){var e,t=X();t&&(t.ontouchstart=function(t){e=cn(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())})},cn=function(e){var t=e.target,n=X(),r=re();return!(!n||!r)&&!un(e)&&!dn(e)&&(t===n||!Be(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!Be(r)||!r.contains(t)))},un=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},dn=function(e){return e.touches&&e.touches.length>1},pn=function(){if(Ce(document.body,M.iosfix)){var e=parseInt(document.body.style.top,10);Pe(document.body,M.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},hn=function(){var e=document.createElement("div");e.className=M["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},fn=null,mn=function(e){null===fn&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(fn=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(fn+hn(),"px"))},gn=function(){null!==fn&&(document.body.style.paddingRight="".concat(fn,"px"),fn=null)};function vn(e,t,n,r){be()?Tn(e,r):(O(n).then((function(){return Tn(e,r)})),Gt(I)),an?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ye()&&(gn(),pn(),on()),yn()}function yn(){Pe([document.documentElement,document.body],[M.shown,M["height-auto"],M["no-backdrop"],M["toast-shown"]])}function bn(e){e=An(e);var t=nn.swalPromiseResolve.get(this),n=wn(this);this.isAwaitingPromise?e.isDismissed||(Cn(this),t(e)):n&&t(e)}var wn=function(e){var t=$();if(!t)return!1;var n=dt.innerParams.get(e);if(!n||Ce(t,n.hideClass.popup))return!1;Pe(t,n.showClass.popup),ke(t,n.hideClass.popup);var r=X();return Pe(r,n.showClass.backdrop),ke(r,n.hideClass.backdrop),En(e,t,n),!0};function xn(e){var t=nn.swalPromiseReject.get(this);Cn(this),t&&t(e)}var Cn=function(e){e.isAwaitingPromise&&(delete e.isAwaitingPromise,dt.innerParams.get(e)||e._destroy())},An=function(e){return"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},En=function(e,t,n){var r=X(),i=tt&&Ue(t);"function"===typeof n.willClose&&n.willClose(t),i?_n(e,t,r,n.returnFocus,n.didClose):vn(e,r,n.returnFocus,n.didClose)},_n=function(e,t,n,r,i){tt&&(I.swalCloseEventFinishedCallback=vn.bind(null,e,n,r,i),t.addEventListener(tt,(function(e){e.target===t&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback)})))},Tn=function(e,t){setTimeout((function(){"function"===typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Sn=function(e){var t=$();if(t||new Pi,t=$()){var n=de();be()?Ie(ee()):kn(t,e),Ne(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()}},kn=function(e,t){var n=pe(),r=de();n&&r&&(!t&&Me(se())&&(t=se()),Ne(n),t&&(Ie(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),ke([e,n],M.loading))},Pn=function(e,t){"select"===t.input||"radio"===t.input?Rn(e,t):["text","email","number","tel","textarea"].some((function(e){return e===t.input}))&&(Y(t.inputValue)||Q(t.inputValue))&&(Sn(se()),On(e,t))},Dn=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Fn(n);case"radio":return Nn(n);case"file":return In(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Fn=function(e){return e.checked?1:0},Nn=function(e){return e.checked?e.value:null},In=function(e){return e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},Rn=function(e,t){var n=$();if(n){var r=function(e){"select"===t.input?jn(n,Ln(e),t):"radio"===t.input&&Mn(n,Ln(e),t)};Y(t.inputOptions)||Q(t.inputOptions)?(Sn(se()),K(t.inputOptions).then((function(t){e.hideLoading(),r(t)}))):"object"===D(t.inputOptions)?r(t.inputOptions):H("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(D(t.inputOptions)))}},On=function(e,t){var n=e.getInput();n&&(Ie(n),K(t.inputValue).then((function(r){n.value="number"===t.input?"".concat(parseFloat(r)||0):"".concat(r),Ne(n),n.focus(),e.hideLoading()})).catch((function(t){H("Error in inputValue promise: ".concat(t)),n.value="",Ne(n),n.focus(),e.hideLoading()})))};function jn(e,t,n){var r=De(e,M.select);if(r){var i=function(e,t,r){var i=document.createElement("option");i.value=r,xe(i,t),i.selected=Bn(r,n.inputValue),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=t,o.disabled=!1,r.appendChild(o),n.forEach((function(e){return i(o,e[1],e[0])}))}else i(r,n,t)})),r.focus()}}function Mn(e,t,n){var r=De(e,M.radio);if(r){t.forEach((function(e){var t=e[0],i=e[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=M.radio,o.value=t,Bn(t,n.inputValue)&&(o.checked=!0);var s=document.createElement("span");xe(s,i),s.className=M.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}}var Ln=function e(t){var n=[];return t instanceof Map?t.forEach((function(t,r){var i=t;"object"===D(i)&&(i=e(i)),n.push([r,i])})):Object.keys(t).forEach((function(r){var i=t[r];"object"===D(i)&&(i=e(i)),n.push([r,i])})),n},Bn=function(e,t){return!!t&&t.toString()===e.toString()},Un=void 0,Vn=function(e){var t=dt.innerParams.get(e);e.disableButtons(),t.input?Wn(e,"confirm"):Qn(e,!0)},Hn=function(e){var t=dt.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Wn(e,"deny"):Gn(e,!1)},zn=function(e,t){e.disableButtons(),t(qt.cancel)},Wn=function(e,t){var n=dt.innerParams.get(e);if(n.input){var r=e.getInput(),i=Dn(e,n);n.inputValidator?qn(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?Gn(e,i):Qn(e,i)}else H('The "input" parameter is needed to be set when using returnInputValueOn'.concat(U(t)))},qn=function(e,t,n){var r=dt.innerParams.get(e);e.disableInput(),Promise.resolve().then((function(){return K(r.inputValidator(t,r.validationMessage))})).then((function(r){e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Gn(e,t):Qn(e,t)}))},Gn=function(e,t){var n=dt.innerParams.get(e||Un);n.showLoaderOnDeny&&Sn(ce()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((function(){return K(n.preDeny(t,n.validationMessage))})).then((function(n){!1===n?(e.hideLoading(),Cn(e)):e.close({isDenied:!0,value:"undefined"===typeof n?t:n})})).catch((function(t){return Kn(e||Un,t)}))):e.close({isDenied:!0,value:t})},Yn=function(e,t){e.close({isConfirmed:!0,value:t})},Kn=function(e,t){e.rejectPromise(t)},Qn=function(e,t){var n=dt.innerParams.get(e||Un);n.showLoaderOnConfirm&&Sn(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((function(){return K(n.preConfirm(t,n.validationMessage))})).then((function(n){Me(ae())||!1===n?(e.hideLoading(),Cn(e)):Yn(e,"undefined"===typeof n?t:n)})).catch((function(t){return Kn(e||Un,t)}))):Yn(e,t)};function Xn(){var e=dt.innerParams.get(this);if(e){var t=dt.domCache.get(this);Ie(t.loader),be()?e.icon&&Ne(ee()):Zn(t),Pe([t.popup,t.actions],M.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}var Zn=function(e){var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Ne(t[0],"inline-block"):Le()&&Ie(e.actions)};function Jn(){var e=dt.innerParams.get(this),t=dt.domCache.get(this);return t?_e(t.popup,e.input):null}function $n(e,t,n){var r=dt.domCache.get(e);t.forEach((function(e){r[e].disabled=n}))}function er(e,t){var n=$();if(n&&e)if("radio"===e.type)for(var r=n.querySelectorAll('[name="'.concat(M.radio,'"]')),i=0;i<r.length;i++)r[i].disabled=t;else e.disabled=t}function tr(){$n(this,["confirmButton","denyButton","cancelButton"],!1)}function nr(){$n(this,["confirmButton","denyButton","cancelButton"],!0)}function rr(){er(this.getInput(),!1)}function ir(){er(this.getInput(),!0)}function or(e){var t=dt.domCache.get(this),n=dt.innerParams.get(this);xe(t.validationMessage,e),t.validationMessage.className=M["validation-message"],n.customClass&&n.customClass.validationMessage&&ke(t.validationMessage,n.customClass.validationMessage),Ne(t.validationMessage);var r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",M["validation-message"]),Te(r),ke(r,M.inputerror))}function ar(){var e=dt.domCache.get(this);e.validationMessage&&Ie(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Pe(t,M.inputerror))}var sr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},lr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],cr={allowEnterKey:void 0},ur=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],dr=function(e){return Object.prototype.hasOwnProperty.call(sr,e)},pr=function(e){return-1!==lr.indexOf(e)},hr=function(e){return cr[e]},fr=function(e){dr(e)||V('Unknown parameter "'.concat(e,'"'))},mr=function(e){ur.includes(e)&&V('The parameter "'.concat(e,'" is incompatible with toasts'))},gr=function(e){var t=hr(e);t&&q(e,t)},vr=function(e){for(var t in!1===e.backdrop&&e.allowOutsideClick&&V('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e)fr(t),e.toast&&mr(t),gr(t)};function yr(e){var t=$(),n=dt.innerParams.get(this);if(t&&!Ce(t,n.hideClass.popup)){var r=br(e),i=Object.assign({},n,r);Ut(this,i),dt.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}else V("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.")}var br=function(e){var t={};return Object.keys(e).forEach((function(n){pr(n)?t[n]=e[n]:V("Invalid parameter to update: ".concat(n))})),t};function wr(){var e=dt.domCache.get(this),t=dt.innerParams.get(this);t?(e.popup&&I.swalCloseEventFinishedCallback&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback),"function"===typeof t.didDestroy&&t.didDestroy(),xr(this)):Cr(this)}var xr=function(e){Cr(e),delete e.params,delete I.keydownHandler,delete I.keydownTarget,delete I.currentInstance},Cr=function(e){e.isAwaitingPromise?(Ar(dt,e),e.isAwaitingPromise=!0):(Ar(nn,e),Ar(dt,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Ar=function(e,t){for(var n in e)e[n].delete(t)},Er=Object.freeze({__proto__:null,_destroy:wr,close:bn,closeModal:bn,closePopup:bn,closeToast:bn,disableButtons:nr,disableInput:ir,disableLoading:Xn,enableButtons:tr,enableInput:rr,getInput:Jn,handleAwaitingPromise:Cn,hideLoading:Xn,rejectPromise:xn,resetValidationMessage:ar,showValidationMessage:or,update:yr}),_r=function(e,t,n){e.toast?Tr(e,t,n):(Pr(t),Dr(t),Fr(e,t,n))},Tr=function(e,t,n){t.popup.onclick=function(){e&&(Sr(e)||e.timer||e.input)||n(qt.close)}},Sr=function(e){return!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton)},kr=!1,Pr=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=function(){},t.target===e.container&&(kr=!0)}}},Dr=function(e){e.container.onmousedown=function(t){t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=function(){},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(kr=!0)}}},Fr=function(e,t,n){t.container.onclick=function(r){kr?kr=!1:r.target===t.container&&G(e.allowOutsideClick)&&n(qt.backdrop)}},Nr=function(e){return"object"===D(e)&&e.jquery},Ir=function(e){return e instanceof Element||Nr(e)},Rr=function(e){var t={};return"object"!==D(e[0])||Ir(e[0])?["title","html","icon"].forEach((function(n,r){var i=e[r];"string"===typeof i||Ir(i)?t[n]=i:void 0!==i&&H("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(D(i)))})):Object.assign(t,e[0]),t};function Or(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(e,n)}function jr(e){var t=function(t){function n(){return s(this,n),o(this,n,arguments)}return v(n,t),h(n,[{key:"_main",value:function(t,r){return m(g(n.prototype),"_main",this).call(this,t,Object.assign({},e,r))}}])}(this);return t}var Mr=function(){return I.timeout&&I.timeout.getTimerLeft()},Lr=function(){if(I.timeout)return He(),I.timeout.stop()},Br=function(){if(I.timeout){var e=I.timeout.start();return Ve(e),e}},Ur=function(){var e=I.timeout;return e&&(e.running?Lr():Br())},Vr=function(e){if(I.timeout){var t=I.timeout.increase(e);return Ve(t,!0),t}},Hr=function(){return!(!I.timeout||!I.timeout.isRunning())},zr=!1,Wr={};function qr(){Wr[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,zr||(document.body.addEventListener("click",Yr),zr=!0)}var Gr,Yr=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in Wr){var r=t.getAttribute(n);if(r)return void Wr[n].fire({template:r})}},Kr=Object.freeze({__proto__:null,argsToParams:Rr,bindClickHandler:qr,clickCancel:Wt,clickConfirm:Ht,clickDeny:zt,enableLoading:Sn,fire:Or,getActions:pe,getCancelButton:le,getCloseButton:me,getConfirmButton:se,getContainer:X,getDenyButton:ce,getFocusableElements:ve,getFooter:he,getHtmlContainer:re,getIcon:ee,getIconContent:te,getImage:ie,getInputLabel:ue,getLoader:de,getPopup:$,getProgressSteps:oe,getTimerLeft:Mr,getTimerProgressBar:fe,getTitle:ne,getValidationMessage:ae,increaseTimer:Vr,isDeprecatedParameter:hr,isLoading:we,isTimerRunning:Hr,isUpdatableParameter:pr,isValidParameter:dr,isVisible:Vt,mixin:jr,resumeTimer:Br,showLoading:Sn,stopTimer:Lr,toggleTimer:Ur}),Qr=function(){function e(t,n){s(this,e),this.callback=t,this.remaining=n,this.running=!1,this.start()}return h(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}])}(),Xr=["swal-title","swal-html","swal-footer"],Zr=function(e){var t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content;return oi(n),Object.assign(Jr(n),$r(n),ei(n),ti(n),ni(n),ri(n),ii(n,Xr))},Jr=function(e){var t={};return Array.from(e.querySelectorAll("swal-param")).forEach((function(e){ai(e,["name","value"]);var n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"===typeof sr[n]?t[n]="false"!==r:"object"===D(sr[n])?t[n]=JSON.parse(r):t[n]=r})),t},$r=function(e){var t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((function(e){var n=e.getAttribute("name"),r=e.getAttribute("value");t[n]=new Function("return ".concat(r))()})),t},ei=function(e){var t={};return Array.from(e.querySelectorAll("swal-button")).forEach((function(e){ai(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(U(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},ti=function(e){var t={},n=e.querySelector("swal-image");return n&&(ai(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},ni=function(e){var t={},n=e.querySelector("swal-icon");return n&&(ai(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},ri=function(e){var t={},n=e.querySelector("swal-input");n&&(ai(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((function(e){ai(e,["value"]);var n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},ii=function(e,t){var n={};for(var r in t){var i=t[r],o=e.querySelector(i);o&&(ai(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},oi=function(e){var t=Xr.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((function(e){var n=e.tagName.toLowerCase();t.includes(n)||V("Unrecognized element <".concat(n,">"))}))},ai=function(e,t){Array.from(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&V(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},si=10,li=function(e){var t=X(),n=$();"function"===typeof e.willOpen&&e.willOpen(n);var r=window.getComputedStyle(document.body).overflowY;pi(t,n,e),setTimeout((function(){ui(t,n)}),si),ye()&&(di(t,e.scrollbarPadding,r),rn()),be()||I.previousActiveElement||(I.previousActiveElement=document.activeElement),"function"===typeof e.didOpen&&setTimeout((function(){return e.didOpen(n)})),Pe(t,M["no-transition"])},ci=function e(t){var n=$();if(t.target===n&&tt){var r=X();n.removeEventListener(tt,e),r.style.overflowY="auto"}},ui=function(e,t){tt&&Ue(t)?(e.style.overflowY="hidden",t.addEventListener(tt,ci)):e.style.overflowY="auto"},di=function(e,t,n){sn(),t&&"hidden"!==n&&mn(n),setTimeout((function(){e.scrollTop=0}))},pi=function(e,t,n){ke(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),Ne(t,"grid"),setTimeout((function(){ke(t,n.showClass.popup),t.style.removeProperty("opacity")}),si)):Ne(t,"grid"),ke([document.documentElement,document.body],M.shown),n.heightAuto&&n.backdrop&&!n.toast&&ke([document.documentElement,document.body],M["height-auto"])},hi={email:function(e,t){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function fi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=hi.email),"url"===e.input&&(e.inputValidator=hi.url))}function mi(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(V('Target parameter is not valid, defaulting to "body"'),e.target="body")}function gi(e){fi(e),e.showLoaderOnConfirm&&!e.preConfirm&&V("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),mi(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ze(e)}var vi=new WeakMap,yi=function(){function e(){if(s(this,e),c(this,vi,void 0),"undefined"!==typeof window){Gr=this;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Object.freeze(this.constructor.argsToParams(n));this.params=i,this.isAwaitingPromise=!1,u(vi,this,this._main(Gr.params))}}return h(e,[{key:"_main",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vr(Object.assign({},t,e)),I.currentInstance){var n=nn.swalPromiseResolve.get(I.currentInstance),r=I.currentInstance.isAwaitingPromise;I.currentInstance._destroy(),r||n({isDismissed:!0}),ye()&&on()}I.currentInstance=Gr;var i=wi(e,t);gi(i),Object.freeze(i),I.timeout&&(I.timeout.stop(),delete I.timeout),clearTimeout(I.restoreFocusTimeout);var o=xi(Gr);return Ut(Gr,i),dt.innerParams.set(Gr,i),bi(Gr,o,i)}},{key:"then",value:function(e){return l(vi,this).then(e)}},{key:"finally",value:function(e){return l(vi,this).finally(e)}}])}(),bi=function(e,t,n){return new Promise((function(r,i){var o=function(t){e.close({isDismissed:!0,dismiss:t})};nn.swalPromiseResolve.set(e,r),nn.swalPromiseReject.set(e,i),t.confirmButton.onclick=function(){Vn(e)},t.denyButton.onclick=function(){Hn(e)},t.cancelButton.onclick=function(){zn(e,o)},t.closeButton.onclick=function(){o(qt.close)},_r(n,t,o),Yt(I,n,o),Pn(e,n),li(n),Ci(I,n,o),Ai(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},wi=function(e,t){var n=Zr(e),r=Object.assign({},sr,t,n,e);return r.showClass=Object.assign({},sr.showClass,r.showClass),r.hideClass=Object.assign({},sr.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},xi=function(e){var t={popup:$(),container:X(),actions:pe(),confirmButton:se(),denyButton:ce(),cancelButton:le(),loader:de(),closeButton:me(),validationMessage:ae(),progressSteps:oe()};return dt.domCache.set(e,t),t},Ci=function(e,t,n){var r=fe();Ie(r),t.timer&&(e.timeout=new Qr((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Ne(r),Ee(r,t,"timerProgressBar"),setTimeout((function(){e.timeout&&e.timeout.running&&Ve(t.timer)}))))},Ai=function(e,t){if(!t.toast)return G(t.allowEnterKey)?void(Ei(e)||_i(e,t)||Kt(-1,1)):(q("allowEnterKey"),void Ti())},Ei=function(e){var t,n=f(e.popup.querySelectorAll("[autofocus]"));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r instanceof HTMLElement&&Me(r))return r.focus(),!0}}catch(i){n.e(i)}finally{n.f()}return!1},_i=function(e,t){return t.focusDeny&&Me(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Me(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Me(e.confirmButton))&&(e.confirmButton.focus(),!0)},Ti=function(){document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var Si=new Date,ki=localStorage.getItem("swal-initiation");ki?(Si.getTime()-Date.parse(ki))/864e5>3&&setTimeout((function(){document.body.style.pointerEvents="none";var e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((function(){e.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(Si))}yi.prototype.disableButtons=nr,yi.prototype.enableButtons=tr,yi.prototype.getInput=Jn,yi.prototype.disableInput=ir,yi.prototype.enableInput=rr,yi.prototype.hideLoading=Xn,yi.prototype.disableLoading=Xn,yi.prototype.showValidationMessage=or,yi.prototype.resetValidationMessage=ar,yi.prototype.close=bn,yi.prototype.closePopup=bn,yi.prototype.closeModal=bn,yi.prototype.closeToast=bn,yi.prototype.rejectPromise=xn,yi.prototype.update=yr,yi.prototype._destroy=wr,Object.assign(yi,Kr),Object.keys(Er).forEach((function(e){yi[e]=function(){var t;return Gr&&Gr[e]?(t=Gr)[e].apply(t,arguments):null}})),yi.DismissReason=qt,yi.version="11.12.2";var Pi=yi;return Pi.default=Pi,Pi}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},24504:e=>{const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),i=(e,t)=>n(e).join(t).toLowerCase(),o=e=>n(e).reduce(((e,t)=>"".concat(e).concat(e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase())),"");e.exports={words:n,upperFirst:r,camelCase:o,pascalCase:e=>r(o(e)),snakeCase:e=>i(e,"_"),kebabCase:e=>i(e,"-"),sentenceCase:e=>r(i(e," ")),titleCase:e=>n(e).map(r).join(" ")}},77623:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){}},41567:e=>{function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(p){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,s.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},60796:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}n.r(t),n.d(t,{default:()=>r})},33905:(e,t,n)=>{"use strict";var r=n(61462);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},12898:(e,t,n)=>{"use strict";e.exports=n(33905)},7273:e=>{"use strict";var t=function(){};e.exports=t},75370:(e,t)=>{"use strict";function n(e,t,n){return n.globals&&(e=n.globals[e.name]),new e("".concat(n.context?n.context:"Value"," ").concat(t,"."))}function r(e,t){if("bigint"===typeof e)throw n(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function i(e){return s(e>0&&e%1===.5&&0===(1&e)||e<0&&e%1===-.5&&1===(1&e)?Math.floor(e):Math.round(e))}function o(e){return s(Math.trunc(e))}function a(e){return e<0?-1:1}function s(e){return 0===e?0:e}function l(e,t){let l,c,{unsigned:u}=t;u?(l=0,c=2**e-1):(l=-(2**(e-1)),c=2**(e-1)-1);const d=2**e,p=2**(e-1);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=r(e,t);if(h=s(h),t.enforceRange){if(!Number.isFinite(h))throw n(TypeError,"is not a finite number",t);if(h=o(h),h<l||h>c)throw n(TypeError,"is outside the accepted range of ".concat(l," to ").concat(c,", inclusive"),t);return h}return!Number.isNaN(h)&&t.clamp?(h=Math.min(Math.max(h,l),c),h=i(h),h):Number.isFinite(h)&&0!==h?(h=o(h),h>=l&&h<=c?h:(h=function(e,t){const n=e%t;return a(t)!==a(n)?n+t:n}(h,d),!u&&h>=p?h-d:h)):0}}function c(e,t){let{unsigned:a}=t;const l=Number.MAX_SAFE_INTEGER,c=a?0:Number.MIN_SAFE_INTEGER,u=a?BigInt.asUintN:BigInt.asIntN;return function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=r(t,a);if(d=s(d),a.enforceRange){if(!Number.isFinite(d))throw n(TypeError,"is not a finite number",a);if(d=o(d),d<c||d>l)throw n(TypeError,"is outside the accepted range of ".concat(c," to ").concat(l,", inclusive"),a);return d}if(!Number.isNaN(d)&&a.clamp)return d=Math.min(Math.max(d,c),l),d=i(d),d;if(!Number.isFinite(d)||0===d)return 0;let p=BigInt(o(d));return p=u(e,p),Number(p)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=l(8,{unsigned:!1}),t.octet=l(8,{unsigned:!0}),t.short=l(16,{unsigned:!1}),t["unsigned short"]=l(16,{unsigned:!0}),t.long=l(32,{unsigned:!1}),t["unsigned long"]=l(32,{unsigned:!0}),t["long long"]=c(64,{unsigned:!1}),t["unsigned long long"]=c(64,{unsigned:!0}),t.double=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);return i},t["unrestricted double"]=function(e){return r(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},t.float=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);if(Object.is(i,-0))return i;const o=Math.fround(i);if(!Number.isFinite(o))throw n(TypeError,"is outside the range of a single-precision floating-point value",t);return o},t["unrestricted float"]=function(e){const t=r(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return isNaN(t)||Object.is(t,-0)?t:Math.fround(t)},t.DOMString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"===typeof e)throw n(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t.DOMString(e,r);let o;for(let t=0;void 0!==(o=i.codePointAt(t));++t)if(o>255)throw n(TypeError,"is not a valid ByteString",r);return i},t.USVString=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.DOMString(e,n),i=r.length,o=[];for(let t=0;t<i;++t){const e=r.charCodeAt(t);if(e<55296||e>57343)o.push(String.fromCodePoint(e));else if(56320<=e&&e<=57343)o.push(String.fromCodePoint(65533));else if(t===i-1)o.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(t+1);if(56320<=n&&n<=57343){const r=1023&e,i=1023&n;o.push(String.fromCodePoint(65536+1024*r+i)),++t}else o.push(String.fromCodePoint(65533))}}return o.join("")},t.object=function(e){if(null===e||"object"!==typeof e&&"function"!==typeof e)throw n(TypeError,"is not an object",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return e};const u=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d="function"===typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function p(e){try{return u.call(e),!0}catch{return!1}}function h(e){try{return d.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!p(e)){if(t.allowShared&&!h(e))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw n(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{m.call(e)}catch(r){throw n(TypeError,"is not a DataView",t)}if(!t.allowShared&&h(e.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",t);return e};const g=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:r}=e,i=/^[AEIOU]/u.test(r)?"an":"a";t[r]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ArrayBuffer.isView(e)||g.call(e)!==r)throw n(TypeError,"is not ".concat(i," ").concat(r," object"),t);if(!t.allowShared&&h(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ArrayBuffer.isView(e))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&h(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ArrayBuffer.isView(e)){if(!t.allowShared&&h(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!p(e))throw n(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!h(e)&&!p(e))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},57941:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.composeFlowAccessURL=void 0;t.composeFlowAccessURL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=null===e||void 0===e?void 0:e.toLowerCase();return n.includes("alchemy.com")&&n.endsWith("v2")?"".concat(n,"/").concat(t):n}},12994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},93615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sliceIntoChunks=void 0;t.sliceIntoChunks=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t){const i=e.slice(r,r+t);n.push(i)}return n}},80259:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FLOW_SCAN_TX_TESTNET_URL=t.FLOW_SCAN_TX_MAINNET_URL=t.flowtyDiscordLink=void 0,t.flowtyDiscordLink="https://discord.gg/flowty",t.FLOW_SCAN_TX_MAINNET_URL="https://flowscan.io/tx",t.FLOW_SCAN_TX_TESTNET_URL="https://testnet.flowscan.io/tx"},79587:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowtyException=void 0;const i=n(6558);class o extends Error{constructor(e,t,n){const o=(0,i.getMessageFromError)(e);super("".concat(n||"unknown origin"," ").concat(o||"unknown error message"," ").concat(JSON.stringify(t)," ")),r(this,"error",void 0),r(this,"context",void 0),r(this,"origin",void 0),this.error=e,this.context=t,this.origin=n}}t.FlowtyException=o},47593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateCommission=t.calculateDapperFee=t.calculateFlowtyFee=void 0;t.calculateFlowtyFee=(e,t)=>0;t.calculateDapperFee=(e,t)=>0===t?0:"DUC"===e?Math.max(.44,.01*t):0;t.calculateCommission=(e,n)=>(0,t.calculateFlowtyFee)(e,n)+(0,t.calculateDapperFee)(e,n)},59063:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IEventType=t.DapperOfferKind=t.OfferKind=t.isContractWithValuation=t.NFT_CONTRACT_TO_VALUATION_PROVIDER=t.ListingStatus=t.NFTValuationProvider=t.NFT_CONTRACT_NAMES=t.NFT_COLLECTION_PATHS=t.NFTCollectionNames=void 0,function(e){e.Example="Example Nft",e.Versus="Versus",e.NBATopShot="NBA Top Shot",e.Gaia="Gaia"}(n=t.NFTCollectionNames||(t.NFTCollectionNames={})),t.NFT_COLLECTION_PATHS={[n.Example]:"ExampleNFT.CollectionPublicPath",[n.Versus]:"/public/versusArtCollection",[n.NBATopShot]:"/public/MomentCollection",[n.Gaia]:"Gaia.CollectionPublicPath"},t.NFT_CONTRACT_NAMES={[n.Example]:"ExampleNFT",[n.Versus]:"",[n.NBATopShot]:"TopShot",[n.Gaia]:"Gaia"},function(e){e.FlovDev="Flov.dev",e.OwnTheMoment="OwnTheMoment",e.Blended="Blended"}(r=t.NFTValuationProvider||(t.NFTValuationProvider={})),function(e){e.Listed="LISTED",e.Funded="FUNDED",e.Repaid="REPAID",e.Delisted="DELISTED",e.Cancelled="CANCELLED",e.Settled="SETTLED",e.Invalid="INVALID",e.Rented="RENTED",e.Returned="RETURNED",e.Expired="EXPIRED",e.Purchased="PURCHASED"}(t.ListingStatus||(t.ListingStatus={})),t.NFT_CONTRACT_TO_VALUATION_PROVIDER={AllDay:[r.OwnTheMoment],Flovatar:[r.FlovDev],TopShot:[r.OwnTheMoment]};t.isContractWithValuation=e=>e in t.NFT_CONTRACT_TO_VALUATION_PROVIDER,function(e){e.None="",e.Global="global",e.EditionName="editionName",e.TypeAndID="typeAndID"}(t.OfferKind||(t.OfferKind={})),function(e){e.None="None",e.DapperNFT="DapperNFT",e.GaiaNFT="GaiaNFT",e.FlowtyNFT="FlowtyNFT",e.FlowtyGlobal="FlowtyGlobal"}(t.DapperOfferKind||(t.DapperOfferKind={})),function(e){e.Listed="LISTED",e.Funded="FUNDED",e.Repaid="REPAID",e.Delisted="DELISTED",e.Settled="SETTLED",e.RentalListed="RENTAL_LISTED",e.RentalRented="RENTAL_RENTED",e.RentalReturned="RENTAL_RETURNED",e.RentalSettled="RENTAL_SETTLED",e.RentalDestroyed="RENTAL_DESTROYED",e.StorefrontListed="STOREFRONT_LISTED",e.StorefrontPurchased="STOREFRONT_PURCHASED",e.StorefrontCompleted="STOREFRONT_COMPLETED",e.StorefrontDelisted="STOREFRONT_DELISTED",e.StorefrontOfferCreated="STOREFRONT_OFFER_CREATED",e.StorefrontOfferCancelled="STOREFRONT_OFFER_CANCELLED",e.StorefrontOfferAccepted="STOREFRONT_OFFER_ACCEPTED",e.StorefrontOfferCompleted="STOREFRONT_OFFER_COMPLETED"}(t.IEventType||(t.IEventType={}))},85788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},88573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNftId=t.getNFTDetail=t.getCardTerms=t.getMetadataFields=t.emptyFlowNFTToNFT=t.getSquareImage=t.getBannerImage=t.getImageURL=t.specialCaseImages=t.flowNFTToCard=t.getHeaderTraits=t.getTraitsByName=t.getAdditionalDetailsFromFlowNFT=t.hasTopShotDetailFields=t.getImagesFromFlowNFT=t.getTitleFromFlowNFT=t.getNFTIdentifier=t.nftLocationDataToType=t.nftLocationDataFromListing=t.idToNFTLocationData=t.nftTypeToContractID=t.nftTypeAndIdToLocationData=t.nftTypeToContract=t.flattenFlowNFTTraits=void 0;const r=n(32109),i=n(89145),o=n(34818),a=n(51803),s="https://flowty-public.mypinata.cloud/ipfs/",l="https://flowty.quicknode-ipfs.com/ipfs/",c="https://ipfs.io/ipfs/",u="https://flowverse.myfilebase.com/ipfs/";t.flattenFlowNFTTraits=e=>{var t,n;if(null===e||void 0===e||null===(t=e.nftView)||void 0===t||null===(t=t.traits)||void 0===t||!t.traits)return{metadata:{}};const r={};if(e.nftView.traits.traits.forEach((e=>{r[e.name]=e.value})),null!==(n=e.nftView)&&void 0!==n&&n.editions&&e.nftView.editions.infoList.length>0){const t=e.nftView.editions.infoList[0];t.max&&(r.editionMax=t.max),t.name&&(r.editionName=t.name),r.editionNumber=t.number}return{metadata:r}};t.nftTypeToContract=e=>{const t=e.split(".");return{address:(0,i.formatAddress)(t[1]),name:t[2]}};t.nftTypeAndIdToLocationData=(e,t)=>{const n=null===e||void 0===e?void 0:e.split(".");return!n||n.length<4?{contract:{address:"",name:""},nftID:t,resourceName:""}:{contract:{address:(0,i.formatAddress)(n[1]),name:n[2]},nftID:t,resourceName:n[3]}};t.nftTypeToContractID=e=>{const t=e.split(".");return"".concat((0,i.formatAddress)(t[1]),".").concat(t[2])};t.idToNFTLocationData=e=>{const t=e.split(".");return 4===t.length?{contract:{address:t[0],name:t[1]},nftID:t[3],resourceName:t[2]}:{contract:{address:t[0],name:t[1]},nftID:t[t.length-1],resourceName:"NFT"}};t.nftLocationDataFromListing=e=>{const t=e.nftType.split("."),n=4===t.length?t[3]:"NFT";return{contract:{address:(0,i.formatAddress)(t[1]),name:t[2]},nftID:e.nftID,resourceName:n}};t.nftLocationDataToType=e=>{const{address:t,name:n}=e.contract;return e.resourceName?"A.".concat(t.substring(2),".").concat(n,".").concat(e.resourceName):"A.".concat(t.substring(2),".").concat(n,".NFT")};t.getNFTIdentifier=e=>"NFT"!==e.resourceName?"".concat(e.contract.address,".").concat(e.contract.name,".").concat(e.resourceName,".").concat(e.nftID):"".concat(e.contract.address,".").concat(e.contract.name,".").concat(e.nftID);t.getTitleFromFlowNFT=(e,n)=>{var r,i,o;if(n.type&&n.type.includes("TopShot")&&(null!==(o=n.nftView)&&void 0!==o&&null!==(o=o.traits)&&void 0!==o&&o.traits)){let e="",t="",r="";if(n.nftView.traits.traits.forEach((n=>{"TeamAtMoment"===n.name&&(e=n.value.toString()),"FullName"===n.name&&(t=n.value.toString()),"PlayCategory"===n.name&&(r=n.value.toString())})),""!==t)return t;if(e)return"Redemption"===r?"".concat(e," - Redemption"):e}if(n.type&&n.type.includes("AllDay")){const e=(0,t.flattenFlowNFTTraits)(n);if(e.metadata.playerFirstName&&e.metadata.playerLastName){const{playerFirstName:t,playerLastName:n}=e.metadata;return"".concat(t," ").concat(n)}var a;if(e.metadata.teamName)return"".concat(e.metadata.teamName," ").concat(null!==(a=e.metadata.playType)&&void 0!==a?a:"")}if(n.type&&n.type.includes("Golazos")){const e=(0,t.flattenFlowNFTTraits)(n),{metadata:r}=e,i="".concat(r.PlayerFirstName," ").concat(r.PlayerLastName).trim(),o=r.PlayerKnownName||i;if(o)return o}if(null!==(r=n.nftView)&&void 0!==r&&null!==(r=r.display)&&void 0!==r&&r.name)return n.nftView.display.name;if(null!==(i=n.nft)&&void 0!==i&&i.title)return n.nft.title;const s=(0,t.idToNFTLocationData)(e);return"".concat(s.contract.name," #").concat(s.nftID)};const d=e=>{const t=new URL(e);return t.searchParams.has("pinataGatewayToken")||t.searchParams.set("pinataGatewayToken","xFpPpu5fb5PZMLV6RF8ueOm08-BkzG5BLYJf1jVw1NL8RUORAi5yj3BwsexCJWIz"),t.toString()};t.getImagesFromFlowNFT=e=>{if(e.nftView&&e.nftView.display){let t=e.nftView.display.thumbnail;t.startsWith("ipfs://")&&(t=d("".concat(s).concat(t.substring(7))));return[{mediaType:"image",url:t}]}return e.nft&&e.nft.media?e.nft.media.map((e=>({mediaType:e.mimeType||"",url:e.uri}))):null};t.hasTopShotDetailFields=e=>{var t;if(null===e||void 0===e||null===(t=e.nft)||void 0===t||null===(t=t.metadata)||void 0===t||!t.metadata)return!1;const{Set:n,Series:r,Serial:i,Tier:o}=e.nft.metadata.metadata;return n&&r&&i&&o};const p=e=>{var t,n,r,i;return null!==(t=e.nftView)&&void 0!==t&&null!==(t=t.editions)&&void 0!==t&&t.infoList&&0!==e.nftView.editions.infoList.length?(null===(n=e.nftView.editions.infoList[0].number)||void 0===n?void 0:n.toString())||(null===e||void 0===e||null===(r=e.id)||void 0===r?void 0:r.toString())||"":(null===e||void 0===e||null===(i=e.id)||void 0===i?void 0:i.toString())||""},h=e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.nftView)&&void 0!==t&&t.serial?e.nftView.serial:p(e)},f=e=>{var t,n,r;return null!==(t=e.nftView)&&void 0!==t&&null!==(t=t.editions)&&void 0!==t&&t.infoList&&0!==e.nftView.editions.infoList.length&&null!==(n=null===(r=e.nftView.editions.infoList[0].max)||void 0===r?void 0:r.toString())&&void 0!==n?n:null};t.getAdditionalDetailsFromFlowNFT=e=>{var n,i,o,a,s,l;if("TopShot"===e.contractName&&null!==e&&void 0!==e&&null!==(n=e.nftView)&&void 0!==n&&n.traits){var c,u;const t={};e.nftView.traits.traits.forEach((e=>{t[e.name]=e.value}));let n="N/A";null!==(c=e.nftView)&&void 0!==c&&c.editions&&e.nftView.editions.infoList.length>0&&null!==(u=e.nftView.editions)&&void 0!==u&&null!==(u=u.infoList[0])&&void 0!==u&&u.max&&(n=e.nftView.editions.infoList[0].max.toString());const i="#".concat(t.SerialNumber," / ").concat(n),o=(0,r.flowSeriesToTopShotSeries)(t.SeriesNumber);return["".concat(t.SetName," (").concat(Number.isNaN(+o)?o:"Series ".concat(o),")"),"".concat(t.Tier," ").concat(i)]}if("TopShot"===e.contractName&&null!==e&&void 0!==e&&null!==(i=e.nft)&&void 0!==i&&i.metadata.metadata&&null!==e&&void 0!==e&&null!==(o=e.nft)&&void 0!==o&&o.metadata.metadata.Set&&(0,t.hasTopShotDetailFields)(e)){const{Set:t,Series:n,Serial:i,Supply:o,Tier:a}=e.nft.metadata.metadata,s="#".concat(i," / ").concat(o),l=(0,r.flowSeriesToTopShotSeries)(n);return["".concat(t," (").concat(Number.isNaN(+l)?l:"Series ".concat(l),")"),"".concat(a," ").concat(s)]}if("UFC_NFT"===e.contractName&&null!==e&&void 0!==e&&null!==(a=e.nftView)&&void 0!==a&&null!==(a=a.traits)&&void 0!==a&&a.traits){var d;const t={};e.nftView.traits.traits.forEach((e=>{t[e.name]=e.value}));const n=t.EditionNum||t.editionNum||p(e)||h(e),r=t["EDITION SIZE"]||f(e),i="#".concat(n," / ").concat(r);return[t.SET&&t.SERIES?"".concat(t.SET," (Series ").concat(t.SERIES,")"):"","".concat(null!==(d=t.TIER)&&void 0!==d?d:""," ").concat(i).trim()]}if("AllDay"===e.contractName&&null!==e&&void 0!==e&&null!==(s=e.nftView)&&void 0!==s&&null!==(s=s.traits)&&void 0!==s&&s.traits){var m;const t={};e.nftView.traits.traits.forEach((e=>{t[e.name]=e.value}));const n=t.serialNumber||t["Serial Number"];let r=0;r=null!==e&&void 0!==e&&null!==(m=e.nftView)&&void 0!==m&&m.editions&&e.nftView.editions.infoList.length>0&&e.nftView.editions.infoList[0].max?e.nftView.editions.infoList[0].max:Number(t["Num Minted"]);const i=t.setName||t["Set Name"],o=t.seriesName||"Series ".concat(t["Series Number"]),a="#".concat(n," / ").concat(r),s="".concat(i," (").concat(o,")"),l=t.editionTier||t.Tier;return[s,"".concat(l," ").concat(a)]}if("Golazos"===e.contractName&&null!==e&&void 0!==e&&null!==(l=e.nftView)&&void 0!==l&&null!==(l=l.traits)&&void 0!==l&&l.traits){var g;const t={};e.nftView.traits.traits.forEach((e=>{t[e.name]=e.value}));const n=(null===(g=e.nftView.editions)||void 0===g||null===(g=g.infoList[0])||void 0===g?void 0:g.max)||"N/A",{setName:r,seriesName:i,serialNumber:o,editionTier:a}=t;return["".concat(r," (").concat(i,")"),"".concat(a," #").concat(o," / ").concat(n)]}return null};t.getTraitsByName=(e,t)=>{const n={};t.forEach((t=>{e.has(t.name)&&(n[t.name]=t)}));const r=[];return Array.from(e.keys()).forEach((e=>{n[e]&&r.push(n[e])})),r};t.getHeaderTraits=e=>{var n;if(null===(n=e.nftView)||void 0===n||!n.traits)return[];let r=new Set;switch(e.contractName){case"TopShot":r=new Set(["Tier","SetName","SeriesName"]);break;case"AllDay":r=new Set(["editionTier","setName","seriesName"]);break;case"UFC_NFT":r=new Set(["TIER","SET","SERIES"])}return(0,t.getTraitsByName)(r,e.nftView.traits.traits)};t.flowNFTToCard=(e,n)=>{const r=(0,t.idToNFTLocationData)(e);return{additionalDetails:(0,t.getAdditionalDetailsFromFlowNFT)(n),collectionAddress:n.contractAddress||r.contract.address,collectionName:n.contractName||r.contract.name,headerTraits:(0,t.getHeaderTraits)(n),images:(0,t.getImagesFromFlowNFT)(n),max:f(n),num:h(n),title:(0,t.getTitleFromFlowNFT)(e,n),video:null}},t.specialCaseImages={AllDay:{banner:o.AllDayBanner,square:o.AllDayThumbnail},LaLiga:{banner:o.LaLigaBanner,square:o.LaLigaThumbnail},TopShot:{banner:o.TopShotBanner,square:o.TopShotSquare},UFC:{banner:o.StrikeBanner,square:o.StrikeThumbnail},default:{banner:o.DefaultBanner,square:o.DefaultThumbnail}};t.getImageURL=(e,t)=>{if(t)return e;if(!e)return"https://storage.googleapis.com/flowty-images/fallback_image.svg";if(e.startsWith("ipfs://"))return d("".concat(s).concat(e.substring(7)));if(e.startsWith(l))return d(e.replace(l,s));const n=e.toLowerCase();if(!function(e){return/^(?:[a-z]+:)?\/\//i.test(e)}(e)){if(e.startsWith("data:")){return(0,a.tryHandleDataUrl)(e)}return d("".concat(s).concat(function(e){return e.replace(/^\/+/,"")}(e)))}if(e.startsWith(c))return d(e.replace(c,s));if(e.startsWith(s))return d(e);if(e.startsWith(u))return d(e.replace(u,s));if("https://nbatopshot.com/static/img/og/og.png"===n||n.includes("/flowty-images/basketball.jpg")||n.includes("flowty-images/topshot/350x350.png"))return o.TopShotThumbnail;if(n.includes("nbatopshot")||n.includes("allday")){const t=new URL(e);return t.searchParams.set("width","1451"),t.searchParams.set("format","webp"),t.searchParams.set("quality","80"),t.searchParams.set("cv","1"),t.href}return e};t.getBannerImage=(e,n)=>{var r;const i=null===n||void 0===n||null===(r=n.collectionDisplay)||void 0===r||null===(r=r.bannerImage)||void 0===r?void 0:r.file;if(!i)return t.specialCaseImages.default.banner;const{url:o,cid:a,path:l}=i;let p=o||a;if(!p)return t.specialCaseImages.default.banner;if(l&&(p="".concat(p,"/").concat(l)),p.startsWith("http")||p.startsWith("ipfs://")||(p="".concat(s).concat(p)),p.startsWith(c))return d(p.replace(c,s));if(p.startsWith(u))return d(p.replace(u,s));const h=e.toLowerCase();return h.includes("topshot"),h.includes("allday"),h.includes("ufc"),h.includes("laliga"),p||t.specialCaseImages.default.banner};t.getSquareImage=(e,n)=>{var r;const i=null===n||void 0===n||null===(r=n.collectionDisplay)||void 0===r?void 0:r.squareImage.file;if(!i)return t.specialCaseImages.default.square;const{cid:o,url:a,path:l}=i;let p=a||o;return p?(l&&(p="".concat(p,"/").concat(l)),p.startsWith("http")||p.startsWith("ipfs://")||(p="".concat(s).concat(p)),p.startsWith(c)||p.startsWith(s)?d(p.replace(c,s)):p.startsWith(u)?d(p.replace(u,s)):p?(0,t.getImageURL)(p):t.specialCaseImages.default.square):t.specialCaseImages.default.square};t.emptyFlowNFTToNFT=e=>{var n,r,i,o,a,s;const l={};if(null!==e&&void 0!==e&&null!==(n=e.nftView)&&void 0!==n&&n.traits&&e.nftView.traits.traits.forEach((e=>{l[e.name]=e.value})),null!==(r=e.nftView)&&void 0!==r&&r.editions&&e.nftView.editions.infoList.length>0){const t=e.nftView.editions.infoList[0];t.max&&(l.editionMax=t.max),t.name&&(l.editionName=t.name),l.editionNumber=t.number}const c=null!==(i=e.card)&&void 0!==i&&null!==(i=i.images)&&void 0!==i&&i.length&&e.card.images.length>0?e.card.images[0].url:(null===(o=e.nftView)||void 0===o||null===(o=o.display)||void 0===o?void 0:o.thumbnail)||"",u=(0,t.getImageURL)(c),d=(0,t.getTitleFromFlowNFT)("0x".concat(e.type,".").concat(e.id),e);let p,h;return null!==(a=e.nftView)&&void 0!==a&&a.collectionData?(p="/public/".concat(e.nftView.collectionData.publicPath.identifier),h="/storage/".concat(e.nftView.collectionData.storagePath.identifier)):(p="".concat(e.contractName,".CollectionPublicPath"),h="".concat(e.contractName,".CollectionStoragePath")),{contract:{address:e.contractAddress,contractMetadata:{publicCollectionName:"",publicPath:p,storagePath:h},externalDomain:"",name:e.contractName},description:"",externalDomainViewUrl:"",id:{tokenId:(null===(s=e.id)||void 0===s?void 0:s.toString())||"1",tokenMetadata:{uuid:""}},media:[{mimeType:"image",uri:u}],metadata:{metadata:l},title:d,tokenUri:{raw:""}}};t.getMetadataFields=(e,t)=>{var n;const i=null!==(n=null===e||void 0===e?void 0:e.metadata)&&void 0!==n?n:{};let o={};if(t.includes("TopShot")){var a,s,l,c,u;const e=(0,r.flowSeriesToTopShotSeries)(null!==(a=i.TopShotSeries)&&void 0!==a?a:i.SeriesNumber),t=null!==(s=null!==(l=i.Serial)&&void 0!==l?l:i.SerialNumber)&&void 0!==s?s:i.editionNumber,n=null!==(c=i.Supply)&&void 0!==c?c:i.editionMax;o.Name=i.FullName,o.Set=null!==(u=i.Set)&&void 0!==u?u:i.SetName,o.Tier=(null===i||void 0===i?void 0:i.Tier)||"Unknown",o.Series=Number.isNaN(+e)?e:"Series ".concat(e),o.Serial="".concat(t," / ").concat(n),o.Team=i.TeamAtMoment,o["Play Type"]=i.PlayType}else o={...i};return o};t.getCardTerms=(e,n)=>{const r=(0,t.getMetadataFields)(e,n);if(n.includes("TopShot"))return["".concat((0,i.truncateString)(r.Set,15)," (").concat(r.Series,")"),"".concat(r.Tier," ").concat(r.Serial)];if(n.includes("AllDay")){const e=r["Set Name"]||r.setName,t=r["Series Number"]?"Series ".concat(r["Series Number"]):r.seriesName,n=r["Serial Number"]||r.serialNumber,o=r.Tier||r.editionTier,a=r["Num Minted"]||r.editionMax;return["".concat((0,i.truncateString)(e,15)," (").concat(t,")"),"".concat(o," #").concat(n," / ").concat(a)]}return n.includes("UFC_NFT"),[null,null]};t.getNFTDetail=function(e){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i="";if(r&&(i="".concat(r.title||"","\n ").concat(r.additionalDetails&&r.additionalDetails.join("\n")||"")),i&&!i.includes("undefined")&&!i.includes("N/A"))return i;if(null===e||void 0===e||null===(n=e.metadata)||void 0===n||!n.metadata)return"";const{name:o,address:a}=e.contract,s="".concat(a,".").concat(o);if("TopShot"===e.contract.name){const n=(0,t.getCardTerms)(e.metadata,s);return"".concat(e.title||""," \n ").concat(n.join(" "))}return e.title};t.getNftId=e=>{const n=(0,t.nftTypeAndIdToLocationData)(e.type,e.id);return(0,t.getNFTIdentifier)(n)}},98323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultImage=t.DefaultThumbnail=t.DefaultBanner=t.LaLigaThumbnail=t.LaLigaBanner=t.StrikeBanner=t.StrikeThumbnail=t.AllDayBanner=t.AllDayThumbnail=t.TopShotBanner=t.TopShotSquare=t.TopShotThumbnail=void 0,t.TopShotThumbnail="https://storage.googleapis.com/flowty-images/topshot.png",t.TopShotSquare="https://storage.googleapis.com/flowty-images/TopShot/512x512.png",t.TopShotBanner="https://storage.googleapis.com/flowty-images/TopShot/1400x350.png",t.AllDayThumbnail="https://storage.googleapis.com/flowty-images/AllDay/350x350.jpg",t.AllDayBanner="https://storage.googleapis.com/flowty-images/AllDay/1400x350.jpg",t.StrikeThumbnail="https://storage.googleapis.com/flowty-images/Strike/350x350.png",t.StrikeBanner="https://storage.googleapis.com/flowty-images/Strike/1400x350.png",t.LaLigaBanner="https://storage.googleapis.com/flowty-images/LaLiga/1400x350.png",t.LaLigaThumbnail="https://storage.googleapis.com/flowty-images/LaLiga/350x350.png",t.DefaultBanner="https://i.ibb.co/QQrdypK/fall-Back-Banner.png",t.DefaultThumbnail="https://i.ibb.co/N3Trjct/new-fallback-image.png";t.getDefaultImage=e=>"https://api-ufj4afzoca-uc.a.run.app/6.x/thumbs/png?seed=".concat(e)},10514:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(93615),t),i(n(85788),t),i(n(88573),t),i(n(57941),t),i(n(59063),t),i(n(12110),t),i(n(49714),t),i(n(6558),t),i(n(88383),t),i(n(84955),t),i(n(89145),t),i(n(32109),t),i(n(12994),t),i(n(93955),t),i(n(17784),t),i(n(47593),t),i(n(98323),t),i(n(79587),t),i(n(50288),t),i(n(52078),t),i(n(55174),t),i(n(51803),t),i(n(34818),t),i(n(80259),t),i(n(14645),t),i(n(61497),t)},93955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solveWithMarketplaceAmountAndPeriodicInterest=t.solveWithAmountAndRepayment=t.solveWithAmountAndInterest=t.borrowerToLenderValues=t.calcBorrowerInterestRate=t.calcLenderInterest=t.calcLenderRepaymentAmount=t.calcLenderFundingAmount=t.calcRoyaltyFeeAmount=t.calcFlowtyFeeAmount=t.calcTotalBorrowerRepayment=t.calcBorrowerInterestOwed=t.numToSeconds=t.calcAPRInterest=t.calcAPRWithLoanAmounts=t.calcInterestAmount=t.FLOWTY_INTEREST_FEE=t.ONE_DAY_IN_SECONDS=t.ONE_MINUTE_IN_SECONDS=void 0,t.ONE_MINUTE_IN_SECONDS=3600,t.ONE_DAY_IN_SECONDS=86400,t.FLOWTY_INTEREST_FEE=.1;t.calcInterestAmount=(e,t)=>t*e;t.calcAPRWithLoanAmounts=(e,n,r)=>{try{const i=365/(r/t.ONE_DAY_IN_SECONDS)*(n/e-1);return Number.isNaN(i)?0:i}catch(i){return 0}};t.calcAPRInterest=(e,n)=>{try{const r=365/(n/t.ONE_DAY_IN_SECONDS)*e*100;return Number.isNaN(r)?0:r}catch(r){return 0}};t.numToSeconds=e=>e*t.ONE_DAY_IN_SECONDS;t.calcBorrowerInterestOwed=e=>e.amount&&e.interest?Math.round(Math.round(100*e.amount)*e.interest)/100:0;t.calcTotalBorrowerRepayment=e=>null!==e&&void 0!==e&&e.amount&&null!==e&&void 0!==e&&e.interest?Math.round(Math.round(100*e.amount)+(0,t.calcBorrowerInterestOwed)(e))/100:0;t.calcFlowtyFeeAmount=e=>t.FLOWTY_INTEREST_FEE*(0,t.calcBorrowerInterestOwed)(e);t.calcRoyaltyFeeAmount=(e,t)=>e.amount&&t?Math.round(Math.round(100*e.amount)*t)/100:0;t.calcLenderFundingAmount=(e,n)=>{if(!e.amount)return 0;const r=(0,t.calcFlowtyFeeAmount)(e),i=(0,t.calcRoyaltyFeeAmount)(e,n);return(Math.round(100*e.amount)+Math.round(100*r)+Math.round(100*i))/100};t.calcLenderRepaymentAmount=(e,n)=>{const r=(0,t.calcTotalBorrowerRepayment)(e),i=(0,t.calcRoyaltyFeeAmount)(e,n);return(Math.round(100*r)+Math.round(100*i))/100};t.calcLenderInterest=(e,n)=>(0,t.calcLenderRepaymentAmount)(e,n)/(0,t.calcLenderFundingAmount)(e,n)-1;t.calcBorrowerInterestRate=e=>{if(!e.amount)return 0;return(0,t.calcBorrowerInterestOwed)(e)/e.amount};t.borrowerToLenderValues=(e,n)=>{const r=(0,t.calcLenderFundingAmount)(e,n),i=(0,t.calcLenderInterest)(e,n);return{amount:e.amount,interest:e.interest,marketplaceAmount:r,periodicInterest:i,term:e.term}};t.solveWithAmountAndInterest=(e,n)=>{if(null===e.amount||void 0===e.amount||null===e.interest||void 0===e.interest)return null;const r=e.amount*e.interest,i=t.FLOWTY_INTEREST_FEE*r,o=n*e.amount,a=e.amount+i+o,s=e.amount+r,l=(s+o)/a-1;return{amount:e.amount,flowtyInterestFee:i,interest:e.interest,marketplaceAmount:a,periodicInterest:l,repaymentDue:s,royaltyFee:o,term:e.term?e.term:0,totalRepayment:s+o}};t.solveWithAmountAndRepayment=(e,n)=>{if(null===e.amount||void 0===e.amount||null===e.repayment||void 0===e.repayment)return null;const r=e.repayment,{amount:i}=e,o=r-i,a=t.FLOWTY_INTEREST_FEE*o,s=n*e.amount,l=e.amount+a+s,c=r+s;return{amount:i,flowtyInterestFee:a,interest:r/e.repayment-1,marketplaceAmount:l,periodicInterest:c/l-1,repaymentDue:r,royaltyFee:s,term:e.term?e.term:0,totalRepayment:r}};t.solveWithMarketplaceAmountAndPeriodicInterest=(e,n)=>{if(null===e.marketplaceAmount||void 0===e.marketplaceAmount||null===e.periodicInterest||void 0===e.periodicInterest)return null;const r=e.marketplaceAmount*(1+e.periodicInterest),i=(r-e.marketplaceAmount)/(1-t.FLOWTY_INTEREST_FEE),o=(r-i)/(1+n),a=i/o,s=i+o,l=(0,t.calcRoyaltyFeeAmount)({amount:o,interest:a},n);return{amount:o,flowtyInterestFee:(0,t.calcFlowtyFeeAmount)({amount:o,interest:a}),interest:a,marketplaceAmount:e.marketplaceAmount,periodicInterest:e.periodicInterest,repaymentDue:s,royaltyFee:l,term:e.term?e.term:0,totalRepayment:r}}},84955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationType=void 0,function(e){e.Transaction="TRANSACTION",e.StorefrontPurchased="STOREFRONT_PURCHASED",e.OfferReceived="OFFER_RECEIVED",e.OfferAccepted="OFFER_ACCEPTED",e.RentalFunded="RENTAL_FUNDED",e.RentalReturned="RENTAL_RETURNED",e.RentalSettled="RENTAL_SETTLED",e.PrivateRental="PRIVATE_RENTAL",e.LoanFunded="LOAN_FUNDED",e.LoanRepaid="LOAN_REPAID",e.LoanSettled="LOAN_SETTLED",e.LoanExpirationWarning="LOAN_EXPIRATION",e.RentalExpirationWarning="RENTAL_EXPIRATION",e.ListingInvalid="LISTING_INVALID",e.OfferExpired="OFFER_EXPIRED"}(t.NotificationType||(t.NotificationType={}))},17784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAddress=t.formatCollectionDisplayName=t.safeParseJSON=t.utf8ToHexString=t.truncateString=void 0;t.truncateString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;return e?e.length>t?"".concat(e.substring(0,t),".."):e:""};const n=new TextEncoder;t.utf8ToHexString=e=>{const t=n.encode(e);let r="";return t.forEach((e=>{const t=e.toString(16);r+="0".concat(t).slice(-2)})),r};t.safeParseJSON=e=>{try{return JSON.parse(null!==e&&void 0!==e?e:"")}catch(t){return null}};t.formatCollectionDisplayName=e=>""===e?"<NO NAME>":e.split("-").map((e=>e[0].toUpperCase()+e.substring(1))).join(" ");t.formatAddress=e=>e?e.startsWith("0x")?e:"0x".concat(e):""},49714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTokenFromType=t.getContractAddressFromType=t.getContractNameFromType=t.TOKEN_TO_READABLE_TOKEN=t.TOKEN_TYPE_TO_TOKEN=t.SUPPORTED_TOKEN_LIST=t.SUPPORTED_DAPPER_TOKENS=t.SUPPORTED_NON_DAPPER_TOKENS=t.SupportedTokens=void 0;const r=n(89145);var i;!function(e){e.FLOW="FLOW",e.USDC="USDC",e.DUC="DUC"}(i=t.SupportedTokens||(t.SupportedTokens={})),t.SUPPORTED_NON_DAPPER_TOKENS=[i.FLOW,i.USDC],t.SUPPORTED_DAPPER_TOKENS=[i.DUC],t.SUPPORTED_TOKEN_LIST=[...t.SUPPORTED_NON_DAPPER_TOKENS,...t.SUPPORTED_DAPPER_TOKENS],t.TOKEN_TYPE_TO_TOKEN={DapperUtilityCoin:i.DUC,FlowToken:i.FLOW,USDCFlow:i.USDC},t.TOKEN_TO_READABLE_TOKEN={DUC:"Dapper Balance",FLOW:"FLOW",USDC:"USDC"};t.getContractNameFromType=e=>{const t=e.split(".");if(t.length<3)throw Error("invalid contract type identifier");return t[2]};t.getContractAddressFromType=e=>{const t=e.split(".");if(t.length<3)throw Error("invalid contract type identifier");return(0,r.formatAddress)(t[1])};t.getTokenFromType=e=>{const n=(0,t.getContractNameFromType)(e);if(n in t.TOKEN_TYPE_TO_TOKEN){const e=n;return t.TOKEN_TYPE_TO_TOKEN[e]}return i.FLOW}},32109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsLocked=t.flowSeriesToTopShotSeries=void 0;t.flowSeriesToTopShotSeries=e=>{var t;switch(Number(e)){case 0:return"1";case 2:return"2";case 3:return"Summer 2021";case 4:return"3";case 5:return"4";case 6:return"2023-24";default:return null!==(t=null===e||void 0===e?void 0:e.toString())&&void 0!==t?t:""}};t.checkIsLocked=e=>{var t;if(!e)return!1;const n=null===e||void 0===e||null===(t=e.nftView)||void 0===t||null===(t=t.traits)||void 0===t?void 0:t.traits;if(!n)return!1;return!(null===n||void 0===n||!n.find((e=>"Locked"===e.name&&("boolean"===typeof e.value?e.value:"true"===e.value))))}},6558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.getMessageFromError=t.assertNever=void 0;t.assertNever=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";throw new Error("assertNever failed: got ".concat(e," with type ").concat(typeof e," ").concat(t))};t.getMessageFromError=e=>e instanceof Error?e.message:e instanceof String||"string"===typeof e?e:"Unknown Error",t.validateObject=function(e,t){const n={};return Object.keys(t).forEach((t=>{if(void 0===e[t])throw console.error("validateObject failed",t,e),new Error("Missing key: ".concat(t));n[t]=e[t]})),n}},51803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryHandleDataUrl=void 0;const r=n(65472),i=n(58244),o=/[^A-Z0-9+/=]/i,a=e=>{if(!r.isSupported)return"";const t=i(e);if(!t)return"";let n=(new TextDecoder).decode(t.body),a="",s="";return"image/svg+xml"!==t.mimeType.essence?"":((e=>{const t=e.length;if(!t||t%4!==0||o.test(e))return!1;const n=e.indexOf("=");return-1===n||n===t-1||n===t-2&&"="===e[t-1]})(n)?(n=atob(n),s="base64"):s="utf8",a=r.sanitize(decodeURI(n)),"base64"===s&&(a=atob(a)),"data:".concat(t.mimeType.essence,";").concat(s,",").concat(encodeURIComponent(a)))};t.tryHandleDataUrl=e=>{try{return a(e)}catch(t){return""}}},88383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50288:(e,t)=>{"use strict";function n(e){return void 0!==e["TopShotTrueValue.trueValue"]}Object.defineProperty(t,"__esModule",{value:!0}),t.getNormalizedOTMValues=t.isTopShotOTMValuation=void 0,t.isTopShotOTMValuation=n;t.getNormalizedOTMValues=e=>{var t;if(n(e)){const t=e;return{contractName:"TopShot",setId:t.set_id_id||"",value:t["TopShotTrueValue.trueValue"]}}const r=e;return{contractName:"AllDay",setId:(null===(t=r.setFlowID_id)||void 0===t?void 0:t.toString())||"",value:r["AllDayTrueValue.trueValue"]}}},55174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDTV=t.calculateLTV=void 0;t.calculateLTV=(e,t)=>parseFloat((e/t).toFixed(2));t.calculateDTV=(e,t)=>parseFloat((e/t).toFixed(2))},61497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProviderName=t.getProviderImage=void 0;const n="https://storage.googleapis.com/flowty-images/tokens/flow-reference-wallet.png";t.getProviderImage=function(e){const t=e.toLowerCase();return t.includes("dapper")?"https://storage.googleapis.com/flowty-images/tokens/dapper_logo.png":t.includes("blocto")?"https://storage.googleapis.com/flowty-images/tokens/blocto_logo.png":t.includes("fcw")||/flow.*reference/i.test(t)?n:""};t.getProviderName=e=>{const t=e.toLowerCase();return t.includes("dapper")?"Dapper":t.includes("blocto")?"Blocto":t.includes("fcw")||/flow.*reference/i.test(t)?"Flow Reference Wallet":""}},58244:(e,t,n)=>{"use strict";const r=n(57982),{parseURL:i,serializeURL:o,percentDecodeString:a}=n(65814),{stripLeadingAndTrailingASCIIWhitespace:s,isomorphicDecode:l,forgivingBase64Decode:c}=n(81126);e.exports=t=>{const n=i(t);return null===n?null:e.exports.fromURLRecord(n)},e.exports.fromURLRecord=e=>{if("data"!==e.scheme)return null;const t=o(e,!0).substring(5);let n=0,i="";for(;n<t.length&&","!==t[n];)i+=t[n],++n;if(i=s(i),n===t.length)return null;++n;const u=t.substring(n);let d=a(u);const p=/(.*); *[Bb][Aa][Ss][Ee]64$/u.exec(i);if(p){const e=l(d);if(d=c(e),null===d)return null;i=p[1]}let h;i.startsWith(";")&&(i="text/plain".concat(i));try{h=new r(i)}catch(f){h=new r("text/plain;charset=US-ASCII")}return{mimeType:h,body:d}}},81126:(e,t)=>{"use strict";t.stripLeadingAndTrailingASCIIWhitespace=e=>e.replace(/^[ \t\n\f\r]+/u,"").replace(/[ \t\n\f\r]+$/u,""),t.isomorphicDecode=e=>Array.from(e,(e=>String.fromCodePoint(e))).join(""),t.forgivingBase64Decode=e=>{let t;try{t=atob(e)}catch{return null}return Uint8Array.from(t,(e=>e.codePointAt(0)))}},70078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>x,encode:()=>y,toASCII:()=>w,toUnicode:()=>b,ucs2decode:()=>h,ucs2encode:()=>f});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function h(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const f=e=>String.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=i)e=c(e/35);return c(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&d("not-basic"),t.push(e.charCodeAt(r));for(let p=l>0?l+1:0;p<n;){const l=o;for(let t=1,a=i;;a+=i){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;l>=i&&d("invalid-input"),l>c((r-o)/t)&&d("overflow"),o+=l*t;const h=a<=s?1:a>=s+26?26:a-s;if(l<h)break;const f=i-h;t>c(r/f)&&d("overflow"),t*=f}const h=t.length+1;s=g(o-l,h,0==l),c(o/h)>r-a&&d("overflow"),a+=c(o/h),o%=h,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},y=function(e){const t=[],n=(e=h(e)).length;let o=128,a=0,s=72;for(const r of e)r<128&&t.push(u(r));const l=t.length;let p=l;for(l&&t.push("-");p<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const h=p+1;n-o>c((r-a)/h)&&d("overflow"),a+=(n-o)*h,o=n;for(const f of e)if(f<o&&++a>r&&d("overflow"),f===o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,a=i-r;t.push(u(m(r+o%a,0))),e=c(o/a)}t.push(u(m(e,0))),s=g(a,h,p===l),a=0,++p}++a,++o}return t.join("")},b=function(e){return p(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},w=function(e){return p(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},x={version:"2.3.1",ucs2:{decode:h,encode:f},decode:v,encode:y,toASCII:w,toUnicode:b}},46450:(e,t,n)=>{"use strict";const r=n(70078),i=n(42441),o=n(39466),{STATUS_MAPPING:a}=n(96746);function s(e){return/[^\x00-\x7F]/u.test(e)}function l(e,t){let{useSTD3ASCIIRules:n}=t,r=0,i=o.length-1;for(;r<=i;){const t=Math.floor((r+i)/2),s=o[t],l=Array.isArray(s[0])?s[0][0]:s[0],c=Array.isArray(s[0])?s[0][1]:s[0];if(l<=e&&c>=e)return!n||s[1]!==a.disallowed_STD3_valid&&s[1]!==a.disallowed_STD3_mapped?s[1]===a.disallowed_STD3_valid?[a.valid,...s.slice(2)]:s[1]===a.disallowed_STD3_mapped?[a.mapped,...s.slice(2)]:s.slice(1):[a.disallowed,...s.slice(2)];l>e?i=t-1:r=t+1}return null}function c(e,t){let{checkHyphens:n,checkBidi:r,checkJoiners:o,transitionalProcessing:s,useSTD3ASCIIRules:c,isBidi:u}=t;if(0===e.length)return!0;if(e.normalize("NFC")!==e)return!1;const d=Array.from(e);if(n&&("-"===d[2]&&"-"===d[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes("."))return!1;if(i.combiningMarks.test(d[0]))return!1;for(const i of d){const[e]=l(i.codePointAt(0),{useSTD3ASCIIRules:c});if(s){if(e!==a.valid)return!1}else if(e!==a.valid&&e!==a.deviation)return!1}if(o){let e=0;for(const[t,n]of d.entries())if("\u200c"===n||"\u200d"===n){if(t>0){if(i.combiningClassVirama.test(d[t-1]))continue;if("\u200c"===n){const n=d.indexOf("\u200c",t+1),r=n<0?d.slice(e):d.slice(e,n);if(i.validZWNJ.test(r.join(""))){e=t+1;continue}}}return!1}}if(r&&u){let t;if(i.bidiS1LTR.test(d[0]))t=!1;else{if(!i.bidiS1RTL.test(d[0]))return!1;t=!0}if(t){if(!i.bidiS2.test(e)||!i.bidiS3.test(e)||i.bidiS4EN.test(e)&&i.bidiS4AN.test(e))return!1}else if(!i.bidiS5.test(e)||!i.bidiS6.test(e))return!1}return!0}function u(e,t){let n=function(e,t){let{useSTD3ASCIIRules:n,transitionalProcessing:r}=t,i="";for(const o of e){const[e,t]=l(o.codePointAt(0),{useSTD3ASCIIRules:n});switch(e){case a.disallowed:i+=o;break;case a.ignored:break;case a.mapped:i+=r&&"\u1e9e"===o?"ss":t;break;case a.deviation:i+=r?t:o;break;case a.valid:i+=o}}return i}(e,t);n=n.normalize("NFC");const o=n.split("."),u=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return r.decode(e.substring(4))}catch(t){return""}return e})).join(".");return i.bidiDomain.test(t)}(o);let d=!1;for(const[i,a]of o.entries()){let e=a,n=t.transitionalProcessing;if(e.startsWith("xn--")){if(s(e)){d=!0;continue}try{e=r.decode(e.substring(4))}catch{if(!t.ignoreInvalidPunycode){d=!0;continue}}o[i]=e,n=!1}if(d)continue;c(e,{...t,transitionalProcessing:n,isBidi:u})||(d=!0)}return{string:o.join("."),error:d}}e.exports={toASCII:function(e){let{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:i=!1,useSTD3ASCIIRules:o=!1,verifyDNSLength:a=!1,transitionalProcessing:l=!1,ignoreInvalidPunycode:c=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const d=u(e,{checkHyphens:t,checkBidi:n,checkJoiners:i,useSTD3ASCIIRules:o,transitionalProcessing:l,ignoreInvalidPunycode:c});let p=d.string.split(".");if(p=p.map((e=>{if(s(e))try{return"xn--".concat(r.encode(e))}catch(t){d.error=!0}return e})),a){const e=p.join(".").length;(e>253||0===e)&&(d.error=!0);for(let t=0;t<p.length;++t)if(p[t].length>63||0===p[t].length){d.error=!0;break}}return d.error?null:p.join(".")},toUnicode:function(e){let{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:i=!1,transitionalProcessing:o=!1,ignoreInvalidPunycode:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=u(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:i,transitionalProcessing:o,ignoreInvalidPunycode:a});return{domain:s.string,error:s.error}}}},42441:e=>{"use strict";e.exports={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u31EF\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EFD}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u}},96746:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},45259:(e,t,n)=>{"use strict";const{asciiLowercase:r,solelyContainsHTTPTokenCodePoints:i,soleyContainsHTTPQuotedStringTokenCodePoints:o}=n(84812);e.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=r(String(e)),this._map.get(e)}has(e){return e=r(String(e)),this._map.has(e)}set(e,t){if(e=r(String(e)),t=String(t),!i(e))throw new Error('Invalid MIME type parameter name "'.concat(e,'": only HTTP token code points are valid.'));if(!o(t))throw new Error('Invalid MIME type parameter value "'.concat(t,'": only HTTP quoted-string token code points are ')+"valid.");return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=r(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}},57982:(e,t,n)=>{"use strict";const r=n(45259),i=n(38782),o=n(34345),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:s}=n(84812);e.exports=class{constructor(e){e=String(e);const t=i(e);if(null===t)throw new Error('Could not parse MIME type string "'.concat(e,'"'));this._type=t.type,this._subtype=t.subtype,this._parameters=new r(t.parameters)}static parse(e){try{return new this(e)}catch(t){return null}}get essence(){return"".concat(this.type,"/").concat(this.subtype)}get type(){return this._type}set type(e){if(0===(e=a(String(e))).length)throw new Error("Invalid type: must be a non-empty string");if(!s(e))throw new Error("Invalid type ".concat(e,": must contain only HTTP token code points"));this._type=e}get subtype(){return this._subtype}set subtype(e){if(0===(e=a(String(e))).length)throw new Error("Invalid subtype: must be a non-empty string");if(!s(e))throw new Error("Invalid subtype ".concat(e,": must contain only HTTP token code points"));this._subtype=e}get parameters(){return this._parameters}toString(){return o(this)}isJavaScript(){let{prohibitParameters:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||0===this._parameters.size;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||0===this._parameters.size;default:return!1}default:return!1}}isXML(){return"xml"===this._subtype&&("text"===this._type||"application"===this._type)||this._subtype.endsWith("+xml")}isHTML(){return"html"===this._subtype&&"text"===this._type}}},38782:(e,t,n)=>{"use strict";const{removeLeadingAndTrailingHTTPWhitespace:r,removeTrailingHTTPWhitespace:i,isHTTPWhitespaceChar:o,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:s,asciiLowercase:l,collectAnHTTPQuotedString:c}=n(84812);e.exports=e=>{e=r(e);let t=0,n="";for(;t<e.length&&"/"!==e[t];)n+=e[t],++t;if(0===n.length||!a(n))return null;if(t>=e.length)return null;++t;let u="";for(;t<e.length&&";"!==e[t];)u+=e[t],++t;if(u=i(u),0===u.length||!a(u))return null;const d={type:l(n),subtype:l(u),parameters:new Map};for(;t<e.length;){for(++t;o(e[t]);)++t;let n="";for(;t<e.length&&";"!==e[t]&&"="!==e[t];)n+=e[t],++t;if(n=l(n),t<e.length){if(";"===e[t])continue;++t}let r=null;if('"'===e[t])for([r,t]=c(e,t);t<e.length&&";"!==e[t];)++t;else{for(r="";t<e.length&&";"!==e[t];)r+=e[t],++t;if(r=i(r),""===r)continue}n.length>0&&a(n)&&s(r)&&!d.parameters.has(n)&&d.parameters.set(n,r)}return d}},34345:(e,t,n)=>{"use strict";const{solelyContainsHTTPTokenCodePoints:r}=n(84812);e.exports=e=>{let t="".concat(e.type,"/").concat(e.subtype);if(0===e.parameters.size)return t;for(let[n,i]of e.parameters)t+=";",t+=n,t+="=",r(i)&&0!==i.length||(i=i.replace(/(["\\])/gu,"\\$1"),i='"'.concat(i,'"')),t+=i;return t}},84812:(e,t)=>{"use strict";t.removeLeadingAndTrailingHTTPWhitespace=e=>e.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,""),t.removeTrailingHTTPWhitespace=e=>e.replace(/[ \t\n\r]+$/u,""),t.isHTTPWhitespaceChar=e=>" "===e||"\t"===e||"\n"===e||"\r"===e,t.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),t.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),t.asciiLowercase=e=>e.replace(/[A-Z]/gu,(e=>e.toLowerCase())),t.collectAnHTTPQuotedString=(e,t)=>{let n="";for(t++;;){for(;t<e.length&&'"'!==e[t]&&"\\"!==e[t];)n+=e[t],++t;if(t>=e.length)break;const r=e[t];if(++t,"\\"!==r)break;if(t>=e.length){n+="\\";break}n+=e[t],++t}return[n,t]}},65814:(e,t,n)=>{"use strict";const{URL:r,URLSearchParams:i}=n(89850),o=n(863),a=n(79537),s={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};r.install(s,["Window"]),i.install(s,["Window"]),t.URL=s.URL,t.URLSearchParams=s.URLSearchParams,t.parseURL=o.parseURL,t.basicURLParse=o.basicURLParse,t.serializeURL=o.serializeURL,t.serializePath=o.serializePath,t.serializeHost=o.serializeHost,t.serializeInteger=o.serializeInteger,t.serializeURLOrigin=o.serializeURLOrigin,t.setTheUsername=o.setTheUsername,t.setThePassword=o.setThePassword,t.cannotHaveAUsernamePasswordPort=o.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=o.hasAnOpaquePath,t.percentDecodeString=a.percentDecodeString,t.percentDecodeBytes=a.percentDecodeBytes},46752:(e,t,n)=>{"use strict";const r=n(75370),i=n(87163);t.convert=function(e,t){let{context:n="The provided value"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!==typeof t)throw new e.TypeError(n+" is not a function");function o(){const o=i.tryWrapperForImpl(this);let a;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];for(let e=0;e<l.length;e++)l[e]=i.tryWrapperForImpl(l[e]);return a=Reflect.apply(t,o,l),a=r.any(a,{context:n,globals:e}),a}return o.construct=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(let e=0;e<a.length;e++)a[e]=i.tryWrapperForImpl(a[e]);let l=Reflect.construct(t,a);return l=r.any(l,{context:n,globals:e}),l},o[i.wrapperSymbol]=t,o.objectReference=t,o}},88158:(e,t,n)=>{"use strict";const r=n(863),i=n(51705),o=n(95753);t.implementation=class{constructor(e,t){const n=t[0],i=t[1];let a=null;if(void 0!==i&&(a=r.basicURLParse(i),null===a))throw new TypeError("Invalid base URL: ".concat(i));const s=r.basicURLParse(n,{baseURL:a});if(null===s)throw new TypeError("Invalid URL: ".concat(n));const l=null!==s.query?s.query:"";this._url=s,this._query=o.createImpl(e,[l],{doNotStripQMark:!0}),this._query._url=this}static canParse(e,t){let n=null;if(void 0!==t&&(n=r.basicURLParse(t),null===n))return!1;return null!==r.basicURLParse(e,{baseURL:n})}get href(){return r.serializeURL(this._url)}set href(e){const t=r.basicURLParse(e);if(null===t)throw new TypeError("Invalid URL: ".concat(e));this._url=t,this._query._list.splice(0);const{query:n}=t;null!==n&&(this._query._list=i.parseUrlencodedString(n))}get origin(){return r.serializeURLOrigin(this._url)}get protocol(){return"".concat(this._url.scheme,":")}set protocol(e){r.basicURLParse("".concat(e,":"),{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){r.cannotHaveAUsernamePasswordPort(this._url)||r.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){r.cannotHaveAUsernamePasswordPort(this._url)||r.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?r.serializeHost(e.host):"".concat(r.serializeHost(e.host),":").concat(r.serializeInteger(e.port))}set host(e){r.hasAnOpaquePath(this._url)||r.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":r.serializeHost(this._url.host)}set hostname(e){r.hasAnOpaquePath(this._url)||r.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":r.serializeInteger(this._url.port)}set port(e){r.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:r.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return r.serializePath(this._url)}set pathname(e){r.hasAnOpaquePath(this._url)||(this._url.path=[],r.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?".concat(this._url.query)}set search(e){const t=this._url;if(""===e)return t.query=null,this._query._list=[],void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const n="?"===e[0]?e.substring(1):e;t.query="",r.basicURLParse(n,{url:t,stateOverride:"query"}),this._query._list=i.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#".concat(this._url.fragment)}set hash(e){if(""===e)return this._url.fragment=null,void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const t="#"===e[0]?e.substring(1):e;this._url.fragment="",r.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){r.hasAnOpaquePath(this._url)&&null===this._url.fragment&&null===this._url.query&&(this._url.path=this._url.path.replace(/\u0020+$/u,""))}}},58603:(e,t,n)=>{"use strict";const r=n(75370),i=n(87163),o=i.implSymbol,a=i.ctorRegistrySymbol;function s(e,t){let n;return void 0!==t&&(n=t.prototype),i.isObject(n)||(n=e[a].URL.prototype),Object.create(n)}t.is=e=>i.isObject(e)&&i.hasOwn(e,o)&&e[o]instanceof c.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof c.implementation,t.convert=function(e,n){let{context:r="The provided value"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.is(n))return i.implForWrapper(n);throw new e.TypeError("".concat(r," is not of type 'URL'."))},t.create=(e,n,r)=>{const i=s(e);return t.setup(i,e,n,r)},t.createImpl=(e,n,r)=>{const o=t.create(e,n,r);return i.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,o,{value:new c.implementation(n,r,a),configurable:!0}),e[o][i.wrapperSymbol]=e,c.init&&c.init(e[o]),e},t.new=(e,n)=>{const r=s(e,n);return t._internalSetup(r,e),Object.defineProperty(r,o,{value:Object.create(c.implementation.prototype),configurable:!0}),r[o][i.wrapperSymbol]=r,c.init&&c.init(r[o]),r[o]};const l=new Set(["Window","Worker"]);t.install=(e,n)=>{if(!n.some((e=>l.has(e))))return;const a=i.initCtorRegistry(e);class s{constructor(n){if(arguments.length<1)throw new e.TypeError("Failed to construct 'URL': 1 argument required, but only ".concat(arguments.length," present."));const i=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];void 0!==t&&(t=r.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),i.push(t)}return t.setup(Object.create(new.target.prototype),e,i)}toJSON(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return n[o].toJSON()}get href(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return n[o].href}set href(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),i[o].href=n}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[o].href}get origin(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return n[o].origin}get protocol(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return n[o].protocol}set protocol(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),i[o].protocol=n}get username(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return n[o].username}set username(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),i[o].username=n}get password(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return n[o].password}set password(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),i[o].password=n}get host(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return n[o].host}set host(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),i[o].host=n}get hostname(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return n[o].hostname}set hostname(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),i[o].hostname=n}get port(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return n[o].port}set port(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),i[o].port=n}get pathname(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return n[o].pathname}set pathname(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),i[o].pathname=n}get search(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return n[o].search}set search(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),i[o].search=n}get searchParams(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return i.getSameObject(this,"searchParams",(()=>i.tryWrapperForImpl(n[o].searchParams)))}get hash(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return n[o].hash}set hash(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),i[o].hash=n}static canParse(t){if(arguments.length<1)throw new e.TypeError("Failed to execute 'canParse' on 'URL': 1 argument required, but only ".concat(arguments.length," present."));const n=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=r.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:e})),n.push(t)}return c.implementation.canParse(...n)}}Object.defineProperties(s.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(s,{canParse:{enumerable:!0}}),a.URL=s,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:s}),n.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:s})};const c=n(88158)},83088:(e,t,n)=>{"use strict";const r=n(51705);t.implementation=class{constructor(e,t,n){let{doNotStripQMark:i=!1}=n,o=t[0];if(this._list=[],this._url=null,i||"string"!==typeof o||"?"!==o[0]||(o=o.slice(1)),Array.isArray(o))for(const r of o){if(2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([r[0],r[1]])}else if("object"===typeof o&&null===Object.getPrototypeOf(o))for(const r of Object.keys(o)){const e=o[r];this._list.push([r,e])}else this._list=r.parseUrlencodedString(o)}_updateSteps(){if(null!==this._url){let e=r.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e,null===e&&this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e,t){let n=0;for(;n<this._list.length;)this._list[n][0]!==e||void 0!==t&&this._list[n][1]!==t?n++:this._list.splice(n,1);this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const n of this._list)n[0]===e&&t.push(n[1]);return t}has(e,t){for(const n of this._list)if(n[0]===e&&(void 0===t||n[1]===t))return!0;return!1}set(e,t){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===e?n?this._list.splice(r,1):(n=!0,this._list[r][1]=t,r++):r++;n||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return r.serializeUrlencoded(this._list)}}},95753:(e,t,n)=>{"use strict";const r=n(75370),i=n(87163),o=n(46752),a=i.newObjectInRealm,s=i.implSymbol,l=i.ctorRegistrySymbol,c="URLSearchParams";function u(e,t){let n;return void 0!==t&&(n=t.prototype),i.isObject(n)||(n=e[l].URLSearchParams.prototype),Object.create(n)}t.is=e=>i.isObject(e)&&i.hasOwn(e,s)&&e[s]instanceof p.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof p.implementation,t.convert=function(e,n){let{context:r="The provided value"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.is(n))return i.implForWrapper(n);throw new e.TypeError("".concat(r," is not of type 'URLSearchParams'."))},t.createDefaultIterator=(e,t,n)=>{const r=e[l]["URLSearchParams Iterator"],o=Object.create(r);return Object.defineProperty(o,i.iterInternalSymbol,{value:{target:t,kind:n,index:0},configurable:!0}),o},t.create=(e,n,r)=>{const i=u(e);return t.setup(i,e,n,r)},t.createImpl=(e,n,r)=>{const o=t.create(e,n,r);return i.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,s,{value:new p.implementation(n,r,o),configurable:!0}),e[s][i.wrapperSymbol]=e,p.init&&p.init(e[s]),e},t.new=(e,n)=>{const r=u(e,n);return t._internalSetup(r,e),Object.defineProperty(r,s,{value:Object.create(p.implementation.prototype),configurable:!0}),r[s][i.wrapperSymbol]=r,p.init&&p.init(r[s]),r[s]};const d=new Set(["Window","Worker"]);t.install=(e,n)=>{if(!n.some((e=>d.has(e))))return;const l=i.initCtorRegistry(e);class u{constructor(){const n=[];{let t=arguments[0];if(void 0!==t)if(i.isObject(t))if(void 0!==t[Symbol.iterator]){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],o=t;for(let t of o){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],i=t;for(let t of i)t=r.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),n.push(t);t=n}n.push(t)}t=n}}else{if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const i of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,i);if(o&&o.enumerable){let o=i;o=r.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let a=t[i];a=r.USVString(a,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),n[o]=a}}t=n}}else t=r.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}append(n,o){const a=null!==this&&void 0!==this?this:e;if(!t.is(a))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError("Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ".concat(arguments.length," present."));const l=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),l.push(t)}{let t=arguments[1];t=r.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),l.push(t)}return i.tryWrapperForImpl(a[s].append(...l))}delete(n){const o=null!==this&&void 0!==this?this:e;if(!t.is(o))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ".concat(arguments.length," present."));const a=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}{let t=arguments[1];void 0!==t&&(t=r.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:e})),a.push(t)}return i.tryWrapperForImpl(o[s].delete(...a))}get(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ".concat(arguments.length," present."));const o=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i[s].get(...o)}getAll(n){const o=null!==this&&void 0!==this?this:e;if(!t.is(o))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ".concat(arguments.length," present."));const a=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}return i.tryWrapperForImpl(o[s].getAll(...a))}has(n){const i=null!==this&&void 0!==this?this:e;if(!t.is(i))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ".concat(arguments.length," present."));const o=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}{let t=arguments[1];void 0!==t&&(t=r.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:e})),o.push(t)}return i[s].has(...o)}set(n,o){const a=null!==this&&void 0!==this?this:e;if(!t.is(a))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError("Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ".concat(arguments.length," present."));const l=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),l.push(t)}{let t=arguments[1];t=r.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),l.push(t)}return i.tryWrapperForImpl(a[s].set(...l))}sort(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return i.tryWrapperForImpl(n[s].sort())}toString(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[s].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(n){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=o.convert(e,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const r=arguments[1];let a=Array.from(this[s]),l=0;for(;l<a.length;){const[e,t]=a[l].map(i.tryWrapperForImpl);n.call(r,t,e,this),a=Array.from(this[s]),l++}}get size(){const n=null!==this&&void 0!==this?this:e;if(!t.is(n))throw new e.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return n[s].size}}Object.defineProperties(u.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:u.prototype.entries,configurable:!0,writable:!0}}),l[c]=u,l["URLSearchParams Iterator"]=Object.create(l["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),i.define(l["URLSearchParams Iterator"],{next(){const t=this&&this[i.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:n,kind:r,index:o}=t,l=Array.from(n[s]);if(o>=l.length)return a(e,{value:void 0,done:!0});const c=l[o];return t.index=o+1,a(e,i.iteratorResult(c.map(i.tryWrapperForImpl),r))}}),Object.defineProperty(e,c,{configurable:!0,writable:!0,value:u})};const p=n(83088)},89373:e=>{"use strict";const t=new TextEncoder,n=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return n.decode(e)}}},56856:e=>{"use strict";function t(e){return e>=48&&e<=57}function n(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:n,isASCIIAlphanumeric:function(e){return n(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},79537:(e,t,n)=>{"use strict";const{isASCIIHex:r}=n(56856),{utf8Encode:i}=n(89373);function o(e){return e.codePointAt(0)}function a(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0".concat(t)),"%".concat(t)}function s(e){const t=new Uint8Array(e.byteLength);let n=0;for(let i=0;i<e.byteLength;++i){const o=e[i];if(37!==o)t[n++]=o;else if(37!==o||r(e[i+1])&&r(e[i+2])){const r=parseInt(String.fromCodePoint(e[i+1],e[i+2]),16);t[n++]=r,i+=2}else t[n++]=o}return t.slice(0,n)}function l(e){return e<=31||e>126}const c=new Set([o(" "),o('"'),o("<"),o(">"),o("`")]);const u=new Set([o(" "),o('"'),o("#"),o("<"),o(">")]);function d(e){return l(e)||u.has(e)}const p=new Set([o("?"),o("`"),o("{"),o("}")]);function h(e){return d(e)||p.has(e)}const f=new Set([o("/"),o(":"),o(";"),o("="),o("@"),o("["),o("\\"),o("]"),o("^"),o("|")]);function m(e){return h(e)||f.has(e)}const g=new Set([o("$"),o("%"),o("&"),o("+"),o(",")]);const v=new Set([o("!"),o("'"),o("("),o(")"),o("~")]);function y(e,t){const n=i(e);let r="";for(const i of n)t(i)?r+=a(i):r+=String.fromCharCode(i);return r}e.exports={isC0ControlPercentEncode:l,isFragmentPercentEncode:function(e){return l(e)||c.has(e)},isQueryPercentEncode:d,isSpecialQueryPercentEncode:function(e){return d(e)||e===o("'")},isPathPercentEncode:h,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||g.has(e)}(e)||v.has(e)},percentDecodeString:function(e){return s(i(e))},percentDecodeBytes:s,utf8PercentEncodeString:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";for(const i of e)r+=n&&" "===i?"+":y(i,t);return r},utf8PercentEncodeCodePoint:function(e,t){return y(String.fromCodePoint(e),t)}}},863:(e,t,n)=>{"use strict";const r=n(46450),i=n(56856),{utf8DecodeWithoutBOM:o}=n(89373),{percentDecodeString:a,utf8PercentEncodeCodePoint:s,utf8PercentEncodeString:l,isC0ControlPercentEncode:c,isFragmentPercentEncode:u,isQueryPercentEncode:d,isSpecialQueryPercentEncode:p,isPathPercentEncode:h,isUserinfoPercentEncode:f}=n(79537);function m(e){return e.codePointAt(0)}const g={ftp:21,file:null,http:80,https:443,ws:80,wss:443},v=Symbol("failure");function y(e){return[...e].length}function b(e,t){const n=e[t];return isNaN(n)?void 0:String.fromCodePoint(n)}function w(e){return"."===e||"%2e"===e.toLowerCase()}function x(e){return 2===e.length&&i.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function C(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function A(e){return void 0!==g[e]}function E(e){return A(e.scheme)}function _(e){return!A(e.scheme)}function T(e){return g[e]}function S(e){if(""===e)return v;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let n=/[^0-7]/u;return 10===t&&(n=/[^0-9]/u),16===t&&(n=/[^0-9A-Fa-f]/u),n.test(e)?v:parseInt(e,t)}function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("["===e[0])return"]"!==e[e.length-1]?v:function(e){const t=[0,0,0,0,0,0,0,0];let n=0,r=null,o=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[o]===m(":")){if(e[o+1]!==m(":"))return v;o+=2,++n,r=n}for(;o<e.length;){if(8===n)return v;if(e[o]===m(":")){if(null!==r)return v;++o,++n,r=n;continue}let a=0,s=0;for(;s<4&&i.isASCIIHex(e[o]);)a=16*a+parseInt(b(e,o),16),++o,++s;if(e[o]===m(".")){if(0===s)return v;if(o-=s,n>6)return v;let r=0;for(;void 0!==e[o];){let a=null;if(r>0){if(!(e[o]===m(".")&&r<4))return v;++o}if(!i.isASCIIDigit(e[o]))return v;for(;i.isASCIIDigit(e[o]);){const t=parseInt(b(e,o));if(null===a)a=t;else{if(0===a)return v;a=10*a+t}if(a>255)return v;++o}t[n]=256*t[n]+a,++r,2!==r&&4!==r||++n}if(4!==r)return v;break}if(e[o]===m(":")){if(++o,void 0===e[o])return v}else if(void 0!==e[o])return v;t[n]=a,++n}if(null!==r){let e=n-r;for(n=7;0!==n&&e>0;){const i=t[r+e-1];t[r+e-1]=t[n],t[n]=i,--n,--e}}else if(null===r&&8!==n)return v;return t}(e.substring(1,e.length-1));if(t)return function(e){if(C(e))return v;return l(e,c)}(e);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=r.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});if(null===n||""===n)return v;return n}(o(a(e)));return n===v?v:C(s=n)||-1!==s.search(/[\u0000-\u001F]|%|\u007F/u)?v:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const n=t[t.length-1];if(S(n)!==v)return!0;if(/^[0-9]+$/u.test(n))return!0;return!1}(n)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return v;const n=[];for(const o of t){const e=S(o);if(e===v)return v;n.push(e)}for(let o=0;o<n.length-1;++o)if(n[o]>255)return v;if(n[n.length-1]>=256**(5-n.length))return v;let r=n.pop(),i=0;for(const o of n)r+=o*256**(3-i),++i;return r}(n):n;var s}function P(e){return"number"===typeof e?function(e){let t="",n=e;for(let r=1;r<=4;++r)t=String(n%256)+t,4!==r&&(t=".".concat(t)),n=Math.floor(n/256);return t}(e):e instanceof Array?"[".concat(function(e){let t="";const n=function(e){let t=null,n=1,r=null,i=0;for(let o=0;o<e.length;++o)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t}(e);let r=!1;for(let i=0;i<=7;++i)r&&0===e[i]||(r&&(r=!1),n!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",r=!0));return t}(e),"]"):e}function D(e){const{path:t}=e;var n;0!==t.length&&("file"===e.scheme&&1===t.length&&(n=t[0],/^[A-Za-z]:$/u.test(n))||t.pop())}function F(e){return""!==e.username||""!==e.password}function N(e){return"string"===typeof e.path}function I(e,t,n,r,i){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=n||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),n=this["parse ".concat(this.state)](e,t);if(!n)break;if(n===v){this.failure=!0;break}}}I.prototype["parse scheme start"]=function(e,t){if(i.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,v;this.state="no scheme",--this.pointer}return!0},I.prototype["parse scheme"]=function(e,t){if(i.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(E(this.url)&&!A(this.buffer))return!1;if(!E(this.url)&&A(this.buffer))return!1;if((F(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===T(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):E(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":E(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,v;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},I.prototype["parse no scheme"]=function(e){return null===this.base||N(this.base)&&e!==m("#")?v:(N(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},I.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},I.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},I.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":E(this.url)&&e===m("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},I.prototype["parse relative slash"]=function(e){return!E(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},I.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},I.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},I.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer="%40".concat(this.buffer)),this.atFlag=!0;const e=y(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=s(e,f);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||E(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,v;this.pointer-=y(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},I.prototype["parse hostname"]=I.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||E(this.url)&&e===m("\\")){if(--this.pointer,E(this.url)&&""===this.buffer)return this.parseError=!0,v;if(this.stateOverride&&""===this.buffer&&(F(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=k(this.buffer,_(this.url));if(e===v)return v;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,v;if("hostname"===this.stateOverride)return!1;const e=k(this.buffer,_(this.url));if(e===v)return v;this.url.host=e,this.buffer="",this.state="port"}return!0},I.prototype["parse port"]=function(e,t){if(i.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||E(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,v;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,v;this.url.port=e===T(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const R=new Set([m("/"),m("\\"),m("?"),m("#")]);function O(e,t){const n=e.length-t;return n>=2&&(r=e[t],o=e[t+1],i.isASCIIAlpha(r)&&(o===m(":")||o===m("|")))&&(2===n||R.has(e[t+2]));var r,o}function j(e){if(N(e))return e.path;let t="";for(const n of e.path)t+="/".concat(n);return t}I.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,O(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):D(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},I.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!O(this.input,this.pointer)&&(2===(t=this.base.path[0]).length&&i.isASCIIAlpha(t.codePointAt(0))&&":"===t[1])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},I.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&x(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=k(this.buffer,_(this.url));if(e===v)return v;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},I.prototype["parse path start"]=function(e){return E(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},I.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||E(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(E(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(D(this.url),e===m("/")||E(this.url)&&e===m("\\")||this.url.path.push("")):!w(this.buffer)||e===m("/")||E(this.url)&&e===m("\\")?w(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&x(this.buffer)&&(this.buffer="".concat(this.buffer[0],":")),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=s(e,h)),!0},I.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=s(e,c))),!0},I.prototype["parse query"]=function(e,t){if(E(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=E(this.url)?p:d;this.url.query+=l(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},I.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=s(e,u)),!0},e.exports.serializeURL=function(e,t){let n="".concat(e.scheme,":");return null!==e.host&&(n+="//",""===e.username&&""===e.password||(n+=e.username,""!==e.password&&(n+=":".concat(e.password)),n+="@"),n+=P(e.host),null!==e.port&&(n+=":".concat(e.port))),null===e.host&&!N(e)&&e.path.length>1&&""===e.path[0]&&(n+="/."),n+=j(e),null!==e.query&&(n+="?".concat(e.query)),t||null===e.fragment||(n+="#".concat(e.fragment)),n},e.exports.serializePath=j,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":{const n=e.exports.parseURL(j(t));return null===n||"http"!==n.scheme&&"https"!==n.scheme?"null":e.exports.serializeURLOrigin(n)}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t="".concat(e.scheme,"://");return t+=P(e.host),null!==e.port&&(t+=":".concat(e.port)),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const n=new I(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return n.failure?null:n.url},e.exports.setTheUsername=function(e,t){e.username=l(t,f)},e.exports.setThePassword=function(e,t){e.password=l(t,f)},e.exports.serializeHost=P,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||"file"===e.scheme},e.exports.hasAnOpaquePath=N,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,n){return void 0===n&&(n={}),e.exports.basicURLParse(t,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}},51705:(e,t,n)=>{"use strict";const{utf8Encode:r,utf8DecodeWithoutBOM:i}=n(89373),{percentDecodeBytes:o,utf8PercentEncodeString:a,isURLEncodedPercentEncode:s}=n(79537);function l(e){return e.codePointAt(0)}function c(e,t,n){let r=e.indexOf(t);for(;r>=0;)e[r]=n,r=e.indexOf(t,r+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const n=[];let r=0,i=e.indexOf(t);for(;i>=0;)n.push(e.slice(r,i)),r=i+1,i=e.indexOf(t,r);return r!==e.length&&n.push(e.slice(r)),n}(e,l("&")),n=[];for(const r of t){if(0===r.length)continue;let e,t;const a=r.indexOf(l("="));a>=0?(e=r.slice(0,a),t=r.slice(a+1)):(e=r,t=new Uint8Array(0)),e=c(e,43,32),t=c(t,43,32);const s=i(o(e)),u=i(o(t));n.push([s,u])}return n}(r(e))},serializeUrlencoded:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="utf-8";void 0!==t&&(n=t);let r="";for(const[i,o]of e.entries()){const e=a(o[0],s,!0);let t=o[1];o.length>2&&void 0!==o[2]&&("hidden"===o[2]&&"_charset_"===e?t=n:"file"===o[2]&&(t=t.name)),t=a(t,s,!0),0!==i&&(r+="&"),r+="".concat(e,"=").concat(t)}return r}}},87163:(e,t)=>{"use strict";const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Symbol("wrapper"),i=Symbol("impl"),o=Symbol("SameObject caches"),a=Symbol.for("[webidl2js] constructor registry"),s=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function l(e){if(n(e,a))return e[a];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=s}return e[a]=t,t}function c(e){return e?e[r]:null}function u(e){return e?e[i]:null}const d=Symbol("internal");const p=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const h=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),g=Symbol("supported property names"),v=Symbol("indexed property get"),y=Symbol("indexed property set new"),b=Symbol("indexed property set existing"),w=Symbol("named property get"),x=Symbol("named property set new"),C=Symbol("named property set existing"),A=Symbol("named property delete"),E=Symbol("async iterator get the next iteration result"),_=Symbol("async iterator return steps"),T=Symbol("async iterator initialization steps"),S=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"===typeof e&&null!==e||"function"===typeof e},hasOwn:n,define:function(e,t){for(const n of Reflect.ownKeys(t)){const r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&!Reflect.defineProperty(e,n,r))throw new TypeError("Cannot redefine property: ".concat(String(n)))}},newObjectInRealm:function(e,t){const n=l(e);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:r,implSymbol:i,getSameObject:function(e,t,n){return e[o]||(e[o]=Object.create(null)),t in e[o]||(e[o][t]=n()),e[o][t]},ctorRegistrySymbol:a,initCtorRegistry:l,wrapperForImpl:c,implForWrapper:u,tryWrapperForImpl:function(e){const t=c(e);return t||e},tryImplForWrapper:function(e){const t=u(e);return t||e},iterInternalSymbol:d,isArrayBuffer:function(e){try{return p.call(e),!0}catch(t){return!1}},isArrayIndexPropName:function(e){if("string"!==typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e==="".concat(t)},supportsPropertyIndex:h,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:g,indexedGet:v,indexedSetNew:y,indexedSetExisting:b,namedGet:w,namedSetNew:x,namedSetExisting:C,namedDelete:A,asyncIteratorNext:E,asyncIteratorReturn:_,asyncIteratorInit:T,asyncIteratorEOI:S,iteratorResult:function(e,t){let n,[r,i]=e;switch(t){case"key":n=r;break;case"value":n=i;break;case"key+value":n=[r,i]}return{value:n,done:!1}}}},89850:(e,t,n)=>{"use strict";const r=n(58603),i=n(95753);t.URL=r,t.URLSearchParams=i},33723:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowtyAPI=void 0;const i=n(2035);t.FlowtyAPI=class{constructor(e){r(this,"baseURL",void 0),r(this,"getItem",(async e=>{const t="".concat(this.baseURL,"/item/").concat(e.contractAddress,"/").concat(e.contractName,"/").concat(e.resourceName,"/").concat(e.nftID);return(await i.default.get(t)).data})),r(this,"refreshMetadata",(async e=>i.default.get("".concat(this.baseURL,"/nft/refresh?id=").concat(e)).then((e=>e.data)))),this.baseURL=e}}},35387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectWallet=void 0;const r=n(19388);t.connectWallet=async()=>{await r.authenticate()}},87110:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowtyBuilder=void 0;const i=n(95920),o=n(99822);t.FlowtyBuilder=class{withApiURL(e){return this.config.apiURL=e,this}withContractAddress(e,t){return this.config.contractAddresses[e]=t,this}withNetwork(e){switch(e){case"mainnet":return this.withMainnet();case"testnet":return this.withTestnet();case"emulator":return this.withEmulator();default:throw new Error("Unrecognized network")}}withCrescendo(e){if(this.config.crescendo=e,this.config.crescendo)switch(this.config.network){case"mainnet":this.config.contractAddresses.TransactionTypes="0x26836b2113af9115";break;case"testnet":this.config.contractAddresses.TransactionTypes="0x0364649c96f0dcec"}return this}build(){return new o.Flowty(this.config)}constructor(){r(this,"config",void 0),this.config=new i.Config("",{AddressUtils:"",BaseCollection:"",CapabilityCache:"",ContractFactory:"",ContractFactoryTemplate:"",ContractManager:"",DapperOffersV2:"",DapperUtilityCoin:"",DapperWalletCollections:"",Doodles:"",DropTypes:"",FlowToken:"",FlowUtilityToken:"",Flowty:"",FlowtyActiveCheckers:"",FlowtyAddressVerifiers:"",FlowtyDrops:"",FlowtyOffersResolver:"",FlowtyPricers:"",FlowtyUtils:"",FlowtyWrapped:"",FungibleToken:"",FungibleTokenMetadataViews:"",FungibleTokenRouter:"",HybridCustody:"",LostAndFound:"",LostAndFoundHelper:"",MetadataViews:"",NFTCatalog:"",NFTMetadata:"",NFTStorefrontV2:"",NFTStorefrontV2_Shared:"",NonFungibleToken:"",Offers:"",OffersV2_Dapper:"",OpenEditionInitializer:"",OpenEditionTemplate:"",Resolver:"",StringUtils:"",TokenForwarding:"",TopShot:"",TransactionTypes:"",USDCFlow:"",ViewResolver:""},"emulator",!1)}withMainnet(){return this.config=new i.Config("https://api2.flowty.io",{AddressUtils:"0xa340dc0a4ec828ab",BaseCollection:"0xbefbaccb5032a457",CapabilityCache:"0xacc5081c003e24cf",ContractFactory:"0xbefbaccb5032a457",ContractFactoryTemplate:"0xbefbaccb5032a457",ContractManager:"0xbefbaccb5032a457",DapperOffersV2:"0xb8ea91944fd51c43",DapperUtilityCoin:"0xead892083b3e2c6c",DapperWalletCollections:"0x42a54b4f70e7dc81",Doodles:"0xe81193c424cfd3fb",DropTypes:"0x54233ec36b0c883b",FlowToken:"0x1654653399040a61",FlowUtilityToken:"0xead892083b3e2c6c",Flowty:"0x5c57f79c6694797f",FlowtyActiveCheckers:"0xbefbaccb5032a457",FlowtyAddressVerifiers:"0xbefbaccb5032a457",FlowtyDrops:"0xbefbaccb5032a457",FlowtyOffersResolver:"0x322d96c958eb8c46",FlowtyPricers:"0xbefbaccb5032a457",FlowtyUtils:"0x3cdbb3d569211ff3",FlowtyWrapped:"0x592eb32b47d8b85f",FungibleToken:"0xf233dcee88fe0abe",FungibleTokenMetadataViews:"0xf233dcee88fe0abe",FungibleTokenRouter:"0x707c0b39a8d689cb",HybridCustody:"0xd8a7e05a7ac670c0",LostAndFound:"0x473d6a2c37eab5be",LostAndFoundHelper:"0x473d6a2c37eab5be",MetadataViews:"0x1d7e57aa55817448",NFTCatalog:"0x49a7cda3a1eecc29",NFTMetadata:"0xbefbaccb5032a457",NFTStorefrontV2:"0x3cdbb3d569211ff3",NFTStorefrontV2_Shared:"0x4eb8a10cb9f87357",NonFungibleToken:"0x1d7e57aa55817448",Offers:"0x3c1c4b041ad18279",OffersV2_Dapper:"0xb8ea91944fd51c43",OpenEditionInitializer:"0xbefbaccb5032a457",OpenEditionTemplate:"0xbefbaccb5032a457",Resolver:"0xb8ea91944fd51c43",StringUtils:"0xa340dc0a4ec828ab",TokenForwarding:"0xe544175ee0461c4b",TopShot:"0x0b2a3299cc857e29",TransactionTypes:"0xccd763254ec95a9e",USDCFlow:"0xf1ab99c82dee3526",ViewResolver:"0x1d7e57aa55817448"},"mainnet",!1),this}withTestnet(){return this.config=new i.Config("https://api2.testnet.flowty.io",{AddressUtils:"0x31ad40c07a2a9788",BaseCollection:"0xea3e1b74e99dc035",CapabilityCache:"0x83d75469f66d2ee6",ContractFactory:"0xea3e1b74e99dc035",ContractFactoryTemplate:"0xea3e1b74e99dc035",ContractManager:"0xea3e1b74e99dc035",DapperOffersV2:"0x8a5f647e58dde1ee",DapperUtilityCoin:"0x82ec283f88a62e65",DapperWalletCollections:"0xb67c471ade6fdbea",Doodles:"0x1c5033ad60821c97",DropTypes:"0xfc6a7e477099ca54",FlowToken:"0x7e60df042a9c0868",FlowUtilityToken:"0x82ec283f88a62e65",Flowty:"0xe1d43e0cfc237807",FlowtyActiveCheckers:"0xea3e1b74e99dc035",FlowtyAddressVerifiers:"0xea3e1b74e99dc035",FlowtyDrops:"0xea3e1b74e99dc035",FlowtyOffersResolver:"0xc96178f4d1e4c1fd",FlowtyPricers:"0xea3e1b74e99dc035",FlowtyUtils:"0xb051bdaddb672a33",FlowtyWrapped:"0xd1712bc9e162f9e3",FungibleToken:"0x9a0766d93b6608b7",FungibleTokenMetadataViews:"0x9a0766d93b6608b7",FungibleTokenRouter:"0x83231f90a288bc35",HybridCustody:"0x294e44e1ec6993c6",LostAndFound:"0xbe4635353f55bbd4",LostAndFoundHelper:"0xbe4635353f55bbd4",MetadataViews:"0x631e88ae7f1d7c20",NFTCatalog:"0x324c34e1c517e4db",NFTMetadata:"0xea3e1b74e99dc035",NFTStorefrontV2:"0xb051bdaddb672a33",NFTStorefrontV2_Shared:"0x6225830c8c0957ba",NonFungibleToken:"0x631e88ae7f1d7c20",Offers:"0x0d3dc5ad70be03d1",OffersV2_Dapper:"0x8a5f647e58dde1ee",OpenEditionInitializer:"0xea3e1b74e99dc035",OpenEditionTemplate:"0xea3e1b74e99dc035",Resolver:"0x8a5f647e58dde1ee",StringUtils:"0x31ad40c07a2a9788",TokenForwarding:"0x51ea0e37c27a1f1a",TopShot:"0x877931736ee77cff",TransactionTypes:"0x86d1c2159a5d9eca",USDCFlow:"0x64adf39cbc354fcb",ViewResolver:"0x631e88ae7f1d7c20"},"testnet",!1),this}withEmulator(){return this.config=new i.Config("http://localhost:9000",{AddressUtils:"0xf8d6e0586b0a20c7",BaseCollection:"0xf8d6e0586b0a20c7",CapabilityCache:"0xf8d6e0586b0a20c7",ContractFactory:"0xf8d6e0586b0a20c7",ContractFactoryTemplate:"0xf8d6e0586b0a20c7",ContractManager:"0xf8d6e0586b0a20c7",DapperOffersV2:"0xf8d6e0586b0a20c7",DapperUtilityCoin:"0xf8d6e0586b0a20c7",DapperWalletCollections:"0xf8d6e0586b0a20c7",Doodles:"0xf8d6e0586b0a20c7",DropTypes:"0xf8d6e0586b0a20c7",FlowToken:"0x0ae53cb6e3f42a79",FlowUtilityToken:"0xf8d6e0586b0a20c7",Flowty:"0xf8d6e0586b0a20c7",FlowtyActiveCheckers:"0xf8d6e0586b0a20c7",FlowtyAddressVerifiers:"0xf8d6e0586b0a20c7",FlowtyDrops:"0xf8d6e0586b0a20c7",FlowtyOffersResolver:"0xf8d6e0586b0a20c7",FlowtyPricers:"0xf8d6e0586b0a20c7",FlowtyUtils:"0xf8d6e0586b0a20c7",FlowtyWrapped:"0xf8d6e0586b0a20c7",FungibleToken:"0xee82856bf20e2aa6",FungibleTokenMetadataViews:"0xf8d6e0586b0a20c7",FungibleTokenRouter:"0xf8d6e0586b0a20c7",HybridCustody:"0xf8d6e0586b0a20c7",LostAndFound:"0xf8d6e0586b0a20c7",LostAndFoundHelper:"0xf8d6e0586b0a20c7",MetadataViews:"0xf8d6e0586b0a20c7",NFTCatalog:"0xf8d6e0586b0a20c7",NFTMetadata:"0xf8d6e0586b0a20c7",NFTStorefrontV2:"0xf8d6e0586b0a20c7",NFTStorefrontV2_Shared:"0x1",NonFungibleToken:"0xf8d6e0586b0a20c7",Offers:"0xf8d6e0586b0a20c7",OffersV2_Dapper:"0xf8d6e0586b0a20c7",OpenEditionInitializer:"0xf8d6e0586b0a20c7",OpenEditionTemplate:"0xf8d6e0586b0a20c7",Resolver:"0xf8d6e0586b0a20c7",StringUtils:"0xf8d6e0586b0a20c7",TokenForwarding:"0xf8d6e0586b0a20c7",TopShot:"0xf8d6e0586b0a20c7",TransactionTypes:"0xf8d6e0586b0a20c7",USDCFlow:"0xf8d6e0586b0a20c7",ViewResolver:"0xf8d6e0586b0a20c7"},"emulator",!1),this}}},84631:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CheckerService=void 0;const i=n(19388);t.CheckerService=class{constructor(){r(this,"verifyAddress",(async e=>{let t=!1;try{(await i.account(e)).address&&(t=!0)}catch(n){console.log("Couldn't find account [".concat(e,"] for private listing"))}return t}))}}},47037:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionService=void 0;const i=n(20841),o=n(53918),a=n(65094),s=n(19388);t.CollectionService=class{constructor(e){r(this,"config",void 0),r(this,"setupCollection",(async(e,t,n,r)=>{if(!e||!t)return null;const l=(0,i.getSetupCollectionTxn)(this.config,n,e,t,r),c=[s.arg(e,a.Address),s.arg(t,a.String)];return(0,o.sendMutation)(l,c)})),this.config=e}}},20841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSetupCollectionTxn=void 0;t.getSetupCollectionTxn=(e,t,l,c,u)=>t?e.crescendo?s(e):o(e):e.crescendo?a(e):"TopShot"===c&&l===e.contractAddresses.TopShot?i(e):u?n(e):r(e);const n=e=>"",r=e=>"",i=e=>"",o=e=>"",a=e=>"// flowty.io - Setup Collection with the NFT Catalog\nimport ViewResolver from ".concat(e.contractAddresses.ViewResolver,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,'\n\ntransaction(contractAddress: Address, contractName: String) {\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        let contractAcct = getAccount(contractAddress)\n\n        let dc = contractAcct.contracts.get(name: contractName)\n            ?? panic("contract not found")\n        let vr = contractAcct.contracts.borrow<&{ViewResolver}>(name: contractName)\n        let publicTypes = dc.publicTypes()\n        let nftResourceType = Type<@{NonFungibleToken.NFT}>()\n        for pt in publicTypes {\n            if !pt.isSubtype(of: nftResourceType) {\n                continue\n            }\n\n            var storagePath: StoragePath? = nil\n            var publicPath: PublicPath? = nil\n\n            var catalogIdentifier = ""\n            if let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: pt.identifier) {\n                for k in catalogIdentifiers.keys {\n                    if catalogIdentifiers[k] == true {\n                        catalogIdentifier = k\n                        break\n                    }\n                }\n            }\n\n            if catalogIdentifier != "" {\n                if let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) {\n                    storagePath = catalogEntry.collectionData.storagePath\n                    publicPath = catalogEntry.collectionData.publicPath\n                }\n            }\n\n            let vr = getAccount(contractAddress).contracts.borrow<&{ViewResolver}>(name: contractName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n            let md = vr.resolveContractView(resourceType: pt, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n            let collectionData = md as! MetadataViews.NFTCollectionData\n\n            publicPath = publicPath ?? collectionData.publicPath\n            storagePath = storagePath ?? collectionData.storagePath\n            assert(storagePath != nil && publicPath != nil, message: "could not resolve publicPath or storagePath for collection")\n\n            if acct.storage.borrow<&AnyResource>(from: storagePath!) == nil {\n                acct.storage.save(<-collectionData.createEmptyCollection(), to: storagePath!)\n            }\n\n            let targetType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n            var hasProvider = false\n            acct.capabilities.storage.forEachController(forPath: storagePath!, fun(c: &StorageCapabilityController): Bool {\n\t\t\t\t\t\t\t\tif c.borrowType.isRecovered {\n\t\t\t\t\t\t\t\t\t\treturn true\n\t\t\t\t\t\t\t\t}\n\n                if c.borrowType.isSubtype(of: targetType) {\n                    hasProvider = true\n                    return false\n                }\n                return true\n            })\n\n            if !hasProvider {\n                let provider = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(storagePath!)\n                cache.addCapability(resourceType: pt, cap: provider)\n            }\n\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicPath!).check() {\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storagePath!),\n                    at: publicPath!\n                )\n            }\n        }\n    }\n}'),s=e=>"// flowty.io - Setup Collection with the NFT Catalog\n\nimport NFTCatalog from ".concat(e.contractAddresses.NFTCatalog,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport DapperWalletCollections from ").concat(e.contractAddresses.DapperWalletCollections,'\n\ntransaction(contractAddress: Address, contractName: String) {\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n    let contractAcct = getAccount(contractAddress)\n    let c = contractAcct.contracts.borrow<&{NonFungibleToken}>(name: contractName) ?? panic("contract not found")\n\n    let contractType = c.getType()\n    assert(DapperWalletCollections.containsType(contractType), message: "not a valid NFT type")\n\n    let nftTypeIdentifier = contractType.identifier.concat(".NFT")\n    let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier) ?? panic("not found in catalog")\n    var catalogIdentifier = ""\n    for k in catalogIdentifiers.keys {\n      if catalogIdentifiers[k] == true {\n        catalogIdentifier = k\n        break\n      }\n    }\n\n    assert(catalogIdentifier != "", message: "no valid catalog identifier found")\n\n    let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) ?? panic("catalog entry not found")\n\n    let publicPath = catalogEntry.collectionData.publicPath\n    let storagePath = catalogEntry.collectionData.storagePath\n    let privatePath = catalogEntry.collectionData.privatePath\n\n    if acct.storage.borrow<&AnyResource>(from: storagePath) == nil {\n      let collection <- c.createEmptyCollection(nftType: catalogEntry.nftType)\n      acct.storage.save(<-collection, to: storagePath)\n    }\n\n    if !acct.capabilities.get<&{NonFungibleToken.Collection}>(publicPath).check() {\n        acct.capabilities.unpublish(publicPath)\n        acct.capabilities.publish(\n            acct.capabilities.storage.issue<&{NonFungibleToken.Collection}>(storagePath),\n            at: publicPath\n        )\n    }\n\n    let providerStoragePath = FlowtyUtils.getCapabilityStoragePath(type: catalogEntry.nftType, suffix: "CollectionProviderForFlowty")\n    let copiedCap = acct.storage.copy<Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>>(from: providerStoragePath)\n    if copiedCap?.check() != true {\n      let provider = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath)\n      assert(provider.check(), message: "collection provider capability is not valid")\n      acct.storage.save(provider, to: providerStoragePath)\n    }\n  }\n}')},49686:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOpenEdition=void 0;const i=n(65094),o=n(19388),a=n(53918),s=n(48873);t.CreateOpenEdition=class{constructor(e){r(this,"config",void 0),r(this,"createOpenEdition",(async e=>{var t;let{collectionDetails:n,nftDetails:r,dropDetails:l,phaseDetails:c,txAvailableCallback:u}=e;const d={cid:r.nftThumbnail,description:r.nftDescription,externalURL:r.nftExternalURL,name:r.nftName},p=Object.entries(d).map((e=>({key:e[0],value:e[1]}))),h={bannerImageCid:n.collectionPageBannerImage,bannerImageMediaType:n.collectionBannerImageMediaType,description:n.collectionDescription,externalURL:n.collectionExternalURL,name:n.collectionName,squareImageCid:n.collectionSquareImage,squareImageMediaType:n.collectionSquareImageMediaType};n.collectionTwitterHandle&&(h.twitter=n.collectionTwitterHandle),n.collectionInstagramHandle&&(h.instagram=n.collectionInstagramHandle),n.collectionDiscordHandle&&(h.discord=n.collectionDiscordHandle);const f=Object.entries(h).map((e=>({key:e[0],value:e[1]}))),m={description:l.dropDescription,name:l.dropName,nftType:l.dropNftType||"",thumbnailCid:l.dropThumbnail},g=Object.entries(m).map((e=>({key:e[0],value:e[1]})));let v=null!==(t=n.collectionRoyalty)&&void 0!==t?t:0;v=100*v/1e4;const y=[o.arg(n.contractName,i.String),o.arg("0.01",i.UFix64),o.arg(c[0].phaseStartDate,i.Optional(i.UInt64)),o.arg(c[0].phaseEndDate,i.Optional(i.UInt64)),o.arg(Number(c[0].phasePrice).toFixed(5),i.UFix64),o.arg(this.config.getIdentifier("FlowToken","Vault"),i.String),o.arg([],i.Dictionary({key:i.String,value:i.String})),o.arg(p,i.Dictionary({key:i.String,value:i.String})),o.arg(f,i.Dictionary({key:i.String,value:i.String})),o.arg(g,i.Dictionary({key:i.String,value:i.String})),o.arg(v.toFixed(5)||null,i.Optional(i.UFix64))];console.log("txArgs",y);const b=(0,s.createOpenEditionTransactionFn)(this.config);try{return await(0,a.sendMutation)(b,y,u)}catch(w){throw console.log("TX ERROR",w),(0,a.Err)("createOpenEdition Error",w),w}})),this.config=e}}},48873:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOpenEditionTransactionFn=void 0;t.createOpenEditionTransactionFn=e=>"import ContractFactory from ".concat(e.contractAddresses.ContractFactory,"\nimport ContractFactoryTemplate from ").concat(e.contractAddresses.ContractFactoryTemplate,"\nimport OpenEditionTemplate from ").concat(e.contractAddresses.ContractFactoryTemplate,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport OpenEditionInitializer from ").concat(e.contractAddresses.OpenEditionInitializer,"\nimport ContractManager from ").concat(e.contractAddresses.ContractManager,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport FlowToken from ").concat(e.contractAddresses.FlowToken,"\nimport FlowtyDrops from ").concat(e.contractAddresses.FlowtyDrops,"\nimport NFTMetadata from ").concat(e.contractAddresses.NFTMetadata,"\nimport FlowtyActiveCheckers from ").concat(e.contractAddresses.FlowtyActiveCheckers,"\nimport FlowtyPricers from ").concat(e.contractAddresses.FlowtyPricers,"\nimport FlowtyAddressVerifiers from ").concat(e.contractAddresses.FlowtyAddressVerifiers,"\nimport FungibleTokenRouter from ").concat(e.contractAddresses.FungibleTokenRouter,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n    \ntransaction(contractName: String, managerInitialTokenBalance: UFix64, start: UInt64?, end: UInt64?, price: UFix64, paymentTokenType: String, phaseArgs: {String: String}, metadataArgs: {String: String}, collectionInfoArgs: {String: String}, dropDetailArgs: {String: String}, collectionRoyalty: UFix64?) {\n    prepare(acct: auth(Storage, Capabilities, Inbox) &Account) {\n        if acct.storage.borrow<&AnyResource>(from: ContractManager.StoragePath) == nil {\n            let v = acct.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)!\n            let tokens <- v.withdraw(amount: managerInitialTokenBalance) as! @FlowToken.Vault\n\n            let contractManager <- ContractManager.createManager(tokens: <-tokens, defaultRouterAddress: acct.address)\n            let contractAddress = contractManager.getAccount().address\n            acct.storage.save(<- contractManager, to: ContractManager.StoragePath)\n\n            acct.capabilities.unpublish(ContractManager.PublicPath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&ContractManager.Manager>(ContractManager.StoragePath),\n                at: ContractManager.PublicPath\n            )\n\n            acct.storage.borrow<auth(ContractManager.Manage) &ContractManager.Manager>(from: ContractManager.StoragePath)!.onSave()\n            \n            // there is a published hybrid custody capability to redeem\n            if acct.storage.borrow<&HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath) == nil {\n                let m <- HybridCustody.createManager(filter: nil)\n                acct.storage.save(<- m, to: HybridCustody.ManagerStoragePath)\n\n                for c in acct.capabilities.storage.getControllers(forPath: HybridCustody.ManagerStoragePath) {\n                        c.delete()\n                }\n\n                acct.capabilities.unpublish(HybridCustody.ManagerPublicPath)\n                acct.capabilities.publish(\n                        acct.capabilities.storage.issue<&{HybridCustody.ManagerPublic}>(HybridCustody.ManagerStoragePath),\n                        at: HybridCustody.ManagerPublicPath\n                )\n\n                acct.capabilities.storage.issue<auth(HybridCustody.Manage) &{HybridCustody.ManagerPrivate, HybridCustody.ManagerPublic}>(HybridCustody.ManagerStoragePath)\n            }\n\n            let inboxName = HybridCustody.getChildAccountIdentifier(acct.address)\n            let cap = acct.inbox.claim<auth(HybridCustody.Child) &{HybridCustody.AccountPrivate, HybridCustody.AccountPublic, ViewResolver.Resolver}>(inboxName, provider: contractAddress)\n                    ?? panic("child account cap not found")\n\n            let hcManager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                    ?? panic("manager no found")\n            hcManager.addAccount(cap: cap)\n        \n            hcManager.setChildAccountDisplay(address: cap.address, MetadataViews.Display(\n                name: "Creator Hub",\n                description: "Created by the Flowty Creator Hub",\n                thumbnail: MetadataViews.HTTPFile(url: "https://avatars.flowty.io/6.x/thumbs/png?seed=".concat(cap.address.toString()))\n            ))\n        }\n\n        let manager = acct.storage.borrow<auth(ContractManager.Manage) &ContractManager.Manager>(from: ContractManager.StoragePath)\n            ?? panic("manager was not borrowed successfully")\n\n        let addr = manager.getAccount().address\n        let addrStr = addr.toString()\n        let nftType = "A.".concat(addrStr.slice(from: 2, upTo: addrStr.length)).concat(".").concat(contractName).concat(".NFT")\n        let royalty: MetadataViews.Royalty? = collectionRoyalty != nil ? MetadataViews.Royalty(\n            receiver: getAccount(addr).capabilities.get<&{FungibleToken.Receiver}>(FungibleTokenRouter.PublicPath),\n            cut: collectionRoyalty!,\n            description: ""\n        ) : nil\n\n        let data: {String: AnyStruct} = {}\n        let nftMetadata: NFTMetadata.Metadata = NFTMetadata.Metadata(\n            name: metadataArgs["name"]!,\n            description: metadataArgs["description"]!,\n            thumbnail: MetadataViews.IPFSFile(cid: metadataArgs["cid"]!, path: metadataArgs["path"]),\n            traits: nil,\n            editions: nil,\n            externalURL: metadataArgs["externalURL"] != nil ? MetadataViews.ExternalURL(metadataArgs["externalURL"]!) : nil,\n            royalties: royalty != nil ? MetadataViews.Royalties([royalty!]) : nil,\n            data: data\n        )\n\n        let socials: {String: MetadataViews.ExternalURL} = {}\n        let keys = ["twitter", "x", "discord", "instagram"]\n        for k in keys {\n            if let v = collectionInfoArgs[k] {\n                socials[k] = MetadataViews.ExternalURL(v)\n            }\n        }\n\n        let collectionDisplay = MetadataViews.NFTCollectionDisplay(\n            name: collectionInfoArgs["name"]!,\n            description: collectionInfoArgs["description"]!,\n            externalURL: MetadataViews.ExternalURL(collectionInfoArgs["externalURL"]!),\n            squareImage: MetadataViews.Media(\n                file: MetadataViews.IPFSFile(cid: collectionInfoArgs["squareImageCid"]!, path: collectionInfoArgs["squareImagePath"]),\n                mediaType: collectionInfoArgs["squareImageMediaType"]!\n            ),\n            bannerImage: MetadataViews.Media(\n                file: MetadataViews.IPFSFile(cid: collectionInfoArgs["bannerImageCid"]!, path: collectionInfoArgs["bannerImagePath"]),\n                mediaType: collectionInfoArgs["bannerImageMediaType"]!\n            ),\n            socials: socials\n        )\n\n        let dropDetails = FlowtyDrops.DropDetails(\n            display: MetadataViews.Display(\n                name: dropDetailArgs["name"]!,\n                description: dropDetailArgs["description"]!,\n                thumbnail: MetadataViews.IPFSFile(cid: dropDetailArgs["thumbnailCid"]!, path: dropDetailArgs["thumbnailPath"])\n            ),\n            medias: nil,\n            commissionRate: 0.05,\n            nftType: nftType,\n            paymentTokenTypes: { paymentTokenType: true }\n        )\n\n        let phaseDetails = FlowtyDrops.PhaseDetails(\n            activeChecker: FlowtyActiveCheckers.TimestampChecker(start: start, end: end),\n            display: phaseArgs["displayName"] != nil ? MetadataViews.Display(\n                name: phaseArgs["displayName"]!,\n                description: phaseArgs["displayDescription"]!,\n                thumbnail: MetadataViews.IPFSFile(cid: phaseArgs["displayCid"]!, path: phaseArgs["displayPath"])\n            ) : nil,\n            pricer: FlowtyPricers.FlatPrice(price: price, paymentTokenType: CompositeType(paymentTokenType)!),\n            addressVerifier: FlowtyAddressVerifiers.AllowAll(maxPerMint: 10)\n        )\n\n        // The Open edition initializer requires at least two keys:\n        // - data: NFTMetadata.Metadata\n        // - collectionInfo: NFTMetadata.CollectionInfo\n        // \n        // You can also specify some optional paramters:\n        // - dropDetails: FlowtyDrops.DropDetails\n        // - phaseDetails: [FlowtyDrops.PhaseDetails]\n        // - minterController: This is supplied in the initialization of the contract itself\n        let arr: [FlowtyDrops.PhaseDetails] = [phaseDetails]\n        let params: {String: AnyStruct} = {\n            "data": nftMetadata,\n            "collectionInfo": NFTMetadata.CollectionInfo(collectionDisplay: collectionDisplay),\n            "dropDetails": dropDetails,\n            "phaseDetails": arr\n        }\n\n        ContractFactory.createContract(templateType: Type<OpenEditionTemplate>(), acct: manager.borrowContractAccount(), name: contractName, params: params, initializeIdentifier: Type<OpenEditionInitializer>().identifier)\n    }\n}')},7784:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DropDetails=void 0;const i=n(53918),o=n(82364),a=n(10355),s=n(19388),l=n(65094);t.DropDetails=class{constructor(e){r(this,"config",void 0),r(this,"getDropDetails",(async e=>{let{contractAddress:t,contractName:n,dropID:r,minter:o,quantity:c,paymentIdentifier:u}=e;const d=[s.arg(t,l.Address),s.arg(n,l.String),s.arg(r,l.UInt64),s.arg(o||null,l.Optional(l.Address)),s.arg(c||null,l.Optional(l.Int)),s.arg(u||null,l.Optional(l.String))],p=(0,a.getDropDetails)(this.config.contractAddresses.DropTypes);try{return await(0,i.executeScript)(p,d)}catch(h){throw console.log("Get drop details Script Error",h),(0,i.Err)("Error running drop details script",h),h}})),r(this,"getAllDropDetails",(async e=>{let{nftResourceTypeIdentifier:t,minter:n,quantity:r,paymentIdentifier:a}=e;const c=[s.arg(t,l.String),s.arg(n||null,l.Optional(l.Address)),s.arg(r||null,l.Optional(l.Int)),s.arg(a||null,l.Optional(l.String))],u=(0,o.getAllDropDetails)(this.config.contractAddresses.DropTypes);try{return await(0,i.executeScript)(u,c)}catch(d){throw console.log("Get drop details Script Error",d),(0,i.Err)("Error running all drop details script",d),d}})),this.config=e}}},84972:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DropMint=void 0;const i=n(53918),o=n(18336),a=n(19388),s=n(65094);t.DropMint=class{constructor(e){r(this,"config",void 0),r(this,"mint",(async e=>{let{commissionAddress:t,contractAddress:n,contractName:r,dropID:l,dropPhaseIndex:c,nftIdentifier:u,numToMint:d,paymentIdentifier:p,paymentReceiverPath:h,paymentStoragePath:f,totalCost:m,txAvailableCallback:g}=e;const v=[a.arg(n,s.Address),a.arg(r,s.String),a.arg(d.toString(),s.Int),a.arg(m.toFixed(2),s.UFix64),a.arg(p,s.String),a.arg(f,s.String),a.arg(h,s.String),a.arg(l,s.UInt64),a.arg(c.toString(),s.Int),a.arg(u,s.String),a.arg(t,s.Address)],y=(0,o.getMintDropTx)(this.config);try{return await(0,i.sendMutation)(y,v,g)}catch(b){throw console.log("TX ERROR",b),(0,i.Err)("mintDrop Error",b),b}})),this.config=e}}},82364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllDropDetails=void 0;t.getAllDropDetails=e=>"import DropTypes from ".concat(e,"\n\naccess(all) fun main(nftTypeIdentifier: String, minter: Address?, quantity: Int?, paymentIdentifier: String?): [DropTypes.DropSummary] {\n    return DropTypes.getAllDropSummaries(nftTypeIdentifier: nftTypeIdentifier, minter: minter, quantity: quantity, paymentIdentifiers: paymentIdentifier != nil ? [paymentIdentifier!] : [])\n}")},10355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDropDetails=void 0;t.getDropDetails=e=>"import DropTypes from ".concat(e,"\n\n  access(all) fun main(contractAddress: Address, contractName: String, dropID: UInt64, minter: Address?, quantity: Int?, paymentIdentifier: String?): DropTypes.DropSummary? {\n    return DropTypes.getDropSummary(contractAddress: contractAddress, contractName: contractName, dropID: dropID, minter: minter, quantity: quantity, paymentIdentifiers: paymentIdentifier != nil ? [paymentIdentifier!]: [])\n}")},18336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMintDropTx=void 0;t.getMintDropTx=e=>"import ViewResolver from ".concat(e.contractAddresses.ViewResolver,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport FlowtyDrops from ").concat(e.contractAddresses.FlowtyDrops,'\n  \ntransaction(\n    contractAddress: Address,\n    contractName: String,\n    numToMint: Int,\n    totalCost: UFix64,\n    paymentIdentifier: String,\n    paymentStorageIdentifier: String,\n    paymentReceiverIdentifier: String,\n    dropID: UInt64,\n    dropPhaseIndex: Int,\n    nftIdentifier: String,\n    commissionAddress: Address\n) {\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        let paymentStoragePath = StoragePath(identifier: paymentStorageIdentifier) ?? panic("invalid storage identifier")\n        let paymentReceiverPath = PublicPath(identifier: paymentReceiverIdentifier) ?? panic("invalid receiver identifier")\n\n        let dc = getAccount(contractAddress).contracts.get(name: contractName) ?? panic("contract name not found")\n        let nftResourceType = Type<@{NonFungibleToken.NFT}>()\n\n        let resolver = getAccount(contractAddress).contracts.borrow<&{ViewResolver}>(name: contractName)\n            ?? panic("ViewResolver contract interface not found on contract address + name")\n        let nftType = CompositeType(nftIdentifier) ?? panic("invalid nftIdentifier: ".concat(nftIdentifier))\n\n        let collectionData = resolver.resolveContractView(resourceType: nftType, viewType: Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n        if acct.storage.borrow<&AnyResource>(from: collectionData.storagePath) == nil {\n            acct.storage.save(<- collectionData.createEmptyCollection(), to: collectionData.storagePath)\n\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(collectionData.storagePath), \n                at: collectionData.publicPath\n            )\n        }\n        let receiverCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)!\n\n        let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: paymentStoragePath)\n            ?? panic("could not borrow token provider")\n\n        let paymentVault <- vault.withdraw(amount: totalCost)\n\n        let dropResolver = resolver.resolveContractView(resourceType: nftType, viewType: Type<FlowtyDrops.DropResolver>())! as! FlowtyDrops.DropResolver\n        // let dropResolver = resolver.resolveView(Type<FlowtyDrops.DropResolver>())! as! FlowtyDrops.DropResolver\n        let dropContainer = dropResolver.borrowContainer()\n            ?? panic("unable to borrow drop container")\n\n        let drop = dropContainer.borrowDropPublic(id: dropID) ?? panic("drop not found")\n\n        let commissionReceiver = getAccount(commissionAddress).capabilities.get<&{FungibleToken.Receiver}>(paymentReceiverPath)\n        let remainder <- drop.mint(\n            payment: <-paymentVault,\n            amount: numToMint,\n            phaseIndex: dropPhaseIndex,\n            expectedType: nftType,\n            receiverCap: receiverCap,\n            commissionReceiver: commissionReceiver,\n            data: {}\n        )\n\n        if remainder.balance > 0.0 {\n            acct.storage.borrow<&{FungibleToken.Receiver}>(from: paymentStoragePath)!.deposit(from: <-remainder)\n        } else {\n            destroy remainder\n        }\n    }\n}')},99822:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Flowty=void 0;const i=n(33723),o=n(84631),a=n(47037),s=n(49686),l=n(7784),c=n(84972),u=n(33088),d=n(21605),p=n(60721),h=n(38101),f=n(89510),m=n(48658),g=n(3799),v=n(72986),y=n(22780),b=n(32673),w=n(86097),x=n(98389),C=n(2245),A=n(38769),E=n(59235),_=n(64775);t.Flowty=class{constructor(e){r(this,"config",void 0),r(this,"storefrontListing",void 0),r(this,"loanListing",void 0),r(this,"rentListing",void 0),r(this,"transferService",void 0),r(this,"checkerService",void 0),r(this,"storefrontPurchase",void 0),r(this,"fundLoanListingService",void 0),r(this,"repayLoanService",void 0),r(this,"fundRentalListingService",void 0),r(this,"returnRentalService",void 0),r(this,"makeOfferService",void 0),r(this,"acceptOfferService",void 0),r(this,"cancelOfferService",void 0),r(this,"dropDetailsService",void 0),r(this,"lostAndFoundService",void 0),r(this,"dropMintService",void 0),r(this,"editChildAccountService",void 0),r(this,"createOpenEditionService",void 0),r(this,"scripts",void 0),r(this,"tokens",void 0),r(this,"collections",void 0),r(this,"api",void 0),r(this,"createStorefrontBulkListing",(async(e,t,n,r,i)=>this.storefrontListing.createStorefrontBulkListing(e,t,n,r,i))),r(this,"removeBulkListing",(async(e,t,n)=>(console.log("remove bulk listing",{listingResourceIDs:e,listingType:t}),this.storefrontListing.removeBulkListing(e,t,n)))),r(this,"returnRental",(async(e,t,n,r,i)=>this.returnRentalService.returnRental(e,t,n,r,i))),r(this,"createOpenEdition",(async e=>{let{collectionDetails:t,nftDetails:n,dropDetails:r,phaseDetails:i,txAvailableCallback:o}=e;return this.createOpenEditionService.createOpenEdition({collectionDetails:t,dropDetails:r,nftDetails:n,phaseDetails:i,txAvailableCallback:o})})),r(this,"repayLoan",(async e=>{let{fundItemID:t,address:n,token:r,ftPrivatePathIdentifier:i,ftProviderAddress:o,txAvailableCallback:a}=e;return this.repayLoanService.repayLoan({address:n,ftPrivatePathIdentifier:i,ftProviderAddress:o,fundItemID:t,token:r,txAvailableCallback:a})})),r(this,"editChildAccountDisplay",(async e=>{let{childAddress:t,name:n,desc:r,thumbnail:i,txAvailableCallback:o}=e;return this.editChildAccountService.editChildAccountDisplay({childAddress:t,desc:r,name:n,thumbnail:i,txAvailableCallback:o})})),r(this,"setupCollection",(async(e,t,n,r)=>this.collections.setupCollection(e,t,n,r))),this.config=e,this.storefrontListing=new x.StorefrontListing(this.config),this.loanListing=new p.LoanListing(this.config),this.rentListing=new g.RentListing(this.config),this.transferService=new _.TransferService(this.config),this.checkerService=new o.CheckerService,this.storefrontPurchase=new A.StorefrontPurchase(this.config),this.fundLoanListingService=new d.FundLoanListing(this.config),this.repayLoanService=new h.RepayLoanService(this.config),this.fundRentalListingService=new m.FundRentalListing(this.config),this.returnRentalService=new v.ReturnRental(this.config),this.makeOfferService=new C.MakeOffer(this.config),this.acceptOfferService=new b.AcceptOffer(this.config),this.cancelOfferService=new w.CancelOffer(this.config),this.dropDetailsService=new l.DropDetails(this.config),this.dropMintService=new c.DropMint(this.config),this.lostAndFoundService=new f.LostAndFound(this.config),this.editChildAccountService=new u.EditChildAccount(this.config),this.createOpenEditionService=new s.CreateOpenEdition(this.config),this.scripts=new y.ScriptService(this.config),this.tokens=new E.TokenService(this.config),this.collections=new a.CollectionService(this.config),this.api=new i.FlowtyAPI(this.config.apiURL)}async createStorefrontListing(e){let{nftData:t,buyer:n,salePrice:r,expiry:i,token:o,txAvailableCallback:a,nftProviderPathIdentifier:s,ftReceiverAddress:l}=e;return this.storefrontListing.createStorefrontListing({buyer:n,expiry:i,ftReceiverAddress:l,nftData:t,nftProviderPathIdentifier:s,salePrice:r,token:o,txAvailableCallback:a}).then((e=>e)).catch((e=>e))}async removeStorefrontListing(e){let{listingResourceID:t,listingType:n,txAvailableCallback:r}=e;return this.storefrontListing.removeStorefrontListing({listingResourceID:t,listingType:n,txAvailableCallback:r}).then((e=>e)).catch((e=>e))}async createLoanListing(e){let{nftData:t,loanAmount:n,loanInterestRate:r,loanDuration:i,loanAutoRepaymentEnabled:o,loanExpiresAfterDays:a,token:s,ftPrivatePathIdentifier:l,nftProviderPathIdentifier:c,ftReceiverAddress:u,txAvailableCallback:d}=e;return this.loanListing.createLoanListing({ftPrivatePathIdentifier:l,ftReceiverAddress:u,loanAmount:n,loanAutoRepaymentEnabled:o,loanDuration:i,loanExpiresAfterDays:a,loanInterestRate:r,nftData:t,nftProviderPathIdentifier:c,token:s,txAvailableCallback:d}).then((e=>e)).catch((e=>e))}async removeLoanListing(e){let{listingResourceID:t,txAvailableCallback:n}=e;return this.loanListing.removeLoanListing({listingResourceID:t,txAvailableCallback:n}).then((e=>e)).catch((e=>e))}async createRentListing(e){let{nftData:t,rentalFee:n,rentalDeposit:r,rentalTerm:i,token:o,renterAddress:a,rentalExpiresAfterDays:s,nftProviderPathIdentifier:l,ftReceiverAddress:c,txAvailableCallback:u}=e;return this.rentListing.createRentListing({ftReceiverAddress:c,nftData:t,nftProviderPathIdentifier:l,rentalDeposit:r,rentalExpiresAfterDays:s,rentalFee:n,rentalTerm:i,renterAddress:a,token:o,txAvailableCallback:u}).then((e=>e)).catch((e=>e))}async removeRentListing(e){let{listingResourceID:t,txAvailableCallback:n}=e;return this.rentListing.removeRentListing({listingResourceID:t,txAvailableCallback:n}).then((e=>e)).catch((e=>e))}async transferNft(e){let{nftData:t,transferRecipient:n,nftProviderPathIdentifier:r,txAvailableCallback:i}=e;return this.transferService.transferNft({nftData:t,nftProviderPathIdentifier:r,transferRecipient:n,txAvailableCallback:i}).then((e=>e)).catch((e=>e))}async verifyAddress(e){return this.checkerService.verifyAddress(e).then((e=>e)).catch((e=>e))}async purchaseStorefrontListing(e){let{listing:t,token:n,nftReceiverAddress:r,ftProviderAddress:i,privateFTPath:o,txAvailableCallback:a}=e;return this.storefrontPurchase.purchaseStorefrontListing({ftProviderAddress:i,listing:t,nftReceiverAddress:r,privateFTPath:o,token:n,txAvailableCallback:a}).then((e=>e)).catch((e=>e))}async fundLoanListing(e){let{listingData:t,nftReceiverAddress:n,ftPrivatePathIdentifier:r,ftProviderAddress:i,nftData:o,token:a,txAvailableCallback:s}=e;return this.fundLoanListingService.fundLoanListing({ftPrivatePathIdentifier:r,ftProviderAddress:i,listingData:t,nftData:o,nftReceiverAddress:n,token:a,txAvailableCallback:s}).then((e=>e)).catch((e=>e))}async fundRentalListing(e){let{listingData:t,token:n,nftData:r,enabledAutoReturn:i,nftReceiverAddress:o,ftProviderAddress:a,ftPrivatePathIdentifier:s,nftProviderPathIdentifier:l,txAvailableCallback:c}=e;return this.fundRentalListingService.fundRentalListing({enabledAutoReturn:i,ftPrivatePathIdentifier:s,ftProviderAddress:a,listingData:t,nftData:r,nftProviderPathIdentifier:l,nftReceiverAddress:o,token:n,txAvailableCallback:c}).then((e=>e)).catch((e=>e))}async makeOffer(e){let{nftData:t,txAvailableCallback:n,nftReceiverAddress:r,ftProviderAddress:i,ftProviderPathIdentifier:o,token:a,tokenIdentifier:s,offerAmount:l,expiry:c}=e;return this.makeOfferService.makeOffer({expiry:c,ftProviderAddress:i,ftProviderPathIdentifier:o,nftData:t,nftReceiverAddress:r,offerAmount:l,token:a,tokenIdentifier:s,txAvailableCallback:n}).then((e=>e)).catch((e=>e))}async acceptOffer(e){let{nftData:t,txAvailableCallback:n,nftProviderPathIdentifier:r,ftReceiverAddress:i,token:o,offerResourceID:a,offerStorefrontAddress:s,nftStoragePath:l}=e;return this.acceptOfferService.acceptOffer({ftReceiverAddress:i,nftData:t,nftProviderPathIdentifier:r,nftStoragePath:l,offerResourceID:a,offerStorefrontAddress:s,token:o,txAvailableCallback:n}).then((e=>e)).catch((e=>e))}async cancelOffer(e){let{offerResourceID:t,token:n,txAvailableCallback:r}=e;return this.cancelOfferService.cancelOffer({offerResourceID:t,token:n,txAvailableCallback:r})}async getDropDetails(e){let{contractAddress:t,contractName:n,dropID:r,minter:i,quantity:o,paymentIdentifier:a}=e;return this.dropDetailsService.getDropDetails({contractAddress:t,contractName:n,dropID:r,minter:i,paymentIdentifier:a,quantity:o})}async getAllDropDetails(e){let{nftResourceTypeIdentifier:t,minter:n,quantity:r,paymentIdentifier:i}=e;return this.dropDetailsService.getAllDropDetails({minter:n,nftResourceTypeIdentifier:t,paymentIdentifier:i,quantity:r})}async dropMint(e){let{commissionAddress:t,contractAddress:n,contractName:r,dropID:i,dropPhaseIndex:o,nftIdentifier:a,numToMint:s,paymentIdentifier:l,paymentReceiverPath:c,paymentStoragePath:u,totalCost:d,txAvailableCallback:p}=e;return this.dropMintService.mint({commissionAddress:t,contractAddress:n,contractName:r,dropID:i,dropPhaseIndex:o,nftIdentifier:a,numToMint:s,paymentIdentifier:l,paymentReceiverPath:c,paymentStoragePath:u,totalCost:d,txAvailableCallback:p})}async redeemLostAndFound(e){let{catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,ticketID:i,txAvailableCallback:o}=e;return this.lostAndFoundService.redeemLostAndFound({catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,ticketID:i,txAvailableCallback:o})}async redeemAllTicketsLostAndFound(e){let{catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,txAvailableCallback:i}=e;return this.lostAndFoundService.redeemAllTicketsLostAndFound({catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,txAvailableCallback:i})}}},33088:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EditChildAccount=void 0;const i=n(53918),o=n(5340),a=n(19388),s=n(65094);t.EditChildAccount=class{constructor(e){r(this,"config",void 0),r(this,"editChildAccountDisplay",(async e=>{let{childAddress:t,name:n,desc:r,thumbnail:l,txAvailableCallback:c}=e;const u=(0,o.setChildAccountDisplayTx)(this.config.contractAddresses.HybridCustody,this.config.contractAddresses.MetadataViews);try{const e=[a.arg(t,s.Address),a.arg(n,s.String),a.arg(r,s.String),a.arg(l,s.String)];return await(0,i.sendMutation)(u,e,c)}catch(d){throw console.log("TX ERROR",d),(0,i.Err)("Edit Child Account Error",d),d}})),this.config=e}}},5340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setChildAccountDisplayTx=void 0;t.setChildAccountDisplayTx=(e,t)=>"\nimport HybridCustody from ".concat(e,"\nimport MetadataViews from ").concat(t,'\n\n\ttransaction(childAddress: Address, name: String, description: String, thumbnail: String) {\n\t\tprepare(acct: auth(Storage, Capabilities) &Account) {\n\t\t\t\tlet m = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n\t\t\t\t\t\t?? panic("manager not found")\n\t\t\t\t\n\t\t\t\tlet d = MetadataViews.Display(\n\t\t\t\t\t\tname: name,\n\t\t\t\t\t\tdescription: description,\n\t\t\t\t\t\tthumbnail: MetadataViews.HTTPFile(url: thumbnail)\n\t\t\t\t)\n\t\t\t\tm.setChildAccountDisplay(address: childAddress, d)\n\t\t}\n\t}\n')},98081:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Flowty=t.FlowtyBuilder=t.IdentifierToPaymentToken=t.PaymentTokenToIdentifier=t.connectWallet=t.verifyAddress=t.useGetFlowtyStorefrontFee=t.useGetCollectionRoyalty=t.useGetFees=void 0;var o=n(87111);Object.defineProperty(t,"useGetFees",{enumerable:!0,get:function(){return o.useGetFees}});var a=n(50776);Object.defineProperty(t,"useGetCollectionRoyalty",{enumerable:!0,get:function(){return a.useGetCollectionRoyalty}});var s=n(21657);Object.defineProperty(t,"useGetFlowtyStorefrontFee",{enumerable:!0,get:function(){return s.useGetFlowtyStorefrontFee}});var l=n(65490);Object.defineProperty(t,"verifyAddress",{enumerable:!0,get:function(){return l.verifyAddress}});var c=n(35387);Object.defineProperty(t,"connectWallet",{enumerable:!0,get:function(){return c.connectWallet}});var u=n(77706);Object.defineProperty(t,"PaymentTokenToIdentifier",{enumerable:!0,get:function(){return u.PaymentTokenToIdentifier}}),Object.defineProperty(t,"IdentifierToPaymentToken",{enumerable:!0,get:function(){return u.IdentifierToPaymentToken}});var d=n(87110);Object.defineProperty(t,"FlowtyBuilder",{enumerable:!0,get:function(){return d.FlowtyBuilder}});var p=n(99822);Object.defineProperty(t,"Flowty",{enumerable:!0,get:function(){return p.Flowty}}),i(n(95920),t)},21605:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FundLoanListing=void 0;const i=n(53918),o=n(51738),a=n(19388),s=n(65094);t.FundLoanListing=class{constructor(e){r(this,"config",void 0),r(this,"fundLoanListing",(async e=>{var t;let{listingData:n,token:r,nftData:l,nftReceiverAddress:c,ftPrivatePathIdentifier:u,ftProviderAddress:d,txAvailableCallback:p}=e;const h=n.listingResourceID||"",f=(null===(t=n.flowtyStorefrontAddress)||void 0===t?void 0:t.toString())||"0",m=this.config.crescendo?a.arg(u||"0",s.UInt64):a.arg(u,s.String),g=[a.arg(h.toString(),s.UInt64),a.arg(f,s.Address),m,a.arg(c,s.Address),a.arg(d,s.Address)],v=(0,o.getFundLoanListingTxn)(this.config,r,l);try{return await(0,i.sendMutation)(v,g,p)}catch(y){throw console.log("TX ERROR",y),(0,i.Err)("createStorefrontListing",y),y}})),this.config=e}}},51738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFundLoanListingTxn=void 0;t.getFundLoanListingTxn=(e,t,i)=>e.crescendo?r(e):n(e,t,i);const n=(e,t,n)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport Flowty from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\ntransaction(\n    listingResourceID: UInt64,\n    flowtyStorefrontAddress: Address,\n    ftProviderControllerID: UInt64,\n    nftReceiverAddress: Address,\n    ftProviderAddress: Address\n) {\n    let paymentVault: @{FungibleToken.Vault}\n    let storefront: &{Flowty.FlowtyStorefrontPublic}\n    let listing: &{Flowty.ListingPublic}\n\n    let tokenReceiver: Capability<&{FungibleToken.Receiver}>\n    let nftReceiver: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        if(acct.storage.borrow<&Flowty.FlowtyStorefront>(from: Flowty.FlowtyStorefrontStoragePath) == nil) {\n            let storefront <- Flowty.createStorefront()\n\n            acct.storage.save(<-storefront, to: Flowty.FlowtyStorefrontStoragePath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{Flowty.FlowtyStorefrontPublic}>(Flowty.FlowtyStorefrontStoragePath),\n                at: Flowty.FlowtyStorefrontPublicPath\n            )\n        }\n\n        self.storefront = getAccount(flowtyStorefrontAddress).capabilities.get<&{Flowty.FlowtyStorefrontPublic}>(Flowty.FlowtyStorefrontPublicPath)\n            .borrow() ?? panic("Could not borrow FlowtyStorefront from provided address")\n\n        assert(self.storefront.getType() == Type<@Flowty.FlowtyStorefront>(), message: "unexpected storefront type")\n\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("No Listing with that ID in FlowtyStorefront. Already funded or delisted.")\n        let details = self.listing.getDetails()\n\n        let nft = self.listing.borrowNFT() ?? panic("failed to borrow listing nft")\n        let nftType = nft.getType()\n\n        let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftType.identifier) ?? panic("not found in catalog")\n        var catalogIdentifier = ""\n        for k in catalogIdentifiers.keys {\n            if catalogIdentifiers[k] == true {\n                catalogIdentifier = k\n                break\n            }\n        }\n\n        assert(catalogIdentifier != "", message: "no valid catalog identifier found")\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) ?? panic("catalog entry not found")\n\n        let publicCollectionPath = catalogEntry.collectionData.publicPath\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        if nftReceiverAddress == acct.address {\n            // ensure collection exists\n            if acct.storage.borrow<&{NonFungibleToken.Collection}>(from: storageCollectionPath) == nil {\n\n                // create a new Collection\n                let collection <- nft.createEmptyCollection()\n                // Put the new Collection in storage\n                acct.storage.save(<-collection, to: storageCollectionPath)\n            }\n\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath).check() {\n                acct.capabilities.unpublish(publicCollectionPath)\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                    at: publicCollectionPath\n                )\n            }\n\n            self.nftReceiver = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n            assert(manager.borrowAccount(addr: nftReceiverAddress) != nil, message: "No child account with that address")\n\n            self.nftReceiver = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n        }\n\n        assert(self.nftReceiver.borrow() != nil, message: "Missing or mis-typed NFT Collection")\n\n        let ftAddress = AddressUtils.parseAddress(details.paymentVaultType)!\n        let contractName = details.paymentVaultType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: details.paymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        if ftProviderAddress == acct.address {\n            let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n                ?? panic("Cannot borrow token vault from acct storage")\n            self.paymentVault <- vault.withdraw(amount: self.listing.getDetails().getTotalPayment())\n\n            self.tokenReceiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n            let child = manager.borrowAccount(addr: ftProviderAddress) ?? panic("no child account with that address")\n\n            let ftProviderCap = child.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>()) ?? panic("no ft provider found")\n            let tokenProvider = ftProviderCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n            assert(tokenProvider.check(), message: "invalid provider capability")\n\n            let ftProviderVault = tokenProvider.borrow() ?? panic("child account token vault could not be borrowed")\n            self.paymentVault <- ftProviderVault.withdraw(amount: self.listing.getDetails().getTotalPayment())\n            self.tokenReceiver = getAccount(ftProviderAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        }\n\n        assert(self.tokenReceiver.borrow() != nil, message: "Missing or mis-typed token receiver")\n    }\n\n    execute {\n        self.listing.fund(\n            payment: <-self.paymentVault,\n            lenderFungibleTokenReceiver: self.tokenReceiver,\n            lenderNFTCollection: self.nftReceiver\n        )\n    }\n}')},60721:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.LoanListing=void 0;const i=n(53918),o=n(15307),a=n(77706),s=n(19388),l=n(65094);t.LoanListing=class{constructor(e){r(this,"config",void 0),r(this,"createLoanListing",(async e=>{let{nftData:t,loanAmount:n,loanInterestRate:r,loanDuration:c,loanAutoRepaymentEnabled:u,loanExpiresAfterDays:d,token:p,ftPrivatePathIdentifier:h,nftProviderPathIdentifier:f,ftReceiverAddress:m,txAvailableCallback:g}=e;if(!t)throw new Error("Flow NFT it's null");const{id:v,type:y,nftOwner:b}=t,w=Number(c),x=(0,i.termNumberToSeconds)(w),C=(0,i.expirationDaysToSeconds)(d),A=await(0,i.getCatalogEntryForType)(y,this.config),E=(0,o.getLoanListingTransactionContent)(this.config,p,t);let _=s.arg(h,l.String),T=s.arg(f,l.String);this.config.crescendo&&(_=s.arg(h||"0",l.UInt64),T=s.arg(f||"0",l.UInt64));const S=[s.arg(v.toString(),l.UInt64),s.arg(n.toFixed(2),l.UFix64),s.arg(r.toFixed(6),l.UFix64),s.arg(x.toFixed(1),l.UFix64),s.arg(u,l.Bool),s.arg(C.toFixed(2),l.UFix64),_,T,s.arg(A||"",l.String),s.arg(b,l.Address),s.arg(m,l.Address)];this.config.crescendo&&S.push(s.arg(a.PaymentTokenToIdentifier[p.symbol],l.String)),console.log("txArguments",{txArguments:S,txContent:E});try{return await(0,i.sendMutation)(E,S,g)}catch(k){throw console.log("TX ERROR",k),(0,i.Err)("createStorefrontListing",k),k}})),r(this,"removeLoanListing",(async e=>{let{listingResourceID:t,txAvailableCallback:n}=e;const r=[s.arg(t.toString(),l.UInt64)],a=(0,o.getDelistLoanListingTransactionContent)(this.config);try{return await(0,i.sendMutation)(a,r,n)}catch(c){throw console.log("TX ERROR",c),c}})),this.config=e}}},15307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelistLoanListingTransactionContent=t.getLoanListingTransactionContent=void 0;t.getLoanListingTransactionContent=(e,t,i)=>e.crescendo?r(e):n(e,t,i);t.getDelistLoanListingTransactionContent=e=>e.crescendo?o(e):i(e);const n=(e,t,n)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport Flowty from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\ntransaction(\n    listItemID: UInt64,\n    amount: UFix64,\n    interestRate: UFix64,\n    term: UFix64,\n    autoRepaymentEnabled: Bool,\n    loanExpiresAfter: UFix64,\n    ftProviderControllerID: UInt64,\n    nftProviderControllerID: UInt64,\n    collectionIdentifier: String,\n    nftProviderAddress: Address,\n    ftReceiverAddress: Address,\n    paymentTokenIdentifier: String\n) {\n    let tokenReceiver: Capability<&{FungibleToken.Receiver}>\n    let nftProvider: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    let storefront: auth(Flowty.List) &Flowty.FlowtyStorefront\n    let nftReceiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let paymentVault: @{FungibleToken.Vault}\n    let tokenProvider: Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>?\n    let paymentTokenType: Type\n    let nftType: Type\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        self.paymentTokenType = CompositeType(paymentTokenIdentifier) ?? panic("invalid payment token type identifier")\n\n        if(acct.storage.borrow<&Flowty.FlowtyStorefront>(from: Flowty.FlowtyStorefrontStoragePath) == nil) {\n            // Create a new empty .Storefront\n            let storefront <- Flowty.createStorefront()\n\n            // save it to the account\n            acct.storage.save(<-storefront, to: Flowty.FlowtyStorefrontStoragePath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{Flowty.FlowtyStorefrontPublic}>(Flowty.FlowtyStorefrontStoragePath),\n                at: Flowty.FlowtyStorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n        self.nftType = catalogEntry.nftType\n\n        // We need a provider capability, but one is not provided by default so we create one if needed.\n        let publicCollectionPath = catalogEntry.collectionData.publicPath\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        let ftAddress = AddressUtils.parseAddress(self.paymentTokenType)!\n        let contractName = self.paymentTokenType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: self.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        // Do we need to setup this vault for the signing account?\n        if ftReceiverAddress == acct.address && acct.storage.type(at: ftVaultData.storagePath) == nil {\n            acct.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n            acct.capabilities.unpublish(ftVaultData.receiverPath)\n            acct.capabilities.unpublish(ftVaultData.metadataPath)\n\n            acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n            acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n        }\n\n        if autoRepaymentEnabled {\n            if ftReceiverAddress == acct.address {\n                let borrowType = Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>()\n                if let provider = cache.getCapabilityByType(resourceType: self.paymentTokenType, capabilityType: CapabilityType(borrowType)!) {\n                    self.tokenProvider = provider as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n                } else {\n                    self.tokenProvider = acct.capabilities.storage.issueWithType(ftVaultData.storagePath, type: borrowType) as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n                    cache.addCapability(resourceType: self.paymentTokenType, cap: self.tokenProvider!)\n                }\n            } else {\n                let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n                let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n                let ftProviderCap = child.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>()) ?? panic("no ft provider found")\n                self.tokenProvider = ftProviderCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>?\n            }\n\n            assert(self.tokenProvider!.check(), message: "Missing or mis-typed token provider")\n        } else {\n            self.tokenProvider = nil\n        }\n\n        if ftReceiverAddress == acct.address {\n            if acct.storage.borrow<&{FungibleToken.Vault}>(from: ftVaultData.storagePath) == nil {\n                acct.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath),\n                    at: ftVaultData.receiverPath\n                )\n\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{FungibleToken.Balance}>(ftVaultData.storagePath),\n                    at: ftVaultData.metadataPath\n                )\n            }\n\n            self.tokenReceiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)!\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.tokenReceiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)!\n        }\n\n        assert(self.tokenReceiver.check(), message: "Missing or mis-typed token receiver")\n\n        if nftProviderAddress == acct.address {\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath).check() {\n                acct.capabilities.unpublish(publicCollectionPath)\n\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                    at: publicCollectionPath\n                )\n            }\n\n            let borrowType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n            if let provider = cache.getCapabilityByType(resourceType: self.nftType, capabilityType: CapabilityType(borrowType)!) {\n                self.nftProvider = provider as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n            } else {\n                self.nftProvider = acct.capabilities.storage.issueWithType(catalogEntry.collectionData.storagePath, type: borrowType) as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n                cache.addCapability(resourceType: self.nftType, cap: self.nftProvider!)\n            }\n\n            self.nftReceiver = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftProviderAddress) ?? panic("no child account with that address")\n\n            let providerCap = child.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no nft provider found")\n            self.nftProvider = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n\n            let receiverCap = child.getPublicCapability(path: publicCollectionPath, type: Type<&{NonFungibleToken.CollectionPublic}>()) ?? panic("no nft collection public found")\n            self.nftReceiver = receiverCap as! Capability<&{NonFungibleToken.CollectionPublic}>\n        }\n\n        assert(self.nftProvider.check(), message: "Missing or mis-typed NFT Provider")\n        assert(self.nftReceiver.check(), message: "Missing or mis-typed NFT Receiver")\n\n        self.storefront = acct.storage.borrow<auth(Flowty.List) &Flowty.FlowtyStorefront>(from: Flowty.FlowtyStorefrontStoragePath)\n            ?? panic("Missing or mis-typed Flowty FlowtyStorefront")\n\n        let tokenVault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Vault}>(from: ftVaultData.storagePath)\n            ?? panic("Cannot borrow token vault from acct storage")\n\n        self.paymentVault <- tokenVault.withdraw(amount: Flowty.ListingFee)\n    }\n\n    execute {\n        let paymentCut = Flowty.PaymentCut(\n            receiver: self.tokenReceiver,\n            amount: amount\n        )\n        self.storefront.createListing(\n            payment: <-self.paymentVault,\n            nftProviderCapability: self.nftProvider,\n            nftPublicCollectionCapability: self.nftReceiver,\n            fusdProviderCapability: self.tokenProvider,\n            nftType: self.nftType,\n            nftID: listItemID,\n            amount: amount,\n            interestRate: interestRate,\n            term: term,\n            paymentVaultType: self.paymentTokenType,\n            paymentCuts: [paymentCut],\n            expiresAfter: loanExpiresAfter\n        )\n    }\n}'),i=e=>"",o=e=>"import Flowty from ".concat(e.contractAddresses.Flowty,'\n\ntransaction(listingResourceID: UInt64) {\n\tlet storefront: auth(Flowty.Cancel) &Flowty.FlowtyStorefront\n\n\tprepare(acct: auth(Storage) &Account) {\n\t\tself.storefront = acct.storage.borrow<auth(Flowty.Cancel) &Flowty.FlowtyStorefront>(from: Flowty.FlowtyStorefrontStoragePath)\n\t\t\t?? panic("Missing or mis-typed Flowty.FlowtyStorefront")\n\t}\n\n\texecute {\n\t\tself.storefront.removeListing(listingResourceID: listingResourceID)\n\t}\n}')},38101:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.RepayLoanService=void 0;const i=n(44585),o=n(53918),a=n(19388),s=n(65094);t.RepayLoanService=class{constructor(e){r(this,"config",void 0),r(this,"repayLoan",(async e=>{let{fundItemID:t,address:n,token:r,ftPrivatePathIdentifier:l,ftProviderAddress:c,txAvailableCallback:u}=e;const d=(0,i.getRepayLoanTxn)(this.config,r),p=this.config.crescendo?a.arg(l||"0",s.UInt64):a.arg(l,s.String),h=[a.arg(t.toString(),s.UInt64),a.arg(n,s.Address),a.arg(c,s.Address),p];try{return await(0,o.sendMutation)(d,h,u)}catch(f){throw console.log("TX ERROR",f),f}})),this.config=e}}},44585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRepayLoanTxn=void 0;t.getRepayLoanTxn=(e,t)=>e.crescendo?r(e):n(e,t);const n=(e,t)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport Flowty from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\ntransaction(fundingResourceID: UInt64, flowtyMarketplaceAddress: Address, ftProviderAddress: Address, ftProviderControllerID: UInt64) {\n    let paymentVault: @{FungibleToken.Vault}\n    let marketplace: &{Flowty.FlowtyMarketplacePublic}\n    let funding: &{Flowty.FundingPublic}\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        self.marketplace = Flowty.borrowMarketplacePublic()\n\n        self.funding = self.marketplace.borrowFunding(fundingResourceID: fundingResourceID)\n            ?? panic("No Funding with that ID in FlowtyMarketplace")\n\n        let details = self.funding.getDetails()\n        \n        let ftAddress = AddressUtils.parseAddress(details.paymentVaultType)!\n        let contractName = details.paymentVaultType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: details.paymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        let repaymentAmount = self.funding.getDetails().repaymentAmount\n\n        if ftProviderAddress == acct.address{\n            let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Vault}>(from: ftVaultData.storagePath)\n                ?? panic("Cannot borrow vault from acct storage")\n            self.paymentVault <- vault.withdraw(amount: repaymentAmount)\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: ftProviderAddress) ?? panic("ftProvider account not found")\n\n            let providerCap = childAcct.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>()) ?? panic("no cap found")\n            let ftProvider = providerCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n            let ftProviderVault = ftProvider.borrow() ?? panic("no vault found")\n\n            self.paymentVault <- ftProviderVault.withdraw(amount: repaymentAmount)\n        }\n    }\n\n    execute {\n        self.funding.repay(payment: <-self.paymentVault)\n    }\n\n    post {\n        self.funding.getDetails().repaid == true: "loan is not repaid"\n    }\n}')},89510:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.LostAndFound=void 0;const i=n(53918),o=n(68924),a=n(41158),s=n(19388),l=n(65094);t.LostAndFound=class{constructor(e){r(this,"config",void 0),r(this,"redeemLostAndFound",(async e=>{let{catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,ticketID:o,txAvailableCallback:c}=e;const u=[s.arg(r,l.Address),s.arg(o.toString(),l.UInt64),s.arg(t,l.String),s.arg(n,l.String)],d=(0,a.redeemItemTx)(this.config);try{return await(0,i.sendMutation)(d,u,c)}catch(p){throw console.log("TX ERROR",p),(0,i.Err)("redeem LostAndFound Error",p),p}})),r(this,"redeemAllTicketsLostAndFound",(async e=>{let{catalogIdentifier:t,nftTypeIdentifier:n,receiverAddress:r,txAvailableCallback:a}=e;const c=[s.arg(r,l.Address),s.arg(t,l.String),s.arg(n,l.String)],u=(0,o.redemAllItemsTx)(this.config);try{return await(0,i.sendMutation)(u,c,a)}catch(d){throw console.log("TX ERROR",d),(0,i.Err)("redeem LostAndFound Error",d),d}})),this.config=e}}},86728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLostAndFoundTicketsScript=void 0;t.getLostAndFoundTicketsScript=e=>"\nimport LostAndFound from ".concat(e.contractAddresses.LostAndFound,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,'\n        \naccess(all) struct Ticket {\n    // An optional message to attach to this item.\n    access(all) let memo: String?\n    // The address that it allowed to withdraw the item from this ticket\n    access(all) let redeemer: Address\n    //The type of the resource (non-optional) so that bins can represent the true type of an item\n    access(all) let type: Type\n    access(all) let typeIdentifier: String\n    // State maintained by LostAndFound\n    access(all) let redeemed: Bool\n    access(all) let nftID: UInt64?\n    access(all) let name : String?\n    access(all) let description : String?\n    access(all) let thumbnail : String?\n    access(all) let ticketID : UInt64?\n    access(all) let catalogIdentifier: String?\n    init(_ ticket: &LostAndFound.Ticket, catalogIdentifier: String?) {\n        self.memo = ticket.memo \n        self.redeemer = ticket.redeemer \n        self.type = ticket.type \n        self.typeIdentifier = ticket.type.identifier\n        self.redeemed = ticket.redeemed \n        self.nftID = ticket.getNonFungibleTokenID()\n        self.name = ticket.display?.name\n        self.description = ticket.display?.description\n        self.thumbnail = ticket.display?.thumbnail?.uri()\n        self.ticketID = ticket.uuid\n        self.catalogIdentifier = catalogIdentifier\n    }\n}\n\naccess(all) fun main(addr: Address): [Ticket] {\n    let tickets: [Ticket] = []\n    for ticket in LostAndFound.borrowAllTickets(addr: addr) {\n        log(ticket.type.identifier)\n        let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: ticket.type.identifier)\n        var catalogIdentifier = ""\n        if (catalogIdentifiers == nil) {\n            continue\n        } else {\n            for k in catalogIdentifiers!.keys {\n                if catalogIdentifiers![k] == true {\n                    catalogIdentifier = k\n                    break\n                }\n            }\n        }\n        tickets.append(Ticket(ticket, catalogIdentifier: catalogIdentifier))\n    }\n    \n    return tickets\n}')},68924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redemAllItemsTx=void 0;t.redemAllItemsTx=e=>"\nimport NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport LostAndFound from ").concat(e.contractAddresses.LostAndFound,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport StringUtils from ").concat(e.contractAddresses.StringUtils,'\n\ntransaction (receiverAddress: Address, collectionIdentifier: String, nftTypeIdentifier: String) {\n    let receiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let redeemer: Address\n    let catalogEntry: NFTCatalog.NFTCatalogMetadata\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        self.catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n        let publicCollectionPath = self.catalogEntry.collectionData.publicPath\n        let storageCollectionPath = self.catalogEntry.collectionData.storagePath\n        self.redeemer = acct.address\n        let contractAddress = AddressUtils.parseAddress(self.catalogEntry.nftType)!\n        let segments = StringUtils.split(self.catalogEntry.nftType.identifier, ".")\n        let contractName = segments[2]\n        let nftContract = getAccount(contractAddress).contracts.borrow<&{NonFungibleToken}>(name: contractName)\n            ?? panic("Contract is not of type NonFungibleToken")\n        let nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nftTypeIdentifier")\n\n        if acct.storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: storageCollectionPath) == nil {\n            let collection: @{NonFungibleToken.Collection} <- nftContract.createEmptyCollection(nftType: nftType)\n            // save it to the account\n            acct.storage.save(<-collection, to: storageCollectionPath)\n\n            // create a public capability for the collection\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                at: publicCollectionPath\n            )\n        }\n\n        self.receiver = getAccount(receiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)\n        assert(self.receiver.check(), message: "receiver not configured correctly!")\n    }\n    execute {\n        LostAndFound.redeemAll(type: self.catalogEntry.nftType, max: nil, receiver: self.receiver)\n    }\n}')},41158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redeemItemTx=void 0;t.redeemItemTx=e=>"\nimport NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport LostAndFound from ").concat(e.contractAddresses.LostAndFound,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport StringUtils from ").concat(e.contractAddresses.StringUtils,'\n\ntransaction (receiverAddress: Address, ticketID: UInt64, collectionIdentifier: String, nftTypeIdentifier: String) {\n    let receiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let redeemer: Address\n    let catalogEntry: NFTCatalog.NFTCatalogMetadata\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        self.catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n        let publicCollectionPath = self.catalogEntry.collectionData.publicPath\n        let storageCollectionPath = self.catalogEntry.collectionData.storagePath\n        self.redeemer = acct.address\n        let contractAddress = AddressUtils.parseAddress(self.catalogEntry.nftType)!\n        let segments = StringUtils.split(self.catalogEntry.nftType.identifier, ".")\n        let contractName = segments[2] // A.1234.TopShot.NFT (TopShot == contractName)\n        let nftContract = getAccount(contractAddress).contracts.borrow<&{NonFungibleToken}>(name: contractName)\n            ?? panic("Contract is not of type NonFungibleToken")\n        let nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nftTypeIdentifier")\n\n        if acct.storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: storageCollectionPath) == nil {\n            let collection: @{NonFungibleToken.Collection} <- nftContract.createEmptyCollection(nftType: nftType)\n            // save it to the account\n            acct.storage.save(<-collection, to: storageCollectionPath)\n\n            // create a public capability for the collection\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                at: publicCollectionPath\n            )\n        }\n\n        self.receiver = getAccount(receiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)\n        assert(self.receiver.check(), message: "receiver not configured correctly!")\n    }\n    execute {\n        let manager = LostAndFound.borrowShelfManager()\n        let shelf = manager.borrowShelf(redeemer: self.receiver.address)!\n        assert(shelf != nil, message: "shelf not found")\n        shelf.redeem(type: self.catalogEntry.nftType, ticketID: ticketID, receiver: self.receiver)\n    }\n}')},48658:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FundRentalListing=void 0;const i=n(53918),o=n(40664),a=n(19388),s=n(65094);t.FundRentalListing=class{constructor(e){r(this,"config",void 0),r(this,"fundRentalListing",(async e=>{let{listingData:t,token:n,nftData:r,enabledAutoReturn:l,nftReceiverAddress:c,ftPrivatePathIdentifier:u,ftProviderAddress:d,nftProviderPathIdentifier:p,txAvailableCallback:h}=e;const{listingResourceID:f,flowtyStorefrontAddress:m}=t,g=this.config.crescendo?a.arg(u||"0",s.UInt64):a.arg(u,s.String),v=this.config.crescendo?a.arg(p||"0",s.UInt64):a.arg(p,s.String),y=[a.arg(f.toString(),s.UInt64),a.arg(m,s.Address),a.arg(l,s.Bool),a.arg(c,s.Address),a.arg(d,s.Address),g,v],b=(0,o.getFillRentalTxn)(this.config,n,r);try{return await(0,i.sendMutation)(b,y,h)}catch(w){throw console.log("TX ERROR",w),(0,i.Err)("createStorefrontListing",w),w}})),this.config=e}}},40664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFillRentalTxn=void 0;t.getFillRentalTxn=(e,t,i)=>e.crescendo?r(e):n(e,t,i);const n=(e,t,n)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport FlowtyRentals from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\ntransaction(\n    listingResourceID: UInt64,\n    flowtyStorefrontAddress: Address,\n    autoReturn: Bool,\n    nftReceiverAddress: Address,\n    ftProviderAddress: Address,\n    ftProviderControllerID: UInt64,\n    nftProviderControllerID: UInt64,\n) {\n    let paymentVault: @{FungibleToken.Vault}\n    let storefront: &{FlowtyRentals.FlowtyRentalsStorefrontPublic}\n    let listing: &{FlowtyRentals.ListingPublic}\n\n    let tokenReceiver: Capability<&{FungibleToken.Receiver}>\n    let nftReceiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let provider: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.CollectionPublic, NonFungibleToken.Provider}>?\n    let ftProvider: auth(FungibleToken.Withdraw) &{FungibleToken.Provider}\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        if(acct.storage.borrow<&FlowtyRentals.FlowtyRentalsStorefront>(from: FlowtyRentals.FlowtyRentalsStorefrontStoragePath) == nil) {\n            // Create a new empty .Storefront\n            let storefront <- FlowtyRentals.createStorefront()\n\n            // save it to the account\n            acct.storage.save(<-storefront, to: FlowtyRentals.FlowtyRentalsStorefrontStoragePath)\n\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{FlowtyRentals.FlowtyRentalsStorefrontPublic}>(FlowtyRentals.FlowtyRentalsStorefrontStoragePath),\n                at: FlowtyRentals.FlowtyRentalsStorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        self.storefront = getAccount(flowtyStorefrontAddress).capabilities.get<&{FlowtyRentals.FlowtyRentalsStorefrontPublic}>(FlowtyRentals.FlowtyRentalsStorefrontPublicPath)!.borrow()\n            ?? panic("Could not borrow FlowtyRentalsStorefront from provided address")\n\n        assert(self.storefront.getType() == Type<@FlowtyRentals.FlowtyRentalsStorefront>(), message: "unexpected storefront type")\n\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("No Listing with that ID in FlowtyRentalsStorefront. Already rented or delisted.")\n        let listingDetails = self.listing.getDetails()\n        let price = listingDetails.amount\n\n        let nft = self.listing.borrowNFT() ?? panic("nft not found")\n        let nftType = nft.getType()\n\n        let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftType.identifier) ?? panic("not found in catalog")\n        var catalogIdentifier = ""\n        for k in catalogIdentifiers.keys {\n            if catalogIdentifiers[k] == true {\n                catalogIdentifier = k\n                break\n            }\n        }\n        assert(catalogIdentifier != "", message: "no valid catalog identifier found")\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) ?? panic("catalog entry not found")\n        let publicCollectionPath = catalogEntry.collectionData.publicPath\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        let ftAddress = AddressUtils.parseAddress(listingDetails.paymentVaultType)!\n        let contractName = listingDetails.paymentVaultType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n        let ftVaultData = ftContract.resolveContractView(resourceType: listingDetails.paymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        if ftProviderAddress == acct.address {\n            self.ftProvider = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n                ?? panic("failed to borrow payment token vault from storage")\n            self.tokenReceiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            // signer is the parent account and ftProvider is child Account\n            // get the manager resource and borrow proxyAccount\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: ftProviderAddress) ?? panic("ftProvider account not found")\n\n            let cap = childAcct.getCapability(controllerID: ftProviderControllerID, type: Type<&{FungibleToken.Provider}>()) ?? panic("no cap found")\n\n            let providerCap = cap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n            self.ftProvider = providerCap.borrow() ?? panic("failed to borrow fungible token provider from child acount")\n            self.tokenReceiver = getAccount(ftProviderAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        }\n\n        assert(self.tokenReceiver.check(), message: "Missing or mis-typed token receiver")\n\n        let paymentAmount = self.listing.getDetails().getTotalPayment()\n        self.paymentVault <- self.ftProvider.withdraw(amount: paymentAmount)\n\n        if nftReceiverAddress == acct.address {\n            if acct.storage.borrow<&{NonFungibleToken.Collection}>(from: storageCollectionPath) == nil {\n                let collection <- nft.createEmptyCollection()\n                acct.storage.save(<-collection, to: storageCollectionPath)\n            }\n\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath).check() {\n                acct.capabilities.unpublish(publicCollectionPath)\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                    at: publicCollectionPath\n                )\n            }\n\n            self.nftReceiver = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n\n            if autoReturn {\n                let borrowType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n                if let provider = cache.getCapabilityByType(resourceType: catalogEntry.nftType, capabilityType: CapabilityType(borrowType)!) {\n                    self.provider = provider as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n                } else {\n                    self.provider = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath)\n                    cache.addCapability(resourceType: catalogEntry.nftType, cap: self.provider!)\n                }\n            } else {\n                self.provider = nil\n            }\n        } else {\n            self.nftReceiver = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n\n            if autoReturn {\n                // Get child nft provider for auto return, if path doesn\'t exist we can\'t create it\n                let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n                let childAcct = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nftReceiver account not found")\n                let providerCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no nft provider found")\n\n                self.provider = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n            } else {\n                self.provider = nil\n            }\n        }\n        assert(self.nftReceiver.check(), message: "Missing or mis-typed NFT Collection")\n        assert(self.provider == nil || self.provider!.check(), message: "Missing or mis-typed NFT provider")\n  }\n\n    execute {\n        self.listing.rent(\n            payment: <-self.paymentVault,\n            renterFungibleTokenReceiver: self.tokenReceiver,\n            renterNFTCollection: self.nftReceiver,\n            renterNFTProvider: self.provider\n        )\n    }\n}')},3799:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.RentListing=void 0;const i=n(53918),o=n(86645),a=n(77706),s=n(19388),l=n(65094);t.RentListing=class{constructor(e){r(this,"config",void 0),r(this,"createRentListing",(async e=>{let{nftData:t,rentalFee:n,rentalDeposit:r,rentalTerm:c,token:u,renterAddress:d,rentalExpiresAfterDays:p,nftProviderPathIdentifier:h,ftReceiverAddress:f,txAvailableCallback:m}=e;if(!t)throw new Error("Flow NFT it's null");const{id:g,type:v,nftOwner:y}=t,b=(0,o.getCreateRentalListingTxn)(this.config,u,t),w=Number(c),x=(0,i.termNumberToSeconds)(w),C=(0,i.expirationDaysToSeconds)(p),A=await(0,i.getCatalogEntryForType)(v,this.config),E=this.config.crescendo?s.arg(h||"0",l.UInt64):s.arg(h,l.String),_=[s.arg(g.toString(),l.UInt64),s.arg(n.toFixed(2),l.UFix64),s.arg(r.toFixed(2),l.UFix64),s.arg(x.toFixed(1),l.UFix64),s.arg(C.toFixed(2),l.UFix64),s.arg(""===d?null:d,l.Optional(l.Address)),s.arg(y,l.Address),E,s.arg(A,l.String),s.arg(f,l.Address)];this.config.crescendo&&_.push(s.arg(a.PaymentTokenToIdentifier[u.symbol],l.String));try{return await(0,i.sendMutation)(b,_,m)}catch(T){throw console.log("TX ERROR",T),(0,i.Err)("createStorefrontListing",T),T}})),r(this,"removeRentListing",(async e=>{let{listingResourceID:t,txAvailableCallback:n}=e;const r=[s.arg(t.toString(),l.UInt64)],a=(0,o.getDelistRentalListingTxn)(this.config);try{return await(0,i.sendMutation)(a,r,n)}catch(c){throw console.log("TX ERROR",c),c}})),this.config=e}}},86645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelistRentalListingTxn=t.getCreateRentalListingTxn=void 0;t.getCreateRentalListingTxn=(e,t,i)=>e.crescendo?r(e):n(e,t,i);t.getDelistRentalListingTxn=e=>e.crescendo?o(e):i(e);const n=(e,t,n)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport FlowtyRentals from ").concat(e.contractAddresses.Flowty,"\nimport Flowty from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\ntransaction(\n    listItemID: UInt64,\n    amount: UFix64,\n    deposit: UFix64,\n    term: UFix64,\n    expiresAfter: UFix64,\n    renter: Address?,\n    nftProviderAddress: Address,\n    nftProviderControllerID: UInt64,\n    collectionIdentifier: String,\n    ftReceiverAddress: Address,\n    paymentTokenIdentifier: String\n) {\n    let receiver: Capability<&{FungibleToken.Receiver}>\n    let nftProvider: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    let storefront: auth(FlowtyRentals.List) &FlowtyRentals.FlowtyRentalsStorefront\n    let nftReceiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let paymentTokenType: Type\n    let nftType: Type\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier)\n            ?? panic("Provided collection is not in the NFT Catalog.")\n        self.paymentTokenType = CompositeType(paymentTokenIdentifier) ?? panic("invalid payment token type")\n        self.nftType = catalogEntry.nftType\n\n        let publicCollectionPath = catalogEntry.collectionData.publicPath\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        if(acct.storage.borrow<&FlowtyRentals.FlowtyRentalsStorefront>(from: FlowtyRentals.FlowtyRentalsStorefrontStoragePath) == nil) {\n            let storefront <- FlowtyRentals.createStorefront()\n\n            acct.storage.save(<-storefront, to: FlowtyRentals.FlowtyRentalsStorefrontStoragePath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{FlowtyRentals.FlowtyRentalsStorefrontPublic}>(FlowtyRentals.FlowtyRentalsStorefrontStoragePath),\n                at: FlowtyRentals.FlowtyRentalsStorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        let ftAddress = AddressUtils.parseAddress(self.paymentTokenType)!\n        let contractName = self.paymentTokenType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: self.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        if ftReceiverAddress == acct.address {\n            \n            if acct.storage.borrow<&{FungibleToken.Vault}>(from: ftVaultData.storagePath) == nil {\n                acct.storage.save(<-ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n\n                acct.capabilities.unpublish(ftVaultData.receiverPath)\n                acct.capabilities.unpublish(ftVaultData.metadataPath)\n\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath),\n                    at: ftVaultData.receiverPath\n                )\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath),\n                    at: ftVaultData.metadataPath\n                )\n            }\n\n            self.receiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.receiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        }\n\n        assert(self.receiver.check(), message: "Missing or mis-typed receiver")\n\n        if nftProviderAddress == acct.address {\n            let borrowType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n            if let provider = cache.getCapabilityByType(resourceType: catalogEntry.nftType, capabilityType: CapabilityType(borrowType)!) {\n                self.nftProvider = provider as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n            } else {\n                self.nftProvider = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath)\n                cache.addCapability(resourceType: catalogEntry.nftType, cap: self.nftProvider)\n            }\n\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath).check() {\n                acct.capabilities.unpublish(publicCollectionPath)\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(storageCollectionPath),\n                    at: publicCollectionPath\n                )\n            }\n\n            self.nftReceiver = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicCollectionPath)!\n        } else {           \n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftProviderAddress) ?? panic("no child account with that address")\n            let providerCap = child.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no nft provider found")\n            \n            self.nftProvider = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n            let item = self.nftProvider.borrow() ?? panic("nft provider could not be borrowed")\n\n            let receiverCap = child.getPublicCapability(path: publicCollectionPath, type: Type<&{NonFungibleToken.CollectionPublic}>()) ?? panic("no nft collection public found")\n            self.nftReceiver = receiverCap as! Capability<&{NonFungibleToken.CollectionPublic}>\n        }\n\n        assert(self.nftProvider.check(), message: "Missing or mis-typed NFT Provider")\n        assert(self.nftReceiver.check(), message: "Missing or mis-typed NFT Receiver")\n\n        self.storefront = acct.storage.borrow<auth(FlowtyRentals.List) &FlowtyRentals.FlowtyRentalsStorefront>(from: FlowtyRentals.FlowtyRentalsStorefrontStoragePath)\n            ?? panic("Missing or mis-typed FlowtyRentals.FlowtyRentalsStorefront")\n    }\n\n    execute {\n        let paymentCut = Flowty.PaymentCut(\n            receiver: self.receiver,\n            amount: amount\n        )\n\n        self.storefront.createListing(\n            nftProviderCapability: self.nftProvider,\n            nftPublicCollectionCapability: self.nftReceiver,\n            ownerFungibleTokenReceiver: self.receiver,\n            nftType: self.nftType,\n            nftID: listItemID,\n            amount: amount,\n            deposit: deposit,\n            term: term,\n            paymentVaultType: self.paymentTokenType,\n            paymentCut: paymentCut,\n            expiresAfter: expiresAfter,\n            renter: renter\n        )\n    }\n}'),i=e=>"",o=e=>"import FlowtyRentals from ".concat(e.contractAddresses.Flowty,'\n\ntransaction(listingResourceID: UInt64) {\n\tlet storefront: auth(FlowtyRentals.Cancel) &{FlowtyRentals.FlowtyRentalsStorefrontManager}\n\n\tprepare(acct: auth(Storage) &Account) {\n\t\tself.storefront = acct.storage.borrow<auth(FlowtyRentals.Cancel) &{FlowtyRentals.FlowtyRentalsStorefrontManager}>(from: FlowtyRentals.FlowtyRentalsStorefrontStoragePath)\n\t\t\t?? panic("Missing or mis-typed FlowtyRentals.FlowtyRentalsStorefront")\n\t}\n\n\texecute {\n\t\tself.storefront.removeListing(listingResourceID: listingResourceID)\n\t}\n}')},72986:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ReturnRental=void 0;const i=n(19388),o=n(65094),a=n(53918),s=n(86255);t.ReturnRental=class{constructor(e){r(this,"config",void 0),r(this,"returnRental",(async(e,t,n,r,l)=>{if(!e.nftData)throw new Error("Selected listing has no associated nft");if(!e.paymentTokenName)throw new Error("Invalid payment token");if(!e.rentalResourceID)throw new Error("Invalid rental resource ID");const c=(0,s.getReturnRentalTxn)(this.config,t,{contractAddress:e.nftData.collectionAddress,contractName:e.nftData.collectionName,id:e.nftID,nftOwner:"",type:e.nftType}),u=this.config.crescendo?i.arg(l||"0",o.UInt64):i.arg(l,o.String),d=[i.arg(e.rentalResourceID.toString(),o.UInt64),i.arg(this.config.contractAddresses.Flowty,o.Address),i.arg(r,o.Address),u];return(0,a.sendMutation)(c,d,n)})),this.config=e}}},86255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReturnRentalTxn=void 0;t.getReturnRentalTxn=(e,t,i)=>e.crescendo?r(e):n(e,t,i);const n=(e,t,n)=>"",r=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport FlowtyRentals from ").concat(e.contractAddresses.Flowty,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\ntransaction(\n    rentalResourceID: UInt64,\n    marketplaceAddr: Address,\n    nftProviderAddress: Address,\n    nftProviderControllerID: UInt64\n) {\n    let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}\n    let marketplace: &{FlowtyRentals.FlowtyRentalsMarketplacePublic}\n    let rental: &{FlowtyRentals.RentalPublic}\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        self.marketplace = getAccount(marketplaceAddr).capabilities.get<&{FlowtyRentals.FlowtyRentalsMarketplacePublic}>(FlowtyRentals.FlowtyRentalsMarketplacePublicPath)\n            .borrow() ?? panic("Could not find FlowtyRentals marketplace")\n\n        self.rental = self.marketplace.borrowRental(rentalResourceID: rentalResourceID) ?? panic("failed to find rental resource")\n\n        let rentalDetails = self.rental.getDetails()\n        let nftType = rentalDetails.nftType\n\n        let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftType.identifier) ?? panic("not found in catalog")\n        var catalogIdentifier = ""\n        for k in catalogIdentifiers.keys {\n            if catalogIdentifiers[k] == true {\n                catalogIdentifier = k\n                break\n            }\n        }\n\n        assert(catalogIdentifier != "", message: "no valid catalog identifier found")\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        if nftProviderAddress == acct.address {\n            self.nftProvider = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: storageCollectionPath)\n            ?? panic("failed to borrow provider from storage")\n        } else {\n            // signer is the parent account and nftProvider is child Account\n            // get the manager resource and borrow proxyAccount\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n\n            let cap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>()) ?? panic("no cap found")\n            let provider = cap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>\n            assert(provider.check(), message: "invalid provider capability")\n\n            self.nftProvider = provider.borrow() ?? panic("unable to borrow provider")\n        }\n    }\n\n  execute {\n    let nft <- self.nftProvider.withdraw(withdrawID: self.rental.getDetails().nftID)\n    self.rental.returnNFT(nft: <-nft)\n  }\n}')},22780:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptService=void 0;const i=n(10514),o=n(53918),a=n(6146),s=n(75105),l=n(4189),c=n(12239),u=n(71350),d=n(89073),p=n(43738),h=n(42222),f=n(56483),m=n(71374),g=n(8223),v=n(82172),y=n(25954),b=n(31888),w=n(30719),x=n(7399),C=n(90617),A=n(48209),E=n(86728),_=n(19388),T=n(65094);t.ScriptService=class{constructor(e){r(this,"config",void 0),r(this,"hasExposedProviders",(async e=>{const t=[_.arg(e,T.Address)];return await(0,o.executeScript)((0,v.hasExposedProviders)(this.config),t,"hasExposedProviders")})),r(this,"getRoyaltyRate",(async(e,t,n)=>{const r=[_.arg(e,T.Address),_.arg(t,T.UInt64),_.arg(n,T.String)];return await(0,o.executeScript)((0,m.getRoyaltyRate)(this.config),r,"getRoyaltyRate")})),r(this,"getFlowtyStorefrontFee",(async e=>await(0,o.executeScript)((0,d.getFlowtyStorefrontFeeScript)(this.config),[_.arg(e,T.String)],"getFlowtyStorefrontFee"))),r(this,"getStorefrontFees",(async(e,t,n,r,i)=>{const a=(0,C.getStorefrontFeesScript)(this.config),s=[_.arg(e,T.Address),_.arg(t,T.String),_.arg(n.toString(),T.UInt64),_.arg(r,T.String),_.arg(i.toFixed(7),T.UFix64)];return await(0,o.executeScript)(a,s,"getStorefrontFees")})),r(this,"getAccountWalletBalance",(async e=>{if(!e)return null;try{return{address:e,balances:await(0,o.executeScript)((0,g.getWalletBalanceScript)(this.config),[_.arg(e,T.Address)],"getBalanceScript")}||{}}catch(t){(0,o.Err)("Failed to get account wallet balance",t)}return null})),r(this,"validateUserOwnsNft",(async(e,t,n,r,i,a)=>{const s=(0,A.getValidateOwnershipScript)(this.config,n,r,i,a),l="A.".concat(r.slice(2),".").concat(n,".").concat(i);return(0,o.executeScript)(s,[_.arg(e,T.Address),_.arg(t.toString(),T.UInt64),_.arg(l,T.String)],"validateUserOwnsNft")})),r(this,"isCollectionSetup",(async(e,t,n,r,i)=>{const a=[_.arg(e,T.Address),_.arg(t,T.Address),_.arg(n,T.String)];return i&&!this.config.crescendo&&a.push(_.arg(r,T.Bool)),(0,o.executeScript)((0,w.getIsCollectionSetupScript)(this.config,i),a,"isCollectionSetupScript",1)})),r(this,"getHybridCustodyNFTProviderPathsForStorage",(async(e,t,n)=>{const r=(0,h.getHybridCustodyNFTProviderPathsForStorageScript)(this.config);console.log("getHybridCustodyNFTProviderPathsForStorage",{child:t,parent:e,script:r,storagePath:n});const i=[_.arg(e,T.Address),_.arg(t,T.Address),_.arg(n,T.String)],a=await(0,o.executeScript)(r,i,"getNFTProviderPathsForStorageScript",0);return a||null})),r(this,"getAddressesWithCollectionPublic",(async(e,t,n)=>{const r=[_.arg(e,T.Array(T.Address)),_.arg(t,T.Address),_.arg(n,T.String)];return(0,o.executeScript)((0,s.getAddressesWithCollectionPublicScript)(this.config),r,"checkCollectionPublicOnAddressesScript",2)})),r(this,"getHybridCustodyAccountSummaries",(async e=>{if(null===e||void 0===e||!e.startsWith("0x"))return{};const t=[_.arg(e,T.Address)],n=await(0,o.executeScript)((0,y.getHybridCustodyDescribeFTAccountScript)(this.config),t,"getHybridCustodyAccountSummaries",5);return n?Object.fromEntries(Object.entries(n).map((e=>{var t,n,r;let[o,a]=e;const s={description:(null===(t=a.display)||void 0===t?void 0:t.description)||"",name:null===(n=a.display)||void 0===n?void 0:n.name,thumbnail:(null===(r=a.display)||void 0===r?void 0:r.thumbnail)||(0,i.getDefaultImage)(o)};return[o,{...a,display:s}]}))):{}})),r(this,"getHybridCustodyFTProvidersScript",(async e=>{if(null===e||void 0===e||!e.startsWith("0x"))return null;const t=[_.arg(e,T.Address)];return(0,o.executeScript)((0,b.getHybridCustodyFTProvidersScript)(this.config),t,"getHybridCustodyFTProvidersScript",2)})),r(this,"getBalanceForAvailableProvidersScript",(async(e,t)=>{const n=[_.arg(e,T.Address),_.arg(t,T.Array(T.String))];return(0,o.executeScript)((0,l.getBalanceForAvailableProvidersScript)(this.config),n,"getBalanceForAvailableProvidersScript",2)})),r(this,"isDapperCollection",(async(e,t)=>{const n=[_.arg(e,T.Address),_.arg(t,T.String)];return(0,o.executeScript)((0,x.getIsDapperCollectionScript)(this.config),n,"isDapperCollectionScript",3)})),r(this,"getIdentifierFromCatalog",(async e=>{let t=e;return t.endsWith(".NFT")||(t="".concat(t,".NFT")),(0,o.executeScript)((0,c.getCatalogIdentifiersScript)(this.config),[_.arg(t,T.String)],"getCatalogIdentifiersScript")})),r(this,"getFlowtyWrappedIpfs",(async e=>{const t=[_.arg(e,T.Address)];return await(0,o.executeScript)((0,p.getFlowtyWrappedIpfsScript)(this.config),t,"getIpfsLinkScript",3)})),r(this,"getCatalogEntryForType",(async e=>{const t=await this.getIdentifierFromCatalog(e);if(!t)return null;let n="";const r=Object.keys(t);for(let i=0;i<r.length;i++){const e=r[i];if(t[e]){n=e;break}}return n})),r(this,"getChildAccounts",(async e=>{if(!e)return null;try{return await(0,o.executeScript)((0,u.getChildAccountsScript)(this.config),[_.arg(e,T.Address)],"getChildAccounts",3)||{}}catch(t){console.error("failed to get child accounts",t)}return null})),r(this,"getNftResourceIdentifiers",(async(e,t)=>{if(!this.config.crescendo)return["A.".concat(e.slice(2),".").concat(t,".NFT")];const n=[_.arg(e,T.Address),_.arg(t,T.String)],r=(0,f.getNftResourceTypesScript)(this.config);return(0,o.executeScript)(r,n,"getNftResourceTypes")})),r(this,"getAccountCollections",(async e=>{if(!this.config.crescendo)return null;const t=[_.arg(e,T.Address)],n=(0,a.getAccountCollections)(this.config);return(0,o.executeScript)(n,t,"getNftResourceTypes")})),r(this,"getLostAndFoundTickets",(async e=>{if(null===e||void 0===e||!e.startsWith("0x"))return[];const t=[_.arg(e,T.Address)],n=await(0,o.executeScript)((0,E.getLostAndFoundTicketsScript)(this.config),t,"getLostAndFoundTickets",5);return n||[]})),this.config=e}}},6146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountCollections=void 0;t.getAccountCollections=e=>"import ContractManager from ".concat(e.contractAddresses.ContractManager,"\nimport BaseCollection from ").concat(e.contractAddresses.BaseCollection,"\nimport NFTMetadata from ").concat(e.contractAddresses.NFTMetadata,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,'\n\naccess(all) struct AccountContract {\n    access(all) let address: Address\n    access(all) let contracts: [CollectionContract]\n\n    init(address: Address, contracts: [CollectionContract]) {\n        self.address = address\n        self.contracts = contracts\n    }\n}\n\naccess(all) struct CollectionContract {\n    access(all) var name: String\n    access(all) var collectionDisplay: MetadataViews.NFTCollectionDisplay\n\n    init(_ name: String, _ collectionDisplay: MetadataViews.NFTCollectionDisplay) {\n        self.name = name\n        self.collectionDisplay = collectionDisplay\n    }\n}\n\naccess(all) fun main(userAddress: Address): AccountContract {\n    let contractsData: [CollectionContract] = []\n\n    let userAccount = getAccount(userAddress)\n    let contractManagerCap = userAccount.capabilities.borrow<&ContractManager.Manager>(ContractManager.PublicPath)\n\n    if (contractManagerCap == nil) {\n        return AccountContract(address: userAddress, contracts: [])\n    }\n\n    let managerAccount: &Account = contractManagerCap!.getAccount()\n    let managerAddress = contractManagerCap!.getAccount().address\n    let contracts: &[String] = managerAccount.contracts.names\n\n\n    if contracts.length == 0 {\n        return AccountContract(address: userAddress, contracts: [])\n    }\n\n    for c in contracts {\n        let baseContract = managerAccount.contracts.borrow<&{BaseCollection}>(name: c) ?? panic("collection not found")\n        let identifier = baseContract.getType().identifier.concat(".NFT")\n        let metadataContainer = baseContract.MetadataCap.borrow()!\n\n        let collectionDisplay = baseContract.resolveContractView(resourceType: CompositeType(identifier)!, viewType: Type<MetadataViews.NFTCollectionDisplay>())! as! MetadataViews.NFTCollectionDisplay\n\n        contractsData.append(CollectionContract(c, collectionDisplay))\n    }\n    return AccountContract(address: managerAddress, contracts: contractsData)\n}')},75105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddressesWithCollectionPublicScript=void 0;t.getAddressesWithCollectionPublicScript=e=>e.crescendo?r(e):n(e);const n=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,"\n\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,'\n\npub fun main(addressesToCheck: [Address], contractAddress: Address, contractName: String): [Address] {\n  let pathOpt = getReceiverPath(contractAddress, contractName)\n  if pathOpt == nil {\n    return []\n  }\n\n  let pathToCheck = pathOpt!\n\n  let matches: [Address] = []\n  for a in addressesToCheck {\n    let acct = getAccount(a)\n    if acct.getCapability<&{NonFungibleToken.CollectionPublic}>(pathToCheck).check() {\n      matches.append(a)\n    }\n  }\n  return matches\n}\n\npub fun getReceiverPath(_ address: Address, _ name: String): PublicPath? {\n  // build the nft type identifier\n  let contractAddressStr = address.toString()\n  let identifier = "A.".concat(contractAddressStr.slice(from: 2, upTo: contractAddressStr.length)).concat(".").concat(name).concat(".NFT")\n\n  if let catalogEntries = NFTCatalog.getCollectionsForType(nftTypeIdentifier: identifier) {\n    var catalogIdentifier = ""\n    for k in catalogEntries.keys {\n      if catalogEntries[k] == true {\n        catalogIdentifier = k\n        break\n      }\n    }\n\n    if let entry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) {\n      return entry.collectionData.publicPath\n    }\n  }\n\n  let c = getAccount(address).contracts.borrow<&ViewResolver>(name: name)\n\n  if c == nil {\n    return nil\n  }\n\n  let md = c!.resolveView(Type<MetadataViews.NFTCollectionData>())\n  if md == nil {\n    return nil\n  }\n\n  let collectionData = md! as! MetadataViews.NFTCollectionData\n  return collectionData.publicPath\n}'),r=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,"\n\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,'\n\naccess(all) fun main(addressesToCheck: [Address], contractAddress: Address, contractName: String): [Address] {\n  let pathOpt = getReceiverPath(contractAddress, contractName)\n  if pathOpt == nil {\n    return []\n  }\n\n  let pathToCheck = pathOpt!\n\n  let matches: [Address] = []\n  for a in addressesToCheck {\n    let acct = getAccount(a)\n    if acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(pathToCheck).check() {\n      matches.append(a)\n    }\n  }\n  return matches\n}\n\naccess(all) fun getReceiverPath(_ address: Address, _ name: String): PublicPath? {\n  // build the nft type identifier\n  let contractAddressStr = address.toString()\n  let identifier = "A.".concat(contractAddressStr.slice(from: 2, upTo: contractAddressStr.length)).concat(".").concat(name).concat(".NFT")\n  let nftType = CompositeType(identifier) ?? panic("invalid identifier: ".concat(identifier))\n\n  if let catalogEntries = NFTCatalog.getCollectionsForType(nftTypeIdentifier: identifier) {\n    var catalogIdentifier = ""\n    for k in catalogEntries.keys {\n      if catalogEntries[k] == true {\n        catalogIdentifier = k\n        break\n      }\n    }\n\n    if let entry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) {\n      return entry.collectionData.publicPath\n    }\n  }\n\n  let c = getAccount(address).contracts.borrow<&{ViewResolver}>(name: name)\n\n  if c == nil {\n    return nil\n  }\n\n  let md = c!.resolveContractView(resourceType: nftType, viewType: Type<MetadataViews.NFTCollectionData>())\n  if md == nil {\n    return nil\n  }\n\n  let collectionData = md! as! MetadataViews.NFTCollectionData\n  return collectionData.publicPath\n}')},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalanceForAvailableProvidersScript=void 0;t.getBalanceForAvailableProvidersScript=e=>e.crescendo?n(e):r(e);const n=e=>"import FlowtyUtils from ".concat(e.contractAddresses.NFTStorefrontV2,"\n\naccess(all) fun main(address: Address, identifiers: [String]):  {String: UFix64}{\n  let allowedTokens = FlowtyUtils.getSupportedTokens()\n  let cache: {Type: Bool} = {}\n  for a in allowedTokens {\n    cache[a] = true\n  }\n\n  let foundTypes: {String: UFix64} = {}\n\n  for id in identifiers {\n    let composite: Type = CompositeType(id)!\n    if cache[composite] == nil {\n      continue\n    }\n\n    let balance = FlowtyUtils.getTokenBalance(address: address, vaultType: composite)\n    foundTypes[id] = balance\n  }\n\n  return foundTypes\n}"),r=e=>"import FlowtyUtils from ".concat(e.contractAddresses.NFTStorefrontV2,"\n\npub fun main(address: Address, identifiers: [String]):  {String: UFix64}{\n  let allowedTokens = FlowtyUtils.getSupportedTokens()\n  let cache: {Type: Bool} = {}\n  for a in allowedTokens {\n    cache[a] = true\n  }\n\n  let foundTypes: {String: UFix64} = {}\n  \n  for id in identifiers {\n    let composite: Type = CompositeType(id)!\n    if cache[composite] == nil {\n      continue\n    }\n\n    let balance = FlowtyUtils.getTokenBalance(address: address, vaultType: composite)\n    foundTypes[id] = balance\n  }\n  \n  return foundTypes\n}")},12239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCatalogIdentifiersScript=void 0;t.getCatalogIdentifiersScript=e=>"\nimport NFTCatalog from ".concat(e.contractAddresses.NFTCatalog,"\n\n// Get the NFTCatalog collection identifier for a supplied nftType identifier\naccess(all) fun main(nftTypeIdentifier: String):AnyStruct? {\n  let collections = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier)\n  return collections\n}")},71350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildAccountsScript=void 0;t.getChildAccountsScript=e=>e.crescendo?n(e):r(e);const n=e=>"import HybridCustody from ".concat(e.contractAddresses.HybridCustody,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,'\n\naccess(all) struct Display {\n    access(all) let name: String\n    access(all) let description: String\n    access(all) let thumbnail: String\n\n    init(_ d: MetadataViews.Display) {\n        self.name = d.name\n        self.description = d.description\n        self.thumbnail = d.thumbnail.uri()\n    }\n}\n\naccess(all) struct ChildAccount {\n    access(all) let address: Address\n    access(all) let display: Display?\n\n    init(_ a: Address, _ d: MetadataViews.Display?) {\n        self.address = a\n        self.display = d != nil ? Display(d!) : nil\n    }\n}\n\naccess(all) fun main(parent: Address): {Address: ChildAccount}? {\n    let acct = getAuthAccount<auth(Storage, Capabilities) &Account>(parent)\n    let m = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    if m == nil {\n        return nil\n    }\n    let manager = m!\n\n    let addresses = manager.getChildAddresses()\n\n    let accounts: {Address: ChildAccount} = {}\n\n    for a in addresses {\n        if let child = manager.borrowAccount(addr: a) {\n            var display: MetadataViews.Display? = nil\n            if let d = child.resolveView(Type<MetadataViews.Display>()) {\n                display = d as! MetadataViews.Display\n            } else {\n\t\t\t\t\t\t\t\tlet name = a.toString()\n\t\t\t\t\t\t\t\tdisplay = MetadataViews.Display(\n\t\t\t\t\t\t\t\t\t\tname: name,\n\t\t\t\t\t\t\t\t\t\tdescription: "",\n\t\t\t\t\t\t\t\t\t\tthumbnail: MetadataViews.HTTPFile(\n\t\t\t\t\t\t\t\t\t\t\turl: "https://api-ufj4afzoca-uc.a.run.app/6.x/thumbs/png?seed=".concat(name)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n            }\n            accounts[a] = ChildAccount(a, display)\n        }\n    }\n\n    return accounts.length > 0 ? accounts : nil\n}'),r=e=>"import HybridCustody from ".concat(e.contractAddresses.HybridCustody,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,'\n\npub struct Display {\n    pub let name: String\n    pub let description: String\n    pub let thumbnail: String\n\n    init(_ d: MetadataViews.Display) {\n        self.name = d.name\n        self.description = d.description\n        self.thumbnail = d.thumbnail.uri()\n    }\n}\n\npub struct ChildAccount {\n    pub let address: Address\n    pub let display: Display?\n\n    init(_ a: Address, _ d: MetadataViews.Display?) {\n        self.address = a\n        self.display = d != nil ? Display(d!) : nil\n    }\n}\n\npub fun main(parent: Address): {Address: ChildAccount}? {\n    let acct = getAuthAccount(parent)\n    let m = acct.borrow<&HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    if m == nil {\n        return nil\n    }\n    let manager = m!\n\n    let addresses = manager.getChildAddresses()\n\n    let accounts: {Address: ChildAccount} = {}\n\n    for a in addresses {\n        if let child = manager.borrowAccount(addr: a) {\n            var display: MetadataViews.Display? = nil\n            if let d = child.resolveView(Type<MetadataViews.Display>()) {\n                display = d as! MetadataViews.Display\n            } else {\n\t\t\t\t\t\t\t\tlet name = a.toString()\n\t\t\t\t\t\t\t\tdisplay = MetadataViews.Display(\n\t\t\t\t\t\t\t\t\t\tname: name,\n\t\t\t\t\t\t\t\t\t\tdescription: "",\n\t\t\t\t\t\t\t\t\t\tthumbnail: MetadataViews.HTTPFile(\n\t\t\t\t\t\t\t\t\t\t\turl: "https://api-ufj4afzoca-uc.a.run.app/6.x/thumbs/png?seed=".concat(name)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n            }\n            accounts[a] = ChildAccount(a, display)\n        }\n    }\n\n    return accounts.length > 0 ? accounts : nil\n}')},89073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFlowtyStorefrontFeeScript=void 0;t.getFlowtyStorefrontFeeScript=e=>(e=>"import NFTStorefrontV2 from ".concat(e.contractAddresses.NFTStorefrontV2,"\n\naccess(all) fun main(identifier: String): UFix64 {\n    let c = CompositeType(identifier)!\n    return NFTStorefrontV2.getFee(p: UFix64(1), t: c)\n}"))(e)},43738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFlowtyWrappedIpfsScript=void 0;t.getFlowtyWrappedIpfsScript=e=>e.crescendo?r(e):n(e);const n=e=>"\nimport FlowtyWrapped from ".concat(e.contractAddresses.FlowtyWrapped,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,'\n\npub fun main(addr: Address): AnyStruct {\n\t\tif(!getAccount(addr).getCapability<&{FlowtyWrapped.FlowtyWrappedCollectionPublic}>(FlowtyWrapped.CollectionPublicPath).check()) {\n\t\t\t\treturn false\n\t\t}\n\n\t\tlet cap = getAccount(addr).getCapability<&{FlowtyWrapped.FlowtyWrappedCollectionPublic}>(FlowtyWrapped.CollectionPublicPath).borrow() ?? panic("Could not borrow capability from public collection")\n\t\tif(cap.getIDs().length == 0) {\n\t\t\t\treturn false\n\t\t}\n\n\t\tlet id = cap.getIDs()[0]\n\t\tlet wrappedRef = cap.borrowFlowtyWrapped(id: id)!\n\t\tlet medias = wrappedRef.resolveView(Type<MetadataViews.Medias>())! as! MetadataViews.Medias\n\n\t\tlet ipfsMedia = medias.items[0]\n\t\treturn ipfsMedia.file.uri()\n}'),r=e=>"\nimport FlowtyWrapped from ".concat(e.contractAddresses.FlowtyWrapped,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,'\n\naccess(all) fun main(addr: Address): AnyStruct {\n    if(!getAccount(addr).capabilities.get<&{FlowtyWrapped.FlowtyWrappedCollectionPublic}>(FlowtyWrapped.CollectionPublicPath).check()) {\n        return false\n    }\n\n    let cap = getAccount(addr).capabilities.get<&{FlowtyWrapped.FlowtyWrappedCollectionPublic}>(FlowtyWrapped.CollectionPublicPath).borrow() ?? panic("Could not borrow capability from public collection")\n    if(cap.getIDs().length == 0) {\n        return false\n    }\n    let id = cap.getIDs()[0]\n    let wrappedRef = cap.borrowFlowtyWrapped(id: id)!\n    let medias = wrappedRef.resolveView(Type<MetadataViews.Medias>())! as! MetadataViews.Medias\n\n    let ipfsMedia = medias.items[0]\n    return ipfsMedia.file.uri()\n}')},42222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHybridCustodyNFTProviderPathsForStorageScript=void 0;t.getHybridCustodyNFTProviderPathsForStorageScript=e=>e.crescendo?r(e):n(e);const n=e=>"\nimport NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\npub fun main(parent: Address, child: Address, storagePath: String):AnyStruct {\n  let storagePath = StoragePath(identifier: storagePath) ?? panic("invalid storage path")\n  let storageStr = storagePath.toString()\n\n  let account = getAuthAccount(parent)\n  let manager = account.borrow<&HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    ?? panic("manager not found")\n  let childAcct = manager.borrowAccount(addr: child)\n    ?? panic("child account not found")\n\n  // loop through each private path, and check that it\n  // 1. targets our storage path\n  // 2. is the correct subtype\n\n  let paths: [PrivatePath] = []\n  let childAuthAcct = getAuthAccount(child)\n  childAuthAcct.forEachPrivate(fun (path: PrivatePath, type: Type): Bool {\n    if let s = childAuthAcct.getLinkTarget(path) {\n      if s.toString() != storageStr {\n        return true\n      }\n    } else {\n      return true\n    }\n\n    let cap = childAcct.getCapability(path: path, type: Type<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>())\n    if cap == nil {\n    \treturn true\n    }\n    let provider = cap! as! Capability<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    if !provider.check() {\n        return true\n    }\n    \n    paths.append(path)\n    return true\n  })\n\n  return paths\n}'),r=e=>"\nimport NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\naccess(all) fun main(parent: Address, child: Address, storagePath: String): [UInt64] {\n    let storagePath = StoragePath(identifier: storagePath) ?? panic("invalid storage path")\n    let storageStr = storagePath.toString()\n\n    let account = getAuthAccount<auth(Storage, Capabilities) &Account>(parent)\n    let manager = account.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager not found")\n    let childAcct = manager.borrowAccount(addr: child)\n        ?? panic("child account not found")\n\n    // loop through each private path, and check that it\n    // 1. targets our storage path\n    // 2. is the correct subtype\n\n    let capabilityIDs: [UInt64] = []\n    let childAuthAcct = getAuthAccount<auth(Storage, Capabilities) &Account>(child)\n\n    let targetType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n    childAuthAcct.capabilities.storage.forEachController(forPath: storagePath, fun(c: &StorageCapabilityController): Bool {\n        if c.borrowType.isRecovered {\n                return true\n        }\n\n        if !c.borrowType.isSubtype(of: targetType) {\n            return true\n        }\n\n        // is this capability accessible?\n        let cap = childAcct.getCapability(controllerID: c.capabilityID, type: targetType)\n        if cap == nil {\n            return true\n        }\n\n        capabilityIDs.append(c.capabilityID)\n        return false // do not loop again since we\'ve found a capability that matches what we\'re looking for\n    })\n\n    return capabilityIDs\n}')},56483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNftResourceTypesScript=void 0;t.getNftResourceTypesScript=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\n\naccess(all) fun main(addr: Address, name: String): [String] {\n\n    let acct = getAccount(addr)\n    let c = acct.contracts.get(name: name)\n    if c == nil {\n        return []\n    }\n\n    let types: [String] = []\n\n    let publicTypes = c!.publicTypes()\n    let nftResourceType = Type<@{NonFungibleToken.NFT}>()\n    for pt in publicTypes {\n        if pt.isSubtype(of: nftResourceType) {\n           types.append(pt.identifier)\n        }\n    }\n\n    return types\n}")},71374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRoyaltyRate=void 0;t.getRoyaltyRate=e=>e.crescendo?(e=>"import FlowtyUtils from ".concat(e.contractAddresses.FlowtyUtils,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,'\n\naccess(all) fun main(addr: Address, nftID: UInt64, path: String): UFix64 {\n  let p = StoragePath(identifier: path)!\n  let c = getAuthAccount<auth(Storage) &Account>(addr).storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: p) ?? panic("collection not found")\n  let nft = c.borrowNFT(nftID) ?? panic("nft not found")\n  return FlowtyUtils.getRoyaltyRate(nft)\n}'))(e):(e=>"import FlowtyUtils from ".concat(e.contractAddresses.FlowtyUtils,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,'\n\npub fun main(addr: Address, nftID: UInt64, path: String): UFix64 {\n  let p = StoragePath(identifier: path)!\n  let c = getAuthAccount(addr).borrow<&{NonFungibleToken.CollectionPublic}>(from: p) ?? panic("collection not found")\n  let nft = c.borrowNFT(id: nftID)\n  return FlowtyUtils.getRoyaltyRate(nft)\n}'))(e)},8223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWalletBalanceScript=void 0;t.getWalletBalanceScript=e=>"import FlowtyUtils from ".concat(e.contractAddresses.FlowtyUtils,"\n\naccess(all) fun main(address: Address): {String: UFix64} {\n    return FlowtyUtils.getAllBalances(address: address)\n}")},82172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasExposedProviders=void 0;t.hasExposedProviders=e=>e.crescendo?n(e):r(e);const n=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\n\naccess(all) fun main(addr: Address):Bool {\n  let acct = getAuthAccount<auth(Capabilities, Storage) &Account>(addr)\n\n  let impactedPaths: [PublicPath] = []\n  let nftProviderType = Type<Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>>()\n\tlet ftProviderType = Type<Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>>()\n\n  acct.storage.forEachPublic(fun (path: PublicPath, type: Type): Bool {\n    if type.isSubtype(of: nftProviderType) || type.isSubtype(of: ftProviderType) {\n      impactedPaths.append(path)\n    }\n    \n    return true\n  })\n\n  return impactedPaths.length > 0\n}"),r=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\n\npub fun main(addr: Address):Bool {\n  let acct = getAuthAccount(addr)\n\n  let impactedPaths: [PublicPath] = []\n  let nftProviderType = Type<Capability<&{NonFungibleToken.Provider}>>()\n\tlet ftProviderType = Type<Capability<&{FungibleToken.Provider}>>()\n\n  acct.forEachPublic(fun (path: PublicPath, type: Type): Bool {\n    if type.isSubtype(of: nftProviderType) || type.isSubtype(of: ftProviderType) {\n      impactedPaths.append(path)\n    }\n    \n    return true\n  })\n\n  return impactedPaths.length > 0\n}")},25954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHybridCustodyDescribeFTAccountScript=void 0;t.getHybridCustodyDescribeFTAccountScript=e=>e.crescendo?n(e):r(e);const n=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.NonFungibleToken,"\nimport FlowToken from ").concat(e.contractAddresses.FlowToken,"\nimport USDCFlow from ").concat(e.contractAddresses.USDCFlow,"\n\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\n\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FlowtyUtils from ").concat(e.contractAddresses.NFTStorefrontV2,'\n\naccess(all) fun main(parent: Address): {Address: AccountSummary} {\n  let summaries: {Address: AccountSummary} = {}\n  \n  let flowTokenType = Type<@FlowToken.Vault>()\n  let usdcTokenType = Type<@USDCFlow.Vault>()\n\n  // get parent summary. We don\'t have to do as much work on this one because it is the main account\n  // we can build all provider/receiver paths we need so those will always be available\n  var flowBalance = FlowtyUtils.getTokenBalance(address: parent, vaultType: flowTokenType)\n  var usdcBalance = FlowtyUtils.getTokenBalance(address: parent, vaultType: usdcTokenType)\n\n  summaries[parent] = AccountSummary(\n    parent, false,\n    {\n      flowTokenType.identifier: TokenSummary(flowBalance, nil, [], flowTokenType.identifier),\n      usdcTokenType.identifier: TokenSummary(usdcBalance, nil, [], usdcTokenType.identifier)\n    },\n    nil,\n    true\n  )\n\n  let account = getAuthAccount<auth(Capabilities, Storage) &Account>(parent)\n  let m = account.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n  if m == nil {  \n  \treturn summaries \n  }\n  let manager = m!\n\n  let isParentDapper = isDapper(account)\n\n  for childAddress in manager.getChildAddresses() {\n  \tif childAddress == parent {\n      continue\n    }\n\n    let child = manager.borrowAccount(addr: childAddress)\n      ?? panic("child account not found")\n    summaries[childAddress] = getSummaryForChild(isParentDapper: isParentDapper, child: child, flowTokenType: flowTokenType, usdcTokenType: usdcTokenType)\n  }\n\n  \n  return summaries\n}\n\naccess(all) fun getSummaryForChild(isParentDapper: Bool, child: auth(HybridCustody.Child) &{HybridCustody.AccountPrivate, HybridCustody.AccountPublic, ViewResolver.Resolver}, flowTokenType: Type, usdcTokenType: Type): AccountSummary {\n  let childAuthAcct = getAuthAccount<auth(Capabilities, Storage) &Account>(child.owner!.address)\n\n  let flowBalance = isParentDapper ? nil : getBalance(child: child, path: /public/flowTokenBalance)\n  let usdcBalance = isParentDapper ? nil : getBalance(child: child, path: /public/usdcFlowMetadata)\n\n  var hasFlowReceiver: PublicPath? = nil\n  var hasUsdcReceiver: PublicPath? = nil\n  if !isParentDapper {\n    hasFlowReceiver = hasReceiver(child: child, path: /public/flowTokenReceiver) ? /public/flowTokenReceiver : nil\n    hasUsdcReceiver = hasReceiver(child: child, path: /public/usdcFlowReceiver) ? /public/usdcFlowReceiver : nil\n  }\n\n  let providers = getFTProviders(child, childAuthAcct)\n\n  let f = TokenSummary(flowBalance, hasFlowReceiver, providers[flowTokenType]?.providerPaths ?? [], flowTokenType.identifier)\n  let usdc = TokenSummary(usdcBalance, hasUsdcReceiver, providers[usdcTokenType]?.providerPaths ?? [], usdcTokenType.identifier)\n  let d = isDapper(childAuthAcct)\n\n  var dis: Display? = nil\n  if let display = child.resolveView(Type<MetadataViews.Display>()) {\n    dis = Display(display as! MetadataViews.Display)\n  } else {\n  \tlet name = childAuthAcct.address.toString()\n\t\tdis = Display(\n\t\t\tMetadataViews.Display(\n\t\t\t\tname: name,\n\t\t\t\tdescription: "",\n\t\t\t\tthumbnail: MetadataViews.HTTPFile(\n\t\t\t\t\turl: "https://api-ufj4afzoca-uc.a.run.app/6.x/thumbs/png?seed=".concat(name)\n\t\t\t\t)\n\t\t\t)\n\t\t)\n  }\n\n  return AccountSummary(childAuthAcct.address, d, { flowTokenType.identifier: f }, dis, false)\n}\n\naccess(all) fun isDapper(_ acct: auth(Capabilities, Storage) &Account): Bool {\n  let path = /public/dapperUtilityCoinReceiver\n  acct.capabilities.unpublish(path)\n  acct.capabilities.publish(\n    acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(/storage/dapperUtilityCoinReceiver),\n    at: path\n  )\n\n  let tmp = acct.capabilities.get<&{FungibleToken.Receiver}>(path)\n  if tmp == nil {\n    return false\n  }\n\n  let cap = tmp!\n  if !cap.check() {\n    return false\n  }\n\n  let receiver = cap.borrow()\n  if receiver == nil {\n      return false\n  }\n\n  if receiver!.getType() != Type<@TokenForwarding.Forwarder>() {\n      return false\n  }\n\n  let forwarder = receiver! as! &TokenForwarding.Forwarder\n  let nextReceiver = forwarder.safeBorrow()\n  if nextReceiver == nil {\n      return false\n  }\n\n  if nextReceiver!.getType() != Type<@DapperUtilityCoin.Vault>() {\n    // if it points to the duc vault, return the current address\n    return false\n  }\n\n  return true\n}\n\naccess(all) fun getBalance(child: auth(HybridCustody.Child) &{HybridCustody.AccountPrivate, HybridCustody.AccountPublic}, path: PublicPath): UFix64? {\n  if let tmp = child.getPublicCapability(path: path, type: Type<&{FungibleToken.Balance}>()) {\n    let cap = tmp! as! Capability<&{FungibleToken.Balance}>\n    if cap.check() {\n      return cap.borrow()!.balance\n    }\n  }\n\n  return nil\n}\n\naccess(all) fun hasReceiver(child: auth(HybridCustody.Child) &{HybridCustody.AccountPrivate, HybridCustody.AccountPublic}, path: PublicPath): Bool {\n  if let tmp = child.getPublicCapability(path: path, type: Type<&{FungibleToken.Receiver}>()) {\n    let cap = tmp! as! Capability<&{FungibleToken.Receiver}>\n    return cap.check()\n  }\n\n  return false\n}\n\naccess(all) fun getFTProviders(_ child: auth(HybridCustody.Child) &{HybridCustody.AccountPrivate, HybridCustody.AccountPublic}, _ childAuthAcct: auth(Capabilities, Storage) &Account): {Type: Access} {\n  let accessible: {Type: Access} = {}\n\n  let storagePaths: [StoragePath] = [\n    /storage/flowTokenVault,\n    /storage/usdcFlowVault,\n    /storage/dapperUtilityCoinVault,\n    /storage/flowUtilityTokenVault\n  ]\n\n  let targetType = Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>()\n\n  for s in storagePaths {\n    childAuthAcct.capabilities.storage.forEachController(forPath: s, fun(con: &StorageCapabilityController): Bool {\n        if con.borrowType.isRecovered {\n            return true\n        }\n\n        if !con.borrowType.isSubtype(of: targetType) {\n            return true\n        }\n\n        let cap = child.getCapability(controllerID: con.capabilityID, type: targetType)\n        if cap == nil {\n            return true\n        }\n\n        let provider = cap! as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n        if !provider.check() {\n            return true\n        }\n\n        if let storedType = childAuthAcct.storage.type(at: s) {\n            if accessible[storedType] == nil {\n                accessible[storedType] = Access(storedType)\n            }\n\n            accessible[storedType]?.addControllerID(con.capabilityID)\n        } else {\n            return true\n        }\n\n        return true\n    })\n  }\n\n  return accessible\n}\n\naccess(all) struct AccountSummary {\n  access(all) let address: Address\n  access(all) let isDapper: Bool\n  access(all) let tokens: {String: TokenSummary}\n  access(all) let display: Display?\n  access(all) let isMain: Bool\n\n  init(_ a: Address, _ d: Bool, _ tokens: {String: TokenSummary}, _ dis: Display?, _ isMain: Bool) {\n    self.address = a\n    self.isDapper = d\n    self.tokens = tokens\n    self.display = dis\n\n    self.isMain = isMain\n  }\n}\n\naccess(all) struct TokenSummary {\n  access(all) let balance: UFix64?\n  access(all) let receiverPath: PublicPath?\n  access(all) let providerPaths: [PrivatePath]\n  access(all) let type: String\n\n  init(_ b: UFix64?, _ r: PublicPath?, _ p: [PrivatePath], _ t: String) {\n    self.balance = b\n    self.receiverPath = r\n    self.providerPaths = p\n    self.type = t\n  }\n}\n\naccess(all) struct Display {\n  access(all) let name: String\n  access(all) let description: String\n  access(all) let thumbnail: String\n\n  init(_ d: MetadataViews.Display) {\n      self.name = d.name\n      self.description = d.description\n      self.thumbnail = d.thumbnail.uri()\n  }\n}\n\naccess(all) struct Access {\n  access(all) let type: Type\n  access(all) let providerPaths: [PrivatePath]\n  access(all) let controllerIDs: [UInt64]\n\n  access(all) fun addPrivPath(_ p: PrivatePath) {\n    self.providerPaths.append(p)\n  }\n\n  access(all) fun addControllerID(_ num: UInt64) {\n    self.controllerIDs.append(num)\n  }\n\n  init(_ t: Type) {\n    self.type = t\n    self.providerPaths = []\n    self.controllerIDs = []\n  }\n}\n\naccess(all) struct TokenConfig {\n  access(all) let tokenType: String\n  access(all) let balance: UFix64?\n  access(all) let receiverPaths: [PublicPath]\n  access(all) let providerPaths: [PrivatePath]\n\n  init(_ tt: String, _ b: UFix64?, _ rs: [PublicPath], _ ps: [PrivatePath]) {\n    self.tokenType = tt\n    self.balance = b\n    self.receiverPaths = rs\n    self.providerPaths = ps\n  }\n}\n\naccess(all) struct AccountConfig {\n  access(all) let address: Address\n  access(all) let tokens: [TokenConfig]\n\n  init(_ a: Address, _ ts: [TokenConfig]) {\n    self.address = a\n    self.tokens = ts\n  }\n}'),r=e=>""},31888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHybridCustodyFTProvidersScript=void 0;t.getHybridCustodyFTProvidersScript=e=>e.crescendo?n(e):r(e);const n=e=>"import HybridCustody from ".concat(e.contractAddresses.HybridCustody,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,'\n\n// This script iterates through a parent\'s child accounts, \n// identifies private paths with an accessible FungibleToken.Provider, and returns the corresponding typeIds\naccess(all) fun main(addr: Address): {Address: {String: UInt64}}  {\n  let account = getAuthAccount<auth(Capabilities, Storage) &Account>(addr)\n  \n  var typeIdsWithProvider = {} as {Address: {String: UInt64}} \n\n  if getAuthAccount<auth(Capabilities, Storage) &Account>(addr).storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath) == nil {\n    return typeIdsWithProvider\n  }\n\n  let manager = getAuthAccount<auth(Capabilities, Storage) &Account>(addr).storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath) ?? panic ("manager does not exist")\n\n  // Iterate through child accounts\n  for address in manager.getChildAddresses() {\n  \tif address == addr {\n      continue\n    }\n  \n    let addr = getAuthAccount<auth(Capabilities, Storage) &Account>(address)\n    let foundTypes: {String: UInt64} = {}\n    let childAcct = manager.borrowAccount(addr: address) ?? panic("child account not found")\n\n    let storagePaths: [StoragePath] = [\n        /storage/flowTokenVault,\n        /storage/usdcFlowVault,\n        /storage/dapperUtilityCoinVault,\n        /storage/flowUtilityTokenVault\n    ]\n\n    let targetType = Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>()\n    for s in storagePaths {\n        addr.capabilities.storage.forEachController(forPath: s, fun(con: &StorageCapabilityController): Bool {        \n\t\t\t\t\t\tif con.borrowType.isRecovered {\n\t\t\t\t\t\t\t\treturn true\n\t\t\t\t\t\t}\n\n            if !con.borrowType.isSubtype(of: targetType){\n                return true\n            }\n\n            if let cap = childAcct.getCapability(controllerID: con.capabilityID, type: targetType) {\n                let providerCap = cap as! Capability<&{FungibleToken.Provider}> \n\n                if !providerCap.check(){\n                return true\n                }\n\n                let resourceTypeIdentifier = cap.borrow<&AnyResource>()!.getType().identifier\n\n                foundTypes[resourceTypeIdentifier] = con.capabilityID\n            }\n\n            return true\n        })\n    }\n\n    typeIdsWithProvider[address] = foundTypes\n  }\n\n  return typeIdsWithProvider\n}'),r=e=>"import HybridCustody from ".concat(e.contractAddresses.HybridCustody,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,'\n\n// This script iterates through a parent\'s child accounts, \n// identifies private paths with an accessible FungibleToken.Provider, and returns the corresponding typeIds\npub fun main(addr: Address): {Address: {String: Path}}  {\n  let account = getAuthAccount(addr)\n  \n  var typeIdsWithProvider = {} as {Address: {String: Path}} \n\n  if getAuthAccount(addr).borrow<&HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath) == nil {\n    return typeIdsWithProvider\n  }\n\n  let manager = getAuthAccount(addr).borrow<&HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath) ?? panic ("manager does not exist")\n\n  \n  let providerType = Type<Capability<&{FungibleToken.Provider}>>()\n\n  // Iterate through child accounts\n  for address in manager.getChildAddresses() {\n  \tif address == addr {\n      continue\n    }\n  \n    let addr = getAuthAccount(address)\n    let foundTypes: {String: Path} = {}\n    let childAcct = manager.borrowAccount(addr: address) ?? panic("child account not found")\n    // get all private paths\n    addr.forEachPrivate(fun (path: PrivatePath, type: Type): Bool {\n      // Check which private paths have FT Provider AND can be borrowed\n      if !type.isSubtype(of: providerType){\n        return true\n      }\n      if let cap = childAcct.getCapability(path: path, type: Type<&{FungibleToken.Provider}>()) {\n        let providerCap = cap as! Capability<&{FungibleToken.Provider}> \n\n        if !providerCap.check(){\n          return true\n        }\n\n        let resourceTypeIdentifier = cap.borrow<&AnyResource>()!.getType().identifier\n\n        foundTypes[resourceTypeIdentifier] = path\n      }\n      return true\n    })\n\n    typeIdsWithProvider[address] = foundTypes\n  }\n\n  return typeIdsWithProvider\n}')},30719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIsCollectionSetupScript=void 0;t.getIsCollectionSetupScript=(e,t)=>t&&!e.crescendo?n(e):e.crescendo?i(e):r(e);const n=e=>"\nimport NFTCatalog from ".concat(e.contractAddresses.NFTCatalog,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,'\n\npub fun main(addr: Address, contractAddress: Address, contractName: String, isDapper: Bool): Bool {\n  let acct = getAuthAccount(addr)\n\n  let contractAcct = getAccount(contractAddress)\n  let tmp = contractAcct.contracts.borrow<&NonFungibleToken>(name: contractName)\n  if tmp == nil {\n  \treturn true\n\t}\n\t\n\tlet c = tmp!\n\n  let nftTypeIdentifier = c.getType().identifier.concat(".NFT")\n  let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier)\n  if catalogIdentifiers == nil {\n    return false\n  }\n\n  var catalogIdentifier = ""\n  for k in catalogIdentifiers!.keys {\n    if catalogIdentifiers![k] == true {\n      catalogIdentifier = k\n      break\n    }\n  }\n\n  if catalogIdentifier == "" {\n    return false\n  }\n\n  let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) ?? panic("catalog entry not found")\n\n  let publicPath = catalogEntry.collectionData.publicPath\n  let storagePath = catalogEntry.collectionData.storagePath\n  let privatePath = catalogEntry.collectionData.privatePath\n\n  if acct.borrow<&AnyResource>(from: storagePath) == nil {\n    return false\n  }\n\n  if !acct.getCapability<&{NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection}>(publicPath).check() { \n    return false\n  }\n\n  if !acct.getCapability<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic, NonFungibleToken.Receiver, MetadataViews.ResolverCollection}>(privatePath).check() { \n    return false\n  }\n\n  return true\n}'),r=e=>"\nimport NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.NonFungibleToken,'\n\npub fun main(addr: Address, contractAddress: Address, contractName: String): Bool {\n  let acct = getAuthAccount(addr)\n\n  let contractAcct = getAccount(contractAddress)\n  let tmp = contractAcct.contracts.borrow<&NonFungibleToken>(name: contractName)\n  if tmp == nil {\n  \treturn true\n\t}\n\t\n\tlet c = tmp!\n\n\n  let contract = getAccount(contractAddress).contracts.borrow<&ViewResolver>(name: contractName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n  let md = contract.resolveView(Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n  let collectionData = md as! MetadataViews.NFTCollectionData\n\n  let publicPath = collectionData.publicPath\n  let storagePath = collectionData.storagePath\n  let privatePath = collectionData.providerPath\n\n  if acct.borrow<&AnyResource>(from: storagePath) == nil {\n    return false\n  }\n\n  if !acct.getCapability<&{NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection}>(publicPath).check() { \n    return false\n  }\n\n  if !acct.getCapability<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic, NonFungibleToken.Receiver, MetadataViews.ResolverCollection}>(privatePath).check() { \n    return false\n  }\n\n  return true\n}\n'),i=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,'\n\naccess(all) fun main(addr: Address, contractAddress: Address, contractName: String): Bool {\n    let acct = getAuthAccount<auth(Capabilities, Storage) &Account>(addr)\n\n    let contractAcct = getAccount(contractAddress)\n    let publicTypes = contractAcct.contracts.get(name: contractName)!.publicTypes()\n    let nftResourceType = Type<@{NonFungibleToken.NFT}>()\n    for pt in publicTypes {\n        if !pt.isSubtype(of: nftResourceType) {\n            continue\n        }\n\n        let vr = getAccount(contractAddress).contracts.borrow<&{ViewResolver}>(name: contractName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n        let md = vr.resolveContractView(resourceType: pt, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n        let collectionData = md as! MetadataViews.NFTCollectionData\n\n        let publicPath = collectionData.publicPath\n        let storagePath = collectionData.storagePath\n\n        if acct.storage.borrow<&AnyResource>(from: storagePath) == nil {\n            return false\n        }\n\n        if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicPath).check() { \n            return false\n        }\n\n        let targetType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n        var hasProvider = false\n        acct.capabilities.storage.forEachController(forPath: storagePath, fun(c: &StorageCapabilityController): Bool {\n\t\t\t\t\t\tif c.borrowType.isRecovered {\n\t\t\t\t\t\t\t\treturn true\n\t\t\t\t\t\t}\n\n            if c.borrowType.isSubtype(of: targetType) {\n                hasProvider = true\n            }\n            return true\n        })\n    }\n\n\n    return true\n}')},7399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIsDapperCollectionScript=void 0;t.getIsDapperCollectionScript=e=>e.crescendo?r(e):n(e);const n=e=>"\nimport DapperWalletCollections from ".concat(e.contractAddresses.DapperWalletCollections,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\n\npub fun main(contractAddress: Address, contractName: String): Bool {\n\tlet contractAcct = getAccount(contractAddress)\n\tlet tmp = contractAcct.contracts.borrow<&NonFungibleToken>(name: contractName)\n\tif tmp == nil {\n\t\treturn false\n  }\n\n  let c = tmp!\n  return DapperWalletCollections.containsType(c.getType())\n}\n"),r=e=>"\nimport DapperWalletCollections from ".concat(e.contractAddresses.DapperWalletCollections,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\n\naccess(all) fun main(contractAddress: Address, contractName: String): Bool {\n\tlet contractAcct = getAccount(contractAddress)\n\tlet tmp = contractAcct.contracts.borrow<&{NonFungibleToken}>(name: contractName)\n\tif tmp == nil {\n\t\treturn false\n  }\n\n  let c = tmp!\n  return DapperWalletCollections.containsType(c.getType())\n}")},90617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorefrontFeesScript=void 0;t.getStorefrontFeesScript=e=>e.crescendo?r(e):n(e);const n=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,'\n\npub struct Fees {\n  pub let dapper: UFix64\n  pub let flowty: UFix64\n  pub let royalties: UFix64\n  pub let seller: UFix64\n\n  init(_ d :UFix64, _ f: UFix64, _ r: UFix64, _ s: UFix64) {\n    self.dapper = d\n    self.flowty = f\n    self.royalties = r\n    self.seller = s\n  }\n}\n\npub fun main(addr: Address, path: String, nftID: UInt64, paymentTokenIdentifier: String, price: UFix64): Fees {\n  let tokenComposite = CompositeType(paymentTokenIdentifier)!\n  let acct = getAuthAccount(addr)\n  let storagePath = StoragePath(identifier: path)!\n  let col = acct.borrow<&{NonFungibleToken.CollectionPublic}>(from: storagePath) ?? panic("collection not found")\n  let nft = col.borrowNFT(id: nftID)\n\n  let mpFee = NFTStorefrontV2.getFee(p: price, t: tokenComposite)\n\n  // dapper only has a fee if we are using DUC\n  var dapperFee = 0.0\n  let flowtyFee = mpFee - dapperFee\n\n  let cap = acct.getCapability<&{FungibleToken.Receiver}>(/public/foo)\n  let cuts = NFTStorefrontV2.getPaymentCuts(r: cap, n: nft, p: price, tokenType: tokenComposite)\n\n  var royalties = 0.0\n  var seller = 0.0\n  for i, c in cuts {\n    if i == cuts.length - 1 {\n      seller = c.amount\n      continue\n    }\n\n    royalties = royalties + c.amount\n  }\n\n  return Fees(dapperFee, flowtyFee, royalties, seller)\n}'),r=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,'\n\naccess(all) struct Fees {\n  access(all) let dapper: UFix64\n  access(all) let flowty: UFix64\n  access(all) let royalties: UFix64\n  access(all) let seller: UFix64\n\n  init(_ d :UFix64, _ f: UFix64, _ r: UFix64, _ s: UFix64) {\n    self.dapper = d\n    self.flowty = f\n    self.royalties = r\n    self.seller = s\n  }\n}\n\naccess(all) fun main(addr: Address, path: String, nftID: UInt64, paymentTokenIdentifier: String, price: UFix64): Fees {\n  let tokenComposite = CompositeType(paymentTokenIdentifier)!\n  let acct = getAuthAccount<auth(Storage, Capabilities) &Account>(addr)\n  let storagePath = StoragePath(identifier: path)!\n  let col = acct.storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: storagePath) ?? panic("collection not found")\n  let nft = col.borrowNFT(nftID) ?? panic("nft not found")\n\n  let mpFee = NFTStorefrontV2.getFee(p: price, t: tokenComposite)\n\n  // dapper only has a fee if we are using DUC\n  var dapperFee = 0.0\n  let flowtyFee = mpFee - dapperFee\n\n  let cap = acct.capabilities.get<&{FungibleToken.Receiver}>(/public/flowTokenReceiver)!\n  let cuts = NFTStorefrontV2.getPaymentCuts(r: cap, n: nft, p: price, tokenType: tokenComposite)\n\n  var royalties = 0.0\n  var seller = 0.0\n  for i, c in cuts {\n    if i == cuts.length - 1 {\n      seller = c.amount\n      continue\n    }\n\n    royalties = royalties + c.amount\n  }\n\n  return Fees(dapperFee, flowtyFee, royalties, seller)\n}')},48209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValidateOwnershipScript=void 0;t.getValidateOwnershipScript=(e,t,i,o,a)=>e.crescendo?r(e):n(e,t,i,o,a);const n=(e,t,n,r,i)=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport ").concat(t," from ").concat(n,"\n\npub fun main(address: Address, nftId: UInt64, typeIdentifier: String): Bool {\n    // see note in AccountService.ts about using NFT resource name\n    let expectedType = Type<@").concat(t,".").concat(r,'>()\n    let statedType = CompositeType(typeIdentifier) ?? panic("Invalid type identifier")\n\n    let collection = getAuthAccount(address)\n        .borrow<&{NonFungibleToken.CollectionPublic}>(from: /storage/').concat(i,")\n    if collection == nil {\n      return false\n    }\n\n    return statedType == expectedType && collection!.getIDs().contains(nftId)\n}"),r=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,'\n\naccess(all) fun main(address: Address, nftId: UInt64, typeIdentifier: String): Bool {\n    let nftType = CompositeType(typeIdentifier) ?? panic("Invalid type identifier")\n\n    var storagePath: StoragePath? = nil\n    if let identifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftType.identifier) {\n        var identifier = ""\n        for i in identifiers.keys {\n            if identifiers[i]! == true {\n                identifier = i\n                break\n            }\n        }\n\n        if identifier != "" {\n            let entry = NFTCatalog.getCatalogEntry(collectionIdentifier: identifier)!\n            storagePath = entry.collectionData.storagePath\n        }\n    } else {\n        let nftAddress = AddressUtils.parseAddress(nftType)!\n        let nftContractName = typeIdentifier.split(separator: ".")[2]\n        let nftContract = getAccount(nftAddress).contracts.borrow<&{ViewResolver}>(name: nftContractName)\n            ?? panic("contract not found or does not implement ViewResolver interface")\n\n        let md = nftContract.resolveContractView(resourceType: nftType, viewType: Type<MetadataViews.NFTCollectionData>())\n            ?? panic("NFTCollectionData metadata view not found")\n\n        let collectionData = md as! MetadataViews.NFTCollectionData\n        storagePath = collectionData.storagePath\n    }\n\n    assert(storagePath != nil, message: "unable to find storage path for type: ".concat(nftType.identifier))\n\n    let collection = getAuthAccount<auth(Storage) &Account>(address).storage.borrow<&{NonFungibleToken.Collection}>(from: storagePath!)\n    if collection == nil {\n      return false\n    }\n\n    let nft = collection!.borrowNFT(nftId)\n    return nft != nil && nft!.getType() == nftType\n}')},32673:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AcceptOffer=void 0;const i=n(53918),o=n(10034),a=n(19388),s=n(65094);t.AcceptOffer=class{constructor(e){r(this,"config",void 0),r(this,"acceptOffer",(async e=>{let{nftData:t,txAvailableCallback:n,token:r,ftReceiverAddress:l,nftProviderPathIdentifier:c,offerResourceID:u,offerStorefrontAddress:d,nftStoragePath:p}=e;if(!t)throw new Error("Flow NFT it's null");const{contractAddress:h,contractName:f,id:m,type:g,nftOwner:v}=t,y=await(0,i.getCatalogEntryForType)(g,this.config),b=["DUC","FUT"].includes(r.symbol),w=b?p:c,x=b||!this.config.crescendo?a.arg(w,s.String):a.arg(w||"0",s.UInt64),C=[];y||b||C.push(a.arg(h,s.Address)),C.push(a.arg(m.toString(),s.UInt64),a.arg(u.toString(),s.UInt64),a.arg(d,s.Address),x),b||C.push(a.arg(y||f,s.String),a.arg(v,s.Address),a.arg(l,s.Address),a.arg(t.type,s.String));const A=(0,o.getAcceptOfferTxn)(this.config,r,!!y);console.debug("txContent",{txArguments:C,txContent:A});try{return await(0,i.sendMutation)(A,C,n)}catch(E){throw console.log("TX ERROR",E),(0,i.Err)("createStorefrontListing",E),E}})),this.config=e}}},10034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAcceptOfferTxn=void 0;t.getAcceptOfferTxn=(e,t,l)=>"DUC"===t.symbol?e.crescendo?s(e):i(e):l?e.crescendo?o(e):n(e):e.crescendo?a(e):r(e);const n=e=>"",r=e=>"",i=e=>"",o=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport Offers from ").concat(e.contractAddresses.Offers,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\ntransaction(\n    nftID: UInt64,\n    offerID: UInt64,\n    storefrontAddress: Address,\n    nftProviderControllerID: UInt64,\n    collectionIdentifier: String,\n    nftProviderAddress: Address,\n    ftReceiverAddress: Address,\n    nftTypeIdentifier: String\n) {\n    let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}\n    let ftReceiver: Capability<&{FungibleToken.Receiver}>\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        let storefront = getAccount(storefrontAddress).capabilities.get<&{Offers.StorefrontPublic}>(Offers.OffersPublicPath)\n            .borrow() ?? panic("storefront not found")\n        assert(storefront.getType() == Type<@Offers.Storefront>(), message: "unexpected storefront type")\n\n        let offer = storefront.borrowOffer(offerResourceID: offerID) ?? panic("offer not found")\n        let details = offer.getDetails()\n        let tokenInfo = FlowtyUtils.getTokenInfo(details.paymentTokenType) ?? panic("token info not found")\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n        let storageCollectionPath = catalogEntry.collectionData.storagePath\n\n        if nftProviderAddress == acct.address {\n            self.nftProvider = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: storageCollectionPath)\n                ?? panic("provider not found")\n        } else {\n            // Get child nft provider for auto return, if path doesn\'t exist we can\'t create it\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n            let receiverCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>()) ?? panic("no cap found")\n\n            let cap = receiverCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>\n            self.nftProvider = cap.borrow() ?? panic("invalid provider capability")\n        }\n\n        let nft <- self.nftProvider.withdraw(withdrawID: nftID)\n\n        if ftReceiverAddress == acct.address {\n            let ftContractAddress = AddressUtils.parseAddress(details.paymentTokenType)!\n            let ftContractName = details.paymentTokenType.identifier.split(separator: ".")[2]\n            let ftContract = getAccount(ftContractAddress).contracts.borrow<&{FungibleToken}>(name: ftContractName)\n                ?? panic("payment type does not implement FungibleToken")\n            let ftVaultData = ftContract.resolveContractView(resourceType: details.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as!  FungibleTokenMetadataViews.FTVaultData\n\n            if acct.storage.type(at: ftVaultData.storagePath) == nil {\n                acct.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n                acct.capabilities.unpublish(ftVaultData.receiverPath)\n                acct.capabilities.unpublish(ftVaultData.metadataPath)\n\n                acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n                acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n            }\n            self.ftReceiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.ftReceiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(tokenInfo.receiverPath)\n        }\n\n        assert(self.ftReceiver.borrow() != nil, message: "Missing or mis-typed FlowToken receiver")  \n\n        storefront.acceptOffer(offerResourceID: offerID, nft: <-nft, receiver: self.ftReceiver)\n    }\n}'),a=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport Offers from ").concat(e.contractAddresses.Offers,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\ntransaction(\n  collectionAddress: Address,\n  nftID: UInt64,\n  offerID: UInt64,\n  storefrontAddress: Address,\n  nftProviderControllerID: UInt64,\n  collectionName: String,\n  nftProviderAddress: Address,\n  ftReceiverAddress: Address,\n  nftTypeIdentifier: String\n) {\n    let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}\n    let ftReceiver: Capability<&{FungibleToken.Receiver}>\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        let nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nft type identifier")\n\n        let storefront = getAccount(storefrontAddress).capabilities.get<&{Offers.StorefrontPublic}>(Offers.OffersPublicPath)\n            .borrow() ?? panic("storefront not found")\n        assert(storefront.getType() == Type<@Offers.Storefront>(), message: "unexpected storefront type")\n\n        let offer = storefront.borrowOffer(offerResourceID: offerID) ?? panic("offer not found")\n        let details = offer.getDetails()\n\n        let c = getAccount(collectionAddress).contracts.borrow<&{ViewResolver}>(name: collectionName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n        let md = c.resolveContractView(resourceType: nftType, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n        let collectionData = md as! MetadataViews.NFTCollectionData\n        \n        let tokenInfo = FlowtyUtils.getTokenInfo(details.paymentTokenType) ?? panic("token info not found")\n\n        if nftProviderAddress == acct.address {\n            if !acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath).check() {\n                // we do not unlink first because this does not come from the NFT Catalog.\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(collectionData.storagePath),\n                    at: collectionData.publicPath\n                )\n            }\n\n            self.nftProvider = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: collectionData.storagePath)\n                ?? panic("invalid nft provider borrowed from storage")\n        } else {\n            // Get child nft provider for auto return, if path doesn\'t exist we can\'t create it\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n            let receiverCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<&{NonFungibleToken.Provider}>()) ?? panic("no cap found")\n\n            let cap = receiverCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>\n            self.nftProvider = cap.borrow() ?? panic("invalid nft provider")\n        }\n\n        let nft <- self.nftProvider.withdraw(withdrawID: nftID)\n\n        if ftReceiverAddress == acct.address {\n            let ftContractAddress = AddressUtils.parseAddress(details.paymentTokenType)!\n            let ftContractName = details.paymentTokenType.identifier.split(separator: ".")[2]\n            let ftContract = getAccount(ftContractAddress).contracts.borrow<&{FungibleToken}>(name: ftContractName)\n                ?? panic("payment type does not implement FungibleToken")\n            let ftVaultData = ftContract.resolveContractView(resourceType: details.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as!  FungibleTokenMetadataViews.FTVaultData\n\n            if acct.storage.type(at: ftVaultData.storagePath) == nil {\n                acct.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n                acct.capabilities.unpublish(ftVaultData.receiverPath)\n                acct.capabilities.unpublish(ftVaultData.metadataPath)\n\n                acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n                acct.capabilities.publish(acct.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n            }\n            self.ftReceiver = acct.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.ftReceiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(tokenInfo.receiverPath)\n        }\n\n        assert(self.ftReceiver.borrow() != nil, message: "Missing or mis-typed FlowToken receiver")  \n\n        storefront.acceptOffer(offerResourceID: offerID, nft: <-nft, receiver: self.ftReceiver)\n    }\n}'),s=e=>"import OffersV2 from ".concat(e.contractAddresses.OffersV2_Dapper,"\nimport DapperOffersV2 from ").concat(e.contractAddresses.DapperOffersV2,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,'\n\ntransaction(nftID: UInt64, offerId: UInt64, DapperOfferAddress: Address, storagePathIdentifier: String) {\n    let dapperOffer: &DapperOffersV2.DapperOffer\n    let offer: &{OffersV2.OfferPublic}\n    let receiverCapability: Capability<&{FungibleToken.Receiver}>\n    prepare(signer: auth(Storage) &Account) {\n        // Get the DapperOffers resource\n        self.dapperOffer = getAccount(DapperOfferAddress).capabilities.get<&DapperOffersV2.DapperOffer>(DapperOffersV2.DapperOffersPublicPath).borrow()\n            ?? panic("Could not borrow DapperOffer from provided address")\n        // Set the fungible token receiver capabillity\n        self.receiverCapability = signer.capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n        assert(self.receiverCapability.borrow() != nil, message: "Missing or mis-typed DapperUtilityCoin receiver")\n        // Get the DapperOffer details\n        self.offer = self.dapperOffer.borrowOffer(offerId: offerId)\n            ?? panic("No Offer with that ID in DapperOffer")\n\t\t\t\t\n\t\t\t\tlet details = self.offer.getDetails()\n                \n        // Get the NFT resource and withdraw the NFT from the signers account\n        let nftCollection = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: StoragePath(identifier: storagePathIdentifier)!)\n            ?? panic("Cannot borrow NFT collection receiver from account")\n\n\t\tlet nft <- (nftCollection.withdraw(withdrawID: nftID) as! @AnyResource) as! @{NonFungibleToken.NFT}\n\t\t\n        self.offer.accept(\n            item: <-nft,\n            receiverCapability: self.receiverCapability\n        )\n    }\n    execute {\n        // delete the offer\n        self.dapperOffer.cleanup(offerId: offerId)\n    }\n}')},86097:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CancelOffer=void 0;const i=n(53918),o=n(90732),a=n(19388),s=n(65094);t.CancelOffer=class{constructor(e){r(this,"config",void 0),r(this,"cancelOffer",(async e=>{let{txAvailableCallback:t,token:n,offerResourceID:r}=e;const l=[a.arg(r.toString(),s.UInt64)],c="DUC"===n,u=(0,o.getCancelOfferTxn)(this.config,c);try{return await(0,i.sendMutation)(u,l,t)}catch(d){throw console.log("TX ERROR",d),(0,i.Err)("createStorefrontListing",d),d}})),this.config=e}}},90732:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCancelOfferTxn=void 0;t.getCancelOfferTxn=(e,t)=>t?e.crescendo?o(e):r(e):e.crescendo?i(e):n(e);const n=e=>"",r=e=>"",i=e=>"import Offers from ".concat(e.contractAddresses.Offers,'\n\ntransaction(offerResourceID: UInt64) {\n    prepare(acct: auth(BorrowValue) &Account) {\n        let storefront = acct.storage.borrow<auth(Offers.Cancel) &Offers.Storefront>(from: Offers.OffersStoragePath)\n            ?? panic("storefront not found")\n        storefront.cancelOffer(offerResourceID: offerResourceID)\n    }\n}'),o=e=>"import DapperOffersV2 from ".concat(e.contractAddresses.DapperOffersV2,'\n\ntransaction(offerId: UInt64) {\n    prepare(signer: auth(BorrowValue) &Account) {\n        let offers = signer.storage.borrow<auth(DapperOffersV2.Manager) &DapperOffersV2.DapperOffer>(from: DapperOffersV2.DapperOffersStoragePath) ?? panic("offers resource not found")\n        offers.removeOffer(offerId: offerId)\n    }\n}')},98389:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontListing=void 0;const i=n(53918),o=n(1132),a=n(48156),s=n(77706),l=n(19388),c=n(65094);t.StorefrontListing=class{constructor(e){r(this,"config",void 0),r(this,"createStorefrontListing",(async e=>{let{nftData:t,buyer:n,expiry:r,salePrice:a,token:u,txAvailableCallback:d,nftProviderPathIdentifier:p,ftReceiverAddress:h}=e;const f=(0,i.expirationDaysToSeconds)(r),m=Number(a).toFixed(4);if(!t)throw new Error("Flow NFT it's null");const{contractAddress:g,contractName:v,id:y,type:b,nftOwner:w}=t,x=await(0,i.getCatalogEntryForType)(b,this.config),C=(0,o.getStorefrontListingTxn)(this.config,u,t,!!x),A=[],E=["DUC","FUT"].includes(u.symbol);if(x&&E)A.push(l.arg(x,c.String),l.arg(y.toString(),c.UInt64),l.arg(m.toString(),c.UFix64),l.arg(null,c.Optional(c.String)),l.arg(n,c.Optional(c.String)),l.arg(f.toString(),c.UInt64));else if(x){const e=this.config.crescendo?l.arg(p||"0",c.UInt64):l.arg(p,c.String);A.push(l.arg(x,c.String),l.arg(y.toString(),c.UInt64),l.arg(m.toString(),c.UFix64),l.arg(null,c.Optional(c.String)),l.arg(n,c.Optional(c.String)),l.arg(f.toString(),c.UInt64),e,l.arg(w,c.Address),l.arg(h,c.Address))}else{const e=this.config.crescendo?l.arg(p||"0",c.UInt64):l.arg(p,c.String);this.config.crescendo?A.push(l.arg(t.type,c.String)):A.push(l.arg(g,c.Address),l.arg(v,c.String)),A.push(l.arg(y.toString(),c.UInt64),l.arg(m.toString(),c.UFix64),l.arg(null,c.Optional(c.String)),l.arg(n,c.Optional(c.String)),l.arg(f.toString(),c.UInt64),e,l.arg(w,c.Address),l.arg(h,c.Address))}this.config.crescendo&&!E&&A.push(l.arg(s.PaymentTokenToIdentifier[u.symbol],c.String)),console.log("createStorefrontListing",{buyer:n,expiry:r,ftReceiverAddress:h,nftData:t,nftProviderPathIdentifier:p,salePrice:a,token:u,txArguments:A});try{return await(0,i.sendMutation)(C,A,d)}catch(_){throw console.log("TX ERROR",_),(0,i.Err)("createStorefrontListing",_),_}})),r(this,"removeStorefrontListing",(async e=>{let{listingResourceID:t,listingType:n,txAvailableCallback:r}=e;console.log("removeStorefrontListing",{listingResourceID:t,listingType:n});const a=(0,o.getDelistStorefrontListingTxn)(this.config,n),s=[l.arg(t.toString(),c.UInt64)];try{return await(0,i.sendMutation)(a,s,r)}catch(u){throw console.log("TX ERROR",u),(0,i.Err)("removeStorefrontListing",u),u}})),r(this,"removeBulkListing",(async(e,t,n)=>{const r=[l.arg(e,c.Array(c.UInt64))],a=(0,o.getBulkDelistStorefrontListingTxn)(this.config);try{console.log("bulk delisting...",{txArguments:r,txContent:a});return await(0,i.sendMutation)(a,r,n)}catch(s){throw console.log("TX ERROR",s),(0,i.Err)("removeBulkListing",s),s}})),r(this,"createStorefrontBulkListing",(async(e,t,n,r,s)=>{const u={domain:"public",identifier:n},d=this.config.getIdentifier(r.contractName,"Vault"),p=(0,o.getBulkStorefrontListingTxn)(this.config,r),h=this.config.getIdentifier("TransactionTypes","StorefrontListingRequest"),f=(0,a.encodeStorefrontListingRequests)(e,h,this.config.crescendo,l.arg,c),m=["DUC","FUT"].includes(r.symbol)?[f]:[f,l.arg(t,c.Address),l.arg(u,c.Path),l.arg(d,c.String)];try{const e=(0,i.sendMutation)(p,m,s);return await e}catch(g){throw console.error(g),g}})),this.config=e}}},48156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeStorefrontListingRequests=t.encodeStorefrontListingRequestFields=t.getStorefrontListingRequestStruct=void 0;t.getStorefrontListingRequestStruct=(e,t,n)=>{const r=n?{name:"nftProviderControllerID",value:e.UInt64}:{name:"nftProviderPath",value:e.Path};return e.Struct(t,[{name:"nftProviderAddress",value:e.Address},r,{name:"nftStoragePath",value:e.Path},{name:"nftTypeIdentifier",value:e.String},{name:"nftID",value:e.UInt64},{name:"price",value:e.UFix64},{name:"customID",value:e.Optional(e.String)},{name:"expiry",value:e.UInt64},{name:"buyerAddress",value:e.Optional(e.Address)},{name:"catalogCollection",value:e.Bool}])};t.encodeStorefrontListingRequestFields=(e,t)=>{const n=t?{name:"nftProviderControllerID",value:e.nftProviderPathIdentifier||"0"}:{name:"nftProviderPath",value:{domain:"private",identifier:e.nftProviderPathIdentifier}};return{fields:[{name:"nftProviderAddress",value:e.nftProviderAddress},n,{name:"nftStoragePath",value:{domain:"storage",identifier:e.nftStoragePathIdentifier}},{name:"nftTypeIdentifier",value:e.nftTypeIdentifier},{name:"nftID",value:e.nftID.toString()},{name:"price",value:e.price.toFixed(5)},{name:"customID",value:e.customID},{name:"expiry",value:e.expiry.toString()},{name:"buyerAddress",value:e.buyerAddress},{name:"catalogCollection",value:e.catalogCollection}]}};t.encodeStorefrontListingRequests=(e,n,r,i,o)=>{const a=[];for(const s of e){const e=(0,t.encodeStorefrontListingRequestFields)(s,r);a.push(e)}return i(a,o.Array((0,t.getStorefrontListingRequestStruct)(o,n,r)))}},1132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBulkDelistStorefrontListingTxn=t.getDelistStorefrontListingTxn=t.getBulkStorefrontListingTxn=t.getStorefrontListingTxn=void 0;const r=n(10514);t.getStorefrontListingTxn=(e,t,n,r)=>e.crescendo?p(e,t,n,r):u(e,t,n,r);t.getBulkStorefrontListingTxn=(e,t)=>e.crescendo?o(e,t):i(e,t);t.getDelistStorefrontListingTxn=(e,t)=>{const n=(0,r.formatAddress)(t.split(".")[1]);if(n===e.contractAddresses.NFTStorefrontV2)return e.crescendo?x(e):w(e);if(n===e.contractAddresses.NFTStorefrontV2_Shared)return e.crescendo?A(e):C(e);throw new Error("unknown listing type")};t.getBulkDelistStorefrontListingTxn=e=>e.crescendo?_(e):E(e);const i=(e,t)=>"DUC"===t.symbol?a(e):s(e),o=(e,t)=>"DUC"===t.symbol?l(e):c(e),a=e=>"",s=e=>"",l=e=>"// Flowty - List multiple items for sale at the same time\nimport FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport TransactionTypes from ").concat(e.contractAddresses.TransactionTypes,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\ntransaction(saleRequests: [TransactionTypes.StorefrontListingRequest]) {\n    prepare(seller: auth(Storage, Capabilities) &Account) {\n        if seller.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            let storefront <- NFTStorefrontV2.createStorefront()\n            seller.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n            seller.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            seller.capabilities.publish(\n                seller.capabilities.storage.issue<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontStoragePath), \n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let paymentReceiver = seller.capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n        assert(paymentReceiver.check() != nil, message: "Missing or mis-typed DapperUtilityCoin receiver")\n\n        let nftCache: {String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>} = {}\n        let nftRef: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>} = &nftCache\n\n        let typeCache: {String: Type} = {}\n        let typeRef: auth(Mutate) &{String: Type} = &typeCache\n\n        let storefront = seller.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)!\n        for request in saleRequests {\n          createListing(seller, storefront, request, paymentReceiver, nftRef, typeRef)\n        }\n    }\n}\n\naccess(all) fun createListing(\n  _ seller: auth(Storage, Capabilities) &Account,\n  _ storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront,\n  _ r: TransactionTypes.StorefrontListingRequest,\n  _ paymentReceiver: Capability<&{FungibleToken.Receiver}>,\n  _ nftCache: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>},\n  _ typeCache: auth(Mutate) &{String: Type}\n) {\n  if typeCache[r.nftTypeIdentifier] == nil {\n    typeCache[r.nftTypeIdentifier] = CompositeType(r.nftTypeIdentifier) ?? panic("invalid nft type identifier")\n  }\n\n  let collectionCap = getCollectionCap(seller, r, nftCache, typeCache[r.nftTypeIdentifier]!)\n\n  // check for existing listings of the NFT\n  var existingListingIDs = storefront.getExistingListingIDs(\n      nftType: typeCache[r.nftTypeIdentifier]!,\n      nftID: r.nftID\n  )\n  // remove existing listings\n  for listingID in existingListingIDs {\n      storefront.removeListing(listingResourceID: listingID)\n  }\n\n  // Create listing\n  storefront.createListing(\n    nftProviderCapability: collectionCap,\n    paymentReceiver: paymentReceiver,\n    nftType: typeCache[r.nftTypeIdentifier]!,\n    nftID: r.nftID,\n    salePaymentVaultType: Type<@DapperUtilityCoin.Vault>(),\n    price: r.price,\n    customID: r.customID,\n    expiry: UInt64(getCurrentBlock().timestamp) + r.expiry,\n    buyer: r.buyerAddress\n  )\n}\n\naccess(all) fun getCollectionCap(\n  _ seller: auth(Storage, Capabilities) &Account,\n  _ r: TransactionTypes.StorefrontListingRequest,\n  _ nftCache: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>},\n  _ nftType: Type\n): Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}> {\n  let key = r.nftProviderAddress.toString().concat(r.nftTypeIdentifier)\n  if nftCache[key] != nil {\n    return nftCache[key]!\n  }\n\n  if r.nftProviderAddress == seller.address {\n    let storagePath = FlowtyUtils.getCapabilityStoragePath(type: nftType, suffix: "CollectionProviderForFlowty")\n\n    let copiedCap = seller.storage.copy<Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>>(from: storagePath)\n    if copiedCap != nil && copiedCap!.check() {\n      nftCache[key] = copiedCap!\n      return copiedCap!\n    } else {\n      // clean this storage slot in case something is there already\n      seller.storage.load<AnyStruct>(from: storagePath)\n      let cap = seller.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(r.nftStoragePath)\n      assert(cap.check(), message: "invalid issued provider capability")\n      seller.storage.save(cap, to: storagePath)\n      nftCache[key] = cap\n\n      return cap\n    }\n  }\n\n  let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    ?? panic("Missing or mis-typed HybridCustody Manager")\n\n  let child = manager.borrowAccount(addr: r.nftProviderAddress) ?? panic("no child account with that address")\n  let providerCap = child.getCapability(controllerID: r.nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>())\n    ?? panic("no nft provider found")\n  let cap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n  nftCache[key] = cap\n\n  return cap\n}'),c=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport TransactionTypes from ").concat(e.contractAddresses.TransactionTypes,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\ntransaction(\n  saleRequests: [TransactionTypes.StorefrontListingRequest],\n  paymentReceiverAddress: Address,\n  paymentReceiverPath: PublicPath,\n  salePaymentVaultTypeIdentifier: String\n) {\n    prepare(seller: auth(Capabilities, Storage) &Account) {\n        if seller.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            // Create a new empty Storefront\n            let storefront <- NFTStorefrontV2.createStorefront()\n            // save it to the account\n            seller.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n            // create a public capability for the Storefront, first unlinking to ensure we remove anything that\'s already present\n            seller.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            seller.capabilities.publish(\n                seller.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if seller.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            seller.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = seller.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        let paymentType = CompositeType(salePaymentVaultTypeIdentifier) ?? panic("invalid payment type identifier")\n        let paymentReceiver = getPaymentReceiver(seller, paymentReceiverAddress, paymentReceiverPath, paymentType)\n\n        let nftCache: {String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>} = {}\n        let nftRef: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>} = &nftCache\n\n        let typeCache: {String: Type} = {}\n        let typeRef: auth(Mutate) &{String: Type} = &typeCache\n\n        let storefront = seller.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)!\n        for request in saleRequests {\n          createListing(seller, storefront, request, paymentReceiver, paymentType, nftRef, typeRef, cache)\n        }\n    }\n}\n\naccess(all) fun createListing(\n  _ seller: auth(Capabilities, Storage) &Account,\n  _ storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront,\n  _ r: TransactionTypes.StorefrontListingRequest,\n  _ paymentReceiver: Capability<&{FungibleToken.Receiver}>,\n  _ paymentType: Type,\n  _ nftCache: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>},\n  _ typeCache: auth(Mutate) &{String: Type},\n  _ capabilityCache: auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache\n) {\n  if typeCache[r.nftTypeIdentifier] == nil {\n    typeCache[r.nftTypeIdentifier] = CompositeType(r.nftTypeIdentifier) ?? panic("invalid nft type identifier")\n  }\n\n  let collectionCap = getCollectionCap(seller, r, nftCache, typeCache[r.nftTypeIdentifier]!, capabilityCache)\n\n  // check for existing listings of the NFT\n  var existingListingIDs = storefront.getExistingListingIDs(\n      nftType: typeCache[r.nftTypeIdentifier]!,\n      nftID: r.nftID\n  )\n  // remove existing listings\n  for listingID in existingListingIDs {\n      storefront.removeListing(listingResourceID: listingID)\n  }\n\n  // Create listing\n  storefront.createListing(\n    nftProviderCapability: collectionCap,\n    paymentReceiver: paymentReceiver,\n    nftType: typeCache[r.nftTypeIdentifier]!,\n    nftID: r.nftID,\n    salePaymentVaultType: paymentType,\n    price: r.price,\n    customID: r.customID,\n    expiry: UInt64(getCurrentBlock().timestamp) + r.expiry,\n    buyer: r.buyerAddress\n  )\n}\n\naccess(all) fun getPaymentReceiver(\n  _ seller: auth(Capabilities, Storage) &Account,\n  _ paymentReceiverAddress: Address,\n  _ paymentPath: PublicPath,\n  _ paymentType: Type\n): Capability<&{FungibleToken.Receiver}> {\n  let tokenInfo = FlowtyUtils.getTokenInfo(paymentType) ?? panic("token info not found")\n  let ftContractAddress = AddressUtils.parseAddress(paymentType)!\n  let ftContractName = paymentType.identifier.split(separator: ".")[2]\n  let ftContract = getAccount(ftContractAddress).contracts.borrow<&{FungibleToken}>(name: ftContractName)\n    ?? panic("payment type does not implement FungibleToken")\n  let ftVaultData = ftContract.resolveContractView(resourceType: paymentType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as!  FungibleTokenMetadataViews.FTVaultData\n\n  if paymentReceiverAddress == seller.address {\n    // Do we need to setup this vault for the signing account?\n    if seller.storage.type(at: ftVaultData.storagePath) == nil {\n      seller.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n      seller.capabilities.unpublish(ftVaultData.receiverPath)\n      seller.capabilities.unpublish(ftVaultData.metadataPath)\n\n      seller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n      seller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n    }\n\n    var cap = seller.capabilities.get<&{FungibleToken.Receiver}>(paymentPath)\n    if !cap.check() {\n      cap = seller.capabilities.get<&{FungibleToken.Receiver}>(paymentPath)\n    }\n\n    return cap\n  }\n\n  let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    ?? panic("Missing or mis-typed HybridCustody Manager")\n\n  let child = manager.borrowAccount(addr: paymentReceiverAddress) ?? panic("no child account with that address")\n  let cap = getAccount(paymentReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(paymentPath)\n\n  return cap\n}\n\naccess(all) fun getCollectionCap(\n  _ seller: auth(Capabilities, Storage) &Account,\n  _ r: TransactionTypes.StorefrontListingRequest,\n  _ nftCache: auth(Mutate) &{String: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>},\n  _ nftType: Type,\n  _ capabilityCache: auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache\n): Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}> {\n  let key = r.nftProviderAddress.toString().concat(r.nftTypeIdentifier)\n  if nftCache[key] != nil {\n    return nftCache[key]!\n  }\n\n\n  if r.nftProviderAddress == seller.address {\n    let borrowType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n    if let provider = capabilityCache.getCapabilityByType(resourceType: nftType, capabilityType: CapabilityType(borrowType)!) {\n        nftCache[key] = provider as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    } else {\n        let nftProvider = seller.capabilities.storage.issueWithType(r.nftStoragePath, type: borrowType) as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n        capabilityCache.addCapability(resourceType: nftType, cap: nftProvider!)\n        nftCache[key] = nftProvider\n    }\n\n    return nftCache[key]!\n  }\n\n  let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n    ?? panic("Missing or mis-typed HybridCustody Manager")\n\n  let child = manager.borrowAccount(addr: r.nftProviderAddress) ?? panic("no child account with that address")\n  let providerCap = child.getCapability(controllerID: r.nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>())\n    ?? panic("no nft provider found")\n  let cap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n  nftCache[key] = cap\n\n  return cap\n}'),u=(e,t,n,r)=>{const i=["DUC","FUT"].includes(t.symbol);return d(e,t,n,r,i)},d=(e,t,n,r,i)=>i?"DUC"===t.symbol?y(e):b(e):r?m(e,t,n):g(e,t,n),p=(e,t,n,r)=>["DUC","FUT"].includes(t.symbol)?h(e):r?f(e):v(e),h=e=>"import DapperUtilityCoin from ".concat(e.contractAddresses.DapperUtilityCoin,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,'\n\n/// If the given nft has a support of the RoyaltyView then royalties will added as the sale cut.\ntransaction(collectionIdentifier: String, saleItemID: UInt64, saleItemPrice: UFix64, customID: String?, buyer: Address?, expiry: UInt64) {\n    let paymentReceiver: Capability<&{FungibleToken.Receiver}>\n    let collectionCap: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    let storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront\n    let nftType: Type\n\n    prepare(seller: auth(Storage, Capabilities) &Account) {\n        if seller.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            let storefront <- NFTStorefrontV2.createStorefront()\n            seller.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n            seller.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            seller.capabilities.publish(\n                seller.capabilities.storage.issue<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n        // Receiver for the sale cut.\n        self.paymentReceiver = seller.capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n        assert(self.paymentReceiver.borrow() != nil, message: "Missing or mis-typed DapperUtilityCoin receiver")\n\n        let capStoragePath = FlowtyUtils.getCapabilityStoragePath(type: catalogEntry.nftType, suffix: "CollectionProviderForFlowtyNFTStorefront")\n        let cap = seller.storage.copy<Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>>(from: capStoragePath)\n        if cap != nil && cap!.check() {\n            self.collectionCap = cap!\n        } else {\n            // clean this storage slot in case something is there already\n            seller.storage.load<AnyStruct>(from: capStoragePath)\n            self.collectionCap = seller.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath)\n            seller.storage.save(self.collectionCap, to: capStoragePath)\n        }\n\n        assert(self.collectionCap.check(), message: "collection provider is invalid")\n\n        let collection = self.collectionCap.borrow()\n            ?? panic("Could not borrow a reference to the collection")\n        let nft = collection.borrowNFT(saleItemID)\n            ?? panic("nft could not be borrowed from provider collection")\n        assert(nft.getType() == catalogEntry.nftType, message: "nftType must match type for catalog entry")\n        self.nftType = catalogEntry.nftType\n\n        self.storefront = seller.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("Missing or mis-typed NFTStorefront Storefront")\n    }\n\n    execute {\n        // check for existing listings of the NFT\n        var existingListingIDs = self.storefront.getExistingListingIDs(\n            nftType: self.nftType,\n            nftID: saleItemID\n        )\n        // remove existing listings\n        for listingID in existingListingIDs {\n            self.storefront.removeListing(listingResourceID: listingID)\n        }\n\n        // Create listing\n        self.storefront.createListing(\n            nftProviderCapability: self.collectionCap,\n            paymentReceiver: self.paymentReceiver,\n            nftType: self.nftType,\n            nftID: saleItemID,\n            salePaymentVaultType: Type<@DapperUtilityCoin.Vault>(),\n            price: saleItemPrice,\n            customID: customID,\n            expiry: UInt64(getCurrentBlock().timestamp) + expiry,\n            buyer: buyer\n        )\n    }\n}'),f=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\n/// Transaction used to facilitate the creation of the listing under the signer\'s owned storefront resource.\ntransaction(\n  collectionIdentifier: String,\n  saleItemID: UInt64,\n  saleItemPrice: UFix64,\n  customID: String?,\n  buyer: Address?,\n  expiry: UInt64,\n  nftProviderControllerID: UInt64,\n  nftProviderAddress: Address,\n  ftReceiverAddress: Address,\n  paymentTokenIdentifier: String\n) {\n    let paymentReceiver: Capability<&{FungibleToken.Receiver}>\n    let nftProvider: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    let storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront\n    let nftType: Type\n    let salePaymentVaultType: Type\n\n    prepare(seller: auth(Capabilities, Storage) &Account) {\n        self.salePaymentVaultType = CompositeType(paymentTokenIdentifier) ?? panic("invalid sale vault type")\n\n        if seller.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            // Create a new empty Storefront\n            let storefront <- NFTStorefrontV2.createStorefront()\n            // save it to the account\n            seller.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n            // create a public capability for the Storefront, first unlinking to ensure we remove anything that\'s already present\n            seller.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            seller.capabilities.publish(\n              seller.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n              at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if seller.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            seller.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = seller.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")        \n\n        let ftAddress = AddressUtils.parseAddress(self.salePaymentVaultType)!\n        let contractName = self.salePaymentVaultType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: self.salePaymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n        if ftReceiverAddress == seller.address {\n        \t\tif seller.storage.type(at: ftVaultData.storagePath) == nil {\n\t\t\t\t\t\t\t\tseller.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n\t\t\t\t\t\t\t\tseller.capabilities.unpublish(ftVaultData.receiverPath)\n\t\t\t\t\t\t\t\tseller.capabilities.unpublish(ftVaultData.metadataPath)\n\t\n\t\t\t\t\t\t\t\tseller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n\t\t\t\t\t\t\t\tseller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n            }\n\n            self.paymentReceiver = seller.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.paymentReceiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)!\n        }\n\n        assert(self.paymentReceiver.check(), message: "Missing or mis-typed token receiver")\n\n        if nftProviderAddress == seller.address {\n            let borrowType = Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()\n            if let provider = cache.getCapabilityByType(resourceType: catalogEntry.nftType, capabilityType: CapabilityType(borrowType)!) {\n                self.nftProvider = provider as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n            } else {\n                self.nftProvider = seller.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath)\n                cache.addCapability(resourceType: catalogEntry.nftType, cap: self.nftProvider)\n            }\n        } else {\n            let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftProviderAddress) ?? panic("no child account with that address")\n            let providerCap = child.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no nft provider found")\n            self.nftProvider = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n        }\n\n        assert(self.nftProvider.borrow() != nil, message: "Missing or mis-typed NFT provider")\n\n        let collection = self.nftProvider.borrow()\n            ?? panic("Could not borrow a reference to the collection")\n        let nft = collection.borrowNFT(saleItemID) ?? panic("nft could not be borrowed")\n        self.nftType = nft.getType()\n\n        self.storefront = seller.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("Missing or mis-typed NFTStorefront Storefront")\n    }\n\n    execute {\n        // check for existing listings of the NFT\n        var existingListingIDs = self.storefront.getExistingListingIDs(\n            nftType: self.nftType,\n            nftID: saleItemID\n        )\n        // remove existing listings\n        for listingID in existingListingIDs {\n            self.storefront.removeListing(listingResourceID: listingID)\n        }\n\n        // Create listing\n        self.storefront.createListing(\n            nftProviderCapability: self.nftProvider,\n            paymentReceiver: self.paymentReceiver,\n            nftType: self.nftType,\n            nftID: saleItemID,\n            salePaymentVaultType: self.salePaymentVaultType,\n            price: saleItemPrice,\n            customID: customID,\n            expiry: UInt64(getCurrentBlock().timestamp) + expiry,\n            buyer: buyer\n        )\n    }\n}'),m=(e,t,n)=>"",g=(e,t,n)=>"",v=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\n// Flowty - Sell item without the use of the NFT Catalog\n// This transaction will list an item for sale on Flowty\'s Marketplace\n// using the contract\'s NFTCollectionData metdata view.\n//\n// Importantly, if there is a conflicting link present on an account,\n// this transaction will NOT override anything already present.\ntransaction(\n    nftTypeIdentifier: String,\n    saleItemID: UInt64,\n    saleItemPrice: UFix64,\n    customID: String?,\n    buyer: Address?,\n    expiry: UInt64,\n    nftProviderControllerID: UInt64,\n    nftProviderAddress: Address,\n    ftReceiverAddress: Address,\n    paymentTokenTypeIdentifier: String,\n) {\n    let paymentReceiver: Capability<&{FungibleToken.Receiver}>\n    let collectionCap: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n    let storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront\n    let nftType: Type\n    let paymentTokenType: Type\n\n    prepare(seller: auth(Capabilities, Storage) &Account) {\n        self.nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nft type identifier")\n        self.paymentTokenType = CompositeType(paymentTokenTypeIdentifier) ?? panic("invalid payment token type identifier")\n\n        if seller.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            let storefront <- NFTStorefrontV2.createStorefront()\n            seller.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n            seller.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            seller.capabilities.publish(\n                seller.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if seller.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            seller.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = seller.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        let ftAddress = AddressUtils.parseAddress(self.paymentTokenType)!\n        let ftContractName = self.paymentTokenType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: ftContractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: self.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        let nftContractAddress = AddressUtils.parseAddress(self.nftType)!\n        let nftContractName = self.nftType.identifier.split(separator: ".")[2]\n        let c = getAccount(nftContractAddress).contracts.borrow<&{ViewResolver}>(name: nftContractName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n        let md = c.resolveContractView(resourceType: self.nftType, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n        let collectionData = md as! MetadataViews.NFTCollectionData\n\n        if ftReceiverAddress == seller.address {\n            if seller.storage.type(at: ftVaultData.storagePath) == nil {\n                seller.storage.save(<- ftVaultData.createEmptyVault(), to: ftVaultData.storagePath)\n                seller.capabilities.unpublish(ftVaultData.receiverPath)\n                seller.capabilities.unpublish(ftVaultData.metadataPath)\n\n                seller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath), at: ftVaultData.receiverPath)\n                seller.capabilities.publish(seller.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath), at: ftVaultData.metadataPath)\n            }\n\n            self.paymentReceiver = seller.capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        } else {\n            let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftReceiverAddress) ?? panic("no child account with that address")\n            self.paymentReceiver = getAccount(ftReceiverAddress).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n        }\n\n        assert(self.paymentReceiver.check(), message: "Missing or mis-typed token receiver")\n\n        if nftProviderAddress == seller.address {\n            self.collectionCap = seller.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(collectionData.storagePath)\n        } else {\n            let manager = seller.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftProviderAddress) ?? panic("no child account with that address")\n            let providerCap = child.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no nft provider found")\n            self.collectionCap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n        }\n\n        let collection = self.collectionCap.borrow()\n            ?? panic("Could not borrow a reference to the collection")\n        let nft = collection.borrowNFT(saleItemID) ?? panic("nft not found")\n        assert(self.nftType == nft.getType(), message: "borrowed nft type does not match supplied nft type")\n\n        self.storefront = seller.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("Missing or mis-typed NFTStorefront Storefront")\n    }\n\n    execute {\n        // check for existing listings of the NFT\n        var existingListingIDs = self.storefront.getExistingListingIDs(\n            nftType: self.nftType,\n            nftID: saleItemID\n        )\n        // remove existing listings\n        for listingID in existingListingIDs {\n            self.storefront.removeListing(listingResourceID: listingID)\n        }\n\n        let salePaymentVaultType = CompositeType(paymentTokenTypeIdentifier) ?? panic("invalid payment token type identifier")\n\n        // Create listing\n        self.storefront.createListing(\n            nftProviderCapability: self.collectionCap,\n            paymentReceiver: self.paymentReceiver,\n            nftType: self.nftType,\n            nftID: saleItemID,\n            salePaymentVaultType: salePaymentVaultType,\n            price: saleItemPrice,\n            customID: customID,\n            expiry: UInt64(getCurrentBlock().timestamp) + expiry,\n            buyer: buyer\n        )\n    }\n}'),y=e=>"",b=e=>"",w=e=>"",x=e=>"import NFTStorefrontV2 from ".concat(e.contractAddresses.NFTStorefrontV2,'\n\n// Remove a listing from the Flowty marketplace\ntransaction(listingResourceID: UInt64) {\n    let storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &{NFTStorefrontV2.StorefrontManager}\n\n    prepare(acct: auth(Storage) &Account) {\n        self.storefront = acct.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &{NFTStorefrontV2.StorefrontManager}>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("Missing or mis-typed NFTStorefrontV2.Storefront")\n    }\n\n    execute {\n        self.storefront.removeListing(listingResourceID: listingResourceID)\n    }\n}'),C=e=>"",A=e=>"import NFTStorefrontV2 from ".concat(e.contractAddresses.NFTStorefrontV2_Shared,'\n\ntransaction(listingResourceID: UInt64) {\n    prepare(acct: auth(BorrowValue) &Account) {\n        let storefront = acct.storage.borrow<auth(NFTStorefrontV2.RemoveListing) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("storefront not found")\n        \n        storefront.removeListing(listingResourceID: listingResourceID)\n    }\n}'),E=e=>"",_=e=>"import NFTStorefrontV2 from ".concat(e.contractAddresses.NFTStorefrontV2,'\n\n// Remove multiple listings from the Flowty marketplace\ntransaction(existingListingIDs: [UInt64]) {\n    let storefront: auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &{NFTStorefrontV2.StorefrontManager}\n    prepare(acct: auth(Storage) &Account) {\n        self.storefront = acct.storage.borrow<auth(NFTStorefrontV2.List, NFTStorefrontV2.Cancel) &{NFTStorefrontV2.StorefrontManager}>(from: NFTStorefrontV2.StorefrontStoragePath)\n            ?? panic("Missing or mis-typed NFTStorefrontV2.Storefront")\n    }\n    execute {\n        // remove existing listings\n        for listingID in existingListingIDs {\n            self.storefront.removeListing(listingResourceID: listingID)\n        }\n    }\n}')},2245:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MakeOffer=t.FLOWTYV2_CONTRACT_ADDR=void 0;const i=n(53918),o=n(75339),a=n(55712),s=n(68279),l=n(19388),c=n(65094);t.FLOWTYV2_CONTRACT_ADDR="0x3cdbb3d569211ff3";t.MakeOffer=class{constructor(e){r(this,"config",void 0),r(this,"makeOffer",(async e=>{let{nftData:t,expiry:n,ftProviderPathIdentifier:r,offerAmount:u,nftReceiverAddress:d,ftProviderAddress:p,txAvailableCallback:h,token:f,tokenIdentifier:m}=e;if(!t)throw new Error("Flow NFT it's null");const{contractAddress:g,contractName:v,id:y,type:b,nftOwner:w}=t,x=await(0,i.getCatalogEntryForType)(b,this.config),C=["DUC","FUT"].includes(f.symbol),A=(0,a.getTargetedOfferTxn)(this.config,f,t,!!x);console.debug("txContent",{txContent:A});const E={expiry:n.toString()},_=Object.entries(E).map((e=>({key:e[0],value:e[1]}))),T=[],S=this.config.crescendo?l.arg(r||"0",c.UInt64):l.arg(r,c.String);if(x&&C){const e=[l.arg(g,c.Address),l.arg(v,c.String)],r=await l.query({args:(t,n)=>e,cadence:(0,o.getCollectionPathsScript)(this.config)}),i=[l.arg(w,c.Address),l.arg(y.toString(),c.UInt64),l.arg(r.storagePath.split("/")[2],c.String),l.arg(u.toFixed(6),c.UFix64)],a=await l.query({args:(e,t)=>i,cadence:(0,s.getDWRoyaltyScript)(this.config)}),d=Object.entries(a).map((e=>({key:e[0],value:e[1]}))),p="0xe1f2a091f7bb5245";T.push(l.arg(u.toFixed(6),c.UFix64),l.arg(d,c.Dictionary({key:c.Address,value:c.UFix64})),l.arg(_,c.Dictionary({key:c.String,value:c.String})),l.arg(y.toString(),c.UInt64),l.arg(g,c.Address),l.arg(v,c.String),l.arg(r.publicPath.split("/")[2],c.String),l.arg(r.storagePath.split("/")[2],c.String),l.arg(p,c.Address),l.arg(n.toString(),c.UInt64)),this.config.crescendo&&T.push(l.arg(t.type,c.String))}else x?T.push(l.arg(x,c.String),l.arg(y.toString(),c.UInt64),l.arg(1..toString(),c.Int),l.arg(u.toFixed(6),c.UFix64),l.arg(m,c.String),l.arg(n.toString(),c.UInt64),l.arg(d,c.Address),l.arg(p,c.Address),S):T.push(l.arg(t.type,c.String),l.arg(y.toString(),c.UInt64),l.arg(1..toString(),c.Int),l.arg(u.toFixed(6),c.UFix64),l.arg(m,c.String),l.arg(n.toString(),c.UInt64),l.arg(d,c.Address),l.arg(p,c.Address),S);try{return await(0,i.sendMutation)(A,T,h)}catch(k){throw console.log("TX ERROR",k),(0,i.Err)("createStorefrontListing",k),k}})),this.config=e}}},55712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTargetedOfferTxn=void 0;t.getTargetedOfferTxn=(e,t,c,u)=>"DUC"!==t.symbol||c.contractAddress!==e.contractAddresses.TopShot||e.crescendo?"DUC"===t.symbol?e.crescendo?s(e):r(e):u?e.crescendo?a(e):i(e,t):e.crescendo?l(e):o(e,t):n(e);const n=e=>"",r=e=>"",i=(e,t)=>"",o=(e,t)=>"",a=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport Offers from ").concat(e.contractAddresses.Offers,"\nimport Filter from ").concat(e.contractAddresses.Offers,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\ntransaction(\n    collectionIdentifier: String,\n    nftID: UInt64,\n    numAcceptable: Int,\n    offeredAmount: UFix64,\n    paymentTokenIdentifier: String,\n    expiry: UInt64,\n    nftReceiverAddress: Address,\n    ftProviderAddress: Address,\n    ftProviderControllerID: UInt64\n) {\n    let storefront: auth(Offers.List) &Offers.Storefront\n    let paymentTokenType: Type\n    let nftType: Type\n    let tokenProvider: Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n    var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        let value = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier)\n            ?? panic("Collection Identifier is not in the NFT Catalog.")\n\n        if acct.storage.borrow<&Offers.Storefront>(from: Offers.OffersStoragePath) == nil {\n            let s <- Offers.createStorefront()\n            acct.storage.save(<-s, to: Offers.OffersStoragePath)\n\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{Offers.StorefrontPublic}>(Offers.OffersStoragePath),\n                at: Offers.OffersPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        self.storefront = acct.storage.borrow<auth(Offers.List) &Offers.Storefront>(from: Offers.OffersStoragePath) ?? panic("storefront not found")\n        self.paymentTokenType = CompositeType(paymentTokenIdentifier)!\n\n        let paymentTokenAddress = AddressUtils.parseAddress(self.paymentTokenType)!\n        let paymentTokenContractName = self.paymentTokenType.identifier.split(separator: ".")[2]\n        let paymentTokenContract = getAccount(paymentTokenAddress).contracts.borrow<&{ViewResolver}>(name: paymentTokenContractName)\n            ?? panic("payment token does not implement ViewResolver")\n        let ftVaultData = paymentTokenContract.resolveContractView(resourceType: self.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData\n\n        if ftProviderAddress == acct.address {\n            let borrowType = Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>()\n            if let provider = cache.getCapabilityByType(resourceType: self.paymentTokenType, capabilityType: CapabilityType(borrowType)!) {\n                self.tokenProvider = provider as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n            } else {\n                self.tokenProvider = acct.capabilities.storage.issueWithType(ftVaultData.storagePath, type: borrowType) as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n                cache.addCapability(resourceType: self.paymentTokenType, cap: self.tokenProvider)\n            }\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftProviderAddress)\n                ?? panic("fungible token provider address is not a child of this account")\n\n            let ftProviderCap = child.getCapability(controllerID: ftProviderControllerID, type: Type<&{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>())\n                ?? panic("no ft provider found in child account")\n            self.tokenProvider = ftProviderCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n        }\n        assert(self.tokenProvider.check(), message: "invalid token provider")\n\n        if nftReceiverAddress == acct.address {\n            if acct.storage.borrow<&AnyResource>(from: value.collectionData.storagePath) == nil {\n                let contractAcct = getAccount(value.contractAddress)\n                let c = contractAcct.contracts.borrow<&{ViewResolver}>(name: value.contractName)\n                    ?? panic("unable to borrow contract reference to setup collection")\n                let cd = c.resolveContractView(resourceType: value.nftType, viewType: Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                acct.storage.save(<- cd.createEmptyCollection(), to: value.collectionData.storagePath)\n            }\n\n            self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            // unlink and relink first, if it still isn\'t working, then we will try to save it!\n            if !self.collectionCap.check() {\n                // we do not unlink first because this does not come from the NFT Catalog.\n                acct.capabilities.unpublish(value.collectionData.publicPath)\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(value.collectionData.storagePath),\n                    at: value.collectionData.publicPath\n                )\n                self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            }\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child of this account")\n            let nftReceiver = getAccount(nftReceiverAddress)\n            self.collectionCap = nftReceiver.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            // We can\'t change child account links in any way\n        }\n        assert(self.collectionCap.check(), message: "invalid nft collection receiver")\n\n        self.nftType = value.nftType\n    }\n\n    execute {\n        let filter = Filter.TypeAndIDFilter(self.nftType, nftID)\n        let fg = Filter.FilterGroup([filter])\n\n        self.storefront.createOffer(\n            offeredAmount: offeredAmount,\n            paymentTokenType: self.paymentTokenType,\n            filterGroup: fg,\n            expiry: expiry,\n            numAcceptable: numAcceptable,\n            taker: nil,\n            paymentProvider: self.tokenProvider,\n            nftReceiver: self.collectionCap\n        )\n    }\n}'),s=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport OffersV2 from ").concat(e.contractAddresses.OffersV2_Dapper,"\nimport DapperOffersV2 from ").concat(e.contractAddresses.DapperOffersV2,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport Resolver from ").concat(e.contractAddresses.Resolver,"\nimport FlowtyOffersResolver from ").concat(e.contractAddresses.FlowtyOffersResolver,"\nimport StringUtils from ").concat(e.contractAddresses.StringUtils,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,'\n\ntransaction(\n    amount: UFix64,\n    royalties: {Address: UFix64},\n    offerParamsString: {String: String},\n    nftId: UInt64,\n    collectionAddress: Address,\n    collectionName: String,\n    publicPathIdentifier: String,\n    storagePathIdentifier: String,\n    proxyAddress: Address,\n    expiry: UInt64,\n    nftTypeIdentifier: String\n) {\n    var nftReceiver: Capability<&{NonFungibleToken.CollectionPublic}>\n    let dapperOffer: auth(DapperOffersV2.Manager) &DapperOffersV2.DapperOffer\n    let ducVaultRef: Capability<auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault>\n    let resolverCapability: Capability<&{Resolver.ResolverPublic}>\n    let tokenAdminCollection: Capability<auth(DapperOffersV2.ProxyManager) &DapperOffersV2.DapperOffer>\n\n    prepare(signer: auth(Storage, Capabilities) &Account, dapper: auth(Storage, Capabilities) &Account) {\n        let contractAcct = getAccount(collectionAddress)\n        let borrowedContract = contractAcct.contracts.borrow<&{NonFungibleToken}>(name: collectionName) ?? panic("collection not found")\n        let nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nftTypeIdentifier")\n\n        let storagePath = StoragePath(identifier: storagePathIdentifier)!\n        let publicPath = PublicPath(identifier: publicPathIdentifier)!\n        if signer.storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: storagePath) == nil {\n            let c <- borrowedContract.createEmptyCollection(nftType: nftType)\n            signer.storage.save(<-c, to: storagePath)\n            signer.capabilities.unpublish(publicPath)\n            signer.capabilities.publish(\n                signer.capabilities.storage.issue<&{NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic}>(storagePath),\n                at: publicPath\n            )\n        }\n\n        self.nftReceiver = signer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicPath)\n        if !self.nftReceiver.check() {\n            signer.capabilities.unpublish(publicPath)\n            signer.capabilities.publish(\n                signer.capabilities.storage.issue<&{NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic}>(storagePath),\n                at: publicPath\n            )\n            self.nftReceiver = signer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicPath)\n        }\n\n        let dapperOfferType = Type<@DapperOffersV2.DapperOffer>()\n\n        // Link the DapperOffer resource\n        if signer.storage.borrow<&DapperOffersV2.DapperOffer>(from: DapperOffersV2.DapperOffersStoragePath) == nil {\n            let dapperOffer <- DapperOffersV2.createDapperOffer()\n            signer.storage.save(<-dapperOffer, to: DapperOffersV2.DapperOffersStoragePath)\n            signer.capabilities.publish(\n                signer.capabilities.storage.issue<&{DapperOffersV2.DapperOfferPublic}>(DapperOffersV2.DapperOffersStoragePath),\n                at: DapperOffersV2.DapperOffersPublicPath\n            )\n\n            let managerStoragePath = /storage/flowtyDapperOfferManager\n            let cap = signer.storage.copy<Capability<auth(DapperOffersV2.Manager) &{DapperOffersV2.DapperOfferManager}>>(from: managerStoragePath)\n            if cap?.check() != true {\n                let managerCap = signer.capabilities.storage.issue<auth(DapperOffersV2.Manager) &{DapperOffersV2.DapperOfferManager}>(DapperOffersV2.DapperOffersStoragePath)\n                signer.storage.save(managerCap, to: managerStoragePath)\n            }\n        }\n\n        // DapperOfferProxyManager Setup\n        let proxyStoragePath = /storage/flowtyDapperOfferProxy\n        let copiedProxy = signer.storage.copy<Capability<auth(DapperOffersV2.ProxyManager) &DapperOffersV2.DapperOffer>>(from: proxyStoragePath)\n        if copiedProxy?.check() == true {\n            self.tokenAdminCollection = copiedProxy!\n        } else {\n            self.tokenAdminCollection = signer.capabilities.storage.issue<auth(DapperOffersV2.ProxyManager) &DapperOffersV2.DapperOffer>(DapperOffersV2.DapperOffersStoragePath)\n            signer.storage.load<AnyStruct>(from: proxyStoragePath)\n            signer.storage.save(self.tokenAdminCollection, to: proxyStoragePath)\n        }\n\n        if dapper.storage.borrow<&DapperOffersV2.DapperOffer>(from: DapperOffersV2.DapperOffersStoragePath) == nil {\n            let dapperOffer <- DapperOffersV2.createDapperOffer()\n            dapper.storage.save(<-dapperOffer, to: DapperOffersV2.DapperOffersStoragePath)\n            dapper.capabilities.publish(\n                dapper.capabilities.storage.issue<&{DapperOffersV2.DapperOfferPublic}>(DapperOffersV2.DapperOffersStoragePath),\n                at: DapperOffersV2.DapperOffersPublicPath\n            )\n\n            let proxyManagerStoragePath = /storage/dapperProxyManager\n            let proxyCap = dapper.capabilities.storage.issue<auth(DapperOffersV2.ProxyManager) &{DapperOffersV2.DapperOfferManager, DapperOffersV2.DapperOfferProxyManager}>(DapperOffersV2.DapperOffersStoragePath)\n            dapper.storage.save(proxyCap, to: proxyManagerStoragePath)\n        }\n\n        // Setup Proxy Cancel for Dapper\n        let capabilityReceiver = dapper.capabilities.get<&{DapperOffersV2.DapperOfferPublic}>(/public/DapperOffersV2).borrow()\n            ?? panic("Could not borrow capability receiver reference")\n        capabilityReceiver.addProxyCapability(account: signer.address, cap: self.tokenAdminCollection)\n\n        // Get the capability to the offer creators NFT collection\n        self.nftReceiver = signer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(publicPath)\n        assert(self.nftReceiver.check(), message: "Missing or mis-typed collection receiver")\n\n        self.dapperOffer = signer.storage.borrow<auth(DapperOffersV2.Manager) &DapperOffersV2.DapperOffer>(from: DapperOffersV2.DapperOffersStoragePath)\n            ?? panic("Missing or mis-typed DapperOffersV2.DapperOffer")\n        // Get the capability to the DUC vault\n\n        let ducCapStoragePath = /storage/flowtyDucProvider\n        let copiedDucProvider = dapper.storage.copy<Capability<auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault>>(from: ducCapStoragePath)\n        if copiedDucProvider?.check() == true {\n            self.ducVaultRef = copiedDucProvider!\n        } else {\n            self.ducVaultRef = dapper.capabilities.storage.issue<auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault>(/storage/dapperUtilityCoinVault)\n            dapper.storage.save(self.ducVaultRef, to: ducCapStoragePath)\n        }\n\n        assert(self.ducVaultRef.check() != nil, message: "Missing or mis-typed DapperUtilityCoin provider")\n        self.resolverCapability = FlowtyOffersResolver.getResolverCap()\n    }\n\n    execute {\n        var royaltysList: [OffersV2.Royalty] = []\n        for k in royalties.keys {\n            royaltysList.append(OffersV2.Royalty(\n                receiver: getAccount(k).capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver),\n                amount: royalties[k]!\n            ))\n        }\n\n        let str = collectionAddress.toString()\n        let typeId = StringUtils.join(["A", str.slice(from: 2, upTo: str.length), collectionName, "NFT"], ".")\n\n        offerParamsString.insert(key: "nftId", nftId.toString())\n        offerParamsString.insert(key: "resolver", FlowtyOffersResolver.ResolverType.NFT.rawValue.toString())\n        offerParamsString.insert(key: "_type", "NFT")\n        offerParamsString.insert(key: "typeId", typeId)\n\n        let offerParamsUInt64: {String: UInt64} = { "expiry": expiry }\n\n        self.dapperOffer.createOffer(\n            vaultRefCapability: self.ducVaultRef,\n            nftReceiverCapability: self.nftReceiver,\n            nftType: CompositeType(typeId)!,\n            amount: amount,\n            royalties: royaltysList,\n            offerParamsString: offerParamsString,\n            offerParamsUFix64: {},\n            offerParamsUInt64: offerParamsUInt64,\n            resolverCapability: self.resolverCapability\n        )\n    }\n}'),l=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport StringUtils from ").concat(e.contractAddresses.StringUtils,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport Offers from ").concat(e.contractAddresses.Offers,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport Filter from ").concat(e.contractAddresses.Offers,"\nimport CapabilityCache from ").concat(e.contractAddresses.CapabilityCache,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,'\n\ntransaction(\n    nftTypeIdentifier: String,\n    nftID: UInt64,\n    numAcceptable: Int,\n    offeredAmount: UFix64,\n    paymentTokenIdentifier: String,\n    expiry: UInt64,\n    nftReceiverAddress: Address,\n    ftProviderAddress: Address,\n    ftProviderControllerID: UInt64\n) {\n    let storefront: auth(Offers.List) &Offers.Storefront\n    let paymentTokenType: Type\n    let nftType: Type\n    let tokenProvider: Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n    var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(acct: auth(Capabilities, Storage) &Account) {\n        self.nftType = CompositeType(nftTypeIdentifier) ?? panic("invalid nft type identifier")\n        let collectionAddress = AddressUtils.parseAddress(self.nftType) ?? panic("no address found in nftType")\n        let collectionName = nftTypeIdentifier.split(separator: ".")[2]\n    \n        let contractAcct = getAccount(collectionAddress)\n        let nftContract = contractAcct.contracts.borrow<&{ViewResolver}>(name: collectionName) ?? panic("collection not found")\n        let collectionData = (\n            nftContract.resolveContractView(resourceType: self.nftType, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("collection does not implement NFTCollectionData Metadata View")\n        ) as! MetadataViews.NFTCollectionData\n\n        if acct.storage.borrow<&Offers.Storefront>(from: Offers.OffersStoragePath) == nil {\n            let s <- Offers.createStorefront()\n            acct.storage.save(<-s, to: Offers.OffersStoragePath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{Offers.StorefrontPublic}>(Offers.OffersStoragePath),\n                at: Offers.OffersPublicPath\n            )\n        }\n\n        let namespace = "flowty"\n        let cacheStoragePath = CapabilityCache.getPathForCache(namespace)\n        if acct.storage.borrow<&CapabilityCache.Cache>(from: cacheStoragePath) == nil {\n            let c <- CapabilityCache.createCache(namespace: namespace)\n            acct.storage.save(<-c, to: cacheStoragePath)\n        }\n        let cache = acct.storage.borrow<auth(CapabilityCache.Add, CapabilityCache.Get) &CapabilityCache.Cache>(from: cacheStoragePath)\n            ?? panic("capability cache not found")\n\n        self.storefront = acct.storage.borrow<auth(Offers.List) &Offers.Storefront>(from: Offers.OffersStoragePath) ?? panic("storefront not found")\n        self.paymentTokenType = CompositeType(paymentTokenIdentifier)!\n\n        let paymentTokenAddress = AddressUtils.parseAddress(self.paymentTokenType)!\n        let paymentTokenContractName = self.paymentTokenType.identifier.split(separator: ".")[2]\n        let paymentTokenContract = getAccount(paymentTokenAddress).contracts.borrow<&{ViewResolver}>(name: paymentTokenContractName)\n            ?? panic("payment token does not implement ViewResolver")\n        let ftVaultData = paymentTokenContract.resolveContractView(resourceType: self.paymentTokenType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData\n\n        if ftProviderAddress == acct.address {\n            let borrowType = Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>()\n            if let provider = cache.getCapabilityByType(resourceType: self.paymentTokenType, capabilityType: CapabilityType(borrowType)!) {\n                self.tokenProvider = provider as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n            } else {\n                self.tokenProvider = acct.capabilities.storage.issueWithType(ftVaultData.storagePath, type: borrowType) as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n                cache.addCapability(resourceType: self.paymentTokenType, cap: self.tokenProvider)\n            }\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: ftProviderAddress) ?? panic("fungible token provider address is not a child of this account")\n            let ftProviderCap = child.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>())\n                ?? panic("no ft provider found in child account")\n            self.tokenProvider = ftProviderCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider, FungibleToken.Balance, FungibleToken.Receiver}>\n        }\n        assert(self.tokenProvider.check(), message: "invalid token provider")\n\n        if nftReceiverAddress == acct.address {\n            if acct.storage.borrow<&AnyResource>(from: collectionData.storagePath) == nil {\n                acct.storage.save(<- collectionData.createEmptyCollection(), to: collectionData.storagePath)\n            }\n\n            self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n            if !self.collectionCap.check() {\n                // we do not unlink first because this does not come from the NFT Catalog.\n                acct.capabilities.publish(\n                    acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(collectionData.storagePath),\n                    at: collectionData.publicPath\n                )\n                self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n            }\n        } else {\n            let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("Missing or mis-typed HybridCustody Manager")\n\n            let child = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child of this account")\n            let nftReceiver = getAccount(nftReceiverAddress)\n            self.collectionCap = nftReceiver.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n            // We can\'t change child account links in any way\n        }\n        assert(self.collectionCap.check(), message: "invalid nft collection receiver")\n    }\n\n    execute {\n        let filter = Filter.TypeAndIDFilter(self.nftType, nftID)\n        let fg = Filter.FilterGroup([filter])\n\n        self.storefront.createOffer(\n            offeredAmount: offeredAmount,\n            paymentTokenType: self.paymentTokenType,\n            filterGroup: fg,\n            expiry: expiry,\n            numAcceptable: numAcceptable,\n            taker: nil,\n            paymentProvider: self.tokenProvider,\n            nftReceiver: self.collectionCap\n        )\n    }\n}')},38769:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontPurchase=t.InvalidListingMessage=void 0;const i=n(53918),o=n(27263),a=n(19388),s=n(65094);t.InvalidListingMessage="Uh oh! This listing is no longer valid. Our system is working on removing it from the marketplace.";t.StorefrontPurchase=class{constructor(e){r(this,"config",void 0),r(this,"purchaseStorefrontListing",(async e=>{let{listing:n,token:r,nftReceiverAddress:l,ftProviderAddress:c,privateFTPath:u,txAvailableCallback:d}=e;const{commissionReceivers:p,listingResourceID:h,storefrontAddress:f,type:m,nftType:g,paymentTokenName:v}=n;let y=this.config.contractAddresses.NFTStorefrontV2;p&&!p.includes(y)&&p[0]&&([y]=p),console.log("purchaseStorefrontListing",{commissionReceiver:y,commissionReceivers:p});if(!await(0,i.validateListing)(n,this.config.apiURL))throw new Error(t.InvalidListingMessage);const b=await(0,i.getCatalogEntryForType)(g,this.config),w=(0,o.getStorefrontPurchaseTxn)(this.config,!!b,m,r),x=this.config.crescendo?a.arg(u||"0",s.UInt64):a.arg(u,s.String),C=[a.arg(f,s.Address),a.arg(h.toString(),s.UInt64),a.arg(y,s.Address)];b?(C.push(a.arg(b,s.String)),C.push(a.arg(l,s.Address)),["DUC","FUT"].includes(v)||(C.push(a.arg(c,s.Address)),C.push(x))):(C.push(a.arg(l,s.Address)),C.push(a.arg(c,s.Address)),C.push(x)),console.debug("storefront purchase txn",{txArgs:C,txContent:w});try{return await(0,i.sendMutation)(w,C,d)}catch(A){throw console.log("TX ERROR",A),(0,i.Err)("createStorefrontListing",A),A}})),this.config=e}}},27263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorefrontPurchaseTxn=void 0;const r=n(10514);t.getStorefrontPurchaseTxn=(e,t,n,a)=>{const s=(0,r.formatAddress)(n.split(".")[1]);if(s===e.contractAddresses.NFTStorefrontV2)return i(e,t,a);if(s===e.contractAddresses.NFTStorefrontV2_Shared)return o(e,t,a);throw new Error("invalid listing type")};const i=(e,t,n)=>"DUC"===n.symbol?e.crescendo?v(e):a(e):t?e.crescendo?h(e):s(e,n):e.crescendo?f(e):l(e,n),o=(e,t,n)=>"DUC"===n.symbol?e.crescendo?g(e):c(e):t?e.crescendo?m(e):u(e,n):e.crescendo?p(e):d(e,n),a=e=>"",s=(e,t)=>"",l=(e,t)=>"",c=e=>"",u=(e,t)=>"",d=(e,t)=>"",p=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2_Shared,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\n/// Transaction facilitates the purchase of listed NFT.\n/// It takes the storefront address, listing resource that need\n/// to be purchased & a address that will takeaway the commission.\ntransaction(\n  storefrontAddress: Address,\n  listingResourceID: UInt64,\n  commissionRecipient: Address,\n  nftReceiverAddress: Address,\n  paymentAddress: Address,\n  ftControllerId: UInt64\n) {\n    let paymentVault: @{FungibleToken.Vault}\n    let collection: &{NonFungibleToken.CollectionPublic}\n    let storefront: &{NFTStorefrontV2.StorefrontPublic}\n    let listing: &{NFTStorefrontV2.ListingPublic}\n    var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n    let collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(acct: auth(Storage, Capabilities) &Account) {\n        if acct.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            let storefront <- NFTStorefrontV2.createStorefront()\n            acct.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n            acct.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            acct.capabilities.publish(\n              acct.capabilities.storage.issue<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontStoragePath),\n              at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        self.commissionRecipientCap = nil\n        self.storefront = getAccount(storefrontAddress).capabilities.get<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontPublicPath).borrow()\n            ?? panic("Could not borrow Storefront from provided address")\n        assert(self.storefront.getType() == Type<@NFTStorefrontV2.Storefront>(), message: "unexpected storefront type")\n\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("No Offer with that ID in Storefront")\n        let listingDetails = self.listing.getDetails()\n        let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n        let md = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n        let collectionData = md as! MetadataViews.NFTCollectionData\n\n        if nftReceiverAddress == acct.address {\n          self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n\n          // unlink and relink first, if it still isn\'t working, then we will try to save it!\n          if !self.collectionCap.check() {\n            if acct.storage.borrow<&AnyResource>(from: collectionData.storagePath) == nil {\n              // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n              // if it is not already configured.\n              let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n              acct.storage.save(<- collectionData.createEmptyCollection(), to: collectionData.storagePath)\n            }\n\n            acct.capabilities.unpublish(collectionData.publicPath)\n            acct.capabilities.publish(\n              acct.capabilities.storage.issue<&{NonFungibleToken.Collection}>(collectionData.storagePath),\n              at: collectionData.publicPath\n            )\n          }\n        } else {\n          // signer is the parent account and nftReceiver is child Account\n          // get the manager resource and borrow proxyAccount\n          let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n          let childAcct = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child account")\n          self.collectionCap = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n        }\n\n        // Access the acct or child\'s NFT collection to store the purchased NFT.\n        assert(self.collectionCap.check(), message: "Cannot borrow NFT collection receiver")\n        self.collection = self.collectionCap.borrow()!\n\n        let ftAddress = AddressUtils.parseAddress(listingDetails.salePaymentVaultType)!\n        let contractName = listingDetails.salePaymentVaultType.identifier.split(separator: ".")[2]\n        let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n            ?? panic("could not borrow fungible token contract")\n\n        let ftVaultData = ftContract.resolveContractView(resourceType: listingDetails.salePaymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n\n        if paymentAddress == acct.address {\n          let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n            ?? panic("Cannot borrow token vault from acct storage")\n          self.paymentVault <- vault.withdraw(amount: listingDetails.salePrice)\n        } else {\n          // signer is the parent account and ftProvider is child Account\n          // get the manager resource and borrow proxyAccount\n          let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n          let childAcct = manager.borrowAccount(addr: paymentAddress) ?? panic("ftProvider account not found")\n\n          let providerCap = childAcct.getCapability(controllerID: ftControllerId, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>()) ?? panic("token provider not found for supplied child account address")\n          let ftProvider = providerCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n          let ftProviderVault = ftProvider.borrow() ?? panic("child account token vault could not be borrowed")\n          self.paymentVault <- ftProviderVault.withdraw(amount: listingDetails.salePrice)\n        }\n\n        if commissionRecipient != nil && listingDetails.commissionAmount != 0.0 {\n            // Access the capability to receive the commission.\n            let _commissionRecipientCap = getAccount(commissionRecipient).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n            assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have token receiving capability")\n            self.commissionRecipientCap = _commissionRecipientCap\n        } else if listingDetails.commissionAmount == 0.0 {\n            self.commissionRecipientCap = nil\n        } else {\n            panic("Commission recipient can not be empty when commission amount is non zero")\n        }\n    }\n\n    execute {\n        // Purchase the NFT\n        let item <- self.listing.purchase(\n            payment: <-self.paymentVault,\n            commissionRecipient: self.commissionRecipientCap,\n        )\n        // Deposit the NFT in the acct\'s collection.\n        self.collection.deposit(token: <-item)\n    }\n}'),h=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\n/// Storefront purchase txn that can route nfts to a child, and take tokens from a child to pay\ntransaction(\n    storefrontAddress: Address,\n    listingResourceID: UInt64,\n    commissionRecipient: Address,\n    collectionIdentifier: String,\n    nftReceiverAddress: Address,\n    ftProviderAddress: Address,\n    ftProviderControllerID: UInt64\n) {\n  let paymentVault: @{FungibleToken.Vault}\n  let collection: &{NonFungibleToken.CollectionPublic}\n  let storefront: &{NFTStorefrontV2.StorefrontPublic}\n  let listing: &{NFTStorefrontV2.ListingPublic}\n  var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n  var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n  let listingAcceptor: auth(NFTStorefrontV2.Acceptor) &{NFTStorefrontV2.PrivateListingAcceptor}\n\n  prepare(acct: auth(Storage, Capabilities) &Account) {\n    if acct.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n        let storefront <- NFTStorefrontV2.createStorefront()\n        acct.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n        acct.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n        acct.capabilities.publish(\n            acct.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n            at: NFTStorefrontV2.StorefrontPublicPath\n        )\n    }\n\n    self.listingAcceptor = acct.storage.borrow<auth(NFTStorefrontV2.Acceptor) &{NFTStorefrontV2.PrivateListingAcceptor}>(from: NFTStorefrontV2.StorefrontStoragePath) ?? panic("Buyer storefront is invalid")\n\n    let value = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n    self.commissionRecipientCap = nil\n    // Access the storefront public resource of the seller to purchase the listing.\n    self.storefront = getAccount(storefrontAddress).capabilities.get<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontPublicPath).borrow()\n        ?? panic("Could not borrow Storefront from provided address")\n\n    // Borrow the listing\n    self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n        ?? panic("Listing not found")\n    let listingDetails = self.listing.getDetails()\n    let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n    if nftReceiverAddress == acct.address {\n        self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n        // unlink and relink first, if it still isn\'t working, then we will try to save it!\n        if !self.collectionCap.check() {\n            if acct.storage.borrow<&AnyResource>(from: value.collectionData.storagePath) == nil {\n                // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n                // if it is not already configured.\n                let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                acct.storage.save(<- collectionData.createEmptyCollection(), to: value.collectionData.storagePath)\n            }\n\n            acct.capabilities.unpublish(value.collectionData.publicPath)\n            acct.capabilities.publish(\n                acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(value.collectionData.storagePath),\n                at: value.collectionData.publicPath\n            )\n            self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n        }\n    } else {\n        // signer is the parent account and nftProvider is child Account\n        // get the manager resource and borrow proxyAccount\n        let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n        let childAcct = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child account")\n        self.collectionCap = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n        // We can\'t change child account links in any way\n    }\n\n    // Access the acct or child\'s NFT collection to store the purchased NFT.\n    self.collection = self.collectionCap.borrow() ?? panic("Cannot borrow NFT collection receiver")\n\n    let paymentTokenAddress = AddressUtils.parseAddress(listingDetails.salePaymentVaultType)!\n    let paymentTokenContractName = listingDetails.salePaymentVaultType.identifier.split(separator: ".")[2]\n    let paymentTokenContract = getAccount(paymentTokenAddress).contracts.borrow<&{ViewResolver}>(name: paymentTokenContractName)\n        ?? panic("payment token does not implement ViewResolver")\n    let ftVaultData = paymentTokenContract.resolveContractView(resourceType: listingDetails.salePaymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData\n\n    // Access the vault of the buyer/child to pay the sale price of the listing.\n    if ftProviderAddress == acct.address{\n      let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n        ?? panic("Cannot borrow token vault from acct storage")\n      self.paymentVault <- vault.withdraw(amount: listingDetails.salePrice)\n    } else {\n      // signer is the parent account and ftProvider is child Account\n      // get the manager resource and borrow proxyAccount\n      let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: ftProviderAddress) ?? panic("ftProvider account not found")\n\n      let providerCap = childAcct.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>())\n        ?? panic("token provider not found for supplied child account address")\n      let ftProvider = providerCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n      let ftProviderVault = ftProvider.borrow() ?? panic("child account token vault could not be borrowed")\n      self.paymentVault <- ftProviderVault.withdraw(amount: listingDetails.salePrice)\n    }\n\n    if commissionRecipient != nil && listingDetails.commissionAmount != 0.0 {\n      // Access the capability to receive the commission.\n      let _commissionRecipientCap = getAccount(commissionRecipient).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n      assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have token receiving capability")\n      self.commissionRecipientCap = _commissionRecipientCap\n    } else if listingDetails.commissionAmount == 0.0 {\n      self.commissionRecipientCap = nil\n    } else {\n      panic("Commission recipient can not be empty when commission amount is non zero")\n    }\n  }\n\n  execute {\n    // Purchase the NFT\n    let item <- self.listing.purchase(\n      payment: <-self.paymentVault,\n      commissionRecipient: self.commissionRecipientCap,\n      privateListingAcceptor: self.listingAcceptor\n    )\n    // Deposit the NFT in the buyer\'s collection.\n    self.collection.deposit(token: <-item)\n  }\n}'),f=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\n/// Transaction facilitates the purchase of listed NFT.\n/// It takes the storefront address, listing resource that need\n/// to be purchased & a address that will receive the commission.\ntransaction(\n    storefrontAddress: Address,\n    listingResourceID: UInt64,\n    commissionRecipient: Address,\n    nftReceiverAddress: Address,\n    paymentAddress: Address,\n    paymentProviderControllerID: UInt64\n) {\n    let paymentVault: @{FungibleToken.Vault}\n    let collection: &{NonFungibleToken.CollectionPublic}\n    let storefront: &{NFTStorefrontV2.StorefrontPublic}\n    let listing: &{NFTStorefrontV2.ListingPublic}\n    var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n    let listingAcceptor: auth(NFTStorefrontV2.Acceptor) &{NFTStorefrontV2.PrivateListingAcceptor}\n    var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(buyer: auth(Capabilities, Storage) &Account) {\n        if buyer.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            // Create a new empty Storefront\n            let storefront <- NFTStorefrontV2.createStorefront()\n            // save it to the account\n            buyer.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n            // create a public capability for the Storefront, first unlinking to ensure we remove anything that\'s already present\n            buyer.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            buyer.capabilities.publish(\n                buyer.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        self.listingAcceptor = buyer.storage.borrow<auth(NFTStorefrontV2.Acceptor) &{NFTStorefrontV2.PrivateListingAcceptor}>(from: NFTStorefrontV2.StorefrontStoragePath) ?? panic("Buyer storefront is invalid")\n\n        self.commissionRecipientCap = nil\n        // Access the storefront public resource of the seller to purchase the listing.\n        self.storefront = getAccount(storefrontAddress)\n            .capabilities.get<&{NFTStorefrontV2.StorefrontPublic}>(\n                NFTStorefrontV2.StorefrontPublicPath\n            ).borrow()\n            ?? panic("Could not borrow Storefront from provided address")\n\n        // Borrow the listing\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("No Offer with that ID in Storefront")\n        let listingDetails = self.listing.getDetails()\n        let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n        let md = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n        let collectionData = md as! MetadataViews.NFTCollectionData\n\n        if nftReceiverAddress == buyer.address {\n            self.collectionCap = buyer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n\n            // unlink and relink first, if it still isn\'t working, then we will try to save it!\n            if !self.collectionCap.check() {\n                if buyer.storage.borrow<&AnyResource>(from: collectionData.storagePath) == nil {\n                    // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n                    // if it is not already configured.\n                    let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                    buyer.storage.save(<- collectionData.createEmptyCollection(), to: collectionData.storagePath)\n                }\n\n                buyer.capabilities.unpublish(collectionData.publicPath)\n                buyer.capabilities.publish(\n                    buyer.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(collectionData.storagePath),\n                    at: collectionData.publicPath\n                )\n            }\n            self.collectionCap = buyer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n        } else {\n            // signer is the parent account and nftProvider is child Account\n            // get the manager resource and borrow proxyAccount\n            let manager = buyer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: nftReceiverAddress)\n                ?? panic("nft receiver address is not a child account")\n            self.collectionCap = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath)\n            // We can\'t change child account links in any way\n        }\n\n        // Access the buyer or child\'s NFT collection to store the purchased NFT.\n        assert(self.collectionCap.check(), message: "Cannot borrow NFT collection receiver")\n        self.collection = self.collectionCap.borrow()!\n\n        let paymentTokenAddress = AddressUtils.parseAddress(listingDetails.salePaymentVaultType)!\n        let paymentTokenContractName = listingDetails.salePaymentVaultType.identifier.split(separator: ".")[2]\n        let paymentTokenContract = getAccount(paymentTokenAddress).contracts.borrow<&{ViewResolver}>(name: paymentTokenContractName)\n            ?? panic("payment token does not implement ViewResolver")\n        let ftVaultData = paymentTokenContract.resolveContractView(resourceType: listingDetails.salePaymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData\n\n        if paymentAddress == buyer.address {\n            let vault = buyer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n                ?? panic("Cannot borrow token vault from acct storage")\n            self.paymentVault <- vault.withdraw(amount: listingDetails.salePrice)\n        } else {\n          // signer is the parent account and ftProvider is child Account\n          // get the manager resource and borrow proxyAccount\n          let manager = buyer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n            ?? panic("manager does not exist")\n          let childAcct = manager.borrowAccount(addr: paymentAddress) ?? panic("ftProvider account not found")\n\n          let providerCap = childAcct.getCapability(controllerID: paymentProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>())\n            ?? panic("token provider not found for supplied child account address")\n          let ftProvider = providerCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n          assert(ftProvider.check(), message: "invalid provider capability")\n          let ftProviderVault = ftProvider.borrow() ?? panic("child account token vault could not be borrowed")\n          self.paymentVault <- ftProviderVault.withdraw(amount: listingDetails.salePrice)\n        }\n\n        if commissionRecipient != nil && listingDetails.commissionAmount != 0.0 {\n            // Access the capability to receive the commission.\n            let _commissionRecipientCap = getAccount(commissionRecipient).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n            assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have receiving capability")\n            self.commissionRecipientCap = _commissionRecipientCap\n        } else if listingDetails.commissionAmount == 0.0 {\n            self.commissionRecipientCap = nil\n        } else {\n            panic("Commission recipient can not be empty when commission amount is non zero")\n        }\n    }\n\n    execute {\n        // Purchase the NFT\n        let item <- self.listing.purchase(\n            payment: <-self.paymentVault,\n            commissionRecipient: self.commissionRecipientCap,\n            privateListingAcceptor: self.listingAcceptor\n        )\n        // Deposit the NFT in the buyer\'s collection.\n        self.collection.deposit(token: <-item)\n    }\n}'),m=e=>"import FungibleToken from ".concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2_Shared,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,"\nimport FungibleTokenMetadataViews from ").concat(e.contractAddresses.FungibleTokenMetadataViews,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\n// Shared Storefront purchase txn that can route nfts to a child, and take tokens from a child to pay\ntransaction(\n  storefrontAddress: Address,\n  listingResourceID: UInt64,\n  commissionRecipient: Address,\n  collectionIdentifier: String,\n  nftReceiverAddress: Address,\n  ftProviderAddress: Address,\n  ftProviderControllerID: UInt64\n) {\n  let paymentVault: @{FungibleToken.Vault}\n  let collection: &{NonFungibleToken.CollectionPublic}\n  let storefront: &{NFTStorefrontV2.StorefrontPublic}\n  let listing: &{NFTStorefrontV2.ListingPublic}\n  var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n  var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n  prepare(acct: auth(Storage, Capabilities) &Account) {\n    if acct.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n      let storefront <- NFTStorefrontV2.createStorefront()\n      acct.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n\n      acct.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n      acct.capabilities.publish(\n        acct.capabilities.storage.issue<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontStoragePath),\n        at: NFTStorefrontV2.StorefrontPublicPath\n      )\n    }\n\n    let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n    self.commissionRecipientCap = nil\n    // Access the storefront public resource of the seller to purchase the listing.\n    self.storefront = getAccount(storefrontAddress).capabilities.get<&{NFTStorefrontV2.StorefrontPublic}>(NFTStorefrontV2.StorefrontPublicPath).borrow()\n      ?? panic("Could not borrow Storefront from provided address")\n    assert(self.storefront.getType() == Type<@NFTStorefrontV2.Storefront>(), message: "unexpected storefront type")\n\n    // Borrow the listing\n    self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n      ?? panic("Listing not found")\n    let listingDetails = self.listing.getDetails()\n\n    let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n    if nftReceiverAddress == acct.address {\n      self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.publicPath)\n\n      // unlink and relink first, if it still isn\'t working, then we will try to save it!\n      if !self.collectionCap.check() {\n        if acct.storage.borrow<&AnyResource>(from: catalogEntry.collectionData.storagePath) == nil {\n          // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n          // if it is not already configured.\n          let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n          acct.storage.save(<- collectionData.createEmptyCollection(), to: catalogEntry.collectionData.storagePath)\n        }\n\n        acct.capabilities.unpublish(catalogEntry.collectionData.publicPath)\n        acct.capabilities.publish(\n          acct.capabilities.storage.issue<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.storagePath),\n          at: catalogEntry.collectionData.publicPath\n        )\n         self.collectionCap = acct.capabilities.get<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.publicPath)\n      }\n    } else {\n      // signer is the parent account and nftProvider is child Account\n      // get the manager resource and borrow proxyAccount\n      let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child account")\n      self.collectionCap = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.publicPath)\n      // We can\'t change child account links in any way\n    }\n\n    // Access the buyer or child\'s NFT collection to store the purchased NFT.\n    self.collection = self.collectionCap.borrow() ?? panic("Cannot borrow NFT collection receiver")\n\n    // Access the vault of the buyer/child to pay the sale price of the listing.\n    let ftAddress = AddressUtils.parseAddress(listingDetails.salePaymentVaultType)!\n    let contractName = listingDetails.salePaymentVaultType.identifier.split(separator: ".")[2]\n    let ftContract = getAccount(ftAddress).contracts.borrow<&{FungibleToken}>(name: contractName)\n        ?? panic("could not borrow fungible token contract")\n\n    let ftVaultData = ftContract.resolveContractView(resourceType: listingDetails.salePaymentVaultType, viewType: Type<FungibleTokenMetadataViews.FTVaultData>())! as! FungibleTokenMetadataViews.FTVaultData \n    if ftProviderAddress == acct.address {\n      let vault = acct.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: ftVaultData.storagePath)\n        ?? panic("Cannot borrow token vault from acct storage")\n      self.paymentVault <- vault.withdraw(amount: listingDetails.salePrice)\n    } else {\n      // signer is the parent account and ftProvider is child Account\n      // get the manager resource and borrow proxyAccount\n      let manager = acct.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: ftProviderAddress) ?? panic("ftProvider account not found")\n\n      let providerCap = childAcct.getCapability(controllerID: ftProviderControllerID, type: Type<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>()) ?? panic("token provider not found for supplied child account address")\n      let ftProvider = providerCap as! Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>\n      let ftProviderVault = ftProvider.borrow() ?? panic("child account token vault could not be borrowed")\n      self.paymentVault <- ftProviderVault.withdraw(amount: listingDetails.salePrice)\n    }\n\n    if commissionRecipient != nil && listingDetails.commissionAmount != 0.0 {\n      // Access the capability to receive the commission.\n      let _commissionRecipientCap = getAccount(commissionRecipient).capabilities.get<&{FungibleToken.Receiver}>(ftVaultData.receiverPath)\n      assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have token receiving capability")\n      self.commissionRecipientCap = _commissionRecipientCap\n    } else if listingDetails.commissionAmount == 0.0 {\n      self.commissionRecipientCap = nil\n    } else {\n      panic("Commission recipient can not be empty when commission amount is non zero")\n    }\n  }\n\n  execute {\n    // Purchase the NFT\n    let item <- self.listing.purchase(\n      payment: <-self.paymentVault,\n      commissionRecipient: self.commissionRecipientCap\n    )\n    // Deposit the NFT in the buyer\'s (or child\'s) collection.\n    self.collection.deposit(token: <-item)\n  }\n}'),g=e=>"import DapperUtilityCoin from ".concat(e.contractAddresses.DapperUtilityCoin,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2_Shared,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\n// Purchase an item from the shared storefront, a contract maintained by the Flow Foundation\ntransaction(storefrontAddress: Address, listingResourceID: UInt64, commissionRecipient: Address, collectionIdentifier: String, nftReceiverAddress: Address) {\n    let paymentVault: @{FungibleToken.Vault}\n    let collection: &{NonFungibleToken.CollectionPublic}\n    let storefront: &NFTStorefrontV2.Storefront\n    let listing: &{NFTStorefrontV2.ListingPublic}\n    var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n    let balanceBeforeTransfer: UFix64\n    let mainPaymentVault: auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault\n    var collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n\n    prepare(dapper: auth(BorrowValue) &Account, buyer: auth(Storage, Capabilities) &Account) {\n        if buyer.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            let storefront <- NFTStorefrontV2.createStorefront()\n            buyer.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n            // create a public capability for the Storefront, first unlinking to ensure we remove anything that\'s already present\n            buyer.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            buyer.capabilities.publish(\n                buyer.capabilities.storage.issue<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        let value = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n        self.commissionRecipientCap = nil\n        // Access the storefront public resource of the seller to purchase the listing.\n        self.storefront = getAccount(storefrontAddress).capabilities.get<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontPublicPath).borrow()\n            ?? panic("Could not borrow Storefront from provided address")\n\n        // Borrow the listing\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n          ?? panic("Listing could not be found")\n        let listingDetails = self.listing.getDetails()\n        let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n        if nftReceiverAddress == buyer.address {\n            self.collectionCap = buyer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n\n            // unlink and relink first, if it still isn\'t working, then we will try to save it!\n            if !self.collectionCap.check() {\n                if buyer.storage.borrow<&AnyResource>(from: value.collectionData.storagePath) == nil {\n                    // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n                    // if it is not already configured.\n                    let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                    buyer.storage.save(<- collectionData.createEmptyCollection(), to: value.collectionData.storagePath)\n\n                    buyer.capabilities.unpublish(value.collectionData.publicPath)\n                    buyer.capabilities.publish(\n                        buyer.capabilities.storage.issue<&{NonFungibleToken.Collection}>(value.collectionData.storagePath),\n                        at: value.collectionData.publicPath\n                    )\n                }\n                self.collectionCap = buyer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            }\n        } else {\n            let nftReceiver = getAccount(nftReceiverAddress)\n            let manager = buyer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child account")\n            self.collectionCap = nftReceiver.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            // We can\'t change child account links in any way\n        }\n\n        if !self.collectionCap.check() {\n            if buyer.storage.borrow<&AnyResource>(from: value.collectionData.storagePath) == nil {\n                // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n                // if it is not already configured.\n                let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                buyer.storage.save(<-collectionData.createEmptyCollection(), to: value.collectionData.storagePath)\n            }\n\n            buyer.capabilities.unpublish(value.collectionData.publicPath)\n        }\n\n        // Access the buyer\'s NFT collection to store the purchased NFT.\n        self.collection = self.collectionCap.borrow() ?? panic("Cannot borrow NFT collection receiver from account")\n\n        let price = listingDetails.salePrice\n\n        // Access the vault of the buyer to pay the sale price of the listing.\n        self.mainPaymentVault = dapper.storage.borrow<auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault>(from: /storage/dapperUtilityCoinVault)\n            ?? panic("Cannot borrow DapperUtilityCoin vault from buyer storage")\n        self.balanceBeforeTransfer = self.mainPaymentVault.balance\n        self.paymentVault <- self.mainPaymentVault.withdraw(amount: price)\n\n        // Fetch the commission amt.\n        let commissionAmount = self.listing.getDetails().commissionAmount\n\n        if commissionRecipient != nil && commissionAmount != 0.0 {\n            // Access the capability to receive the commission.\n            let _commissionRecipientCap = getAccount(commissionRecipient!).capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n            assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have DapperUtilityCoin receiving capability")\n            self.commissionRecipientCap = _commissionRecipientCap\n        } else if commissionAmount == 0.0 {\n            self.commissionRecipientCap = nil\n        } else {\n            panic("Commission recipient can not be empty when commission amount is non zero")\n        }\n\n    }\n\n    execute {\n        let listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("Listing could not be found")\n\n        let item <- listing.purchase(payment: <-self.paymentVault, commissionRecipient: self.commissionRecipientCap)\n        self.collection.deposit(token: <-item)\n    }\n\n    post {\n        self.mainPaymentVault.balance == self.balanceBeforeTransfer: "DapperUtilityCoin leakage"\n    }\n\n}'),v=e=>"import DapperUtilityCoin from ".concat(e.contractAddresses.DapperUtilityCoin,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport NonFungibleToken from ").concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\n// Purchase a listing from Flowty\'s NFT Storefront\n\ntransaction(storefrontAddress: Address, listingResourceID: UInt64, commissionRecipient: Address, collectionIdentifier: String, nftReceiverAddress: Address) {\n    let paymentVault: @{FungibleToken.Vault}\n    let collection: &{NonFungibleToken.CollectionPublic}\n    let collectionCap: Capability<&{NonFungibleToken.CollectionPublic}>\n    let storefront: &NFTStorefrontV2.Storefront\n    let listing: &{NFTStorefrontV2.ListingPublic}\n    var commissionRecipientCap: Capability<&{FungibleToken.Receiver}>?\n    let balanceBeforeTransfer: UFix64\n    let mainPaymentVault: auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault\n    let listingAcceptor: auth(NFTStorefrontV2.Acceptor) &NFTStorefrontV2.Storefront\n\n    prepare(dapper: auth(BorrowValue) &Account, buyer: auth(Storage, Capabilities) &Account) {\n        if buyer.storage.borrow<&NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) == nil {\n            // Create a new empty Storefront\n            let storefront <- NFTStorefrontV2.createStorefront()\n            // save it to the account\n            buyer.storage.save(<-storefront, to: NFTStorefrontV2.StorefrontStoragePath)\n            // create a public capability for the Storefront, first unlinking to ensure we remove anything that\'s already present\n            buyer.capabilities.unpublish(NFTStorefrontV2.StorefrontPublicPath)\n            buyer.capabilities.publish(\n                buyer.capabilities.storage.issue<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontStoragePath),\n                at: NFTStorefrontV2.StorefrontPublicPath\n            )\n        }\n\n        self.listingAcceptor = buyer.storage.borrow<auth(NFTStorefrontV2.Acceptor) &NFTStorefrontV2.Storefront>(from: NFTStorefrontV2.StorefrontStoragePath) ?? panic("Buyer storefront is invalid")\n\n        let value = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n        self.commissionRecipientCap = nil\n        // Access the storefront public resource of the seller to purchase the listing.\n        self.storefront = getAccount(storefrontAddress).capabilities.get<&NFTStorefrontV2.Storefront>(NFTStorefrontV2.StorefrontPublicPath)!.borrow()\n            ?? panic("Could not borrow Storefront from provided address")\n\n        // Borrow the listing\n        self.listing = self.storefront.borrowListing(listingResourceID: listingResourceID)\n            ?? panic("Listing not found")\n        let listingDetails = self.listing.getDetails()\n        let nftRef = self.listing.borrowNFT() ?? panic("nft not found")\n\n        if nftReceiverAddress == buyer.address {\n            self.collectionCap = buyer.capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            // unlink and relink first, if it still isn\'t working, then we will try to save it!\n            if !self.collectionCap.check() {\n                if buyer.storage.borrow<&AnyResource>(from: value.collectionData.storagePath) == nil {\n                    // pull the metdata resolver for this listing\'s nft and use it to configure this account\'s collection\n                    // if it is not already configured.\n                    let collectionData = nftRef.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData\n                    buyer.storage.save(<-collectionData.createEmptyCollection(), to: value.collectionData.storagePath)\n                }\n\n                buyer.capabilities.unpublish(value.collectionData.publicPath)\n                buyer.capabilities.publish(\n                    buyer.capabilities.storage.issue<&{NonFungibleToken.Collection}>(value.collectionData.storagePath),\n                    at: value.collectionData.publicPath\n                )\n            }\n        } else {\n            // signer is the parent account and nftProvider is child Account\n            // get the manager resource and borrow proxyAccount\n            let manager = buyer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n                ?? panic("manager does not exist")\n            let childAcct = manager.borrowAccount(addr: nftReceiverAddress) ?? panic("nft receiver address is not a child account")\n            self.collectionCap = getAccount(nftReceiverAddress).capabilities.get<&{NonFungibleToken.CollectionPublic}>(value.collectionData.publicPath)\n            // We can\'t change child account links in any way\n        }\n\n        // Access the buyer\'s NFT collection to store the purchased NFT.\n        self.collection = self.collectionCap.borrow() ?? panic("Cannot borrow NFT collection receiver from account")\n\n        let price = listingDetails.salePrice\n\n        // Access the vault of the buyer to pay the sale price of the listing.\n        self.mainPaymentVault = dapper.storage.borrow<auth(FungibleToken.Withdraw) &DapperUtilityCoin.Vault>(from: /storage/dapperUtilityCoinVault)\n            ?? panic("Cannot borrow DapperUtilityCoin vault from buyer storage")\n        self.balanceBeforeTransfer = self.mainPaymentVault.balance\n        self.paymentVault <- self.mainPaymentVault.withdraw(amount: price)\n\n        let commissionAmount = self.listing.getDetails().commissionAmount\n        if commissionRecipient != nil && commissionAmount != 0.0 {\n            let _commissionRecipientCap = getAccount(commissionRecipient).capabilities.get<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n            assert(_commissionRecipientCap.check(), message: "Commission Recipient doesn\'t have DapperUtilityCoin receiving capability")\n            self.commissionRecipientCap = _commissionRecipientCap\n        } else if commissionAmount == 0.0 {\n            self.commissionRecipientCap = nil\n        } else {\n            panic("Commission recipient can not be empty when commission amount is non zero")\n        }\n\n    }\n\n    execute {\n        // Purchase the NFT\n        let item <- self.listing.purchase(\n            payment: <-self.paymentVault,\n            commissionRecipient: self.commissionRecipientCap,\n            privateListingAcceptor: self.listingAcceptor\n        )\n        // Deposit the NFT in the buyer\'s collection.\n        self.collection.deposit(token: <-item)\n    }\n\n    post {\n        self.mainPaymentVault.balance == self.balanceBeforeTransfer: "DapperUtilityCoin leakage"\n    }\n\n}')},59235:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenService=void 0;const i=n(10514);t.TokenService=class{getTokenInfo(e){switch(e){case"FLOW":return{balancePath:"/public/flowTokenBalance",contractAddress:this.config.contractAddresses.FlowToken,contractName:"FlowToken",receiverPath:"/public/flowTokenReceiver",storagePath:"/storage/flowTokenVault",symbol:e};case"USDC":return{balancePath:"/public/usdcFlowMetadata",contractAddress:this.config.contractAddresses.USDCFlow,contractName:"USDCFlow",receiverPath:"/public/usdcFlowReceiver",storagePath:"/storage/usdcFlowVault",symbol:e};case"DUC":return{balancePath:"/public/dapperUtilityCoinBalance",contractAddress:this.config.contractAddresses.DapperUtilityCoin,contractName:"DapperUtilityCoin",receiverPath:"/public/dapperUtilityCoinReceiver",storagePath:"/storage/dapperUtilityCoinVault",symbol:e};default:throw new Error("Unsupported token")}}constructor(e){r(this,"config",void 0),r(this,"getTokenIdentifier",(e=>{let t="",n="";switch(e){case"FLOW":t="FlowToken",n=this.config.contractAddresses.FlowToken;break;case"USDC":t="USDCFlow",n=this.config.contractAddresses.USDCFlow;break;case"DUC":t="DapperUtilityCoin",n=this.config.contractAddresses.DapperUtilityCoin;break;default:return""}return"A.".concat(n.substring(2),".").concat(t,".Vault")})),r(this,"getTokenSymbols",(()=>[i.SupportedTokens.FLOW,i.SupportedTokens.USDC,i.SupportedTokens.DUC])),this.config=e}}},64775:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TransferService=void 0;const i=n(53918),o=n(95324),a=n(19388),s=n(65094);t.TransferService=class{constructor(e){r(this,"config",void 0),r(this,"transferNft",(async e=>{let{nftData:t,transferRecipient:n,nftProviderPathIdentifier:r,txAvailableCallback:l}=e;if(!t)throw new Error("Flow NFT it's null");const{id:c,type:u,nftOwner:d}=t,p=await(0,i.getCatalogEntryForType)(u,this.config),h=(0,o.getTransferNftTxn)(this.config,t,!!p),f=this.config.crescendo?a.arg(r||"0",s.UInt64):a.arg(r,s.String),m=[a.arg(c.toString(),s.UInt64),a.arg(n,s.Address),a.arg(d,s.Address),f];p?m.push(a.arg(p,s.String)):m.push(a.arg(t.type,s.String));try{return await(0,i.sendMutation)(h,m,l)}catch(g){throw console.log("TX ERROR",g),(0,i.Err)("createStorefrontListing",g),g}})),this.config=e}}},95324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transferNftViewResolverCrescendo=t.transferNftViewResolver=t.getTransferNftTxn=void 0;t.getTransferNftTxn=(e,t,i)=>e.crescendo?r(e,t,i):n(e,t,i);const n=(e,n,r)=>"TopShot"===n.contractName?i(e):r?a(e):(0,t.transferNftViewResolver)(e),r=(e,n,r)=>"TopShot"===n.contractName?o(e):r?s(e):(0,t.transferNftViewResolverCrescendo)(e),i=e=>"",o=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\n\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\n\nimport TopShot from ").concat(e.contractAddresses.TopShot,'\n\n/*\nFlowty - NFT Transfer - Catalog w/ TopShot special handling\nTransfer an NFT from the nftProvider (childAccount) to a specified recipient.\n */\n\ntransaction(tokenID: UInt64, to: Address, nftProviderAddress: Address, nftProviderControllerID: UInt64, collectionIdentifier: String) {\n  let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}\n  prepare(signer: auth(Capabilities, Storage) &Account) {\n    let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n    if nftProviderAddress == signer.address {\n      self.nftProvider = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(from: catalogEntry.collectionData.storagePath)\n        ?? panic("could not find sender collection")\n    } else {\n      let manager = signer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n\n      let providerCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no cap found")\n      let nftProviderCap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n      self.nftProvider = nftProviderCap.borrow() ?? panic("unable to borrow child account collection provider")\n    }\n\n    let nft <- self.nftProvider.withdraw(withdrawID: tokenID)\n    let recipient = getAccount(to)\n\n    let standardCap = recipient.capabilities.get<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.publicPath)\n    if standardCap.check() {\n      let r = standardCap.borrow() ?? panic("invalid receiver collection")\n      r.deposit(token: <-nft)\n      return\n    }\n    \n    assert(nft.getType() == Type<@TopShot.NFT>(), message: "No receiver found for Item")\n    assert(catalogEntry.collectionData.publicPath.toString() == "MomentCollection", message: "incorrect path for TopShot collection")\n\n    // Special handling for accounts that expose TopShot.MomentCollectionPublic instead of standard\n    let tsCap = recipient.capabilities.get<&{TopShot.MomentCollectionPublic}>(catalogEntry.collectionData.publicPath)\n    if tsCap.check() {\n      let r = tsCap.borrow() ?? panic("invalid TopShot.MomentCollectionPublic")\n      r.deposit(token: <-nft)\n      return\n    }\n\n    // we should not reach here.\n    panic("no valid receiver found")\n  }\n}'),a=e=>"",s=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport NFTCatalog from ").concat(e.contractAddresses.NFTCatalog,"\n\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,'\n\n/*\nFlowty - NFT Transfer - Catalog w/ TopShot special handling\nTransfer an NFT from the nftProvider (childAccount) to a specified recipient.\n */\n\ntransaction(tokenID: UInt64, to: Address, nftProviderAddress: Address, nftProviderControllerID: UInt64, collectionIdentifier: String) {\n  let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}\n  prepare(signer: auth(Capabilities, Storage) &Account) {\n    let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) ?? panic("Provided collection is not in the NFT Catalog.")\n\n    if nftProviderAddress == signer.address {\n      self.nftProvider = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(from: catalogEntry.collectionData.storagePath)\n        ?? panic("could not find sender collection")\n    } else {\n      let manager = signer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n\n      let providerCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no cap found")\n      let nftProviderCap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n      self.nftProvider = nftProviderCap.borrow() ?? panic("unable to borrow child account collection provider")\n    }\n\n    let nft <- self.nftProvider.withdraw(withdrawID: tokenID)\n    let recipient = getAccount(to)\n\n    let standardCap = recipient.capabilities.get<&{NonFungibleToken.CollectionPublic}>(catalogEntry.collectionData.publicPath)\n    if standardCap.check() {\n      let r = standardCap.borrow() ?? panic("invalid receiver collection")\n      r.deposit(token: <-nft)\n      return\n    }\n    \n    // we should not reach here.\n    panic("no valid receiver found")\n  }\n}');t.transferNftViewResolver=e=>"";t.transferNftViewResolverCrescendo=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport ViewResolver from ").concat(e.contractAddresses.ViewResolver,"\nimport HybridCustody from ").concat(e.contractAddresses.HybridCustody,"\nimport AddressUtils from ").concat(e.contractAddresses.AddressUtils,'\n\n/*\nFlowty - NFT Transfer - No Catalog\nTransfer an NFT from the nftProvider (childAccount) to a specified recipient.\n */\n\ntransaction(\n    tokenID: UInt64,\n    to: Address,\n    nftProviderAddress: Address,\n    nftProviderControllerID: UInt64,\n    typeIdentifier: String\n) {\n  let nftProvider: auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}\n  prepare(signer: auth(Capabilities, Storage) &Account) {\n    let nftType = CompositeType(typeIdentifier) ?? panic("invalid type identifier")\n    let contractAddress = AddressUtils.parseAddress(nftType)!\n    let contractName = typeIdentifier.split(separator: ".")[2]\n\n    let c = getAccount(contractAddress).contracts.borrow<&{ViewResolver}>(name: contractName) ?? panic ("Specified contract address and name is not found or does not implement ViewResolver contract.")\n    let md = c.resolveContractView(resourceType: nftType, viewType: Type<MetadataViews.NFTCollectionData>()) ?? panic("NFTCollectionData view not found on the contract.")\n    let collectionData = md as! MetadataViews.NFTCollectionData\n\n    if nftProviderAddress == signer.address {\n      self.nftProvider = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(from: collectionData.storagePath)\n        ?? panic("could not find sender collection")\n    } else {\n      let manager = signer.storage.borrow<auth(HybridCustody.Manage) &HybridCustody.Manager>(from: HybridCustody.ManagerStoragePath)\n        ?? panic("manager does not exist")\n      let childAcct = manager.borrowAccount(addr: nftProviderAddress) ?? panic("nftProvider account not found")\n\n      let providerCap = childAcct.getCapability(controllerID: nftProviderControllerID, type: Type<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>()) ?? panic("no cap found")\n      let nftProviderCap = providerCap as! Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>\n      self.nftProvider = nftProviderCap.borrow() ?? panic("unable to borrow child account collection provider")\n    }\n\n    let recipient = getAccount(to).capabilities.get<&{NonFungibleToken.CollectionPublic}>(collectionData.publicPath).borrow() ?? panic("invalid receiver collection")\n    let nft <- self.nftProvider.withdraw(withdrawID: tokenID)\n    recipient.deposit(token: <-nft)\n  }\n}')},95920:(e,t,n)=>{"use strict";var r=n(58212).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AnyStructDictionary=t.FlowtyDropsCollectionInfo=t.MetadataViewsCollectionDisplay=t.MetadataViewsMedia=t.PhaseDetails=t.AllowAllAddressVerifier=t.FreePricer=t.FlatPricePricer=t.TimestampSwitcher=t.DropDetails=t.MetadataViewsDisplay=t.DropsNftMetadata=t.ExternalUrl=t.IpfsFile=t.HttpFile=t.Config=void 0;t.Config=class{constructor(e,t,n,i){r(this,"apiURL",void 0),r(this,"contractAddresses",void 0),r(this,"network",void 0),r(this,"crescendo",void 0),this.apiURL=e,this.contractAddresses=t,this.network=n,this.crescendo=i}getIdentifier(e,t){return"A.".concat(this.contractAddresses[e].substring(2),".").concat(e,".").concat(t)}};t.HttpFile=class{constructor(e){r(this,"url",void 0),this.url=e}getType(e,t){return t.Struct(e.getIdentifier("MetadataViews","HTTPFile"),[{name:"url",value:t.String}])}encode(e){return{type:"Struct",value:{fields:[{name:"url",value:{type:"String",value:this.url}}],id:e.getIdentifier("MetadataViews","HTTPFile")}}}};t.IpfsFile=class{constructor(e,t){r(this,"cid",void 0),r(this,"path",void 0),this.cid=e,this.path=t}getType(e,t){return t.Struct(e.getIdentifier("MetadataViews","IPFSFile"),[{name:"cid",value:t.String},{name:"path",value:t.Optional(t.String)}])}encode(e){const t=null!==this.path?{type:"String",value:this.path}:null;return{type:"Struct",value:{fields:[{name:"cid",value:{type:"String",value:this.cid}},{name:"path",value:t}],id:e.getIdentifier("MetadataViews","IPFSFile")}}}};class i{constructor(e){r(this,"url",void 0),this.url=e}getType(e,t){return t.Struct(e.getIdentifier("MetadataViews","ExternalURL"),[{name:"url",value:t.String}])}encode(e){return{type:"Struct",value:{fields:[{name:"url",value:{type:"String",value:this.url}}],id:e.getIdentifier("MetadataViews","ExternalURL")}}}}t.ExternalUrl=i;t.DropsNftMetadata=class{constructor(e,t,n,i){r(this,"name",void 0),r(this,"description",void 0),r(this,"thumbnail",void 0),r(this,"traits",void 0),r(this,"editions",void 0),r(this,"externalUrl",void 0),this.name=e,this.description=t,this.thumbnail=n,this.externalUrl=i,this.traits=null,this.editions=null}getType(e,t){return t.Struct(e.getIdentifier("NFTMetadata","Metadata"),[{name:"name",value:t.String},{name:"description",value:t.String},{name:"thumbnail",value:this.thumbnail.getType(e,t)},{name:"traits",value:t.Optional(t.Struct(e.getIdentifier("MetadataViews","Traits"),[]))},{name:"editions",value:t.Optional(t.Struct(e.getIdentifier("MetadataViews","Editions"),[]))},{name:"externalURL",value:this.externalUrl.getType(e,t)}])}encode(e){return{type:"Struct",value:{fields:[{name:"name",value:{type:"String",value:this.name}},{name:"description",value:{type:"String",value:this.description}},{name:"thumbnail",value:this.thumbnail.encode(e)},{name:"traits",value:{type:"Optional",value:null}},{name:"editions",value:{type:"Optional",value:null}},{name:"externalURL",value:this.externalUrl.encode(e)},{name:"data",value:{type:"Dictionary",value:[]}}],id:e.getIdentifier("NFTMetadata","Metadata")}}}};t.MetadataViewsDisplay=class{constructor(e,t,n){r(this,"name",void 0),r(this,"description",void 0),r(this,"thumbnail",void 0),this.name=e,this.description=t,this.thumbnail=n}getType(e,t){return t.Struct(e.getIdentifier("MetadataViews","Display"),[{name:"name",value:t.String},{name:"description",value:t.String},{name:"thumbnail",value:this.thumbnail.getType(e,t)}])}encode(e){return{type:"Struct",value:{fields:[{name:"name",value:{type:"String",value:this.name}},{name:"description",value:{type:"String",value:this.description}},{name:"thumbnail",value:this.thumbnail.encode(e)}],id:e.getIdentifier("MetadataViews","Display")}}}};t.DropDetails=class{constructor(e,t,n,i,o){r(this,"display",void 0),r(this,"medias",void 0),r(this,"totalMinted",void 0),r(this,"minters",void 0),r(this,"commissionRate",void 0),r(this,"nftType",void 0),this.display=e,this.totalMinted=t,this.minters=n,this.commissionRate=i,this.nftType=o,this.medias=null}getType(e,t){return t.Struct(e.getIdentifier("FlowtyDrops","DropDetails"),[{name:"display",value:this.display.getType(e,t)},{name:"medias",value:t.Optional(t.AnyStruct)},{name:"totalMinted",value:t.Int},{name:"minters",value:t.Dictionary(t.Address,t.Int)},{name:"commissionRate",value:t.UFix64},{name:"nftType",value:t.String}])}encode(e){return{type:"Struct",value:{fields:[{name:"display",value:this.display.encode(e)},{name:"medias",value:{type:"Optional",value:null}},{name:"totalMinted",value:{type:"Int",value:"0"}},{name:"minters",value:{type:"Dictionary",value:[]}},{name:"commissionRate",value:{type:"UFix64",value:this.commissionRate.toFixed(4)}},{name:"nftType",value:{type:"String",value:this.nftType}}],id:e.getIdentifier("FlowtyDrops","DropDetails")}}}};t.TimestampSwitcher=class{constructor(e,t){r(this,"start",void 0),r(this,"end",void 0),this.start=e,this.end=t}getType(e,t){return t.Struct(e.getIdentifier("FlowtyActiveCheckers","TimestampSwitch"),[{name:"start",value:t.Optional(t.UInt64)},{name:"end",value:t.Optional(t.UInt64)}])}encode(e){return{type:"Struct",value:{fields:[{name:"start",value:{type:"Optional",value:null!==this.start?{type:"UInt64",value:this.start.toString()}:null}},{name:"end",value:{type:"Optional",value:null!==this.end?{type:"UInt64",value:this.end.toString()}:null}}],id:e.getIdentifier("FlowtyActiveCheckers","TimestampSwitch")}}}};t.FlatPricePricer=class{constructor(e,t){r(this,"price",void 0),r(this,"paymentTokenType",void 0),this.price=e,this.paymentTokenType=t}getType(e,t){return t.Struct(e.getIdentifier("FlowtyPricers","FlatPrice"),[{name:"price",value:t.UFix64},{name:"paymentTokenType",value:t.String}])}encode(e){return{type:"Struct",value:{fields:[{name:"price",value:{type:"UFix64",value:this.price.toFixed(4)}},{name:"paymentTokenType",value:{type:"String",value:this.paymentTokenType}}],id:e.getIdentifier("FlowtyPricers","FlatPrice")}}}};t.FreePricer=class{getType(e,t){return t.Struct(e.getIdentifier("FlowtyPricers","Free"),[])}encode(e){return{type:"Struct",value:{fields:[],id:e.getIdentifier("FlowtyPricers","Free")}}}};t.AllowAllAddressVerifier=class{constructor(e){r(this,"maxPerMint",void 0),this.maxPerMint=e}getType(e,t){return t.Struct(e.getIdentifier("FlowtyAddressVerifiers","AllowAll"),[])}encode(e){return{type:"Struct",value:{fields:[{name:"maxPerMint",value:{type:"Int",value:this.maxPerMint.toString()}}],id:e.getIdentifier("FlowtyAddressVerifiers","AllowAll")}}}};t.PhaseDetails=class{constructor(e,t,n,i){r(this,"switcher",void 0),r(this,"display",void 0),r(this,"pricer",void 0),r(this,"addressVerifier",void 0),this.switcher=e,this.display=t,this.pricer=n,this.addressVerifier=i}getType(e,t){t.Struct(e.getIdentifier("FlowtyDrops","PhaseDetails"),[{name:"switcher",value:this.switcher.getType(e,t)},{name:"display",value:t.Optional(t.AnyStruct)},{name:"pricer",value:t.AnyStruct},{name:"addressVerifier",value:t.AnyStruct},{name:"data",value:t.Dictionary(t.String,t.AnyStruct)}])}encode(e){const t=null!==this.display?this.display.encode(e):null;return{type:"Struct",value:{fields:[{name:"switcher",value:this.switcher.encode(e)},{name:"display",value:{type:"Optional",value:t}},{name:"pricer",value:this.pricer.encode(e)},{name:"addressVerifier",value:this.addressVerifier.encode(e)},{name:"data",value:{type:"Dictionary",value:[]}}],id:e.getIdentifier("FlowtyDrops","PhaseDetails")}}}};class o{constructor(e,t){r(this,"file",void 0),r(this,"mediaType",void 0),this.file=e,this.mediaType=t}getType(e,t){t.Struct(e.getIdentifier("MetadataViews","Media"),[{name:"file",value:this.file.getType(e,t)},{name:"mediaType",value:t.String}])}encode(e){return{type:"Struct",value:{fields:[{name:"file",value:this.file.encode(e)},{name:"mediaType",value:{type:"String",value:this.mediaType}}],id:e.getIdentifier("MetadataViews","Media")}}}}t.MetadataViewsMedia=o;t.MetadataViewsCollectionDisplay=class{constructor(e,t,n,i,o,a){r(this,"name",void 0),r(this,"description",void 0),r(this,"externalURL",void 0),r(this,"squareImage",void 0),r(this,"bannerImage",void 0),r(this,"socials",void 0),this.name=e,this.description=t,this.externalURL=n,this.squareImage=i,this.bannerImage=o,this.socials=a}getType(e,t){t.Struct(e.getIdentifier("MetadataViews","NFTCollectionDisplay"),[{name:"name",value:t.String},{name:"description",value:t.String},{name:"externalURL",value:i},{name:"squareImage",value:o},{name:"bannerImage",value:o},{name:"socials",value:t.Dictionary(t.String,t.Struct(e.getIdentifier("MetadataViews","ExternalURL"),[{name:"url",value:t.String}]))}])}encode(e){return{type:"Struct",value:{fields:[{name:"name",value:{type:"String",value:this.name}},{name:"description",value:{type:"String",value:this.description}},{name:"externalURL",value:this.externalURL.encode(e)},{name:"squareImage",value:this.squareImage.encode(e)},{name:"bannerImage",value:this.bannerImage.encode(e)},{name:"socials",value:{type:"Dictionary",value:Object.entries(this.socials).map((t=>{let[n,r]=t;return{key:{type:"String",value:n},value:r.encode(e)}}))}}],id:e.getIdentifier("MetadataViews","NFTCollectionDisplay")}}}};t.FlowtyDropsCollectionInfo=class{constructor(e){r(this,"collectionDisplay",void 0),this.collectionDisplay=e}getType(e,t){t.Struct(e.getIdentifier("NFTMetadata","CollectionInfo"),[])}encode(e){return{type:"Struct",value:{fields:[{name:"collectionDisplay",value:this.collectionDisplay.encode(e)}],id:e.getIdentifier("NFTMetadata","CollectionInfo")}}}};t.AnyStructDictionary=class{constructor(e){r(this,"data",void 0),this.data=e}getType(e,t){throw new Error("not implemented, there is no fcl t.AnyStruct to describe this type's value")}encode(e){return{type:"Dictionary",value:Object.entries(this.data).map((t=>{let[n,r]=t;return{key:{type:"String",value:n},value:r.encode(e)}}))}}}},59238:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FlowtyContractErrors=void 0,function(e){e.CommissionNotSetUp="Given recipient has not authorised to receive the commission",e.MissingNFT="Collateral is no longer in Borrower's account; This listing should be removed from Marketplace shortly.",e.InsufficientFunds="Account has insufficient funds for selected action.",e.Fund1="The selected listing is in cooldown and will be eligible for funding within five minutes.",e.Fund2="The selected listing has already been funded.",e.Fund3="The selected listing does not exist or has already funded",e.Repay1="The loan has already reached maturity and is no longer eligible for repayment.",e.Repay2="The loan has already been repaid.",e.Profile="Usernames can be a maximum of 15 characters.",e.RejectTx="User rejected signature.",e.SessionExpired="Session expired for the current user. Please log out and connect your account again.",e.DefaultError="Undefined error; please retry. If error persists, please file a support ticket via Discord.",e.InsufficientFlowBalance="Account has insufficient FLOW balance to process transaction. Please add FLOW to your account and retry. If you need further assistance, please file a support ticket in Discord.",e.UnableToFollowTransactionResult="Uh oh! Something went wrong while trying to follow your transaction results"}(n||(t.FlowtyContractErrors=n={}))},75339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionPathsScript=void 0;t.getCollectionPathsScript=e=>e.crescendo?r(e):n(e);const n=e=>"import NFTCatalog from ".concat(e.contractAddresses.NFTCatalog,'\n\npub struct Paths {\n    pub let storagePath: String\n    pub let publicPath: String\n\n    init(storagePath: String, publicPath: String) {\n        self.storagePath = storagePath\n        self.publicPath = publicPath\n    }\n}\n\npub fun main(contractAddress: Address, contractName: String) : Paths? {\n    let addrString = contractAddress.toString()\n    let nftTypeIdentifier = "A.".concat(addrString.slice(from: 2, upTo: addrString.length)).concat(".").concat(contractName).concat(".NFT")\n    let tmp = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier)\n    if tmp == nil {\n    return nil\n    }\n\n    let catalogIdentifiers = tmp!\n    var catalogIdentifier = ""\n    for k in catalogIdentifiers.keys {\n    if catalogIdentifiers[k] == true {\n        catalogIdentifier = k\n        break\n    }\n    }\n\n    if catalogIdentifier != "" {\n        if let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) {\n            return Paths(\n                storagePath: catalogEntry.collectionData.storagePath.toString(),\n                publicPath: catalogEntry.collectionData.publicPath.toString()\n            )   \n        }\n    }\n\n    return nil\n}'),r=e=>"import NFTCatalog from ".concat(e.contractAddresses.NFTCatalog,'\n\naccess(all) struct Paths {\n    access(all) let storagePath: String\n    access(all) let publicPath: String\n\n    init(storagePath: String, publicPath: String) {\n        self.storagePath = storagePath\n        self.publicPath = publicPath\n    }\n}\n\naccess(all) fun main(contractAddress: Address, contractName: String) : Paths? {\n    let addrString = contractAddress.toString()\n    let nftTypeIdentifier = "A.".concat(addrString.slice(from: 2, upTo: addrString.length)).concat(".").concat(contractName).concat(".NFT")\n    let tmp = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier)\n    if tmp == nil {\n    return nil\n    }\n\n    let catalogIdentifiers = tmp!\n    var catalogIdentifier = ""\n    for k in catalogIdentifiers.keys {\n        if catalogIdentifiers[k] == true {\n            catalogIdentifier = k\n            break\n        }\n    }\n\n    if catalogIdentifier != "" {\n        if let catalogEntry = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier) {\n            return Paths(\n                storagePath: catalogEntry.collectionData.storagePath.toString(),\n                publicPath: catalogEntry.collectionData.publicPath.toString()\n            )   \n        }\n    }\n\n    return nil\n}')},68279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDWRoyaltyScript=void 0;t.getDWRoyaltyScript=e=>e.crescendo?r(e):n(e);const n=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport RoyaltiesOverride from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,'\n\npub fun main(addr: Address, nftID: UInt64, identifier: String, price: UFix64): {Address: UFix64} {\n\tlet acct = getAuthAccount(addr)\n\tlet c = acct.borrow<&{NonFungibleToken.CollectionPublic}>(from: StoragePath(identifier: identifier)!)\n\t\t\t?? panic("collection not found")\n\tlet nft = c.borrowNFT(id: nftID)\n\tlet ti = FlowtyUtils.getTokenInfo(Type<@DapperUtilityCoin.Vault>()) ?? panic("unsupported token type")   \n\n\tlet flowtyAcct = NFTStorefrontV2.getAddress()\n\tvar paymentCuts: {Address: UFix64} = {}\n\n\n\tlet flowtyMerchantAcct = getMerchantAddress(NFTStorefrontV2.getAddress(), ti.receiverPath, /storage/dapperUtilityCoinReceiver) \n\tlet mpFee = NFTStorefrontV2.getFee(p: price, t: Type<@DapperUtilityCoin.Vault>())\n\tif flowtyMerchantAcct != nil {\n\t\t\tpaymentCuts.insert(key: flowtyMerchantAcct!, mpFee)\n\t} \n\t\n\n\tif RoyaltiesOverride.get(nft.getType()) {\n\t\t\treturn paymentCuts\n\t}\n\n\tlet royaltiesMd = nft.resolveView(Type<MetadataViews.Royalties>())! as! MetadataViews.Royalties\n\tlet royalties = royaltiesMd.getRoyalties()\n\n\t// for r in royalties {\n\t//     if let addr = getMerchantAddress(r.receiver.address, ti.receiverPath, /storage/dapperUtilityCoinReceiver) {\n\t//         if addr == flowtyMerchantAcct {\n\t//             paymentCuts[flowtyMerchantAcct!] =  mpFee + r.cut * price\n\t//         } else {\n\t//             paymentCuts[addr] = r.cut * price\n\t//         }\n\t//     }\n\t// }\n\treturn paymentCuts\n}\n\n\npub fun getMerchantAddress(_ addr: Address, _ publicPath: PublicPath, _ storagePath: StoragePath): Address? {\n\t\t// is there a token forwarder at this account?\n\t\tlet acct = getAuthAccount(addr)\n\n\t\t// relink as an auth\'d link for downcasting\n\t\tacct.unlink(publicPath)\n\t\tacct.link<auth &{FungibleToken.Receiver}>(publicPath, target: storagePath)\n\n\t\tlet cap = acct.getCapability<auth &{FungibleToken.Receiver}>(publicPath)\n\t\tif !cap.check() {\n\t\t\t\treturn nil\n\t\t}\n\n\t\tlet receiver = cap.borrow()\n\t\tif receiver == nil {\n\t\t\t\treturn nil\n\t\t}\n\n\t\tif receiver!.getType() != Type<@TokenForwarding.Forwarder>() {\n\t\t\t\treturn nil\n\t\t}\n\n\t\t// is this a forwarder type? If it isn\'t a forwarder, return nil\n\t\tlet forwarder = receiver! as! &TokenForwarding.Forwarder\n\t\tlet nextReceiver = forwarder.safeBorrow()\n\t\tif nextReceiver == nil {\n\t\t\t\treturn nil\n\t\t}\n\n\t\t// does it point to another token forwarder? Or does it point to the DUC vault?\n\t\tif nextReceiver!.getType() == Type<@DapperUtilityCoin.Vault>() {\n\t\t\t\t// if it points to the duc vault, return the current address\n\t\t\t\treturn addr\n\t\t} else {\n\t\t\t\t// if it points to another forwarder, call getMerchantAddress of the tokenforwarder\'s receiver address\n\t\t\t\treturn getMerchantAddress(nextReceiver!.owner!.address, publicPath, storagePath)\n\t\t}\n}'),r=e=>"import NonFungibleToken from ".concat(e.contractAddresses.NonFungibleToken,"\nimport MetadataViews from ").concat(e.contractAddresses.MetadataViews,"\nimport FungibleToken from ").concat(e.contractAddresses.FungibleToken,"\nimport TokenForwarding from ").concat(e.contractAddresses.TokenForwarding,"\nimport DapperUtilityCoin from ").concat(e.contractAddresses.DapperUtilityCoin,"\nimport FlowtyUtils from ").concat(e.contractAddresses.FlowtyUtils,"\nimport RoyaltiesOverride from ").concat(e.contractAddresses.NFTStorefrontV2,"\nimport NFTStorefrontV2 from ").concat(e.contractAddresses.NFTStorefrontV2,'\n\naccess(all) fun main(addr: Address, nftID: UInt64, identifier: String, price: UFix64): {Address: UFix64} {\n\tlet acct = getAuthAccount<auth(Storage, Capabilities) &Account>(addr)\n\tlet c = acct.storage.borrow<&{NonFungibleToken.CollectionPublic}>(from: StoragePath(identifier: identifier)!)\n\t\t\t?? panic("collection not found")\n\tlet nft = c.borrowNFT(nftID) ?? panic("NFT not found in collection")\n\tlet ti = FlowtyUtils.getTokenInfo(Type<@DapperUtilityCoin.Vault>()) ?? panic("unsupported token type")   \n\n\tlet flowtyAcct = NFTStorefrontV2.getAddress()\n\tvar paymentCuts: {Address: UFix64} = {}\n\n\n\tlet flowtyMerchantAcct = getMerchantAddress(NFTStorefrontV2.getAddress(), ti.receiverPath, /storage/dapperUtilityCoinReceiver) \n\tlet mpFee = NFTStorefrontV2.getFee(p: price, t: Type<@DapperUtilityCoin.Vault>())\n\tif flowtyMerchantAcct != nil {\n\t\t\tpaymentCuts.insert(key: flowtyMerchantAcct!, mpFee)\n\t} \n\t\n\n\tif RoyaltiesOverride.get(nft.getType()) {\n        return paymentCuts\n\t}\n\n\tlet royaltiesMd = nft.resolveView(Type<MetadataViews.Royalties>())! as! MetadataViews.Royalties\n\tlet royalties = royaltiesMd.getRoyalties()\n\n\t// for r in royalties {\n\t//     if let addr = getMerchantAddress(r.receiver.address, ti.receiverPath, /storage/dapperUtilityCoinReceiver) {\n\t//         if addr == flowtyMerchantAcct {\n\t//             paymentCuts[flowtyMerchantAcct!] =  mpFee + r.cut * price\n\t//         } else {\n\t//             paymentCuts[addr] = r.cut * price\n\t//         }\n\t//     }\n\t// }\n\treturn paymentCuts\n}\n\naccess(all) fun getMerchantAddress(_ addr: Address, _ publicPath: PublicPath, _ storagePath: StoragePath): Address? {\n    // is there a token forwarder at this account?\n    let acct = getAuthAccount<auth(Storage, Capabilities) &Account>(addr)\n\n    let cap = acct.capabilities.get<&{FungibleToken.Receiver}>(publicPath)\n    if !cap.check() {\n            return nil\n    }\n\n    let receiver = cap.borrow()\n    if receiver == nil {\n        return nil\n    }\n\n    if receiver!.getType() != Type<@TokenForwarding.Forwarder>() {\n        return nil\n    }\n\n    // is this a forwarder type? If it isn\'t a forwarder, return nil\n    let forwarder = receiver! as! &TokenForwarding.Forwarder\n    let nextReceiver = forwarder.safeBorrow()\n    if nextReceiver == nil {\n        return nil\n    }\n\n    // does it point to another token forwarder? Or does it point to the DUC vault?\n    if nextReceiver!.getType() == Type<@DapperUtilityCoin.Vault>() {\n        // if it points to the duc vault, return the current address\n        return addr\n    } else {\n        // if it points to another forwarder, call getMerchantAddress of the tokenforwarder\'s receiver address\n        return getMerchantAddress(nextReceiver!.owner!.address, publicPath, storagePath)\n    }\n}')},77706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierToPaymentToken=t.PaymentTokenToIdentifier=t.USDC_IDENTIFIER=t.FLOW_IDENTIFIER=t.FUT_IDENTIFIER=t.DUC_IDENTIFIER=void 0;const r=n(10514),i=n(53918);t.DUC_IDENTIFIER=i.IS_MAINNET?"A.ead892083b3e2c6c.DapperUtilityCoin.Vault":"A.82ec283f88a62e65.DapperUtilityCoin.Vault",t.FUT_IDENTIFIER=i.IS_MAINNET?"A.ead892083b3e2c6c.FlowUtilityToken.Vault":"A.82ec283f88a62e65.FlowUtilityToken.Vault",t.FLOW_IDENTIFIER=i.IS_MAINNET?"A.1654653399040a61.FlowToken.Vault":"A.7e60df042a9c0868.FlowToken.Vault",t.USDC_IDENTIFIER=i.IS_MAINNET?"A.f1ab99c82dee3526.USDCFlow.Vault":"A.64adf39cbc354fcb.USDCFlow.Vault",t.PaymentTokenToIdentifier={DUC:t.DUC_IDENTIFIER,FLOW:t.FLOW_IDENTIFIER,USDC:t.USDC_IDENTIFIER},t.IdentifierToPaymentToken={[t.DUC_IDENTIFIER]:r.SupportedTokens.DUC,[t.FLOW_IDENTIFIER]:r.SupportedTokens.FLOW,[t.USDC_IDENTIFIER]:r.SupportedTokens.USDC}},53918:(e,t,n)=>{"use strict";var r,i,o=n(87301).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateListing=t.sendMutation=t.waitForSeal=t.delay=t.getCatalogEntryForType=t.executeScript=t.expirationDaysToSeconds=t.termNumberToSeconds=t.Err=t.IS_MAINNET=void 0;const a=n(2035),s=n(10514),l=n(12239),c=n(59238),u=n(19388),d=n(65094);t.IS_MAINNET=null===(r="https://mainnet.onflow.org")?void 0:r.includes("mainnet");t.Err=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error(t)};t.termNumberToSeconds=e=>e*s.ONE_DAY_IN_SECONDS;t.expirationDaysToSeconds=e=>Math.round(e*s.ONE_DAY_IN_SECONDS);const p=async e=>{if(!e.endsWith(".cdc"))return e;return(await a.default.get(e)).text()};t.executeScript=async function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e3;try{const t=await u.send([u.script(i||(i=o(["",""])),e),u.args(n)]);return u.decode(t)}catch(c){const i=new Error((0,s.getMessageFromError)(c));if(a>1)return await(0,t.delay)(l),(0,t.executeScript)(e,n,r,a-1);throw new s.FlowtyException(i,{},"executeScript::".concat(r))}};t.getCatalogEntryForType=async(e,n)=>{const r=await(async(e,n)=>(0,t.executeScript)((0,l.getCatalogIdentifiersScript)(n),[u.arg(e,d.String)],"getCatalogIdentifiersScript"))(e,n);if(!r)return null;let i="";const o=Object.keys(r);for(let t=0;t<o.length;t++){const e=o[t];if(r[e]){i=e;break}}return i};t.delay=e=>new Promise((t=>{setTimeout(t,e)}));t.waitForSeal=async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;try{return await u.tx(e).onceSealed()}catch(i){const o=(0,s.getMessageFromError)(i);if(o.includes("panic")||o.includes("assertion failed")||o.includes("Execution failed"))throw new Error(o);if(0===n)throw new Error(c.FlowtyContractErrors.UnableToFollowTransactionResult);return await(0,t.delay)(r),(0,t.waitForSeal)(e,n-1)}};t.sendMutation=async(e,n,r)=>{const i=await(async e=>{let t;if("string"===typeof e)t=await p(e);else{const n=e;let r=await p(n.script);n.params.forEach((e=>{let{placeholder:t,param:n}=e;r=r.replaceAll(t,n)})),t=r}return t})(e);console.log("sendMutation",{args:n,transactionCdcScript:e});const o=await u.mutate({args:(e,t)=>n,authorizations:[u.authz],cadence:i,limit:9999,payer:u.authz,proposer:u.authz});r&&r(o);return await(0,t.waitForSeal)(o)};t.validateListing=async(e,t)=>{const n={listingID:e.listingResourceID,listingType:"storefront"},r=await a.default.post("".concat(t,"/validate/listing"),n,{validateStatus:e=>!0});return 200!==r.status||!0===r.data.valid}},50776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useGetCollectionRoyalty=void 0;const r=n(61462);t.useGetCollectionRoyalty=e=>{let{nft:t,flowty:n,mixPanelFn:i}=e;const[o,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{(async()=>{if(null!==t&&void 0!==t&&t.owner){var e;const s=null===t||void 0===t||null===(e=t.nftView)||void 0===e||null===(e=e.collectionData)||void 0===e?void 0:e.storagePath;try{var r;l(!0);const e=await n.scripts.getRoyaltyRate(t.owner||"",t.id.toString(),null!==(r=null===s||void 0===s?void 0:s.identifier)&&void 0!==r?r:"");a(e),l(!1)}catch(o){l(!1),i("error getting royalty rate",o)}}})()}),[t]),{isLoading:s,royaltyRate:o}}},87111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useGetFees=void 0;const r=n(61462),i=n(53918);t.useGetFees=e=>{let{nft:t,price:n,token:o,flowty:a}=e;const[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),d=(0,r.useRef)(n);return(0,r.useEffect)((()=>{if(d.current=n,t&&n&&o){var e;u(!0);const r=null===t||void 0===t||null===(e=t.nftView)||void 0===e||null===(e=e.collectionData)||void 0===e||null===(e=e.storagePath)||void 0===e?void 0:e.identifier;if(!r||!t.owner)return l(null),void u(!1);(async(e,t,n,r,o)=>{try{const i=await a.scripts.getStorefrontFees(e,t,n,r,o);0!==d.current&&l(i),u(!1)}catch(s){l(null),(0,i.Err)(s)}})(t.owner,r,t.id.toString(),a.tokens.getTokenIdentifier(o),n)}else l(null)}),[t,n,o]),{fees:s,isLoading:c}}},21657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useGetFlowtyStorefrontFee=void 0;const r=n(61462);t.useGetFlowtyStorefrontFee=e=>{let{identifier:t,flowty:n}=e;const[i,o]=(0,r.useState)(null),[a,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{n.scripts.getFlowtyStorefrontFee(t).then((e=>{o(e),s(!1)}))}),[t]),{flowtyStorefrontFee:i,isLoading:a}}},65490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAddress=void 0;const r=n(19388);t.verifyAddress=async e=>{let t=!1;try{(await r.account(e)).address&&(t=!0)}catch(n){console.log("Couldn't find account [".concat(e,"] for private listing"))}return t}},40035:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function C(){var e=f(),n=y(i);if(n){if(x(),!y(o))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},54331:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B,U,V,H,z,W,q,G,Y,K,Q,X,Z,J,$,ee,te,ne,re,ie,oe,ae,se,le,ce){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var de=ue(t),pe=ue(r),he=ue(i),fe=ue(o),me=ue(a),ge=ue(s),ve=ue(l),ye=ue(c),be=ue(u),we=ue(d),xe=ue(p),Ce=ue(h),Ae=ue(f),Ee=ue(m),_e=ue(g),Te=ue(v),Se=ue(y),ke=ue(b),Pe=ue(w),De=ue(x),Fe=ue(C),Ne=ue(A),Ie=ue(E),Re=ue(_),Oe=ue(T),je=ue(S),Me=ue(k),Le=ue(P),Be=ue(D),Ue=ue(F),Ve=ue(N),He=ue(I),ze=ue(R),We=ue(O),qe=ue(j),Ge=ue(M),Ye=ue(L),Ke=ue(B),Qe=ue(U),Xe=ue(V),Ze=ue(H),Je=ue(z),$e=ue(W),et=ue(q),tt=ue(Y),nt=ue(K),rt=ue(Q),it=ue(X),ot=ue(Z),at=ue(J),st=ue($),lt=ue(ee),ct=ue(te),ut=ue(ne),dt=ue(re),pt=ue(ie),ht=ue(oe),ft=ue(ae),mt=ue(se),gt=ue(ce);function vt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e){return bt="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},bt(e)}function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(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,Nt(r.key),r)}}function Ct(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function At(e,t,n){return(t=Nt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){return Et=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},Et.apply(this,arguments)}function _t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}function Tt(e){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tt(e)}function St(e,t){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},St(e,t)}function kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tt(e);if(t){var i=Tt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kt(e)}(this,n)}}function Dt(e){return function(e){if(Array.isArray(e))return Ft(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 Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nt(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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var It=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Rt=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ot={p:Rt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return It(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",It(i,t)).replace("{{time}}",Rt(o,t))}},jt=12,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Lt(e){var t=e?"string"==typeof e||e instanceof String?ht.default(e):dt.default(e):new Date;return Bt(t)?t:null}function Bt(e,t){return t=t||new Date("1/1/1000"),fe.default(e)&&!ct.default(e,t)}function Ut(e,t,n){if("en"===n)return me.default(e,t,{awareOfUnicodeTokens:!0});var r=tn(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&en()&&tn(en())&&(r=tn(en())),me.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Vt(e,t){var n=t.dateFormat,r=t.locale;return e&&Ut(e,Array.isArray(n)?n[0]:n,r)||""}function Ht(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return Ue.default(Be.default(Le.default(e,s),o),r)}function zt(e,t,n){var r=tn(t||en());return Xe.default(e,{locale:r,weekStartsOn:n})}function Wt(e){return Ze.default(e)}function qt(e){return $e.default(e)}function Gt(e){return Je.default(e)}function Yt(){return Qe.default(Lt())}function Kt(e,t){return e&&t?at.default(e,t):!e&&!t}function Qt(e,t){return e&&t?ot.default(e,t):!e&&!t}function Xt(e,t){return e&&t?st.default(e,t):!e&&!t}function Zt(e,t){return e&&t?it.default(e,t):!e&&!t}function Jt(e,t){return e&&t?rt.default(e,t):!e&&!t}function $t(e,t,n){var r,i=Qe.default(t),o=et.default(n);try{r=ut.default(e,{start:i,end:o})}catch(e){r=!1}return r}function en(){return("undefined"!=typeof window?window:globalThis).__localeId__}function tn(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function nn(e,t){return Ut(Ve.default(Lt(),e),"LLLL",t)}function rn(e,t){return Ut(Ve.default(Lt(),e),"LLL",t)}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return hn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Zt(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return Zt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})}))||l&&!l(Lt(e))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ut.default(e,{start:n,end:r})})):n&&n.some((function(t){return Zt(e,t)}))||!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return hn(e,{minDate:Ze.default(n),maxDate:tt.default(r)})||i&&i.some((function(t){return Qt(e,t)}))||o&&!o.some((function(t){return Qt(e,t)}))||a&&!a(Lt(e))||!1}function ln(e,t,n,r){var i=je.default(e),o=Re.default(e),a=je.default(t),s=Re.default(t),l=je.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return hn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Xt(e,t)}))||o&&!o.some((function(t){return Xt(e,t)}))||a&&!a(Lt(e))||!1}function un(e,t,n){if(!fe.default(t)||!fe.default(n))return!1;var r=je.default(t),i=je.default(n);return r<=e&&i>=e}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return hn(s,{minDate:$e.default(n),maxDate:nt.default(r)})||i&&i.some((function(e){return Kt(s,e)}))||o&&!o.some((function(e){return Kt(s,e)}))||a&&!a(Lt(s))||!1}function pn(e,t,n,r){var i=je.default(e),o=Oe.default(e),a=je.default(t),s=Oe.default(t),l=je.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Ge.default(e,n)<0||r&&Ge.default(e,r)>0}function fn(e,t){return t.some((function(t){return De.default(t)===De.default(e)&&Pe.default(t)===Pe.default(e)}))}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&fn(e,n)||r&&!fn(e,r)||i&&!i(e)||!1}function gn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Lt(),a=Ue.default(Be.default(o,Pe.default(e)),De.default(e)),s=Ue.default(Be.default(o,Pe.default(n)),De.default(n)),l=Ue.default(Be.default(o,Pe.default(r)),De.default(r));try{i=!ut.default(a,{start:s,end:l})}catch(e){i=!1}return i}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=_e.default(e,1);return n&&Ye.default(n,i)>0||r&&r.every((function(e){return Ye.default(e,i)>0}))||!1}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=we.default(e,1);return n&&Ye.default(i,n)>0||r&&r.every((function(e){return Ye.default(i,e)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Se.default(e,1);return n&&Ke.default(n,i)>0||r&&r.every((function(e){return Ke.default(e,i)>0}))||!1}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Ce.default(e,1);return n&&Ke.default(i,n)>0||r&&r.every((function(e){return Ke.default(i,e)>0}))||!1}function xn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return Ge.default(e,t)>=0}));return We.default(r)}return n?We.default(n):t}function Cn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return Ge.default(e,t)<=0}));return qe.default(r)}return n?qe.default(n):t}function An(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(he.default(o)){var a=Ut(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===bt(o)){var l=Object.keys(o),c=l[0],u=o[l[0]];if("string"==typeof c&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var h=Ut(u[d],"MM.dd.yyyy"),f=n.get(h)||[];f.includes(c)||(f.push(c),n.set(h,f))}}}return n}function En(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(e){var r=e.date,i=e.holidayName;if(he.default(r)){var o=Ut(r,"MM.dd.yyyy"),a=n.get(o)||{};if(!("className"in a)||a.className!==t||(s=a.holidayNames,l=[i],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;a.className=t;var c=a.holidayNames;a.holidayNames=c?[].concat(Dt(c),[i]):[i],n.set(o,a)}}})),n}function _n(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=ge.default(ve.default(e,De.default(i[s])),Pe.default(i[s])),c=ge.default(e,(n+1)*r);lt.default(l,t)&&ct.default(l,c)&&a.push(i[s])}return a}function Tn(e){return e<10?"0".concat(e):"".concat(e)}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt,n=Math.ceil(je.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function kn(e){var t=e.getSeconds(),n=e.getMilliseconds();return dt.default(e.getTime()-1e3*t-n)}function Pn(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=je.default(n)<=a),r&&s&&(s=je.default(r)>=a),s&&i.push(a)}return i}var Dn=function(e){_t(r,e);var n=Pt(r);function r(e){var i;wt(this,r),At(kt(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return de.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(kt(i),t),"aria-selected":e===t?"true":void 0},e===t?de.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=i.props.minDate?je.default(i.props.minDate):null,r=i.props.maxDate?je.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(de.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(de.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),At(kt(i),"onChange",(function(e){i.props.onChange(e)})),At(kt(i),"handleClickOutside",(function(){i.props.onCancel()})),At(kt(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),At(kt(i),"incrementYears",(function(){return i.shiftYears(1)})),At(kt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Pn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return Ct(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=pe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return de.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(de.default.Component),Fn=ft.default(Dn),Nn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),At(kt(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?je.default(e.props.minDate):1900,n=e.props.maxDate?je.default(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(de.default.createElement("option",{key:i,value:i},i));return r})),At(kt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),At(kt(e),"renderSelectMode",(function(){return de.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),At(kt(e),"renderReadView",(function(t){return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},de.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),At(kt(e),"renderDropdown",(function(){return de.default.createElement(Fn,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),At(kt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),At(kt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),At(kt(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),At(kt(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),At(kt(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),At(kt(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return Ct(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return de.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component),In=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),At(kt(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return de.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(kt(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?de.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),At(kt(e),"onChange",(function(t){return e.props.onChange(t)})),At(kt(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return Ct(n,[{key:"render",value:function(){return de.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(de.default.Component),Rn=ft.default(In),On=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),At(kt(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return de.default.createElement("option",{key:t,value:t},e)}))})),At(kt(e),"renderSelectMode",(function(t){return de.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),At(kt(e),"renderReadView",(function(t,n){return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},de.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),At(kt(e),"renderDropdown",(function(t){return de.default.createElement(Rn,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),At(kt(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),At(kt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),At(kt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return Ct(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return rn(e,t.props.locale)}:function(e){return nn(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return de.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component);function jn(e,t){for(var n=[],r=Wt(e),i=Wt(t);!lt.default(r,i);)n.push(Lt(r)),r=we.default(r,1);return n}var Mn=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Me.default(e),n=Kt(r.props.date,e)&&Qt(r.props.date,e);return de.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(kt(r),t),"aria-selected":n?"true":void 0},n?de.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Ut(e,r.props.dateFormat,r.props.locale))}))})),At(kt(r),"onChange",(function(e){return r.props.onChange(e)})),At(kt(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:jn(r.props.minDate,r.props.maxDate)},r}return Ct(n,[{key:"render",value:function(){var e=pe.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return de.default.createElement("div",{className:e},this.renderOptions())}}]),n}(de.default.Component),Ln=ft.default(Mn),Bn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),At(kt(e),"renderSelectOptions",(function(){for(var t=Wt(e.props.minDate),n=Wt(e.props.maxDate),r=[];!lt.default(t,n);){var i=Me.default(t);r.push(de.default.createElement("option",{key:i,value:i},Ut(t,e.props.dateFormat,e.props.locale))),t=we.default(t,1)}return r})),At(kt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),At(kt(e),"renderSelectMode",(function(){return de.default.createElement("select",{value:Me.default(Wt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),At(kt(e),"renderReadView",(function(t){var n=Ut(e.props.date,e.props.dateFormat,e.props.locale);return de.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},de.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),de.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),At(kt(e),"renderDropdown",(function(){return de.default.createElement(Ln,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),At(kt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),At(kt(e),"onChange",(function(t){e.toggleDropdown();var n=Lt(parseInt(t));Kt(e.props.date,n)&&Qt(e.props.date,n)||e.props.onChange(n)})),At(kt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return Ct(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return de.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(de.default.Component),Un=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"dayEl",de.default.createRef()),At(kt(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),At(kt(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),At(kt(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),At(kt(e),"isSameDay",(function(t){return Zt(e.props.day,t)})),At(kt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!(e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected))&&(e.isSameDay(e.props.preSelection)||e.isSameWeek(e.props.preSelection))})),At(kt(e),"isDisabled",(function(){return on(e.props.day,e.props)})),At(kt(e),"isExcluded",(function(){return an(e.props.day,e.props)})),At(kt(e),"isStartOfWeek",(function(){return Zt(e.props.day,zt(e.props.day,e.props.locale,e.props.calendarStartDay))})),At(kt(e),"isSameWeek",(function(t){return e.props.showWeekPicker&&Zt(t,zt(e.props.day,e.props.locale,e.props.calendarStartDay))})),At(kt(e),"getHighLightedClass",(function(){var t=e.props,n=t.day,r=t.highlightDates;if(!r)return!1;var i=Ut(n,"MM.dd.yyyy");return r.get(i)})),At(kt(e),"getHolidaysClass",(function(){var t=e.props,n=t.day,r=t.holidays;if(!r)return!1;var i=Ut(n,"MM.dd.yyyy");return r.has(i)?[r.get(i).className]:void 0})),At(kt(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&$t(n,r,i)})),At(kt(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||o||a)||!u||!s&&e.isDisabled())&&(i&&c&&(ct.default(u,c)||Jt(u,c))?$t(r,u,c):(o&&l&&(lt.default(u,l)||Jt(u,l))||!(!a||!l||c||!lt.default(u,l)&&!Jt(u,l)))&&$t(r,l,u))})),At(kt(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Zt(r,o?a:i)})),At(kt(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=n.selectsRange,s=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Zt(r,o||a?s:i)})),At(kt(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Zt(r,n)})),At(kt(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Zt(i,n)})),At(kt(e),"isWeekend",(function(){var t=Fe.default(e.props.day);return 0===t||6===t})),At(kt(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Re.default(e.props.day)})),At(kt(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Re.default(e.props.day)+1)%12===e.props.month})),At(kt(e),"isCurrentDay",(function(){return e.isSameDay(Lt())})),At(kt(e),"isSelected",(function(){return e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected)})),At(kt(e),"getClassNames",(function(t){var n,r=e.props.dayClassName?e.props.dayClassName(t):void 0;return pe.default("react-datepicker__day",r,"react-datepicker__day--"+Ut(e.props.day,"ddd",n),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())})),At(kt(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(Ut(n,"PPPP",e.props.locale))})),At(kt(e),"getTitle",(function(){var t=e.props,n=t.day,r=t.holidays,i=void 0===r?new Map:r,o=Ut(n,"MM.dd.yyyy");return i.has(o)&&i.get(o).holidayNames.length>0?i.get(o).holidayNames.join(", "):""})),At(kt(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(r)&&Zt(i,r))?0:-1})),At(kt(e),"handleFocusDay",(function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))})),At(kt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Ne.default(e.props.day),e.props.day):Ne.default(e.props.day)})),At(kt(e),"render",(function(){return de.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&de.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))})),e}return Ct(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(de.default.Component),Vn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"weekNumberEl",de.default.createRef()),At(kt(e),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),At(kt(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),At(kt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Zt(e.props.date,e.props.selected)&&Zt(e.props.date,e.props.preSelection)})),At(kt(e),"getTabIndex",(function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||Zt(e.props.date,e.props.selected)&&Zt(e.props.preSelection,e.props.selected))?0:-1})),At(kt(e),"handleFocusWeekNumber",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&Zt(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})})),e}return Ct(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":Zt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{ref:this.weekNumberEl,className:pe.default(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(de.default.Component),Hn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),At(kt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),At(kt(e),"handleWeekClick",(function(t,n,r){if("function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.showWeekPicker){var i=zt(t,e.props.locale,e.props.calendarStartDay);e.handleDayClick(i,r)}e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),At(kt(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):function(e,t){var n=t&&tn(t)||en()&&tn(en());return Ie.default(e,n?{locale:n}:null)}(t)})),At(kt(e),"renderDays",(function(){var t=zt(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(kt(e),t,r):void 0;n.push(de.default.createElement(Vn,{key:"W",weekNumber:r,date:t,onClick:i,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ye.default(t,n);return de.default.createElement(Un,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(kt(e),r),onMouseEnter:e.handleDayMouseEnter.bind(kt(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),At(kt(e),"startOfWeek",(function(){return zt(e.props.day,e.props.locale,e.props.calendarStartDay)})),At(kt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Zt(e.startOfWeek(),e.props.selected)&&Zt(e.startOfWeek(),e.props.preSelection)})),e}return Ct(n,[{key:"render",value:function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Zt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{className:pe.default(e)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(de.default.Component),zn="two_columns",Wn="three_columns",qn="four_columns",Gn=At(At(At({},zn,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),Wn,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),qn,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function Yn(e,t){return e?qn:t?zn:Wn}var Kn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"MONTH_REFS",Dt(Array(12)).map((function(){return de.default.createRef()}))),At(kt(e),"QUARTER_REFS",Dt(Array(4)).map((function(){return de.default.createRef()}))),At(kt(e),"isDisabled",(function(t){return on(t,e.props)})),At(kt(e),"isExcluded",(function(t){return an(t,e.props)})),At(kt(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),At(kt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),At(kt(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),At(kt(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Qt(Ve.default(r,t),i)})),At(kt(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Xt(He.default(r,t),i)})),At(kt(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Qt(Ve.default(r,t),o)})),At(kt(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Xt(He.default(r,t),o)})),At(kt(e),"isInSelectingRangeMonth",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?ln(u,c,t,i):(a&&l||!(!s||!l||c))&&ln(l,u,t,i))})),At(kt(e),"isSelectingMonthRangeStart",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.startDate,a=r.selectsStart,s=Ve.default(i,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Qt(s,a?l:o)})),At(kt(e),"isSelectingMonthRangeEnd",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,i=r.day,o=r.endDate,a=r.selectsEnd,s=r.selectsRange,l=Ve.default(i,t),c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Qt(l,a||s?c:o)})),At(kt(e),"isInSelectingRangeQuarter",(function(t){var n,r=e.props,i=r.day,o=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(o||a||s)||!u)&&(o&&c?pn(u,c,t,i):(a&&l||!(!s||!l||c))&&pn(l,u,t,i))})),At(kt(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ye.default(t,6);return Qt(t,n)||Qt(r,n)})),At(kt(e),"isCurrentMonth",(function(e,t){return je.default(e)===je.default(Lt())&&t===Re.default(Lt())})),At(kt(e),"isCurrentQuarter",(function(e,t){return je.default(e)===je.default(Lt())&&t===Oe.default(Lt())})),At(kt(e),"isSelectedMonth",(function(e,t,n){return Re.default(n)===t&&je.default(e)===je.default(n)})),At(kt(e),"isSelectedQuarter",(function(e,t,n){return Oe.default(e)===t&&je.default(e)===je.default(n)})),At(kt(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,o=zt(Wt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(de.default.createElement(Hn,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:o,month:Re.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){r++,o=be.default(o,1);var a=n&&r>=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),At(kt(e),"onMonthClick",(function(t,n){e.handleDayClick(Wt(Ve.default(e.props.day,n)),t)})),At(kt(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(Wt(Ve.default(e.props.day,t)))})),At(kt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),At(kt(e),"onMonthKeyDown",(function(t,n){var r=e.props,i=r.selected,o=r.preSelection,a=r.disabledKeyboardNavigation,s=r.showTwoColumnMonthYearPicker,l=r.showFourColumnMonthYearPicker,c=r.setPreSelection,u=t.key;if("Tab"!==u&&t.preventDefault(),!a){var d=Yn(l,s),p=Gn[d].verticalNavigationOffset,h=Gn[d].grid;switch(u){case"Enter":e.onMonthClick(t,n),c(i);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,we.default(o,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,_e.default(o,1));break;case"ArrowUp":e.handleMonthNavigation(h[0].includes(n)?n+12-p:n-p,_e.default(o,p));break;case"ArrowDown":e.handleMonthNavigation(h[h.length-1].includes(n)?n-12+p:n+p,we.default(o,p))}}})),At(kt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Gt(He.default(e.props.day,n)),t)})),At(kt(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(Gt(He.default(e.props.day,t)))})),At(kt(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),At(kt(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,xe.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,Te.default(e.props.preSelection,1))}})),At(kt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=n.excludeDates,p=n.includeDates,h=u?u(Ve.default(r,t)):void 0,f=Ve.default(r,t);return pe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),h,{"react-datepicker__month-text--disabled":(s||l||d||p)&&sn(f,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Re.default(c)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":ln(i,o,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),At(kt(e),"getTabIndex",(function(t){var n=Re.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),At(kt(e),"getQuarterTabIndex",(function(t){var n=Oe.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),At(kt(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=Ve.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?a:i;return"".concat(c," ").concat(Ut(l,"MMMM yyyy"))})),At(kt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.disabledKeyboardNavigation;return pe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(s||l)&&cn(He.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":!u&&Oe.default(c)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":pn(i,o,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),At(kt(e),"getMonthContent",(function(t){var n=e.props,r=n.showFullMonthYearPicker,i=n.renderMonthContent,o=n.locale,a=n.day,s=rn(t,o),l=nn(t,o);return i?i(t,s,l,a):r?l:s})),At(kt(e),"getQuarterContent",(function(t){var n=e.props,r=n.renderQuarterContent,i=function(e,t){return Ut(He.default(Lt(),e),"QQQ",t)}(t,n.locale);return r?r(t,i):i})),At(kt(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,i=t.day,o=t.selected;return Gn[Yn(r,n)].grid.map((function(t,n){return de.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return de.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(i,t)?"date":void 0,"aria-selected":e.isSelectedMonth(i,t,o)},e.getMonthContent(t))})))}))})),At(kt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return de.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return de.default.createElement("div",{key:i,ref:e.QUARTER_REFS[i],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))})),At(kt(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker,s=t.showWeekPicker;return pe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a},{"react-datepicker__weekPicker":s})})),e}return Ct(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return de.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Ut(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(de.default.Component),Qn=function(e){_t(n,e);var t=Pt(n);function n(){var e;wt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return At(kt(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),At(kt(e),"scrollToTheSelectedTime",(function(){requestAnimationFrame((function(){e.list&&(e.list.scrollTop=e.centerLi&&n.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))}))})),At(kt(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&gn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)||e.props.onChange(t)})),At(kt(e),"isSelectedTime",(function(t){return e.props.selected&&(n=t,kn(e.props.selected).getTime()===kn(n).getTime());var n})),At(kt(e),"isDisabledTime",(function(t){return(e.props.minTime||e.props.maxTime)&&gn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)})),At(kt(e),"liClasses",(function(t){var n=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&n.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&n.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*De.default(t)+Pe.default(t))%e.props.intervals!=0&&n.push("react-datepicker__time-list-item--injected"),n.join(" ")})),At(kt(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||!t.target.previousSibling||(t.preventDefault(),t.target.previousSibling.focus()),"ArrowDown"!==t.key&&"ArrowRight"!==t.key||!t.target.nextSibling||(t.preventDefault(),t.target.nextSibling.focus()),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),At(kt(e),"renderTimes",(function(){for(var t,n=[],r=e.props.format?e.props.format:"p",i=e.props.intervals,o=e.props.selected||e.props.openToDate||Lt(),a=(t=o,Qe.default(t)),s=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),l=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(o),c=l/i,u=0;u<c;u++){var d=ge.default(a,u*i);if(n.push(d),s){var p=_n(a,d,u,i,s);n=n.concat(p)}}var h=n.reduce((function(e,t){return t.getTime()<=o.getTime()?t:e}),n[0]);return n.map((function(t,n){return de.default.createElement("li",{key:n,onClick:e.handleClick.bind(kt(e),t),className:e.liClasses(t),ref:function(n){t===h&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:t===h?0:-1,role:"option","aria-selected":e.isSelectedTime(t)?"true":void 0,"aria-disabled":e.isDisabledTime(t)?"true":void 0},Ut(t,r,e.props.locale))}))})),e}return Ct(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return de.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},de.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),de.default.createElement("div",{className:"react-datepicker__time"},de.default.createElement("div",{className:"react-datepicker__time-box"},de.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(de.default.Component);At(Qn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Xn=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"YEAR_REFS",Dt(Array(r.props.yearItemNumber)).map((function(){return de.default.createRef()}))),At(kt(r),"isDisabled",(function(e){return on(e,r.props)})),At(kt(r),"isExcluded",(function(e){return an(e,r.props)})),At(kt(r),"selectingDate",(function(){var e;return null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection})),At(kt(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(kt(r));window.requestAnimationFrame(t)})),At(kt(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),At(kt(r),"handleYearNavigation",(function(e,t){var n=r.props,i=n.date,o=n.yearItemNumber,a=Sn(i,o).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(o-1):e-a===o?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),At(kt(r),"isSameDay",(function(e,t){return Zt(e,t)})),At(kt(r),"isCurrentYear",(function(e){return e===je.default(Lt())})),At(kt(r),"isRangeStart",(function(e){return r.props.startDate&&r.props.endDate&&Kt(ze.default(Lt(),e),r.props.startDate)})),At(kt(r),"isRangeEnd",(function(e){return r.props.startDate&&r.props.endDate&&Kt(ze.default(Lt(),e),r.props.endDate)})),At(kt(r),"isInRange",(function(e){return un(e,r.props.startDate,r.props.endDate)})),At(kt(r),"isInSelectingRange",(function(e){var t=r.props,n=t.selectsStart,i=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||i||o)||!r.selectingDate())&&(n&&s?un(e,r.selectingDate(),s):(i&&a||!(!o||!a||s))&&un(e,a,r.selectingDate()))})),At(kt(r),"isSelectingRangeStart",(function(e){if(!r.isInSelectingRange(e))return!1;var t=r.props,n=t.startDate,i=t.selectsStart;return Kt(ze.default(Lt(),e),i?r.selectingDate():n)})),At(kt(r),"isSelectingRangeEnd",(function(e){if(!r.isInSelectingRange(e))return!1;var t=r.props,n=t.endDate,i=t.selectsEnd,o=t.selectsRange;return Kt(ze.default(Lt(),e),i||o?r.selectingDate():n)})),At(kt(r),"isKeyboardSelected",(function(e){var t=qt(ze.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Zt(t,qt(r.props.selected))&&Zt(t,qt(r.props.preSelection))})),At(kt(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(qt(ze.default(n,t)),e)})),At(kt(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,Ce.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Se.default(r.props.preSelection,1))}})),At(kt(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,i=t.maxDate,o=t.selected,a=t.excludeDates,s=t.includeDates,l=t.filterDate;return pe.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===je.default(o),"react-datepicker__year-text--disabled":(n||i||a||s||l)&&dn(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--range-start":r.isRangeStart(e),"react-datepicker__year-text--range-end":r.isRangeEnd(e),"react-datepicker__year-text--in-range":r.isInRange(e),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),At(kt(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===je.default(r.props.preSelection)?"0":"-1"})),At(kt(r),"getYearContainerClassNames",(function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,i=e.selectsEnd,o=e.selectsRange;return pe.default("react-datepicker__year",{"react-datepicker__year--selecting-range":t&&(n||i||o)})})),At(kt(r),"getYearContent",(function(e){return r.props.renderYearContent?r.props.renderYearContent(e):e})),r}return Ct(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,o=n.onYearMouseEnter,a=n.onYearMouseLeave,s=Sn(r,i),l=s.startPeriod,c=s.endPeriod,u=function(n){t.push(de.default.createElement("div",{ref:e.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),onMouseEnter:function(e){return o(e,n)},onMouseLeave:function(e){return a(e,n)},key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},e.getYearContent(n)))},d=l;d<=c;d++)u(d);return de.default.createElement("div",{className:this.getYearContainerClassNames()},de.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},t))}}]),n}(de.default.Component),Zn=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=r.props.date,n=t instanceof Date&&!isNaN(t)?t:new Date;n.setHours(e.split(":")[0]),n.setMinutes(e.split(":")[1]),r.props.onChange(n)})),At(kt(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,i=t.timeString,o=t.customTimeInput;return o?de.default.cloneElement(o,{date:n,value:e,onChange:r.onTimeChange}):de.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})})),r.state={time:r.props.timeString},r}return Ct(n,[{key:"render",value:function(){return de.default.createElement("div",{className:"react-datepicker__input-time-container"},de.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),de.default.createElement("div",{className:"react-datepicker-time__input-container"},de.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(de.default.Component);function Jn(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=void 0===i?{}:i;return de.default.createElement("div",{className:t},r&&de.default.createElement("div",Et({className:"react-datepicker__triangle"},o)),n)}var $n=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],er=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),At(kt(r),"setClickOutsideRef",(function(){return r.containerRef.current})),At(kt(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return $n.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),At(kt(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=xn(r.props),a=Cn(r.props),s=Lt();return i||n||t||(o&&ct.default(s,o)?o:a&&lt.default(s,a)?a:s)})),At(kt(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:we.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),At(kt(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:_e.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),At(kt(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),At(kt(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),At(kt(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),At(kt(r),"handleYearMouseEnter",(function(e,t){r.setState({selectingDate:ze.default(Lt(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)})),At(kt(r),"handleYearMouseLeave",(function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)})),At(kt(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),At(kt(r),"handleMonthChange",(function(e){r.handleCustomMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),At(kt(r),"handleCustomMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0}))})),At(kt(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),At(kt(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:ze.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),At(kt(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Ve.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),At(kt(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:ze.default(Ve.default(n,Re.default(e)),je.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),At(kt(r),"header",(function(){var e=zt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(de.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ye.default(e,t),i=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return de.default.createElement("div",{key:t,className:pe.default("react-datepicker__day-name",o)},i)})))})),At(kt(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Ut(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Ut(e,"EEE",t)}(e,t):function(e,t){return Ut(e,"EEEEEE",t)}(e,t)})),At(kt(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Se.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),At(kt(r),"clearSelectingDate",(function(){r.setState({selectingDate:null})})),At(kt(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=bn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?jt:r,o=Sn(qt(Se.default(e,i)),i).endPeriod,a=n&&je.default(n);return a&&a>o||!1}(r.state.date,r.props);break;default:e=vn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=r.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Previous Month":c,d=l.previousYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Previous Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?p:u},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),At(kt(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Ce.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),At(kt(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=wn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?jt:r,o=Sn(Ce.default(e,i),i).startPeriod,a=n&&je.default(n);return a&&a<o||!1}(r.state.date,r.props);break;default:e=yn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.nextMonthButtonLabel,s=o.nextYearButtonLabel,l=r.props,c=l.nextMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Next Month":c,d=l.nextYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Next Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?p:u},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),At(kt(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),de.default.createElement("div",{className:t.join(" ")},Ut(e,r.props.dateFormat,r.props.locale))})),At(kt(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return de.default.createElement(Nn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:je.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),At(kt(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return de.default.createElement(On,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Re.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),At(kt(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return de.default.createElement(Bn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),At(kt(r),"handleTodayButtonClick",(function(e){r.props.onSelect(Yt(),e),r.props.setPreSelection&&r.props.setPreSelection(Yt())})),At(kt(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return de.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),At(kt(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return de.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),de.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),At(kt(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=vn(r.state.date,r.props),o=yn(r.state.date,r.props),a=bn(r.state.date,r.props),s=wn(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(yt(yt({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&de.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),At(kt(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=Sn(e,t.yearItemNumber),o=i.startPeriod,a=i.endPeriod;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(a):je.default(e))})),At(kt(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),At(kt(r),"renderMonths",(function(){var e;if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var t=[],n=r.props.showPreviousMonths?r.props.monthsShown-1:0,i=_e.default(r.state.date,n),o=null!==(e=r.props.monthSelectedIn)&&void 0!==e?e:n,a=0;a<r.props.monthsShown;++a){var s=a-o+n,l=we.default(i,s),c="month-".concat(a),u=a<r.props.monthsShown-1,d=a>0;t.push(de.default.createElement("div",{key:c,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:l,i:a}),de.default.createElement(Kn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:l,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:d})))}return t}})),At(kt(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?de.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),de.default.createElement(Xn,Et({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave}))):void 0})),At(kt(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return de.default.createElement(Qn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),At(kt(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Bt(e)&&Boolean(r.props.selected)?"".concat(Tn(e.getHours()),":").concat(Tn(e.getMinutes())):"";if(r.props.showTimeInput)return de.default.createElement(Zn,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),At(kt(r),"renderAriaLiveRegion",(function(){var e,t=Sn(r.state.date,r.props.yearItemNumber),n=t.startPeriod,i=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(i):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?je.default(r.state.date):"".concat(nn(Re.default(r.state.date),r.props.locale)," ").concat(je.default(r.state.date)),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),At(kt(r),"renderChildren",(function(){if(r.props.children)return de.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=de.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return Ct(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||Zt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Zt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Qt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||Jn;return de.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},de.default.createElement(e,{className:pe.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:jt}}}]),n}(de.default.Component),tr=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return de.default.isValidElement(t)?de.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):"string"==typeof t?de.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):de.default.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},de.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},nr=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return Ct(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return mt.default.createPortal(this.props.children,this.el)}}]),n}(de.default.Component),rr=function(e){return!e.disabled&&-1!==e.tabIndex},ir=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(rr)})),At(kt(r),"handleFocusStart",(function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),At(kt(r),"handleFocusEnd",(function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()})),r.tabLoopRef=de.default.createRef(),r}return Ct(n,[{key:"render",value:function(){return this.props.enableTabLoop?de.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},de.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,de.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(de.default.Component),or=function(e){_t(n,e);var t=Pt(n);function n(){return wt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,o=t.popperComponent,a=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,c=t.targetComponent,u=t.enableTabLoop,d=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!i){var f=pe.default("react-datepicker-popper",n);e=de.default.createElement(le.Popper,Et({modifiers:a,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return de.default.createElement(ir,{enableTabLoop:u},de.default.createElement("div",{ref:t,style:n,className:f,"data-placement":r,onKeyDown:d},de.default.cloneElement(o,{arrowProps:i})))}))}this.props.popperContainer&&(e=de.default.createElement(this.props.popperContainer,{},e)),p&&!i&&(e=de.default.createElement(nr,{portalId:p,portalHost:h},e));var m=pe.default("react-datepicker-wrapper",r);return de.default.createElement(le.Manager,{className:"react-datepicker-manager"},de.default.createElement(le.Reference,null,(function(e){var t=e.ref;return de.default.createElement("div",{ref:t,className:m},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(de.default.Component),ar="react-datepicker-ignore-onclickoutside",sr=ft.default(er),lr="Date input not valid.",cr=function(e){_t(n,e);var t=Pt(n);function n(e){var r;return wt(this,n),At(kt(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Lt()})),At(kt(r),"modifyHolidays",(function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return fe.default(n)?[].concat(Dt(e),[yt(yt({},t),{},{date:n})]):e}),[])})),At(kt(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=xn(r.props),i=Cn(r.props),o=n&&ct.default(t,Qe.default(n))?n:i&&lt.default(t,et.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:An(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),At(kt(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),At(kt(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),At(kt(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),At(kt(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:dr},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),At(kt(r),"inputOk",(function(){return he.default(r.state.preSelection)})),At(kt(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),At(kt(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),At(kt(r),"sendFocusBackToInput",(function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},(function(){r.preventFocusTimeout=setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))}))})),At(kt(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),At(kt(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),At(kt(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),At(kt(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),At(kt(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),At(kt(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(kt(r),t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value,lastPreSelectChange:ur});var o,a,s,l,c,u,d,p,h=(o=i.target.value,a=r.props.dateFormat,s=r.props.locale,l=r.props.strictParsing,c=r.props.minDate,u=null,d=tn(s)||tn(en()),p=!0,Array.isArray(a)?(a.forEach((function(e){var t=pt.default(o,e,new Date,{locale:d});l&&(p=Bt(t,c)&&o===Ut(t,e,s)),Bt(t,c)&&p&&(u=t)})),u):(u=pt.default(o,a,new Date,{locale:d}),l?p=Bt(u)&&o===Ut(u,a,s):Bt(u)||(a=a.match(Mt).map((function(e){var t=e[0];return"p"===t||"P"===t?d?(0,Ot[t])(e,d.formatLong):t:e})).join(""),o.length>0&&(u=pt.default(o,a.slice(0,o.length),new Date)),Bt(u)||(u=new Date(o))),Bt(u)&&p?u:null));r.props.showTimeSelectOnly&&r.props.selected&&h&&!Zt(h,r.props.selected)&&(h=gt.default(r.props.selected,{hours:De.default(h),minutes:Pe.default(h),seconds:ke.default(h)})),!h&&i.target.value||(r.props.showWeekPicker&&(h=zt(h,r.props.locale,r.props.calendarStartDay)),r.setSelected(h,i,!0))}})),At(kt(r),"handleSelect",(function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.props.showWeekPicker&&(e=zt(e,r.props.locale,r.props.calendarStartDay)),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,o=i.startDate,a=i.endDate;!o||a||ct.default(e,o)||r.setOpen(!1)}})),At(kt(r),"setSelected",(function(e,t,n,i){var o=e;if(r.props.showYearPicker){if(null!==o&&dn(je.default(o),r.props))return}else if(r.props.showMonthYearPicker){if(null!==o&&sn(o,r.props))return}else if(null!==o&&on(o,r.props))return;var a=r.props,s=a.onChange,l=a.selectsRange,c=a.startDate,u=a.endDate;if(!Jt(r.props.selected,o)||r.props.allowSameDay||l)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=Ht(o,{hour:De.default(r.props.selected),minute:Pe.default(r.props.selected),second:ke.default(r.props.selected)})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),l){var d=c&&u;c||u?c&&!u&&(ct.default(o,c)?s([o,null],t):s([c,o],t)):s([o,null],t),d&&s([o,null],t)}else s(o,t);n||(r.props.onSelect(o,t),r.setState({inputValue:null}))})),At(kt(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,i=!0;if(e){r.props.showWeekPicker&&(e=zt(e,r.props.locale,r.props.calendarStartDay));var o=Qe.default(e);if(t&&n)i=$t(e,r.props.minDate,r.props.maxDate);else if(t){var a=Qe.default(r.props.minDate);i=lt.default(e,a)||Jt(o,a)}else if(n){var s=et.default(r.props.maxDate);i=ct.default(e,s)||Jt(o,s)}}i&&r.setState({preSelection:e})})),At(kt(r),"toggleCalendar",(function(){r.setOpen(!r.state.open)})),At(kt(r),"handleTimeChange",(function(e){var t=r.props.selected?r.props.selected:r.getPreSelection(),n=r.props.selected?e:Ht(t,{hour:De.default(e),minute:Pe.default(e)});r.setState({preSelection:n}),r.props.onChange(n),r.props.shouldCloseOnSelect&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})})),At(kt(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),At(kt(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',i=r.calendar.componentNode&&r.calendar.componentNode.querySelector(n);return void(i&&i.focus({preventScroll:!0}))}var o=Lt(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===dr?(r.handleSelect(o,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1)):"Escape"===t?(e.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):"Tab"===t&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:lr})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),At(kt(r),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),At(kt(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=Lt(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:lr});else if(!r.props.disabledKeyboardNavigation){var i;switch(t){case"ArrowLeft":i=r.props.showWeekPicker?Ee.default(n,1):Ae.default(n,1);break;case"ArrowRight":i=r.props.showWeekPicker?be.default(n,1):ye.default(n,1);break;case"ArrowUp":i=Ee.default(n,1);break;case"ArrowDown":i=be.default(n,1);break;case"PageUp":i=_e.default(n,1);break;case"PageDown":i=we.default(n,1);break;case"Home":i=Se.default(n,1);break;case"End":i=Ce.default(n,1);break;default:i=null}if(!i)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:lr}));if(e.preventDefault(),r.setState({lastPreSelectChange:dr}),r.props.adjustDateOnChange&&r.setSelected(i),r.setPreSelection(i),r.props.inline){var o=Re.default(n),a=Re.default(i),s=je.default(n),l=je.default(i);o!==a||s!==l?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),At(kt(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.sendFocusBackToInput())})),At(kt(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),At(kt(r),"clear",(function(){r.onClearClick()})),At(kt(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),At(kt(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?de.default.createElement(sr,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,holidays:En(r.modifyHolidays()),includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:ar,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),At(kt(r),"renderAriaLiveRegion",(function(){var e,t=r.props,n=t.dateFormat,i=t.locale,o=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(Vt(r.props.startDate,{dateFormat:o,locale:i}),". ").concat(r.props.endDate?"End date: "+Vt(r.props.endDate,{dateFormat:o,locale:i}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(Vt(r.props.selected,{dateFormat:n,locale:i})):r.props.showYearPicker?"Selected year: ".concat(Vt(r.props.selected,{dateFormat:"yyyy",locale:i})):r.props.showMonthYearPicker?"Selected month: ".concat(Vt(r.props.selected,{dateFormat:"MMMM yyyy",locale:i})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(Vt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(Vt(r.props.selected,{dateFormat:o,locale:i})),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)})),At(kt(r),"renderDateInput",(function(){var e,t=pe.default(r.props.className,At({},ar,r.state.open)),n=r.props.customInput||de.default.createElement("input",{type:"text"}),i=r.props.customInputRef||"ref",o="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=Vt(e,n),i=t?Vt(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,r.props):Vt(r.props.selected,r.props);return de.default.cloneElement(n,(At(At(At(At(At(At(At(At(At(At(e={},i,(function(e){r.input=e})),"value",o),"onBlur",r.handleBlur),"onChange",r.handleChange),"onClick",r.onInputClick),"onFocus",r.handleFocus),"onKeyDown",r.onInputKeyDown),"id",r.props.id),"name",r.props.name),"form",r.props.form),At(At(At(At(At(At(At(At(At(At(e,"autoFocus",r.props.autoFocus),"placeholder",r.props.placeholderText),"disabled",r.props.disabled),"autoComplete",r.props.autoComplete),"className",pe.default(n.props.className,t)),"title",r.props.title),"readOnly",r.props.readOnly),"required",r.props.required),"tabIndex",r.props.tabIndex),"aria-describedby",r.props.ariaDescribedBy),At(At(At(e,"aria-invalid",r.props.ariaInvalid),"aria-labelledby",r.props.ariaLabelledBy),"aria-required",r.props.ariaRequired)))})),At(kt(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.disabled,i=e.selected,o=e.startDate,a=e.endDate,s=e.clearButtonTitle,l=e.clearButtonClassName,c=void 0===l?"":l,u=e.ariaLabelClose,d=void 0===u?"Close":u;return!t||null==i&&null==o&&null==a?null:de.default.createElement("button",{type:"button",className:pe.default("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":d,onClick:r.onClearClick,title:s,tabIndex:-1})})),r.state=r.calcInitialState(),r.preventFocusTimeout=null,r}return Ct(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Re.default(n)!==Re.default(r)||je.default(n)!==je.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:An(this.props.highlightDates)}),t.focused||Jt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,i=e.toggleCalendarOnIconClick,o=this.state.open;return de.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&de.default.createElement(tr,Et({icon:n,className:"".concat(r," ").concat(o&&"react-datepicker-ignore-onclickoutside")},i?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?de.default.createElement(ir,{enableTabLoop:this.props.enableTabLoop},de.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=de.default.createElement(nr,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),de.default.createElement("div",null,this.renderInputContainer(),t)}return de.default.createElement(or,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:jt,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(de.default.Component),ur="input",dr="navigate";e.CalendarContainer=Jn,e.default=cr,e.getDefaultLocale=en,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(61462),n(5982),n(80978),n(3288),n(94034),n(20390),n(1068),n(11170),n(33744),n(17604),n(23160),n(88910),n(71903),n(66717),n(38503),n(69377),n(37099),n(74688),n(33125),n(98105),n(84635),n(30022),n(63436),n(28205),n(60154),n(80036),n(2585),n(71993),n(36393),n(32389),n(93759),n(64603),n(87520),n(91485),n(57208),n(65022),n(65521),n(46125),n(24140),n(6321),n(37121),n(24713),n(89983),n(93408),n(48266),n(19808),n(73814),n(22469),n(85716),n(70336),n(88948),n(10211),n(62646),n(42762),n(5819),n(47566),n(76705),n(61987),n(11056),n(66762),n(72551),n(81397),n(71108))},11647:(e,t,n)=>{var r=n(40035);function i(e,t){var n,i=null;if(!e||"string"!==typeof e)return i;for(var o,a,s=r(e),l="function"===typeof t,c=0,u=s.length;c<u;c++)o=(n=s[c]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}e.exports=i,e.exports.default=i},55989:(e,t,n)=>{"use strict";var r,i;n.d(t,{YO:()=>xe,zM:()=>W,ai:()=>$,Ik:()=>be,Yj:()=>Z});try{r=Map}catch(Ae){}try{i=Set}catch(Ae){}function o(e,t,n){if(!e||"object"!==typeof e||"function"===typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(a);if(r&&e instanceof r)return new Map(Array.from(e.entries()));if(i&&e instanceof i)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var s=Object.create(e);for(var l in n.push(s),e){var c=t.findIndex((function(t){return t===e[l]}));s[l]=c>-1?n[c]:o(e[l],t,n)}return s}return e}function a(e){return o(e,[],[])}const s=Object.prototype.toString,l=Error.prototype.toString,c=RegExp.prototype.toString,u="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",d=/^Symbol\((.*)\)(.*)$/;function p(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return u.call(e).replace(d,"Symbol($1)");const r=s.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+l.call(e)+"]":"RegExp"===r?c.call(e):null}function h(e,t){let n=p(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=p(this[e],t);return null!==r?r:n}),2)}let f={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e,o=null!=i&&i!==r,a="".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(h(r,!0),"`")+(o?" (cast from the value `".concat(h(i,!0),"`)."):".");return null===r&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},m={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},g={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y={isValue:"${path} field must be ${value}"},b={noUnknown:"${path} field has unspecified keys: ${unknown}"},w={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:f,string:m,number:g,date:v,object:b,array:w,boolean:y});var x=n(66278),C=n.n(x);const A=e=>e&&e.__isYupSchema__;const E=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"===typeof t)return void(this.fn=t);if(!C()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t.pop(),s=t.pop(),l=o(...t)?r:i;if(l)return"function"===typeof l?l(s):s.concat(l.resolve(a))}}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!A(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function _(e){return null==e?[]:[].concat(e)}function T(){return T=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},T.apply(this,arguments)}let S=/\$\{\s*(\w+)\s*\}/g;class k extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=T({},t,{path:n})),"string"===typeof e?e.replace(S,((e,n)=>h(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],_(e).forEach((e=>{k.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?"".concat(this.errors.length," errors occurred"):this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,k)}}function P(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,c=(e=>{let t=!1;return function(){t||(t=!0,e(...arguments))}})(t),u=r.length;const d=[];if(a=a||[],!u)return a.length?c(new k(a,o,l)):c(null,o);for(let p=0;p<r.length;p++){(0,r[p])(i,(function(e){if(e){if(!k.isError(e))return c(e,o);if(n)return e.value=o,c(e,o);d.push(e)}if(--u<=0){if(d.length&&(s&&d.sort(s),a.length&&d.push(...a),a=d),a.length)return void c(new k(a,o,l),o);c(null,o)}}))}}var D=n(99958),F=n.n(D),N=n(6342);const I="$",R=".";class O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===I,this.isValue=this.key[0]===R,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?I:this.isValue?R:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,N.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return"Ref(".concat(this.key,")")}static isRef(e){return e&&e.__isYupRef}}function j(){return j=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},j.apply(this,arguments)}function M(e){function t(t,n){let{value:r,path:i="",label:o,options:a,originalValue:s,sync:l}=t,c=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}(t,["value","path","label","options","originalValue","sync"]);const{name:u,test:d,params:p,message:h}=e;let{parent:f,context:m}=a;function g(e){return O.isRef(e)?e.getValue(r,f,m):e}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=F()(j({value:r,originalValue:s,label:o,path:e.path||i},p,e.params),g),n=new k(k.formatError(e.message||h,t),r,t.path,e.type||u);return n.params=t,n}let y,b=j({path:i,parent:f,type:u,createError:v,resolve:g,options:a,originalValue:s},c);if(l){try{var w;if(y=d.call(b,r,b),"function"===typeof(null==(w=y)?void 0:w.then))throw new Error('Validation test of type: "'.concat(b.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned")}catch(x){return void n(x)}k.isError(y)?n(y):y?n(null,y):n(v())}else try{Promise.resolve(d.call(b,r,b)).then((e=>{k.isError(e)?n(e):e?n(null,e):n(v())})).catch(n)}catch(x){n(x)}}return t.OPTIONS=e,t}O.prototype.__isYupRef=!0;function L(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,N.forEach)(t,((s,l,c)=>{let u=l?(e=>e.substr(0,e.length-1).substr(1))(s):s;if((e=e.resolve({context:a,parent:r,value:n})).innerType){let i=c?parseInt(u,10):0;if(n&&i>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[i],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e._type,'")'));r=n,n=n&&n[u],e=e.fields[u]}i=u,o=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class B{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,n)=>t.concat(O.isRef(n)?e(n):n)),[])}add(e){O.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){O.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new B;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach((e=>n.add(e))),e.refs.forEach((e=>n.add(e))),t.list.forEach((e=>n.delete(e))),t.refs.forEach((e=>n.delete(e))),n}}function U(){return U=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},U.apply(this,arguments)}class V{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new B,this._blacklist=new B,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(f.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=U({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=U({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=a(U({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));let t=this,n=e.clone();const r=U({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(U({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=h(e),o=h(r);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n._type,'". \n\n')+"attempted value: ".concat(i," \n")+(o!==i?"result of cast: ".concat(o):""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault()),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,c=e;s||(c=this._cast(c,U({assert:!1},t)));let u={value:c,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),P({args:u,value:c,path:i,sync:r,tests:d,endEarly:l},(e=>{e?n(e,c):P({tests:this.tests.concat(p),args:u,path:i,sync:r,value:c,endEarly:l},n)}))}validate(e,t,n){let r=this.resolve(U({},t,{value:e}));return"function"===typeof n?r._validate(e,t,n):new Promise(((n,i)=>r._validate(e,t,((e,t)=>{e?i(e):n(t)}))))}validateSync(e,t){let n;return this.resolve(U({},t,{value:e}))._validate(e,U({},t,{sync:!0}),((e,t)=>{if(e)throw e;n=t})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(k.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(k.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return null==e?e:"function"===typeof e?e.call(this):a(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.defined;return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.required;return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=f.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=M(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=_(e).map((e=>new O(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push(new E(r,t)),n}typeError(e){let t=this.clone();return t._typeError=M({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=M({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=M({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec;return{meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))}}}V.prototype.__isYupSchema__=!0;for(const Ee of["validate","validateSync"])V.prototype["".concat(Ee,"At")]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:i,schema:o}=L(this,e,t,n.context);return o[Ee](r&&r[i],U({},n,{parent:r,path:e}))};for(const Ee of["equals","is"])V.prototype[Ee]=V.prototype.oneOf;for(const Ee of["not","nope"])V.prototype[Ee]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired;const H=V;H.prototype;const z=e=>null==e;function W(){return new q}class q extends V{constructor(){super({type:"boolean"}),this.withMutation((()=>{this.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>z(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>z(e)||!1===e})}}W.prototype=q.prototype;let G=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Y=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,K=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Q=e=>z(e)||e===e.trim(),X={}.toString();function Z(){return new J}class J extends V{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===X?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"===typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||m.matches,params:{regex:e},test:t=>z(t)||""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.email;return this.matches(G,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.url;return this.matches(Y,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.uuid;return this.matches(K,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:Q})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.lowercase;return this.transform((e=>z(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.uppercase;return this.transform((e=>z(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}Z.prototype=J.prototype;function $(){return new ee}class ee extends V{constructor(){super({type:"number"}),this.withMutation((()=>{this.transform((function(e){let t=e;if("string"===typeof t){if(t=t.replace(/\s/g,""),""===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e)}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return z(t)||t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return z(t)||t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.integer;return this.test({name:"integer",message:e,test:e=>z(e)||Number.isInteger(e)})}truncate(){return this.transform((e=>z(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>z(t)?t:Math[e](t)))}}$.prototype=ee.prototype;var te=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ne=new Date("");function re(){return new ie}class ie extends V{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=te.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?ne:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let n;if(O.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return z(e)||e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return z(e)||e<=this.resolve(n)}})}}ie.INVALID_DATE=ne,re.prototype=ie.prototype,re.INVALID_DATE=ne;var oe=n(76970),ae=n.n(oe),se=n(17648),le=n.n(se),ce=n(59844),ue=n.n(ce),de=n(41567),pe=n.n(de);function he(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0})),n}function fe(e){return(t,n)=>he(e,t)-he(e,n)}function me(){return me=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},me.apply(this,arguments)}let ge=e=>"[object Object]"===Object.prototype.toString.call(e);const ve=fe([]);class ye extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ve,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return ge(e)||"function"===typeof e}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter((e=>-1===this._nodes.indexOf(e)))),s={},l=me({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of a){let e=i[u],n=C()(r,u);if(e){let n,i=r[u];l.path=(t.path?"".concat(t.path,"."):"")+u,e=e.resolve({value:i,context:t.context,parent:s});let o="spec"in e?e.spec:void 0,a=null==o?void 0:o.strict;if(null==o?void 0:o.strip){c=c||u in r;continue}n=t.__validating&&a?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!o&&(s[u]=r[u]);s[u]!==r[u]&&(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,((e,c)=>{if(e){if(!k.isError(e)||s)return void n(e,c);r.push(e)}if(!l||!ge(c))return void n(r[0]||null,c);a=a||c;let u=this._nodes.map((e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?"".concat(t.path,"."):"")+e:"".concat(t.path||"",'["').concat(e,'"]'),s=this.fields[e];s&&"validate"in s?s.validate(c[e],me({},t,{path:i,from:o,strict:!0,parent:c,originalValue:a[e]}),r):r(null)}));P({sync:i,tests:u,value:c,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)}))}clone(e){const t=super.clone(e);return t.fields=me({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,i]of Object.entries(this.fields)){const e=n[r];void 0===e?n[r]=i:e instanceof V&&i instanceof V&&(n[r]=i.concat(e))}return t.withMutation((()=>t.shape(n,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const n=this.fields[t];e[t]="default"in n?n.getDefault():void 0})),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=fe(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((e=>{let[t,n]=e;return"".concat(t,"-").concat(n)})));function o(e,t){let o=(0,N.split)(e)[0];r.add(o),i.has("".concat(t,"-").concat(o))||n.push([t,o])}for(const a in e)if(C()(e,a)){let t=e[a];r.add(a),O.isRef(t)&&t.isSibling?o(t.path,a):A(t)&&"deps"in t&&t.deps.forEach((e=>o(e,a)))}return pe().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const r of e)delete n[r];return t.withMutation((()=>t.shape(n)))}from(e,t,n){let r=(0,N.getter)(e,!0);return this.transform((i=>{if(null==i)return i;let o=i;return C()(i,e)&&(o=me({},i),n||delete o[e],o[t]=r(i)),o}))}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.noUnknown;"string"===typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&ue()(t,((t,n)=>e(n)))))}camelCase(){return this.transformKeys(le())}snakeCase(){return this.transformKeys(ae())}constantCase(){return this.transformKeys((e=>ae()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=F()(this.fields,(e=>e.describe())),e}}function be(e){return new ye(e)}function we(){return we=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},we.apply(this,arguments)}function xe(e){return new Ce(e)}be.prototype=ye.prototype;class Ce extends V{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map(((e,n)=>{const i=this.innerType.cast(e,we({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return i!==e&&(r=!0),i}));return r?i:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r,i;let o=[],a=t.sync,s=t.path,l=this.innerType,c=null!=(r=t.abortEarly)?r:this.spec.abortEarly,u=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!k.isError(e)||c)return void n(e,r);o.push(e)}if(!u||!l||!this._typeCheck(r))return void n(o[0]||null,r);d=d||r;let i=new Array(r.length);for(let n=0;n<r.length;n++){let e=r[n],o="".concat(t.path||"","[").concat(n,"]"),a=we({},t,{path:o,strict:!0,parent:r,index:n,originalValue:d[n]});i[n]=(t,n)=>l.validate(e,a,n)}P({sync:a,path:s,value:r,errors:o,endEarly:c,tests:i},n)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!A(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+h(e));return t.innerType=e,t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||w.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||w.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}xe.prototype=Ce.prototype},45423:()=>{},28383:()=>{},82590:()=>{},85515:()=>{},82474:()=>{},39630:()=>{},71040:()=>{},66337:e=>{e.exports=function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")},e.exports.__esModule=!0,e.exports.default=e.exports},42562:e=>{e.exports=function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")},e.exports.__esModule=!0,e.exports.default=e.exports},19159:(e,t,n)=>{var r=n(66337);e.exports=function(e,t){return e.get(r(e,t))},e.exports.__esModule=!0,e.exports.default=e.exports},98740:(e,t,n)=>{var r=n(42562);e.exports=function(e,t,n){r(e,t),t.set(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},13675:(e,t,n)=>{var r=n(66337);e.exports=function(e,t,n){return e.set(r(e,t),n),n},e.exports.__esModule=!0,e.exports.default=e.exports},89333:(e,t,n)=>{var r=n(42562);e.exports=function(e,t){r(e,t),t.add(e)},e.exports.__esModule=!0,e.exports.default=e.exports},58212:(e,t,n)=>{var r=n(56347);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},4293:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87301:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},23878:(e,t,n)=>{var r=n(14319).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56347:(e,t,n)=>{var r=n(14319).default,i=n(23878);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},14319:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},80978:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},6430:(e,t,n)=>{"use strict";const r=n(79527);e.exports=a;const i=function(){function e(e){return"undefined"!==typeof e&&e}try{return"undefined"!==typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},o={mapHttpRequest:p,mapHttpResponse:p,wrapRequestSerializer:h,wrapResponseSerializer:h,wrapErrorSerializer:h,req:p,res:p,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)void 0===t[n]&&(t[n]=e[n]);return t}};function a(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!==typeof t.send)throw Error("pino: transmit option must have a send function");const n=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);const r=e.serializers||{},o=function(e,t){if(Array.isArray(e))return e.filter((function(e){return"!stdSerializers.err"!==e}));return!0===e&&Object.keys(t)}(e.browser.serialize,r);let p=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(p=!1);"function"===typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===e.enabled&&(e.level="silent");const h=e.level||"info",m=Object.create(n);m.log||(m.log=f),Object.defineProperty(m,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(m,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,s(g,m,"error","log"),s(g,m,"fatal","error"),s(g,m,"warn","error"),s(g,m,"info","log"),s(g,m,"debug","log"),s(g,m,"trace","log")}});const g={transmit:t,serialize:o,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:d(e)};return m.levels=a.levels,m.level=h,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=f,m.serializers=r,m._serialize=o,m._stdErrSerialize=p,m.child=function(n,i){if(!n)throw new Error("missing bindings for child Pino");i=i||{},o&&n.serializers&&(i.serializers=n.serializers);const a=i.serializers;if(o&&a){var s=Object.assign({},r,a),d=!0===e.browser.serialize?Object.keys(s):o;delete n.serializers,l([n],d,s,this._stdErrSerialize)}function p(e){this._childLevel=1+(0|e._childLevel),this.error=c(e,n,"error"),this.fatal=c(e,n,"fatal"),this.warn=c(e,n,"warn"),this.info=c(e,n,"info"),this.debug=c(e,n,"debug"),this.trace=c(e,n,"trace"),s&&(this.serializers=s,this._serialize=d),t&&(this._logEvent=u([].concat(e._logEvent.bindings,n)))}return p.prototype=this,new p(this)},t&&(m._logEvent=u()),m}function s(e,t,n,o){const s=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?f:s[n]?s[n]:i[n]||i[o]||f,function(e,t,n){if(!e.transmit&&t[n]===f)return;t[n]=(o=t[n],function(){const s=e.timestamp(),c=new Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var p=0;p<c.length;p++)c[p]=arguments[p];if(e.serialize&&!e.asObject&&l(c,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?o.call(d,function(e,t,n,i){e._serialize&&l(n,e._serialize,e.serializers,e._stdErrSerialize);const o=n.slice();let s=o[0];const c={};i&&(c.time=i),c.level=a.levels.values[t];let u=1+(0|e._childLevel);if(u<1&&(u=1),null!==s&&"object"===typeof s){for(;u--&&"object"===typeof o[0];)Object.assign(c,o.shift());s=o.length?r(o.shift(),o):void 0}else"string"===typeof s&&(s=r(o.shift(),o));return void 0!==s&&(c.msg=s),c}(this,n,c,s)):o.apply(d,c),e.transmit){const r=e.transmit.level||t.level,i=a.levels.values[r],o=a.levels.values[n];if(o<i)return;!function(e,t,n){const r=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,s=t.val,c=e._logEvent.bindings;l(n,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=n.filter((function(e){return-1===c.indexOf(e)})),e._logEvent.level.label=o,e._logEvent.level.value=a,r(o,e._logEvent,s),e._logEvent=u(c)}(this,{ts:s,methodLevel:n,methodValue:o,transmitLevel:r,transmitValue:a.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},c)}});var o}(e,t,n)}function l(e,t,n,r){for(const i in e)if(r&&e[i]instanceof Error)e[i]=a.stdSerializers.err(e[i]);else if("object"===typeof e[i]&&!Array.isArray(e[i]))for(const r in e[i])t&&t.indexOf(r)>-1&&r in n&&(e[i][r]=n[r](e[i][r]))}function c(e,t,n){return function(){const r=new Array(1+arguments.length);r[0]=t;for(var i=1;i<r.length;i++)r[i]=arguments[i-1];return e[n].apply(this,r)}}function u(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function d(e){return"function"===typeof e.timestamp?e.timestamp:!1===e.timestamp?m:g}function p(){return{}}function h(e){return e}function f(){}function m(){return!1}function g(){return Date.now()}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=o,a.stdTimeFunctions=Object.assign({},{nullTime:m,epochTime:g,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},86284:(e,t,n)=>{"use strict";function r(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}n.d(t,{A:()=>r})},2474:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},55152:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},30414:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(11369);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},24586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(11369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},72715:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},48926:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,{A:()=>i})},95309:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(17545),i=n(2474);function o(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},22119:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},11369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},17545:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},27985:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(86284);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},88729:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FirebaseError:()=>o.g,SDK_VERSION:()=>me,_DEFAULT_ENTRY_NAME:()=>J,_addComponent:()=>re,_addOrOverwriteComponent:()=>ie,_apps:()=>ee,_clearComponents:()=>ue,_components:()=>ne,_getProvider:()=>ae,_isFirebaseApp:()=>le,_isFirebaseServerApp:()=>ce,_registerComponent:()=>oe,_removeServiceInstance:()=>se,_serverApps:()=>te,deleteApp:()=>we,getApp:()=>ye,getApps:()=>be,initializeApp:()=>ge,initializeServerApp:()=>ve,onLog:()=>Ce,registerVersion:()=>xe,setLogLevel:()=>Ae});var r=n(35877),i=n(76096),o=n(75805);const a=(e,t)=>t.some((t=>e instanceof t));let s,l;const c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap;let f={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return u.get(e);if("objectStoreNames"===t)return e.objectStoreNames||d.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function m(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(l||(l=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(y(this),n),v(c.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(e.apply(y(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const o=e.call(y(this),t,...r);return d.set(o,t.sort?t.sort():[t]),v(o)}}function g(e){return"function"===typeof e?m(e):(e instanceof IDBTransaction&&function(e){if(u.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));u.set(e,t)}(e),a(e,s||(s=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,f):e)}function v(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(v(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&c.set(t,e)})).catch((()=>{})),h.set(t,e),t}(e);if(p.has(e))return p.get(e);const t=g(e);return t!==e&&(p.set(e,t),h.set(t,e)),t}const y=e=>h.get(e);const b=["get","getKey","getAll","getAllKeys","count"],w=["put","add","delete","clear"],x=new Map;function C(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(x.get(t))return x.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=w.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!b.includes(n))return;const o=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return r&&(o=o.index(s.shift())),(await Promise.all([o[n](...s),i&&t.done]))[0]};return x.set(t,o),o}f=(e=>({...e,get:(t,n,r)=>C(t,n)||e.get(t,n,r),has:(t,n)=>!!C(t,n)||e.has(t,n)}))(f);class A{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((e=>e)).join(" ")}}const E="@firebase/app",_="0.10.6",T=new i.Vy("@firebase/app"),S="@firebase/app-compat",k="@firebase/analytics-compat",P="@firebase/analytics",D="@firebase/app-check-compat",F="@firebase/app-check",N="@firebase/auth",I="@firebase/auth-compat",R="@firebase/database",O="@firebase/database-compat",j="@firebase/functions",M="@firebase/functions-compat",L="@firebase/installations",B="@firebase/installations-compat",U="@firebase/messaging",V="@firebase/messaging-compat",H="@firebase/performance",z="@firebase/performance-compat",W="@firebase/remote-config",q="@firebase/remote-config-compat",G="@firebase/storage",Y="@firebase/storage-compat",K="@firebase/firestore",Q="@firebase/vertexai-preview",X="@firebase/firestore-compat",Z="firebase",J="[DEFAULT]",$={[E]:"fire-core",[S]:"fire-core-compat",[P]:"fire-analytics",[k]:"fire-analytics-compat",[F]:"fire-app-check",[D]:"fire-app-check-compat",[N]:"fire-auth",[I]:"fire-auth-compat",[R]:"fire-rtdb",[O]:"fire-rtdb-compat",[j]:"fire-fn",[M]:"fire-fn-compat",[L]:"fire-iid",[B]:"fire-iid-compat",[U]:"fire-fcm",[V]:"fire-fcm-compat",[H]:"fire-perf",[z]:"fire-perf-compat",[W]:"fire-rc",[q]:"fire-rc-compat",[G]:"fire-gcs",[Y]:"fire-gcs-compat",[K]:"fire-fst",[X]:"fire-fst-compat",[Q]:"fire-vertex","fire-js":"fire-js",[Z]:"fire-js-all"},ee=new Map,te=new Map,ne=new Map;function re(e,t){try{e.container.addComponent(t)}catch(n){T.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function ie(e,t){e.container.addOrOverwriteComponent(t)}function oe(e){const t=e.name;if(ne.has(t))return T.debug("There were multiple attempts to register component ".concat(t,".")),!1;ne.set(t,e);for(const n of ee.values())re(n,e);for(const n of te.values())re(n,e);return!0}function ae(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J;ae(e,t).clearInstance(n)}function le(e){return void 0!==e.options}function ce(e){return void 0!==e.settings}function ue(){ne.clear()}const de={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},pe=new o.FA("app","Firebase",de);class he{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.uA("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw pe.create("app-deleted",{appName:this._name})}}class fe extends he{constructor(e,t,n,r){const i=void 0!==t.automaticDataCollectionEnabled&&t.automaticDataCollectionEnabled,o={name:n,automaticDataCollectionEnabled:i};if(void 0!==e.apiKey)super(e,o,r);else{super(e.options,o,r)}this._serverConfig=Object.assign({automaticDataCollectionEnabled:i},t),this._finalizationRegistry=null,"undefined"!==typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry((()=>{this.automaticCleanup()}))),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,xe(E,_,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){we(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw pe.create("server-app-deleted")}}const me="10.12.3";function ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const i=Object.assign({name:J,automaticDataCollectionEnabled:!1},t),a=i.name;if("string"!==typeof a||!a)throw pe.create("bad-app-name",{appName:String(a)});if(n||(n=(0,o.T9)()),!n)throw pe.create("no-options");const s=ee.get(a);if(s){if((0,o.bD)(n,s.options)&&(0,o.bD)(i,s.config))return s;throw pe.create("duplicate-app",{appName:a})}const l=new r.h1(a);for(const r of ne.values())l.addComponent(r);const c=new he(n,i,l);return ee.set(a,c),c}function ve(e,t){if((0,o.Bd)()&&!(0,o.p7)())throw pe.create("invalid-server-app-environment");let n;void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!1),n=le(e)?e.options:e;const i=Object.assign(Object.assign({},t),n);void 0!==i.releaseOnDeref&&delete i.releaseOnDeref;if(void 0!==t.releaseOnDeref&&"undefined"===typeof FinalizationRegistry)throw pe.create("finalization-registry-not-supported",{});const a=""+(e=>[...e].reduce(((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0),0))(JSON.stringify(i)),s=te.get(a);if(s)return s.incRefCount(t.releaseOnDeref),s;const l=new r.h1(a);for(const r of ne.values())l.addComponent(r);const c=new fe(n,t,a,l);return te.set(a,c),c}function ye(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;const t=ee.get(e);if(!t&&e===J&&(0,o.T9)())return ge();if(!t)throw pe.create("no-app",{appName:e});return t}function be(){return Array.from(ee.values())}async function we(e){let t=!1;const n=e.name;if(ee.has(n))t=!0,ee.delete(n);else if(te.has(n)){e.decRefCount()<=0&&(te.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function xe(e,t,n){var i;let o=null!==(i=$[e])&&void 0!==i?i:e;n&&(o+="-".concat(n));const a=o.match(/\s|\//),s=t.match(/\s|\//);if(a||s){const e=['Unable to register library "'.concat(o,'" with version "').concat(t,'":')];return a&&e.push('library name "'.concat(o,'" contains illegal characters (whitespace or "/")')),a&&s&&e.push("and"),s&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void T.warn(e.join(" "))}oe(new r.uA("".concat(o,"-version"),(()=>({library:o,version:t})),"VERSION"))}function Ce(e,t){if(null!==e&&"function"!==typeof e)throw pe.create("invalid-log-argument");(0,i.Ey)(e,t)}function Ae(e){(0,i.He)(e)}const Ee="firebase-heartbeat-database",_e=1,Te="firebase-heartbeat-store";let Se=null;function ke(){return Se||(Se=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=v(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(v(a.result),e.oldVersion,e.newVersion,v(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(Ee,_e,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Te)}catch(n){console.warn(n)}}}).catch((e=>{throw pe.create("idb-open",{originalErrorMessage:e.message})}))),Se}async function Pe(e,t){try{const n=(await ke()).transaction(Te,"readwrite"),r=n.objectStore(Te);await r.put(t,De(e)),await n.done}catch(n){if(n instanceof o.g)T.warn(n.message);else{const e=pe.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});T.warn(e.message)}}}function De(e){return"".concat(e.name,"!").concat(e.options.appId)}class Fe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Ie(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Ne();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=Ne(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Re(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Re(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=(0,o.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function Ne(){return(new Date).toISOString().substring(0,10)}class Ie{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,o.zW)()&&(0,o.eX)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await ke()).transaction(Te),n=await t.objectStore(Te).get(De(e));return await t.done,n}catch(t){if(t instanceof o.g)T.warn(t.message);else{const e=pe.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});T.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return Pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return Pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Re(e){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:e})).length}var Oe;Oe="",oe(new r.uA("platform-logger",(e=>new A(e)),"PRIVATE")),oe(new r.uA("heartbeat",(e=>new Fe(e)),"PRIVATE")),xe(E,_,Oe),xe(E,_,"esm2017"),xe("fire-js","")},35877:(e,t,n)=>{"use strict";n.d(t,{h1:()=>s,uA:()=>i});var r=n(75805);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const o="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:o})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===o?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(a){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},76096:(e,t,n)=>{"use strict";n.d(t,{$b:()=>i,Ey:()=>d,He:()=>u,Vy:()=>c});const r=[];var i;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));const o={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},a=i.INFO,s={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},l=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=s[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];console[r]("[".concat(n,"]  ").concat(e.name,":"),...o)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?o[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...t),this._logHandler(this,i.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...t),this._logHandler(this,i.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.INFO,...t),this._logHandler(this,i.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.WARN,...t),this._logHandler(this,i.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.ERROR,...t),this._logHandler(this,i.ERROR,...t)}}function u(e){r.forEach((t=>{t.setLogLevel(e)}))}function d(e,t){for(const n of r){let r=null;t&&t.level&&(r=o[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];const l=a.map((e=>{if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((e=>e)).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:i[n].toLowerCase(),message:l,args:a,type:t.name})}}}},64861:(e,t,n)=>{"use strict";n.d(t,{UE:()=>N,RK:()=>S,ll:()=>E,rD:()=>O,__:()=>_,UU:()=>P,jD:()=>F,mG:()=>I,ER:()=>R,cY:()=>T,iD:()=>A,BN:()=>k,Ej:()=>D});var r=n(16649);function i(e,t,n){let{reference:i,floating:o}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),l=(0,r.sq)(s),c=(0,r.C0)(t),u="y"===a,d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let f;switch(c){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:p};break;case"left":f={x:i.x-o.width,y:p};break;default:f={x:i.x,y:i.y}}switch((0,r.Sg)(t)){case"start":f[s]-=h*(n&&u?-1:1);break;case"end":f[s]+=h*(n&&u?-1:1)}return f}async function o(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:f=0}=(0,r._3)(t,e),m=(0,r.nI)(f),g=l[h?"floating"===p?"reference":"floating":p],v=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y="floating"===p?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return r.r_.some((t=>e[t]>=0))}function l(e){const t=(0,r.jk)(...e.map((e=>e.left))),n=(0,r.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.T9)(...e.map((e=>e.right)))-t,height:(0,r.T9)(...e.map((e=>e.bottom)))-n}}var c=n(31211);function u(e){const t=(0,c.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,c.sb)(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=(0,r.LI)(n)!==a||(0,r.LI)(i)!==s;return l&&(n=a,i=s),{width:n,height:i,$:l}}function d(e){return(0,c.vq)(e)?e:e.contextElement}function p(e){const t=d(e);if(!(0,c.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:a}=u(t);let s=(a?(0,r.LI)(n.width):n.width)/i,l=(a?(0,r.LI)(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const h=(0,r.Jx)(0);function f(e){const t=(0,c.zk)(e);return(0,c.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function m(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=d(e);let s=(0,r.Jx)(1);t&&(i?(0,c.vq)(i)&&(s=p(i)):s=p(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,c.zk)(e))&&t}(a,n,i)?f(a):(0,r.Jx)(0);let u=(o.left+l.x)/s.x,h=(o.top+l.y)/s.y,m=o.width/s.x,g=o.height/s.y;if(a){const e=(0,c.zk)(a),t=i&&(0,c.vq)(i)?(0,c.zk)(i):i;let n=e,r=n.frameElement;for(;r&&i&&t!==n;){const e=p(r),t=r.getBoundingClientRect(),i=(0,c.L9)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,h*=e.y,m*=e.x,g*=e.y,u+=o,h+=a,n=(0,c.zk)(r),r=n.frameElement}}return(0,r.B1)({width:m,height:g,x:u,y:h})}function g(e){return m((0,c.ep)(e)).left+(0,c.CP)(e).scrollLeft}function v(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=(0,c.zk)(e),r=(0,c.ep)(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=(0,c.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)i=function(e){const t=(0,c.ep)(e),n=(0,c.CP)(e),i=e.ownerDocument.body,o=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+g(e);const l=-n.scrollTop;return"rtl"===(0,c.L9)(i).direction&&(s+=(0,r.T9)(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:s,y:l}}((0,c.ep)(e));else if((0,c.vq)(t))i=function(e,t){const n=m(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=(0,c.sb)(e)?p(e):(0,r.Jx)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:i*a.y}}(t,n);else{const n=f(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.B1)(i)}function y(e,t){const n=(0,c.$4)(e);return!(n===t||!(0,c.vq)(n)||(0,c.eu)(n))&&("fixed"===(0,c.L9)(n).position||y(n,t))}function b(e,t,n){const i=(0,c.sb)(t),o=(0,c.ep)(t),a="fixed"===n,s=m(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const u=(0,r.Jx)(0);if(i||!i&&!a)if(("body"!==(0,c.mq)(t)||(0,c.ZU)(o))&&(l=(0,c.CP)(t)),i){const e=m(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=g(o));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function w(e){return"static"===(0,c.L9)(e).position}function x(e,t){return(0,c.sb)(e)&&"fixed"!==(0,c.L9)(e).position?t?t(e):e.offsetParent:null}function C(e,t){const n=(0,c.zk)(e);if((0,c.Tf)(e))return n;if(!(0,c.sb)(e)){let t=(0,c.$4)(e);for(;t&&!(0,c.eu)(t);){if((0,c.vq)(t)&&!w(t))return t;t=(0,c.$4)(t)}return n}let r=x(e,t);for(;r&&(0,c.Lv)(r)&&w(r);)r=x(r,t);return r&&(0,c.eu)(r)&&w(r)&&!(0,c.sQ)(r)?n:r||(0,c.gJ)(e)||n}const A={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const a="fixed"===o,s=(0,c.ep)(i),l=!!t&&(0,c.Tf)(t.floating);if(i===s||l&&a)return n;let u={scrollLeft:0,scrollTop:0},d=(0,r.Jx)(1);const h=(0,r.Jx)(0),f=(0,c.sb)(i);if((f||!f&&!a)&&(("body"!==(0,c.mq)(i)||(0,c.ZU)(s))&&(u=(0,c.CP)(i)),(0,c.sb)(i))){const e=m(i);d=p(i),h.x=e.x+i.clientLeft,h.y=e.y+i.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x,y:n.y*d.y-u.scrollTop*d.y+h.y}},getDocumentElement:c.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const a=[..."clippingAncestors"===n?(0,c.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,c.v9)(e,[],!1).filter((e=>(0,c.vq)(e)&&"body"!==(0,c.mq)(e))),i=null;const o="fixed"===(0,c.L9)(e).position;let a=o?(0,c.$4)(e):e;for(;(0,c.vq)(a)&&!(0,c.eu)(a);){const t=(0,c.L9)(a),n=(0,c.sQ)(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,c.ZU)(a)&&!n&&y(e,a))?r=r.filter((e=>e!==a)):i=t,a=(0,c.$4)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),i],s=a[0],l=a.reduce(((e,n)=>{const i=v(t,n,o);return e.top=(0,r.T9)(i.top,e.top),e.right=(0,r.jk)(i.right,e.right),e.bottom=(0,r.jk)(i.bottom,e.bottom),e.left=(0,r.T9)(i.left,e.left),e}),v(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:C,getElementRects:async function(e){const t=this.getOffsetParent||C,n=this.getDimensions,r=await n(e.floating);return{reference:b(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=u(e);return{width:t,height:n}},getScale:p,isElement:c.vq,isRTL:function(e){return"rtl"===(0,c.L9)(e).direction}};function E(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:u=!1}=i,p=d(e),h=o||a?[...p?(0,c.v9)(p):[],...(0,c.v9)(t)]:[];h.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=p&&l?function(e,t){let n,i=null;const o=(0,c.ep)(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const{left:u,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;const f={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(o.clientWidth-(u+p))+"px "+-(0,r.RI)(o.clientHeight-(d+h))+"px "+-(0,r.RI)(u)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,c))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!m)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}m=!1}try{i=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(v){i=new IntersectionObserver(g,f)}i.observe(e)}(!0),a}(p,n):null;let g,v=-1,y=null;s&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),p&&!u&&y.observe(p),y.observe(t));let b=u?m(e):null;return u&&function t(){const r=m(e);!b||r.x===b.x&&r.y===b.y&&r.width===b.width&&r.height===b.height||n();b=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(g)}}const _=o,T=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:a,placement:s,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:i,elements:o}=e,a=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=(0,r.C0)(n),l=(0,r.Sg)(n),c="y"===(0,r.TV)(n),u=["left","top"].includes(s)?-1:1,d=a&&c?-1:1,p=(0,r._3)(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}="number"===typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&"number"===typeof m&&(f="end"===l?-1*m:m),c?{x:f*d,y:h*u}:{x:h*u,y:f*d}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},S=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,a;const{rects:s,middlewareData:l,placement:c,platform:u,elements:d}=t,{crossAxis:p=!1,alignment:h,allowedPlacements:f=r.DD,autoAlignment:m=!0,...g}=(0,r._3)(e,t),v=void 0!==h||f===r.DD?function(e,t,n){return(e?[...n.filter((t=>(0,r.Sg)(t)===e)),...n.filter((t=>(0,r.Sg)(t)!==e))]:n.filter((e=>(0,r.C0)(e)===e))).filter((n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n))}(h||null,m,f):f,y=await o(t,g),b=(null==(n=l.autoPlacement)?void 0:n.index)||0,w=v[b];if(null==w)return{};const x=(0,r.w7)(w,s,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==w)return{reset:{placement:v[0]}};const C=[y[(0,r.C0)(w)],y[x[0]],y[x[1]]],A=[...(null==(i=l.autoPlacement)?void 0:i.overflows)||[],{placement:w,overflows:C}],E=v[b+1];if(E)return{data:{index:b+1,overflows:A},reset:{placement:E}};const _=A.map((e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(a=_.filter((e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:a[0])||_[0][0];return T!==c?{data:{index:b+1,overflows:A},reset:{placement:T}}:{}}}},k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,r._3)(e,t),d={x:n,y:i},p=await o(t,u),h=(0,r.TV)((0,r.C0)(a)),f=(0,r.PG)(h);let m=d[f],g=d[h];if(s){const e="y"===f?"bottom":"right",t=m+p["y"===f?"top":"left"],n=m-p[e];m=(0,r.qE)(t,m,n)}if(l){const e="y"===h?"bottom":"right",t=g+p["y"===h?"top":"left"],n=g-p[e];g=(0,r.qE)(t,g,n)}const v=c.fn({...t,[f]:m,[h]:g});return{...v,data:{x:v.x-n,y:v.y-i}}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:s,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(a),w=(0,r.TV)(c),x=(0,r.C0)(c)===c,C=await(null==u.isRTL?void 0:u.isRTL(d.floating)),A=f||(x||!v?[(0,r.bV)(c)]:(0,r.WJ)(c)),E="none"!==g;!f&&E&&A.push(...(0,r.lP)(c,v,g,C));const _=[c,...A],T=await o(t,y),S=[];let k=(null==(i=s.flip)?void 0:i.overflows)||[];if(p&&S.push(T[b]),h){const e=(0,r.w7)(a,l,C);S.push(T[e[0]],T[e[1]])}if(k=[...k,{placement:a,overflows:S}],!S.every((e=>e<=0))){var P,D;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(D=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!n)switch(m){case"bestFit":{var F;const e=null==(F=k.filter((e=>{if(E){const t=(0,r.TV)(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},D=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=(0,r._3)(e,t),u=await o(t,c),d=(0,r.C0)(n),p=(0,r.Sg)(n),h="y"===(0,r.TV)(n),{width:f,height:m}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===p?"top":"bottom");const y=m-u.top-u.bottom,b=f-u.left-u.right,w=(0,r.jk)(m-u[g],y),x=(0,r.jk)(f-u[v],b),C=!t.middlewareData.shift;let A=w,E=x;if(h?E=p||C?(0,r.jk)(x,b):b:A=p||C?(0,r.jk)(w,y):y,C&&!p){const e=(0,r.T9)(u.left,0),t=(0,r.T9)(u.right,0),n=(0,r.T9)(u.top,0),i=(0,r.T9)(u.bottom,0);h?E=f-2*(0!==e||0!==t?e+t:(0,r.T9)(u.left,u.right)):A=m-2*(0!==n||0!==i?n+i:(0,r.T9)(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:A});const _=await a.getDimensions(s.floating);return f!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},F=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...l}=(0,r._3)(e,t);switch(i){case"referenceHidden":{const e=a(await o(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:s(e)}}}case"escaped":{const e=a(await o(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:s(e)}}}default:return{}}}}},N=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=(0,r._3)(e,t)||{};if(null==u)return{};const p=(0,r.nI)(d),h={x:n,y:i},f=(0,r.Dz)(o),m=(0,r.sq)(f),g=await s.getDimensions(u),v="y"===f,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[f]-h[f]-a.floating[m],C=h[f]-a.reference[f],A=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let E=A?A[w]:0;E&&await(null==s.isElement?void 0:s.isElement(A))||(E=l.floating[w]||a.floating[m]);const _=x/2-C/2,T=E/2-g[m]/2-1,S=(0,r.jk)(p[y],T),k=(0,r.jk)(p[b],T),P=S,D=E-g[m]-k,F=E/2-g[m]/2+_,N=(0,r.qE)(P,F,D),I=!c.arrow&&null!=(0,r.Sg)(o)&&F!==N&&a.reference[m]/2-(F<P?S:k)-g[m]/2<0,R=I?F<P?F-P:F-D:0;return{[f]:h[f]+R,data:{[f]:N,centerOffset:F-N-R,...I&&{alignmentOffset:R}},reset:I}}}),I=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:o,platform:a,strategy:s}=t,{padding:c=2,x:u,y:d}=(0,r._3)(e,t),p=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),h=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let i=null;for(let r=0;r<t.length;r++){const e=t[r];!i||e.y-i.y>i.height/2?n.push([e]):n[n.length-1].push(e),i=e}return n.map((e=>(0,r.B1)(l(e))))}(p),f=(0,r.B1)(l(p)),m=(0,r.nI)(c);const g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=d)return h.find((e=>u>e.left-m.left&&u<e.right+m.right&&d>e.top-m.top&&d<e.bottom+m.bottom))||f;if(h.length>=2){if("y"===(0,r.TV)(n)){const e=h[0],t=h[h.length-1],i="top"===(0,r.C0)(n),o=e.top,a=t.bottom,s=i?e.left:t.left,l=i?e.right:t.right;return{top:o,bottom:a,left:s,right:l,width:l-s,height:a-o,x:s,y:o}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...h.map((e=>e.right))),i=(0,r.jk)(...h.map((e=>e.left))),o=h.filter((n=>e?n.left===i:n.right===t)),a=o[0].top,s=o[o.length-1].bottom;return{top:a,bottom:s,left:i,right:t,width:t-i,height:s-a,x:i,y:a}}return f}},floating:i.floating,strategy:s});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},R=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,r._3)(e,t),d={x:n,y:i},p=(0,r.TV)(o),h=(0,r.PG)(p);let f=d[h],m=d[p];const g=(0,r._3)(l,t),v="number"===typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+v.mainAxis,n=a.reference[h]+a.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var y,b;const e="y"===h?"width":"height",t=["top","left"].includes((0,r.C0)(o)),n=a.reference[p]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[p])||0)+(t?0:v.crossAxis),i=a.reference[p]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[p])||0)-(t?v.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[h]:f,[p]:m}}}},O=(e,t,n)=>{const r=new Map,o={platform:A,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=i(u,r,c),h=r,f={},m=0;for(let g=0;g<l.length;g++){const{name:n,fn:a}=l[g],{x:v,y:y,data:b,reset:w}=await a({x:d,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,p=null!=y?y:p,f={...f,[n]:{...f[n],...b}},w&&m<=50&&(m++,"object"===typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:d,y:p}=i(u,h,c))),g=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})}},31211:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof i(e).Node}function s(e){return e instanceof Element||e instanceof i(e).Element}function l(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function c(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function u(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function d(e){return["table","td","th"].includes(r(e))}function p(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function h(e){const t=m(),n=s(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function f(e){let t=b(e);for(;l(t)&&!g(t);){if(h(t))return t;if(p(t))return null;t=b(t)}return null}function m(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function v(e){return i(e).getComputedStyle(e)}function y(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||c(e)&&e.host||o(e);return c(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&u(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=w(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=i(o);if(a){const e=function(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}(s);return t.concat(s,s.visualViewport||[],u(o)?o:[],e&&n?x(e):[])}return t.concat(o,x(o,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Ng:()=>c,Tc:()=>m,Tf:()=>p,ZU:()=>u,ep:()=>o,eu:()=>g,gJ:()=>f,mq:()=>r,sQ:()=>h,sb:()=>l,v9:()=>x,vq:()=>s,zk:()=>i})},16649:(e,t,n)=>{"use strict";n.d(t,{B1:()=>S,C0:()=>m,DD:()=>o,Dz:()=>w,Jx:()=>u,LI:()=>l,PG:()=>v,RI:()=>c,Sg:()=>g,T9:()=>s,TV:()=>b,WJ:()=>C,_3:()=>f,aD:()=>A,bV:()=>_,jk:()=>a,lP:()=>E,nI:()=>T,qE:()=>h,r_:()=>r,sq:()=>y,w7:()=>x});const r=["top","right","bottom","left"],i=["start","end"],o=r.reduce(((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1])),[]),a=Math.min,s=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(e,t,n){return s(e,a(t,n))}function f(e,t){return"function"===typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function w(e){return v(b(e))}function x(e,t,n){void 0===n&&(n=!1);const r=g(e),i=w(e),o=y(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=_(a)),[a,_(a)]}function C(e){const t=_(e);return[A(e),t,A(t)]}function A(e){return e.replace(/start|end/g,(e=>p[e]))}function E(e,t,n,r){const i=g(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(m(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(A)))),o}function _(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function T(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}},46855:(e,t,n)=>{"use strict";n.d(t,{l:()=>ge});var r=n(61462),i=n.t(r,2),o=n(61824),a=n(519),s=n(27620),l=n(70114),c=n(29783),u=n(71276),d=n(52527),p=n(29823),h=n(24896);function f(e,t){let n=(0,r.useRef)([]),i=(0,a._)(e);(0,r.useEffect)((()=>{let e=[...n.current];for(let[r,o]of t.entries())if(n.current[r]!==o){let r=i(t,e);return n.current=t,r}}),[i,...t])}var m=n(17192);let g=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&g[0]!==e.target&&(g.unshift(e.target),g=g.filter((e=>null!=e&&e.isConnected)),g.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var v=n(33498),y=n(9417),b=n(61484),w=n(21150);function x(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var C=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(C||{});let A=(0,w.FX)((function(e,t){let n=(0,r.useRef)(null),i=(0,p.P)(n,t),{initialFocus:C,containers:A,features:E=30,...T}=e;(0,d.g)()||(E=1);let S=(0,u.g)(n);!function(e,t){let{ownerDocument:n}=e,i=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,r.useRef)(g.slice());return f(((e,n)=>{let[r]=e,[i]=n;!0===i&&!1===r&&(0,b._)((()=>{t.current.splice(0)})),!1===i&&!0===r&&(t.current=g.slice())}),[e,g,t]),(0,a._)((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);f((()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,v.pW)(i())}),[t]),(0,c.X)((()=>{t&&(0,v.pW)(i())}))}({ownerDocument:S},Boolean(16&E));let k=function(e,t){let{ownerDocument:n,container:i,initialFocus:o}=e,a=(0,r.useRef)(null),s=(0,l.a)();return f((()=>{if(!t)return;let e=i.current;e&&(0,b._)((()=>{if(!s.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t)return void(a.current=t)}else if(e.contains(t))return void(a.current=t);null!=o&&o.current?(0,v.pW)(o.current):(0,v.CU)(e,v.BD.First)===v.Me.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==n?void 0:n.activeElement}))}),[t]),a}({ownerDocument:S,container:n,initialFocus:C},Boolean(2&E));!function(e,t){let{ownerDocument:n,container:r,containers:i,previousActiveElement:o}=e,a=(0,l.a)();(0,s.M)(null==n?void 0:n.defaultView,"focus",(e=>{if(!t||!a.current)return;let n=x(i);r.current instanceof HTMLElement&&n.add(r.current);let s=o.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?_(n,l)?(o.current=l,(0,v.pW)(l)):(e.preventDefault(),e.stopPropagation(),(0,v.pW)(s)):(0,v.pW)(o.current)}),!0)}({ownerDocument:S,container:n,containers:A,previousActiveElement:k},Boolean(8&E));let P=(0,h.u)(),D=(0,a._)((e=>{let t=n.current;t&&(0,y.Y)(P.current,{[h.O.Forwards]:()=>{(0,v.CU)(t,v.BD.First,{skipElements:[e.relatedTarget]})},[h.O.Backwards]:()=>{(0,v.CU)(t,v.BD.Last,{skipElements:[e.relatedTarget]})}})})),F=(0,o.L)(),N=(0,r.useRef)(!1),I={ref:i,onKeyDown(e){"Tab"==e.key&&(N.current=!0,F.requestAnimationFrame((()=>{N.current=!1})))},onBlur(e){let t=x(A);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(_(t,r)||(N.current?(0,v.CU)(n.current,(0,y.Y)(P.current,{[h.O.Forwards]:()=>v.BD.Next,[h.O.Backwards]:()=>v.BD.Previous})|v.BD.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,v.pW)(e.target)))}};return r.createElement(r.Fragment,null,Boolean(4&E)&&r.createElement(m.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:D,features:m.O.Focusable}),(0,w.XX)({ourProps:I,theirProps:T,defaultTag:"div",name:"FocusTrap"}),Boolean(4&E)&&r.createElement(m.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:D,features:m.O.Focusable}))})),E=Object.assign(A,{features:C});function _(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var T=n(56574);const S="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:k,useEffect:P,useLayoutEffect:D,useDebugValue:F}=i;function N(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!S(n,e)}catch{return!0}}"undefined"!=typeof window&&"undefined"!=typeof window.document&&window.document.createElement;const I=(e=>e.useSyncExternalStore)(i);var R=n(99155),O=n(53703);function j(){let e;return{before(t){let{doc:n}=t;var r;let i=n.documentElement;e=(null!=(r=n.defaultView)?r:window).innerWidth-i.clientWidth},after(t){let{doc:n,d:r}=t,i=n.documentElement,o=i.clientWidth-i.offsetWidth,a=e-o;r.style(i,"paddingRight","".concat(a,"px"))}}}var M=n(69597);function L(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let B=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=t[e].call(n,...o);s&&(n=s,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,O.e)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let{doc:t,d:n,meta:r}=e,i={doc:t,d:n,meta:L(r)},o=[(0,M.un)()?{before(e){let{doc:t,d:n,meta:r}=e;function i(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,O.e)();e.style(t.documentElement,"scrollBehavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,o=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!i(a)&&(o=a)}catch{}}),!0),n.addEventListener(t,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})),n.addEventListener(t,"touchmove",(e=>{if(e.target instanceof HTMLElement)if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}),{passive:!1}),n.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;r!==t&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},j(),{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];o.forEach((e=>{let{before:t}=e;return null==t?void 0:t(i)})),o.forEach((e=>{let{after:t}=e;return null==t?void 0:t(i)}))},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});function U(e,t,n){let r=function(e){return I(e.subscribe,e.getSnapshot,e.getSnapshot)}(B),i=e?r.get(e):void 0,o=!!i&&i.count>0;return(0,R.s)((()=>{if(e&&t)return B.dispatch("PUSH",e,n),()=>B.dispatch("POP",e,n)}),[t,e]),o}B.subscribe((()=>{let e=B.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&B.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&B.dispatch("TEARDOWN",n)}}));var V=n(36854);let H=new Map,z=new Map;function W(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,R.s)((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let i=null!=(n=z.get(r))?n:0;return z.set(r,i+1),0!==i||(H.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=z.get(r))?e:1;if(1===t?z.delete(r):z.set(r,t-1),1!==t)return;let n=H.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,H.delete(r))}}),[e,t])}var q=n(44808),G=n(65408),Y=n(55197),K=n(3117);let Q=(0,r.createContext)((()=>{}));Q.displayName="StackContext";var X=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(X||{});function Z(e){let{children:t,onUpdate:n,type:i,element:o,enabled:s}=e,l=(0,r.useContext)(Q),c=(0,a._)((function(){null==n||n(...arguments),l(...arguments)}));return(0,R.s)((()=>{let e=void 0===s||!0===s;return e&&c(0,i,o),()=>{e&&c(1,i,o)}}),[c,i,o,s]),r.createElement(Q.Provider,{value:c},t)}var J=n(52661);let $=(0,r.createContext)(null);function ee(){let e=(0,r.useContext)($);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ee),e}return e}let te=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:r="headlessui-description-".concat(n),...i}=e,o=ee(),a=(0,p.P)(t);(0,R.s)((()=>o.register(r)),[r,o.register]);let s={ref:a,...o.props,id:r};return(0,w.XX)({ourProps:s,theirProps:i,slot:o.slot||{},defaultTag:"p",name:o.name||"Description"})})),ne=Object.assign(te,{});var re=n(93322),ie=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ie||{}),oe=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(oe||{});let ae={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},se=(0,r.createContext)(null);function le(e){let t=(0,r.useContext)(se);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,le),t}return t}function ce(e,t){return(0,y.Y)(t.type,ae,e,t)}se.displayName="DialogContext";let ue=w.O5.RenderStrategy|w.O5.Static;let de=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:i="headlessui-dialog-".concat(n),open:o,onClose:l,initialFocus:c,role:h="dialog",__demoMode:f=!1,...m}=e,[g,v]=(0,r.useState)(0),b=(0,r.useRef)(!1);h="dialog"===h||"alertdialog"===h?h:(b.current||(b.current=!0,console.warn("Invalid role [".concat(h,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let x=(0,Y.O_)();void 0===o&&null!==x&&(o=(x&Y.Uw.Open)===Y.Uw.Open);let C=(0,r.useRef)(null),A=(0,p.P)(C,t),_=(0,u.g)(C),S=e.hasOwnProperty("open")||null!==x,k=e.hasOwnProperty("onClose");if(!S&&!k)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!S)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!k)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(o));if("function"!=typeof l)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(l));let P=o?0:1,[D,F]=(0,r.useReducer)(ce,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),N=(0,a._)((()=>l(!1))),I=(0,a._)((e=>F({type:0,id:e}))),R=!!(0,d.g)()&&(!f&&0===P),O=g>1,j=null!==(0,r.useContext)(se),[M,L]=(0,T.k)(),B={get current(){var e;return null!=(e=D.panelRef.current)?e:C.current}},{resolveContainers:H,mainTreeNodeRef:z,MainTreeNode:Q}=(0,G.i)({portals:M,defaultContainers:[B]}),J=O?"parent":"leaf",ee=null!==x&&(x&Y.Uw.Closing)===Y.Uw.Closing,te=!j&&!ee&&R,ne=(0,r.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(z.current)&&e instanceof HTMLElement))))?t:null}),[z]);W(ne,te);let ie=!!O||R,oe=(0,r.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(z.current)&&e instanceof HTMLElement)))?t:null}),[z]);W(oe,ie);let ae=!(!R||O);(0,q.j)(H,(e=>{e.preventDefault(),N()}),ae);let le=!(O||0!==P);(0,s.M)(null==_?void 0:_.defaultView,"keydown",(e=>{le&&(e.defaultPrevented||e.key===re.D.Escape&&(e.preventDefault(),e.stopPropagation(),N()))})),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];U(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(_,!(ee||0!==P||j),H),(0,r.useEffect)((()=>{if(0!==P||!C.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&N()}}));return e.observe(C.current),()=>e.disconnect()}),[P,C,N]);let[de,pe]=function(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,a._)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),i=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement($.Provider,{value:i},e.children)}),[t])]}(),he=(0,r.useMemo)((()=>[{dialogState:P,close:N,setTitleId:I},D]),[P,D,N,I]),fe=(0,r.useMemo)((()=>({open:0===P})),[P]),me={ref:A,id:i,role:h,"aria-modal":0===P||void 0,"aria-labelledby":D.titleId,"aria-describedby":de};return r.createElement(Z,{type:"Dialog",enabled:0===P,element:C,onUpdate:(0,a._)(((e,t)=>{"Dialog"===t&&(0,y.Y)(e,{[X.Add]:()=>v((e=>e+1)),[X.Remove]:()=>v((e=>e-1))})}))},r.createElement(K.a,{force:!0},r.createElement(T.Z,null,r.createElement(se.Provider,{value:he},r.createElement(T.Z.Group,{target:C},r.createElement(K.a,{force:!1},r.createElement(pe,{slot:fe,name:"Dialog.Description"},r.createElement(E,{initialFocus:c,containers:H,features:R?(0,y.Y)(J,{parent:E.features.RestoreFocus,leaf:E.features.All&~E.features.FocusLock}):E.features.None},r.createElement(L,null,(0,w.XX)({ourProps:me,theirProps:m,slot:fe,defaultTag:"div",features:ue,visible:0===P,name:"Dialog"}))))))))),r.createElement(Q,null))})),pe=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:i="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:a},s]=le("Dialog.Backdrop"),l=(0,p.P)(t);(0,r.useEffect)((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let c=(0,r.useMemo)((()=>({open:0===a})),[a]);return r.createElement(K.a,{force:!0},r.createElement(T.Z,null,(0,w.XX)({ourProps:{ref:l,id:i,"aria-hidden":!0},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),he=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:i="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:s},l]=le("Dialog.Panel"),c=(0,p.P)(t,l.panelRef),u=(0,r.useMemo)((()=>({open:0===s})),[s]),d=(0,a._)((e=>{e.stopPropagation()}));return(0,w.XX)({ourProps:{ref:c,id:i,onClick:d},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Panel"})})),fe=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:i="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:s,close:l}]=le("Dialog.Overlay"),c=(0,p.P)(t),u=(0,a._)((e=>{if(e.target===e.currentTarget){if((0,J.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),l()}})),d=(0,r.useMemo)((()=>({open:0===s})),[s]);return(0,w.XX)({ourProps:{ref:c,id:i,"aria-hidden":!0,onClick:u},theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Overlay"})})),me=(0,w.FX)((function(e,t){let n=(0,V.B)(),{id:i="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:a,setTitleId:s}]=le("Dialog.Title"),l=(0,p.P)(t);(0,r.useEffect)((()=>(s(i),()=>s(null))),[i,s]);let c=(0,r.useMemo)((()=>({open:0===a})),[a]);return(0,w.XX)({ourProps:{ref:l,id:i},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),ge=Object.assign(de,{Backdrop:pe,Panel:he,Overlay:fe,Title:me,Description:ne})},93322:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(r||{})},35032:(e,t,n)=>{"use strict";n.d(t,{W:()=>G});var r=n(61462),i=n(99155),o=n(75064);function a(e,t){let[n,a]=(0,r.useState)(e),s=(0,o.Y)(e);return(0,i.s)((()=>a(s.current)),[s,a,...t]),n}var s=n(519);var l=n(61824),c=n(36854),u=n(44808),d=n(27869),p=n(29823),h=n(27404),f=n(50305),m=n(17192),g=n(55197),v=n(52661),y=n(58566),b=n(53703),w=n(33498);function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[r,i]of Object.entries(e))A(n,C(t,r),i);return n}function C(e,t){return e?e+"["+t+"]":t}function A(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())A(e,C(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,"".concat(n)]):null==n?e.push([t,""]):x(n,t,e)}var E=n(9417),_=n(43139),T=n(21150),S=n(93322),k=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(k||{}),P=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(P||{}),D=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(D||{}),F=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(F||{});function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,w.wl)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{options:r,activeOptionIndex:i}}let I={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=N(e),i=(0,y.X)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),o=i?e.options.indexOf(i):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=N(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=N(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},R=(0,r.createContext)(null);function O(e){let t=(0,r.useContext)(R);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}R.displayName="ListboxActionsContext";let j=(0,r.createContext)(null);function M(e){let t=(0,r.useContext)(j);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}function L(e,t){return(0,E.Y)(t.type,I,e,t)}j.displayName="ListboxDataContext";let B=r.Fragment;let U=T.O5.RenderStrategy|T.O5.Static;let V=(0,T.FX)((function(e,t){let{value:n,defaultValue:o,form:a,name:c,onChange:d,by:h=(e,t)=>e===t,disabled:f=!1,horizontal:v=!1,multiple:b=!1,...C}=e;const A=v?"horizontal":"vertical";let _=(0,p.P)(t),[S=(b?[]:void 0),k]=function(e,t,n){let[i,o]=(0,r.useState)(n),a=void 0!==e,l=(0,r.useRef)(a),c=(0,r.useRef)(!1),u=(0,r.useRef)(!1);return!a||l.current||c.current?!a&&l.current&&!u.current&&(u.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:i,(0,s._)((e=>(a||o(e),null==t?void 0:t(e))))]}(n,d,o),[P,D]=(0,r.useReducer)(L,{dataRef:(0,r.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),F=(0,r.useRef)({static:!1,hold:!1}),N=(0,r.useRef)(null),I=(0,r.useRef)(null),O=(0,r.useRef)(null),M=(0,s._)("string"==typeof h?(e,t)=>{let n=h;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:h),U=(0,r.useCallback)((e=>(0,E.Y)(V.mode,{1:()=>S.some((t=>M(t,e))),0:()=>M(S,e)})),[S]),V=(0,r.useMemo)((()=>({...P,value:S,disabled:f,mode:b?1:0,orientation:A,compare:M,isSelected:U,optionsPropsRef:F,labelRef:N,buttonRef:I,optionsRef:O})),[S,f,b,P]);(0,i.s)((()=>{P.dataRef.current=V}),[V]),(0,u.j)([V.buttonRef,V.optionsRef],((e,t)=>{var n;D({type:1}),(0,w.Bm)(t,w.MZ.Loose)||(e.preventDefault(),null==(n=V.buttonRef.current)||n.focus())}),0===V.listboxState);let H=(0,r.useMemo)((()=>({open:0===V.listboxState,disabled:f,value:S})),[V,f,S]),z=(0,s._)((e=>{let t=V.options.find((t=>t.id===e));t&&X(t.dataRef.current.value)})),W=(0,s._)((()=>{if(null!==V.activeOptionIndex){let{dataRef:e,id:t}=V.options[V.activeOptionIndex];X(e.current.value),D({type:2,focus:y.B.Specific,id:t})}})),q=(0,s._)((()=>D({type:0}))),G=(0,s._)((()=>D({type:1}))),Y=(0,s._)(((e,t,n)=>e===y.B.Specific?D({type:2,focus:y.B.Specific,id:t,trigger:n}):D({type:2,focus:e,trigger:n}))),K=(0,s._)(((e,t)=>(D({type:5,id:e,dataRef:t}),()=>D({type:6,id:e})))),Q=(0,s._)((e=>(D({type:7,id:e}),()=>D({type:7,id:null})))),X=(0,s._)((e=>(0,E.Y)(V.mode,{0:()=>null==k?void 0:k(e),1(){let t=V.value.slice(),n=t.findIndex((t=>M(t,e)));return-1===n?t.push(e):t.splice(n,1),null==k?void 0:k(t)}}))),Z=(0,s._)((e=>D({type:3,value:e}))),J=(0,s._)((()=>D({type:4}))),$=(0,r.useMemo)((()=>({onChange:X,registerOption:K,registerLabel:Q,goToOption:Y,closeListbox:G,openListbox:q,selectActiveOption:W,selectOption:z,search:Z,clearSearch:J})),[]),ee={ref:_},te=(0,r.useRef)(null),ne=(0,l.L)();return(0,r.useEffect)((()=>{te.current&&void 0!==o&&ne.addEventListener(te.current,"reset",(()=>{null==k||k(o)}))}),[te,k]),r.createElement(R.Provider,{value:$},r.createElement(j.Provider,{value:V},r.createElement(g.El,{value:(0,E.Y)(V.listboxState,{0:g.Uw.Open,1:g.Uw.Closed})},null!=c&&null!=S&&x({[c]:S}).map(((e,t)=>{let[n,i]=e;return r.createElement(m.j,{features:m.O.Hidden,ref:0===t?e=>{var t;te.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,T.oE)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:a,disabled:f,name:n,value:i})})})),(0,T.XX)({ourProps:ee,theirProps:C,slot:H,defaultTag:B,name:"Listbox"}))))})),H=(0,T.FX)((function(e,t){var n;let i=(0,c.B)(),{id:o="headlessui-listbox-button-".concat(i),...u}=e,h=M("Listbox.Button"),f=O("Listbox.Button"),m=(0,p.P)(h.buttonRef,t),g=(0,l.L)(),b=(0,s._)((e=>{switch(e.key){case S.D.Space:case S.D.Enter:case S.D.ArrowDown:e.preventDefault(),f.openListbox(),g.nextFrame((()=>{h.value||f.goToOption(y.B.First)}));break;case S.D.ArrowUp:e.preventDefault(),f.openListbox(),g.nextFrame((()=>{h.value||f.goToOption(y.B.Last)}))}})),w=(0,s._)((e=>{if(e.key===S.D.Space)e.preventDefault()})),x=(0,s._)((e=>{if((0,v.l)(e.currentTarget))return e.preventDefault();0===h.listboxState?(f.closeListbox(),g.nextFrame((()=>{var e;return null==(e=h.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),f.openListbox())})),C=a((()=>{if(h.labelId)return[h.labelId,o].join(" ")}),[h.labelId,o]),A=(0,r.useMemo)((()=>({open:0===h.listboxState,disabled:h.disabled,value:h.value})),[h]),E={ref:m,id:o,type:(0,d.c)(e,h.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=h.optionsRef.current)?void 0:n.id,"aria-expanded":0===h.listboxState,"aria-labelledby":C,disabled:h.disabled,onKeyDown:b,onKeyUp:w,onClick:x};return(0,T.XX)({ourProps:E,theirProps:u,slot:A,defaultTag:"button",name:"Listbox.Button"})})),z=(0,T.FX)((function(e,t){let n=(0,c.B)(),{id:o="headlessui-listbox-label-".concat(n),...a}=e,l=M("Listbox.Label"),u=O("Listbox.Label"),d=(0,p.P)(l.labelRef,t);(0,i.s)((()=>u.registerLabel(o)),[o]);let h=(0,s._)((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),f=(0,r.useMemo)((()=>({open:0===l.listboxState,disabled:l.disabled})),[l]);return(0,T.XX)({ourProps:{ref:d,id:o,onClick:h},theirProps:a,slot:f,defaultTag:"label",name:"Listbox.Label"})})),W=(0,T.FX)((function(e,t){var n;let i=(0,c.B)(),{id:o="headlessui-listbox-options-".concat(i),...u}=e,d=M("Listbox.Options"),h=O("Listbox.Options"),f=(0,p.P)(d.optionsRef,t),m=(0,l.L)(),v=(0,l.L)(),w=(0,g.O_)(),x=null!==w?(w&g.Uw.Open)===g.Uw.Open:0===d.listboxState;(0,r.useEffect)((()=>{var e;let t=d.optionsRef.current;t&&0===d.listboxState&&t!==(null==(e=(0,_.T)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[d.listboxState,d.optionsRef]);let C=(0,s._)((e=>{switch(v.dispose(),e.key){case S.D.Space:if(""!==d.searchQuery)return e.preventDefault(),e.stopPropagation(),h.search(e.key);case S.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==d.activeOptionIndex){let{dataRef:e}=d.options[d.activeOptionIndex];h.onChange(e.current.value)}0===d.mode&&(h.closeListbox(),(0,b.e)().nextFrame((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case(0,E.Y)(d.orientation,{vertical:S.D.ArrowDown,horizontal:S.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.goToOption(y.B.Next);case(0,E.Y)(d.orientation,{vertical:S.D.ArrowUp,horizontal:S.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.goToOption(y.B.Previous);case S.D.Home:case S.D.PageUp:return e.preventDefault(),e.stopPropagation(),h.goToOption(y.B.First);case S.D.End:case S.D.PageDown:return e.preventDefault(),e.stopPropagation(),h.goToOption(y.B.Last);case S.D.Escape:return e.preventDefault(),e.stopPropagation(),h.closeListbox(),m.nextFrame((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case S.D.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(h.search(e.key),v.setTimeout((()=>h.clearSearch()),350))}})),A=a((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.id}),[d.buttonRef.current]),k=(0,r.useMemo)((()=>({open:0===d.listboxState})),[d]),P={"aria-activedescendant":null===d.activeOptionIndex||null==(n=d.options[d.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===d.mode||void 0,"aria-labelledby":A,"aria-orientation":d.orientation,id:o,onKeyDown:C,role:"listbox",tabIndex:0,ref:f};return(0,T.XX)({ourProps:P,theirProps:u,slot:k,defaultTag:"ul",features:U,visible:x,name:"Listbox.Options"})})),q=(0,T.FX)((function(e,t){let n=(0,c.B)(),{id:a="headlessui-listbox-option-".concat(n),disabled:l=!1,value:u,...d}=e,m=M("Listbox.Option"),g=O("Listbox.Option"),v=null!==m.activeOptionIndex&&m.options[m.activeOptionIndex].id===a,w=m.isSelected(u),x=(0,r.useRef)(null),C=(0,h.q)(x),A=(0,o.Y)({disabled:l,value:u,domRef:x,get textValue(){return C()}}),E=(0,p.P)(t,x);(0,i.s)((()=>{if(0!==m.listboxState||!v||0===m.activationTrigger)return;let e=(0,b.e)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[x,v,m.listboxState,m.activationTrigger,m.activeOptionIndex]),(0,i.s)((()=>g.registerOption(a,A)),[A,a]);let _=(0,s._)((e=>{if(l)return e.preventDefault();g.onChange(u),0===m.mode&&(g.closeListbox(),(0,b.e)().nextFrame((()=>{var e;return null==(e=m.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),S=(0,s._)((()=>{if(l)return g.goToOption(y.B.Nothing);g.goToOption(y.B.Specific,a)})),k=(0,f.J)(),P=(0,s._)((e=>k.update(e))),D=(0,s._)((e=>{k.wasMoved(e)&&(l||v||g.goToOption(y.B.Specific,a,0))})),F=(0,s._)((e=>{k.wasMoved(e)&&(l||v&&g.goToOption(y.B.Nothing))})),N=(0,r.useMemo)((()=>({active:v,selected:w,disabled:l})),[v,w,l]);return(0,T.XX)({ourProps:{id:a,ref:E,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":w,disabled:void 0,onClick:_,onFocus:S,onPointerEnter:P,onMouseEnter:P,onPointerMove:D,onMouseMove:D,onPointerLeave:F,onMouseLeave:F},theirProps:d,slot:N,defaultTag:"li",name:"Listbox.Option"})})),G=Object.assign(V,{Button:H,Label:z,Options:W,Option:q})},60712:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(61462),i=n(56574),o=n(519),a=n(27620),s=n(36854),l=n(99155),c=n(75064),u=n(44808),d=n(71276),p=n(27869),h=n(65408),f=n(29823),m=n(24896),g=n(17192),v=n(55197),y=n(52661),b=n(33498),w=n(9417),x=n(43139),C=n(21150),A=n(93322),E=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(E||{}),_=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(_||{});let T={0:e=>{let t={...e,popoverState:(0,w.Y)(e.popoverState,{0:1,1:0})};return 0===t.popoverState&&(t.__demoMode=!1),t},1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},S=(0,r.createContext)(null);function k(e){let t=(0,r.useContext)(S);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}S.displayName="PopoverContext";let P=(0,r.createContext)(null);function D(e){let t=(0,r.useContext)(P);if(null===t){let t=new Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,D),t}return t}P.displayName="PopoverAPIContext";let F=(0,r.createContext)(null);function N(){return(0,r.useContext)(F)}F.displayName="PopoverGroupContext";let I=(0,r.createContext)(null);function R(e,t){return(0,w.Y)(t.type,T,e,t)}I.displayName="PopoverPanelContext";let O=C.O5.RenderStrategy|C.O5.Static;let j=C.O5.RenderStrategy|C.O5.Static;let M=(0,C.FX)((function(e,t){var n;let{__demoMode:s=!1,...l}=e,p=(0,r.useRef)(null),m=(0,f.P)(t,(0,f.a)((e=>{p.current=e}))),g=(0,r.useRef)([]),y=(0,r.useReducer)(R,{__demoMode:s,popoverState:s?0:1,buttons:g,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,r.createRef)(),afterPanelSentinel:(0,r.createRef)()}),[{popoverState:x,button:A,buttonId:E,panel:_,panelId:T,beforePanelSentinel:k,afterPanelSentinel:D},F]=y,O=(0,d.g)(null!=(n=p.current)?n:A),j=(0,r.useMemo)((()=>{if(!A||!_)return!1;for(let a of document.querySelectorAll("body > *"))if(Number(null==a?void 0:a.contains(A))^Number(null==a?void 0:a.contains(_)))return!0;let e=(0,b.iq)(),t=e.indexOf(A),n=(t+e.length-1)%e.length,r=(t+1)%e.length,i=e[n],o=e[r];return!_.contains(i)&&!_.contains(o)}),[A,_]),M=(0,c.Y)(E),L=(0,c.Y)(T),B=(0,r.useMemo)((()=>({buttonId:M,panelId:L,close:()=>F({type:1})})),[M,L,F]),U=N(),V=null==U?void 0:U.registerPopover,H=(0,o._)((()=>{var e;return null!=(e=null==U?void 0:U.isFocusWithinPopoverGroup())?e:(null==O?void 0:O.activeElement)&&((null==A?void 0:A.contains(O.activeElement))||(null==_?void 0:_.contains(O.activeElement)))}));(0,r.useEffect)((()=>null==V?void 0:V(B)),[V,B]);let[z,W]=(0,i.k)(),q=(0,h.i)({mainTreeNodeRef:null==U?void 0:U.mainTreeNodeRef,portals:z,defaultContainers:[A,_]});(0,a.M)(null==O?void 0:O.defaultView,"focus",(e=>{var t,n,r,i;e.target!==window&&e.target instanceof HTMLElement&&0===x&&(H()||A&&_&&(q.contains(e.target)||null!=(n=null==(t=k.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(i=null==(r=D.current)?void 0:r.contains)&&i.call(r,e.target)||F({type:1})))}),!0),(0,u.j)(q.resolveContainers,((e,t)=>{F({type:1}),(0,b.Bm)(t,b.MZ.Loose)||(e.preventDefault(),null==A||A.focus())}),0===x);let G=(0,o._)((e=>{F({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:A:A;null==t||t.focus()})),Y=(0,r.useMemo)((()=>({close:G,isPortalled:j})),[G,j]),K=(0,r.useMemo)((()=>({open:0===x,close:G})),[x,G]),Q={ref:m};return r.createElement(I.Provider,{value:null},r.createElement(S.Provider,{value:y},r.createElement(P.Provider,{value:Y},r.createElement(v.El,{value:(0,w.Y)(x,{0:v.Uw.Open,1:v.Uw.Closed})},r.createElement(W,null,(0,C.XX)({ourProps:Q,theirProps:l,slot:K,defaultTag:"div",name:"Popover"}),r.createElement(q.MainTreeNode,null))))))})),L=(0,C.FX)((function(e,t){let n=(0,s.B)(),{id:i="headlessui-popover-button-".concat(n),...a}=e,[l,c]=k("Popover.Button"),{isPortalled:u}=D("Popover.Button"),h=(0,r.useRef)(null),v="headlessui-focus-sentinel-".concat((0,s.B)()),x=N(),E=null==x?void 0:x.closeOthers,_=null!==(0,r.useContext)(I);(0,r.useEffect)((()=>{if(!_)return c({type:3,buttonId:i}),()=>{c({type:3,buttonId:null})}}),[_,i,c]);let[T]=(0,r.useState)((()=>Symbol())),S=(0,f.P)(h,t,_?null:e=>{if(e)l.buttons.current.push(T);else{let e=l.buttons.current.indexOf(T);-1!==e&&l.buttons.current.splice(e,1)}l.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&c({type:2,button:e})}),P=(0,f.P)(h,t),F=(0,d.g)(h),R=(0,o._)((e=>{var t,n,r;if(_){if(1===l.popoverState)return;switch(e.key){case A.D.Space:case A.D.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),c({type:1}),null==(r=l.button)||r.focus()}}else switch(e.key){case A.D.Space:case A.D.Enter:e.preventDefault(),e.stopPropagation(),1===l.popoverState&&(null==E||E(l.buttonId)),c({type:0});break;case A.D.Escape:if(0!==l.popoverState)return null==E?void 0:E(l.buttonId);if(!h.current||null!=F&&F.activeElement&&!h.current.contains(F.activeElement))return;e.preventDefault(),e.stopPropagation(),c({type:1})}})),O=(0,o._)((e=>{_||e.key===A.D.Space&&e.preventDefault()})),j=(0,o._)((t=>{var n,r;(0,y.l)(t.currentTarget)||e.disabled||(_?(c({type:1}),null==(n=l.button)||n.focus()):(t.preventDefault(),t.stopPropagation(),1===l.popoverState&&(null==E||E(l.buttonId)),c({type:0}),null==(r=l.button)||r.focus()))})),M=(0,o._)((e=>{e.preventDefault(),e.stopPropagation()})),L=0===l.popoverState,B=(0,r.useMemo)((()=>({open:L})),[L]),U=(0,p.c)(e,h),V=_?{ref:P,type:U,onKeyDown:R,onClick:j}:{ref:S,id:l.buttonId,type:U,"aria-expanded":0===l.popoverState,"aria-controls":l.panel?l.panelId:void 0,onKeyDown:R,onKeyUp:O,onClick:j,onMouseDown:M},H=(0,m.u)(),z=(0,o._)((()=>{let e=l.panel;e&&(0,w.Y)(H.current,{[m.O.Forwards]:()=>(0,b.CU)(e,b.BD.First),[m.O.Backwards]:()=>(0,b.CU)(e,b.BD.Last)})===b.Me.Error&&(0,b.CU)((0,b.iq)().filter((e=>"true"!==e.dataset.headlessuiFocusGuard)),(0,w.Y)(H.current,{[m.O.Forwards]:b.BD.Next,[m.O.Backwards]:b.BD.Previous}),{relativeTo:l.button})}));return r.createElement(r.Fragment,null,(0,C.XX)({ourProps:V,theirProps:a,slot:B,defaultTag:"button",name:"Popover.Button"}),L&&!_&&u&&r.createElement(g.j,{id:v,features:g.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:z}))})),B=(0,C.FX)((function(e,t){let n=(0,s.B)(),{id:i="headlessui-popover-overlay-".concat(n),...a}=e,[{popoverState:l},c]=k("Popover.Overlay"),u=(0,f.P)(t),d=(0,v.O_)(),p=null!==d?(d&v.Uw.Open)===v.Uw.Open:0===l,h=(0,o._)((e=>{if((0,y.l)(e.currentTarget))return e.preventDefault();c({type:1})})),m=(0,r.useMemo)((()=>({open:0===l})),[l]);return(0,C.XX)({ourProps:{ref:u,id:i,"aria-hidden":!0,onClick:h},theirProps:a,slot:m,defaultTag:"div",features:O,visible:p,name:"Popover.Overlay"})})),U=(0,C.FX)((function(e,t){let n=(0,s.B)(),{id:i="headlessui-popover-panel-".concat(n),focus:a=!1,...c}=e,[u,p]=k("Popover.Panel"),{close:h,isPortalled:y}=D("Popover.Panel"),x="headlessui-focus-sentinel-before-".concat((0,s.B)()),E="headlessui-focus-sentinel-after-".concat((0,s.B)()),_=(0,r.useRef)(null),T=(0,f.P)(_,t,(e=>{p({type:4,panel:e})})),S=(0,d.g)(_),P=(0,C.cq)();(0,l.s)((()=>(p({type:5,panelId:i}),()=>{p({type:5,panelId:null})})),[i,p]);let F=(0,v.O_)(),N=null!==F?(F&v.Uw.Open)===v.Uw.Open:0===u.popoverState,R=(0,o._)((e=>{var t;if(e.key===A.D.Escape){if(0!==u.popoverState||!_.current||null!=S&&S.activeElement&&!_.current.contains(S.activeElement))return;e.preventDefault(),e.stopPropagation(),p({type:1}),null==(t=u.button)||t.focus()}}));(0,r.useEffect)((()=>{var t;e.static||1===u.popoverState&&(null==(t=e.unmount)||t)&&p({type:4,panel:null})}),[u.popoverState,e.unmount,e.static,p]),(0,r.useEffect)((()=>{if(u.__demoMode||!a||0!==u.popoverState||!_.current)return;let e=null==S?void 0:S.activeElement;_.current.contains(e)||(0,b.CU)(_.current,b.BD.First)}),[u.__demoMode,a,_,u.popoverState]);let O=(0,r.useMemo)((()=>({open:0===u.popoverState,close:h})),[u,h]),M={ref:T,id:i,onKeyDown:R,onBlur:a&&0===u.popoverState?e=>{var t,n,r,i,o;let a=e.relatedTarget;a&&_.current&&(null!=(t=_.current)&&t.contains(a)||(p({type:1}),(null!=(r=null==(n=u.beforePanelSentinel.current)?void 0:n.contains)&&r.call(n,a)||null!=(o=null==(i=u.afterPanelSentinel.current)?void 0:i.contains)&&o.call(i,a))&&a.focus({preventScroll:!0})))}:void 0,tabIndex:-1},L=(0,m.u)(),B=(0,o._)((()=>{let e=_.current;e&&(0,w.Y)(L.current,{[m.O.Forwards]:()=>{var t;(0,b.CU)(e,b.BD.First)===b.Me.Error&&(null==(t=u.afterPanelSentinel.current)||t.focus())},[m.O.Backwards]:()=>{var e;null==(e=u.button)||e.focus({preventScroll:!0})}})})),U=(0,o._)((()=>{let e=_.current;e&&(0,w.Y)(L.current,{[m.O.Forwards]:()=>{var e;if(!u.button)return;let t=(0,b.iq)(),n=t.indexOf(u.button),r=t.slice(0,n+1),i=[...t.slice(n+1),...r];for(let o of i.slice())if("true"===o.dataset.headlessuiFocusGuard||null!=(e=u.panel)&&e.contains(o)){let e=i.indexOf(o);-1!==e&&i.splice(e,1)}(0,b.CU)(i,b.BD.First,{sorted:!1})},[m.O.Backwards]:()=>{var t;(0,b.CU)(e,b.BD.Previous)===b.Me.Error&&(null==(t=u.button)||t.focus())}})}));return r.createElement(I.Provider,{value:i},N&&y&&r.createElement(g.j,{id:x,ref:u.beforePanelSentinel,features:g.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:B}),(0,C.XX)({mergeRefs:P,ourProps:M,theirProps:c,slot:O,defaultTag:"div",features:j,visible:N,name:"Popover.Panel"}),N&&y&&r.createElement(g.j,{id:E,ref:u.afterPanelSentinel,features:g.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:U}))})),V=(0,C.FX)((function(e,t){let n=(0,r.useRef)(null),i=(0,f.P)(n,t),[a,s]=(0,r.useState)([]),l=(0,h.x)(),c=(0,o._)((e=>{s((t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t}))})),u=(0,o._)((e=>(s((t=>[...t,e])),()=>c(e)))),d=(0,o._)((()=>{var e;let t=(0,x.T)(n);if(!t)return!1;let r=t.activeElement;return!(null==(e=n.current)||!e.contains(r))||a.some((e=>{var n,i;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId.current))?void 0:i.contains(r))}))})),p=(0,o._)((e=>{for(let t of a)t.buttonId.current!==e&&t.close()})),m=(0,r.useMemo)((()=>({registerPopover:u,unregisterPopover:c,isFocusWithinPopoverGroup:d,closeOthers:p,mainTreeNodeRef:l.mainTreeNodeRef})),[u,c,d,p,l.mainTreeNodeRef]),g=(0,r.useMemo)((()=>({})),[]),v=e,y={ref:i};return r.createElement(F.Provider,{value:m},(0,C.XX)({ourProps:y,theirProps:v,slot:g,defaultTag:"div",name:"Popover.Group"}),r.createElement(l.MainTreeNode,null))})),H=Object.assign(M,{Button:L,Overlay:B,Panel:U,Group:V})},56574:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x,k:()=>y});var r=n(61462),i=n(72551),o=n(519),a=n(99155),s=n(29783),l=n(71276),c=n(52527),u=n(29823),d=n(3117),p=n(94635),h=n(21150);let f=r.Fragment;let m=r.Fragment,g=(0,r.createContext)(null);let v=(0,r.createContext)(null);function y(){let e=(0,r.useContext)(v),t=(0,r.useRef)([]),n=(0,o._)((n=>(t.current.push(n),e&&e.register(n),()=>i(n)))),i=(0,o._)((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),a=(0,r.useMemo)((()=>({register:n,unregister:i,portals:t})),[n,i,t]);return[t,(0,r.useMemo)((()=>function(e){let{children:t}=e;return r.createElement(v.Provider,{value:a},t)}),[a])]}let b=(0,h.FX)((function(e,t){let n=e,o=(0,r.useRef)(null),m=(0,u.P)((0,u.a)((e=>{o.current=e})),t),y=(0,l.g)(o),b=function(e){let t=(0,d.S)(),n=(0,r.useContext)(g),i=(0,l.g)(e),[o,a]=(0,r.useState)((()=>{if(!t&&null!==n||p._.isServer)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let r=i.createElement("div");return r.setAttribute("id","headlessui-portal-root"),i.body.appendChild(r)}));return(0,r.useEffect)((()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))}),[o,i]),(0,r.useEffect)((()=>{t||null!==n&&a(n.current)}),[n,a,t]),o}(o),[w]=(0,r.useState)((()=>{var e;return p._.isServer?null:null!=(e=null==y?void 0:y.createElement("div"))?e:null})),x=(0,r.useContext)(v),C=(0,c.g)();return(0,a.s)((()=>{!b||!w||b.contains(w)||(w.setAttribute("data-headlessui-portal",""),b.appendChild(w))}),[b,w]),(0,a.s)((()=>{if(w&&x)return x.register(w)}),[x,w]),(0,s.X)((()=>{var e;!b||!w||(w instanceof Node&&b.contains(w)&&b.removeChild(w),b.childNodes.length<=0&&(null==(e=b.parentElement)||e.removeChild(b)))})),C&&b&&w?(0,i.createPortal)((0,h.XX)({ourProps:{ref:m},theirProps:n,defaultTag:f,name:"Portal"}),w):null})),w=(0,h.FX)((function(e,t){let{target:n,...i}=e,o={ref:(0,u.P)(t)};return r.createElement(g.Provider,{value:n},(0,h.XX)({ourProps:o,theirProps:i,defaultTag:m,name:"Popover.Group"}))})),x=Object.assign(b,{Group:w})},51572:(e,t,n)=>{"use strict";n.d(t,{e:()=>N});var r=n(61462),i=n(61824),o=n(519),a=n(70114);var s=n(99155),l=n(75064),c=n(52527),u=n(29823),d=n(53703),p=n(9417);function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.add(...n)}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.remove(...n)}function m(e,t,n,r){let i=n?"enter":"leave",o=(0,d.e)(),a=void 0!==r?function(e){let t={called:!1};return function(){if(!t.called)return t.called=!0,e(...arguments)}}(r):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let s=(0,p.Y)(i,{enter:()=>t.enter,leave:()=>t.leave}),l=(0,p.Y)(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=(0,p.Y)(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return f(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),h(e,...t.base,...s,...c),o.nextFrame((()=>{f(e,...t.base,...s,...c),h(e,...t.base,...s,...l),function(e,t){let n=(0,d.e)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,a]=[r,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=o+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(f(e,...t.base,...s),h(e,...t.base,...t.entered),a())))})),o.dispose}var g=n(55197),v=n(49429),y=n(21150);function b(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/).filter((e=>e.length>1))}let w=(0,r.createContext)(null);w.displayName="TransitionContext";var x=(e=>(e.Visible="visible",e.Hidden="hidden",e))(x||{});let C=(0,r.createContext)(null);function A(e){return"children"in e?A(e.children):e.current.filter((e=>{let{el:t}=e;return null!==t.current})).filter((e=>{let{state:t}=e;return"visible"===t})).length>0}function E(e,t){let n=(0,l.Y)(e),s=(0,r.useRef)([]),c=(0,a.a)(),u=(0,i.L)(),d=(0,o._)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.mK.Hidden,r=s.current.findIndex((t=>{let{el:n}=t;return n===e}));-1!==r&&((0,p.Y)(t,{[y.mK.Unmount](){s.current.splice(r,1)},[y.mK.Hidden](){s.current[r].state="hidden"}}),u.microTask((()=>{var e;!A(s)&&c.current&&(null==(e=n.current)||e.call(n))})))})),h=(0,o._)((e=>{let t=s.current.find((t=>{let{el:n}=t;return n===e}));return t?"visible"!==t.state&&(t.state="visible"):s.current.push({el:e,state:"visible"}),()=>d(e,y.mK.Unmount)})),f=(0,r.useRef)([]),m=(0,r.useRef)(Promise.resolve()),g=(0,r.useRef)({enter:[],leave:[],idle:[]}),v=(0,o._)(((e,n,r)=>{f.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((t=>{let[n]=t;return n!==e}))),null==t||t.chains.current[n].push([e,new Promise((e=>{f.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(g.current[n].map((e=>{let[t,n]=e;return n}))).then((()=>e()))}))]),"enter"===n?m.current=m.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),b=(0,o._)(((e,t,n)=>{Promise.all(g.current[t].splice(0).map((e=>{let[t,n]=e;return n}))).then((()=>{var e;null==(e=f.current.shift())||e()})).then((()=>n(t)))}));return(0,r.useMemo)((()=>({children:s,register:h,unregister:d,onStart:v,onStop:b,wait:m,chains:g})),[h,d,s,v,b,g,m])}function _(){}C.displayName="NestingContext";let T=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function S(e){var t;let n={};for(let r of T)n[r]=null!=(t=e[r])?t:_;return n}let k=y.O5.RenderStrategy;let P=(0,y.FX)((function(e,t){let{show:n,appear:i=!1,unmount:a=!0,...l}=e,d=(0,r.useRef)(null),p=(0,u.P)(d,t);(0,c.g)();let h=(0,g.O_)();if(void 0===n&&null!==h&&(n=(h&g.Uw.Open)===g.Uw.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,m]=(0,r.useState)(n?"visible":"hidden"),v=E((()=>{m("hidden")})),[b,x]=(0,r.useState)(!0),_=(0,r.useRef)([n]);(0,s.s)((()=>{!1!==b&&_.current[_.current.length-1]!==n&&(_.current.push(n),x(!1))}),[_,n]);let T=(0,r.useMemo)((()=>({show:n,appear:i,initial:b})),[n,i,b]);(0,r.useEffect)((()=>{if(n)m("visible");else if(A(v)){let e=d.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")}),[n,v]);let S={unmount:a},P=(0,o._)((()=>{var t;b&&x(!1),null==(t=e.beforeEnter)||t.call(e)})),F=(0,o._)((()=>{var t;b&&x(!1),null==(t=e.beforeLeave)||t.call(e)}));return r.createElement(C.Provider,{value:v},r.createElement(w.Provider,{value:T},(0,y.XX)({ourProps:{...S,as:r.Fragment,children:r.createElement(D,{ref:p,...S,...l,beforeEnter:P,beforeLeave:F})},theirProps:{},defaultTag:r.Fragment,features:k,visible:"visible"===f,name:"Transition"})))})),D=(0,y.FX)((function(e,t){var n,h;let{beforeEnter:f,afterEnter:x,beforeLeave:_,afterLeave:T,enter:P,enterFrom:D,enterTo:F,entered:N,leave:I,leaveFrom:R,leaveTo:O,...j}=e,M=(0,r.useRef)(null),L=(0,u.P)(M,t),B=null==(n=j.unmount)||n?y.mK.Unmount:y.mK.Hidden,{show:U,appear:V,initial:H}=function(){let e=(0,r.useContext)(w);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[z,W]=(0,r.useState)(U?"visible":"hidden"),q=function(){let e=(0,r.useContext)(C);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:G,unregister:Y}=q;(0,r.useEffect)((()=>G(M)),[G,M]),(0,r.useEffect)((()=>{if(B===y.mK.Hidden&&M.current)return U&&"visible"!==z?void W("visible"):(0,p.Y)(z,{hidden:()=>Y(M),visible:()=>G(M)})}),[z,M,G,Y,U,B]);let K=(0,l.Y)({base:b(j.className),enter:b(P),enterFrom:b(D),enterTo:b(F),entered:b(N),leave:b(I),leaveFrom:b(R),leaveTo:b(O)}),Q=function(e){let t=(0,r.useRef)(S(e));return(0,r.useEffect)((()=>{t.current=S(e)}),[e]),t}({beforeEnter:f,afterEnter:x,beforeLeave:_,afterLeave:T}),X=(0,c.g)();(0,r.useEffect)((()=>{if(X&&"visible"===z&&null===M.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[M,z,X]);let Z=V&&U&&H,J=!X||H&&!V?"idle":U?"enter":"leave",$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,r.useState)(e),i=(0,a.a)(),o=(0,r.useCallback)((e=>{i.current&&n((t=>t|e))}),[t,i]),s=(0,r.useCallback)((e=>Boolean(t&e)),[t]),l=(0,r.useCallback)((e=>{i.current&&n((t=>t&~e))}),[n,i]),c=(0,r.useCallback)((e=>{i.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:l,toggleFlag:c}}(0),ee=(0,o._)((e=>(0,p.Y)(e,{enter:()=>{$.addFlag(g.Uw.Opening),Q.current.beforeEnter()},leave:()=>{$.addFlag(g.Uw.Closing),Q.current.beforeLeave()},idle:()=>{}}))),te=(0,o._)((e=>(0,p.Y)(e,{enter:()=>{$.removeFlag(g.Uw.Opening),Q.current.afterEnter()},leave:()=>{$.removeFlag(g.Uw.Closing),Q.current.afterLeave()},idle:()=>{}}))),ne=E((()=>{W("hidden"),Y(M)}),q),re=(0,r.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:c,onStop:u}=e,p=(0,a.a)(),h=(0,i.L)(),f=(0,l.Y)(r);(0,s.s)((()=>{t&&(f.current="enter")}),[t]),(0,s.s)((()=>{let e=(0,d.e)();h.add(e.dispose);let t=n.current;if(t&&"idle"!==f.current&&p.current)return e.dispose(),c.current(f.current),e.add(m(t,o.current,"enter"===f.current,(()=>{e.dispose(),u.current(f.current)}))),e.dispose}),[r])}({immediate:Z,container:M,classes:K,direction:J,onStart:(0,l.Y)((e=>{re.current=!0,ne.onStart(M,e,ee)})),onStop:(0,l.Y)((e=>{re.current=!1,ne.onStop(M,e,te),"leave"===e&&!A(ne)&&(W("hidden"),Y(M))}))});let ie=j,oe={ref:L};return Z?ie={...ie,className:(0,v.x)(j.className,...K.current.enter,...K.current.enterFrom)}:re.current&&(ie.className=(0,v.x)(j.className,null==(h=M.current)?void 0:h.className),""===ie.className&&delete ie.className),r.createElement(C.Provider,{value:ne},r.createElement(g.El,{value:(0,p.Y)(z,{visible:g.Uw.Open,hidden:g.Uw.Closed})|$.flags},(0,y.XX)({ourProps:oe,theirProps:ie,defaultTag:"div",features:k,visible:"visible"===z,name:"Transition.Child"})))})),F=(0,y.FX)((function(e,t){let n=null!==(0,r.useContext)(w),i=null!==(0,g.O_)();return r.createElement(r.Fragment,null,!n&&i?r.createElement(P,{ref:t,...e}):r.createElement(D,{ref:t,...e}))})),N=Object.assign(P,{Child:F,Root:P})},61824:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(61462),i=n(53703);function o(){let[e]=(0,r.useState)(i.e);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}},27620:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(61462),i=n(75064);function o(e,t,n,o){let a=(0,i.Y)(n);(0,r.useEffect)((()=>{function n(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}),[e,t,o])}},519:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(61462),i=n(75064);let o=function(e){let t=(0,i.Y)(e);return r.useCallback((function(){return t.current(...arguments)}),[t])}},36854:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r,i=n(61462),o=n(94635),a=n(99155),s=n(52527);let l=null!=(r=i.useId)?r:function(){let e=(0,s.g)(),[t,n]=i.useState(e?()=>o._.nextId():null);return(0,a.s)((()=>{null===t&&n(o._.nextId())}),[t]),null!=t?""+t:void 0}},70114:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(61462),i=n(99155);function o(){let e=(0,r.useRef)(!1);return(0,i.s)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},99155:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(61462),i=n(94635);let o=(e,t)=>{i._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},75064:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(61462),i=n(99155);function o(e){let t=(0,r.useRef)(e);return(0,i.s)((()=>{t.current=e}),[e]),t}},29783:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(61462),i=n(61484),o=n(519);function a(e){let t=(0,o._)(e),n=(0,r.useRef)(!1);(0,r.useEffect)((()=>(n.current=!1,()=>{n.current=!0,(0,i._)((()=>{n.current&&t()}))})),[t])}},44808:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var r=n(61462),i=n(33498),o=n(69597),a=n(75064);function s(e,t,n){let i=(0,a.Y)(t);(0,r.useEffect)((()=>{function t(e){i.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}var l=n(11330);function c(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=(0,r.useRef)(!1);function c(n,r){if(!a.current||n.defaultPrevented)return;let o=r(n);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!(0,i.Bm)(o,i.MZ.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let u=(0,r.useRef)(null);s("pointerdown",(e=>{var t,n;a.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),s("mousedown",(e=>{var t,n;a.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),s("click",(e=>{(0,o.Fr)()||u.current&&(c(e,(()=>u.current)),u.current=null)}),!0),s("touchend",(e=>c(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),(0,l.M)("blur",(e=>c(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}},71276:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(61462),i=n(43139);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>(0,i.T)(...t)),[...t])}},27869:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(61462),i=n(99155);function o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function a(e,t){let[n,a]=(0,r.useState)((()=>o(e)));return(0,i.s)((()=>{a(o(e))}),[e.type,e.as]),(0,i.s)((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")}),[n,t]),n}},65408:(e,t,n)=>{"use strict";n.d(t,{i:()=>s,x:()=>l});var r=n(61462),i=n(17192),o=n(519),a=n(71276);function s(){let{defaultContainers:e=[],portals:t,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var s;let l=(0,r.useRef)(null!=(s=null==n?void 0:n.current)?s:null),c=(0,a.g)(l),u=(0,o._)((()=>{var n,r,i;let o=[];for(let t of e)null!==t&&(t instanceof HTMLElement?o.push(t):"current"in t&&t.current instanceof HTMLElement&&o.push(t.current));if(null!=t&&t.current)for(let e of t.current)o.push(e);for(let e of null!=(n=null==c?void 0:c.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(l.current)||e.contains(null==(i=null==(r=l.current)?void 0:r.getRootNode())?void 0:i.host)||o.some((t=>e.contains(t)))||o.push(e));return o}));return{resolveContainers:u,contains:(0,o._)((e=>u().some((t=>t.contains(e))))),mainTreeNodeRef:l,MainTreeNode:(0,r.useMemo)((()=>function(){return null!=n?null:r.createElement(i.j,{features:i.O.Hidden,ref:l})}),[l,n])}}function l(){let e=(0,r.useRef)(null);return{mainTreeNodeRef:e,MainTreeNode:(0,r.useMemo)((()=>function(){return r.createElement(i.j,{features:i.O.Hidden,ref:e})}),[e])}}},52527:(e,t,n)=>{"use strict";var r;n.d(t,{g:()=>a});var i=n(61462),o=n(94635);function a(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(r||(r=n.t(i,2)))((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,a]=i.useState(o._.isHandoffComplete);return t&&!1===o._.isHandoffComplete&&a(!1),i.useEffect((()=>{!0!==t&&a(!0)}),[t]),i.useEffect((()=>o._.handoff()),[]),!e&&t}},29823:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,a:()=>a});var r=n(61462),i=n(519);let o=Symbol();function a(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.assign(e,{[o]:t})}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=(0,r.useRef)(t);(0,r.useEffect)((()=>{a.current=t}),[t]);let s=(0,i._)((e=>{for(let t of a.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[o])))?void 0:s}},24896:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,u:()=>a});var r=n(61462),i=n(11330),o=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(o||{});function a(){let e=(0,r.useRef)(0);return(0,i.M)("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}},27404:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(61462);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let i of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),a=!0;let s=a?null!=(n=o.innerText)?n:"":r;return i.test(s)&&(s=s.replace(i,"")),s}var a=n(519);function s(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,a._)((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():o(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=a,a}))}},50305:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(61462);function i(e){return[e.screenX,e.screenY]}function o(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=i(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=i(t)}}}},11330:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(61462),i=n(75064);function o(e,t,n){let o=(0,i.Y)(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}},17192:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,j:()=>o});var r=n(21150);var i=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(i||{});let o=(0,r.FX)((function(e,t){var n;let{features:i=1,...o}=e,a={ref:t,"aria-hidden":2===(2&i)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:4===(4&i)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&i)&&2!==(2&i)&&{display:"none"}}};return(0,r.XX)({ourProps:a,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}))},55197:(e,t,n)=>{"use strict";n.d(t,{El:()=>s,O_:()=>a,Uw:()=>o});var r=n(61462);let i=(0,r.createContext)(null);i.displayName="OpenClosedContext";var o=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(o||{});function a(){return(0,r.useContext)(i)}function s(e){let{value:t,children:n}=e;return r.createElement(i.Provider,{value:t},n)}},3117:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,a:()=>a});var r=n(61462);let i=(0,r.createContext)(!1);function o(){return(0,r.useContext)(i)}function a(e){return r.createElement(i.Provider,{value:e.force},e.children)}},52661:(e,t,n)=>{"use strict";function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{l:()=>r})},58566:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,X:()=>i});var r=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(r||{});function i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}},49429:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}n.d(t,{x:()=>r})},53703:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(61484);function i(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(){let e=requestAnimationFrame(...arguments);return t.add((()=>cancelAnimationFrame(e)))},nextFrame(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.requestAnimationFrame((()=>t.requestAnimationFrame(...n)))},setTimeout(){let e=setTimeout(...arguments);return t.add((()=>clearTimeout(e)))},microTask(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];let o={current:!0};return(0,r._)((()=>{o.current&&n[0]()})),t.add((()=>{o.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=i();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},94635:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let o=new class{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},33498:(e,t,n)=>{"use strict";n.d(t,{BD:()=>s,Bm:()=>p,CU:()=>b,Fh:()=>h,MZ:()=>d,Me:()=>l,iq:()=>u,p9:()=>y,pW:()=>m,wl:()=>v});var r=n(53703),i=n(9417),o=n(43139);let a=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>"".concat(e,":not([tabindex='-1'])"))).join(",");var s=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(s||{}),l=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(l||{}),c=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(c||{});function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(a)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var d=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(d||{});function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n;return e!==(null==(n=(0,o.T)(e))?void 0:n.body)&&(0,i.Y)(t,{0:()=>e.matches(a),1(){let t=e;for(;null!==t;){if(t.matches(a))return!0;t=t.parentElement}return!1}})}function h(e){let t=(0,o.T)(e);(0,r.e)().nextFrame((()=>{t&&!p(t.activeElement,0)&&m(e)}))}var f=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(f||{});function m(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let g=["textarea","input"].join(",");function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function y(e,t){return b(u(),t,{relativeTo:e})}function b(e,t){let{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?v(e):e:u(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.includes(e)))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},p=0,h=a.length;do{if(p>=h||p+h<=0)return 0;let e=c+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}s=a[e],null==s||s.focus(d),p+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,g))&&n}(s)&&s.select(),2}},9417:(e,t,n)=>{"use strict";function r(e,t){if(e in t){let r=t[e];for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return"function"==typeof r?r(...i):r}let a=new Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map((e=>'"'.concat(e,'"'))).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}n.d(t,{Y:()=>r})},61484:(e,t,n)=>{"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}n.d(t,{_:()=>r})},43139:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(94635);function i(e){return r._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},69597:(e,t,n)=>{"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{Fr:()=>i,un:()=>r})},21150:(e,t,n)=>{"use strict";n.d(t,{FX:()=>h,O5:()=>a,XX:()=>l,cq:()=>u,mK:()=>s,oE:()=>f});var r=n(61462),i=n(49429),o=n(9417),a=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(a||{}),s=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(s||{});function l(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:u}=e;u=null!=u?u:d;let h=p(n,t);if(s)return c(h,r,i,l,u);let f=null!=a?a:0;if(2&f){let{static:e=!1,...t}=h;if(e)return c(t,r,i,l,u)}if(1&f){let{unmount:e=!0,...t}=h;return(0,o.Y)(e?0:1,{0:()=>null,1:()=>c({...t,hidden:!0,style:{display:"none"}},r,i,l,u)})}return c(h,r,i,l,u)}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,{as:s=n,children:l,refName:c="ref",...u}=m(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},h="function"==typeof l?l(t):l;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let g={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(g["data-headlessui-state"]=n.join(" "))}if(s===r.Fragment&&Object.keys(f(u)).length>0){if(!(0,r.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <".concat(o,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map((e=>"  - ".concat(e))).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>"  - ".concat(e))).join("\n")].join("\n"));let e=h.props,t="function"==typeof(null==e?void 0:e.className)?function(){return(0,i.x)(null==e?void 0:e.className(...arguments),u.className)}:(0,i.x)(null==e?void 0:e.className,u.className),n=t?{className:t}:{};return(0,r.cloneElement)(h,Object.assign({},p(h.props,f(m(u,["ref"]))),g,d,{ref:a(h.ref,d.ref)},n))}return(0,r.createElement)(s,Object.assign({},m(u,["ref"]),s!==r.Fragment&&d,s!==r.Fragment&&g),h)}function u(){let e=(0,r.useRef)([]),t=(0,r.useCallback)((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.every((e=>null==e)))return e.current=r,t}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((e=>null==e))?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},i={};for(let o of t)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=i[e]||(i[e]=[]),i[e].push(o[e])):r[e]=o[e];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(i).map((e=>[e,void 0]))));for(let o in i)Object.assign(r,{[o](e){let t=i[o];for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(let i of t){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;i(e,...r)}}});return r}function h(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function f(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}},49048:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}))},74042:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}))},84239:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}))},87043:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}))},42332:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}))},83849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}))},86718:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))}))},99154:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))}))},82995:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}))},67687:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61462);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}))},16e3:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{V:()=>r})},71549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{create:()=>o,default:()=>i});var r={};!function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),a="function"===typeof Path2D&&"function"===typeof DOMMatrix,s=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var r=e.transferToImageBitmap();try{n.createPattern(r,"no-repeat")}catch(i){return!1}return!0}();function l(){}function c(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"===typeof i?new i(e):(e(l,l),null)}var u,d,p,h=(u=s,d=new Map,{transform:function(e){if(u)return e;if(d.has(e))return d.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),d.set(e,t),t},clear:function(){d.clear()}}),f=function(){var e,t,n=Math.floor(1e3/60),r={},i=0;return"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return r[t]=requestAnimationFrame((function o(a){i===a||i+n-1<a?(i=a,delete r[t],e()):r[t]=requestAnimationFrame(o)})),t},t=function(e){r[e]&&cancelAnimationFrame(r[e])}):(e=function(e){return setTimeout(e,n)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),m=function(){var t,n,i={};return function(){if(t)return t;if(!r&&o){var a=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([a])))}catch(s){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",s),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(r,o,a){if(n)return t(r,null),n;var s=Math.random().toString(36).slice(2);return n=c((function(o){function l(t){t.data.callback===s&&(delete i[s],e.removeEventListener("message",l),n=null,h.clear(),a(),o())}e.addEventListener("message",l),t(r,s),i[s]=l.bind(null,{data:{callback:s}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),i)i[t](),delete i[t]}}(t)}return t}}(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(e,t,n){return function(e,t){return t?t(e):e}(e&&(null!==(r=e[t])&&void 0!==r)?e[t]:g[t],n);var r}function y(e){return e<0?0:Math.floor(e)}function b(e){return parseInt(e,16)}function w(e){return e.map(x)}function x(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:b(t.substring(0,2)),g:b(t.substring(2,4)),b:b(t.substring(4,6))}}function C(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function A(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function E(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar,flat:e.flat}}function _(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,o=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),a&&"path"===t.shape.type&&"string"===typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,n,r,i,o,a){var s=new Path2D(e),l=new Path2D;l.addPath(s,new DOMMatrix(t));var c=new Path2D;return c.addPath(l,new DOMMatrix([Math.cos(a)*i,Math.sin(a)*i,-Math.sin(a)*o,Math.cos(a)*o,n,r])),c}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(o-r),.1*Math.abs(s-i),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var l=Math.PI/10*t.wobble,c=.1*Math.abs(o-r),u=.1*Math.abs(s-i),d=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,f=new DOMMatrix([Math.cos(l)*c,Math.sin(l)*c,-Math.sin(l)*u,Math.cos(l)*u,t.x,t.y]);f.multiplySelf(new DOMMatrix(t.shape.matrix));var m=e.createPattern(h.transform(t.shape.bitmap),"no-repeat");m.setTransform(f),e.globalAlpha=1-n,e.fillStyle=m,e.fillRect(t.x-d/2,t.y-p/2,d,p),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(s-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,i,o,a,s,l){e.save(),e.translate(t,n),e.rotate(o),e.scale(r,i),e.arc(0,0,1,a,s,l),e.restore()}(e,t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(s-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var g=Math.PI/2*3,v=4*t.scalar,y=8*t.scalar,b=t.x,w=t.y,x=5,C=Math.PI/x;x--;)b=t.x+Math.cos(g)*y,w=t.y+Math.sin(g)*y,e.lineTo(b,w),g+=C,b=t.x+Math.cos(g)*v,w=t.y+Math.sin(g)*v,e.lineTo(b,w),g+=C;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(i)),e.lineTo(Math.floor(o),Math.floor(s)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}function T(e,n){var a,s=!e,l=!!v(n||{},"resize"),u=!1,d=v(n,"disableForReducedMotion",Boolean),p=o&&!!v(n||{},"useWorker")?m():null,g=s?C:A,b=!(!e||!p)&&!!e.__confetti_initialized,x="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function T(t,n,o){for(var s,l,u=v(t,"particleCount",y),d=v(t,"angle",Number),p=v(t,"spread",Number),m=v(t,"startVelocity",Number),b=v(t,"decay",Number),x=v(t,"gravity",Number),C=v(t,"drift",Number),A=v(t,"colors",w),T=v(t,"ticks",Number),S=v(t,"shapes"),k=v(t,"scalar"),P=!!v(t,"flat"),D=function(e){var t=v(e,"origin",Object);return t.x=v(t,"x",Number),t.y=v(t,"y",Number),t}(t),F=u,N=[],I=e.width*D.x,R=e.height*D.y;F--;)N.push(E({x:I,y:R,angle:d,spread:p,startVelocity:m,color:A[F%A.length],shape:S[(s=0,l=S.length,Math.floor(Math.random()*(l-s))+s)],ticks:T,decay:b,gravity:x,drift:C,scalar:k,flat:P}));return a?a.addFettis(N):(a=function(e,t,n,o,a){var s,l,u=t.slice(),d=e.getContext("2d"),p=c((function(t){function c(){s=l=null,d.clearRect(0,0,o.width,o.height),h.clear(),a(),t()}s=f.frame((function t(){!r||o.width===i.width&&o.height===i.height||(o.width=e.width=i.width,o.height=e.height=i.height),o.width||o.height||(n(e),o.width=e.width,o.height=e.height),d.clearRect(0,0,o.width,o.height),(u=u.filter((function(e){return _(d,e)}))).length?s=f.frame(t):c()})),l=c}));return{addFettis:function(e){return u=u.concat(e),p},canvas:e,promise:p,reset:function(){s&&f.cancel(s),l&&l()}}}(e,N,g,n,o),a.promise)}function S(n){var r=d||v(n,"disableForReducedMotion",Boolean),i=v(n,"zIndex",Number);if(r&&x)return c((function(e){e()}));s&&a?e=a.canvas:s&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(i),document.body.appendChild(e)),l&&!b&&g(e);var o={width:e.width,height:e.height};function h(){if(p){var t={getBoundingClientRect:function(){if(!s)return e.getBoundingClientRect()}};return g(t),void p.postMessage({resize:{width:t.width,height:t.height}})}o.width=o.height=null}function f(){a=null,l&&(u=!1,t.removeEventListener("resize",h)),s&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,b=!1)}return p&&!b&&p.init(e),b=!0,p&&(e.__confetti_initialized=!0),l&&!u&&(u=!0,t.addEventListener("resize",h,!1)),p?p.fire(n,o,f):T(n,o,f)}return S.reset=function(){p&&p.reset(),a&&a.reset()},S}function S(){return p||(p=T(null,{useWorker:!0,resize:!0})),p}n.exports=function(){return S().apply(this,arguments)},n.exports.reset=function(){S().reset()},n.exports.create=T,n.exports.shapeFromPath=function(e){if(!a)throw new Error("path confetti are not supported in this browser");var t,n;"string"===typeof e?t=e:(t=e.path,n=e.matrix);var r=new Path2D(t),i=document.createElement("canvas").getContext("2d");if(!n){for(var o,s,l=1e3,c=l,u=l,d=0,p=0,h=0;h<l;h+=2)for(var f=0;f<l;f+=2)i.isPointInPath(r,h,f,"nonzero")&&(c=Math.min(c,h),u=Math.min(u,f),d=Math.max(d,h),p=Math.max(p,f));o=d-c,s=p-u;var m=Math.min(10/o,10/s);n=[m,0,0,m,-Math.round(o/2+c)*m,-Math.round(s/2+u)*m]}return{type:"path",path:t,matrix:n}},n.exports.shapeFromText=function(e){var t,n=1,r="#000000",i='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"===typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,i="fontFamily"in e?e.fontFamily:i,r="color"in e?e.color:r);var o=10*n,a=o+"px "+i,s=new OffscreenCanvas(o,o),l=s.getContext("2d");l.font=a;var c=l.measureText(t),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),d=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),p=c.actualBoundingBoxLeft+2,h=c.actualBoundingBoxAscent+2;u+=4,d+=4,(l=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=a,l.fillStyle=r,l.fillText(t,p,h);var f=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this||{}}(),r,!1);const i=r.exports;var o=r.exports.create},50768:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},23220:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function i(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{$:()=>i,A:()=>o});const o=i},78394:(e,t,n)=>{"use strict";function r(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>r})},87566:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const r=document.createElement("i");function i(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},40485:(e,t,n)=>{"use strict";n.d(t,{AB:()=>r.AB,Dc:()=>r.Dc,GG:()=>r.GG,My:()=>r.My,P:()=>r.P,Uo:()=>r.Uo,_M:()=>r._M,aQ:()=>r.aQ,or:()=>r.or,rJ:()=>r.rJ});var r=n(80081)},55744:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(t.align||[]).concat(),r=t.stringLength||i,a=[],s=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const n=[],i=[];let o=-1;for(e[d].length>u&&(u=e[d].length);++o<e[d].length;){const a=null===(p=e[d][o])||void 0===p?"":String(p);if(!1!==t.alignDelimiters){const e=r(a);i[o]=e,(void 0===c[o]||e>c[o])&&(c[o]=e)}n.push(a)}s[d]=n,l[d]=i}var p;let h=-1;if("object"===typeof n&&"length"in n)for(;++h<u;)a[h]=o(n[h]);else{const e=o(n);for(;++h<u;)a[h]=e}h=-1;const f=[],m=[];for(;++h<u;){const e=a[h];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let i=!1===t.alignDelimiters?1:Math.max(1,c[h]-n.length-r.length);const o=n+"-".repeat(i)+r;!1!==t.alignDelimiters&&(i=n.length+i+r.length,i>c[h]&&(c[h]=i),m[h]=i),f[h]=o}s.splice(1,0,f),l.splice(1,0,m),d=-1;const g=[];for(;++d<s.length;){const e=s[d],n=l[d];h=-1;const r=[];for(;++h<u;){const i=e[h]||"";let o="",s="";if(!1!==t.alignDelimiters){const e=c[h]-(n[h]||0),t=a[h];114===t?o=" ".repeat(e):99===t?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===t.delimiterStart||h||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!h||r.push(" "),!1!==t.alignDelimiters&&r.push(o),r.push(i),!1!==t.alignDelimiters&&r.push(s),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&h===u-1||r.push("|")}g.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}function i(e){return e.length}function o(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}n.d(t,{Q:()=>r})},91814:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});class r{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function i(e,t){const n={},i={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(i,e[o].normal);return new r(n,i,t)}r.prototype.property={},r.prototype.normal={},r.prototype.space=null;var o=n(81041),a=n(92107);const s={}.hasOwnProperty;function l(e){const t={},n={};let i;for(i in e.properties)if(s.call(e.properties,i)){const r=e.properties[i],s=new a.E(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[(0,o.S)(i)]=i,n[(0,o.S)(s.attribute)]=i}return new r(t,n,e.space)}const c=l({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function d(e,t){return t in e?e[t]:t}function p(e,t){return d(e,t.toLowerCase())}const h=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:p,properties:{xmlns:null,xmlnsXLink:null}});var f=n(35066);const m=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:f.booleanish,ariaAutoComplete:null,ariaBusy:f.booleanish,ariaChecked:f.booleanish,ariaColCount:f.number,ariaColIndex:f.number,ariaColSpan:f.number,ariaControls:f.spaceSeparated,ariaCurrent:null,ariaDescribedBy:f.spaceSeparated,ariaDetails:null,ariaDisabled:f.booleanish,ariaDropEffect:f.spaceSeparated,ariaErrorMessage:null,ariaExpanded:f.booleanish,ariaFlowTo:f.spaceSeparated,ariaGrabbed:f.booleanish,ariaHasPopup:null,ariaHidden:f.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f.spaceSeparated,ariaLevel:f.number,ariaLive:null,ariaModal:f.booleanish,ariaMultiLine:f.booleanish,ariaMultiSelectable:f.booleanish,ariaOrientation:null,ariaOwns:f.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:f.number,ariaPressed:f.booleanish,ariaReadOnly:f.booleanish,ariaRelevant:null,ariaRequired:f.booleanish,ariaRoleDescription:f.spaceSeparated,ariaRowCount:f.number,ariaRowIndex:f.number,ariaRowSpan:f.number,ariaSelected:f.booleanish,ariaSetSize:f.number,ariaSort:null,ariaValueMax:f.number,ariaValueMin:f.number,ariaValueNow:f.number,ariaValueText:null,role:null}}),g=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:p,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f.commaSeparated,acceptCharset:f.spaceSeparated,accessKey:f.spaceSeparated,action:null,allow:null,allowFullScreen:f.boolean,allowPaymentRequest:f.boolean,allowUserMedia:f.boolean,alt:null,as:null,async:f.boolean,autoCapitalize:null,autoComplete:f.spaceSeparated,autoFocus:f.boolean,autoPlay:f.boolean,blocking:f.spaceSeparated,capture:null,charSet:null,checked:f.boolean,cite:null,className:f.spaceSeparated,cols:f.number,colSpan:null,content:null,contentEditable:f.booleanish,controls:f.boolean,controlsList:f.spaceSeparated,coords:f.number|f.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:f.boolean,defer:f.boolean,dir:null,dirName:null,disabled:f.boolean,download:f.overloadedBoolean,draggable:f.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:f.boolean,formTarget:null,headers:f.spaceSeparated,height:f.number,hidden:f.boolean,high:f.number,href:null,hrefLang:null,htmlFor:f.spaceSeparated,httpEquiv:f.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:f.boolean,inputMode:null,integrity:null,is:null,isMap:f.boolean,itemId:null,itemProp:f.spaceSeparated,itemRef:f.spaceSeparated,itemScope:f.boolean,itemType:f.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:f.boolean,low:f.number,manifest:null,max:null,maxLength:f.number,media:null,method:null,min:null,minLength:f.number,multiple:f.boolean,muted:f.boolean,name:null,nonce:null,noModule:f.boolean,noValidate:f.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:f.boolean,optimum:f.number,pattern:null,ping:f.spaceSeparated,placeholder:null,playsInline:f.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:f.boolean,referrerPolicy:null,rel:f.spaceSeparated,required:f.boolean,reversed:f.boolean,rows:f.number,rowSpan:f.number,sandbox:f.spaceSeparated,scope:null,scoped:f.boolean,seamless:f.boolean,selected:f.boolean,shadowRootClonable:f.boolean,shadowRootDelegatesFocus:f.boolean,shadowRootMode:null,shape:null,size:f.number,sizes:null,slot:null,span:f.number,spellCheck:f.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f.number,step:null,style:null,tabIndex:f.number,target:null,title:null,translate:null,type:null,typeMustMatch:f.boolean,useMap:null,value:f.booleanish,width:f.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f.spaceSeparated,axis:null,background:null,bgColor:null,border:f.number,borderColor:null,bottomMargin:f.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:f.boolean,declare:f.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:f.number,leftMargin:f.number,link:null,longDesc:null,lowSrc:null,marginHeight:f.number,marginWidth:f.number,noResize:f.boolean,noHref:f.boolean,noShade:f.boolean,noWrap:f.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:f.number,rules:null,scheme:null,scrolling:f.booleanish,standby:null,summary:null,text:null,topMargin:f.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:f.boolean,disableRemotePlayback:f.boolean,prefix:null,property:null,results:f.number,security:null,unselectable:null}}),v=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:d,properties:{about:f.commaOrSpaceSeparated,accentHeight:f.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f.number,amplitude:f.number,arabicForm:null,ascent:f.number,attributeName:null,attributeType:null,azimuth:f.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f.number,by:null,calcMode:null,capHeight:f.number,className:f.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f.number,diffuseConstant:f.number,direction:null,display:null,dur:null,divisor:f.number,dominantBaseline:null,download:f.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:f.number,enableBackground:null,end:null,event:null,exponent:f.number,externalResourcesRequired:null,fill:null,fillOpacity:f.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:f.commaSeparated,g2:f.commaSeparated,glyphName:f.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f.number,horizOriginX:f.number,horizOriginY:f.number,id:null,ideographic:f.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f.number,k:f.number,k1:f.number,k2:f.number,k3:f.number,k4:f.number,kernelMatrix:f.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f.number,overlineThickness:f.number,paintOrder:null,panose1:null,path:null,pathLength:f.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f.number,pointsAtY:f.number,pointsAtZ:f.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:f.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:f.commaOrSpaceSeparated,rev:f.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:f.commaOrSpaceSeparated,requiredFeatures:f.commaOrSpaceSeparated,requiredFonts:f.commaOrSpaceSeparated,requiredFormats:f.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f.number,specularExponent:f.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f.number,strikethroughThickness:f.number,string:null,stroke:null,strokeDashArray:f.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f.number,strokeOpacity:f.number,strokeWidth:null,style:null,surfaceScale:f.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:f.commaOrSpaceSeparated,tabIndex:f.number,tableValues:null,target:null,targetX:f.number,targetY:f.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:f.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:f.number,underlineThickness:f.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f.number,values:null,vAlphabetic:f.number,vMathematical:f.number,vectorEffect:null,vHanging:f.number,vIdeographic:f.number,version:null,vertAdvY:f.number,vertOriginX:f.number,vertOriginY:f.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),y=i([u,c,h,m,g],"html"),b=i([u,c,h,m,v],"svg")},43551:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(81041),i=n(92107),o=n(36339);const a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e,t){const n=(0,r.S)(t);let c=t,p=o.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&a.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(s,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!s.test(e)){let n=e.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=i.E}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},1214:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});const r={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}},81041:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},92107:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(36339),i=n(35066);const o=Object.keys(i);class a extends r.R{constructor(e,t,n,r){let a=-1;if(super(e,t),s(this,"space",r),"number"===typeof n)for(;++a<o.length;){const e=o[a];s(this,o[a],(n&i[e])===i[e])}}}function s(e,t,n){n&&(e[t]=n)}a.prototype.defined=!0},36339:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.property=e,this.attribute=t}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},35066:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>o,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>s,overloadedBoolean:()=>a,spaceSeparated:()=>l});let r=0;const i=d(),o=d(),a=d(),s=d(),l=d(),c=d(),u=d();function d(){return 2**++r}},39744:(e,t,n)=>{"use strict";n.d(t,{m_:()=>S});var r=n(61462),i=n(64861),o=n(80978);const a="react-tooltip-core-styles",s="react-tooltip-base-styles",l={core:!1,base:!1};function c(e){let{css:t,id:n=s,type:r="base",ref:i}=e;var o,c;if(!t||"undefined"==typeof document||l[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(c=null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FUNC_SYNC_BLOCK_FOR_EVENT_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpSyncBlockForEvent",REACT_APP_NFT_CATALOG:"0x49a7cda3a1eecc29",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"420613377967",REACT_APP_SENTRY_API:"https://1bcdd2a5673f4443bf75dec1a6aabb07@o1241144.ingest.sentry.io/6394633",REACT_APP_NFT_COLLECTION_VERSUS:"versusArtCollection",REACT_APP_ADDRESS_NON_FUNGIBLE_TOKEN_CONTRACT:"0x1d7e57aa55817448",REACT_APP_ADDRESS_FUSD_CONTRACT:"0x3c5959b568896393",REACT_APP_STAGE:"prod",REACT_APP_NFT_COLLECTION:"NFTCollection",REACT_APP_ADDRESS_FLOWTYV2_CONTRACT:"0x3cdbb3d569211ff3",REACT_APP_STRAPI_URL:"https://confident-crystal-513bf384d1.strapiapp.com",REACT_APP_ALCHEMY_API_KEY:"awb0hwzcpabz98d9r914ubkoyfijcbot",REACT_APP_ADDRESS_GAIA_CONTRACT:"0x8b148183c28ff88f",REACT_APP_WALLET_CONNECT_PROJECT_ID:"f7123e5336b0e8f36e501e08130ca360",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-GSDNE57K7S",REACT_APP_FIREBASE_STORAGE_BUCKET:"flowty-prod.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"flowty-prod.firebaseapp.com",REACT_APP_NFT_COLLECTION_TOP_SHOT:"MomentCollection",REACT_APP_MIXPANEL_TOKEN:"b17ea6f8cf14401cd0282da7c49532b0",REACT_APP_STOREFRONT_COLLECTION:"exampleNFTCollectionProviderForFlowtyStorefront",REACT_APP_BASE_URL:"https://us-central1-flowty-prod.cloudfunctions.net",REACT_APP_WALLET_DISCOVERY_V2:"https://fcl-discovery.onflow.org/authn",REACT_APP_CRESCENDO:"true",REACT_APP_WALLET_DISCOVERY_ENDPOINT_V2:"https://fcl-discovery.onflow.org/api/authn",REACT_APP_FIREBASE_PROJECT_ID:"flowty-prod",REACT_APP_BLOCTO_WALLET_DISCOVERY:"https://flow-wallet.blocto.app/api/flow/authn",REACT_APP_WALLET_DISCOVERY:"https://fcl-discovery.onflow.org/authn",REACT_APP_FIREBASE_APP_ID:"1:420613377967:web:81b2cfb562e11bf64e695a",REACT_APP_ADDRESS_FUNGIBLE_TOKEN_CONTRACT:"0xf233dcee88fe0abe",REACT_APP_ADDRESS_TOPSHOT_CONTRACT:"0x0b2a3299cc857e29",REACT_APP_ADDRESS_FLOWTY_CONTRACT:"0x5c57f79c6694797f",REACT_APP_ACCESS_API:"https://mainnet.onflow.org",REACT_APP_FIREBASE_API_KEY:"AIzaSyDnlvFR2w8lyyGws2cLq0KQTKmtEy_Q0Hc",REACT_APP_ADDRESS_PROFILE_CONTRACT:"",REACT_APP_API_URL:"https://api2.flowty.io",REACT_APP_FUNC_CREATE_TOKEN_URL:"https://us-central1-flowty-prod.cloudfunctions.net/httpCreateCustomToken"})||void 0===c?void 0:c.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(n=a),i||(i={});const{insertAt:u}=i;if(document.getElementById(n))return;const d=document.head||document.getElementsByTagName("head")[0],p=document.createElement("style");p.id=n,p.type="text/css","top"===u&&d.firstChild?d.insertBefore(p,d.firstChild):d.appendChild(p),p.styleSheet?p.styleSheet.cssText=t:p.appendChild(document.createTextNode(t)),l[r]=!0}const u=async e=>{let{elementReference:t=null,tooltipReference:n=null,tooltipArrowReference:r=null,place:o="top",offset:a=10,strategy:s="absolute",middlewares:l=[(0,i.cY)(Number(a)),(0,i.UU)({fallbackAxisSideDirection:"start"}),(0,i.BN)({padding:5})],border:c}=e;if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===n)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const u=l;return r?(u.push((0,i.UE)({element:r,padding:5})),(0,i.rD)(t,n,{placement:o,strategy:s,middleware:u}).then((e=>{let{x:t,y:n,placement:r,middlewareData:i}=e;var o,a;const s={left:"".concat(t,"px"),top:"".concat(n,"px"),border:c},{x:l,y:u}=null!==(o=i.arrow)&&void 0!==o?o:{x:0,y:0},d=null!==(a={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==a?a:"bottom",p=c&&{borderBottom:c,borderRight:c};let h=0;if(c){const e="".concat(c).match(/(\d+)px/);h=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?"".concat(l,"px"):"",top:null!=u?"".concat(u,"px"):"",right:"",bottom:"",...p,[d]:"-".concat(4+h,"px")},place:r}}))):(0,i.rD)(t,n,{placement:"bottom",strategy:s,middleware:u}).then((e=>{let{x:t,y:n,placement:r}=e;return{tooltipStyles:{left:"".concat(t,"px"),top:"".concat(n,"px")},tooltipArrowStyles:{},place:r}}))},d=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),p=(e,t,n)=>{let r=null;const i=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(s,t)),n||(r&&clearTimeout(r),r=setTimeout(s,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},h=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,f=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>f(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!h(e)||!h(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>f(e[n],t[n])))},m=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},g=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(m(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},v="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,y=e=>{e.current&&(clearTimeout(e.current),e.current=null)},b="DEFAULT_TOOLTIP_ID",w={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},x=(0,r.createContext)({getTooltipData:()=>w});function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return(0,r.useContext)(x).getTooltipData(e)}var A={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},E={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const _=e=>{let{forwardRef:t,id:n,className:a,classNameArrow:s,variant:l="dark",anchorId:c,anchorSelect:d,place:h="top",offset:m=10,events:b=["hover"],openOnClick:w=!1,positionStrategy:x="absolute",middlewares:_,wrapper:T,delayShow:S=0,delayHide:k=0,float:P=!1,hidden:D=!1,noArrow:F=!1,clickable:N=!1,closeOnEsc:I=!1,closeOnScroll:R=!1,closeOnResize:O=!1,openEvents:j,closeEvents:M,globalCloseEvents:L,imperativeModeOnly:B,style:U,position:V,afterShow:H,afterHide:z,content:W,contentWrapperRef:q,isOpen:G,defaultIsOpen:Y=!1,setIsOpen:K,activeAnchor:Q,setActiveAnchor:X,border:Z,opacity:J,arrowColor:$,role:ee="tooltip"}=e;var te;const ne=(0,r.useRef)(null),re=(0,r.useRef)(null),ie=(0,r.useRef)(null),oe=(0,r.useRef)(null),ae=(0,r.useRef)(null),[se,le]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:h}),[ce,ue]=(0,r.useState)(!1),[de,pe]=(0,r.useState)(!1),[he,fe]=(0,r.useState)(null),me=(0,r.useRef)(!1),ge=(0,r.useRef)(null),{anchorRefs:ve,setActiveAnchor:ye}=C(n),be=(0,r.useRef)(!1),[we,xe]=(0,r.useState)([]),Ce=(0,r.useRef)(!1),Ae=w||b.includes("click"),Ee=Ae||(null==j?void 0:j.click)||(null==j?void 0:j.dblclick)||(null==j?void 0:j.mousedown),_e=j?{...j}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!j&&Ae&&Object.assign(_e,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Te=M?{...M}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!M&&Ae&&Object.assign(Te,{mouseleave:!1,blur:!1,mouseout:!1});const Se=L?{...L}:{escape:I||!1,scroll:R||!1,resize:O||!1,clickOutsideAnchor:Ee||!1};B&&(Object.assign(_e,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Te,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Se,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),v((()=>(Ce.current=!0,()=>{Ce.current=!1})),[]);const ke=e=>{Ce.current&&(e&&pe(!0),setTimeout((()=>{Ce.current&&(null==K||K(e),void 0===G&&ue(e))}),10))};(0,r.useEffect)((()=>{if(void 0===G)return()=>null;G&&pe(!0);const e=setTimeout((()=>{ue(G)}),10);return()=>{clearTimeout(e)}}),[G]),(0,r.useEffect)((()=>{if(ce!==me.current)if(y(ae),me.current=ce,ce)null==H||H();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();ae.current=setTimeout((()=>{pe(!1),fe(null),null==z||z()}),e+25)}}),[ce]);const Pe=e=>{le((t=>f(t,e)?t:e))},De=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;y(ie),de?ke(!0):ie.current=setTimeout((()=>{ke(!0)}),e)},Fe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k;y(oe),oe.current=setTimeout((()=>{be.current||ke(!1)}),e)},Ne=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return X(null),void ye({current:null});S?De():ke(!0),X(n),ye({current:n}),y(oe)},Ie=()=>{N?Fe(k||100):k?Fe():ke(!1),y(ie)},Re=e=>{let{x:t,y:n}=e;var r;const i={getBoundingClientRect:()=>({x:t,y:n,width:0,height:0,top:n,left:t,right:t,bottom:n})};u({place:null!==(r=null==he?void 0:he.place)&&void 0!==r?r:h,offset:m,elementReference:i,tooltipReference:ne.current,tooltipArrowReference:re.current,strategy:x,middlewares:_,border:Z}).then((e=>{Pe(e)}))},Oe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Re(n),ge.current=n},je=e=>{var t;if(!ce)return;const n=e.target;n.isConnected&&((null===(t=ne.current)||void 0===t?void 0:t.contains(n))||[document.querySelector("[id='".concat(c,"']")),...we].some((e=>null==e?void 0:e.contains(n)))||(ke(!1),y(ie)))},Me=p(Ne,50,!0),Le=p(Ie,50,!0),Be=e=>{Le.cancel(),Me(e)},Ue=()=>{Me.cancel(),Le()},Ve=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==he?void 0:he.position)&&void 0!==e?e:V;n?Re(n):P?ge.current&&Re(ge.current):(null==Q?void 0:Q.isConnected)&&u({place:null!==(t=null==he?void 0:he.place)&&void 0!==t?t:h,offset:m,elementReference:Q,tooltipReference:ne.current,tooltipArrowReference:re.current,strategy:x,middlewares:_,border:Z}).then((e=>{Ce.current&&Pe(e)}))}),[ce,Q,W,U,h,null==he?void 0:he.place,m,x,V,null==he?void 0:he.position,P]);(0,r.useEffect)((()=>{var e,t;const n=new Set(ve);we.forEach((e=>{n.add({current:e})}));const r=document.querySelector("[id='".concat(c,"']"));r&&n.add({current:r});const o=()=>{ke(!1)},a=g(Q),s=g(ne.current);Se.scroll&&(window.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o),null==s||s.addEventListener("scroll",o));let l=null;Se.resize?window.addEventListener("resize",o):Q&&ne.current&&(l=(0,i.ll)(Q,ne.current,Ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&ke(!1)};Se.escape&&window.addEventListener("keydown",u),Se.clickOutsideAnchor&&window.addEventListener("click",je);const d=[],p=e=>{ce&&(null==e?void 0:e.target)===Q||Ne(e)},h=e=>{ce&&(null==e?void 0:e.target)===Q&&Ie()},f=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],m=["click","dblclick","mousedown","mouseup"];Object.entries(_e).forEach((e=>{let[t,n]=e;n&&(f.includes(t)?d.push({event:t,listener:Be}):m.includes(t)&&d.push({event:t,listener:p}))})),Object.entries(Te).forEach((e=>{let[t,n]=e;n&&(f.includes(t)?d.push({event:t,listener:Ue}):m.includes(t)&&d.push({event:t,listener:h}))})),P&&d.push({event:"pointermove",listener:Oe});const v=()=>{be.current=!0},y=()=>{be.current=!1,Ie()};return N&&!Ee&&(null===(e=ne.current)||void 0===e||e.addEventListener("mouseenter",v),null===(t=ne.current)||void 0===t||t.addEventListener("mouseleave",y)),d.forEach((e=>{let{event:t,listener:r}=e;n.forEach((e=>{var n;null===(n=e.current)||void 0===n||n.addEventListener(t,r)}))})),()=>{var e,t;Se.scroll&&(window.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o),null==s||s.removeEventListener("scroll",o)),Se.resize?window.removeEventListener("resize",o):null==l||l(),Se.clickOutsideAnchor&&window.removeEventListener("click",je),Se.escape&&window.removeEventListener("keydown",u),N&&!Ee&&(null===(e=ne.current)||void 0===e||e.removeEventListener("mouseenter",v),null===(t=ne.current)||void 0===t||t.removeEventListener("mouseleave",y)),d.forEach((e=>{let{event:t,listener:r}=e;n.forEach((e=>{var n;null===(n=e.current)||void 0===n||n.removeEventListener(t,r)}))}))}}),[Q,Ve,de,ve,we,j,M,L,Ae,S,k]),(0,r.useEffect)((()=>{var e,t;let r=null!==(t=null!==(e=null==he?void 0:he.anchorSelect)&&void 0!==e?e:d)&&void 0!==t?t:"";!r&&n&&(r="[data-tooltip-id='".concat(n.replace(/'/g,"\\'"),"']"));const i=new MutationObserver((e=>{const t=[],i=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&i.push(e.target)),"childList"===e.type){if(Q){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{i.push(...t.filter((e=>e.matches(r)))),i.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,Q))&&(pe(!1),ke(!1),X(null),y(ie),y(oe),!0)}))}if(r)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(r)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(t.length||i.length)&&xe((e=>[...e.filter((e=>!i.includes(e))),...t]))}));return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}}),[n,d,null==he?void 0:he.anchorSelect,Q]),(0,r.useEffect)((()=>{Ve()}),[Ve]),(0,r.useEffect)((()=>{if(!(null==q?void 0:q.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ve()))}));return e.observe(q.current),()=>{e.disconnect()}}),[W,null==q?void 0:q.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector("[id='".concat(c,"']")),n=[...we,t];Q&&n.includes(Q)||X(null!==(e=we[0])&&void 0!==e?e:t)}),[c,we,Q]),(0,r.useEffect)((()=>(Y&&ke(!0),()=>{y(ie),y(oe)})),[]),(0,r.useEffect)((()=>{var e;let t=null!==(e=null==he?void 0:he.anchorSelect)&&void 0!==e?e:d;if(!t&&n&&(t="[data-tooltip-id='".concat(n.replace(/'/g,"\\'"),"']")),t)try{const e=Array.from(document.querySelectorAll(t));xe(e)}catch(e){xe([])}}),[n,d,null==he?void 0:he.anchorSelect]),(0,r.useEffect)((()=>{ie.current&&(y(ie),De(S))}),[S]);const He=null!==(te=null==he?void 0:he.content)&&void 0!==te?te:W,ze=ce&&Object.keys(se.tooltipStyles).length>0;return(0,r.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn('[react-tooltip] "'.concat(e.anchorSelect,'" is not a valid CSS selector'))}fe(null!=e?e:null),(null==e?void 0:e.delay)?De(e.delay):ke(!0)},close:e=>{(null==e?void 0:e.delay)?Fe(e.delay):ke(!1)},activeAnchor:Q,place:se.place,isOpen:Boolean(de&&!D&&He&&ze)}))),de&&!D&&He?r.createElement(T,{id:n,role:ee,className:o("react-tooltip",A.tooltip,E.tooltip,E[l],a,"react-tooltip__place-".concat(se.place),A[ze?"show":"closing"],ze?"react-tooltip__show":"react-tooltip__closing","fixed"===x&&A.fixed,N&&A.clickable),onTransitionEnd:e=>{y(ae),ce||"opacity"!==e.propertyName||(pe(!1),fe(null),null==z||z())},style:{...U,...se.tooltipStyles,opacity:void 0!==J&&ze?J:void 0},ref:ne},He,r.createElement(T,{className:o("react-tooltip-arrow",A.arrow,E.arrow,s,F&&A.noArrow),style:{...se.tooltipArrowStyles,background:$?"linear-gradient(to right bottom, transparent 50%, ".concat($," 50%)"):void 0},ref:re})):null},T=e=>{let{content:t}=e;return r.createElement("span",{dangerouslySetInnerHTML:{__html:t}})},S=r.forwardRef(((e,t)=>{let{id:n,anchorId:i,anchorSelect:a,content:s,html:l,render:c,className:u,classNameArrow:p,variant:h="dark",place:f="top",offset:m=10,wrapper:g="div",children:v=null,events:y=["hover"],openOnClick:b=!1,positionStrategy:w="absolute",middlewares:x,delayShow:A=0,delayHide:E=0,float:S=!1,hidden:k=!1,noArrow:P=!1,clickable:D=!1,closeOnEsc:F=!1,closeOnScroll:N=!1,closeOnResize:I=!1,openEvents:R,closeEvents:O,globalCloseEvents:j,imperativeModeOnly:M=!1,style:L,position:B,isOpen:U,defaultIsOpen:V=!1,disableStyleInjection:H=!1,border:z,opacity:W,arrowColor:q,setIsOpen:G,afterShow:Y,afterHide:K,role:Q="tooltip"}=e;const[X,Z]=(0,r.useState)(s),[J,$]=(0,r.useState)(l),[ee,te]=(0,r.useState)(f),[ne,re]=(0,r.useState)(h),[ie,oe]=(0,r.useState)(m),[ae,se]=(0,r.useState)(A),[le,ce]=(0,r.useState)(E),[ue,de]=(0,r.useState)(S),[pe,he]=(0,r.useState)(k),[fe,me]=(0,r.useState)(g),[ge,ve]=(0,r.useState)(y),[ye,be]=(0,r.useState)(w),[we,xe]=(0,r.useState)(null),[Ce,Ae]=(0,r.useState)(null),Ee=(0,r.useRef)(H),{anchorRefs:_e,activeAnchor:Te}=C(n),Se=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),ke=e=>{const t={place:e=>{var t;te(null!==(t=e)&&void 0!==t?t:f)},content:e=>{Z(null!=e?e:s)},html:e=>{$(null!=e?e:l)},variant:e=>{var t;re(null!==(t=e)&&void 0!==t?t:h)},offset:e=>{oe(null===e?m:Number(e))},wrapper:e=>{var t;me(null!==(t=e)&&void 0!==t?t:g)},events:e=>{const t=null==e?void 0:e.split(" ");ve(null!=t?t:y)},"position-strategy":e=>{var t;be(null!==(t=e)&&void 0!==t?t:w)},"delay-show":e=>{se(null===e?A:Number(e))},"delay-hide":e=>{ce(null===e?E:Number(e))},float:e=>{de(null===e?S:"true"===e)},hidden:e=>{he(null===e?k:"true"===e)},"class-name":e=>{xe(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((e=>{let[n,r]=e;var i;null===(i=t[n])||void 0===i||i.call(t,r)}))};(0,r.useEffect)((()=>{Z(s)}),[s]),(0,r.useEffect)((()=>{$(l)}),[l]),(0,r.useEffect)((()=>{te(f)}),[f]),(0,r.useEffect)((()=>{re(h)}),[h]),(0,r.useEffect)((()=>{oe(m)}),[m]),(0,r.useEffect)((()=>{se(A)}),[A]),(0,r.useEffect)((()=>{ce(E)}),[E]),(0,r.useEffect)((()=>{de(S)}),[S]),(0,r.useEffect)((()=>{he(k)}),[k]),(0,r.useEffect)((()=>{be(w)}),[w]),(0,r.useEffect)((()=>{Ee.current!==H&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[H]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===H,disableBase:H}}))}),[]),(0,r.useEffect)((()=>{var e;const t=new Set(_e);let r=a;if(!r&&n&&(r="[data-tooltip-id='".concat(n.replace(/'/g,"\\'"),"']")),r)try{document.querySelectorAll(r).forEach((e=>{t.add({current:e})}))}catch(e){console.warn('[react-tooltip] "'.concat(r,'" is not a valid CSS selector'))}const o=document.querySelector("[id='".concat(i,"']"));if(o&&t.add({current:o}),!t.size)return()=>null;const s=null!==(e=null!=Ce?Ce:o)&&void 0!==e?e:Te.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(s);ke(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(s){const e=Se(s);ke(e),l.observe(s,c)}return()=>{l.disconnect()}}),[_e,Te,Ce,i,a]),(0,r.useEffect)((()=>{(null==L?void 0:L.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),z&&!d("border","".concat(z))&&console.warn('[react-tooltip] "'.concat(z,'" is not a valid `border`.')),(null==L?void 0:L.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),W&&!d("opacity","".concat(W))&&console.warn('[react-tooltip] "'.concat(W,'" is not a valid `opacity`.'))}),[]);let Pe=v;const De=(0,r.useRef)(null);if(c){const e=c({content:(null==Ce?void 0:Ce.getAttribute("data-tooltip-content"))||X||null,activeAnchor:Ce});Pe=e?r.createElement("div",{ref:De,className:"react-tooltip-content-wrapper"},e):null}else X&&(Pe=X);J&&(Pe=r.createElement(T,{content:J}));const Fe={forwardRef:t,id:n,anchorId:i,anchorSelect:a,className:o(u,we),classNameArrow:p,content:Pe,contentWrapperRef:De,place:ee,variant:ne,offset:ie,wrapper:fe,events:ge,openOnClick:b,positionStrategy:ye,middlewares:x,delayShow:ae,delayHide:le,float:ue,hidden:pe,noArrow:P,clickable:D,closeOnEsc:F,closeOnScroll:N,closeOnResize:I,openEvents:R,closeEvents:O,globalCloseEvents:j,imperativeModeOnly:M,style:L,position:B,isOpen:U,defaultIsOpen:V,border:z,opacity:W,arrowColor:q,setIsOpen:G,afterShow:Y,afterHide:K,activeAnchor:Ce,setActiveAnchor:e=>Ae(e),role:Q};return r.createElement(_,{...Fe})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||c({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||c({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}))},61861:(e,t,n)=>{"use strict";function r(e){return e.join(" ").trim()}n.d(t,{A:()=>r})},44106:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});const r=9,i=32;function o(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(a(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(a(t.slice(i),i>0,!1)),o.join("")}function a(e,t,n){let o=0,a=e.length;if(t){let t=e.codePointAt(o);for(;t===r||t===i;)o++,t=e.codePointAt(o)}if(n){let t=e.codePointAt(a-1);for(;t===r||t===i;)a--,t=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}},27841:(e,t,n)=>{"use strict";function r(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function t(r){const a=e[++i];let s=-1;if(r)o(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){let n;return i;function i(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const l=e.length>i.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(a,o):c instanceof Error?o(c):a(c))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t(e,...i)}}function a(e){o(null,e)}}(a,t)(...c):o(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}n.d(t,{S:()=>r})},65587:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r,YH:()=>o,fX:()=>s,sH:()=>i,zs:()=>a});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function a(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError},39466:e=>{"use strict";e.exports=JSON.parse('[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03bc"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xe0"],[193,1,"\xe1"],[194,1,"\xe2"],[195,1,"\xe3"],[196,1,"\xe4"],[197,1,"\xe5"],[198,1,"\xe6"],[199,1,"\xe7"],[200,1,"\xe8"],[201,1,"\xe9"],[202,1,"\xea"],[203,1,"\xeb"],[204,1,"\xec"],[205,1,"\xed"],[206,1,"\xee"],[207,1,"\xef"],[208,1,"\xf0"],[209,1,"\xf1"],[210,1,"\xf2"],[211,1,"\xf3"],[212,1,"\xf4"],[213,1,"\xf5"],[214,1,"\xf6"],[215,2],[216,1,"\xf8"],[217,1,"\xf9"],[218,1,"\xfa"],[219,1,"\xfb"],[220,1,"\xfc"],[221,1,"\xfd"],[222,1,"\xfe"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010b"],[267,2],[268,1,"\u010d"],[269,2],[270,1,"\u010f"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011b"],[283,2],[284,1,"\u011d"],[285,2],[286,1,"\u011f"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012b"],[299,2],[300,1,"\u012d"],[301,2],[302,1,"\u012f"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013a"],[314,2],[315,1,"\u013c"],[316,2],[317,1,"\u013e"],[318,2],[[319,320],1,"l\xb7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02bcn"],[330,1,"\u014b"],[331,2],[332,1,"\u014d"],[333,2],[334,1,"\u014f"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015b"],[347,2],[348,1,"\u015d"],[349,2],[350,1,"\u015f"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016b"],[363,2],[364,1,"\u016d"],[365,2],[366,1,"\u016f"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xff"],[377,1,"\u017a"],[378,2],[379,1,"\u017c"],[380,2],[381,1,"\u017e"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018c"],[[396,397],2],[398,1,"\u01dd"],[399,1,"\u0259"],[400,1,"\u025b"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026f"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01a1"],[417,2],[418,1,"\u01a3"],[419,2],[420,1,"\u01a5"],[421,2],[422,1,"\u0280"],[423,1,"\u01a8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01ad"],[429,2],[430,1,"\u0288"],[431,1,"\u01b0"],[432,2],[433,1,"\u028a"],[434,1,"\u028b"],[435,1,"\u01b4"],[436,2],[437,1,"\u01b6"],[438,2],[439,1,"\u0292"],[440,1,"\u01b9"],[[441,443],2],[444,1,"\u01bd"],[[445,451],2],[[452,454],1,"d\u017e"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01ce"],[462,2],[463,1,"\u01d0"],[464,2],[465,1,"\u01d2"],[466,2],[467,1,"\u01d4"],[468,2],[469,1,"\u01d6"],[470,2],[471,1,"\u01d8"],[472,2],[473,1,"\u01da"],[474,2],[475,1,"\u01dc"],[[476,477],2],[478,1,"\u01df"],[479,2],[480,1,"\u01e1"],[481,2],[482,1,"\u01e3"],[483,2],[484,1,"\u01e5"],[485,2],[486,1,"\u01e7"],[487,2],[488,1,"\u01e9"],[489,2],[490,1,"\u01eb"],[491,2],[492,1,"\u01ed"],[493,2],[494,1,"\u01ef"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01f5"],[501,2],[502,1,"\u0195"],[503,1,"\u01bf"],[504,1,"\u01f9"],[505,2],[506,1,"\u01fb"],[507,2],[508,1,"\u01fd"],[509,2],[510,1,"\u01ff"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020b"],[523,2],[524,1,"\u020d"],[525,2],[526,1,"\u020f"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021b"],[539,2],[540,1,"\u021d"],[541,2],[542,1,"\u021f"],[543,2],[544,1,"\u019e"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022b"],[555,2],[556,1,"\u022d"],[557,2],[558,1,"\u022f"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2c65"],[571,1,"\u023c"],[572,2],[573,1,"\u019a"],[574,1,"\u2c66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028c"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024b"],[587,2],[588,1,"\u024d"],[589,2],[590,1,"\u024f"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027b"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030a"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030b"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03b9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02b9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03b9"],[[891,893],2],[894,5,";"],[895,1,"\u03f3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03ac"],[903,1,"\xb7"],[904,1,"\u03ad"],[905,1,"\u03ae"],[906,1,"\u03af"],[907,3],[908,1,"\u03cc"],[909,3],[910,1,"\u03cd"],[911,1,"\u03ce"],[912,2],[913,1,"\u03b1"],[914,1,"\u03b2"],[915,1,"\u03b3"],[916,1,"\u03b4"],[917,1,"\u03b5"],[918,1,"\u03b6"],[919,1,"\u03b7"],[920,1,"\u03b8"],[921,1,"\u03b9"],[922,1,"\u03ba"],[923,1,"\u03bb"],[924,1,"\u03bc"],[925,1,"\u03bd"],[926,1,"\u03be"],[927,1,"\u03bf"],[928,1,"\u03c0"],[929,1,"\u03c1"],[930,3],[931,1,"\u03c3"],[932,1,"\u03c4"],[933,1,"\u03c5"],[934,1,"\u03c6"],[935,1,"\u03c7"],[936,1,"\u03c8"],[937,1,"\u03c9"],[938,1,"\u03ca"],[939,1,"\u03cb"],[[940,961],2],[962,6,"\u03c3"],[[963,974],2],[975,1,"\u03d7"],[976,1,"\u03b2"],[977,1,"\u03b8"],[978,1,"\u03c5"],[979,1,"\u03cd"],[980,1,"\u03cb"],[981,1,"\u03c6"],[982,1,"\u03c0"],[983,2],[984,1,"\u03d9"],[985,2],[986,1,"\u03db"],[987,2],[988,1,"\u03dd"],[989,2],[990,1,"\u03df"],[991,2],[992,1,"\u03e1"],[993,2],[994,1,"\u03e3"],[995,2],[996,1,"\u03e5"],[997,2],[998,1,"\u03e7"],[999,2],[1000,1,"\u03e9"],[1001,2],[1002,1,"\u03eb"],[1003,2],[1004,1,"\u03ed"],[1005,2],[1006,1,"\u03ef"],[1007,2],[1008,1,"\u03ba"],[1009,1,"\u03c1"],[1010,1,"\u03c3"],[1011,2],[1012,1,"\u03b8"],[1013,1,"\u03b5"],[1014,2],[1015,1,"\u03f8"],[1016,2],[1017,1,"\u03c3"],[1018,1,"\u03fb"],[1019,2],[1020,2],[1021,1,"\u037b"],[1022,1,"\u037c"],[1023,1,"\u037d"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045a"],[1035,1,"\u045b"],[1036,1,"\u045c"],[1037,1,"\u045d"],[1038,1,"\u045e"],[1039,1,"\u045f"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043a"],[1051,1,"\u043b"],[1052,1,"\u043c"],[1053,1,"\u043d"],[1054,1,"\u043e"],[1055,1,"\u043f"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044a"],[1067,1,"\u044b"],[1068,1,"\u044c"],[1069,1,"\u044d"],[1070,1,"\u044e"],[1071,1,"\u044f"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046b"],[1131,2],[1132,1,"\u046d"],[1133,2],[1134,1,"\u046f"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047b"],[1147,2],[1148,1,"\u047d"],[1149,2],[1150,1,"\u047f"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048b"],[1163,2],[1164,1,"\u048d"],[1165,2],[1166,1,"\u048f"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049b"],[1179,2],[1180,1,"\u049d"],[1181,2],[1182,1,"\u049f"],[1183,2],[1184,1,"\u04a1"],[1185,2],[1186,1,"\u04a3"],[1187,2],[1188,1,"\u04a5"],[1189,2],[1190,1,"\u04a7"],[1191,2],[1192,1,"\u04a9"],[1193,2],[1194,1,"\u04ab"],[1195,2],[1196,1,"\u04ad"],[1197,2],[1198,1,"\u04af"],[1199,2],[1200,1,"\u04b1"],[1201,2],[1202,1,"\u04b3"],[1203,2],[1204,1,"\u04b5"],[1205,2],[1206,1,"\u04b7"],[1207,2],[1208,1,"\u04b9"],[1209,2],[1210,1,"\u04bb"],[1211,2],[1212,1,"\u04bd"],[1213,2],[1214,1,"\u04bf"],[1215,2],[1216,3],[1217,1,"\u04c2"],[1218,2],[1219,1,"\u04c4"],[1220,2],[1221,1,"\u04c6"],[1222,2],[1223,1,"\u04c8"],[1224,2],[1225,1,"\u04ca"],[1226,2],[1227,1,"\u04cc"],[1228,2],[1229,1,"\u04ce"],[1230,2],[1231,2],[1232,1,"\u04d1"],[1233,2],[1234,1,"\u04d3"],[1235,2],[1236,1,"\u04d5"],[1237,2],[1238,1,"\u04d7"],[1239,2],[1240,1,"\u04d9"],[1241,2],[1242,1,"\u04db"],[1243,2],[1244,1,"\u04dd"],[1245,2],[1246,1,"\u04df"],[1247,2],[1248,1,"\u04e1"],[1249,2],[1250,1,"\u04e3"],[1251,2],[1252,1,"\u04e5"],[1253,2],[1254,1,"\u04e7"],[1255,2],[1256,1,"\u04e9"],[1257,2],[1258,1,"\u04eb"],[1259,2],[1260,1,"\u04ed"],[1261,2],[1262,1,"\u04ef"],[1263,2],[1264,1,"\u04f1"],[1265,2],[1266,1,"\u04f3"],[1267,2],[1268,1,"\u04f5"],[1269,2],[1270,1,"\u04f7"],[1271,2],[1272,1,"\u04f9"],[1273,2],[1274,1,"\u04fb"],[1275,2],[1276,1,"\u04fd"],[1277,2],[1278,1,"\u04ff"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050b"],[1291,2],[1292,1,"\u050d"],[1293,2],[1294,1,"\u050f"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051b"],[1307,2],[1308,1,"\u051d"],[1309,2],[1310,1,"\u051f"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052b"],[1323,2],[1324,1,"\u052d"],[1325,2],[1326,1,"\u052f"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056a"],[1339,1,"\u056b"],[1340,1,"\u056c"],[1341,1,"\u056d"],[1342,1,"\u056e"],[1343,1,"\u056f"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057a"],[1355,1,"\u057b"],[1356,1,"\u057c"],[1357,1,"\u057d"],[1358,1,"\u057e"],[1359,1,"\u057f"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06c7\u0674"],[1656,1,"\u064a\u0674"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"\u0915\u093c"],[2393,1,"\u0916\u093c"],[2394,1,"\u0917\u093c"],[2395,1,"\u091c\u093c"],[2396,1,"\u0921\u093c"],[2397,1,"\u0922\u093c"],[2398,1,"\u092b\u093c"],[2399,1,"\u092f\u093c"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"\u09a1\u09bc"],[2525,1,"\u09a2\u09bc"],[2526,3],[2527,1,"\u09af\u09bc"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"\u0a32\u0a3c"],[2612,3],[2613,2],[2614,1,"\u0a38\u0a3c"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"\u0a16\u0a3c"],[2650,1,"\u0a17\u0a3c"],[2651,1,"\u0a1c\u0a3c"],[2652,2],[2653,3],[2654,1,"\u0a2b\u0a3c"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"\u0b21\u0b3c"],[2909,1,"\u0b22\u0b3c"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[3315,2],[[3316,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"\u0e4d\u0e32"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"\u0ecd\u0eb2"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[3790,2],[3791,3],[[3792,3801],2],[[3802,3803],3],[3804,1,"\u0eab\u0e99"],[3805,1,"\u0eab\u0ea1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0f0b"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"\u0f42\u0fb7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0f4c\u0fb7"],[[3918,3921],2],[3922,1,"\u0f51\u0fb7"],[[3923,3926],2],[3927,1,"\u0f56\u0fb7"],[[3928,3931],2],[3932,1,"\u0f5b\u0fb7"],[[3933,3944],2],[3945,1,"\u0f40\u0fb5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0f71\u0f72"],[3956,2],[3957,1,"\u0f71\u0f74"],[3958,1,"\u0fb2\u0f80"],[3959,1,"\u0fb2\u0f71\u0f80"],[3960,1,"\u0fb3\u0f80"],[3961,1,"\u0fb3\u0f71\u0f80"],[[3962,3968],2],[3969,1,"\u0f71\u0f80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0f92\u0fb7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0f9c\u0fb7"],[[3998,4001],2],[4002,1,"\u0fa1\u0fb7"],[[4003,4006],2],[4007,1,"\u0fa6\u0fb7"],[[4008,4011],2],[4012,1,"\u0fab\u0fb7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0f90\u0fb5"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"\u2d27"],[[4296,4300],3],[4301,1,"\u2d2d"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10dc"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"\u13f0"],[5113,1,"\u13f1"],[5114,1,"\u13f2"],[5115,1,"\u13f3"],[5116,1,"\u13f4"],[5117,1,"\u13f5"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043e"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044a"],[7303,1,"\u0463"],[7304,1,"\ua64b"],[[7305,7311],3],[7312,1,"\u10d0"],[7313,1,"\u10d1"],[7314,1,"\u10d2"],[7315,1,"\u10d3"],[7316,1,"\u10d4"],[7317,1,"\u10d5"],[7318,1,"\u10d6"],[7319,1,"\u10d7"],[7320,1,"\u10d8"],[7321,1,"\u10d9"],[7322,1,"\u10da"],[7323,1,"\u10db"],[7324,1,"\u10dc"],[7325,1,"\u10dd"],[7326,1,"\u10de"],[7327,1,"\u10df"],[7328,1,"\u10e0"],[7329,1,"\u10e1"],[7330,1,"\u10e2"],[7331,1,"\u10e3"],[7332,1,"\u10e4"],[7333,1,"\u10e5"],[7334,1,"\u10e6"],[7335,1,"\u10e7"],[7336,1,"\u10e8"],[7337,1,"\u10e9"],[7338,1,"\u10ea"],[7339,1,"\u10eb"],[7340,1,"\u10ec"],[7341,1,"\u10ed"],[7342,1,"\u10ee"],[7343,1,"\u10ef"],[7344,1,"\u10f0"],[7345,1,"\u10f1"],[7346,1,"\u10f2"],[7347,1,"\u10f3"],[7348,1,"\u10f4"],[7349,1,"\u10f5"],[7350,1,"\u10f6"],[7351,1,"\u10f7"],[7352,1,"\u10f8"],[7353,1,"\u10f9"],[7354,1,"\u10fa"],[[7355,7356],3],[7357,1,"\u10fd"],[7358,1,"\u10fe"],[7359,1,"\u10ff"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"\xe6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01dd"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1d02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025b"],[7500,1,"\u025c"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014b"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1d16"],[7509,1,"\u1d17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1d1d"],[7514,1,"\u026f"],[7515,1,"v"],[7516,1,"\u1d25"],[7517,1,"\u03b2"],[7518,1,"\u03b3"],[7519,1,"\u03b4"],[7520,1,"\u03c6"],[7521,1,"\u03c7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03b2"],[7527,1,"\u03b3"],[7528,1,"\u03c1"],[7529,1,"\u03c6"],[7530,1,"\u03c7"],[7531,2],[[7532,7543],2],[7544,1,"\u043d"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xf0"],[7583,1,"\u025c"],[7584,1,"f"],[7585,1,"\u025f"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026a"],[7591,1,"\u1d7b"],[7592,1,"\u029d"],[7593,1,"\u026d"],[7594,1,"\u1d85"],[7595,1,"\u029f"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01ab"],[7606,1,"\u0289"],[7607,1,"\u028a"],[7608,1,"\u1d1c"],[7609,1,"\u028b"],[7610,1,"\u028c"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03b8"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"\u1e01"],[7681,2],[7682,1,"\u1e03"],[7683,2],[7684,1,"\u1e05"],[7685,2],[7686,1,"\u1e07"],[7687,2],[7688,1,"\u1e09"],[7689,2],[7690,1,"\u1e0b"],[7691,2],[7692,1,"\u1e0d"],[7693,2],[7694,1,"\u1e0f"],[7695,2],[7696,1,"\u1e11"],[7697,2],[7698,1,"\u1e13"],[7699,2],[7700,1,"\u1e15"],[7701,2],[7702,1,"\u1e17"],[7703,2],[7704,1,"\u1e19"],[7705,2],[7706,1,"\u1e1b"],[7707,2],[7708,1,"\u1e1d"],[7709,2],[7710,1,"\u1e1f"],[7711,2],[7712,1,"\u1e21"],[7713,2],[7714,1,"\u1e23"],[7715,2],[7716,1,"\u1e25"],[7717,2],[7718,1,"\u1e27"],[7719,2],[7720,1,"\u1e29"],[7721,2],[7722,1,"\u1e2b"],[7723,2],[7724,1,"\u1e2d"],[7725,2],[7726,1,"\u1e2f"],[7727,2],[7728,1,"\u1e31"],[7729,2],[7730,1,"\u1e33"],[7731,2],[7732,1,"\u1e35"],[7733,2],[7734,1,"\u1e37"],[7735,2],[7736,1,"\u1e39"],[7737,2],[7738,1,"\u1e3b"],[7739,2],[7740,1,"\u1e3d"],[7741,2],[7742,1,"\u1e3f"],[7743,2],[7744,1,"\u1e41"],[7745,2],[7746,1,"\u1e43"],[7747,2],[7748,1,"\u1e45"],[7749,2],[7750,1,"\u1e47"],[7751,2],[7752,1,"\u1e49"],[7753,2],[7754,1,"\u1e4b"],[7755,2],[7756,1,"\u1e4d"],[7757,2],[7758,1,"\u1e4f"],[7759,2],[7760,1,"\u1e51"],[7761,2],[7762,1,"\u1e53"],[7763,2],[7764,1,"\u1e55"],[7765,2],[7766,1,"\u1e57"],[7767,2],[7768,1,"\u1e59"],[7769,2],[7770,1,"\u1e5b"],[7771,2],[7772,1,"\u1e5d"],[7773,2],[7774,1,"\u1e5f"],[7775,2],[7776,1,"\u1e61"],[7777,2],[7778,1,"\u1e63"],[7779,2],[7780,1,"\u1e65"],[7781,2],[7782,1,"\u1e67"],[7783,2],[7784,1,"\u1e69"],[7785,2],[7786,1,"\u1e6b"],[7787,2],[7788,1,"\u1e6d"],[7789,2],[7790,1,"\u1e6f"],[7791,2],[7792,1,"\u1e71"],[7793,2],[7794,1,"\u1e73"],[7795,2],[7796,1,"\u1e75"],[7797,2],[7798,1,"\u1e77"],[7799,2],[7800,1,"\u1e79"],[7801,2],[7802,1,"\u1e7b"],[7803,2],[7804,1,"\u1e7d"],[7805,2],[7806,1,"\u1e7f"],[7807,2],[7808,1,"\u1e81"],[7809,2],[7810,1,"\u1e83"],[7811,2],[7812,1,"\u1e85"],[7813,2],[7814,1,"\u1e87"],[7815,2],[7816,1,"\u1e89"],[7817,2],[7818,1,"\u1e8b"],[7819,2],[7820,1,"\u1e8d"],[7821,2],[7822,1,"\u1e8f"],[7823,2],[7824,1,"\u1e91"],[7825,2],[7826,1,"\u1e93"],[7827,2],[7828,1,"\u1e95"],[[7829,7833],2],[7834,1,"a\u02be"],[7835,1,"\u1e61"],[[7836,7837],2],[7838,1,"\xdf"],[7839,2],[7840,1,"\u1ea1"],[7841,2],[7842,1,"\u1ea3"],[7843,2],[7844,1,"\u1ea5"],[7845,2],[7846,1,"\u1ea7"],[7847,2],[7848,1,"\u1ea9"],[7849,2],[7850,1,"\u1eab"],[7851,2],[7852,1,"\u1ead"],[7853,2],[7854,1,"\u1eaf"],[7855,2],[7856,1,"\u1eb1"],[7857,2],[7858,1,"\u1eb3"],[7859,2],[7860,1,"\u1eb5"],[7861,2],[7862,1,"\u1eb7"],[7863,2],[7864,1,"\u1eb9"],[7865,2],[7866,1,"\u1ebb"],[7867,2],[7868,1,"\u1ebd"],[7869,2],[7870,1,"\u1ebf"],[7871,2],[7872,1,"\u1ec1"],[7873,2],[7874,1,"\u1ec3"],[7875,2],[7876,1,"\u1ec5"],[7877,2],[7878,1,"\u1ec7"],[7879,2],[7880,1,"\u1ec9"],[7881,2],[7882,1,"\u1ecb"],[7883,2],[7884,1,"\u1ecd"],[7885,2],[7886,1,"\u1ecf"],[7887,2],[7888,1,"\u1ed1"],[7889,2],[7890,1,"\u1ed3"],[7891,2],[7892,1,"\u1ed5"],[7893,2],[7894,1,"\u1ed7"],[7895,2],[7896,1,"\u1ed9"],[7897,2],[7898,1,"\u1edb"],[7899,2],[7900,1,"\u1edd"],[7901,2],[7902,1,"\u1edf"],[7903,2],[7904,1,"\u1ee1"],[7905,2],[7906,1,"\u1ee3"],[7907,2],[7908,1,"\u1ee5"],[7909,2],[7910,1,"\u1ee7"],[7911,2],[7912,1,"\u1ee9"],[7913,2],[7914,1,"\u1eeb"],[7915,2],[7916,1,"\u1eed"],[7917,2],[7918,1,"\u1eef"],[7919,2],[7920,1,"\u1ef1"],[7921,2],[7922,1,"\u1ef3"],[7923,2],[7924,1,"\u1ef5"],[7925,2],[7926,1,"\u1ef7"],[7927,2],[7928,1,"\u1ef9"],[7929,2],[7930,1,"\u1efb"],[7931,2],[7932,1,"\u1efd"],[7933,2],[7934,1,"\u1eff"],[7935,2],[[7936,7943],2],[7944,1,"\u1f00"],[7945,1,"\u1f01"],[7946,1,"\u1f02"],[7947,1,"\u1f03"],[7948,1,"\u1f04"],[7949,1,"\u1f05"],[7950,1,"\u1f06"],[7951,1,"\u1f07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1f10"],[7961,1,"\u1f11"],[7962,1,"\u1f12"],[7963,1,"\u1f13"],[7964,1,"\u1f14"],[7965,1,"\u1f15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1f20"],[7977,1,"\u1f21"],[7978,1,"\u1f22"],[7979,1,"\u1f23"],[7980,1,"\u1f24"],[7981,1,"\u1f25"],[7982,1,"\u1f26"],[7983,1,"\u1f27"],[[7984,7991],2],[7992,1,"\u1f30"],[7993,1,"\u1f31"],[7994,1,"\u1f32"],[7995,1,"\u1f33"],[7996,1,"\u1f34"],[7997,1,"\u1f35"],[7998,1,"\u1f36"],[7999,1,"\u1f37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1f40"],[8009,1,"\u1f41"],[8010,1,"\u1f42"],[8011,1,"\u1f43"],[8012,1,"\u1f44"],[8013,1,"\u1f45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1f51"],[8026,3],[8027,1,"\u1f53"],[8028,3],[8029,1,"\u1f55"],[8030,3],[8031,1,"\u1f57"],[[8032,8039],2],[8040,1,"\u1f60"],[8041,1,"\u1f61"],[8042,1,"\u1f62"],[8043,1,"\u1f63"],[8044,1,"\u1f64"],[8045,1,"\u1f65"],[8046,1,"\u1f66"],[8047,1,"\u1f67"],[8048,2],[8049,1,"\u03ac"],[8050,2],[8051,1,"\u03ad"],[8052,2],[8053,1,"\u03ae"],[8054,2],[8055,1,"\u03af"],[8056,2],[8057,1,"\u03cc"],[8058,2],[8059,1,"\u03cd"],[8060,2],[8061,1,"\u03ce"],[[8062,8063],3],[8064,1,"\u1f00\u03b9"],[8065,1,"\u1f01\u03b9"],[8066,1,"\u1f02\u03b9"],[8067,1,"\u1f03\u03b9"],[8068,1,"\u1f04\u03b9"],[8069,1,"\u1f05\u03b9"],[8070,1,"\u1f06\u03b9"],[8071,1,"\u1f07\u03b9"],[8072,1,"\u1f00\u03b9"],[8073,1,"\u1f01\u03b9"],[8074,1,"\u1f02\u03b9"],[8075,1,"\u1f03\u03b9"],[8076,1,"\u1f04\u03b9"],[8077,1,"\u1f05\u03b9"],[8078,1,"\u1f06\u03b9"],[8079,1,"\u1f07\u03b9"],[8080,1,"\u1f20\u03b9"],[8081,1,"\u1f21\u03b9"],[8082,1,"\u1f22\u03b9"],[8083,1,"\u1f23\u03b9"],[8084,1,"\u1f24\u03b9"],[8085,1,"\u1f25\u03b9"],[8086,1,"\u1f26\u03b9"],[8087,1,"\u1f27\u03b9"],[8088,1,"\u1f20\u03b9"],[8089,1,"\u1f21\u03b9"],[8090,1,"\u1f22\u03b9"],[8091,1,"\u1f23\u03b9"],[8092,1,"\u1f24\u03b9"],[8093,1,"\u1f25\u03b9"],[8094,1,"\u1f26\u03b9"],[8095,1,"\u1f27\u03b9"],[8096,1,"\u1f60\u03b9"],[8097,1,"\u1f61\u03b9"],[8098,1,"\u1f62\u03b9"],[8099,1,"\u1f63\u03b9"],[8100,1,"\u1f64\u03b9"],[8101,1,"\u1f65\u03b9"],[8102,1,"\u1f66\u03b9"],[8103,1,"\u1f67\u03b9"],[8104,1,"\u1f60\u03b9"],[8105,1,"\u1f61\u03b9"],[8106,1,"\u1f62\u03b9"],[8107,1,"\u1f63\u03b9"],[8108,1,"\u1f64\u03b9"],[8109,1,"\u1f65\u03b9"],[8110,1,"\u1f66\u03b9"],[8111,1,"\u1f67\u03b9"],[[8112,8113],2],[8114,1,"\u1f70\u03b9"],[8115,1,"\u03b1\u03b9"],[8116,1,"\u03ac\u03b9"],[8117,3],[8118,2],[8119,1,"\u1fb6\u03b9"],[8120,1,"\u1fb0"],[8121,1,"\u1fb1"],[8122,1,"\u1f70"],[8123,1,"\u03ac"],[8124,1,"\u03b1\u03b9"],[8125,5," \u0313"],[8126,1,"\u03b9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1f74\u03b9"],[8131,1,"\u03b7\u03b9"],[8132,1,"\u03ae\u03b9"],[8133,3],[8134,2],[8135,1,"\u1fc6\u03b9"],[8136,1,"\u1f72"],[8137,1,"\u03ad"],[8138,1,"\u1f74"],[8139,1,"\u03ae"],[8140,1,"\u03b7\u03b9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1fd0"],[8153,1,"\u1fd1"],[8154,1,"\u1f76"],[8155,1,"\u03af"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03b0"],[[8164,8167],2],[8168,1,"\u1fe0"],[8169,1,"\u1fe1"],[8170,1,"\u1f7a"],[8171,1,"\u03cd"],[8172,1,"\u1fe5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1f7c\u03b9"],[8179,1,"\u03c9\u03b9"],[8180,1,"\u03ce\u03b9"],[8181,3],[8182,2],[8183,1,"\u1ff6\u03b9"],[8184,1,"\u1f78"],[8185,1,"\u03cc"],[8186,1,"\u1f7c"],[8187,1,"\u03ce"],[8188,1,"\u03c9\u03b9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"\u2212"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"\xb0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025b"],[8456,2],[8457,1,"\xb0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"\u03c9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xe5"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"\u05d0"],[8502,1,"\u05d1"],[8503,1,"\u05d2"],[8504,1,"\u05d3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03c0"],[[8509,8510],1,"\u03b3"],[8511,1,"\u03c0"],[8512,1,"\u2211"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222b\u222b"],[8749,1,"\u222b\u222b\u222b"],[8750,2],[8751,1,"\u222e\u222e"],[8752,1,"\u222e\u222e\u222e"],[[8753,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"\u3008"],[9002,1,"\u3009"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"\u222b\u222b\u222b\u222b"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2add\u0338"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"\u2c30"],[11265,1,"\u2c31"],[11266,1,"\u2c32"],[11267,1,"\u2c33"],[11268,1,"\u2c34"],[11269,1,"\u2c35"],[11270,1,"\u2c36"],[11271,1,"\u2c37"],[11272,1,"\u2c38"],[11273,1,"\u2c39"],[11274,1,"\u2c3a"],[11275,1,"\u2c3b"],[11276,1,"\u2c3c"],[11277,1,"\u2c3d"],[11278,1,"\u2c3e"],[11279,1,"\u2c3f"],[11280,1,"\u2c40"],[11281,1,"\u2c41"],[11282,1,"\u2c42"],[11283,1,"\u2c43"],[11284,1,"\u2c44"],[11285,1,"\u2c45"],[11286,1,"\u2c46"],[11287,1,"\u2c47"],[11288,1,"\u2c48"],[11289,1,"\u2c49"],[11290,1,"\u2c4a"],[11291,1,"\u2c4b"],[11292,1,"\u2c4c"],[11293,1,"\u2c4d"],[11294,1,"\u2c4e"],[11295,1,"\u2c4f"],[11296,1,"\u2c50"],[11297,1,"\u2c51"],[11298,1,"\u2c52"],[11299,1,"\u2c53"],[11300,1,"\u2c54"],[11301,1,"\u2c55"],[11302,1,"\u2c56"],[11303,1,"\u2c57"],[11304,1,"\u2c58"],[11305,1,"\u2c59"],[11306,1,"\u2c5a"],[11307,1,"\u2c5b"],[11308,1,"\u2c5c"],[11309,1,"\u2c5d"],[11310,1,"\u2c5e"],[11311,1,"\u2c5f"],[[11312,11358],2],[11359,2],[11360,1,"\u2c61"],[11361,2],[11362,1,"\u026b"],[11363,1,"\u1d7d"],[11364,1,"\u027d"],[[11365,11366],2],[11367,1,"\u2c68"],[11368,2],[11369,1,"\u2c6a"],[11370,2],[11371,1,"\u2c6c"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2c73"],[11379,2],[11380,2],[11381,1,"\u2c76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023f"],[11391,1,"\u0240"],[11392,1,"\u2c81"],[11393,2],[11394,1,"\u2c83"],[11395,2],[11396,1,"\u2c85"],[11397,2],[11398,1,"\u2c87"],[11399,2],[11400,1,"\u2c89"],[11401,2],[11402,1,"\u2c8b"],[11403,2],[11404,1,"\u2c8d"],[11405,2],[11406,1,"\u2c8f"],[11407,2],[11408,1,"\u2c91"],[11409,2],[11410,1,"\u2c93"],[11411,2],[11412,1,"\u2c95"],[11413,2],[11414,1,"\u2c97"],[11415,2],[11416,1,"\u2c99"],[11417,2],[11418,1,"\u2c9b"],[11419,2],[11420,1,"\u2c9d"],[11421,2],[11422,1,"\u2c9f"],[11423,2],[11424,1,"\u2ca1"],[11425,2],[11426,1,"\u2ca3"],[11427,2],[11428,1,"\u2ca5"],[11429,2],[11430,1,"\u2ca7"],[11431,2],[11432,1,"\u2ca9"],[11433,2],[11434,1,"\u2cab"],[11435,2],[11436,1,"\u2cad"],[11437,2],[11438,1,"\u2caf"],[11439,2],[11440,1,"\u2cb1"],[11441,2],[11442,1,"\u2cb3"],[11443,2],[11444,1,"\u2cb5"],[11445,2],[11446,1,"\u2cb7"],[11447,2],[11448,1,"\u2cb9"],[11449,2],[11450,1,"\u2cbb"],[11451,2],[11452,1,"\u2cbd"],[11453,2],[11454,1,"\u2cbf"],[11455,2],[11456,1,"\u2cc1"],[11457,2],[11458,1,"\u2cc3"],[11459,2],[11460,1,"\u2cc5"],[11461,2],[11462,1,"\u2cc7"],[11463,2],[11464,1,"\u2cc9"],[11465,2],[11466,1,"\u2ccb"],[11467,2],[11468,1,"\u2ccd"],[11469,2],[11470,1,"\u2ccf"],[11471,2],[11472,1,"\u2cd1"],[11473,2],[11474,1,"\u2cd3"],[11475,2],[11476,1,"\u2cd5"],[11477,2],[11478,1,"\u2cd7"],[11479,2],[11480,1,"\u2cd9"],[11481,2],[11482,1,"\u2cdb"],[11483,2],[11484,1,"\u2cdd"],[11485,2],[11486,1,"\u2cdf"],[11487,2],[11488,1,"\u2ce1"],[11489,2],[11490,1,"\u2ce3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2cec"],[11500,2],[11501,1,"\u2cee"],[[11502,11505],2],[11506,1,"\u2cf3"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"\u2d61"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"\u6bcd"],[[11936,12018],2],[12019,1,"\u9f9f"],[[12020,12031],3],[12032,1,"\u4e00"],[12033,1,"\u4e28"],[12034,1,"\u4e36"],[12035,1,"\u4e3f"],[12036,1,"\u4e59"],[12037,1,"\u4e85"],[12038,1,"\u4e8c"],[12039,1,"\u4ea0"],[12040,1,"\u4eba"],[12041,1,"\u513f"],[12042,1,"\u5165"],[12043,1,"\u516b"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51ab"],[12047,1,"\u51e0"],[12048,1,"\u51f5"],[12049,1,"\u5200"],[12050,1,"\u529b"],[12051,1,"\u52f9"],[12052,1,"\u5315"],[12053,1,"\u531a"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535c"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53b6"],[12060,1,"\u53c8"],[12061,1,"\u53e3"],[12062,1,"\u56d7"],[12063,1,"\u571f"],[12064,1,"\u58eb"],[12065,1,"\u5902"],[12066,1,"\u590a"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5b50"],[12071,1,"\u5b80"],[12072,1,"\u5bf8"],[12073,1,"\u5c0f"],[12074,1,"\u5c22"],[12075,1,"\u5c38"],[12076,1,"\u5c6e"],[12077,1,"\u5c71"],[12078,1,"\u5ddb"],[12079,1,"\u5de5"],[12080,1,"\u5df1"],[12081,1,"\u5dfe"],[12082,1,"\u5e72"],[12083,1,"\u5e7a"],[12084,1,"\u5e7f"],[12085,1,"\u5ef4"],[12086,1,"\u5efe"],[12087,1,"\u5f0b"],[12088,1,"\u5f13"],[12089,1,"\u5f50"],[12090,1,"\u5f61"],[12091,1,"\u5f73"],[12092,1,"\u5fc3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624b"],[12096,1,"\u652f"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65a4"],[12101,1,"\u65b9"],[12102,1,"\u65e0"],[12103,1,"\u65e5"],[12104,1,"\u66f0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6b20"],[12108,1,"\u6b62"],[12109,1,"\u6b79"],[12110,1,"\u6bb3"],[12111,1,"\u6bcb"],[12112,1,"\u6bd4"],[12113,1,"\u6bdb"],[12114,1,"\u6c0f"],[12115,1,"\u6c14"],[12116,1,"\u6c34"],[12117,1,"\u706b"],[12118,1,"\u722a"],[12119,1,"\u7236"],[12120,1,"\u723b"],[12121,1,"\u723f"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725b"],[12125,1,"\u72ac"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74dc"],[12129,1,"\u74e6"],[12130,1,"\u7518"],[12131,1,"\u751f"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758b"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767d"],[12138,1,"\u76ae"],[12139,1,"\u76bf"],[12140,1,"\u76ee"],[12141,1,"\u77db"],[12142,1,"\u77e2"],[12143,1,"\u77f3"],[12144,1,"\u793a"],[12145,1,"\u79b8"],[12146,1,"\u79be"],[12147,1,"\u7a74"],[12148,1,"\u7acb"],[12149,1,"\u7af9"],[12150,1,"\u7c73"],[12151,1,"\u7cf8"],[12152,1,"\u7f36"],[12153,1,"\u7f51"],[12154,1,"\u7f8a"],[12155,1,"\u7fbd"],[12156,1,"\u8001"],[12157,1,"\u800c"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807f"],[12161,1,"\u8089"],[12162,1,"\u81e3"],[12163,1,"\u81ea"],[12164,1,"\u81f3"],[12165,1,"\u81fc"],[12166,1,"\u820c"],[12167,1,"\u821b"],[12168,1,"\u821f"],[12169,1,"\u826e"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864d"],[12173,1,"\u866b"],[12174,1,"\u8840"],[12175,1,"\u884c"],[12176,1,"\u8863"],[12177,1,"\u897e"],[12178,1,"\u898b"],[12179,1,"\u89d2"],[12180,1,"\u8a00"],[12181,1,"\u8c37"],[12182,1,"\u8c46"],[12183,1,"\u8c55"],[12184,1,"\u8c78"],[12185,1,"\u8c9d"],[12186,1,"\u8d64"],[12187,1,"\u8d70"],[12188,1,"\u8db3"],[12189,1,"\u8eab"],[12190,1,"\u8eca"],[12191,1,"\u8f9b"],[12192,1,"\u8fb0"],[12193,1,"\u8fb5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91c6"],[12197,1,"\u91cc"],[12198,1,"\u91d1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961c"],[12202,1,"\u96b6"],[12203,1,"\u96b9"],[12204,1,"\u96e8"],[12205,1,"\u9751"],[12206,1,"\u975e"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97cb"],[12210,1,"\u97ed"],[12211,1,"\u97f3"],[12212,1,"\u9801"],[12213,1,"\u98a8"],[12214,1,"\u98db"],[12215,1,"\u98df"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99ac"],[12219,1,"\u9aa8"],[12220,1,"\u9ad8"],[12221,1,"\u9adf"],[12222,1,"\u9b25"],[12223,1,"\u9b2f"],[12224,1,"\u9b32"],[12225,1,"\u9b3c"],[12226,1,"\u9b5a"],[12227,1,"\u9ce5"],[12228,1,"\u9e75"],[12229,1,"\u9e7f"],[12230,1,"\u9ea5"],[12231,1,"\u9ebb"],[12232,1,"\u9ec3"],[12233,1,"\u9ecd"],[12234,1,"\u9ed1"],[12235,1,"\u9ef9"],[12236,1,"\u9efd"],[12237,1,"\u9f0e"],[12238,1,"\u9f13"],[12239,1,"\u9f20"],[12240,1,"\u9f3b"],[12241,1,"\u9f4a"],[12242,1,"\u9f52"],[12243,1,"\u9f8d"],[12244,1,"\u9f9c"],[12245,1,"\u9fa0"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," \u3099"],[12444,5," \u309a"],[[12445,12446],2],[12447,1,"\u3088\u308a"],[12448,2],[[12449,12542],2],[12543,1,"\u30b3\u30c8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11aa"],[12596,1,"\u1102"],[12597,1,"\u11ac"],[12598,1,"\u11ad"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11b0"],[12603,1,"\u11b1"],[12604,1,"\u11b2"],[12605,1,"\u11b3"],[12606,1,"\u11b4"],[12607,1,"\u11b5"],[12608,1,"\u111a"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110a"],[12615,1,"\u110b"],[12616,1,"\u110c"],[12617,1,"\u110d"],[12618,1,"\u110e"],[12619,1,"\u110f"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116a"],[12633,1,"\u116b"],[12634,1,"\u116c"],[12635,1,"\u116d"],[12636,1,"\u116e"],[12637,1,"\u116f"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11c7"],[12648,1,"\u11c8"],[12649,1,"\u11cc"],[12650,1,"\u11ce"],[12651,1,"\u11d3"],[12652,1,"\u11d7"],[12653,1,"\u11d9"],[12654,1,"\u111c"],[12655,1,"\u11dd"],[12656,1,"\u11df"],[12657,1,"\u111d"],[12658,1,"\u111e"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112b"],[12665,1,"\u112c"],[12666,1,"\u112d"],[12667,1,"\u112e"],[12668,1,"\u112f"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114c"],[12674,1,"\u11f1"],[12675,1,"\u11f2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119e"],[12686,1,"\u11a1"],[12687,3],[[12688,12689],2],[12690,1,"\u4e00"],[12691,1,"\u4e8c"],[12692,1,"\u4e09"],[12693,1,"\u56db"],[12694,1,"\u4e0a"],[12695,1,"\u4e2d"],[12696,1,"\u4e0b"],[12697,1,"\u7532"],[12698,1,"\u4e59"],[12699,1,"\u4e19"],[12700,1,"\u4e01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4eba"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12782],3],[12783,3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110b)"],[12808,5,"(\u110c)"],[12809,5,"(\u110e)"],[12810,5,"(\u110f)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uac00)"],[12815,5,"(\ub098)"],[12816,5,"(\ub2e4)"],[12817,5,"(\ub77c)"],[12818,5,"(\ub9c8)"],[12819,5,"(\ubc14)"],[12820,5,"(\uc0ac)"],[12821,5,"(\uc544)"],[12822,5,"(\uc790)"],[12823,5,"(\ucc28)"],[12824,5,"(\uce74)"],[12825,5,"(\ud0c0)"],[12826,5,"(\ud30c)"],[12827,5,"(\ud558)"],[12828,5,"(\uc8fc)"],[12829,5,"(\uc624\uc804)"],[12830,5,"(\uc624\ud6c4)"],[12831,3],[12832,5,"(\u4e00)"],[12833,5,"(\u4e8c)"],[12834,5,"(\u4e09)"],[12835,5,"(\u56db)"],[12836,5,"(\u4e94)"],[12837,5,"(\u516d)"],[12838,5,"(\u4e03)"],[12839,5,"(\u516b)"],[12840,5,"(\u4e5d)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706b)"],[12844,5,"(\u6c34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91d1)"],[12847,5,"(\u571f)"],[12848,5,"(\u65e5)"],[12849,5,"(\u682a)"],[12850,5,"(\u6709)"],[12851,5,"(\u793e)"],[12852,5,"(\u540d)"],[12853,5,"(\u7279)"],[12854,5,"(\u8ca1)"],[12855,5,"(\u795d)"],[12856,5,"(\u52b4)"],[12857,5,"(\u4ee3)"],[12858,5,"(\u547c)"],[12859,5,"(\u5b66)"],[12860,5,"(\u76e3)"],[12861,5,"(\u4f01)"],[12862,5,"(\u8cc7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796d)"],[12865,5,"(\u4f11)"],[12866,5,"(\u81ea)"],[12867,5,"(\u81f3)"],[12868,1,"\u554f"],[12869,1,"\u5e7c"],[12870,1,"\u6587"],[12871,1,"\u7b8f"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110b"],[12904,1,"\u110c"],[12905,1,"\u110e"],[12906,1,"\u110f"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uac00"],[12911,1,"\ub098"],[12912,1,"\ub2e4"],[12913,1,"\ub77c"],[12914,1,"\ub9c8"],[12915,1,"\ubc14"],[12916,1,"\uc0ac"],[12917,1,"\uc544"],[12918,1,"\uc790"],[12919,1,"\ucc28"],[12920,1,"\uce74"],[12921,1,"\ud0c0"],[12922,1,"\ud30c"],[12923,1,"\ud558"],[12924,1,"\ucc38\uace0"],[12925,1,"\uc8fc\uc758"],[12926,1,"\uc6b0"],[12927,2],[12928,1,"\u4e00"],[12929,1,"\u4e8c"],[12930,1,"\u4e09"],[12931,1,"\u56db"],[12932,1,"\u4e94"],[12933,1,"\u516d"],[12934,1,"\u4e03"],[12935,1,"\u516b"],[12936,1,"\u4e5d"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706b"],[12940,1,"\u6c34"],[12941,1,"\u6728"],[12942,1,"\u91d1"],[12943,1,"\u571f"],[12944,1,"\u65e5"],[12945,1,"\u682a"],[12946,1,"\u6709"],[12947,1,"\u793e"],[12948,1,"\u540d"],[12949,1,"\u7279"],[12950,1,"\u8ca1"],[12951,1,"\u795d"],[12952,1,"\u52b4"],[12953,1,"\u79d8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512a"],[12958,1,"\u5370"],[12959,1,"\u6ce8"],[12960,1,"\u9805"],[12961,1,"\u4f11"],[12962,1,"\u5199"],[12963,1,"\u6b63"],[12964,1,"\u4e0a"],[12965,1,"\u4e2d"],[12966,1,"\u4e0b"],[12967,1,"\u5de6"],[12968,1,"\u53f3"],[12969,1,"\u533b"],[12970,1,"\u5b97"],[12971,1,"\u5b66"],[12972,1,"\u76e3"],[12973,1,"\u4f01"],[12974,1,"\u8cc7"],[12975,1,"\u5354"],[12976,1,"\u591c"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30a2"],[13009,1,"\u30a4"],[13010,1,"\u30a6"],[13011,1,"\u30a8"],[13012,1,"\u30aa"],[13013,1,"\u30ab"],[13014,1,"\u30ad"],[13015,1,"\u30af"],[13016,1,"\u30b1"],[13017,1,"\u30b3"],[13018,1,"\u30b5"],[13019,1,"\u30b7"],[13020,1,"\u30b9"],[13021,1,"\u30bb"],[13022,1,"\u30bd"],[13023,1,"\u30bf"],[13024,1,"\u30c1"],[13025,1,"\u30c4"],[13026,1,"\u30c6"],[13027,1,"\u30c8"],[13028,1,"\u30ca"],[13029,1,"\u30cb"],[13030,1,"\u30cc"],[13031,1,"\u30cd"],[13032,1,"\u30ce"],[13033,1,"\u30cf"],[13034,1,"\u30d2"],[13035,1,"\u30d5"],[13036,1,"\u30d8"],[13037,1,"\u30db"],[13038,1,"\u30de"],[13039,1,"\u30df"],[13040,1,"\u30e0"],[13041,1,"\u30e1"],[13042,1,"\u30e2"],[13043,1,"\u30e4"],[13044,1,"\u30e6"],[13045,1,"\u30e8"],[13046,1,"\u30e9"],[13047,1,"\u30ea"],[13048,1,"\u30eb"],[13049,1,"\u30ec"],[13050,1,"\u30ed"],[13051,1,"\u30ef"],[13052,1,"\u30f0"],[13053,1,"\u30f1"],[13054,1,"\u30f2"],[13055,1,"\u4ee4\u548c"],[13056,1,"\u30a2\u30d1\u30fc\u30c8"],[13057,1,"\u30a2\u30eb\u30d5\u30a1"],[13058,1,"\u30a2\u30f3\u30da\u30a2"],[13059,1,"\u30a2\u30fc\u30eb"],[13060,1,"\u30a4\u30cb\u30f3\u30b0"],[13061,1,"\u30a4\u30f3\u30c1"],[13062,1,"\u30a6\u30a9\u30f3"],[13063,1,"\u30a8\u30b9\u30af\u30fc\u30c9"],[13064,1,"\u30a8\u30fc\u30ab\u30fc"],[13065,1,"\u30aa\u30f3\u30b9"],[13066,1,"\u30aa\u30fc\u30e0"],[13067,1,"\u30ab\u30a4\u30ea"],[13068,1,"\u30ab\u30e9\u30c3\u30c8"],[13069,1,"\u30ab\u30ed\u30ea\u30fc"],[13070,1,"\u30ac\u30ed\u30f3"],[13071,1,"\u30ac\u30f3\u30de"],[13072,1,"\u30ae\u30ac"],[13073,1,"\u30ae\u30cb\u30fc"],[13074,1,"\u30ad\u30e5\u30ea\u30fc"],[13075,1,"\u30ae\u30eb\u30c0\u30fc"],[13076,1,"\u30ad\u30ed"],[13077,1,"\u30ad\u30ed\u30b0\u30e9\u30e0"],[13078,1,"\u30ad\u30ed\u30e1\u30fc\u30c8\u30eb"],[13079,1,"\u30ad\u30ed\u30ef\u30c3\u30c8"],[13080,1,"\u30b0\u30e9\u30e0"],[13081,1,"\u30b0\u30e9\u30e0\u30c8\u30f3"],[13082,1,"\u30af\u30eb\u30bc\u30a4\u30ed"],[13083,1,"\u30af\u30ed\u30fc\u30cd"],[13084,1,"\u30b1\u30fc\u30b9"],[13085,1,"\u30b3\u30eb\u30ca"],[13086,1,"\u30b3\u30fc\u30dd"],[13087,1,"\u30b5\u30a4\u30af\u30eb"],[13088,1,"\u30b5\u30f3\u30c1\u30fc\u30e0"],[13089,1,"\u30b7\u30ea\u30f3\u30b0"],[13090,1,"\u30bb\u30f3\u30c1"],[13091,1,"\u30bb\u30f3\u30c8"],[13092,1,"\u30c0\u30fc\u30b9"],[13093,1,"\u30c7\u30b7"],[13094,1,"\u30c9\u30eb"],[13095,1,"\u30c8\u30f3"],[13096,1,"\u30ca\u30ce"],[13097,1,"\u30ce\u30c3\u30c8"],[13098,1,"\u30cf\u30a4\u30c4"],[13099,1,"\u30d1\u30fc\u30bb\u30f3\u30c8"],[13100,1,"\u30d1\u30fc\u30c4"],[13101,1,"\u30d0\u30fc\u30ec\u30eb"],[13102,1,"\u30d4\u30a2\u30b9\u30c8\u30eb"],[13103,1,"\u30d4\u30af\u30eb"],[13104,1,"\u30d4\u30b3"],[13105,1,"\u30d3\u30eb"],[13106,1,"\u30d5\u30a1\u30e9\u30c3\u30c9"],[13107,1,"\u30d5\u30a3\u30fc\u30c8"],[13108,1,"\u30d6\u30c3\u30b7\u30a7\u30eb"],[13109,1,"\u30d5\u30e9\u30f3"],[13110,1,"\u30d8\u30af\u30bf\u30fc\u30eb"],[13111,1,"\u30da\u30bd"],[13112,1,"\u30da\u30cb\u30d2"],[13113,1,"\u30d8\u30eb\u30c4"],[13114,1,"\u30da\u30f3\u30b9"],[13115,1,"\u30da\u30fc\u30b8"],[13116,1,"\u30d9\u30fc\u30bf"],[13117,1,"\u30dd\u30a4\u30f3\u30c8"],[13118,1,"\u30dc\u30eb\u30c8"],[13119,1,"\u30db\u30f3"],[13120,1,"\u30dd\u30f3\u30c9"],[13121,1,"\u30db\u30fc\u30eb"],[13122,1,"\u30db\u30fc\u30f3"],[13123,1,"\u30de\u30a4\u30af\u30ed"],[13124,1,"\u30de\u30a4\u30eb"],[13125,1,"\u30de\u30c3\u30cf"],[13126,1,"\u30de\u30eb\u30af"],[13127,1,"\u30de\u30f3\u30b7\u30e7\u30f3"],[13128,1,"\u30df\u30af\u30ed\u30f3"],[13129,1,"\u30df\u30ea"],[13130,1,"\u30df\u30ea\u30d0\u30fc\u30eb"],[13131,1,"\u30e1\u30ac"],[13132,1,"\u30e1\u30ac\u30c8\u30f3"],[13133,1,"\u30e1\u30fc\u30c8\u30eb"],[13134,1,"\u30e4\u30fc\u30c9"],[13135,1,"\u30e4\u30fc\u30eb"],[13136,1,"\u30e6\u30a2\u30f3"],[13137,1,"\u30ea\u30c3\u30c8\u30eb"],[13138,1,"\u30ea\u30e9"],[13139,1,"\u30eb\u30d4\u30fc"],[13140,1,"\u30eb\u30fc\u30d6\u30eb"],[13141,1,"\u30ec\u30e0"],[13142,1,"\u30ec\u30f3\u30c8\u30b2\u30f3"],[13143,1,"\u30ef\u30c3\u30c8"],[13144,1,"0\u70b9"],[13145,1,"1\u70b9"],[13146,1,"2\u70b9"],[13147,1,"3\u70b9"],[13148,1,"4\u70b9"],[13149,1,"5\u70b9"],[13150,1,"6\u70b9"],[13151,1,"7\u70b9"],[13152,1,"8\u70b9"],[13153,1,"9\u70b9"],[13154,1,"10\u70b9"],[13155,1,"11\u70b9"],[13156,1,"12\u70b9"],[13157,1,"13\u70b9"],[13158,1,"14\u70b9"],[13159,1,"15\u70b9"],[13160,1,"16\u70b9"],[13161,1,"17\u70b9"],[13162,1,"18\u70b9"],[13163,1,"19\u70b9"],[13164,1,"20\u70b9"],[13165,1,"21\u70b9"],[13166,1,"22\u70b9"],[13167,1,"23\u70b9"],[13168,1,"24\u70b9"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"\u5e73\u6210"],[13180,1,"\u662d\u548c"],[13181,1,"\u5927\u6b63"],[13182,1,"\u660e\u6cbb"],[13183,1,"\u682a\u5f0f\u4f1a\u793e"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03bca"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"\u03bcf"],[13197,1,"\u03bcg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03bcl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03bcm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03bcs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03bcv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03bcw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03c9"],[13249,1,"m\u03c9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65e5"],[13281,1,"2\u65e5"],[13282,1,"3\u65e5"],[13283,1,"4\u65e5"],[13284,1,"5\u65e5"],[13285,1,"6\u65e5"],[13286,1,"7\u65e5"],[13287,1,"8\u65e5"],[13288,1,"9\u65e5"],[13289,1,"10\u65e5"],[13290,1,"11\u65e5"],[13291,1,"12\u65e5"],[13292,1,"13\u65e5"],[13293,1,"14\u65e5"],[13294,1,"15\u65e5"],[13295,1,"16\u65e5"],[13296,1,"17\u65e5"],[13297,1,"18\u65e5"],[13298,1,"19\u65e5"],[13299,1,"20\u65e5"],[13300,1,"21\u65e5"],[13301,1,"22\u65e5"],[13302,1,"23\u65e5"],[13303,1,"24\u65e5"],[13304,1,"25\u65e5"],[13305,1,"26\u65e5"],[13306,1,"27\u65e5"],[13307,1,"28\u65e5"],[13308,1,"29\u65e5"],[13309,1,"30\u65e5"],[13310,1,"31\u65e5"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"\ua641"],[42561,2],[42562,1,"\ua643"],[42563,2],[42564,1,"\ua645"],[42565,2],[42566,1,"\ua647"],[42567,2],[42568,1,"\ua649"],[42569,2],[42570,1,"\ua64b"],[42571,2],[42572,1,"\ua64d"],[42573,2],[42574,1,"\ua64f"],[42575,2],[42576,1,"\ua651"],[42577,2],[42578,1,"\ua653"],[42579,2],[42580,1,"\ua655"],[42581,2],[42582,1,"\ua657"],[42583,2],[42584,1,"\ua659"],[42585,2],[42586,1,"\ua65b"],[42587,2],[42588,1,"\ua65d"],[42589,2],[42590,1,"\ua65f"],[42591,2],[42592,1,"\ua661"],[42593,2],[42594,1,"\ua663"],[42595,2],[42596,1,"\ua665"],[42597,2],[42598,1,"\ua667"],[42599,2],[42600,1,"\ua669"],[42601,2],[42602,1,"\ua66b"],[42603,2],[42604,1,"\ua66d"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\ua681"],[42625,2],[42626,1,"\ua683"],[42627,2],[42628,1,"\ua685"],[42629,2],[42630,1,"\ua687"],[42631,2],[42632,1,"\ua689"],[42633,2],[42634,1,"\ua68b"],[42635,2],[42636,1,"\ua68d"],[42637,2],[42638,1,"\ua68f"],[42639,2],[42640,1,"\ua691"],[42641,2],[42642,1,"\ua693"],[42643,2],[42644,1,"\ua695"],[42645,2],[42646,1,"\ua697"],[42647,2],[42648,1,"\ua699"],[42649,2],[42650,1,"\ua69b"],[42651,2],[42652,1,"\u044a"],[42653,1,"\u044c"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"\ua723"],[42787,2],[42788,1,"\ua725"],[42789,2],[42790,1,"\ua727"],[42791,2],[42792,1,"\ua729"],[42793,2],[42794,1,"\ua72b"],[42795,2],[42796,1,"\ua72d"],[42797,2],[42798,1,"\ua72f"],[[42799,42801],2],[42802,1,"\ua733"],[42803,2],[42804,1,"\ua735"],[42805,2],[42806,1,"\ua737"],[42807,2],[42808,1,"\ua739"],[42809,2],[42810,1,"\ua73b"],[42811,2],[42812,1,"\ua73d"],[42813,2],[42814,1,"\ua73f"],[42815,2],[42816,1,"\ua741"],[42817,2],[42818,1,"\ua743"],[42819,2],[42820,1,"\ua745"],[42821,2],[42822,1,"\ua747"],[42823,2],[42824,1,"\ua749"],[42825,2],[42826,1,"\ua74b"],[42827,2],[42828,1,"\ua74d"],[42829,2],[42830,1,"\ua74f"],[42831,2],[42832,1,"\ua751"],[42833,2],[42834,1,"\ua753"],[42835,2],[42836,1,"\ua755"],[42837,2],[42838,1,"\ua757"],[42839,2],[42840,1,"\ua759"],[42841,2],[42842,1,"\ua75b"],[42843,2],[42844,1,"\ua75d"],[42845,2],[42846,1,"\ua75f"],[42847,2],[42848,1,"\ua761"],[42849,2],[42850,1,"\ua763"],[42851,2],[42852,1,"\ua765"],[42853,2],[42854,1,"\ua767"],[42855,2],[42856,1,"\ua769"],[42857,2],[42858,1,"\ua76b"],[42859,2],[42860,1,"\ua76d"],[42861,2],[42862,1,"\ua76f"],[42863,2],[42864,1,"\ua76f"],[[42865,42872],2],[42873,1,"\ua77a"],[42874,2],[42875,1,"\ua77c"],[42876,2],[42877,1,"\u1d79"],[42878,1,"\ua77f"],[42879,2],[42880,1,"\ua781"],[42881,2],[42882,1,"\ua783"],[42883,2],[42884,1,"\ua785"],[42885,2],[42886,1,"\ua787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\ua78c"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\ua791"],[42897,2],[42898,1,"\ua793"],[42899,2],[[42900,42901],2],[42902,1,"\ua797"],[42903,2],[42904,1,"\ua799"],[42905,2],[42906,1,"\ua79b"],[42907,2],[42908,1,"\ua79d"],[42909,2],[42910,1,"\ua79f"],[42911,2],[42912,1,"\ua7a1"],[42913,2],[42914,1,"\ua7a3"],[42915,2],[42916,1,"\ua7a5"],[42917,2],[42918,1,"\ua7a7"],[42919,2],[42920,1,"\ua7a9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025c"],[42924,1,"\u0261"],[42925,1,"\u026c"],[42926,1,"\u026a"],[42927,2],[42928,1,"\u029e"],[42929,1,"\u0287"],[42930,1,"\u029d"],[42931,1,"\uab53"],[42932,1,"\ua7b5"],[42933,2],[42934,1,"\ua7b7"],[42935,2],[42936,1,"\ua7b9"],[42937,2],[42938,1,"\ua7bb"],[42939,2],[42940,1,"\ua7bd"],[42941,2],[42942,1,"\ua7bf"],[42943,2],[42944,1,"\ua7c1"],[42945,2],[42946,1,"\ua7c3"],[42947,2],[42948,1,"\ua794"],[42949,1,"\u0282"],[42950,1,"\u1d8e"],[42951,1,"\ua7c8"],[42952,2],[42953,1,"\ua7ca"],[42954,2],[[42955,42959],3],[42960,1,"\ua7d1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\ua7d7"],[42967,2],[42968,1,"\ua7d9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\ua7f6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"\ua727"],[43869,1,"\uab37"],[43870,1,"\u026b"],[43871,1,"\uab52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028d"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13a0"],[43889,1,"\u13a1"],[43890,1,"\u13a2"],[43891,1,"\u13a3"],[43892,1,"\u13a4"],[43893,1,"\u13a5"],[43894,1,"\u13a6"],[43895,1,"\u13a7"],[43896,1,"\u13a8"],[43897,1,"\u13a9"],[43898,1,"\u13aa"],[43899,1,"\u13ab"],[43900,1,"\u13ac"],[43901,1,"\u13ad"],[43902,1,"\u13ae"],[43903,1,"\u13af"],[43904,1,"\u13b0"],[43905,1,"\u13b1"],[43906,1,"\u13b2"],[43907,1,"\u13b3"],[43908,1,"\u13b4"],[43909,1,"\u13b5"],[43910,1,"\u13b6"],[43911,1,"\u13b7"],[43912,1,"\u13b8"],[43913,1,"\u13b9"],[43914,1,"\u13ba"],[43915,1,"\u13bb"],[43916,1,"\u13bc"],[43917,1,"\u13bd"],[43918,1,"\u13be"],[43919,1,"\u13bf"],[43920,1,"\u13c0"],[43921,1,"\u13c1"],[43922,1,"\u13c2"],[43923,1,"\u13c3"],[43924,1,"\u13c4"],[43925,1,"\u13c5"],[43926,1,"\u13c6"],[43927,1,"\u13c7"],[43928,1,"\u13c8"],[43929,1,"\u13c9"],[43930,1,"\u13ca"],[43931,1,"\u13cb"],[43932,1,"\u13cc"],[43933,1,"\u13cd"],[43934,1,"\u13ce"],[43935,1,"\u13cf"],[43936,1,"\u13d0"],[43937,1,"\u13d1"],[43938,1,"\u13d2"],[43939,1,"\u13d3"],[43940,1,"\u13d4"],[43941,1,"\u13d5"],[43942,1,"\u13d6"],[43943,1,"\u13d7"],[43944,1,"\u13d8"],[43945,1,"\u13d9"],[43946,1,"\u13da"],[43947,1,"\u13db"],[43948,1,"\u13dc"],[43949,1,"\u13dd"],[43950,1,"\u13de"],[43951,1,"\u13df"],[43952,1,"\u13e0"],[43953,1,"\u13e1"],[43954,1,"\u13e2"],[43955,1,"\u13e3"],[43956,1,"\u13e4"],[43957,1,"\u13e5"],[43958,1,"\u13e6"],[43959,1,"\u13e7"],[43960,1,"\u13e8"],[43961,1,"\u13e9"],[43962,1,"\u13ea"],[43963,1,"\u13eb"],[43964,1,"\u13ec"],[43965,1,"\u13ed"],[43966,1,"\u13ee"],[43967,1,"\u13ef"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"\u8c48"],[63745,1,"\u66f4"],[63746,1,"\u8eca"],[63747,1,"\u8cc8"],[63748,1,"\u6ed1"],[63749,1,"\u4e32"],[63750,1,"\u53e5"],[[63751,63752],1,"\u9f9c"],[63753,1,"\u5951"],[63754,1,"\u91d1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61f6"],[63758,1,"\u7669"],[63759,1,"\u7f85"],[63760,1,"\u863f"],[63761,1,"\u87ba"],[63762,1,"\u88f8"],[63763,1,"\u908f"],[63764,1,"\u6a02"],[63765,1,"\u6d1b"],[63766,1,"\u70d9"],[63767,1,"\u73de"],[63768,1,"\u843d"],[63769,1,"\u916a"],[63770,1,"\u99f1"],[63771,1,"\u4e82"],[63772,1,"\u5375"],[63773,1,"\u6b04"],[63774,1,"\u721b"],[63775,1,"\u862d"],[63776,1,"\u9e1e"],[63777,1,"\u5d50"],[63778,1,"\u6feb"],[63779,1,"\u85cd"],[63780,1,"\u8964"],[63781,1,"\u62c9"],[63782,1,"\u81d8"],[63783,1,"\u881f"],[63784,1,"\u5eca"],[63785,1,"\u6717"],[63786,1,"\u6d6a"],[63787,1,"\u72fc"],[63788,1,"\u90ce"],[63789,1,"\u4f86"],[63790,1,"\u51b7"],[63791,1,"\u52de"],[63792,1,"\u64c4"],[63793,1,"\u6ad3"],[63794,1,"\u7210"],[63795,1,"\u76e7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865c"],[63799,1,"\u8def"],[63800,1,"\u9732"],[63801,1,"\u9b6f"],[63802,1,"\u9dfa"],[63803,1,"\u788c"],[63804,1,"\u797f"],[63805,1,"\u7da0"],[63806,1,"\u83c9"],[63807,1,"\u9304"],[63808,1,"\u9e7f"],[63809,1,"\u8ad6"],[63810,1,"\u58df"],[63811,1,"\u5f04"],[63812,1,"\u7c60"],[63813,1,"\u807e"],[63814,1,"\u7262"],[63815,1,"\u78ca"],[63816,1,"\u8cc2"],[63817,1,"\u96f7"],[63818,1,"\u58d8"],[63819,1,"\u5c62"],[63820,1,"\u6a13"],[63821,1,"\u6dda"],[63822,1,"\u6f0f"],[63823,1,"\u7d2f"],[63824,1,"\u7e37"],[63825,1,"\u964b"],[63826,1,"\u52d2"],[63827,1,"\u808b"],[63828,1,"\u51dc"],[63829,1,"\u51cc"],[63830,1,"\u7a1c"],[63831,1,"\u7dbe"],[63832,1,"\u83f1"],[63833,1,"\u9675"],[63834,1,"\u8b80"],[63835,1,"\u62cf"],[63836,1,"\u6a02"],[63837,1,"\u8afe"],[63838,1,"\u4e39"],[63839,1,"\u5be7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78fb"],[63845,1,"\u4fbf"],[63846,1,"\u5fa9"],[63847,1,"\u4e0d"],[63848,1,"\u6ccc"],[63849,1,"\u6578"],[63850,1,"\u7d22"],[63851,1,"\u53c3"],[63852,1,"\u585e"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8aaa"],[63856,1,"\u6bba"],[63857,1,"\u8fb0"],[63858,1,"\u6c88"],[63859,1,"\u62fe"],[63860,1,"\u82e5"],[63861,1,"\u63a0"],[63862,1,"\u7565"],[63863,1,"\u4eae"],[63864,1,"\u5169"],[63865,1,"\u51c9"],[63866,1,"\u6881"],[63867,1,"\u7ce7"],[63868,1,"\u826f"],[63869,1,"\u8ad2"],[63870,1,"\u91cf"],[63871,1,"\u52f5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5eec"],[63875,1,"\u65c5"],[63876,1,"\u6ffe"],[63877,1,"\u792a"],[63878,1,"\u95ad"],[63879,1,"\u9a6a"],[63880,1,"\u9e97"],[63881,1,"\u9ece"],[63882,1,"\u529b"],[63883,1,"\u66c6"],[63884,1,"\u6b77"],[63885,1,"\u8f62"],[63886,1,"\u5e74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649a"],[63890,1,"\u6f23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79ca"],[63894,1,"\u7df4"],[63895,1,"\u806f"],[63896,1,"\u8f26"],[63897,1,"\u84ee"],[63898,1,"\u9023"],[63899,1,"\u934a"],[63900,1,"\u5217"],[63901,1,"\u52a3"],[63902,1,"\u54bd"],[63903,1,"\u70c8"],[63904,1,"\u88c2"],[63905,1,"\u8aaa"],[63906,1,"\u5ec9"],[63907,1,"\u5ff5"],[63908,1,"\u637b"],[63909,1,"\u6bae"],[63910,1,"\u7c3e"],[63911,1,"\u7375"],[63912,1,"\u4ee4"],[63913,1,"\u56f9"],[63914,1,"\u5be7"],[63915,1,"\u5dba"],[63916,1,"\u601c"],[63917,1,"\u73b2"],[63918,1,"\u7469"],[63919,1,"\u7f9a"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96f6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4f8b"],[63926,1,"\u79ae"],[63927,1,"\u91b4"],[63928,1,"\u96b8"],[63929,1,"\u60e1"],[63930,1,"\u4e86"],[63931,1,"\u50da"],[63932,1,"\u5bee"],[63933,1,"\u5c3f"],[63934,1,"\u6599"],[63935,1,"\u6a02"],[63936,1,"\u71ce"],[63937,1,"\u7642"],[63938,1,"\u84fc"],[63939,1,"\u907c"],[63940,1,"\u9f8d"],[63941,1,"\u6688"],[63942,1,"\u962e"],[63943,1,"\u5289"],[63944,1,"\u677b"],[63945,1,"\u67f3"],[63946,1,"\u6d41"],[63947,1,"\u6e9c"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786b"],[63951,1,"\u7d10"],[63952,1,"\u985e"],[63953,1,"\u516d"],[63954,1,"\u622e"],[63955,1,"\u9678"],[63956,1,"\u502b"],[63957,1,"\u5d19"],[63958,1,"\u6dea"],[63959,1,"\u8f2a"],[63960,1,"\u5f8b"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540f"],[63967,1,"\u5c65"],[63968,1,"\u6613"],[63969,1,"\u674e"],[63970,1,"\u68a8"],[63971,1,"\u6ce5"],[63972,1,"\u7406"],[63973,1,"\u75e2"],[63974,1,"\u7f79"],[63975,1,"\u88cf"],[63976,1,"\u88e1"],[63977,1,"\u91cc"],[63978,1,"\u96e2"],[63979,1,"\u533f"],[63980,1,"\u6eba"],[63981,1,"\u541d"],[63982,1,"\u71d0"],[63983,1,"\u7498"],[63984,1,"\u85fa"],[63985,1,"\u96a3"],[63986,1,"\u9c57"],[63987,1,"\u9e9f"],[63988,1,"\u6797"],[63989,1,"\u6dcb"],[63990,1,"\u81e8"],[63991,1,"\u7acb"],[63992,1,"\u7b20"],[63993,1,"\u7c92"],[63994,1,"\u72c0"],[63995,1,"\u7099"],[63996,1,"\u8b58"],[63997,1,"\u4ec0"],[63998,1,"\u8336"],[63999,1,"\u523a"],[64000,1,"\u5207"],[64001,1,"\u5ea6"],[64002,1,"\u62d3"],[64003,1,"\u7cd6"],[64004,1,"\u5b85"],[64005,1,"\u6d1e"],[64006,1,"\u66b4"],[64007,1,"\u8f3b"],[64008,1,"\u884c"],[64009,1,"\u964d"],[64010,1,"\u898b"],[64011,1,"\u5ed3"],[64012,1,"\u5140"],[64013,1,"\u55c0"],[[64014,64015],2],[64016,1,"\u585a"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51de"],[64022,1,"\u732a"],[64023,1,"\u76ca"],[64024,1,"\u793c"],[64025,1,"\u795e"],[64026,1,"\u7965"],[64027,1,"\u798f"],[64028,1,"\u9756"],[64029,1,"\u7cbe"],[64030,1,"\u7fbd"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8af8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90fd"],[[64039,64041],2],[64042,1,"\u98ef"],[64043,1,"\u98fc"],[64044,1,"\u9928"],[64045,1,"\u9db4"],[64046,1,"\u90de"],[64047,1,"\u96b7"],[64048,1,"\u4fae"],[64049,1,"\u50e7"],[64050,1,"\u514d"],[64051,1,"\u52c9"],[64052,1,"\u52e4"],[64053,1,"\u5351"],[64054,1,"\u559d"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58a8"],[64059,1,"\u5c64"],[64060,1,"\u5c6e"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618e"],[64064,1,"\u61f2"],[64065,1,"\u654f"],[64066,1,"\u65e2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6d77"],[64070,1,"\u6e1a"],[64071,1,"\u6f22"],[64072,1,"\u716e"],[64073,1,"\u722b"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793e"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795d"],[64082,1,"\u798d"],[64083,1,"\u798e"],[64084,1,"\u7a40"],[64085,1,"\u7a81"],[64086,1,"\u7bc0"],[64087,1,"\u7df4"],[64088,1,"\u7e09"],[64089,1,"\u7e41"],[64090,1,"\u7f72"],[64091,1,"\u8005"],[64092,1,"\u81ed"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8b01"],[64099,1,"\u8b39"],[64100,1,"\u8cd3"],[64101,1,"\u8d08"],[64102,1,"\u8fb6"],[64103,1,"\u9038"],[64104,1,"\u96e3"],[64105,1,"\u97ff"],[64106,1,"\u983b"],[64107,1,"\u6075"],[64108,1,"\ud850\udeee"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4e26"],[64113,1,"\u51b5"],[64114,1,"\u5168"],[64115,1,"\u4f80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52c7"],[64119,1,"\u52fa"],[64120,1,"\u559d"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55e2"],[64124,1,"\u585a"],[64125,1,"\u58b3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5a62"],[64129,1,"\u5b28"],[64130,1,"\u5ed2"],[64131,1,"\u5ed9"],[64132,1,"\u5f69"],[64133,1,"\u5fad"],[64134,1,"\u60d8"],[64135,1,"\u614e"],[64136,1,"\u6108"],[64137,1,"\u618e"],[64138,1,"\u6160"],[64139,1,"\u61f2"],[64140,1,"\u6234"],[64141,1,"\u63c4"],[64142,1,"\u641c"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671b"],[64148,1,"\u6756"],[64149,1,"\u6b79"],[64150,1,"\u6bba"],[64151,1,"\u6d41"],[64152,1,"\u6edb"],[64153,1,"\u6ecb"],[64154,1,"\u6f22"],[64155,1,"\u701e"],[64156,1,"\u716e"],[64157,1,"\u77a7"],[64158,1,"\u7235"],[64159,1,"\u72af"],[64160,1,"\u732a"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753b"],[64164,1,"\u761d"],[64165,1,"\u761f"],[64166,1,"\u76ca"],[64167,1,"\u76db"],[64168,1,"\u76f4"],[64169,1,"\u774a"],[64170,1,"\u7740"],[64171,1,"\u78cc"],[64172,1,"\u7ab1"],[64173,1,"\u7bc0"],[64174,1,"\u7c7b"],[64175,1,"\u7d5b"],[64176,1,"\u7df4"],[64177,1,"\u7f3e"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83ef"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8abf"],[64186,1,"\u8af8"],[64187,1,"\u8acb"],[64188,1,"\u8b01"],[64189,1,"\u8afe"],[64190,1,"\u8aed"],[64191,1,"\u8b39"],[64192,1,"\u8b8a"],[64193,1,"\u8d08"],[64194,1,"\u8f38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967c"],[64199,1,"\u96e3"],[64200,1,"\u9756"],[64201,1,"\u97db"],[64202,1,"\u97ff"],[64203,1,"\u980b"],[64204,1,"\u983b"],[64205,1,"\u9b12"],[64206,1,"\u9f9c"],[64207,1,"\ud84a\udc4a"],[64208,1,"\ud84a\udc44"],[64209,1,"\ud84c\udfd5"],[64210,1,"\u3b9d"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\ud854\ude49"],[64214,1,"\ud857\udcd0"],[64215,1,"\ud85f\uded3"],[64216,1,"\u9f43"],[64217,1,"\u9f8e"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056b"],[64278,1,"\u057e\u0576"],[64279,1,"\u0574\u056d"],[[64280,64284],3],[64285,1,"\u05d9\u05b4"],[64286,2],[64287,1,"\u05f2\u05b7"],[64288,1,"\u05e2"],[64289,1,"\u05d0"],[64290,1,"\u05d3"],[64291,1,"\u05d4"],[64292,1,"\u05db"],[64293,1,"\u05dc"],[64294,1,"\u05dd"],[64295,1,"\u05e8"],[64296,1,"\u05ea"],[64297,5,"+"],[64298,1,"\u05e9\u05c1"],[64299,1,"\u05e9\u05c2"],[64300,1,"\u05e9\u05bc\u05c1"],[64301,1,"\u05e9\u05bc\u05c2"],[64302,1,"\u05d0\u05b7"],[64303,1,"\u05d0\u05b8"],[64304,1,"\u05d0\u05bc"],[64305,1,"\u05d1\u05bc"],[64306,1,"\u05d2\u05bc"],[64307,1,"\u05d3\u05bc"],[64308,1,"\u05d4\u05bc"],[64309,1,"\u05d5\u05bc"],[64310,1,"\u05d6\u05bc"],[64311,3],[64312,1,"\u05d8\u05bc"],[64313,1,"\u05d9\u05bc"],[64314,1,"\u05da\u05bc"],[64315,1,"\u05db\u05bc"],[64316,1,"\u05dc\u05bc"],[64317,3],[64318,1,"\u05de\u05bc"],[64319,3],[64320,1,"\u05e0\u05bc"],[64321,1,"\u05e1\u05bc"],[64322,3],[64323,1,"\u05e3\u05bc"],[64324,1,"\u05e4\u05bc"],[64325,3],[64326,1,"\u05e6\u05bc"],[64327,1,"\u05e7\u05bc"],[64328,1,"\u05e8\u05bc"],[64329,1,"\u05e9\u05bc"],[64330,1,"\u05ea\u05bc"],[64331,1,"\u05d5\u05b9"],[64332,1,"\u05d1\u05bf"],[64333,1,"\u05db\u05bf"],[64334,1,"\u05e4\u05bf"],[64335,1,"\u05d0\u05dc"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067b"],[[64342,64345],1,"\u067e"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067a"],[[64354,64357],1,"\u067f"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06a4"],[[64366,64369],1,"\u06a6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068d"],[[64388,64389],1,"\u068c"],[[64390,64391],1,"\u068e"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06a9"],[[64402,64405],1,"\u06af"],[[64406,64409],1,"\u06b3"],[[64410,64413],1,"\u06b1"],[[64414,64415],1,"\u06ba"],[[64416,64419],1,"\u06bb"],[[64420,64421],1,"\u06c0"],[[64422,64425],1,"\u06c1"],[[64426,64429],1,"\u06be"],[[64430,64431],1,"\u06d2"],[[64432,64433],1,"\u06d3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06ad"],[[64471,64472],1,"\u06c7"],[[64473,64474],1,"\u06c6"],[[64475,64476],1,"\u06c8"],[64477,1,"\u06c7\u0674"],[[64478,64479],1,"\u06cb"],[[64480,64481],1,"\u06c5"],[[64482,64483],1,"\u06c9"],[[64484,64487],1,"\u06d0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06d5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06c7"],[[64498,64499],1,"\u0626\u06c6"],[[64500,64501],1,"\u0626\u06c8"],[[64502,64504],1,"\u0626\u06d0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06cc"],[64512,1,"\u0626\u062c"],[64513,1,"\u0626\u062d"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064a"],[64517,1,"\u0628\u062c"],[64518,1,"\u0628\u062d"],[64519,1,"\u0628\u062e"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064a"],[64523,1,"\u062a\u062c"],[64524,1,"\u062a\u062d"],[64525,1,"\u062a\u062e"],[64526,1,"\u062a\u0645"],[64527,1,"\u062a\u0649"],[64528,1,"\u062a\u064a"],[64529,1,"\u062b\u062c"],[64530,1,"\u062b\u0645"],[64531,1,"\u062b\u0649"],[64532,1,"\u062b\u064a"],[64533,1,"\u062c\u062d"],[64534,1,"\u062c\u0645"],[64535,1,"\u062d\u062c"],[64536,1,"\u062d\u0645"],[64537,1,"\u062e\u062c"],[64538,1,"\u062e\u062d"],[64539,1,"\u062e\u0645"],[64540,1,"\u0633\u062c"],[64541,1,"\u0633\u062d"],[64542,1,"\u0633\u062e"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062d"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062c"],[64547,1,"\u0636\u062d"],[64548,1,"\u0636\u062e"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062d"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062c"],[64554,1,"\u0639\u0645"],[64555,1,"\u063a\u062c"],[64556,1,"\u063a\u0645"],[64557,1,"\u0641\u062c"],[64558,1,"\u0641\u062d"],[64559,1,"\u0641\u062e"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064a"],[64563,1,"\u0642\u062d"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064a"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062c"],[64569,1,"\u0643\u062d"],[64570,1,"\u0643\u062e"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064a"],[64575,1,"\u0644\u062c"],[64576,1,"\u0644\u062d"],[64577,1,"\u0644\u062e"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064a"],[64581,1,"\u0645\u062c"],[64582,1,"\u0645\u062d"],[64583,1,"\u0645\u062e"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064a"],[64587,1,"\u0646\u062c"],[64588,1,"\u0646\u062d"],[64589,1,"\u0646\u062e"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064a"],[64593,1,"\u0647\u062c"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064a"],[64597,1,"\u064a\u062c"],[64598,1,"\u064a\u062d"],[64599,1,"\u064a\u062e"],[64600,1,"\u064a\u0645"],[64601,1,"\u064a\u0649"],[64602,1,"\u064a\u064a"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064c\u0651"],[64607,5," \u064d\u0651"],[64608,5," \u064e\u0651"],[64609,5," \u064f\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064a"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064a"],[64624,1,"\u062a\u0631"],[64625,1,"\u062a\u0632"],[64626,1,"\u062a\u0645"],[64627,1,"\u062a\u0646"],[64628,1,"\u062a\u0649"],[64629,1,"\u062a\u064a"],[64630,1,"\u062b\u0631"],[64631,1,"\u062b\u0632"],[64632,1,"\u062b\u0645"],[64633,1,"\u062b\u0646"],[64634,1,"\u062b\u0649"],[64635,1,"\u062b\u064a"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064a"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064a"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064a"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064a"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064a"],[64656,1,"\u0649\u0670"],[64657,1,"\u064a\u0631"],[64658,1,"\u064a\u0632"],[64659,1,"\u064a\u0645"],[64660,1,"\u064a\u0646"],[64661,1,"\u064a\u0649"],[64662,1,"\u064a\u064a"],[64663,1,"\u0626\u062c"],[64664,1,"\u0626\u062d"],[64665,1,"\u0626\u062e"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062c"],[64669,1,"\u0628\u062d"],[64670,1,"\u0628\u062e"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062a\u062c"],[64674,1,"\u062a\u062d"],[64675,1,"\u062a\u062e"],[64676,1,"\u062a\u0645"],[64677,1,"\u062a\u0647"],[64678,1,"\u062b\u0645"],[64679,1,"\u062c\u062d"],[64680,1,"\u062c\u0645"],[64681,1,"\u062d\u062c"],[64682,1,"\u062d\u0645"],[64683,1,"\u062e\u062c"],[64684,1,"\u062e\u0645"],[64685,1,"\u0633\u062c"],[64686,1,"\u0633\u062d"],[64687,1,"\u0633\u062e"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062d"],[64690,1,"\u0635\u062e"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062c"],[64693,1,"\u0636\u062d"],[64694,1,"\u0636\u062e"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062d"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062c"],[64699,1,"\u0639\u0645"],[64700,1,"\u063a\u062c"],[64701,1,"\u063a\u0645"],[64702,1,"\u0641\u062c"],[64703,1,"\u0641\u062d"],[64704,1,"\u0641\u062e"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062d"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062c"],[64709,1,"\u0643\u062d"],[64710,1,"\u0643\u062e"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062c"],[64714,1,"\u0644\u062d"],[64715,1,"\u0644\u062e"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062c"],[64719,1,"\u0645\u062d"],[64720,1,"\u0645\u062e"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062c"],[64723,1,"\u0646\u062d"],[64724,1,"\u0646\u062e"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062c"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064a\u062c"],[64731,1,"\u064a\u062d"],[64732,1,"\u064a\u062e"],[64733,1,"\u064a\u0645"],[64734,1,"\u064a\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062a\u0645"],[64740,1,"\u062a\u0647"],[64741,1,"\u062b\u0645"],[64742,1,"\u062b\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064a\u0645"],[64753,1,"\u064a\u0647"],[64754,1,"\u0640\u064e\u0651"],[64755,1,"\u0640\u064f\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064a"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064a"],[64761,1,"\u063a\u0649"],[64762,1,"\u063a\u064a"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064a"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064a"],[64767,1,"\u062d\u0649"],[64768,1,"\u062d\u064a"],[64769,1,"\u062c\u0649"],[64770,1,"\u062c\u064a"],[64771,1,"\u062e\u0649"],[64772,1,"\u062e\u064a"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064a"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064a"],[64777,1,"\u0634\u062c"],[64778,1,"\u0634\u062d"],[64779,1,"\u0634\u062e"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064a"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064a"],[64789,1,"\u063a\u0649"],[64790,1,"\u063a\u064a"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064a"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064a"],[64795,1,"\u062d\u0649"],[64796,1,"\u062d\u064a"],[64797,1,"\u062c\u0649"],[64798,1,"\u062c\u064a"],[64799,1,"\u062e\u0649"],[64800,1,"\u062e\u064a"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064a"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064a"],[64805,1,"\u0634\u062c"],[64806,1,"\u0634\u062d"],[64807,1,"\u0634\u062e"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062c"],[64814,1,"\u0634\u062d"],[64815,1,"\u0634\u062e"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062c"],[64821,1,"\u0633\u062d"],[64822,1,"\u0633\u062e"],[64823,1,"\u0634\u062c"],[64824,1,"\u0634\u062d"],[64825,1,"\u0634\u062e"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064b"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062a\u062c\u0645"],[[64849,64850],1,"\u062a\u062d\u062c"],[64851,1,"\u062a\u062d\u0645"],[64852,1,"\u062a\u062e\u0645"],[64853,1,"\u062a\u0645\u062c"],[64854,1,"\u062a\u0645\u062d"],[64855,1,"\u062a\u0645\u062e"],[[64856,64857],1,"\u062c\u0645\u062d"],[64858,1,"\u062d\u0645\u064a"],[64859,1,"\u062d\u0645\u0649"],[64860,1,"\u0633\u062d\u062c"],[64861,1,"\u0633\u062c\u062d"],[64862,1,"\u0633\u062c\u0649"],[[64863,64864],1,"\u0633\u0645\u062d"],[64865,1,"\u0633\u0645\u062c"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062d\u062d"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062d\u0645"],[64873,1,"\u0634\u062c\u064a"],[[64874,64875],1,"\u0634\u0645\u062e"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062d\u0649"],[[64879,64880],1,"\u0636\u062e\u0645"],[[64881,64882],1,"\u0637\u0645\u062d"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064a"],[64885,1,"\u0639\u062c\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063a\u0645\u0645"],[64890,1,"\u063a\u0645\u064a"],[64891,1,"\u063a\u0645\u0649"],[[64892,64893],1,"\u0641\u062e\u0645"],[64894,1,"\u0642\u0645\u062d"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062d\u0645"],[64897,1,"\u0644\u062d\u064a"],[64898,1,"\u0644\u062d\u0649"],[[64899,64900],1,"\u0644\u062c\u062c"],[[64901,64902],1,"\u0644\u062e\u0645"],[[64903,64904],1,"\u0644\u0645\u062d"],[64905,1,"\u0645\u062d\u062c"],[64906,1,"\u0645\u062d\u0645"],[64907,1,"\u0645\u062d\u064a"],[64908,1,"\u0645\u062c\u062d"],[64909,1,"\u0645\u062c\u0645"],[64910,1,"\u0645\u062e\u062c"],[64911,1,"\u0645\u062e\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062c\u062e"],[64915,1,"\u0647\u0645\u062c"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062d\u0645"],[64918,1,"\u0646\u062d\u0649"],[[64919,64920],1,"\u0646\u062c\u0645"],[64921,1,"\u0646\u062c\u0649"],[64922,1,"\u0646\u0645\u064a"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064a\u0645\u0645"],[64926,1,"\u0628\u062e\u064a"],[64927,1,"\u062a\u062c\u064a"],[64928,1,"\u062a\u062c\u0649"],[64929,1,"\u062a\u062e\u064a"],[64930,1,"\u062a\u062e\u0649"],[64931,1,"\u062a\u0645\u064a"],[64932,1,"\u062a\u0645\u0649"],[64933,1,"\u062c\u0645\u064a"],[64934,1,"\u062c\u062d\u0649"],[64935,1,"\u062c\u0645\u0649"],[64936,1,"\u0633\u062e\u0649"],[64937,1,"\u0635\u062d\u064a"],[64938,1,"\u0634\u062d\u064a"],[64939,1,"\u0636\u062d\u064a"],[64940,1,"\u0644\u062c\u064a"],[64941,1,"\u0644\u0645\u064a"],[64942,1,"\u064a\u062d\u064a"],[64943,1,"\u064a\u062c\u064a"],[64944,1,"\u064a\u0645\u064a"],[64945,1,"\u0645\u0645\u064a"],[64946,1,"\u0642\u0645\u064a"],[64947,1,"\u0646\u062d\u064a"],[64948,1,"\u0642\u0645\u062d"],[64949,1,"\u0644\u062d\u0645"],[64950,1,"\u0639\u0645\u064a"],[64951,1,"\u0643\u0645\u064a"],[64952,1,"\u0646\u062c\u062d"],[64953,1,"\u0645\u062e\u064a"],[64954,1,"\u0644\u062c\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062c\u0645"],[64957,1,"\u0646\u062c\u062d"],[64958,1,"\u062c\u062d\u064a"],[64959,1,"\u062d\u062c\u064a"],[64960,1,"\u0645\u062c\u064a"],[64961,1,"\u0641\u0645\u064a"],[64962,1,"\u0628\u062d\u064a"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062c\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062e\u064a"],[64967,1,"\u0646\u062c\u064a"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06d2"],[65009,1,"\u0642\u0644\u06d2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062d\u0645\u062f"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064a\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064a\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062c\u0644 \u062c\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06cc\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300a"],[65086,1,"\u300b"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300c"],[65090,1,"\u300d"],[65091,1,"\u300e"],[65092,1,"\u300f"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," \u064b"],[65137,1,"\u0640\u064b"],[65138,5," \u064c"],[65139,2],[65140,5," \u064d"],[65141,3],[65142,5," \u064e"],[65143,1,"\u0640\u064e"],[65144,5," \u064f"],[65145,1,"\u0640\u064f"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062a"],[[65177,65180],1,"\u062b"],[[65181,65184],1,"\u062c"],[[65185,65188],1,"\u062d"],[[65189,65192],1,"\u062e"],[[65193,65194],1,"\u062f"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063a"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064a"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"\'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300c"],[65379,1,"\u300d"],[65380,1,"\u3001"],[65381,1,"\u30fb"],[65382,1,"\u30f2"],[65383,1,"\u30a1"],[65384,1,"\u30a3"],[65385,1,"\u30a5"],[65386,1,"\u30a7"],[65387,1,"\u30a9"],[65388,1,"\u30e3"],[65389,1,"\u30e5"],[65390,1,"\u30e7"],[65391,1,"\u30c3"],[65392,1,"\u30fc"],[65393,1,"\u30a2"],[65394,1,"\u30a4"],[65395,1,"\u30a6"],[65396,1,"\u30a8"],[65397,1,"\u30aa"],[65398,1,"\u30ab"],[65399,1,"\u30ad"],[65400,1,"\u30af"],[65401,1,"\u30b1"],[65402,1,"\u30b3"],[65403,1,"\u30b5"],[65404,1,"\u30b7"],[65405,1,"\u30b9"],[65406,1,"\u30bb"],[65407,1,"\u30bd"],[65408,1,"\u30bf"],[65409,1,"\u30c1"],[65410,1,"\u30c4"],[65411,1,"\u30c6"],[65412,1,"\u30c8"],[65413,1,"\u30ca"],[65414,1,"\u30cb"],[65415,1,"\u30cc"],[65416,1,"\u30cd"],[65417,1,"\u30ce"],[65418,1,"\u30cf"],[65419,1,"\u30d2"],[65420,1,"\u30d5"],[65421,1,"\u30d8"],[65422,1,"\u30db"],[65423,1,"\u30de"],[65424,1,"\u30df"],[65425,1,"\u30e0"],[65426,1,"\u30e1"],[65427,1,"\u30e2"],[65428,1,"\u30e4"],[65429,1,"\u30e6"],[65430,1,"\u30e8"],[65431,1,"\u30e9"],[65432,1,"\u30ea"],[65433,1,"\u30eb"],[65434,1,"\u30ec"],[65435,1,"\u30ed"],[65436,1,"\u30ef"],[65437,1,"\u30f3"],[65438,1,"\u3099"],[65439,1,"\u309a"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11aa"],[65444,1,"\u1102"],[65445,1,"\u11ac"],[65446,1,"\u11ad"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11b0"],[65451,1,"\u11b1"],[65452,1,"\u11b2"],[65453,1,"\u11b3"],[65454,1,"\u11b4"],[65455,1,"\u11b5"],[65456,1,"\u111a"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110a"],[65463,1,"\u110b"],[65464,1,"\u110c"],[65465,1,"\u110d"],[65466,1,"\u110e"],[65467,1,"\u110f"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116a"],[65486,1,"\u116b"],[65487,1,"\u116c"],[[65488,65489],3],[65490,1,"\u116d"],[65491,1,"\u116e"],[65492,1,"\u116f"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xa2"],[65505,1,"\xa3"],[65506,1,"\xac"],[65507,5," \u0304"],[65508,1,"\xa6"],[65509,1,"\xa5"],[65510,1,"\u20a9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25a0"],[65518,1,"\u25cb"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"\ud801\udc28"],[66561,1,"\ud801\udc29"],[66562,1,"\ud801\udc2a"],[66563,1,"\ud801\udc2b"],[66564,1,"\ud801\udc2c"],[66565,1,"\ud801\udc2d"],[66566,1,"\ud801\udc2e"],[66567,1,"\ud801\udc2f"],[66568,1,"\ud801\udc30"],[66569,1,"\ud801\udc31"],[66570,1,"\ud801\udc32"],[66571,1,"\ud801\udc33"],[66572,1,"\ud801\udc34"],[66573,1,"\ud801\udc35"],[66574,1,"\ud801\udc36"],[66575,1,"\ud801\udc37"],[66576,1,"\ud801\udc38"],[66577,1,"\ud801\udc39"],[66578,1,"\ud801\udc3a"],[66579,1,"\ud801\udc3b"],[66580,1,"\ud801\udc3c"],[66581,1,"\ud801\udc3d"],[66582,1,"\ud801\udc3e"],[66583,1,"\ud801\udc3f"],[66584,1,"\ud801\udc40"],[66585,1,"\ud801\udc41"],[66586,1,"\ud801\udc42"],[66587,1,"\ud801\udc43"],[66588,1,"\ud801\udc44"],[66589,1,"\ud801\udc45"],[66590,1,"\ud801\udc46"],[66591,1,"\ud801\udc47"],[66592,1,"\ud801\udc48"],[66593,1,"\ud801\udc49"],[66594,1,"\ud801\udc4a"],[66595,1,"\ud801\udc4b"],[66596,1,"\ud801\udc4c"],[66597,1,"\ud801\udc4d"],[66598,1,"\ud801\udc4e"],[66599,1,"\ud801\udc4f"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\ud801\udcd8"],[66737,1,"\ud801\udcd9"],[66738,1,"\ud801\udcda"],[66739,1,"\ud801\udcdb"],[66740,1,"\ud801\udcdc"],[66741,1,"\ud801\udcdd"],[66742,1,"\ud801\udcde"],[66743,1,"\ud801\udcdf"],[66744,1,"\ud801\udce0"],[66745,1,"\ud801\udce1"],[66746,1,"\ud801\udce2"],[66747,1,"\ud801\udce3"],[66748,1,"\ud801\udce4"],[66749,1,"\ud801\udce5"],[66750,1,"\ud801\udce6"],[66751,1,"\ud801\udce7"],[66752,1,"\ud801\udce8"],[66753,1,"\ud801\udce9"],[66754,1,"\ud801\udcea"],[66755,1,"\ud801\udceb"],[66756,1,"\ud801\udcec"],[66757,1,"\ud801\udced"],[66758,1,"\ud801\udcee"],[66759,1,"\ud801\udcef"],[66760,1,"\ud801\udcf0"],[66761,1,"\ud801\udcf1"],[66762,1,"\ud801\udcf2"],[66763,1,"\ud801\udcf3"],[66764,1,"\ud801\udcf4"],[66765,1,"\ud801\udcf5"],[66766,1,"\ud801\udcf6"],[66767,1,"\ud801\udcf7"],[66768,1,"\ud801\udcf8"],[66769,1,"\ud801\udcf9"],[66770,1,"\ud801\udcfa"],[66771,1,"\ud801\udcfb"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"\ud801\udd97"],[66929,1,"\ud801\udd98"],[66930,1,"\ud801\udd99"],[66931,1,"\ud801\udd9a"],[66932,1,"\ud801\udd9b"],[66933,1,"\ud801\udd9c"],[66934,1,"\ud801\udd9d"],[66935,1,"\ud801\udd9e"],[66936,1,"\ud801\udd9f"],[66937,1,"\ud801\udda0"],[66938,1,"\ud801\udda1"],[66939,3],[66940,1,"\ud801\udda3"],[66941,1,"\ud801\udda4"],[66942,1,"\ud801\udda5"],[66943,1,"\ud801\udda6"],[66944,1,"\ud801\udda7"],[66945,1,"\ud801\udda8"],[66946,1,"\ud801\udda9"],[66947,1,"\ud801\uddaa"],[66948,1,"\ud801\uddab"],[66949,1,"\ud801\uddac"],[66950,1,"\ud801\uddad"],[66951,1,"\ud801\uddae"],[66952,1,"\ud801\uddaf"],[66953,1,"\ud801\uddb0"],[66954,1,"\ud801\uddb1"],[66955,3],[66956,1,"\ud801\uddb3"],[66957,1,"\ud801\uddb4"],[66958,1,"\ud801\uddb5"],[66959,1,"\ud801\uddb6"],[66960,1,"\ud801\uddb7"],[66961,1,"\ud801\uddb8"],[66962,1,"\ud801\uddb9"],[66963,3],[66964,1,"\ud801\uddbb"],[66965,1,"\ud801\uddbc"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"\u02d0"],[67458,1,"\u02d1"],[67459,1,"\xe6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02a3"],[67464,1,"\uab66"],[67465,1,"\u02a5"],[67466,1,"\u02a4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1d91"],[67470,1,"\u0258"],[67471,1,"\u025e"],[67472,1,"\u02a9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029b"],[67477,1,"\u0127"],[67478,1,"\u029c"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02aa"],[67482,1,"\u02ab"],[67483,1,"\u026c"],[67484,1,"\ud837\udf04"],[67485,1,"\ua78e"],[67486,1,"\u026e"],[67487,1,"\ud837\udf05"],[67488,1,"\u028e"],[67489,1,"\ud837\udf06"],[67490,1,"\xf8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027a"],[67495,1,"\ud837\udf08"],[67496,1,"\u027d"],[67497,1,"\u027e"],[67498,1,"\u0280"],[67499,1,"\u02a8"],[67500,1,"\u02a6"],[67501,1,"\uab67"],[67502,1,"\u02a7"],[67503,1,"\u0288"],[67504,1,"\u2c71"],[67505,3],[67506,1,"\u028f"],[67507,1,"\u02a1"],[67508,1,"\u02a2"],[67509,1,"\u0298"],[67510,1,"\u01c0"],[67511,1,"\u01c1"],[67512,1,"\u01c2"],[67513,1,"\ud837\udf0a"],[67514,1,"\ud837\udf1e"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"\ud803\udcc0"],[68737,1,"\ud803\udcc1"],[68738,1,"\ud803\udcc2"],[68739,1,"\ud803\udcc3"],[68740,1,"\ud803\udcc4"],[68741,1,"\ud803\udcc5"],[68742,1,"\ud803\udcc6"],[68743,1,"\ud803\udcc7"],[68744,1,"\ud803\udcc8"],[68745,1,"\ud803\udcc9"],[68746,1,"\ud803\udcca"],[68747,1,"\ud803\udccb"],[68748,1,"\ud803\udccc"],[68749,1,"\ud803\udccd"],[68750,1,"\ud803\udcce"],[68751,1,"\ud803\udccf"],[68752,1,"\ud803\udcd0"],[68753,1,"\ud803\udcd1"],[68754,1,"\ud803\udcd2"],[68755,1,"\ud803\udcd3"],[68756,1,"\ud803\udcd4"],[68757,1,"\ud803\udcd5"],[68758,1,"\ud803\udcd6"],[68759,1,"\ud803\udcd7"],[68760,1,"\ud803\udcd8"],[68761,1,"\ud803\udcd9"],[68762,1,"\ud803\udcda"],[68763,1,"\ud803\udcdb"],[68764,1,"\ud803\udcdc"],[68765,1,"\ud803\udcdd"],[68766,1,"\ud803\udcde"],[68767,1,"\ud803\udcdf"],[68768,1,"\ud803\udce0"],[68769,1,"\ud803\udce1"],[68770,1,"\ud803\udce2"],[68771,1,"\ud803\udce3"],[68772,1,"\ud803\udce4"],[68773,1,"\ud803\udce5"],[68774,1,"\ud803\udce6"],[68775,1,"\ud803\udce7"],[68776,1,"\ud803\udce8"],[68777,1,"\ud803\udce9"],[68778,1,"\ud803\udcea"],[68779,1,"\ud803\udceb"],[68780,1,"\ud803\udcec"],[68781,1,"\ud803\udced"],[68782,1,"\ud803\udcee"],[68783,1,"\ud803\udcef"],[68784,1,"\ud803\udcf0"],[68785,1,"\ud803\udcf1"],[68786,1,"\ud803\udcf2"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69372],3],[[69373,69375],2],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70209],2],[[70210,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"\ud806\udcc0"],[71841,1,"\ud806\udcc1"],[71842,1,"\ud806\udcc2"],[71843,1,"\ud806\udcc3"],[71844,1,"\ud806\udcc4"],[71845,1,"\ud806\udcc5"],[71846,1,"\ud806\udcc6"],[71847,1,"\ud806\udcc7"],[71848,1,"\ud806\udcc8"],[71849,1,"\ud806\udcc9"],[71850,1,"\ud806\udcca"],[71851,1,"\ud806\udccb"],[71852,1,"\ud806\udccc"],[71853,1,"\ud806\udccd"],[71854,1,"\ud806\udcce"],[71855,1,"\ud806\udccf"],[71856,1,"\ud806\udcd0"],[71857,1,"\ud806\udcd1"],[71858,1,"\ud806\udcd2"],[71859,1,"\ud806\udcd3"],[71860,1,"\ud806\udcd4"],[71861,1,"\ud806\udcd5"],[71862,1,"\ud806\udcd6"],[71863,1,"\ud806\udcd7"],[71864,1,"\ud806\udcd8"],[71865,1,"\ud806\udcd9"],[71866,1,"\ud806\udcda"],[71867,1,"\ud806\udcdb"],[71868,1,"\ud806\udcdc"],[71869,1,"\ud806\udcdd"],[71870,1,"\ud806\udcde"],[71871,1,"\ud806\udcdf"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72447],3],[[72448,72457],2],[[72458,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"\ud81b\ude60"],[93761,1,"\ud81b\ude61"],[93762,1,"\ud81b\ude62"],[93763,1,"\ud81b\ude63"],[93764,1,"\ud81b\ude64"],[93765,1,"\ud81b\ude65"],[93766,1,"\ud81b\ude66"],[93767,1,"\ud81b\ude67"],[93768,1,"\ud81b\ude68"],[93769,1,"\ud81b\ude69"],[93770,1,"\ud81b\ude6a"],[93771,1,"\ud81b\ude6b"],[93772,1,"\ud81b\ude6c"],[93773,1,"\ud81b\ude6d"],[93774,1,"\ud81b\ude6e"],[93775,1,"\ud81b\ude6f"],[93776,1,"\ud81b\ude70"],[93777,1,"\ud81b\ude71"],[93778,1,"\ud81b\ude72"],[93779,1,"\ud81b\ude73"],[93780,1,"\ud81b\ude74"],[93781,1,"\ud81b\ude75"],[93782,1,"\ud81b\ude76"],[93783,1,"\ud81b\ude77"],[93784,1,"\ud81b\ude78"],[93785,1,"\ud81b\ude79"],[93786,1,"\ud81b\ude7a"],[93787,1,"\ud81b\ude7b"],[93788,1,"\ud81b\ude7c"],[93789,1,"\ud81b\ude7d"],[93790,1,"\ud81b\ude7e"],[93791,1,"\ud81b\ude7f"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"\ud834\udd57\ud834\udd65"],[119135,1,"\ud834\udd58\ud834\udd65"],[119136,1,"\ud834\udd58\ud834\udd65\ud834\udd6e"],[119137,1,"\ud834\udd58\ud834\udd65\ud834\udd6f"],[119138,1,"\ud834\udd58\ud834\udd65\ud834\udd70"],[119139,1,"\ud834\udd58\ud834\udd65\ud834\udd71"],[119140,1,"\ud834\udd58\ud834\udd65\ud834\udd72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\ud834\uddb9\ud834\udd65"],[119228,1,"\ud834\uddba\ud834\udd65"],[119229,1,"\ud834\uddb9\ud834\udd65\ud834\udd6e"],[119230,1,"\ud834\uddba\ud834\udd65\ud834\udd6e"],[119231,1,"\ud834\uddb9\ud834\udd65\ud834\udd6f"],[119232,1,"\ud834\uddba\ud834\udd65\ud834\udd6f"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119487],3],[[119488,119507],2],[[119508,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03b1"],[120489,1,"\u03b2"],[120490,1,"\u03b3"],[120491,1,"\u03b4"],[120492,1,"\u03b5"],[120493,1,"\u03b6"],[120494,1,"\u03b7"],[120495,1,"\u03b8"],[120496,1,"\u03b9"],[120497,1,"\u03ba"],[120498,1,"\u03bb"],[120499,1,"\u03bc"],[120500,1,"\u03bd"],[120501,1,"\u03be"],[120502,1,"\u03bf"],[120503,1,"\u03c0"],[120504,1,"\u03c1"],[120505,1,"\u03b8"],[120506,1,"\u03c3"],[120507,1,"\u03c4"],[120508,1,"\u03c5"],[120509,1,"\u03c6"],[120510,1,"\u03c7"],[120511,1,"\u03c8"],[120512,1,"\u03c9"],[120513,1,"\u2207"],[120514,1,"\u03b1"],[120515,1,"\u03b2"],[120516,1,"\u03b3"],[120517,1,"\u03b4"],[120518,1,"\u03b5"],[120519,1,"\u03b6"],[120520,1,"\u03b7"],[120521,1,"\u03b8"],[120522,1,"\u03b9"],[120523,1,"\u03ba"],[120524,1,"\u03bb"],[120525,1,"\u03bc"],[120526,1,"\u03bd"],[120527,1,"\u03be"],[120528,1,"\u03bf"],[120529,1,"\u03c0"],[120530,1,"\u03c1"],[[120531,120532],1,"\u03c3"],[120533,1,"\u03c4"],[120534,1,"\u03c5"],[120535,1,"\u03c6"],[120536,1,"\u03c7"],[120537,1,"\u03c8"],[120538,1,"\u03c9"],[120539,1,"\u2202"],[120540,1,"\u03b5"],[120541,1,"\u03b8"],[120542,1,"\u03ba"],[120543,1,"\u03c6"],[120544,1,"\u03c1"],[120545,1,"\u03c0"],[120546,1,"\u03b1"],[120547,1,"\u03b2"],[120548,1,"\u03b3"],[120549,1,"\u03b4"],[120550,1,"\u03b5"],[120551,1,"\u03b6"],[120552,1,"\u03b7"],[120553,1,"\u03b8"],[120554,1,"\u03b9"],[120555,1,"\u03ba"],[120556,1,"\u03bb"],[120557,1,"\u03bc"],[120558,1,"\u03bd"],[120559,1,"\u03be"],[120560,1,"\u03bf"],[120561,1,"\u03c0"],[120562,1,"\u03c1"],[120563,1,"\u03b8"],[120564,1,"\u03c3"],[120565,1,"\u03c4"],[120566,1,"\u03c5"],[120567,1,"\u03c6"],[120568,1,"\u03c7"],[120569,1,"\u03c8"],[120570,1,"\u03c9"],[120571,1,"\u2207"],[120572,1,"\u03b1"],[120573,1,"\u03b2"],[120574,1,"\u03b3"],[120575,1,"\u03b4"],[120576,1,"\u03b5"],[120577,1,"\u03b6"],[120578,1,"\u03b7"],[120579,1,"\u03b8"],[120580,1,"\u03b9"],[120581,1,"\u03ba"],[120582,1,"\u03bb"],[120583,1,"\u03bc"],[120584,1,"\u03bd"],[120585,1,"\u03be"],[120586,1,"\u03bf"],[120587,1,"\u03c0"],[120588,1,"\u03c1"],[[120589,120590],1,"\u03c3"],[120591,1,"\u03c4"],[120592,1,"\u03c5"],[120593,1,"\u03c6"],[120594,1,"\u03c7"],[120595,1,"\u03c8"],[120596,1,"\u03c9"],[120597,1,"\u2202"],[120598,1,"\u03b5"],[120599,1,"\u03b8"],[120600,1,"\u03ba"],[120601,1,"\u03c6"],[120602,1,"\u03c1"],[120603,1,"\u03c0"],[120604,1,"\u03b1"],[120605,1,"\u03b2"],[120606,1,"\u03b3"],[120607,1,"\u03b4"],[120608,1,"\u03b5"],[120609,1,"\u03b6"],[120610,1,"\u03b7"],[120611,1,"\u03b8"],[120612,1,"\u03b9"],[120613,1,"\u03ba"],[120614,1,"\u03bb"],[120615,1,"\u03bc"],[120616,1,"\u03bd"],[120617,1,"\u03be"],[120618,1,"\u03bf"],[120619,1,"\u03c0"],[120620,1,"\u03c1"],[120621,1,"\u03b8"],[120622,1,"\u03c3"],[120623,1,"\u03c4"],[120624,1,"\u03c5"],[120625,1,"\u03c6"],[120626,1,"\u03c7"],[120627,1,"\u03c8"],[120628,1,"\u03c9"],[120629,1,"\u2207"],[120630,1,"\u03b1"],[120631,1,"\u03b2"],[120632,1,"\u03b3"],[120633,1,"\u03b4"],[120634,1,"\u03b5"],[120635,1,"\u03b6"],[120636,1,"\u03b7"],[120637,1,"\u03b8"],[120638,1,"\u03b9"],[120639,1,"\u03ba"],[120640,1,"\u03bb"],[120641,1,"\u03bc"],[120642,1,"\u03bd"],[120643,1,"\u03be"],[120644,1,"\u03bf"],[120645,1,"\u03c0"],[120646,1,"\u03c1"],[[120647,120648],1,"\u03c3"],[120649,1,"\u03c4"],[120650,1,"\u03c5"],[120651,1,"\u03c6"],[120652,1,"\u03c7"],[120653,1,"\u03c8"],[120654,1,"\u03c9"],[120655,1,"\u2202"],[120656,1,"\u03b5"],[120657,1,"\u03b8"],[120658,1,"\u03ba"],[120659,1,"\u03c6"],[120660,1,"\u03c1"],[120661,1,"\u03c0"],[120662,1,"\u03b1"],[120663,1,"\u03b2"],[120664,1,"\u03b3"],[120665,1,"\u03b4"],[120666,1,"\u03b5"],[120667,1,"\u03b6"],[120668,1,"\u03b7"],[120669,1,"\u03b8"],[120670,1,"\u03b9"],[120671,1,"\u03ba"],[120672,1,"\u03bb"],[120673,1,"\u03bc"],[120674,1,"\u03bd"],[120675,1,"\u03be"],[120676,1,"\u03bf"],[120677,1,"\u03c0"],[120678,1,"\u03c1"],[120679,1,"\u03b8"],[120680,1,"\u03c3"],[120681,1,"\u03c4"],[120682,1,"\u03c5"],[120683,1,"\u03c6"],[120684,1,"\u03c7"],[120685,1,"\u03c8"],[120686,1,"\u03c9"],[120687,1,"\u2207"],[120688,1,"\u03b1"],[120689,1,"\u03b2"],[120690,1,"\u03b3"],[120691,1,"\u03b4"],[120692,1,"\u03b5"],[120693,1,"\u03b6"],[120694,1,"\u03b7"],[120695,1,"\u03b8"],[120696,1,"\u03b9"],[120697,1,"\u03ba"],[120698,1,"\u03bb"],[120699,1,"\u03bc"],[120700,1,"\u03bd"],[120701,1,"\u03be"],[120702,1,"\u03bf"],[120703,1,"\u03c0"],[120704,1,"\u03c1"],[[120705,120706],1,"\u03c3"],[120707,1,"\u03c4"],[120708,1,"\u03c5"],[120709,1,"\u03c6"],[120710,1,"\u03c7"],[120711,1,"\u03c8"],[120712,1,"\u03c9"],[120713,1,"\u2202"],[120714,1,"\u03b5"],[120715,1,"\u03b8"],[120716,1,"\u03ba"],[120717,1,"\u03c6"],[120718,1,"\u03c1"],[120719,1,"\u03c0"],[120720,1,"\u03b1"],[120721,1,"\u03b2"],[120722,1,"\u03b3"],[120723,1,"\u03b4"],[120724,1,"\u03b5"],[120725,1,"\u03b6"],[120726,1,"\u03b7"],[120727,1,"\u03b8"],[120728,1,"\u03b9"],[120729,1,"\u03ba"],[120730,1,"\u03bb"],[120731,1,"\u03bc"],[120732,1,"\u03bd"],[120733,1,"\u03be"],[120734,1,"\u03bf"],[120735,1,"\u03c0"],[120736,1,"\u03c1"],[120737,1,"\u03b8"],[120738,1,"\u03c3"],[120739,1,"\u03c4"],[120740,1,"\u03c5"],[120741,1,"\u03c6"],[120742,1,"\u03c7"],[120743,1,"\u03c8"],[120744,1,"\u03c9"],[120745,1,"\u2207"],[120746,1,"\u03b1"],[120747,1,"\u03b2"],[120748,1,"\u03b3"],[120749,1,"\u03b4"],[120750,1,"\u03b5"],[120751,1,"\u03b6"],[120752,1,"\u03b7"],[120753,1,"\u03b8"],[120754,1,"\u03b9"],[120755,1,"\u03ba"],[120756,1,"\u03bb"],[120757,1,"\u03bc"],[120758,1,"\u03bd"],[120759,1,"\u03be"],[120760,1,"\u03bf"],[120761,1,"\u03c0"],[120762,1,"\u03c1"],[[120763,120764],1,"\u03c3"],[120765,1,"\u03c4"],[120766,1,"\u03c5"],[120767,1,"\u03c6"],[120768,1,"\u03c7"],[120769,1,"\u03c8"],[120770,1,"\u03c9"],[120771,1,"\u2202"],[120772,1,"\u03b5"],[120773,1,"\u03b8"],[120774,1,"\u03ba"],[120775,1,"\u03c6"],[120776,1,"\u03c1"],[120777,1,"\u03c0"],[[120778,120779],1,"\u03dd"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122660],3],[[122661,122666],2],[[122667,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,122927],3],[122928,1,"\u0430"],[122929,1,"\u0431"],[122930,1,"\u0432"],[122931,1,"\u0433"],[122932,1,"\u0434"],[122933,1,"\u0435"],[122934,1,"\u0436"],[122935,1,"\u0437"],[122936,1,"\u0438"],[122937,1,"\u043a"],[122938,1,"\u043b"],[122939,1,"\u043c"],[122940,1,"\u043e"],[122941,1,"\u043f"],[122942,1,"\u0440"],[122943,1,"\u0441"],[122944,1,"\u0442"],[122945,1,"\u0443"],[122946,1,"\u0444"],[122947,1,"\u0445"],[122948,1,"\u0446"],[122949,1,"\u0447"],[122950,1,"\u0448"],[122951,1,"\u044b"],[122952,1,"\u044d"],[122953,1,"\u044e"],[122954,1,"\ua689"],[122955,1,"\u04d9"],[122956,1,"\u0456"],[122957,1,"\u0458"],[122958,1,"\u04e9"],[122959,1,"\u04af"],[122960,1,"\u04cf"],[122961,1,"\u0430"],[122962,1,"\u0431"],[122963,1,"\u0432"],[122964,1,"\u0433"],[122965,1,"\u0434"],[122966,1,"\u0435"],[122967,1,"\u0436"],[122968,1,"\u0437"],[122969,1,"\u0438"],[122970,1,"\u043a"],[122971,1,"\u043b"],[122972,1,"\u043e"],[122973,1,"\u043f"],[122974,1,"\u0441"],[122975,1,"\u0443"],[122976,1,"\u0444"],[122977,1,"\u0445"],[122978,1,"\u0446"],[122979,1,"\u0447"],[122980,1,"\u0448"],[122981,1,"\u044a"],[122982,1,"\u044b"],[122983,1,"\u0491"],[122984,1,"\u0456"],[122985,1,"\u0455"],[122986,1,"\u045f"],[122987,1,"\u04ab"],[122988,1,"\ua651"],[122989,1,"\u04b1"],[[122990,123022],3],[123023,2],[[123024,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124111],3],[[124112,124153],2],[[124154,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"\ud83a\udd22"],[125185,1,"\ud83a\udd23"],[125186,1,"\ud83a\udd24"],[125187,1,"\ud83a\udd25"],[125188,1,"\ud83a\udd26"],[125189,1,"\ud83a\udd27"],[125190,1,"\ud83a\udd28"],[125191,1,"\ud83a\udd29"],[125192,1,"\ud83a\udd2a"],[125193,1,"\ud83a\udd2b"],[125194,1,"\ud83a\udd2c"],[125195,1,"\ud83a\udd2d"],[125196,1,"\ud83a\udd2e"],[125197,1,"\ud83a\udd2f"],[125198,1,"\ud83a\udd30"],[125199,1,"\ud83a\udd31"],[125200,1,"\ud83a\udd32"],[125201,1,"\ud83a\udd33"],[125202,1,"\ud83a\udd34"],[125203,1,"\ud83a\udd35"],[125204,1,"\ud83a\udd36"],[125205,1,"\ud83a\udd37"],[125206,1,"\ud83a\udd38"],[125207,1,"\ud83a\udd39"],[125208,1,"\ud83a\udd3a"],[125209,1,"\ud83a\udd3b"],[125210,1,"\ud83a\udd3c"],[125211,1,"\ud83a\udd3d"],[125212,1,"\ud83a\udd3e"],[125213,1,"\ud83a\udd3f"],[125214,1,"\ud83a\udd40"],[125215,1,"\ud83a\udd41"],[125216,1,"\ud83a\udd42"],[125217,1,"\ud83a\udd43"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062c"],[126467,1,"\u062f"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062d"],[126472,1,"\u0637"],[126473,1,"\u064a"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062a"],[126486,1,"\u062b"],[126487,1,"\u062e"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063a"],[126492,1,"\u066e"],[126493,1,"\u06ba"],[126494,1,"\u06a1"],[126495,1,"\u066f"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062c"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062d"],[126504,3],[126505,1,"\u064a"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062a"],[126518,1,"\u062b"],[126519,1,"\u062e"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063a"],[[126524,126529],3],[126530,1,"\u062c"],[[126531,126534],3],[126535,1,"\u062d"],[126536,3],[126537,1,"\u064a"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062e"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063a"],[126556,3],[126557,1,"\u06ba"],[126558,3],[126559,1,"\u066f"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062c"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062d"],[126568,1,"\u0637"],[126569,1,"\u064a"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062a"],[126582,1,"\u062b"],[126583,1,"\u062e"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063a"],[126588,1,"\u066e"],[126589,3],[126590,1,"\u06a1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062c"],[126595,1,"\u062f"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062d"],[126600,1,"\u0637"],[126601,1,"\u064a"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062a"],[126614,1,"\u062b"],[126615,1,"\u062e"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063a"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062c"],[126627,1,"\u062f"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062d"],[126632,1,"\u0637"],[126633,1,"\u064a"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062a"],[126646,1,"\u062b"],[126647,1,"\u062e"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063a"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"\u3014s\u3015"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"\u307b\u304b"],[127489,1,"\u30b3\u30b3"],[127490,1,"\u30b5"],[[127491,127503],3],[127504,1,"\u624b"],[127505,1,"\u5b57"],[127506,1,"\u53cc"],[127507,1,"\u30c7"],[127508,1,"\u4e8c"],[127509,1,"\u591a"],[127510,1,"\u89e3"],[127511,1,"\u5929"],[127512,1,"\u4ea4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524d"],[127517,1,"\u5f8c"],[127518,1,"\u518d"],[127519,1,"\u65b0"],[127520,1,"\u521d"],[127521,1,"\u7d42"],[127522,1,"\u751f"],[127523,1,"\u8ca9"],[127524,1,"\u58f0"],[127525,1,"\u5439"],[127526,1,"\u6f14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4e00"],[127530,1,"\u4e09"],[127531,1,"\u904a"],[127532,1,"\u5de6"],[127533,1,"\u4e2d"],[127534,1,"\u53f3"],[127535,1,"\u6307"],[127536,1,"\u8d70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7a7a"],[127540,1,"\u5408"],[127541,1,"\u6e80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55b6"],[127547,1,"\u914d"],[[127548,127551],3],[127552,1,"\u3014\u672c\u3015"],[127553,1,"\u3014\u4e09\u3015"],[127554,1,"\u3014\u4e8c\u3015"],[127555,1,"\u3014\u5b89\u3015"],[127556,1,"\u3014\u70b9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76d7\u3015"],[127559,1,"\u3014\u52dd\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5f97"],[127569,1,"\u53ef"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128731],3],[128732,2],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[177977,2],[[177978,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,191471],3],[[191472,192093],2],[[192094,194559],3],[194560,1,"\u4e3d"],[194561,1,"\u4e38"],[194562,1,"\u4e41"],[194563,1,"\ud840\udd22"],[194564,1,"\u4f60"],[194565,1,"\u4fae"],[194566,1,"\u4fbb"],[194567,1,"\u5002"],[194568,1,"\u507a"],[194569,1,"\u5099"],[194570,1,"\u50e7"],[194571,1,"\u50cf"],[194572,1,"\u349e"],[194573,1,"\ud841\ude3a"],[194574,1,"\u514d"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\ud841\udd1c"],[194579,1,"\u34b9"],[194580,1,"\u5167"],[194581,1,"\u518d"],[194582,1,"\ud841\udd4b"],[194583,1,"\u5197"],[194584,1,"\u51a4"],[194585,1,"\u4ecc"],[194586,1,"\u51ac"],[194587,1,"\u51b5"],[194588,1,"\ud864\udddf"],[194589,1,"\u51f5"],[194590,1,"\u5203"],[194591,1,"\u34df"],[194592,1,"\u523b"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52c7"],[194598,1,"\u52c9"],[194599,1,"\u52e4"],[194600,1,"\u52fa"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535a"],[194607,1,"\u5373"],[194608,1,"\u537d"],[[194609,194611],1,"\u537f"],[194612,1,"\ud842\ude2c"],[194613,1,"\u7070"],[194614,1,"\u53ca"],[194615,1,"\u53df"],[194616,1,"\ud842\udf63"],[194617,1,"\u53eb"],[194618,1,"\u53f1"],[194619,1,"\u5406"],[194620,1,"\u549e"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54a2"],[194625,1,"\u54f6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55ab"],[194633,1,"\u55b3"],[194634,1,"\u55c2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58ee"],[194642,1,"\u57ce"],[194643,1,"\u57f4"],[194644,1,"\u580d"],[194645,1,"\u578b"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58ac"],[194649,1,"\ud845\udce4"],[194650,1,"\u58f2"],[194651,1,"\u58f7"],[194652,1,"\u5906"],[194653,1,"\u591a"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\ud845\udea8"],[194657,1,"\ud845\udeea"],[194658,1,"\u59ec"],[194659,1,"\u5a1b"],[194660,1,"\u5a27"],[194661,1,"\u59d8"],[194662,1,"\u5a66"],[194663,1,"\u36ee"],[194664,3],[194665,1,"\u5b08"],[[194666,194667],1,"\u5b3e"],[194668,1,"\ud846\uddc8"],[194669,1,"\u5bc3"],[194670,1,"\u5bd8"],[194671,1,"\u5be7"],[194672,1,"\u5bf3"],[194673,1,"\ud846\udf18"],[194674,1,"\u5bff"],[194675,1,"\u5c06"],[194676,3],[194677,1,"\u5c22"],[194678,1,"\u3781"],[194679,1,"\u5c60"],[194680,1,"\u5c6e"],[194681,1,"\u5cc0"],[194682,1,"\u5c8d"],[194683,1,"\ud847\udde4"],[194684,1,"\u5d43"],[194685,1,"\ud847\udde6"],[194686,1,"\u5d6e"],[194687,1,"\u5d6b"],[194688,1,"\u5d7c"],[194689,1,"\u5de1"],[194690,1,"\u5de2"],[194691,1,"\u382f"],[194692,1,"\u5dfd"],[194693,1,"\u5e28"],[194694,1,"\u5e3d"],[194695,1,"\u5e69"],[194696,1,"\u3862"],[194697,1,"\ud848\udd83"],[194698,1,"\u387c"],[194699,1,"\u5eb0"],[194700,1,"\u5eb3"],[194701,1,"\u5eb6"],[194702,1,"\u5eca"],[194703,1,"\ud868\udf92"],[194704,1,"\u5efe"],[[194705,194706],1,"\ud848\udf31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5f22"],[194710,1,"\u38c7"],[194711,1,"\ud84c\udeb8"],[194712,1,"\ud858\uddda"],[194713,1,"\u5f62"],[194714,1,"\u5f6b"],[194715,1,"\u38e3"],[194716,1,"\u5f9a"],[194717,1,"\u5fcd"],[194718,1,"\u5fd7"],[194719,1,"\u5ff9"],[194720,1,"\u6081"],[194721,1,"\u393a"],[194722,1,"\u391c"],[194723,1,"\u6094"],[194724,1,"\ud849\uded4"],[194725,1,"\u60c7"],[194726,1,"\u6148"],[194727,1,"\u614c"],[194728,1,"\u614e"],[194729,1,"\u614c"],[194730,1,"\u617a"],[194731,1,"\u618e"],[194732,1,"\u61b2"],[194733,1,"\u61a4"],[194734,1,"\u61af"],[194735,1,"\u61de"],[194736,1,"\u61f2"],[194737,1,"\u61f6"],[194738,1,"\u6210"],[194739,1,"\u621b"],[194740,1,"\u625d"],[194741,1,"\u62b1"],[194742,1,"\u62d4"],[194743,1,"\u6350"],[194744,1,"\ud84a\udf0c"],[194745,1,"\u633d"],[194746,1,"\u62fc"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63e4"],[194750,1,"\ud84a\udff1"],[194751,1,"\u6422"],[194752,1,"\u63c5"],[194753,1,"\u63a9"],[194754,1,"\u3a2e"],[194755,1,"\u6469"],[194756,1,"\u647e"],[194757,1,"\u649d"],[194758,1,"\u6477"],[194759,1,"\u3a6c"],[194760,1,"\u654f"],[194761,1,"\u656c"],[194762,1,"\ud84c\udc0a"],[194763,1,"\u65e3"],[194764,1,"\u66f8"],[194765,1,"\u6649"],[194766,1,"\u3b19"],[194767,1,"\u6691"],[194768,1,"\u3b08"],[194769,1,"\u3ae4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669c"],[194774,1,"\u80ad"],[194775,1,"\u43d9"],[194776,1,"\u6717"],[194777,1,"\u671b"],[194778,1,"\u6721"],[194779,1,"\u675e"],[194780,1,"\u6753"],[194781,1,"\ud84c\udfc3"],[194782,1,"\u3b49"],[194783,1,"\u67fa"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\ud84d\udc6d"],[194788,1,"\u688e"],[194789,1,"\u681f"],[194790,1,"\u6914"],[194791,1,"\u3b9d"],[194792,1,"\u6942"],[194793,1,"\u69a3"],[194794,1,"\u69ea"],[194795,1,"\u6aa8"],[194796,1,"\ud84d\udea3"],[194797,1,"\u6adb"],[194798,1,"\u3c18"],[194799,1,"\u6b21"],[194800,1,"\ud84e\udca7"],[194801,1,"\u6b54"],[194802,1,"\u3c4e"],[194803,1,"\u6b72"],[194804,1,"\u6b9f"],[194805,1,"\u6bba"],[194806,1,"\u6bbb"],[194807,1,"\ud84e\ude8d"],[194808,1,"\ud847\udd0b"],[194809,1,"\ud84e\udefa"],[194810,1,"\u6c4e"],[194811,1,"\ud84f\udcbc"],[194812,1,"\u6cbf"],[194813,1,"\u6ccd"],[194814,1,"\u6c67"],[194815,1,"\u6d16"],[194816,1,"\u6d3e"],[194817,1,"\u6d77"],[194818,1,"\u6d41"],[194819,1,"\u6d69"],[194820,1,"\u6d78"],[194821,1,"\u6d85"],[194822,1,"\ud84f\udd1e"],[194823,1,"\u6d34"],[194824,1,"\u6e2f"],[194825,1,"\u6e6e"],[194826,1,"\u3d33"],[194827,1,"\u6ecb"],[194828,1,"\u6ec7"],[194829,1,"\ud84f\uded1"],[194830,1,"\u6df9"],[194831,1,"\u6f6e"],[194832,1,"\ud84f\udf5e"],[194833,1,"\ud84f\udf8e"],[194834,1,"\u6fc6"],[194835,1,"\u7039"],[194836,1,"\u701e"],[194837,1,"\u701b"],[194838,1,"\u3d96"],[194839,1,"\u704a"],[194840,1,"\u707d"],[194841,1,"\u7077"],[194842,1,"\u70ad"],[194843,1,"\ud841\udd25"],[194844,1,"\u7145"],[194845,1,"\ud850\ude63"],[194846,1,"\u719c"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\ud851\ude08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\ud851\udf35"],[194855,1,"\ud852\udc14"],[194856,1,"\u737a"],[194857,1,"\u738b"],[194858,1,"\u3eac"],[194859,1,"\u73a5"],[[194860,194861],1,"\u3eb8"],[194862,1,"\u7447"],[194863,1,"\u745c"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74ca"],[194867,1,"\u3f1b"],[194868,1,"\u7524"],[194869,1,"\ud853\udc36"],[194870,1,"\u753e"],[194871,1,"\ud853\udc92"],[194872,1,"\u7570"],[194873,1,"\ud848\udd9f"],[194874,1,"\u7610"],[194875,1,"\ud853\udfa1"],[194876,1,"\ud853\udfb8"],[194877,1,"\ud854\udc44"],[194878,1,"\u3ffc"],[194879,1,"\u4008"],[194880,1,"\u76f4"],[194881,1,"\ud854\udcf3"],[194882,1,"\ud854\udcf2"],[194883,1,"\ud854\udd19"],[194884,1,"\ud854\udd33"],[194885,1,"\u771e"],[[194886,194887],1,"\u771f"],[194888,1,"\u774a"],[194889,1,"\u4039"],[194890,1,"\u778b"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\ud855\udc1d"],[194894,1,"\u784e"],[194895,1,"\u788c"],[194896,1,"\u78cc"],[194897,1,"\u40e3"],[194898,1,"\ud855\ude26"],[194899,1,"\u7956"],[194900,1,"\ud855\ude9a"],[194901,1,"\ud855\udec5"],[194902,1,"\u798f"],[194903,1,"\u79eb"],[194904,1,"\u412f"],[194905,1,"\u7a40"],[194906,1,"\u7a4a"],[194907,1,"\u7a4f"],[194908,1,"\ud856\udd7c"],[[194909,194910],1,"\ud856\udea7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\ud856\udfab"],[194914,1,"\u7bc6"],[194915,1,"\u7bc9"],[194916,1,"\u4227"],[194917,1,"\ud857\udc80"],[194918,1,"\u7cd2"],[194919,1,"\u42a0"],[194920,1,"\u7ce8"],[194921,1,"\u7ce3"],[194922,1,"\u7d00"],[194923,1,"\ud857\udf86"],[194924,1,"\u7d63"],[194925,1,"\u4301"],[194926,1,"\u7dc7"],[194927,1,"\u7e02"],[194928,1,"\u7e45"],[194929,1,"\u4334"],[194930,1,"\ud858\ude28"],[194931,1,"\ud858\ude47"],[194932,1,"\u4359"],[194933,1,"\ud858\uded9"],[194934,1,"\u7f7a"],[194935,1,"\ud858\udf3e"],[194936,1,"\u7f95"],[194937,1,"\u7ffa"],[194938,1,"\u8005"],[194939,1,"\ud859\udcda"],[194940,1,"\ud859\udd23"],[194941,1,"\u8060"],[194942,1,"\ud859\udda8"],[194943,1,"\u8070"],[194944,1,"\ud84c\udf5f"],[194945,1,"\u43d5"],[194946,1,"\u80b2"],[194947,1,"\u8103"],[194948,1,"\u440b"],[194949,1,"\u813e"],[194950,1,"\u5ab5"],[194951,1,"\ud859\udfa7"],[194952,1,"\ud859\udfb5"],[194953,1,"\ud84c\udf93"],[194954,1,"\ud84c\udf9c"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8f9e"],[194958,1,"\u446b"],[194959,1,"\u8291"],[194960,1,"\u828b"],[194961,1,"\u829d"],[194962,1,"\u52b3"],[194963,1,"\u82b1"],[194964,1,"\u82b3"],[194965,1,"\u82bd"],[194966,1,"\u82e6"],[194967,1,"\ud85a\udf3c"],[194968,1,"\u82e5"],[194969,1,"\u831d"],[194970,1,"\u8363"],[194971,1,"\u83ad"],[194972,1,"\u8323"],[194973,1,"\u83bd"],[194974,1,"\u83e7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83ca"],[194978,1,"\u83cc"],[194979,1,"\u83dc"],[194980,1,"\ud85b\udc36"],[194981,1,"\ud85b\udd6b"],[194982,1,"\ud85b\udcd5"],[194983,1,"\u452b"],[194984,1,"\u84f1"],[194985,1,"\u84f3"],[194986,1,"\u8516"],[194987,1,"\ud85c\udfca"],[194988,1,"\u8564"],[194989,1,"\ud85b\udf2c"],[194990,1,"\u455d"],[194991,1,"\u4561"],[194992,1,"\ud85b\udfb1"],[194993,1,"\ud85c\udcd2"],[194994,1,"\u456b"],[194995,1,"\u8650"],[194996,1,"\u865c"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86a9"],[195000,1,"\u8688"],[195001,1,"\u870e"],[195002,1,"\u86e2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876b"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87e1"],[195009,1,"\u8801"],[195010,1,"\u45f9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\ud85d\ude67"],[195014,1,"\u88d7"],[195015,1,"\u88de"],[195016,1,"\u4635"],[195017,1,"\u88fa"],[195018,1,"\u34bb"],[195019,1,"\ud85e\udcae"],[195020,1,"\ud85e\udd66"],[195021,1,"\u46be"],[195022,1,"\u46c7"],[195023,1,"\u8aa0"],[195024,1,"\u8aed"],[195025,1,"\u8b8a"],[195026,1,"\u8c55"],[195027,1,"\ud85f\udca8"],[195028,1,"\u8cab"],[195029,1,"\u8cc1"],[195030,1,"\u8d1b"],[195031,1,"\u8d77"],[195032,1,"\ud85f\udf2f"],[195033,1,"\ud842\udc04"],[195034,1,"\u8dcb"],[195035,1,"\u8dbc"],[195036,1,"\u8df0"],[195037,1,"\ud842\udcde"],[195038,1,"\u8ed4"],[195039,1,"\u8f38"],[195040,1,"\ud861\uddd2"],[195041,1,"\ud861\udded"],[195042,1,"\u9094"],[195043,1,"\u90f1"],[195044,1,"\u9111"],[195045,1,"\ud861\udf2e"],[195046,1,"\u911b"],[195047,1,"\u9238"],[195048,1,"\u92d7"],[195049,1,"\u92d8"],[195050,1,"\u927c"],[195051,1,"\u93f9"],[195052,1,"\u9415"],[195053,1,"\ud862\udffa"],[195054,1,"\u958b"],[195055,1,"\u4995"],[195056,1,"\u95b7"],[195057,1,"\ud863\udd77"],[195058,1,"\u49e6"],[195059,1,"\u96c3"],[195060,1,"\u5db2"],[195061,1,"\u9723"],[195062,1,"\ud864\udd45"],[195063,1,"\ud864\ude1a"],[195064,1,"\u4a6e"],[195065,1,"\u4a76"],[195066,1,"\u97e0"],[195067,1,"\ud865\udc0a"],[195068,1,"\u4ab2"],[195069,1,"\ud865\udc96"],[[195070,195071],1,"\u980b"],[195072,1,"\u9829"],[195073,1,"\ud865\uddb6"],[195074,1,"\u98e2"],[195075,1,"\u4b33"],[195076,1,"\u9929"],[195077,1,"\u99a7"],[195078,1,"\u99c2"],[195079,1,"\u99fe"],[195080,1,"\u4bce"],[195081,1,"\ud866\udf30"],[195082,1,"\u9b12"],[195083,1,"\u9c40"],[195084,1,"\u9cfd"],[195085,1,"\u4cce"],[195086,1,"\u4ced"],[195087,1,"\u9d67"],[195088,1,"\ud868\udcce"],[195089,1,"\u4cf8"],[195090,1,"\ud868\udd05"],[195091,1,"\ud868\ude0e"],[195092,1,"\ud868\ude91"],[195093,1,"\u9ebb"],[195094,1,"\u4d56"],[195095,1,"\u9ef9"],[195096,1,"\u9efe"],[195097,1,"\u9f05"],[195098,1,"\u9f0f"],[195099,1,"\u9f16"],[195100,1,"\u9f3b"],[195101,1,"\ud869\ude00"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,201551],3],[[201552,205743],2],[[205744,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);__webpack_require__.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>n[e]));return o.default=()=>n,__webpack_require__.d(i,o),i}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>"static/js/"+e+"."+{4:"5dc619ea",78:"2882f779",806:"0ace11f1",952:"ef2034ff"}[e]+".chunk.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="web:";__webpack_require__.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var a,s;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+i){a=u;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="/",(()=>{var e={792:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,o=n[0],a=n[1],s=n[2],l=0;if(o.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkweb=self.webpackChunkweb||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{attentionMarkers:()=>Md,contentInitial:()=>Fd,disable:()=>Ld,document:()=>Dd,flow:()=>Id,flowInitial:()=>Nd,insideSpan:()=>jd,string:()=>Rd,text:()=>Od});const t="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function n(e){return e&&e.Math==Math?e:void 0}const r="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof __webpack_require__.g&&n(__webpack_require__.g)||function(){return this}()||{};function i(){return r}function o(e,t,n){const i=n||r,o=i.__SENTRY__=i.__SENTRY__||{};return o[e]||(o[e]=t())}const a=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in r))return e();const t=r.console,n={},i=Object.keys(s);i.forEach((e=>{const r=s[e];n[e]=t[e],t[e]=r}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const n={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return t?a.forEach((t=>{n[t]=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];e&&l((()=>{r.console[t]("".concat("Sentry Logger ","[").concat(t,"]:"),...i)}))}})):a.forEach((e=>{n[e]=()=>{}})),n}(),u=Object.prototype.toString;function d(e){switch(u.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(e,Error)}}function p(e,t){return u.call(e)==="[object ".concat(t,"]")}function h(e){return p(e,"ErrorEvent")}function f(e){return p(e,"DOMError")}function m(e){return p(e,"String")}function g(e){return"object"===typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function v(e){return null===e||g(e)||"object"!==typeof e&&"function"!==typeof e}function y(e){return p(e,"Object")}function b(e){return"undefined"!==typeof Event&&x(e,Event)}function w(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function x(e,t){try{return e instanceof t}catch(n){return!1}}function C(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}const A=i(),E=80;function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||E;for(;n&&o++<r&&(c=T(n,u),!("html"===c||o>1&&a+i.length*l+c.length>=d));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch(n){return"<unknown>"}}function T(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";if(A.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(n.id&&r.push("#".concat(n.id)),i=n.className,i&&m(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(".".concat(o[l]));const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push("[".concat(a,'="').concat(s,'"]'));return r.join("")}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function k(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];try{C(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!m(e)&&(p(t,"RegExp")?t.test(e):!!m(t)&&(n?e===t:e.includes(t)))}function D(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>P(e,n,t)))}function F(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&I(i,r),e[t]=i}function N(e,n,r){try{Object.defineProperty(e,n,{value:r,writable:!0,configurable:!0})}catch(i){t&&c.log('Failed to add non-enumerable property "'.concat(n,'" to object'),e)}}function I(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,N(e,"__sentry_original__",t)}catch(n){}}function R(e){return e.__sentry_original__}function O(e){if(d(e))return{message:e.message,name:e.name,stack:e.stack,...M(e)};if(b(e)){const t={type:e.type,target:j(e.target),currentTarget:j(e.currentTarget),...M(e)};return"undefined"!==typeof CustomEvent&&x(e,CustomEvent)&&(t.detail=e.detail),t}return e}function j(e){try{return t=e,"undefined"!==typeof Element&&x(t,Element)?_(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function M(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function L(e){return B(e,new Map)}function B(e,t){if(function(e){if(!y(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=B(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(B(e,t))})),r}return e}function U(){const e=r,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(ns){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function V(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function H(e){const{message:t,event_id:n}=e;if(t)return t;const r=V(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function z(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function W(e,t){const n=V(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function q(e){if(e&&e.__sentry_captured__)return!0;try{N(e,"__sentry_captured__",!0)}catch(t){}return!1}function G(e){return Array.isArray(e)?e:[e]}const Y="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var K;function Q(e){return new Z((t=>{t(e)}))}function X(e){return new Z(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(K||(K={}));class Z{constructor(e){Z.prototype.__init.call(this),Z.prototype.__init2.call(this),Z.prototype.__init3.call(this),Z.prototype.__init4.call(this),this._state=K.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new Z(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Z(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(K.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(K.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===K.PENDING&&(w(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===K.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===K.RESOLVED&&e[1](this._value),this._state===K.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function J(){return o("globalEventProcessors",(()=>[]))}function $(e){J().push(e)}function ee(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Z(((i,o)=>{const a=e[r];if(null===t||"function"!==typeof a)i(t);else{const s=a({...t},n);Y&&a.id&&null===s&&c.log('Event processor "'.concat(a.id,'" dropped event')),w(s)?s.then((t=>ee(e,t,n,r+1).then(i))).then(null,o):ee(e,s,n,r+1).then(i).then(null,o)}}))}const te=1e3;function ne(){return Date.now()/te}const re=function(){const{performance:e}=r;if(!e||!e.now)return ne;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/te}();let ie;(()=>{const{performance:e}=r;if(!e||!e.now)return void(ie="none");const t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,l="number"===typeof s?Math.abs(s+n-i):t;a||l<t?o<=l?(ie="timeOrigin",e.timeOrigin):ie="navigationStart":ie="dateNow"})();const oe="production";function ae(e){const t=re(),n={sid:U(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return L({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&se(n,e),n}function se(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||re(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:U()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function le(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),se(e,n)}const ce=50,ue=/\(error: (.*)\)/,de=/captureMessage|captureException/;function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[],i=e.split("\n");for(let o=t;o<i.length;o++){const e=i[o];if(e.length>1024)continue;const t=ue.test(e)?e.replace(ue,"$1"):e;if(!t.match(/\S*Error: /)){for(const e of r){const r=e(t);if(r){n.push(r);break}}if(n.length>=ce)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),de.test(t[t.length-1].function||"")&&(t.pop(),de.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,ce).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(n)}}const he="<anonymous>";function fe(e){try{return e&&"function"===typeof e&&e.name||he}catch(t){return he}}function me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return ve("",e,t,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=me(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?ge(e,t-1,n):r;var i}function ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}();const[o,a]=i;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!==typeof(s=t)||s===s))return t;var s;const l=function(e,t){try{if("domain"===e&&t&&"object"===typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof __webpack_require__.g&&t===__webpack_require__.g)return"[Global]";if("undefined"!==typeof window&&t===window)return"[Window]";if("undefined"!==typeof document&&t===document)return"[Document]";if(C(t))return"[VueViewModel]";if(function(e){return y(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"===typeof t&&t!==t)return"[NaN]";if("function"===typeof t)return"[Function: ".concat(fe(t),"]");if("symbol"===typeof t)return"[".concat(String(t),"]");if("bigint"===typeof t)return"[BigInt: ".concat(String(t),"]");const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?"[HTMLElement: ".concat(n,"]"):"[object ".concat(n,"]")}catch(n){return"**non-serializable** (".concat(n,")")}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c="number"===typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return l.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&"function"===typeof u.toJSON)try{return ve("",u.toJSON(),c-1,r,i)}catch(f){}const d=Array.isArray(t)?[]:{};let p=0;const h=O(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(p>=r){d[m]="[MaxProperties ~]";break}const e=h[m];d[m]=ve(m,e,c-1,r,i),p++}return a(t),d}const ye=1;function be(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=we(e);return L({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}function we(e){return function(e){return"function"===typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"===typeof e.toJSON?e.toJSON():{}}function xe(e){const{traceFlags:t}=e.spanContext();return Boolean(t&ye)}function Ce(e,t,n,i,o,a){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||U(),timestamp:t.timestamp||ne()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:oe);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=S(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=S(a.value,o));const s=e.request;s&&s.url&&(s.url=S(s.url,o))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){const n=r._sentryDebugIds;if(!n)return;let i;const o=Ae.get(t);o?i=o:(i=new Map,Ae.set(t,i));const a=Object.keys(n).reduce(((e,r)=>{let o;const a=i.get(r);a?o=a:(o=t(r),i.set(r,o));for(let t=o.length-1;t>=0;t--){const i=o[t];if(i.filename){e[i.filename]=n[r];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(s){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new ze;return n.update(t),n}(i,n.captureContext);n.mechanism&&W(c,n.mechanism);const p=o&&o.getEventProcessors?o.getEventProcessors():[],h=function(){He||(He=new ze);return He}().getScopeData();if(a){Ue(h,a.getScopeData())}if(d){Ue(h,d.getScopeData())}const f=[...n.attachments||[],...h.attachments];f.length&&(n.attachments=f),Be(c,h);return ee([...p,...J(),...h.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:me(e.data,t,n)}})))},...e.user&&{user:me(e.user,t,n)},...e.contexts&&{contexts:me(e.contexts,t,n)},...e.extra&&{extra:me(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=me(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>{const r=we(e).data;return r&&(e.data=me(r,t,n)),e})));return r}(e,s,l):e)))}const Ae=new WeakMap;function Ee(e){if(e)return function(e){return e instanceof ze||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>_e.includes(e)))}(e)?{captureContext:e}:e}const _e=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Te(e,t){return Ze().captureException(e,Ee(t))}function Se(e,t){return Ze().captureEvent(e,t)}function ke(e,t){Ze().addBreadcrumb(e,t)}function Pe(){const e=Ze();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(2===n.length){const[t,r]=n;return t?e.withScope((()=>(e.getStackTop().scope=t,r(t)))):e.withScope(r)}return e.withScope(n[0])}function De(){return Ze().getClient()}function Fe(){return Ze().getScope()}function Ne(e){const t=De(),n=Je(),i=Fe(),{release:o,environment:a=oe}=t&&t.getOptions()||{},{userAgent:s}=r.navigator||{},l=ae({release:o,environment:a,user:i.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&se(c,{status:"exited"}),Ie(),n.setSession(l),i.setSession(l),l}function Ie(){const e=Je(),t=Fe(),n=t.getSession()||e.getSession();n&&le(n),Re(),e.setSession(),t.setSession()}function Re(){const e=Je(),t=Fe(),n=De(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Oe(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Ie():Re()}function je(e){return e.transaction}function Me(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=L({environment:r.environment||oe,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function Le(e){const t=De();if(!t)return{};const n=Me(we(e).trace_id||"",t,Fe()),r=je(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate="".concat(o));const s=we(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(xe(r)),t.emit&&t.emit("createDsc",n),n}function Be(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=L(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=L(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=L(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=L(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:be(t),...e.contexts};const n=je(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Le(t),...e.sdkProcessingMetadata};const r=we(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?G(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function Ue(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;Ve(e,"extra",n),Ve(e,"tags",r),Ve(e,"user",i),Ve(e,"contexts",o),Ve(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Ve(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let He;class ze{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=We()}static clone(e){return e?e.clone():new ze}clone(){const e=new ze;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&se(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e;if(t instanceof ze){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(y(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=We(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:ne(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Be(e,this.getScopeData());return ee([...n,...J(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:U();if(!this._client)return c.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:U();if(!this._client)return c.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:U();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(c.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function We(){return{traceId:U(),spanId:U().substring(16)}}const qe="7.118.0",Ge=parseFloat(qe),Ye=100;class Ke{constructor(e,t,n){let r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ge;this._version=o,t?r=t:(r=new ze,r.setClient(e)),n?i=n:(i=new ze,i.setClient(e)),this._stack=[{scope:r}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(r){throw this.popScope(),r}return w(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:U(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:U(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:U();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Ye}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:ne(),...e},s=i?l((()=>i(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Xe(this);try{e(this)}finally{Xe(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return Y&&c.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(Y&&!n){this.getClient()?c.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):c.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&le(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:o=oe}=n&&n.getOptions()||{},{userAgent:a}=r.navigator||{},s=ae({release:i,environment:o,user:t.getUser(),...a&&{userAgent:a},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&se(l,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e){const t=Qe().__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.extensions[e].apply(this,r)}Y&&c.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}function Qe(){return r.__SENTRY__=r.__SENTRY__||{extensions:{},hub:void 0},r}function Xe(e){const t=Qe(),n=tt(t);return nt(t,e),n}function Ze(){const e=Qe();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return $e(e)}function Je(){return Ze().getIsolationScope()}function $e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe();return et(e)&&!tt(e).isOlderThan(Ge)||nt(e,new Ke),tt(e)}function et(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function tt(e){return o("hub",(()=>new Ke),e)}function nt(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}const rt=[];function it(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"===typeof n?G(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(i,(e=>"Debug"===e.name));if(-1!==o){const[e]=i.splice(o,1);i.push(e)}return i}function ot(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function at(e,t,n){if(n[t.name])Y&&c.log("Integration skipped because it was already installed: ".concat(t.name));else{if(n[t.name]=t,-1===rt.indexOf(t.name)&&(t.setupOnce($,Ze),rt.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),e.on&&"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Y&&c.log("Integration installed: ".concat(t.name))}}function st(e,t){return Object.assign((function(){return t(...arguments)}),{id:e})}const lt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ct=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ut="InboundFilters",dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:ut,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:lt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ct],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return Y&&c.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(H(e))),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}n&&n.value&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value)));Y&&0===t.length&&c.error("Could not extract message for event ".concat(H(e)));return t}(e).some((e=>D(e,t)))}(e,t.ignoreErrors))return Y&&c.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(H(e))),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&D(n,t)}(e,t.ignoreTransactions))return Y&&c.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(H(e))),!0;if(function(e,t){if(!t||!t.length)return!1;const n=pt(e);return!!n&&D(n,t)}(e,t.denyUrls))return Y&&c.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(H(e),".\nUrl: ").concat(pt(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=pt(e);return!n||D(n,t)}(e,t.allowUrls))return Y&&c.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(H(e),".\nUrl: ").concat(pt(e))),!0;return!1}(t,o)?null:t}}};st(ut,dt);function pt(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return Y&&c.error("Cannot extract url for event ".concat(H(e))),null}}let ht;const ft="FunctionToString",mt=new WeakMap,gt=()=>({name:ft,setupOnce(){ht=Function.prototype.toString;try{Function.prototype.toString=function(){const e=R(this),t=mt.has(De())&&void 0!==e?e:this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ht.apply(t,r)}}catch(e){}},setup(e){mt.set(e,!0)}});st(ft,gt);function vt(e,t){!0===t.debug&&(Y?c.enable():l((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));Fe().update(t.initialScope);const n=new e(t);!function(e){const t=Ze(),n=t.getStackTop();n.client=e,n.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const yt=i();function bt(){if(!("fetch"in yt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function wt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const xt=i();const Ct={},At={};function Et(e,t){Ct[e]=Ct[e]||[],Ct[e].push(t)}function _t(e,t){At[e]||(t(),At[e]=!0)}function Tt(e,n){const r=e&&Ct[e];if(r)for(const o of r)try{o(n)}catch(i){t&&c.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(fe(o),"\nError:"),i)}}const St=r;let kt;function Pt(e){const t="history";Et(t,e),_t(t,Dt)}function Dt(){if(!function(){const e=xt.chrome,t=e&&e.app&&e.app.runtime,n="history"in xt&&!!xt.history.pushState&&!!xt.history.replaceState;return!t&&n}())return;const e=St.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.length>2?n[2]:void 0;if(i){const e=kt,t=String(i);kt=t;Tt("history",{from:e,to:t})}return e.apply(this,n)}}St.onpopstate=function(){const t=St.location.href,n=kt;kt=t;if(Tt("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}catch(a){}},F(St.history,"pushState",t),F(St.history,"replaceState",t)}const Ft=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function It(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Rt(e){const n="string"===typeof e?function(e){const t=Ft.exec(e);if(!t)return void l((()=>{console.error("Invalid Sentry Dsn: ".concat(e))}));const[n,r,i="",o,a="",s]=t.slice(1);let c="",u=s;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return It({host:o,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}(e):It(e);if(n&&function(e){if(!t)return!0;const{port:n,projectId:r,protocol:i}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(c.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)))&&(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?!n||!isNaN(parseInt(n,10))||(c.error("Invalid Sentry Dsn: Invalid port ".concat(n)),!1):(c.error("Invalid Sentry Dsn: Invalid protocol ".concat(i)),!1):(c.error("Invalid Sentry Dsn: Invalid projectId ".concat(r)),!1))}(n))return n}function Ot(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function jt(e,t){const[n,r]=e;return[n,[...r,t]]}function Mt(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function Lt(e,t){return(t||new TextEncoder).encode(e)}function Bt(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"===typeof i?i="string"===typeof e?i+e:[Lt(i,t),e]:i.push("string"===typeof e?Lt(e,t):e)}for(const s of r){const[e,t]=s;if(o("\n".concat(JSON.stringify(e),"\n")),"string"===typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(me(t))}o(e)}}return"string"===typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(i)}function Ut(e,t){const n="string"===typeof e.data?Lt(e.data,t):e.data;return[L({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Vt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Ht(e){return Vt[e]}function zt(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class Wt extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const qt="7";function Gt(e){const t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function Yt(e,t){return function(e){return Object.keys(e).map((t=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t])))).join("&")}({sentry_key:e.publicKey,sentry_version:qt,...t&&{sentry_client:"".concat(t.name,"/").concat(t.version)}})}function Kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="string"===typeof t?t:t.tunnel,r="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat(function(e){return"".concat(Gt(e)).concat(e.projectId,"/envelope/")}(e),"?").concat(Yt(e,r))}function Qt(e,t,n,r){const i=zt(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Nt(r)},...i&&{trace:L({...i})}}}(e,i,r,t);delete e.sdkProcessingMetadata;return Ot(a,[[{type:o},e]])}function Xt(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Nt(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?"|#".concat(e.map((e=>{let[t,n]=e;return"".concat(t,":").concat(n)})).join(",")):"";t+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).concat(r,"|T").concat(n.timestamp,"\n")}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Ot(i,[o])}const Zt="Not capturing exception because it's already been captured.";class Jt{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Rt(e.dsn):Y&&c.warn("No DSN provided, client will not send events."),this._dsn){const t=Kt(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(q(e))return void(Y&&c.log(Zt));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const o=g(e)?e:String(e),a=v(e)?this.eventFromMessage(o,t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&q(t.originalException))return void(Y&&c.log(Zt));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then((e=>{r=e}))),r}captureSession(e){"string"!==typeof e.release?Y&&c.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),se(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Q(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Y&&c.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){const t=this._integrations[e.name];at(this,e,this._integrations),t||ot(this,[e])}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);let n=Qt(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=jt(n,Ut(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=zt(n);return Ot({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Nt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n="".concat(e,":").concat(t);Y&&c.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Y&&c.log("Flushing aggregated metrics, number of metrics: ".concat(e.length));const t=Xt(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._hooks[e]&&this._hooks[e].forEach((e=>e(...n)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&at(e,t,n)})),n}(this,e),ot(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(se(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Z((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Je();const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),Ce(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};const s=a||Me(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Y){const t=e;"log"===t.logLevel?c.log(t.message):c.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=en(e),a=$t(e),s=e.type||"error",l="before send for type `".concat(s,"`");if(a&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),X(new Wt("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));const c="replay_event"===s?"replay":s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Wt("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if($t(t)&&r)return r(t,n);if(en(t)&&i)return i(t,n);return t}(r,n,t);return function(e,t){const n="".concat(t," must return `null` or a valid event.");if(w(e))return e.then((e=>{if(!y(e)&&null!==e)throw new Wt(n);return e}),(e=>{throw new Wt("".concat(t," rejected with ").concat(e))}));if(!y(e)&&null!==e)throw new Wt(n);return e}(i,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new Wt("".concat(l," returned `null`, will not send event."),"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Wt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Wt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Y&&c.error("Error while sending event:",e)}));Y&&c.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function $t(e){return void 0===e.type}function en(e){return"transaction"===e.type}function tn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const i=e._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(t),packages:n.map((e=>({name:"".concat(r,":@sentry/").concat(e),version:qe}))),version:qe}),e._metadata=i}const nn="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rn(e,t){const n=an(e,t),r={type:t&&t.name,value:ln(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function on(e,t){return{exception:{values:[rn(e,t)]}}}function an(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(sn.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}const sn=/Minified React error #\d+;/i;function ln(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function cn(e,t,n,r,i){let o;if(h(t)&&t.error){return on(e,t.error)}if(f(t)||p(t,"DOMException")){const i=t;if("stack"in t)o=on(e,t);else{const t=i.name||(f(i)?"DOMError":"DOMException"),a=i.message?"".concat(t,": ").concat(i.message):t;o=un(e,a,n,r),z(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":"".concat(i.code)}),o}if(d(t))return on(e,t);if(y(t)||b(t)){return o=function(e,t,n,r){const i=De(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:dn(t,{isUnhandledRejection:r})}]},extra:{__serialized__:ge(t,o)}};if(n){const t=an(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),W(o,{synthetic:!0}),o}return o=un(e,t,n,r),z(o,"".concat(t),void 0),W(o,{synthetic:!0}),o}function un(e,t,n,r){const i={};if(r&&n){const r=an(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(g(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function dn(e,t){let{isUnhandledRejection:n}=t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(O(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return S(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:S(e,t)}return""}(e),i=n?"promise rejection":"exception";if(h(e))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(e.message,"`");if(b(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e);return"Event `".concat(t,"` (type=").concat(e.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(r)}const pn=r;let hn=0;function fn(){return hn>0}function mn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(R(e))return e}catch(i){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const i=r.map((e=>mn(e,t)));return e.apply(this,i)}catch(i){throw hn++,setTimeout((()=>{hn--})),Pe((e=>{e.addEventProcessor((e=>(t.mechanism&&(z(e,void 0,void 0),W(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),Te(i)})),i}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(o){}I(r,e),N(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(o){}return r}class gn extends Jt{constructor(e){tn(e,"browser",["browser"],pn.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&pn.document&&pn.document.addEventListener("visibilitychange",(()=>{"hidden"===pn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=cn(e,t,n&&n.syntheticException||void 0,r);return W(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Q(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const o=un(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Q(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(nn&&c.warn("SDK not enabled, will not capture user feedback."));const t=function(e,t){let{metadata:n,tunnel:r,dsn:i}=t;const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:Nt(i)}},a=function(e){return[{type:"user_report"},e]}(e);return Ot(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(nn&&c.log("No outcomes to send"));if(!this._dsn)return void(nn&&c.log("No dsn provided, will not send outcomes"));nn&&c.log("Sending outcomes:",e);const t=(n=e,Ot((r=this._options.tunnel&&Nt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||ne(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(t)}}function vn(){"console"in r&&a.forEach((function(e){e in r.console&&F(r.console,e,(function(t){return s[e]=t,function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Tt("console",{args:n,level:e});const o=s[e];o&&o.apply(r.console,n)}}))}))}const yn=r,bn=1e3;let wn,xn,Cn;function An(){if(!yn.document)return;const e=Tt.bind(null,"dom"),t=En(e,!0);yn.document.addEventListener("click",t,!1),yn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=yn[t]&&yn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(F(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=En(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(o){}return t.call(this,n,r,i)}})),F(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}function En(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;N(n,"_sentryCaptured",!0),r&&!r._sentryId&&N(r,"_sentryId",U());const i="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==xn)return!1;try{if(!e.target||e.target._sentryId!==Cn)return!1}catch(t){}return!0}(n)){e({event:n,name:i,global:t}),xn=n.type,Cn=r?r._sentryId:void 0}clearTimeout(wn),wn=yn.setTimeout((()=>{Cn=void 0,xn=void 0}),bn)}}const _n=r,Tn="__sentry_xhr_v3__";function Sn(){if(!_n.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;F(e,"open",(function(e){return function(){const t=Date.now();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=m(r[0])?r[0].toUpperCase():void 0,a=function(e){if(m(e))return e;try{return e.toString()}catch(t){}return}(r[1]);if(!o||!a)return e.apply(this,r);this[Tn]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[Tn];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}Tt("xhr",{args:[o,a],endTimestamp:Date.now(),startTimestamp:t,xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?F(this,"onreadystatechange",(function(e){return function(){s();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}})):this.addEventListener("readystatechange",s),F(this,"setRequestHeader",(function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const[i,o]=n,a=this[Tn];return a&&m(i)&&m(o)&&(a.request_headers[i.toLowerCase()]=o),e.apply(this,n)}})),e.apply(this,r)}})),F(e,"send",(function(e){return function(){const t=this[Tn];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!t)return e.apply(this,r);void 0!==r[0]&&(t.body=r[0]);return Tt("xhr",{args:[t.method,t.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,r)}}))}function kn(){(function(){if("string"===typeof EdgeRuntime)return!0;if(!bt())return!1;if(wt(yt.fetch))return!0;let e=!1;const n=yt.document;if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(e=wt(t.contentWindow.fetch)),n.head.removeChild(t)}catch(r){t&&c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e})()&&F(r,"fetch",(function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const{method:o,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Dn(t),method:Pn(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Dn(t),method:Pn(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:a},startTimestamp:Date.now()};return Tt("fetch",{...s}),e.apply(r,n).then((e=>(Tt("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Tt("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function Pn(e,t){return!!e&&"object"===typeof e&&!!e[t]}function Dn(e){return"string"===typeof e?e:e?Pn(e,"url")?e.url:e.toString?e.toString():"":""}const Fn=["fatal","error","warning","log","info","debug"];function Nn(e){return"warn"===e?"warning":Fn.includes(e)?e:"log"}function In(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Rn=1024,On="Breadcrumbs",jn=function(){const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:On,setupOnce(){},setup(t){var n;e.console&&function(e){const t="console";Et(t,e),_t(t,vn)}(function(e){return function(t){if(De()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Nn(t.level),message:k(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: ".concat(k(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}ke(n,{input:t.args,level:t.level})}}(t)),e.dom&&(n=function(e,t){return function(n){if(De()!==e)return;let r,i,o="object"===typeof t?t.serializeAttribute:void 0,a="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>Rn&&(nn&&c.warn("`dom.maxStringLength` cannot exceed ".concat(Rn,", but a value of ").concat(a," was configured. Sentry will use ").concat(Rn," instead.")),a=Rn),"string"===typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=_(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!A.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(t)}catch(l){r="<unknown>"}if(0===r.length)return;const s={category:"ui.".concat(n.name),message:r};i&&(s.data={"ui.component_name":i}),ke(s,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Et("dom",n),_t("dom",An)),e.xhr&&function(e){Et("xhr",e),_t("xhr",Sn)}(function(e){return function(t){if(De()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Tn];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:l}=i;ke({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&function(e){const t="fetch";Et(t,e),_t(t,kn)}(function(e){return function(t){if(De()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){ke({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;ke({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&Pt(function(e){return function(t){if(De()!==e)return;let n=t.from,r=t.to;const i=In(pn.location.href);let o=n?In(n):void 0;const a=In(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),ke({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(e){return function(t){De()===e&&ke({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:H(t)},{event:t})}}(t))}}};st(On,jn);const Mn="Dedupe",Ln=()=>{let e;return{name:Mn,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Un(e,t))return!1;if(!Bn(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Vn(t),r=Vn(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Un(e,t))return!1;if(!Bn(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return nn&&c.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};st(Mn,Ln);function Bn(e,t){let n=Hn(e),r=Hn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Un(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Vn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Hn(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}let zn=null;function Wn(){zn=r.onerror,r.onerror=function(e,t,n,r,i){return Tt("error",{column:r,error:i,line:n,msg:e,url:t}),!(!zn||zn.__SENTRY_LOADER__)&&zn.apply(this,arguments)},r.onerror.__SENTRY_INSTRUMENTED__=!0}let qn=null;function Gn(){qn=r.onunhandledrejection,r.onunhandledrejection=function(e){return Tt("unhandledrejection",e),!(qn&&!qn.__SENTRY_LOADER__)||qn.apply(this,arguments)},r.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Yn="GlobalHandlers",Kn=function(){const e={onerror:!0,onunhandledrejection:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:Yn,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(e){!function(e){const t="error";Et(t,e),_t(t,Wn)}((t=>{const{stackParser:n,attachStacktrace:r}=Zn();if(De()!==e||fn())return;const{msg:i,url:o,line:a,column:s,error:l}=t,c=void 0===l&&m(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=h(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);const l={exception:{values:[{type:a,value:o}]}};return Qn(l,t,n,r)}(i,o,a,s):Qn(cn(n,l||i,void 0,r,!1),o,a,s);c.level="error",Se(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(t),Xn("onerror")),e.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";Et(t,e),_t(t,Gn)}((t=>{const{stackParser:n,attachStacktrace:r}=Zn();if(De()!==e||fn())return;const i=function(e){if(v(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(n){}return e}(t),o=v(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:cn(n,i,void 0,r,!0);o.level="error",Se(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Xn("onunhandledrejection"))}}};st(Yn,Kn);function Qn(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=m(t)&&t.length>0?t:function(){try{return A.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Xn(e){nn&&c.log("Global Handler attached: ".concat(e))}function Zn(){const e=De();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Jn="HttpContext",$n=()=>({name:Jn,setupOnce(){},preprocessEvent(e){if(!pn.navigator&&!pn.location&&!pn.document)return;const t=e.request&&e.request.url||pn.location&&pn.location.href,{referrer:n}=pn.document||{},{userAgent:r}=pn.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});st(Jn,$n);function er(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(!o.exception||!o.exception.values||!a||!x(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var l,c;s&&(o.exception.values=(l=tr(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,l.map((e=>(e.value&&(e.value=S(e.value,c)),e)))))}function tr(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let l=[...o];if(x(r[i],Error)){nr(a,s);const o=e(t,r[i]),c=l.length;rr(o,i,c,s),l=tr(e,t,n,r[i],i,[o,...l],o,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(x(r,Error)){nr(a,s);const c=e(t,r),u=l.length;rr(c,"errors[".concat(o,"]"),u,s),l=tr(e,t,n,r,i,[c,...l],c,u)}})),l}function nr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function rr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const ir="LinkedErrors",or=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.limit||5,n=e.key||"cause";return{name:ir,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();er(rn,o.stackParser,o.maxValueLength,n,t,e,r)}}},ar=(st(ir,or),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),sr="TryCatch",lr=function(){const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:sr,setupOnce(){e.setTimeout&&F(pn,"setTimeout",cr),e.setInterval&&F(pn,"setInterval",cr),e.requestAnimationFrame&&F(pn,"requestAnimationFrame",ur),e.XMLHttpRequest&&"XMLHttpRequest"in pn&&F(XMLHttpRequest.prototype,"send",dr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:ar).forEach(pr)}}}};st(sr,lr);function cr(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n[0];return n[0]=mn(i,{mechanism:{data:{function:fe(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function ur(e){return function(t){return e.apply(this,[mn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fe(e)},handled:!1,type:"instrument"}})])}}function dr(e){return function(){const t=this;["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in t&&"function"===typeof t[e]&&F(t,e,(function(t){const n={mechanism:{data:{function:e,handler:fe(t)},handled:!1,type:"instrument"}},r=R(t);return r&&(n.mechanism.data.handler=fe(r)),mn(t,n)}))}));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(this,r)}}function pr(e){const t=pn,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(F(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=mn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:fe(r),target:e},handled:!1,type:"instrument"}}))}catch(o){}return t.apply(this,[n,mn(r,{mechanism:{data:{function:"addEventListener",handler:fe(r),target:e},handled:!1,type:"instrument"}}),i])}})),F(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(o){}return e.call(this,t,i,r)}})))}const hr="?";function fr(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const mr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gr=/\((\S*)(?::(\d+))(?::(\d+))\)/,vr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,br=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wr=pe(...[[30,e=>{const t=mr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=gr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=xr(t[1]||hr,t[2]);return fr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=vr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||hr;return[n,e]=xr(n,e),fr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=br.exec(e);return t?fr(t[2],t[1]||hr,+t[3],t[4]?+t[4]:void 0):void 0}]]),xr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:hr,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Cr(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return X(new Wt("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Z(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Q(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}const Ar=6e4;function Er(e,t){let{statusCode:n,headers:r}=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[e,t,,,n]=l.split(":",5),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(t)for(const s of t.split(";"))"metric_bucket"===s&&n&&!n.split(";").includes("custom")||(o[s]=i+a);else o.all=i+a}else s?o.all=i+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;const r=Date.parse("".concat(e));return isNaN(r)?Ar:r-t}(s,i):429===n&&(o.all=i+6e4);return o}const _r=30;function Tr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cr(e.bufferSize||_r),r={};function i(i){const o=[];if(Mt(i,((t,n)=>{const i=Ht(n);if(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=Sr(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return Q();const a=Ot(i[0],o),s=t=>{Mt(a,((n,r)=>{const i=Sr(n,r);e.recordDroppedEvent(t,Ht(r),i)}))};return n.add((()=>t({body:Bt(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Y&&c.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=Er(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Wt)return Y&&c.error("Skipped sending event because buffer is full."),s("queue_overflow"),Q();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Sr(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let kr;function Pr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(kr)return kr;if(wt(pn.fetch))return kr=pn.fetch.bind(pn);const e=pn.document;let t=pn.fetch;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){nn&&c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return kr=t.bind(pn)}(),n=0,r=0;return Tr(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(s){return kr=void 0,n-=o,r--,X(s)}}))}const Dr=4;function Fr(e){return Tr(e,(function(t){return new Z(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===Dr&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const Nr=[dt(),gt(),lr(),jn(),Kn(),or(),Ln(),$n()];function Ir(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...Nr]),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),pn.SENTRY_RELEASE&&pn.SENTRY_RELEASE.id&&(e.release=pn.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||wr,Array.isArray(n)?pe(...n):n),integrations:it(e),transport:e.transport||(bt()?Pr:Fr)};var n;vt(gn,t),e.autoSessionTracking&&function(){if("undefined"===typeof pn.document)return void(nn&&c.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Ne({ignoreDuration:!0}),Oe(),Pt((e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&(Ne({ignoreDuration:!0}),Oe())}))}()}var Rr=__webpack_require__(86359),Or=__webpack_require__(40745),jr=__webpack_require__(35488),Mr=__webpack_require__(57435),Lr=__webpack_require__(1939),Br=__webpack_require__(35174),Ur=__webpack_require__(46106),Vr=__webpack_require__(89678),Hr=__webpack_require__(51851);const zr=(0,Hr.VZ)(),Wr=80;function qr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Wr;for(;n&&o++<r&&(c=Gr(n,u),!("html"===c||o>1&&a+i.length*l+c.length>=d));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch(n){return"<unknown>"}}function Gr(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";if(zr.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(n.id&&r.push("#".concat(n.id)),i=n.className,i&&(0,Vr.Kg)(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(".".concat(o[l]));const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push("[".concat(a,'="').concat(s,'"]'));return r.join("")}function Yr(e){if(!zr.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Kr="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Qr=__webpack_require__(14835);const Xr=Hr.OW;var Zr=__webpack_require__(82243);const Jr=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},$r=()=>Xr.__WEB_VITALS_POLYFILL__?Xr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Xr.performance.timing,t=Xr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):Xr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ei=()=>{const e=$r();return e&&e.activationStart||0},ti=(e,t)=>{const n=$r();let r="navigate";return n&&(r=Xr.document&&Xr.document.prerendering||ei()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ni=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},ri=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==Xr.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Xr.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},ii=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=ti("CLS",0);let r,i=0,o=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>n.value&&(n.value=i,n.entries=o,r&&r())}}))},s=ni("layout-shift",a);if(s){r=Jr(e,n,t.reportAllChanges);const i=()=>{a(s.takeRecords()),r(!0)};return ri(i),i}};let oi=-1;const ai=()=>(oi<0&&(Xr.document&&Xr.document.visibilityState&&(oi="hidden"!==Xr.document.visibilityState||Xr.document.prerendering?1/0:0),ri((e=>{let{timeStamp:t}=e;oi=t}),!0)),{get firstHiddenTime(){return oi}}),si=e=>{const t=ai(),n=ti("FID");let r;const i=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},o=e=>{e.forEach(i)},a=ni("first-input",o);r=Jr(e,n),a&&ri((()=>{o(a.takeRecords()),a.disconnect()}),!0)};let li=0,ci=1/0,ui=0;const di=e=>{e.forEach((e=>{e.interactionId&&(ci=Math.min(ci,e.interactionId),ui=Math.max(ui,e.interactionId),li=ui?(ui-ci)/7+1:0)}))};let pi;const hi=()=>{"interactionCount"in performance||pi||(pi=ni("event",di,{type:"event",buffered:!0,durationThreshold:0}))},fi=()=>pi?li:performance.interactionCount||0,mi=[],gi={},vi=e=>{const t=mi[mi.length-1],n=gi[e.interactionId];if(n||mi.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};gi[t.id]=t,mi.push(t)}mi.sort(((e,t)=>t.latency-e.latency)),mi.splice(10).forEach((e=>{delete gi[e.id]}))}},yi=(e,t)=>{t=t||{},hi();const n=ti("INP");let r;const i=e=>{e.forEach((e=>{if(e.interactionId&&vi(e),"first-input"===e.entryType){!mi.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&vi(e)}}));const t=(()=>{const e=Math.min(mi.length-1,Math.floor(fi()/50));return mi[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=ni("event",i,{durationThreshold:t.durationThreshold||40});r=Jr(e,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ri((()=>{i(o.takeRecords()),n.value<0&&fi()>0&&(n.value=0,n.entries=[]),r(!0)})))},bi={},wi=e=>{const t=ai(),n=ti("LCP");let r;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-ei(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[i],r())}},o=ni("largest-contentful-paint",i);if(o){r=Jr(e,n);const t=()=>{bi[n.id]||(i(o.takeRecords()),o.disconnect(),bi[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{Xr.document&&addEventListener(e,t,{once:!0,capture:!0})})),ri(t,!0),t}},xi=e=>{Xr.document&&(Xr.document.prerendering?addEventListener("prerenderingchange",(()=>xi(e)),!0):"complete"!==Xr.document.readyState?addEventListener("load",(()=>xi(e)),!0):setTimeout(e,0))},Ci=(e,t)=>{t=t||{};const n=ti("TTFB"),r=Jr(e,n,t.reportAllChanges);xi((()=>{const e=$r();if(e){if(n.value=Math.max(e.responseStart-ei(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))},Ai={},Ei={};let _i,Ti,Si,ki,Pi;function Di(e,t){return Li(e,t),Ei[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);ni(e,(t=>{Fi(e,{entries:t})}),t)}(e),Ei[e]=!0),Bi(e,t)}function Fi(e,t){const n=Ai[e];if(n&&n.length)for(const i of n)try{i(t)}catch(r){Kr&&Br.vF.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,Zr.qQ)(i),"\nError:"),r)}}function Ni(){return ii((e=>{Fi("cls",{metric:e}),_i=e}),{reportAllChanges:!0})}function Ii(){return si((e=>{Fi("fid",{metric:e}),Ti=e}))}function Ri(){return wi((e=>{Fi("lcp",{metric:e}),Si=e}))}function Oi(){return Ci((e=>{Fi("ttfb",{metric:e}),ki=e}))}function ji(){return yi((e=>{Fi("inp",{metric:e}),Pi=e}))}function Mi(e,t,n,r){let i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return Li(e,t),Ei[e]||(i=n(),Ei[e]=!0),r&&t({metric:r}),Bi(e,t,o?i:void 0)}function Li(e,t){Ai[e]=Ai[e]||[],Ai[e].push(t)}function Bi(e,t,n){return()=>{n&&n();const r=Ai[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}var Ui=__webpack_require__(88889);function Vi(e){return[{type:"span"},e]}var Hi=__webpack_require__(14245),zi=__webpack_require__(81356),Wi=__webpack_require__(22395);function qi(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Gi(e){return e.split(/[\?#]/,1)[0]}function Yi(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}function Ki(e){return"number"===typeof e&&isFinite(e)}function Qi(e,t){let{startTimestamp:n,...r}=t;return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild({startTimestamp:n,...r})}const Xi=2147483647;function Zi(e){return e/1e3}function Ji(){return Xr&&Xr.addEventListener&&Xr.performance}let $i,eo,to=0,no={};function ro(){const e=Ji();if(e&&Wi.k3){e.mark&&Xr.performance.mark("sentry-tracing-init");const t=function(){return e=e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];if(!n)return;const r=Zi(Wi.k3),i=Zi(n.startTime);Kr&&Br.vF.log("[Measurements] Adding FID"),no.fid={value:t.value,unit:"millisecond"},no["mark.fid"]={value:r+i,unit:"second"}},Mi("fid",e,Ii,Ti);var e}(),n=function(e){return Mi("cls",e,Ni,_i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(Kr&&Br.vF.log("[Measurements] Adding CLS"),no.cls={value:t.value,unit:""},eo=n)}),!0),r=function(e){return Mi("lcp",e,Ri,Si,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(Kr&&Br.vF.log("[Measurements] Adding LCP"),no.lcp={value:t.value,unit:"millisecond"},$i=n)}),!0),i=function(){return e=e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(Kr&&Br.vF.log("[Measurements] Adding TTFB"),no.ttfb={value:t.value,unit:"millisecond"})},Mi("ttfb",e,Oi,ki);var e}();return()=>{t(),n(),r(),i()}}return()=>{}}function io(e,t){if(Ji()&&Wi.k3){const n=function(e,t){return n=n=>{let{metric:r}=n;if(void 0===r.value)return;const i=r.entries.find((e=>e.duration===r.value&&void 0!==oo[e.name])),o=(0,Lr.KU)();if(!i||!o)return;const a=oo[i.name],s=o.getOptions(),l=Zi(Wi.k3+i.startTime),c=Zi(r.value),u=void 0!==i.interactionId?e[i.interactionId]:void 0;if(void 0===u)return;const{routeName:d,parentContext:p,activeTransaction:h,user:f,replayId:m}=u,g=void 0!==f?f.email||f.id||f.ip_address:void 0,v=void 0!==h?h.getProfileId():void 0,y=new Ui.L({startTimestamp:l,endTimestamp:l+c,op:"ui.interaction.".concat(a),name:qr(i.target),attributes:{release:s.release,environment:s.environment,transaction:d,...void 0!==g&&""!==g?{user:g}:{},...void 0!==v?{profile_id:v}:{},...void 0!==m?{replay_id:m}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),b=function(e,t,n){if(!(0,Hi.w)(t))return!1;let r;return r=void 0!==e&&"function"===typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Xr.location}):void 0!==e&&void 0!==e.sampled?e.sampled:"undefined"!==typeof t.tracesSampleRate?t.tracesSampleRate:1,(0,zi.v)(r)?!0===r?n:!1===r?0:r*n:(Kr&&Br.vF.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(p,s,t);if(b&&Math.random()<b){const e=y?function(e,t){const n={sent_at:(new Date).toISOString()};return t&&(n.dsn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}(t)),function(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}(n,e.map(Vi))}([y],o.getDsn()):void 0,t=o&&o.getTransport();t&&e&&t.send(e).then(null,(e=>{Kr&&Br.vF.error("Error while sending interaction:",e)}))}},Mi("inp",n,ji,Pi);var n}(e,t);return()=>{n()}}return()=>{}}const oo={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ao(e){const t=Ji();if(!t||!Xr.performance.getEntries||!Wi.k3)return;Kr&&Br.vF.log("[Tracing] Adding & adjusting spans using Performance API");const n=Zi(Wi.k3),r=t.getEntries(),{op:i,start_timestamp:o}=(0,Qr.et)(e);if(r.slice(to).forEach((t=>{const r=Zi(t.startTime),i=Zi(t.duration);if(!("navigation"===e.op&&o&&n+r<o))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{so(e,t,r,n)})),so(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),so(e,t,"fetch",n,"cache","domainLookupStart"),so(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Qi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Zi(t.requestStart),endTimestamp:n+Zi(t.responseEnd)}),Qi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Zi(t.responseStart),endTimestamp:n+Zi(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const o=i+n,a=o+r;Qi(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(e,t,r,i,n);const o=ai(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(Kr&&Br.vF.log("[Measurements] Adding FP"),no.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(Kr&&Br.vF.log("[Measurements] Adding FCP"),no.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=qi(n),s={};lo(s,t,"transferSize","http.response_transfer_size"),lo(s,t,"encodedBodySize","http.response_content_length"),lo(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop());a.host&&(s["server.address"]=a.host);s["url.same_origin"]=n.includes(Xr.location.origin);const l=o+r,c=l+i;Qi(e,{description:n.replace(Xr.location.origin,""),endTimestamp:c,op:t.initiatorType?"resource.".concat(t.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}(e,t,t.name,r,i,n)}})),to=Math.max(r.length-1,0),function(e){const t=Xr.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Ki(n.rtt)&&(no["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Ki(t.deviceMemory)&&e.setTag("deviceMemory","".concat(t.deviceMemory," GB"));Ki(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){!function(e){const t=$r();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Kr&&Br.vF.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(no),["fcp","fp","lcp"].forEach((e=>{if(!no[e]||!o||n>=o)return;const t=no[e].value,r=n+Zi(t),i=Math.abs(1e3*(r-o)),a=i-t;Kr&&Br.vF.log("[Measurements] Normalized ".concat(e," from ").concat(t," to ").concat(i," (").concat(a,")")),no[e].value=i}));const t=no["mark.fid"];t&&no.fid&&(Qi(e,{description:"first input delay",endTimestamp:t.value+Zi(no.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete no["mark.fid"]),"fcp"in no||delete no.cls,Object.keys(no).forEach((e=>{!function(e,t,n){const r=(0,jr.Z7)();r&&r.setMeasurement(e,t,n)}(e,no[e].value,no[e].unit)})),function(e){$i&&(Kr&&Br.vF.log("[Measurements] Adding LCP Data"),$i.element&&e.setTag("lcp.element",qr($i.element)),$i.id&&e.setTag("lcp.id",$i.id),$i.url&&e.setTag("lcp.url",$i.url.trim().slice(0,200)),e.setTag("lcp.size",$i.size));eo&&eo.sources&&(Kr&&Br.vF.log("[Measurements] Adding CLS Data"),eo.sources.forEach(((t,n)=>e.setTag("cls.source.".concat(n+1),qr(t.node)))))}(e)}$i=void 0,eo=void 0,no={}}function so(e,t,n,r,i,o){const a=o?t[o]:t["".concat(n,"End")],s=t["".concat(n,"Start")];s&&a&&Qi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Zi(s),endTimestamp:r+Zi(a)})}function lo(e,t,n,r){const i=t[n];null!=i&&i<Xi&&(e[r]=i)}var co=__webpack_require__(8551),uo=__webpack_require__(67853),po=__webpack_require__(84316),ho=__webpack_require__(37054),fo=__webpack_require__(51293),mo=__webpack_require__(94150);const go=(0,Hr.VZ)();function vo(){if(!("fetch"in go))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function yo(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var bo=__webpack_require__(87436);function wo(){(function(){if("string"===typeof EdgeRuntime)return!0;if(!vo())return!1;if(yo(go.fetch))return!0;let e=!1;const t=go.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=yo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){mo.T&&Br.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e})()&&(0,fo.GS)(Hr.OW,"fetch",(function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Co(t),method:xo(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Co(t),method:xo(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:Date.now()};return(0,bo.aj)("fetch",{...a}),e.apply(Hr.OW,n).then((e=>{const t={...a,endTimestamp:Date.now(),response:e};return(0,bo.aj)("fetch",t),e}),(e=>{const t={...a,endTimestamp:Date.now(),error:e};throw(0,bo.aj)("fetch",t),e}))}}))}function xo(e,t){return!!e&&"object"===typeof e&&!!e[t]}function Co(e){return"string"===typeof e?e:e?xo(e,"url")?e.url:e.toString?e.toString():"":""}const Ao=Hr.OW,Eo="__sentry_xhr_v3__";function _o(){if(!Ao.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,fo.GS)(e,"open",(function(e){return function(){const t=Date.now();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=(0,Vr.Kg)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,Vr.Kg)(e))return e;try{return e.toString()}catch(t){}return}(r[1]);if(!o||!a)return e.apply(this,r);this[Eo]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[Eo];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}const r={args:[o,a],endTimestamp:Date.now(),startTimestamp:t,xhr:this};(0,bo.aj)("xhr",r)}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,fo.GS)(this,"onreadystatechange",(function(e){return function(){s();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}})):this.addEventListener("readystatechange",s),(0,fo.GS)(this,"setRequestHeader",(function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const[i,o]=n,a=this[Eo];return a&&(0,Vr.Kg)(i)&&(0,Vr.Kg)(o)&&(a.request_headers[i.toLowerCase()]=o),e.apply(this,n)}})),e.apply(this,r)}})),(0,fo.GS)(e,"send",(function(e){return function(){const t=this[Eo];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!t)return e.apply(this,r);void 0!==r[0]&&(t.body=r[0]);const o={args:[t.method,t.url],startTimestamp:Date.now(),xhr:this};return(0,bo.aj)("xhr",o),e.apply(this,r)}}))}function To(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,Vr.Kg)(e)&&((0,Vr.gd)(t)?t.test(e):!!(0,Vr.Kg)(t)&&(n?e===t:e.includes(t)))}(e,n,t)))}var So=__webpack_require__(67118);function ko(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(!(0,Hi.w)()||!e.fetchData)return;const o=t(e.fetchData.url);if(e.endTimestamp&&o){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){(0,co.N8)(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const a=(0,Lr.o5)(),s=(0,Lr.KU)(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(t){return}}(c),d=u?qi(u).host:void 0,p=o?(0,po.Uk)({name:"".concat(l," ").concat(c),onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[Mr.JD]:i},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const o=i||n.getSpan(),a=(0,uo.rm)(),{traceId:s,spanId:l,sampled:c,dsc:u}={...a.getPropagationContext(),...n.getPropagationContext()},d=o?(0,Qr.Qh)(o):(0,Ur.TC)(s,l,c),p=(0,So.De)(u||(o?(0,ho.k)(o):(0,ho.l)(s,t,n))),h=r.headers||("undefined"!==typeof Request&&(0,Vr.tH)(e,Request)?e.headers:void 0);if(h){if("undefined"!==typeof Headers&&(0,Vr.tH)(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(So.hF,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",d]];return p&&e.push([So.hF,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,s,a,n,p)}return p}const Po=["localhost",/^\/(?!\/)/],Do={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Po,tracePropagationTargets:Po};function Fo(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:Do.traceFetch,traceXHR:Do.traceXHR,...e},s="function"===typeof o?o:e=>!0,l=e=>function(e,t){return To(e,t||Po)}(e,r||i),c={};var u;t&&function(e){const t="fetch";(0,bo.s5)(t,e),(0,bo.AS)(t,wo)}((e=>{const t=ko(e,s,l,c);if(t){const n=Ro(e.fetchData.url),r=n?qi(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}a&&t&&No(t)})),n&&(u=e=>{const t=function(e,t,n,r){const i=e.xhr,o=i&&i[Eo];if(!(0,Hi.w)()||!i||i.__sentry_own_request__||!o)return;const a=t(o.url);if(e.endTimestamp&&a){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==o.status_code&&((0,co.N8)(t,o.status_code),t.end(),delete r[e]))}const s=(0,Lr.o5)(),l=(0,uo.rm)(),c=Ro(o.url),u=c?qi(c).host:void 0,d=a?(0,po.Uk)({name:"".concat(o.method," ").concat(o.url),onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":c,url:o.url,"server.address":u,[Mr.JD]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);const p=(0,Lr.KU)();if(i.setRequestHeader&&n(o.url)&&p){const{traceId:e,spanId:t,sampled:n,dsc:r}={...l.getPropagationContext(),...s.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(So.hF,n)}catch(ns){}}(i,d?(0,Qr.Qh)(d):(0,Ur.TC)(e,t,n),(0,So.De)(r||(d?(0,ho.k)(d):(0,ho.l)(e,p,s))))}return d}(e,s,l,c);a&&t&&No(t)},(0,bo.s5)("xhr",u),(0,bo.AS)("xhr",_o))}function No(e){const{url:t}=(0,Qr.et)(e).data||{};if(!t||"string"!==typeof t)return;const n=Di("resource",(r=>{let{entries:i}=r;i.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!Wi.k3)return r;return[...r,["http.request.redirect_start",Io(e.redirectStart)],["http.request.fetch_start",Io(e.fetchStart)],["http.request.domain_lookup_start",Io(e.domainLookupStart)],["http.request.domain_lookup_end",Io(e.domainLookupEnd)],["http.request.connect_start",Io(e.connectStart)],["http.request.secure_connection_start",Io(e.secureConnectionStart)],["http.request.connection_end",Io(e.connectEnd)],["http.request.request_start",Io(e.requestStart)],["http.request.response_start",Io(e.responseStart)],["http.request.response_end",Io(e.responseEnd)]]}(r);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function Io(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((Wi.k3||performance.timeOrigin)+e)/1e3}function Ro(e){try{return new URL(e,Xr.location.origin).href}catch(t){return}}const Oo=(0,Hr.VZ)();const jo=Hr.OW;let Mo;function Lo(){if(!function(){const e=Oo.chrome,t=e&&e.app&&e.app.runtime,n="history"in Oo&&!!Oo.history.pushState&&!!Oo.history.replaceState;return!t&&n}())return;const e=jo.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.length>2?n[2]:void 0;if(i){const e=Mo,t=String(i);Mo=t;const n={from:e,to:t};(0,bo.aj)("history",n)}return e.apply(this,n)}}jo.onpopstate=function(){const t=jo.location.href,n=Mo;Mo=t;const r={from:n,to:t};if((0,bo.aj)("history",r),e)try{for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e.apply(this,o)}catch(s){}},(0,fo.GS)(jo.history,"pushState",t),(0,fo.GS)(jo.history,"replaceState",t)}const Bo={...Rr.Cq,markBackgroundTransactions:!0,routingInstrumentation:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!Xr||!Xr.location)return void(Kr&&Br.vF.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=Xr.location.href;t&&(r=e({name:Xr.location.pathname,startTimestamp:Wi.k3?Wi.k3/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&function(e){const t="history";(0,bo.s5)(t,e),(0,bo.AS)(t,Lo)}((t=>{let{to:n,from:o}=t;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(Kr&&Br.vF.log("[Tracing] Finishing current transaction with op: ".concat(r.op)),r.end()),r=e({name:Xr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Do};function Uo(e){const t=(n="meta[name=".concat(e,"]"),zr.document&&zr.document.querySelector?zr.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}function Vo(e){const t=e.attributes&&e.attributes[Mr.i_],n=e.data&&e.data[Mr.i_],r=e.metadata&&e.metadata.source;return t||n||r}function Ho(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)})),t=void 0)}return n}var zo=__webpack_require__(65356),Wo=__webpack_require__(33842);function qo(e){const t=Ho([e,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==(Ho([t,"optionalAccess",e=>e.instrumenter])||"sentry")}class Go{static __initStatic(){this.id="Apollo"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{useNestjs:!1};this.name=Go.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,zo.Vw)("@nestjs/graphql"):this._module=this._module||(0,zo.Vw)("apollo-server-core"),this._module}setupOnce(e,t){if(qo(t))Kr&&Br.vF.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const e=this.loadDependency();if(!e)return void(Kr&&Br.vF.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,fo.GS)(e.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(){(0,fo.GS)(this.resolversExplorerService,"explore",(function(e){return function(){return Yo((0,Wo.k9)(e.call(this)),t)}}));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.call(this,...r)}}))}else{const e=this.loadDependency();if(!e)return void(Kr&&Br.vF.error("Apollo Integration was unable to require apollo-server-core package."));(0,fo.GS)(e.ApolloServerBase.prototype,"constructSchema",(function(e){return function(){if(!this.config.resolvers)return Kr&&(this.config.schema?(Br.vF.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),Br.vF.warn()):this.config.modules&&Br.vF.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),Br.vF.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),e.call(this);const n=(0,Wo.k9)(this.config.resolvers);return this.config.resolvers=Yo(n,t),e.call(this)}}))}}}function Yo(e,t){return e.map((e=>(Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((r=>{"function"===typeof e[n][r]&&function(e,t,n,r){(0,fo.GS)(e[t],n,(function(e){return function(){const i=Ho([r().getScope().getSpan(),"optionalAccess",e=>e.startChild,"call",e=>e({description:"".concat(t,".").concat(n),op:"graphql.resolve",origin:"auto.graphql.apollo"})]);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const l=e.call(this,...a);return(0,Vr.Qg)(l)?l.then((e=>(Ho([i,"optionalAccess",e=>e.end,"call",e=>e()]),e))):(Ho([i,"optionalAccess",e=>e.end,"call",e=>e()]),l)}}))}(e,n,r,t)}))})),e)))}Go.__initStatic();function Ko(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.method&&e.method.toUpperCase();let r="",i="url";t.customRoute||e.route?(r=t.customRoute||"".concat(e.baseUrl||"").concat(e.route&&e.route.path),i="route"):(e.originalUrl||e.url)&&(r=Gi(e.originalUrl||e.url||""));let o="";return t.method&&n&&(o+=n),t.method&&t.path&&(o+=" "),t.path&&r&&(o+=r),[o,i]}class Qo{static __initStatic(){this.id="Express"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Qo.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?qo(t)?Kr&&Br.vF.log("Express Integration is skipped because of instrumenter configuration."):(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.forEach((t=>function(e,t){const n=e[t];return e[t]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(this,...function(e,t){return e.map((e=>"function"===typeof e?Xo(e,t):Array.isArray(e)?e.map((e=>"function"===typeof e?Xo(e,t):e)):e))}(r,t))},e}(e,t)))}(this._router,this._methods),function(e){const t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();const n=t?e._router:e;if(!n)return Kr&&Br.vF.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(Kr&&Br.vF.debug("Routing instrumentation is currently only supported in Express 4."));const r=Object.getPrototypeOf(n),i=r.process_params;r.process_params=function(e,t,n,r,o){n._reconstructedRoute||(n._reconstructedRoute="");const{layerRoutePath:a,isRegex:s,isArray:l,numExtraSegments:c}=function(e){let t=Ho([e,"access",e=>e.route,"optionalAccess",e=>e.path]);const n=(0,Vr.gd)(t),r=Array.isArray(t);if(!t){const[n]=Hr.OW.process.versions.node.split(".").map(Number);n>=16&&(t=Zo(e.path,e.regexp,e.keys))}if(!t)return{isRegex:n,isArray:r,numExtraSegments:0};const i=r?Math.max((a=t,a.reduce(((e,t)=>e+Yi(t.toString())),0)-Yi(e.path||"")),0):0,o=function(e,t){if(e)return t.map((e=>e.toString())).join(",");return t&&t.toString()}(r,t);var a;return{layerRoutePath:o,isRegex:n,isArray:r,numExtraSegments:i}}(e);let u;(a||s||l)&&(n._hasParameters=!0),u=a||(function(e,t,n){const r=Ho([Gi(e||""),"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>!!e))]);let i=0;const o=Ho([t,"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>!!e)),"access",e=>e.length])||0;return Ho([n,"optionalAccess",e=>e.split,"call",e=>e("/"),"access",e=>e.filter,"call",e=>e((e=>Ho([r,"optionalAccess",e=>e[o+i]])===e&&(i+=1,!0))),"access",e=>e.join,"call",e=>e("/")])}(n.originalUrl,n._reconstructedRoute,e.path)||"");const d=u.split("/").filter((e=>e.length>0&&(s||l||!e.includes("*")))).join("/");d&&d.length>0&&(n._reconstructedRoute+="/".concat(d).concat(s?"/":""));if(Yi(Gi(n.originalUrl||""))+c===Yi(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl?Gi(n.originalUrl):n.originalUrl);const e=r.__sentry_transaction,t=e&&(0,Qr.et)(e).data||{};if(e&&"custom"!==t[Mr.i_]){const t=n._reconstructedRoute||"/",[r,i]=Ko(n,{path:!0,method:!0,customRoute:t});e.updateName(r),e.setAttribute(Mr.i_,i)}}return i.call(this,e,t,n,r,o)}}(this._router)):Kr&&Br.vF.error("ExpressIntegration is missing an Express instance")}}function Xo(e,t){const n=e.length;switch(n){case 2:return function(n,r){const i=r.__sentry_transaction;if(i){const n=i.startChild({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"});r.once("finish",(()=>{n.end()}))}return e.call(this,n,r)};case 3:return function(n,r,i){const o=Ho([r.__sentry_transaction,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,n,r,(function(){Ho([o,"optionalAccess",e=>e.end,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.call(this,...t)}))};case 4:return function(n,r,i,o){const a=Ho([i.__sentry_transaction,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:"middleware.express.".concat(t),origin:"auto.middleware.express"})]);e.call(this,n,r,i,(function(){Ho([a,"optionalAccess",e=>e.end,"call",e=>e()]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.call(this,...t)}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: ".concat(n))}}Qo.__initStatic();const Zo=(e,t,n)=>{if(!e||!t||!n||0===Object.keys(n).length||!Ho([n,"access",e=>e[0],"optionalAccess",e=>e.offset]))return;const r=n.sort(((e,t)=>e.offset-t.offset)),i=new RegExp(t,"".concat(t.flags,"d")).exec(e);if(!i||!i.indices)return;const[,...o]=i.indices;if(o.length!==r.length)return;let a=e,s=0;return o.forEach(((e,t)=>{if(e){const[n,i]=e,o=a.substring(0,n-s),l=":".concat(r[t].name),c=a.substring(i-s);a=o+l+c,s+=i-n-l.length}})),a};class Jo{static __initStatic(){this.id="GraphQL"}constructor(){this.name=Jo.id}loadDependency(){return this._module=this._module||(0,zo.Vw)("graphql/execution/execute.js")}setupOnce(e,t){if(qo(t))return void(Kr&&Br.vF.log("GraphQL Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,fo.GS)(n,"execute",(function(e){return function(){const n=t().getScope(),r=n.getSpan(),i=Ho([r,"optionalAccess",e=>e.startChild,"call",e=>e({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);Ho([n,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const l=e.call(this,...a);return(0,Vr.Qg)(l)?l.then((e=>(Ho([i,"optionalAccess",e=>e.end,"call",e=>e()]),Ho([n,"optionalAccess",e=>e.setSpan,"call",e=>e(r)]),e))):(Ho([i,"optionalAccess",e=>e.end,"call",e=>e()]),Ho([n,"optionalAccess",e=>e.setSpan,"call",e=>e(r)]),l)}})):Kr&&Br.vF.error("GraphQL Integration was unable to require graphql/execution package.")}}Jo.__initStatic();const $o=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],ea={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class ta{static __initStatic(){this.id="Mongo"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=ta.id,this._operations=Array.isArray(e.operations)?e.operations:$o,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}loadDependency(){const e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,zo.Vw)(e)}setupOnce(e,t){if(qo(t))return void(Kr&&Br.vF.log("Mongo Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(n)this._instrumentOperations(n.Collection,this._operations,t);else{const e=this._useMongoose?"mongoose":"mongodb";Kr&&Br.vF.error("Mongo Integration was unable to require `".concat(e,"` package."))}}_instrumentOperations(e,t,n){t.forEach((t=>this._patchOperation(e,t,n)))}_patchOperation(e,t,n){if(!(t in e.prototype))return;const r=this._getSpanContextFromOperationArguments.bind(this);(0,fo.GS)(e.prototype,t,(function(e){return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=o[o.length-1],l=n(),c=l.getScope(),u=l.getClient(),d=c.getSpan(),p=Ho([u,"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]);if("function"!==typeof s||"mapReduce"===t&&2===o.length){const n=Ho([d,"optionalAccess",e=>e.startChild,"call",e=>e(r(this,t,o,p))]),i=e.call(this,...o);if((0,Vr.Qg)(i))return i.then((e=>(Ho([n,"optionalAccess",e=>e.end,"call",e=>e()]),e)));if((h=i)&&"object"===typeof h&&h.once&&"function"===typeof h.once){const e=i;try{e.once("close",(()=>{Ho([n,"optionalAccess",e=>e.end,"call",e=>e()])}))}catch(m){Ho([n,"optionalAccess",e=>e.end,"call",e=>e()])}return e}return Ho([n,"optionalAccess",e=>e.end,"call",e=>e()]),i}var h;const f=Ho([d,"optionalAccess",e=>e.startChild,"call",e=>e(r(this,t,o.slice(0,-1)))]);return e.call(this,...o.slice(0,-1),(function(e,t){Ho([f,"optionalAccess",e=>e.end,"call",e=>e()]),s(e,t)}))}}))}_getSpanContextFromOperationArguments(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={"db.system":"mongodb","db.name":e.dbName,"db.operation":t,"db.mongodb.collection":e.collectionName},o={op:"db",origin:"auto.db.mongo",description:t,data:i},a=ea[t],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!a||!s||!r)return o;try{if("mapReduce"===t){const[e,t]=n;i[a[0]]="string"===typeof e?e:e.name||"<anonymous>",i[a[1]]="string"===typeof t?t:t.name||"<anonymous>"}else for(let e=0;e<a.length;e++)i["db.mongodb.".concat(a[e])]=JSON.stringify(n[e])}catch(l){}return o}}ta.__initStatic();class na{static __initStatic(){this.id="Mysql"}constructor(){this.name=na.id}loadDependency(){return this._module=this._module||(0,zo.Vw)("mysql/lib/Connection.js")}setupOnce(e,t){if(qo(t))return void(Kr&&Br.vF.log("Mysql Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(!n)return void(Kr&&Br.vF.error("Mysql Integration was unable to require `mysql` package."));let r;try{n.prototype.connect=new Proxy(n.prototype.connect,{apply:(e,t,n)=>(r||(r=t.config),e.apply(t,n))})}catch(o){Kr&&Br.vF.error("Mysql Integration was unable to instrument `mysql` config.")}function i(e){if(!e)return;const t=r?{"server.address":r.host,"server.port":r.port,"db.user":r.user}:{};Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])})),e.end()}(0,fo.GS)(n,"createQuery",(function(e){return function(n,r,o){const a=Ho([t().getScope().getSpan(),"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"===typeof n?n:n.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if("function"===typeof o)return e.call(this,n,r,(function(e,t,n){i(a),o(e,t,n)}));if("function"===typeof r)return e.call(this,n,(function(e,t,n){i(a),r(e,t,n)}));const s=e.call(this,n,r);return s.on("end",(()=>{i(a)})),s}}))}}na.__initStatic();class ra{static __initStatic(){this.id="Postgres"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=ra.id,this._usePgNative=!!e.usePgNative,this._module=e.module}loadDependency(){return this._module=this._module||(0,zo.Vw)("pg")}setupOnce(e,t){if(qo(t))return void(Kr&&Br.vF.log("Postgres Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(!n)return void(Kr&&Br.vF.error("Postgres Integration was unable to require `pg` package."));const r=this._usePgNative?Ho([n,"access",e=>e.native,"optionalAccess",e=>e.Client]):n.Client;r?(0,fo.GS)(r.prototype,"query",(function(e){return function(n,r,i){const o=t().getScope().getSpan(),a={"db.system":"postgresql"};try{this.database&&(a["db.name"]=this.database),this.host&&(a["server.address"]=this.host),this.port&&(a["server.port"]=this.port),this.user&&(a["db.user"]=this.user)}catch(c){}const s=Ho([o,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"===typeof n?n:n.text,op:"db",origin:"auto.db.postgres",data:a})]);if("function"===typeof i)return e.call(this,n,r,(function(e,t){Ho([s,"optionalAccess",e=>e.end,"call",e=>e()]),i(e,t)}));if("function"===typeof r)return e.call(this,n,(function(e,t){Ho([s,"optionalAccess",e=>e.end,"call",e=>e()]),r(e,t)}));const l="undefined"!==typeof r?e.call(this,n,r):e.call(this,n);return(0,Vr.Qg)(l)?l.then((e=>(Ho([s,"optionalAccess",e=>e.end,"call",e=>e()]),e))):(Ho([s,"optionalAccess",e=>e.end,"call",e=>e()]),l)}})):Kr&&Br.vF.error("Postgres Integration was unable to access 'pg-native' bindings.")}}ra.__initStatic();class ia{static __initStatic(){this.id="Prisma"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=ia.id,(t=e.client)&&t.$use&&!e.client._sentryInstrumented){(0,fo.my)(e.client,"_sentryInstrumented",!0);const t={};try{const n=e.client._engineConfig;if(n){const{activeProvider:e,clientVersion:r}=n;e&&(t["db.system"]=e),r&&(t["db.prisma.version"]=r)}}catch(n){}e.client.$use(((e,n)=>{if(qo(uo.BF))return n(e);const r=e.action,i=e.model;return(0,po.Lk)({name:i?"".concat(i," ").concat(r):r,onlyIfParent:!0,op:"db.prisma",attributes:{[Mr.JD]:"auto.db.prisma"},data:{...t,"db.operation":r}},(()=>n(e)))}))}else Kr&&Br.vF.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",e.client);var t}setupOnce(){}}ia.__initStatic();var oa=__webpack_require__(23151);const aa=class{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,(0,Or.U)(),Kr&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...Bo,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=ro(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&io(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Di("longtask",(e=>{let{entries:t}=e;for(const n of t){const e=(0,jr.Z7)();if(!e)return;const t=Zi(Wi.k3+n.startTime),r=Zi(n.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:t,endTimestamp:t+r})}})),this.options._experiments.enableInteractions&&Di("event",(e=>{let{entries:t}=e;for(const n of t){const e=(0,jr.Z7)();if(!e)return;if("click"===n.name){const t=Zi(Wi.k3+n.startTime),r=Zi(n.duration),i={description:qr(n.target),op:"ui.interaction.".concat(n.name),origin:"auto.ui.browser.metrics",startTimestamp:t,endTimestamp:t+r},o=Yr(n.target);o&&(i.attributes={"ui.component_name":o}),e.startChild(i)}}})),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,f=h||this.options.tracePropagationTargets;Kr&&this._hasSetTracePropagationTargets&&h&&Br.vF.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),a,o),s&&(Xr.document?Xr.document.addEventListener("visibilitychange",(()=>{const e=(0,jr.Z7)();if(Xr.document.hidden&&e){const t="cancelled",{op:n,status:r}=(0,Qr.et)(e);Kr&&Br.vF.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(n)),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Kr&&Br.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Fo({traceFetch:l,traceXHR:c,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(Kr&&Br.vF.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid.")));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,a="pageload"===e.op;let s;if(a){const t=a?Uo("sentry-trace"):"",n=a?Uo("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:o,sampled:l}=(0,Ur.kM)(t,n);s={traceId:r,parentSpanId:o,parentSampled:l,...e,metadata:{...e.metadata,dynamicSamplingContext:i},trimEnd:!0}}else s={trimEnd:!0,...e};const l="function"===typeof n?n(s):s,c=void 0===l?{...s,sampled:!1}:l;c.metadata=c.name!==s.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,!1===c.sampled&&Kr&&Br.vF.log("[Tracing] Will not send ".concat(c.op," transaction because of beforeNavigate.")),Kr&&Br.vF.log("[Tracing] Starting ".concat(c.op," transaction on scope"));const{location:u}=Xr,d=(0,Or.p)(t,c,r,i,!0,{location:u},o,a);return a&&Xr.document&&(Xr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Xr.document.readyState)&&d.sendAutoFinishSignal()})),["interactive","complete"].includes(Xr.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback((e=>{this._collectWebVitals(),ao(e)})),d}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=(0,jr.Z7)();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(Kr&&Br.vF.warn("[Tracing] Did not create ".concat(i," transaction because a pageload or navigation transaction is in progress.")));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(Kr&&Br.vF.warn("[Tracing] Did not create ".concat(i," transaction because _getCurrentHub is invalid.")));if(!this._latestRoute.name)return void(Kr&&Br.vF.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing.")));const a=this._getCurrentHub(),{location:s}=Xr,l={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[Mr.i_]:this._latestRoute.context?Vo(this._latestRoute.context):"url"}};e=(0,Or.p)(a,l,t,n,!0,{location:s},r)};["click"].forEach((e=>{Xr.document&&addEventListener(e,t,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const e=e=>{let{entries:t}=e;const n=(0,Lr.KU)(),r=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,i=void 0!==r?r.getReplayId():void 0,o=(0,jr.Z7)(),a=(0,Lr.o5)(),s=void 0!==a?a.getUser():void 0;t.forEach((e=>{if(function(e){return"duration"in e}(e)){const t=e.interactionId;if(void 0===t)return;const n=this._interactionIdToRouteNameMapping[t],r=e.duration,a=e.startTime,l=Object.keys(this._interactionIdToRouteNameMapping),c=l.length>0?l.reduce(((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t)):void 0;if("first-input"===e.entryType){if(l.map((e=>this._interactionIdToRouteNameMapping[e])).some((e=>e.duration===r&&e.startTime===a)))return}if(!t)return;if(n)n.duration=Math.max(n.duration,r);else if(l.length<10||void 0===c||r>this._interactionIdToRouteNameMapping[c].duration){const e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:r,parentContext:n,user:s,activeTransaction:o,replayId:i,startTime:a})}}}))};Di("event",e),Di("first-input",e)}};("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,oa.l)();var sa=__webpack_require__(61462),la=__webpack_require__(55808),ca=__webpack_require__(83906),ua=__webpack_require__(88642),da=__webpack_require__(5982),pa=__webpack_require__.n(da),ha=__webpack_require__(45175),fa=__webpack_require__.n(ha),ma=__webpack_require__(35165),ga=__webpack_require__.n(ma),va=__webpack_require__(88043),ya=__webpack_require__.n(va);function ba(){return ba=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},ba.apply(this,arguments)}function wa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xa(e,t)}function xa(e,t){return xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xa(e,t)}function Ca(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Aa={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Ea={rel:["amphtml","canonical","alternate"]},_a={type:["application/ld+json"]},Ta={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Sa=Object.keys(Aa).map((function(e){return Aa[e]})),ka={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Pa=Object.keys(ka).reduce((function(e,t){return e[ka[t]]=t,e}),{}),Da=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Fa=function(e){var t=Da(e,Aa.TITLE),n=Da(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=Da(e,"defaultTitle");return t||r||void 0},Na=function(e){return Da(e,"onChangeClientState")||function(){}},Ia=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return ba({},e,t)}),{})},Ra=function(e,t){return t.filter((function(e){return void 0!==e[Aa.BASE]})).map((function(e){return e[Aa.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i+=1){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},Oa=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],l=ba({},r[s],i[s]);r[s]=l}return e}),[]).reverse()},ja=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},Ma=function(e){return Array.isArray(e)?e.join(""):e},La=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},Ba=function(e,t){var n;return ba({},e,((n={})[t]=void 0,n))},Ua=[Aa.NOSCRIPT,Aa.SCRIPT,Aa.STYLE],Va=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Ha=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},za=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[ka[n]||n]=e[n],t}),t)},Wa=function(e,t){return t.map((function(t,n){var r,i=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=ka[e]||e;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]})),sa.createElement(e,i)}))},qa=function(e,t,n){switch(e){case Aa.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,i=za(n,r),[sa.createElement(Aa.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=Ha(n),o=Ma(t);return i?"<"+e+' data-rh="true" '+i+">"+Va(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+Va(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return za(t)},toString:function(){return Ha(t)}};default:return{toComponent:function(){return Wa(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+Va(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===Ua.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},Ga=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var f=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=La(e.metaTags,Ta),o=La(t,Ea),a=La(n,_a);return{priorityMethods:{toComponent:function(){return[].concat(Wa(Aa.META,i.priority),Wa(Aa.LINK,o.priority),Wa(Aa.SCRIPT,a.priority))},toString:function(){return qa(Aa.META,i.priority,r)+" "+qa(Aa.LINK,o.priority,r)+" "+qa(Aa.SCRIPT,a.priority,r)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);h=f.priorityMethods,u=f.linkTags,d=f.metaTags,p=f.scriptTags}return{priority:h,base:qa(Aa.BASE,t,r),bodyAttributes:qa("bodyAttributes",n,r),htmlAttributes:qa("htmlAttributes",i,r),link:qa(Aa.LINK,u,r),meta:qa(Aa.META,d,r),noscript:qa(Aa.NOSCRIPT,o,r),script:qa(Aa.SCRIPT,p,r),style:qa(Aa.STYLE,a,r),title:qa(Aa.TITLE,{title:l,titleAttributes:c},r)}},Ya=[],Ka=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Ya:n.instances},add:function(e){(n.canUseDOM?Ya:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Ya:n.instances).indexOf(e);(n.canUseDOM?Ya:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=Ga({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Qa=sa.createContext({}),Xa=pa().shape({setHelmet:pa().func,helmetInstances:pa().shape({get:pa().func,add:pa().func,remove:pa().func})}),Za="undefined"!=typeof document,Ja=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new Ka(r.props.context,t.canUseDOM),r}return wa(t,e),t.prototype.render=function(){return sa.createElement(Qa.Provider,{value:this.helmetData.value},this.props.children)},t}(sa.Component);Ja.canUseDOM=Za,Ja.propTypes={context:pa().shape({helmet:pa().shape()}),children:pa().node.isRequired},Ja.defaultProps={context:{}},Ja.displayName="HelmetProvider";var $a=function(e,t){var n,r=document.head||document.querySelector(Aa.HEAD),i=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:a}},es=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},ts=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;es(Aa.BODY,e.bodyAttributes),es(Aa.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=Ma(e)),es(Aa.TITLE,t)}(u,d);var p={baseTag:$a(Aa.BASE,n),linkTags:$a(Aa.LINK,i),metaTags:$a(Aa.META,o),noscriptTags:$a(Aa.NOSCRIPT,a),scriptTags:$a(Aa.SCRIPT,l),styleTags:$a(Aa.STYLE,c)},h={},f={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(f[e]=p[e].oldTags)})),t&&t(),s(e,h,f)},ns=null,rs=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}wa(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!ya()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,i=null,o=(e=n.helmetInstances.get().map((function(e){var t=ba({},e.props);return delete t.context,t})),{baseTag:Ra(["href"],e),bodyAttributes:Ia("bodyAttributes",e),defer:Da(e,"defer"),encode:Da(e,"encodeSpecialCharacters"),htmlAttributes:Ia("htmlAttributes",e),linkTags:Oa(Aa.LINK,["rel","href"],e),metaTags:Oa(Aa.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Oa(Aa.NOSCRIPT,["innerHTML"],e),onChangeClientState:Na(e),scriptTags:Oa(Aa.SCRIPT,["src","innerHTML"],e),styleTags:Oa(Aa.STYLE,["cssText"],e),title:Fa(e),titleAttributes:Ia("titleAttributes",e),prioritizeSeoTags:ja(e,"prioritizeSeoTags")});Ja.canUseDOM?(t=o,ns&&cancelAnimationFrame(ns),t.defer?ns=requestAnimationFrame((function(){ts(t,(function(){ns=null}))})):(ts(t),ns=null)):Ga&&(i=Ga(o)),r(i)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(sa.Component);rs.propTypes={context:Xa.isRequired},rs.displayName="HelmetDispatcher";var is=["children"],os=["children"],as=function(e){function t(){return e.apply(this,arguments)||this}wa(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!fa()(Ba(this.props,"helmetData"),Ba(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Aa.SCRIPT:case Aa.NOSCRIPT:return{innerHTML:t};case Aa.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return ba({},r,((t={})[n.type]=[].concat(r[n.type]||[],[ba({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case Aa.TITLE:return ba({},i,((t={})[r.type]=a,t.titleAttributes=ba({},o),t));case Aa.BODY:return ba({},i,{bodyAttributes:ba({},o)});case Aa.HTML:return ba({},i,{htmlAttributes:ba({},o)});default:return ba({},i,((n={})[r.type]=ba({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=ba({},t);return Object.keys(e).forEach((function(t){var r;n=ba({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return ga()(Sa.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Sa.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),ga()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return sa.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=Ca(i,is),s=Object.keys(a).reduce((function(e,t){return e[Pa[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case Aa.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case Aa.LINK:case Aa.META:case Aa.NOSCRIPT:case Aa.SCRIPT:case Aa.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=Ca(e,os),r=ba({},n),i=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!i||i instanceof Ka||(i=new Ka(i.context,i.instances)),i?sa.createElement(rs,ba({},r,{context:i.value,helmetData:void 0})):sa.createElement(Qa.Consumer,null,(function(e){return sa.createElement(rs,ba({},r,{context:e}))}))},t}(sa.Component);as.propTypes={base:pa().object,bodyAttributes:pa().object,children:pa().oneOfType([pa().arrayOf(pa().node),pa().node]),defaultTitle:pa().string,defer:pa().bool,encodeSpecialCharacters:pa().bool,htmlAttributes:pa().object,link:pa().arrayOf(pa().object),meta:pa().arrayOf(pa().object),noscript:pa().arrayOf(pa().object),onChangeClientState:pa().func,script:pa().arrayOf(pa().object),style:pa().arrayOf(pa().object),title:pa().string,titleAttributes:pa().object,titleTemplate:pa().string,prioritizeSeoTags:pa().bool,helmetData:pa().object},as.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},as.displayName="Helmet";var ss=__webpack_require__(92838),ls=__webpack_require__(2035),cs=__webpack_require__.n(ls),us=__webpack_require__(10514),ds=__webpack_require__(78273);const ps=["A.fdae91e14e960079.GaiaPackNFT.NFT","A.e81193c424cfd3fb.Doodles.NFT"],hs=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;const n="".concat(ss.Sw,"/catalog");try{const e=new AbortController,t=await cs().get(n,{signal:e.signal});if(200!==t.status)throw new Error("Failed to fetch ".concat(n,": ").concat(t.statusText));const r=new Set(t.data.denylist);return ps.forEach((e=>r.add(e))),{catalog:new Set(t.data.catalog),denylist:new Set(ps)}}catch(r){if(ds.o.track("FAILED_TO_FETCH_CATALOG",{e:r}),cs().isCancel(r)||r&&r.isAxiosError&&r.response,e-1===0)throw new us.FlowtyException(r,{params:r.response},"FAILED_TO_FETCH_CATALOG");return hs(e-1,t)}};var fs=__webpack_require__(89425),ms=__webpack_require__(99334);const gs=(0,sa.createContext)({catalogCache:new Set,denylistCache:new Set}),vs=e=>{let{children:t}=e;const[n,r]=(0,sa.useState)(new Set),[i,o]=(0,sa.useState)(new Set);(0,sa.useEffect)((()=>{(async()=>{try{const e=await hs();(0,fs.t)("getFlowtyCollections",{response:e}),o(e.catalog),r(e.denylist)}catch(e){ds.o.track("ERROR_FETCHING_FLOWTY_COLLECTIONS",{error:e})}})()}),[]);const a=(0,sa.useMemo)((()=>({catalogCache:i,denylistCache:n})),[i,n]);return(0,ms.jsx)(gs.Provider,{value:a,children:t})};function ys(){return(0,sa.useContext)(gs)}var bs=__webpack_require__(27149),ws=__webpack_require__(28117);const xs={navbarOffsetHeight:0,setNavbarOffsetHeight(){},setVisibleInNav(){},visibleInNav:!1},Cs=(0,sa.createContext)(xs),As=e=>{let{children:t}=e;const[n,r]=(0,sa.useState)(!1),[i,o]=(0,sa.useState)(0),a={navbarOffsetHeight:i,setNavbarOffsetHeight:o,setVisibleInNav:r,visibleInNav:n};return(0,ms.jsx)(Cs.Provider,{value:a,children:t})},Es={setView(){},view:"large"},_s=(0,sa.createContext)(Es),Ts=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n,children:r}=e;const[i,o]=(0,sa.useState)((null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.preferredCardSize)||"large"),a={setView:o,view:i};return(0,ms.jsx)(_s.Provider,{value:a,children:r})}))),Ss=()=>(0,sa.useContext)(_s);var ks=__webpack_require__(11170),Ps=__webpack_require__(49413),Ds=__webpack_require__(51330);var Fs=__webpack_require__(11056);class Ns{static async getSpork(){const e={hasSpork:!1,message:null,messageType:"info",shouldDisable:!1},t=ss.db?"sporks":"testnet-sporks",n=new Date,r=function(e,t){(0,Ps.A)(2,arguments);var n=(0,Ds.A)(t);return(0,ks.default)(e,-n)}(n,6),i=(0,ks.default)(n,6),o=new URLSearchParams;null===o||void 0===o||o.append("filters[$and][0][endTimestamp][$gte]",encodeURIComponent(r.getTime())),null===o||void 0===o||o.append("filters[$and][1][startTimestamp][$lte]",encodeURIComponent(i.getTime())),null===o||void 0===o||o.append("sort",encodeURIComponent("startTimestamp:asc"));const a="".concat(ss.j$,"/api/").concat(t,"?").concat(o.toString());try{var s;const t=await cs().get(a),r=null===t||void 0===t||null===(s=t.data)||void 0===s?void 0:s.data;if(null===r||void 0===r||!r.length)return e;const i=r[0],o=(0,Fs.default)(i.attributes.endTimestamp);if(o<n){(0,fs.t)("Spork is over",{endTimestamp:o,today:n});return{hasSpork:!0,message:i.attributes.recentSporkMessage,messageType:i.attributes.recentSporkMessageType,shouldDisable:!1}}const l=(0,Fs.default)(i.attributes.startTimestamp);if(l<n){(0,fs.t)("Spork in progress",{startTime:l,today:n});return{hasSpork:!0,message:i.attributes.sporkMessage,messageType:i.attributes.sporkMessageType,shouldDisable:i.attributes.shouldDisable}}(0,fs.t)("Upcoming Spork Event",{startTime:l,today:n});return{hasSpork:!0,message:i.attributes.upcomingSporkMessage,messageType:i.attributes.upcomingSporkMessageType,shouldDisable:!1}}catch(l){ds.o.track("ERROR_FETCHING_SPORKS",{error:l});const t=l;return"ECONNABORTED"===t.code||"ERR_NETWORK"===t.code?Te(new us.FlowtyException(t,{},"sporks")):ds.o.track("ERROR_FETCHING_SPORKS_NETWORK",{axiosError:t}),e}}}const Is=(0,sa.createContext)({disableActions:!1,isShowing:!1,messageType:"info",setIsShowing(e){},sporkMessage:""}),Rs=e=>{let{children:t}=e;const[n,r]=(0,sa.useState)(null),[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)("info"),[l,c]=(0,sa.useState)(!1);(0,sa.useEffect)((()=>{(async()=>{try{const e=await Ns.getSpork();e.hasSpork&&(r(e.message),o(e.shouldDisable),s(e.messageType),c(!0))}catch(e){ds.o.track("ERROR_FETCHING_SPORK_MESSAGE",e)}})()}),[]);const u={disableActions:i,isShowing:l,messageType:a,setIsShowing:c,sporkMessage:n};return(0,ms.jsx)(Is.Provider,{value:u,children:t})};function Os(){return(0,sa.useContext)(Is)}var js=__webpack_require__(98853),Ms=__webpack_require__(80978),Ls=__webpack_require__.n(Ms),Bs=__webpack_require__(22483);let Us=function(e){return e.Loans="loans",e.Rentals="rentals",e.Swaps="swaps",e.Storefront="sales",e.Offers="offers",e}({});var Vs=function(e){return e.Loans="loans",e.Rentals="rentals",e.Swaps="swaps",e.Storefront="storefront",e.Offers="offers",e}(Vs||{});const Hs=[{name:Us.Storefront,route:"storefront"},{name:Us.Loans,route:"loans"},{name:Us.Rentals,route:"rentals"}],zs=e=>{let{path:t,isCollectionPage:n,collectionAddress:r,collectionName:i}=e;const{activeRoute:o}=(()=>{const{pathname:e}=(0,js.zy)();return{activeRoute:[{path:e.includes("/storefront"),type:Vs.Storefront},{path:e.includes("/loans"),type:Vs.Loans},{path:e.includes("/rentals"),type:Vs.Rentals},{path:e.includes("/offers"),type:Vs.Storefront}].reduce(((e,t)=>t.path?t.type:e),Vs.Storefront)}})(),a=(0,js.Zp)(),s=(0,sa.useMemo)((()=>Hs.map((e=>({id:e.route,label:e.name})))),[Hs]);return(0,ms.jsx)("div",{className:"py-3 md:pb-[20px] md:sticky md:top-[74px] z-20 bg-darkBg",children:(0,ms.jsx)(Bs.cs,{activeTab:o,tabs:s,onChange:e=>{a(n?"/collection/".concat(r,"/").concat(i,"/activity/").concat(e):"/".concat(t,"/").concat(e),{replace:!0})},type:"primary"})})},Ws=e=>{let{children:t}=e;return(0,ms.jsxs)("div",{className:"",children:[(0,ms.jsx)(zs,{path:"user-profile"}),t]})};let qs=function(e){return e.Ascending="asc",e.Descending="desc",e}({});qs.Ascending;var Gs,Ys;function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(null,arguments)}function Qs(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",Ks({width:"36px",height:"36px",viewBox:"0 0 36 36",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},i),void 0===n?sa.createElement("title",{id:r},"caret-line"):n?sa.createElement("title",{id:r},n):null,Gs||(Gs=sa.createElement("path",{className:"clr-i-outline clr-i-outline-path-1",d:"M29.52,22.52,18,10.6,6.48,22.52a1.7,1.7,0,0,0,2.45,2.36L18,15.49l9.08,9.39a1.7,1.7,0,0,0,2.45-2.36Z"})),Ys||(Ys=sa.createElement("rect",{x:0,y:0,width:36,height:36,fillOpacity:0})))}const Xs=sa.forwardRef(Qs),Zs=(__webpack_require__.p,function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center"){case"center":return"mx-auto";case"left":return"mr-auto";case"right":return"ml-auto";default:return""}}),Js=e=>{let{fields:t,items:n,onSort:r=()=>{},getItemKey:i=e=>"".concat(e.id),initialSortConfig:o=null,onClickRow:a,stickyHeaders:s,composeRowHref:l}=e;const[c,u]=(0,sa.useState)(o),d=(0,sa.useCallback)((e=>()=>{if((null===c||void 0===c?void 0:c.column)===e){if(c.order===qs.Descending)return void u({column:e,order:qs.Ascending});u({column:e,order:qs.Descending})}}),[c]);return(0,sa.useEffect)((()=>{r(c)}),[c]),(0,sa.useEffect)((()=>{"blockTimestamp"===(null===c||void 0===c?void 0:c.column)&&"desc"===(null===c||void 0===c?void 0:c.order)&&ds.o.track("Table Sorted",{sortedBy:c})}),[null===c||void 0===c?void 0:c.column]),(0,ms.jsx)("div",{className:"lg:px-1.5 lg:-mb-70",children:(0,ms.jsx)("div",{className:"w-full rounded-md pb-2 SortableTable overflow-x-auto ".concat(s?"2xl:overflow-x-visible":"2xl:overflow-x-auto "),children:(0,ms.jsxs)("table",{className:"w-full border-separate bg-darkBg",style:{borderSpacing:0},children:[(0,ms.jsx)("thead",{className:"bg-[#04070B] ".concat(s&&"2xl:top-[130px] sticky"),children:(0,ms.jsx)("tr",{children:null===t||void 0===t?void 0:t.map(((e,t)=>{let{name:n,title:r,sortable:i,align:o="left"}=e;return(0,ms.jsx)("th",{scope:"col",className:"th px-6 py-4 text-left text-base font-bold text-[#DDDDDD] uppercase tracking-wider",children:(0,ms.jsxs)("button",{type:"button",className:"bg-transparent ".concat(i?"":"cursor-default"," p-0 m-0 flex flex-row items-center ").concat(Zs(o)),disabled:!i,onClick:i?d(n):()=>{},children:[r,i&&(0,ms.jsx)(Xs,{className:"fill-[#DDDDDD] ".concat((null===c||void 0===c?void 0:c.column)===n?"opacity-100":"opacity-20 hover:opacity-30"," ").concat("desc"===(null===c||void 0===c?void 0:c.order)?"transform rotate-180":""," "),height:20})]})},"".concat(n,"-").concat(t))}))})}),(0,ms.jsx)("tbody",{className:"bg-transparent divide-y divide-white",children:null===n||void 0===n?void 0:n.map(((e,n)=>(0,ms.jsx)("tr",{onClick:t=>null===a||void 0===a?void 0:a({e:t,index:n,item:e}),className:"".concat(a?"cursor-pointer":""," hover:bg-gray-700 group"),children:null===t||void 0===t?void 0:t.map((t=>{var n,r,i,o,a;return(0,ms.jsx)("td",{className:"group-hover:text-primary px-6 py-6 whitespace-nowrap text-".concat(null!==(n=t.align)&&void 0!==n?n:"left"),children:l?(0,ms.jsx)("a",{href:l(e),className:"group-hover:text-primary",children:null!==(r=null===(i=t.customRender)||void 0===i?void 0:i.call(t,{field:t,item:e}))&&void 0!==r?r:(0,ms.jsx)("div",{className:"text-sm font-medium text-gray-900  text-".concat(t.align),children:e[t.name]})}):(0,ms.jsx)(ms.Fragment,{children:null!==(o=null===(a=t.customRender)||void 0===a?void 0:a.call(t,{field:t,item:e}))&&void 0!==o?o:(0,ms.jsx)("div",{className:"text-sm font-medium text-gray-900 text-".concat(t.align),children:e[t.name]})})},t.name)}))},"".concat(i(e),"-").concat(n))))})]})})})};Js.defaultProps={onSort:()=>{}};const $s=Js;var el=__webpack_require__(20390),tl=__webpack_require__(43677),nl=__webpack_require__(14146),rl=__webpack_require__(83170);const il=async e=>{let{collectionAddress:t,collectionName:n}=e;try{var r;const e=await(0,nl.r)({collectionAddress:t,collectionName:n});return(0,us.getSquareImage)((null===e||void 0===e||null===(r=e.collectionDisplay)||void 0===r?void 0:r.name)||"",e||null)}catch(i){return console.error("Error retrieving collection image"),rl.A}};var ol=__webpack_require__(13090);const al=e=>{let{collectionAddress:t,collectionName:n,srcImg:r}=e;const[i,o]=(0,sa.useState)("");return(0,ms.jsx)(ms.Fragment,{children:i?(0,ms.jsx)("img",{src:i,onError:e=>{(0,ol.R)(e)},alt:"".concat(i," asset"),className:"object-cover aspect-square rounded-[4px]"}):(0,ms.jsx)("img",{src:r,onError:()=>{il({collectionAddress:t,collectionName:n}).then((e=>{o(e)}))},alt:"".concat(r," asset"),className:"object-cover aspect-square rounded-[4px]"})})},sl=[{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:t.type.toLowerCase()})},name:"status",sortable:!1,title:"Status"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.activityType})},name:"type",sortable:!1,title:"Type"},{customRender:e=>{let{item:t}=e;return t.blockTimestamp?(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm")}):null},name:"date",sortable:!1,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.nftInfo)||void 0===a||!a.nft)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.nftInfo)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.nftInfo)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.nftInfo)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=U.nftInfo)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(y=U.nftInfo)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(w=U.nftInfo)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===(C=U.nftInfo)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.nftInfo)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(T=U.nftInfo)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.nftInfo)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.nftInfo)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.nftInfo)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.nftInfo)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.nftInfo)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"}];var ll=__webpack_require__(75027),cl=__webpack_require__.n(ll),ul=__webpack_require__(70124),dl=__webpack_require__.n(ul),pl=__webpack_require__(96321);const hl=e=>{var t,n;let{limit:r=25,accountId:i,makerCb:o,sort:a,filterActivityBy:s,eventCollection:l="p2pEvents",addressPath:c="data.lender",storefrontAccountId:u,nftTypes:d}=e;let p=pl.kA.collection(l).orderBy(null!==(t=null===a||void 0===a?void 0:a.column)&&void 0!==t?t:"blockTimestamp",null!==(n=null===a||void 0===a?void 0:a.order)&&void 0!==n?n:"desc").where("additionalData.card.collectionAddress","!=","0xd0bcefdf1e67ea85");null!==s&&void 0!==s&&s.min&&(p=p.where("type","==",null===s||void 0===s?void 0:s.min)),i&&(p=p.where("accountAddress","in",[i])),u&&(p=p.where(c,"in",[u])),d&&d.length>0&&(p=p.where("data.nftType","in",d)),p.limit(r).onSnapshot((async e=>{let{docs:t}=e;if("storefrontEvents"===l){const e=t.map((e=>{var t,n;const r=e.data();return{...r,amount:r.data.salePrice||r.data.amount,card:(null===r||void 0===r||null===(t=r.additionalDetails)||void 0===t?void 0:t.card)||(null===r||void 0===r||null===(n=r.data)||void 0===n?void 0:n.card)||null,commissionAmount:r.data.commissionAmount,id:e.id,paymentTokenName:r.data.paymentTokenName||(0,us.getTokenFromType)(r.data.salePaymentVaultType||r.data.paymentTokenType),salePaymentVaultType:r.data.salePaymentVaultType,type:r.type}}));o(e)}}))},fl=e=>{var t,n;let{limit:r=25,accountId:i,makerCb:o,takerCb:a,sort:s,filterActivityBy:l,eventCollection:c="p2pEvents",listingCollection:u="listingAvailable",addressPath:d="data.lender",storefrontAccountId:p,accountIDs:h}=e;const f=h||[i],m=h||[p];(0,fs.t)("subscribeToAllActivity accountIDs",{accountIDs:h});let g=pl.kA.collection(c).orderBy(null!==(t=null===s||void 0===s?void 0:s.column)&&void 0!==t?t:"blockTimestamp",null!==(n=null===s||void 0===s?void 0:s.order)&&void 0!==n?n:"desc"),v=pl.kA.collection(c).orderBy("blockTimestamp","desc");null!==l&&void 0!==l&&l.min&&(g=g.where("type","==",null===l||void 0===l?void 0:l.min),v=v.where("type","==",null===l||void 0===l?void 0:l.min)),i&&(g=g.where("accountAddress","in",f),v=v.where(d,"in",f)),p&&(g=g.where(d,"in",m),v=v.where("accountAddress","in",m));const y=g.limit(r).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection(u).where("listingResourceID","in",e.map((e=>{var t;return null===(t=e.data().data)||void 0===t?void 0:t.listingResourceID})).filter((e=>!!e))).get()))).then((e=>{if("p2pEvents"===c){const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");o(t.map((e=>{var t,r,i,o,a,s,l;return{...e.data(),amount:null===(t=n[e.data().data.listingResourceID])||void 0===t?void 0:t.amount,id:e.id,nftInfo:null===(r=n[e.data().data.listingResourceID])||void 0===r?void 0:r.detail,paymentTokenName:null===(i=n[e.data().data.listingResourceID])||void 0===i?void 0:i.paymentTokenName,rate:null===(o=n[e.data().data.listingResourceID])||void 0===o?void 0:o.interestRate,royaltyRate:null===(a=n[e.data().data.listingResourceID])||void 0===a?void 0:a.royaltyRate,term:null===(s=n[e.data().data.listingResourceID])||void 0===s?void 0:s.term,valuations:null===(l=n[e.data().data.listingResourceID])||void 0===l?void 0:l.valuations}})))}else if("rentalEvents"===c){const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");o(t.map((e=>{var t,r,i,o,a,s,l;return{...e.data(),amount:null===(t=n[e.data().data.listingResourceID])||void 0===t?void 0:t.amount,deposit:null===(r=n[e.data().data.listingResourceID])||void 0===r?void 0:r.deposit,id:e.id,nftInfo:null===(i=n[e.data().data.listingResourceID])||void 0===i?void 0:i.detail,paymentTokenName:null===(o=n[e.data().data.listingResourceID])||void 0===o?void 0:o.paymentTokenName,royaltyRate:null===(a=n[e.data().data.listingResourceID])||void 0===a?void 0:a.royaltyRate,term:null===(s=n[e.data().data.listingResourceID])||void 0===s?void 0:s.term,valuations:null===(l=n[e.data().data.listingResourceID])||void 0===l?void 0:l.valuations}})))}else if("storefrontEvents"===c){const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");o(t.map((e=>{var t,r,i,o,a;return{...e.data(),amount:null===(t=n[e.data().data.listingResourceID])||void 0===t?void 0:t.salePrice,card:null===(r=n[e.data().data.listingResourceID])||void 0===r?void 0:r.card,commissionAmount:null===(i=n[e.data().data.listingResourceID])||void 0===i?void 0:i.commissionAmount,id:e.id.toString(),paymentTokenName:null===(o=n[e.data().data.listingResourceID])||void 0===o?void 0:o.paymentTokenName,salePaymentVaultType:null===(a=n[e.data().data.listingResourceID])||void 0===a?void 0:a.salePaymentVaultType}})))}}))})),b=i||p?v.limit(r).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection(u).where("listingResourceID","in",e.map((e=>{var t;return null===(t=e.data().data)||void 0===t?void 0:t.listingResourceID})).filter((e=>!!e))).get()))).then((e=>{const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");a&&a(t.map((e=>{var t;return{...e.data(),id:e.id,nftInfo:null===(t=n[e.data().data.listingResourceID])||void 0===t?void 0:t.detail}})))}))})):()=>{};return()=>{y(),b()}},ml=e=>{let{limit:t=25,accountId:n,cb:r,filterBy:i,accountIDs:o,stateType:a}=e;const s=o||[n];let l=pl.kA.collection("listingAvailable");l=pl.kA.collection("listingAvailable").where("state","==",a).where("flowtyStorefrontAddress","in",s);const c=[];"state"!==i.path&&c.length>0&&(l=l.where("state","in",c)),i.path?"state"===i.path?l=l.where(i.path,"==",i.min):"interestRate"===i.path?(i.min&&(l=l.where(i.path,">=",Number(i.min)/100)),i.max&&(l=l.where(i.path,"<=",Number(i.max)/100)),l=l.orderBy(i.path,"desc")):"blockTimestamp"===i.path||"settleDeadline"===i.path?(i.min&&(l=l.where(i.path,">=",i.min)),i.max&&(l=l.where(i.path,"<=",i.max)),l=l.orderBy(i.path,"desc")):(i.min&&(l=l.where(i.path,">=",Number(i.min))),i.max&&(l=l.where(i.path,"<=",Number(i.max))),l=l.orderBy(i.path,"desc")):l=l.orderBy("blockTimestamp","desc");const u=l.limit(t).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection("listingAvailable").where("listingResourceID","in",e.map((e=>e.data().listingResourceID))).get()))).then((e=>{const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");r(t.map((e=>{var t;return{...e.data(),listingAvailable:n[e.data().listingResourceID],nftInfo:null===(t=n[e.data().listingResourceID])||void 0===t?void 0:t.detail}})))}))}));return()=>{u()}};var gl=__webpack_require__(98860),vl=__webpack_require__(54331),yl=__webpack_require__.n(vl);const bl=e=>{let{showFilter:t,setShowFilter:n,FilterFields:r,filterOptions:i,setAllFieldsNull:o,filterBy:a,setFilterBy:s}=e;const[l,c]=(0,sa.useState)(!1),u=(e,t,n,r,i)=>{o(),c(!0),""===e&&c(!1),t({...n,[r]:e}),s({...n,path:i,[r]:e})};return(0,ms.jsxs)("div",{className:"h-full z-50 rounded-r-md fixed top-0 right-0 bg-[#232d39] overflow-x-auto pb-[40px] transition duration-700 overflow-y-auto flex flex-col ".concat(t?"w-0":"w-400"),children:[(0,ms.jsx)("button",{className:"".concat(l?"bg-green-500 hover:bg-green-600":"bg-red-500 hover:bg-red-600"," float-right text-black font-bold uppercase text-sm px-6 py-4 shadow hover:shadow-lg outline-none focus:outline-none ease-linear transition-all duration-150"),type:"button",onClick:()=>n(!t),children:l?"View":"Close"}),(0,ms.jsx)("div",{className:"p-6",children:(0,ms.jsx)(gl.l1,{initialValues:{},onSubmit:()=>{},children:()=>(0,ms.jsx)(ms.Fragment,{children:r.map((e=>(0,ms.jsxs)("div",{className:"my-4",children:[(0,ms.jsx)("p",{className:"text-base font-semibold text-start text-white mb-1",children:e.title}),(0,ms.jsx)("div",{className:"grid gap-y-6 gap-x-4 grid-cols-6",children:e.selectField?(0,ms.jsx)("div",{className:"col-span-12 flex-col",children:(0,ms.jsxs)("select",{className:"h-[37px] w-full text-sm bg-transparent border font-semibold justify-end rounded-md px-4 hover:border-white focus:border-primary focus:outline-none ",name:"status",onChange:t=>((e,t,n)=>{o(),c(!0),t(e),s({...a,max:"",min:e,path:n})})(t.target.value,e.setValue,e.path),value:(null===e||void 0===e?void 0:e.value)||"",children:[(0,ms.jsx)("option",{value:"",hidden:!0,children:"Choose here"}),i.map(((e,t)=>(0,ms.jsx)("option",{value:(null===e||void 0===e?void 0:e.value)||"",className:"text-black",children:e.label},t)))]})}):e.dateField?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"col-span-3",children:(0,ms.jsx)("div",{className:"mt-1",children:(0,ms.jsx)(yl(),{className:"h-[37px] w-full text-sm bg-transparent border font-semibold justify-end rounded-md px-3 hover:border-white focus:border-primary focus:outline-none ",selected:e.value.min,onChange:t=>u(t,e.setValue,e.value,"min",e.path),placeholderText:"Min",maxDate:e.value.max})})}),(0,ms.jsx)("div",{className:"col-span-3",children:(0,ms.jsx)("div",{className:"mt-1",children:(0,ms.jsx)(yl(),{className:"h-[37px] w-full text-sm bg-transparent border font-semibold justify-end rounded-md px-3 hover:border-white focus:border-primary focus:outline-none ",selected:e.value.max,onChange:t=>u(t,e.setValue,e.value,"max",e.path),placeholderText:"Max",minDate:e.value.min})})})]}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"col-span-3",children:(0,ms.jsx)("div",{className:"mt-1",children:(0,ms.jsx)(Bs.f,{placeholder:"Min",className:"h-[37px] w-full text-sm bg-transparent border font-semibold justify-end rounded-md px-3 hover:border-white focus:border-primary focus:outline-none ",name:"".concat(e.title,"min"),value:e.value.min,onChange:t=>u(t.target.value,e.setValue,e.value,"min",e.path)})})}),(0,ms.jsx)("div",{className:"col-span-3",children:(0,ms.jsx)("div",{className:"mt-1",children:(0,ms.jsx)(Bs.f,{placeholder:"Max",className:"h-[37px] w-full text-sm bg-transparent border font-semibold justify-end rounded-md px-3 hover:border-white focus:border-primary focus:outline-none ",name:"".concat(e.title,"max"),value:e.value.max,onChange:t=>u(t.target.value,e.setValue,e.value,"max",e.path)})})})]})})]},e.path)))})})}),(0,ms.jsx)("div",{className:"px-6 mt-2.5",children:(0,ms.jsx)(Bs.M2,{type:"button",text:"Reset",onClick:()=>{c(!1),o(),s({...a,max:"",min:"",path:""})},variant:"secondary",btnSize:"small"})}),(0,ms.jsx)("p",{className:"text-sm text-left px-6 mt-6 text-white",children:"Filter by the fields above. As of now, you can filter by one field at a time. We will be rolling out multi-field filtering soon."})]})},wl=e=>{let{showFilter:t,setShowFilter:n,filterBy:r,setFilterBy:i,filterOptions:o}=e;const[a,s]=(0,sa.useState)(null),l=[{path:"state",selectField:!0,setValue:s,title:"Status",value:a}];return(0,sa.useEffect)((()=>{null===r||void 0===r||!r.path||null!==r&&void 0!==r&&r.min||null!==r&&void 0!==r&&r.max||i({...r,path:null})}),[r]),(0,ms.jsx)(bl,{showFilter:t,setShowFilter:n,FilterFields:l,filterOptions:o,setAllFieldsNull:()=>{s("")},filterBy:r,setFilterBy:i})},xl=function(e){let{onInfiniteScroll:t,isLoading:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const i=(0,sa.useRef)(null);return(0,sa.useCallback)((e=>(n||(i.current&&i.current.disconnect(),i.current=new IntersectionObserver((e=>{e[0].isIntersecting&&t()})),e&&i.current.observe(e)),null)),[n,...r])},Cl=e=>{let{show:t=!0}=e;return(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:t&&(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 mr-2",children:(0,ms.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"})}),"Scroll down to load more"]})})},Al=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(0),[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(1),[l,c]=(0,sa.useState)(!0),[u,d]=(0,sa.useState)({max:"",min:"",path:""}),[p,h]=(0,sa.useState)([]),[f,m]=(0,sa.useState)([]),[g,v]=(0,sa.useState)([]),y=(0,js.Zp)(),b=(0,sa.useMemo)((()=>a*ss.cb),[a]),w=(0,sa.useMemo)((()=>f.map((e=>({...e,activityType:"Lender"}))).concat(p.map((e=>({...e,activityType:"Borrower"})))).concat(g.map((e=>({...e,activityType:"Borrower"}))))),[f,p,g]),x=(0,sa.useMemo)((()=>w.length),[w]),C=xl({isLoading:i,onInfiniteScroll(){i||(s(a+1),r(x)),ds.o.track("Inifinite Scroll Loans Activity Table")}},[x,i]);return(0,sa.useEffect)((()=>{o(!(n!==x||!x))}),[n,x]),(0,sa.useEffect)((()=>{var e,n,r;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(fl({accountIDs:(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[],accountId:null===t||void 0===t||null===(n=t.loggedUser)||void 0===n?void 0:n.addr,filterActivityBy:u,limit:b,makerCb(e){h(e)},takerCb(e){m(e)}}),void(e=>{let{limit:t=25,accountId:n,makerCb:r,accountIDs:i,filterActivityBy:o,listingCollection:a="listingAvailable"}=e;const s=i||[n];let l=pl.kA.collection("p2pEvents");l=pl.kA.collection("p2pEvents").where("type","==",(null===o||void 0===o?void 0:o.min)||"DELISTED").where("data.flowtyStorefrontAddress","in",s).orderBy("blockTimestamp","desc");const c=l.limit(t).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection(a).where("listingResourceID","in",e.map((e=>{var t;return null===(t=e.data().data)||void 0===t?void 0:t.listingResourceID})).filter((e=>!!e))).get()))).then((e=>{const n=dl()(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))),"listingResourceID");r(t.map((e=>{var t;return{...e.data(),nftInfo:null===(t=n[e.data().data.listingResourceID])||void 0===t?void 0:t.detail}})))}))}))})({accountIDs:(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[],accountId:null===t||void 0===t||null===(r=t.loggedUser)||void 0===r?void 0:r.addr,filterActivityBy:u,limit:b,makerCb(e){v(e)}})):()=>{}}),[b,null===t||void 0===t?void 0:t.loggedUser,u]),(0,sa.useEffect)((()=>{s(1)}),[u]),(0,sa.useEffect)((()=>{u.path&&ds.o.track("Profile Activity Loans Page Filtered",{filter:u,user:null===t||void 0===t?void 0:t.loggedUser})}),[u.path]),(0,ms.jsxs)("div",{className:" w-full flex flex-col ",children:[(0,ms.jsx)(wl,{filterOptions:[{label:"Settled",value:"SETTLED"},{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Listed",value:"LISTED"},{label:"Delisted",value:"DELISTED"}],showFilter:l,setShowFilter:c,filterBy:u,setFilterBy:d}),(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{c(!l)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{var t;let{item:n}=e;return(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.listingResourceID)&&y(WD(n.data.listingResourceID))},fields:sl,items:w,stickyHeaders:!0,composeRowHref:e=>WD(e.data.listingResourceID)})}),i?(0,ms.jsx)("div",{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:C})]})]})}))),El=e=>{let{showFilter:t,setShowFilter:n,filterBy:r,setFilterBy:i}=e;const[o,a]=(0,sa.useState)(""),[s,l]=(0,sa.useState)({max:null,min:null}),[c,u]=(0,sa.useState)({max:null,min:null}),[d,p]=(0,sa.useState)({max:null,min:null}),[h,f]=(0,sa.useState)({max:null,min:null}),[m,g]=(0,sa.useState)({max:null,min:null}),[v,y]=(0,sa.useState)({max:null,min:null}),b=[{path:"state",selectField:!0,setValue:a,title:"Status",value:o},{dateField:!0,path:"blockTimestamp",setValue:l,title:"Start Date",value:s},{dateField:!0,path:"settleDeadline",setValue:u,title:"Due Date",value:c},{path:"amount",setValue:p,title:"Amount",value:d},{path:"interestRate",setValue:f,title:"Rate %",value:h},{path:"derivations.apr",setValue:g,title:"APR %",value:m},{path:"derivations.calculatedValues.totalRepayment",setValue:y,title:"Repayment Amount",value:v}];(0,sa.useEffect)((()=>{!r.path||r.min||r.max||i({...r,path:""})}),[r]);return(0,ms.jsx)(bl,{showFilter:t,setShowFilter:n,FilterFields:b,filterOptions:[{label:"Listed",value:"LISTED"},{label:"Delisted",value:"DELISTED"},{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Settled",value:"SETTLED"}],setAllFieldsNull:()=>{a(""),l({max:"",min:""}),u({max:"",min:""}),p({max:"",min:""}),f({max:"",min:""}),g({max:"",min:""}),y({max:"",min:""})},filterBy:r,setFilterBy:i,tableName:"Borrower Table"})};var _l=__webpack_require__(4377),Tl=__webpack_require__.n(_l);const Sl=e=>{if(!e)return"0 Days";const t=Number(e);if(t/60<60)return"".concat((t/60).toFixed(2)," Mins");if(t/3600<24)return"".concat((t/3600).toFixed(1)," Hrs");const n=t/86400;return"".concat(n.toFixed(0)," ").concat(n>1?"Days":"Day")},kl=e=>{var t,n,r,i,o,a;const s=(null===e||void 0===e||null===(t=(n=e).toDate)||void 0===t||null===(r=t.call(n))||void 0===r||null===(i=r.getTime)||void 0===i?void 0:i.call(r))||(null===e||void 0===e||null===(o=(a=e).getTime)||void 0===o?void 0:o.call(a))||Number(e);return new Date(s+ss.Zu)},Pl=e=>kl(e)<new Date,Dl=e=>kl(e)<new Date;var Fl=__webpack_require__(85873);const Nl=e=>[{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:null!==(t=null===r||void 0===r||null===(n=r.listingAvailable)||void 0===n?void 0:n.state.toLowerCase())&&void 0!==t?t:r.settled?"Settled":"Not settled"})},name:"status",sortable:!1,title:"Status"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:null!==(t=n.listingAvailable)&&void 0!==t&&t.blockTimestamp?(0,el.default)(n.listingAvailable.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"loanStart",sortable:!1,title:"Loan Start Date"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:t.settleDeadline?(0,el.default)(t.settleDeadline.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"dueDate",sortable:!1,title:"Due Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B,U,V,H,z,W,q,G,Y,K,Q,X,Z,J,$,ee;let{item:te}=e;const ne="A.".concat(null===(t=te.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=te.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=te.listingAvailable)||void 0===a||null===(s=a.detail)||void 0===s||!s.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===te||void 0===te||null===(l=te.listingAvailable)||void 0===l||null===(c=l.detail)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionAddress)||"",collectionName:(null===te||void 0===te||null===(d=te.listingAvailable)||void 0===d||null===(p=d.detail)||void 0===p||null===(h=p.card)||void 0===h?void 0:h.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(f=null===te||void 0===te||null===(m=te.listingAvailable)||void 0===m||null===(g=m.detail)||void 0===g||null===(v=g.card)||void 0===v||null===(y=v.images)||void 0===y||null===(b=y[0])||void 0===b?void 0:b.url)&&void 0!==f?f:tl.A,(0,ss.hx)(ne))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(w=te.listingAvailable)&&void 0!==w&&null!==(x=w.detail)&&void 0!==x&&null!==(C=x.card)&&void 0!==C&&C.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(A=te.listingAvailable)||void 0===A||null===(E=A.detail)||void 0===E||null===(_=E.card)||void 0===_?void 0:_.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(T=te.listingAvailable)||void 0===T||null===(S=T.detail)||void 0===S||null===(k=S.card)||void 0===k?void 0:k.title}),(null===(P=te.listingAvailable)||void 0===P||null===(D=P.detail)||void 0===D||null===(F=D.card)||void 0===F?void 0:F.num)&&!(null!==(N=te.listingAvailable)&&void 0!==N&&null!==(I=N.detail)&&void 0!==I&&null!==(R=I.card)&&void 0!==R&&R.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(O=te.listingAvailable)||void 0===O||null===(j=O.detail)||void 0===j||null===(M=j.card)||void 0===M?void 0:M.num]})]}),null!==te&&void 0!==te&&null!==(L=te.listingAvailable)&&void 0!==L&&null!==(B=L.detail)&&void 0!==B&&null!==(U=B.card)&&void 0!==U&&U.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==te&&void 0!==te&&null!==(V=te.listingAvailable)&&void 0!==V&&null!==(H=V.detail)&&void 0!==H&&null!==(z=H.card)&&void 0!==z&&z.additionalDetails?null===te||void 0===te||null===(W=te.listingAvailable)||void 0===W||null===(q=W.detail)||void 0===q||null===(G=q.card)||void 0===G||null===(Y=G.additionalDetails)||void 0===Y?void 0:Y.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===te||void 0===te||null===(K=te.listingAvailable)||void 0===K||null===(Q=K.detail)||void 0===Q||null===(X=Q.card)||void 0===X?void 0:X.headerTraits)&&(null===te||void 0===te||null===(Z=te.listingAvailable)||void 0===Z||null===(J=Z.detail)||void 0===J||null===($=J.card)||void 0===$||null===(ee=$.headerTraits)||void 0===ee?void 0:ee.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t;let{item:n}=e;return null!==n&&void 0!==n&&null!==(t=n.listingAvailable)&&void 0!==t&&t.amount?(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(n.listingAvailable.amount),isSmall:!0,token:n.listingAvailable.paymentTokenName})}):null},name:"amount",sortable:!1,title:"Amount"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:null!==n&&void 0!==n&&null!==(t=n.listingAvailable)&&void 0!==t&&t.enabledAutoRepayment?"Yes":"No"})},name:"autoRepayment",sortable:!1,title:"Auto Repayment"},{customRender:e=>{var t;let{item:n}=e;return null!==(t=n.listingAvailable)&&void 0!==t&&t.interestRate?(0,ms.jsxs)("div",{className:"flex flex-row justify-center items-center",children:[(100*n.listingAvailable.interestRate).toFixed(2),"%"]}):null},name:"rate",sortable:!1,title:"Rate"},{customRender:e=>{var t,n;let{item:r}=e;return null!==(t=r.listingAvailable)&&void 0!==t&&t.term?(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:Sl(null===(n=r.listingAvailable)||void 0===n?void 0:n.term)}):null},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{let{item:t}=e;return null!==t&&void 0!==t&&t.listingAvailable?(0,ms.jsxs)("div",{className:"flex flex-row justify-center items-center",children:[Tl()((0,us.calcAPRInterest)(t?Number(t.listingAvailable.interestRate):0,t?Number(t.listingAvailable.term):0)).format("0,0.00"),"%"]}):null},name:"apr",sortable:!1,title:"APR"},{customRender:e=>{let{item:t}=e;var n,r,i;return t.listingAvailable&&null!==(n=t.calculatedValues)&&void 0!==n&&n.totalRepayment?(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:(0,ms.jsx)(Fl.se,{amount:null===t||void 0===t||null===(r=t.calculatedValues)||void 0===r?void 0:r.repaymentDue,isSmall:!0,token:(null===t||void 0===t||null===(i=t.listingAvailable)||void 0===i?void 0:i.paymentTokenName)||us.SupportedTokens.FLOW})}):null},name:"repayment",sortable:!1,title:"Repayment Amount"},{customRender:t=>{let{item:n}=t;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(null===n||void 0===n?void 0:n.lender))},className:"flex flex-row justify-start items-center hover:text-green-300",children:(0,ms.jsx)("a",{href:"/user/".concat(null===n||void 0===n?void 0:n.lender),children:(null===n||void 0===n?void 0:n.lender)||"--"})})},name:"lender",sortable:!1,title:"Lender"}],Il=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(0),[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(1),[l,c]=(0,sa.useState)(!0),[u,d]=(0,sa.useState)({max:"",min:"",path:""}),[p,h]=(0,sa.useState)([]),[f,m]=(0,sa.useState)([]),[g,v]=(0,sa.useState)([]),y=(0,js.Zp)(),b=(0,sa.useMemo)((()=>a*ss.cb),[a]),w=(0,sa.useMemo)((()=>p.length),[p]),x=(0,sa.useMemo)((()=>p.concat(f).concat(g)),[p,g]),C=xl({isLoading:i,onInfiniteScroll(){i||(s(a+1),r(w)),ds.o.track("Inifinite Scroll Loans Borrower Table")}},[w]);return(0,sa.useEffect)((()=>{o(!(n!==w||!w))}),[n,w]),(0,sa.useEffect)((()=>{u.path&&ds.o.track("Profile Borrower Loans Page Filtered",{filter:u,user:null===t||void 0===t?void 0:t.loggedUser})}),[u.path]),(0,sa.useEffect)((()=>{var e,n,r,i;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?((e=>{let{limit:t=25,accountId:n,cb:r,filterBy:i,accountIDs:o}=e;const a=o||[n];let s=pl.kA.collection("listingAvailable").where("flowtyStorefrontAddress","in",a);const l=[];"state"!==i.path&&l.length>0&&(s=s.where("state","in",l)),i.path?"state"===i.path?s=s.where(i.path,"==",i.min):"interestRate"===i.path?(i.min&&(s=s.where(i.path,">=",Number(i.min)/100)),i.max&&(s=s.where(i.path,"<=",Number(i.max)/100)),s=s.orderBy(i.path,"desc")):"blockTimestamp"===i.path||"settleDeadline"===i.path?(i.min&&(s=s.where(i.path,">=",i.min)),i.max&&(s=s.where(i.path,"<=",i.max)),s=s.orderBy(i.path,"desc")):(i.min&&(s=s.where(i.path,">=",Number(i.min))),i.max&&(s=s.where(i.path,"<=",Number(i.max))),s=s.orderBy(i.path,"desc")):s=s.orderBy("blockTimestamp","desc");const c=s.limit(t).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection("fundingAvailable").where("listingResourceID","in",e.map((e=>e.data().listingResourceID))).get()))).then((e=>{const n=dl()(t.map((e=>({...e.data(),id:e.id}))),"listingResourceID");r(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))).map((e=>({...e,listingAvailable:n[e.listingResourceID]}))))}))}))})({accountId:null===t||void 0===t||null===(n=t.loggedUser)||void 0===n?void 0:n.addr,cb(e){const t=e.map((e=>{var t,n,r,i,o,a,s;return{...e,calculatedValues:{...(0,us.solveWithAmountAndInterest)({amount:null!==e&&void 0!==e&&null!==(t=e.listingAvailable)&&void 0!==t&&t.amount?Number(null===(n=e.listingAvailable)||void 0===n?void 0:n.amount):0,interest:null!==e&&void 0!==e&&null!==(r=e.listingAvailable)&&void 0!==r&&r.interestRate?Number(null===(i=e.listingAvailable)||void 0===i?void 0:i.interestRate):0,term:null!==e&&void 0!==e&&null!==(o=e.listingAvailable)&&void 0!==o&&o.term?Number(null===(a=e.listingAvailable)||void 0===a?void 0:a.term):0},(null===e||void 0===e||null===(s=e.listingAvailable)||void 0===s?void 0:s.royaltyRate)||0)}}}));h(t)},filterBy:u,limit:b}),ml({accountIDs:(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[],accountId:null===t||void 0===t||null===(r=t.loggedUser)||void 0===r?void 0:r.addr,cb(e){m(e)},filterBy:u,limit:b,stateType:"DELISTED"}),void ml({accountIDs:(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[],accountId:null===t||void 0===t||null===(i=t.loggedUser)||void 0===i?void 0:i.addr,cb(e){v(e)},filterBy:u,limit:b,stateType:"LISTED"})):()=>{}}),[b,null===t||void 0===t?void 0:t.loggedUser,u]),(0,sa.useEffect)((()=>{s(1)}),[u]),(0,ms.jsxs)("div",{className:" w-full flex flex-col ",children:[(0,ms.jsx)(El,{showFilter:l,setShowFilter:c,filterBy:u,setFilterBy:d}),(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{c(!l)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{let{item:t}=e;return(null===t||void 0===t?void 0:t.listingResourceID)&&y(WD(t.listingResourceID))},fields:Nl(y),items:x,stickyHeaders:!0,composeRowHref:e=>WD(e.listingResourceID)})}),i?(0,ms.jsx)("div",{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:C})]})]})}))),Rl=e=>{let{showFilter:t,setShowFilter:n,filterBy:r,setFilterBy:i}=e;const[o,a]=(0,sa.useState)(""),[s,l]=(0,sa.useState)({max:null,min:null}),[c,u]=(0,sa.useState)({max:null,min:null}),[d,p]=(0,sa.useState)({max:null,min:null}),[h,f]=(0,sa.useState)({max:null,min:null}),[m,g]=(0,sa.useState)({max:null,min:null}),[v,y]=(0,sa.useState)({max:null,min:null}),b=[{path:"state",selectField:!0,setValue:a,title:"Status",value:o},{dateField:!0,path:"listingAvailable.blockTimestamp",setValue:l,title:"Start Date",value:s},{dateField:!0,path:"listingAvailable.settleDeadline",setValue:u,title:"Due Date",value:c},{path:"listingAvailable.derivations.calculatedValues.marketplaceAmount",setValue:p,title:"Amount",value:d},{path:"listingAvailable.derivations.calculatedValues.periodicInterest",setValue:f,title:"Rate %",value:h},{path:"listingAvailable.derivations.marketplaceAPR",setValue:g,title:"APR %",value:m},{path:"listingAvailable.derivations.calculatedValues.totalRepayment",setValue:y,title:"Repayment Amount",value:v}];(0,sa.useEffect)((()=>{!r.path||r.min||r.max||i({...r,path:""})}),[r]);return(0,ms.jsx)(bl,{showFilter:t,setShowFilter:n,FilterFields:b,filterOptions:[{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Settled",value:"SETTLED"}],setAllFieldsNull:()=>{a(""),l({max:"",min:""}),u({max:"",min:""}),p({max:"",min:""}),f({max:"",min:""}),g({max:"",min:""}),y({max:"",min:""})},filterBy:r,setFilterBy:i,tableName:"Lender Table"})},Ol=e=>[{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:null===t||void 0===t?void 0:t.state.toLowerCase()})},name:"status",sortable:!1,title:"Status"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.blockTimestamp?(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"loanStart",sortable:!1,title:"Loan Start Date"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.settleDeadline?(0,el.default)(t.settleDeadline.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"dueDate",sortable:!1,title:"Due Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.detail)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.detail)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.detail)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.detail)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=U.detail)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(y=U.detail)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(w=U.detail)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===(C=U.detail)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.detail)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(T=U.detail)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.detail)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.detail)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.detail)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.detail)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.detail)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null!==(t=null===i||void 0===i||null===(n=i.derivations)||void 0===n||null===(r=n.calculatedValues)||void 0===r?void 0:r.marketplaceAmount)&&void 0!==t?t:0),isSmall:!0,token:i.paymentTokenName||us.SupportedTokens.FLOW})})},name:"amount",sortable:!1,title:"Amount"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(100*(null!==(t=null===i||void 0===i||null===(n=i.derivations)||void 0===n||null===(r=n.calculatedValues)||void 0===r?void 0:r.periodicInterest)&&void 0!==t?t:0)).toFixed(2),"%"]})},name:"rate",sortable:!1,title:"Rate"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(t.term)})},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Tl()(null!==(t=null===r||void 0===r||null===(n=r.derivations)||void 0===n?void 0:n.marketplaceAPR)&&void 0!==t?t:0).format("0,0.00"),"%"]})},name:"apr",sortable:!1,title:"APR"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-center items-center",children:(0,ms.jsx)(Fl.se,{amount:null!==(t=null===i||void 0===i||null===(n=i.derivations)||void 0===n||null===(r=n.calculatedValues)||void 0===r?void 0:r.totalRepayment)&&void 0!==t?t:0,isSmall:!0,token:i.paymentTokenName||us.SupportedTokens.FLOW})})},name:"repayment",sortable:!1,title:"Repayment Amount"},{customRender:t=>{let{item:n}=t;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress))},className:"flex flex-row justify-start items-center hover:text-green-300",children:(0,ms.jsx)("a",{href:"/user/".concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress),children:(null===n||void 0===n?void 0:n.flowtyStorefrontAddress)||"--"})})},name:"borrower",sortable:!1,title:"Borrower"}],jl=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(0),[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(1),[l,c]=(0,sa.useState)(!0),[u,d]=(0,sa.useState)({max:"",min:"",path:""}),[p,h]=(0,sa.useState)([]),f=(0,js.Zp)(),m=(0,sa.useMemo)((()=>a*ss.cb),[a]),g=(0,sa.useMemo)((()=>p.length),[p]),v=xl({isLoading:i,onInfiniteScroll(){i||(s(a+1),r(g)),ds.o.track("Inifinite Scroll Loans Lender Table")}},[g]);return(0,sa.useEffect)((()=>{o(!(n!==g||!g))}),[n,g]),(0,sa.useEffect)((()=>{var e,n;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(e=>{let{isRentalView:t=!1,limit:n=25,accountId:r,cb:i,filterBy:o}=e;const a=t?"listingRented":"fundingAvailable",s=t?"renter":"lender";let l=pl.kA.collection(a).where(s,"in",[r]);return o.path?"listingAvailable.derivations.calculatedValues.periodicInterest"===o.path?(o.min&&(l=l.where(o.path,">=",Number(o.min)/100)),o.max&&(l=l.where(o.path,"<=",Number(o.max)/100)),l=l.orderBy(o.path,"desc")):"listingAvailable.blockTimestamp"===o.path||"listingAvailable.settleDeadline"===o.path?(o.min&&(l=l.where(o.path,">=",o.min)),o.max&&(l=l.where(o.path,"<=",o.max)),l=l.orderBy(o.path,"desc")):"state"!==o.path&&(o.min&&(l=l.where(o.path,">=",Number(o.min))),o.max&&(l=l.where(o.path,"<=",Number(o.max))),l=l.orderBy(o.path,"desc")):l=l.orderBy("listingAvailable.blockTimestamp","desc"),l.limit(n).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>"state"===o.path?pl.kA.collection("listingAvailable").where("state","==",o.min).where("listingResourceID","in",e.map((e=>e.data().listingResourceID))).get():pl.kA.collection("listingAvailable").where("listingResourceID","in",e.map((e=>e.data().listingResourceID))).get()))).then((e=>{const n=dl()(t.map((e=>({...e.data(),id:e.id}))),"listingResourceID");i(e.flatMap((e=>null===e||void 0===e?void 0:e.docs.map((e=>({...e.data(),id:e.id}))))).map((e=>({...e,fundingAvailable:n[e.listingResourceID]}))))}))}))})({accountId:null===t||void 0===t||null===(n=t.loggedUser)||void 0===n?void 0:n.addr,cb(e){const t=e.map((e=>({...e,calculatedValues:{...(0,us.solveWithAmountAndInterest)({amount:e.amount?Number(e.amount):0,interest:e.interestRate?Number(e.interestRate):0,term:e.term?Number(e.term):0},(null===e||void 0===e?void 0:e.royaltyRate)||0)}})));(0,fs.t)("subscribeToMyLoans",t),h(t)},filterBy:u,limit:m}):()=>{}}),[m,null===t||void 0===t?void 0:t.loggedUser,u]),(0,sa.useEffect)((()=>{s(1)}),[u]),(0,sa.useEffect)((()=>{u.path&&ds.o.track("Profile Lender Loans Page Filtered",{filter:u,user:null===t||void 0===t?void 0:t.loggedUser})}),[u.path]),(0,ms.jsxs)("div",{className:" w-full flex flex-col ",children:[(0,ms.jsx)(Rl,{showFilter:l,setShowFilter:c,filterBy:u,setFilterBy:d}),(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{c(!l)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{let{item:t}=e;return(null===t||void 0===t?void 0:t.listingResourceID)&&f(WD(t.listingResourceID))},fields:Ol(f),items:p,stickyHeaders:!0,composeRowHref:e=>WD(e.listingResourceID)})}),i?(0,ms.jsx)("div",{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:v})]})]})}))),Ml=[{content:(0,ms.jsx)(Al,{}),name:"Activity"},{content:(0,ms.jsx)(Il,{}),name:"Borrower"},{content:(0,ms.jsx)(jl,{}),name:"Lender"}],Ll=()=>{const[e,t]=(0,sa.useState)(Ml[0].name);return(0,sa.useEffect)((()=>{ds.o.track("Profile Activity Loans Visited",{currentTab:e})}),[e]),(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Ws,{}),(0,ms.jsxs)("div",{className:"mt-4 transition duration-700",children:[(0,ms.jsxs)("div",{children:[(0,ms.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"loanTabs",children:Ml.map((n=>(0,ms.jsx)("div",{onClick:()=>{t(n.name),ds.o.track("Profile Activity Loans Toggled: ".concat(n.name),{tab:n.name})},className:Ls()(n.name===e?"border-indigo-500 text-white":"border-transparent text-gray-500 hover:text-white hover:border-indigo-500","whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"),children:n.name},n.name)))}),(0,ms.jsx)("div",{className:"line-separator bg-gradient-to-r from-darkBg via-secondary to-darkBg"})]}),(0,ms.jsx)("div",{className:"mt-8 mb-3",children:Ml.map((t=>t.name===e?(0,ms.jsx)("div",{children:t.content},t.name):null))})]})]})},Bl=e=>{let{address:t}=e;const[n,r]=(0,sa.useState)(!1),i=()=>r(!1);return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("button",{"data-tooltip-id":"copy-wallet-tooltip","data-tooltip-content":"Copy Wallet Address","data-tooltip-place":"right",className:"bg-[#606E7D33] hover:bg-[#606E7D52] border border-[#FFFFFF1F] rounded-md px-[12px] py-[6px] cursor-pointer leading-[normal] flex",onClick:()=>{r(!0),setTimeout(i,5e3),navigator.clipboard.writeText(t)},children:[(0,ms.jsx)("span",{className:"text-[#DEDEDE] font-normal text-[0.875rem] md:text-[14px] mr-[0.25rem]",children:t}),(0,ms.jsx)("div",{children:n?(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-[14px] h-[14px] text-primary",children:(0,ms.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"})}):(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:(0,ms.jsx)("path",{d:"M9.1875 10.5625V12.5312C9.1875 12.8937 8.89369 13.1875 8.53125 13.1875H2.84375C2.48131 13.1875 2.1875 12.8937 2.1875 12.5312V5.09375C2.1875 4.73131 2.48131 4.4375 2.84375 4.4375H3.9375C4.23562 4.4375 4.52794 4.46235 4.8125 4.51009M9.1875 10.5625H11.1562C11.5187 10.5625 11.8125 10.2687 11.8125 9.90625V7.0625C11.8125 4.46113 9.9205 2.30166 7.4375 1.88509C7.15294 1.83735 6.86062 1.8125 6.5625 1.8125H5.46875C5.10631 1.8125 4.8125 2.10631 4.8125 2.46875V4.51009M9.1875 10.5625H5.46875C5.10631 10.5625 4.8125 10.2687 4.8125 9.90625V4.51009M11.8125 8.375V7.28125C11.8125 6.19394 10.9311 5.3125 9.84375 5.3125H8.96875C8.60631 5.3125 8.3125 5.01869 8.3125 4.65625V3.78125C8.3125 2.69394 7.43106 1.8125 6.34375 1.8125H5.6875",stroke:"#DEDEDE",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})};let Ul=function(e){return e[e.Listed=0]="Listed",e[e.Funded=1]="Funded",e[e.History=2]="History",e}({});const Vl=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{activeTabBtn:n=Ul.Listed,authStore:r}=e;const i=[{content:(0,ms.jsx)(Ll,{}),id:"tag-1",label:"User Activity"}];return(0,ms.jsxs)("div",{className:"pt-4 flex flex-col justify-center",children:[(0,ms.jsx)("div",{className:"self-center",children:(0,ms.jsx)("div",{className:"flex justify-center items-center",children:(0,ms.jsx)(Bl,{address:"".concat(null===r||void 0===r||null===(t=r.loggedUser)||void 0===t?void 0:t.addr)})})}),(0,ms.jsx)("div",{className:"mt-3",children:(0,ms.jsx)(Bs.cs,{activeTab:"tag-1",tabs:i,onChange:()=>{},type:"primary",isCenter:!0})})]})})));var Hl;function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zl.apply(null,arguments)}function Wl(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",zl({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"animate-spin h-5 w-5 mr-2 text-white",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Hl||(Hl=sa.createElement("g",{id:"Icon/Outline/refresh"},sa.createElement("path",{id:"Icon",d:"M3.33331 3.33333V7.49999H3.81791M16.6151 9.16666C16.205 5.87807 13.3997 3.33333 9.99998 3.33333C7.20216 3.33333 4.80689 5.0568 3.81791 7.49999M3.81791 7.49999H7.49998M16.6666 16.6667V12.5H16.182M16.182 12.5C15.1931 14.9432 12.7978 16.6667 9.99998 16.6667C6.6003 16.6667 3.79497 14.1219 3.38489 10.8333M16.182 12.5H12.5",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))))}const ql=sa.forwardRef(Wl),Gl=(__webpack_require__.p,[{label:"Listed",value:"RENTAL_LISTED"},{label:"Delisted",value:"RENTAL_DESTROYED"},{label:"Rented",value:"RENTAL_RENTED"},{label:"Returned",value:"RENTAL_RETURNED"},{label:"Settled",value:"RENTAL_SETTLED"},{label:"Expired",value:"EXPIRED"}]),Yl=e=>(0,ms.jsx)(wl,{...e,filterOptions:Gl}),Kl=[{label:"Settled",value:"SETTLED"},{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Listed",value:"LISTED"},{label:"Expired",value:"EXPIRED"}],Ql=e=>(0,ms.jsx)(wl,{...e,filterOptions:Kl});var Xl,Zl,Jl;function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$l.apply(null,arguments)}function ec(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",$l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-external-link",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Xl||(Xl=sa.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})),Zl||(Zl=sa.createElement("polyline",{points:"15 3 21 3 21 9"})),Jl||(Jl=sa.createElement("line",{x1:10,y1:14,x2:21,y2:3})))}const tc=sa.forwardRef(ec);__webpack_require__.p;var nc=__webpack_require__(39744);const rc=e=>{let{children:t,valuationType:n}=e;return(0,ms.jsx)("div",{className:"z-10 relative",children:(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(n,"-overlay")}),(0,ms.jsx)("div",{"data-tooltip-id":"".concat(n,"-overlay"),"data-tooltip-content":"\tAny valuation metric on flowty is derived from third-party estimations\n\t\t\t\tand metrics that do not represent financial advice nor the actual\n\t\t\t\texpected ".concat(n," or valuation of a listing or NFT. Please do\n\t\t\t\tyour own research.")}),t]})})},ic=e=>{let{contractName:t,nftID:n,labelType:r}=e;switch(t){case"Flovatar":return(0,ms.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://flov.dev/?mint=".concat(n),children:(0,ms.jsx)(rc,{valuationType:r,children:(0,ms.jsxs)("p",{className:"flex pt-1",children:[us.NFTValuationProvider.FlovDev," ",r,(0,ms.jsx)(tc,{className:"inline-block pb-1"})]})})});case"TopShot":case"AllDay":return(0,ms.jsx)(rc,{valuationType:r,children:(0,ms.jsxs)("p",{className:"flex text-lightText text-lg font-light",children:["Blended ",r]})});default:return(0,us.assertNever)(t)}},oc=e=>[{customRender:e=>{let{item:t}=e;const n=t.type[0]+t.type.slice(1).toLowerCase();return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:n})},name:"type",sortable:!1,title:"Status"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.blockTimestamp?(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"blockTimestamp",sortable:!0,title:"Start Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.additionalData)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.additionalData)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.additionalData)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.additionalData)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=U.additionalData)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.title?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(y=U.additionalData)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(w=U.additionalData)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===(C=U.additionalData)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.additionalData)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(T=U.additionalData)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.additionalData)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.additionalData)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.additionalData)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.nftInfo)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.nftInfo)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.calculatedValues.marketplaceAmount,isSmall:!0,token:t.paymentTokenName})})},name:"amount",sortable:!1,title:"Amount"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Tl()(100*(null!==(t=n.calculatedValues.periodicInterest)&&void 0!==t?t:0)).format("0,0.00"),"%"]})},name:"rate",sortable:!1,title:"Rate"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(t.calculatedValues.term)})},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{let{item:t}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Tl()((0,us.calcAPRInterest)(t?Number(t.calculatedValues.periodicInterest):0,t?Number(t.calculatedValues.term):0)).format("0,0.00"),"%"]})},name:"apr",sortable:!1,title:"APR"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.calculatedValues.totalRepayment,isSmall:!0,token:t.paymentTokenName||ss.HT})})},name:"repayment",sortable:!1,title:"Repayment Amount"},{customRender:e=>{var t,n,r,i;let{item:o}=e;const a=Number((null===o||void 0===o||null===(t=o.nftInfo)||void 0===t||null===(n=t.valuations)||void 0===n||null===(r=n.aggregate)||void 0===r?void 0:r.loanToValueRatio)||(null===o||void 0===o||null===(i=o.additionalData)||void 0===i?void 0:i.loanToValueRatio)||0);return a?(0,ms.jsx)(rc,{valuationType:"LTV",children:(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Math.round(100*a),"%"]})}):(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:"N/A"})},name:"valuations.aggregate.loanToValueRatio",sortable:!1,title:"3rd Party LTV"},{customRender:t=>{var n,r;let{item:i}=t;return(0,ms.jsx)("div",{onClick:t=>{var n;t.preventDefault(),t.stopPropagation(),e("/user/".concat(null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.lender))},className:"lender flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.lender),children:(null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.lender)||"--"})})},name:"lender",sortable:!1,title:"Lender"},{customRender:t=>{var n,r,i,o;let{item:a}=t;return(0,ms.jsx)("div",{onClick:t=>{var n,r;t.preventDefault(),t.stopPropagation(),e("/user/".concat((null===a||void 0===a||null===(n=a.data)||void 0===n?void 0:n.borrower)||(null===a||void 0===a||null===(r=a.nftInfo)||void 0===r?void 0:r.storefrontAddress)))},className:"borrower flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat((null===a||void 0===a||null===(n=a.data)||void 0===n?void 0:n.borrower)||(null===a||void 0===a||null===(r=a.nftInfo)||void 0===r?void 0:r.storefrontAddress)),children:(null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.borrower)||(null===a||void 0===a||null===(o=a.nftInfo)||void 0===o?void 0:o.storefrontAddress)||"--"})})},name:"borrower",sortable:!1,title:"Borrower"}],ac=e=>{let{metaTitle:t,metaDescription:n,metaImage:r}=e;return(0,ms.jsx)(Ja,{children:(0,ms.jsxs)(as,{children:[(0,ms.jsx)("meta",{name:"description",content:n}),(0,ms.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,ms.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,ms.jsx)("meta",{name:"twitter:site",content:"@flowty"}),(0,ms.jsx)("meta",{name:"twitter:title",content:t}),(0,ms.jsx)("meta",{name:"twitter:description",content:n}),(0,ms.jsx)("meta",{name:"twitter:image",content:r}),(0,ms.jsx)("meta",{name:"description",content:n}),(0,ms.jsx)("meta",{property:"og:title",content:t}),(0,ms.jsx)("meta",{property:"og:description",content:n}),(0,ms.jsx)("meta",{property:"og:image",content:r}),(0,ms.jsx)("title",{children:t})]})})};var sc=__webpack_require__(31991);const lc=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n}=e;return(0,ms.jsx)("div",{className:"container z-[999] fixed top-0 left-0 right-0",children:null===(t=(0,sc.zu)(null===n||void 0===n?void 0:n.activeGlobalAlerts))||void 0===t?void 0:t.map((e=>{const t=e.component;return(0,ms.jsx)(t,{},e.id)}))})})));var cc=__webpack_require__(51572),uc=__webpack_require__(46855),dc=__webpack_require__(19388),pc=__webpack_require__(799),hc=__webpack_require__.n(pc);const fc=e=>new Promise((t=>{setTimeout(t,e)})),mc="accounts",gc=async(e,t)=>{try{return await pl.db.collection(mc).doc(e).update(t),!0}catch(n){return ds.o.track("ERROR_FIREBASE_UPDATE_ACCOUNT_DATA",{error:n}),(0,fs._)("Error updating account data:",(0,us.getMessageFromError)(n)),!1}},vc=async e=>{(0,fs.t)("getting account with id",e);const t=await pl.db.collection(mc).doc(e).get();if(t.exists){(0,fs.t)("account exists...");const e=t.data();return e.email||(e.email=""),(0,fs.t)("obtained account",e),e}throw new Error("Could not find account for address ".concat(e))},yc=async e=>{(0,fs.t)("creating account token...",{user:e});let t=null;for(const i of e.services)if("account-proof"===i.type){t=i;break}if(t)try{(0,fs.t)("creating custom token...",{service:t,user:e});return(await cs().post("".concat(ss.Sw,"/auth/verify-proof"),{proof:t})).data.customToken}catch(r){var n;(0,fs._)("createAccountToken error",{message:(0,us.getMessageFromError)(r),responseData:null===(n=r.response)||void 0===n?void 0:n.data})}return(async e=>{try{var t,n;const e=(0,us.utf8ToHexString)("By signing in, you agree to flowtyNFT Inc's \nTerms of Service and Privacy Policy");await fc(500);const r=await dc.currentUser().signUserMessage(e);return"string"===typeof r&&r.startsWith("Declined")?(ds.o.track("[PREVIEW 2-4233]CatchBlock RejectionError",{}),""):"object"===typeof r&&null!==r&&void 0!==r&&null!==(t=r.message)&&void 0!==t&&t.includes("Popup failed to open")?((0,fs._)("pop up error detected"),ds.o.track("[AuthService] PopupError",{}),await hc().fire({icon:"error",showConfirmButton:!0,timer:5e3,title:"Pop-up blocker is enabled. Please allow pop-ups and try again."}),""):null!==r&&void 0!==r&&null!==(n=r[0])&&void 0!==n&&n.addr?(await cs().post("".concat(ss.Sw,"/login"),{compositeSignature:r,msg:e})).data.customToken:""}catch(r){return(0,fs._)("failed to login with user signature",(0,us.getMessageFromError)(r)),""}})()};var bc=__webpack_require__(95899);const wc=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(!0),[i,o]=(0,sa.useState)(!1),a=()=>{r(!1)};return(0,ms.jsx)("div",{children:(0,ms.jsx)(cc.e,{appear:!0,show:n,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:"relative z-40",static:!0,onClose:()=>null,children:[(0,ms.jsx)(cc.e.Child,{enter:"transition duration-000 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:sa.Fragment,children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,ms.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-1000",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,ms.jsx)(uc.l.Panel,{className:"relative z-40 shadow-xl bg-darkBg rounded-[10px] border border-[#343A40]",children:(0,ms.jsxs)("div",{className:"flex flex-col select-none w-[24rem] md:w-[436px]",children:[(0,ms.jsx)("div",{className:"p-[40px]",children:(0,ms.jsx)("span",{className:"text-white text-shadow text-[24px] font-montserrat font-black leading-normal font-montserrat",children:"Updated Terms Of Service"})}),(0,ms.jsx)("div",{className:"mx-auto p-[40px] border-y border-[#343A40]",children:i?(0,ms.jsx)("div",{className:"mx-auto text-center",children:(0,ms.jsx)(bc.BM,{height:200,width:200})}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("p",{className:"text-neutral-900 text-sm font-montserrat font-medium leading-normal",children:["We updated our"," ",(0,ms.jsx)("a",{className:"text-primary underline",href:"https://www.flowty.io/tos",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,ms.jsx)("a",{className:"text-primary underline",href:"https://www.flowty.io/privacy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),". To continue using Flowty, please review and agree to these changes."]}),(0,ms.jsx)("p",{className:"text-neutral-900 text-sm font-montserrat font-medium leading-normal mt-[10px]",children:'Simply click "ACCEPT AND CONTINUE" to confirm that you have read and agree to the updated policies.'})]})}),(0,ms.jsx)("div",{className:"rounded-b-[.625rem] py-[20px] flex flex-col items-center justify-center",children:(0,ms.jsx)("div",{className:"w-96 mb-2",children:(0,ms.jsx)(Bs.M2,{type:"button",onClick:async()=>{o(!0);try{var e;null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(await gc(t.loggedUser.addr,{hasAcceptedTermsV2:!0}),null===t||void 0===t||t.setNewTermsAcknowledged(!0),ds.o.track("AGREED_TO_LATEST_TERMS")):ds.o.track("AGREED_TO_LATEST_TERMS_ERROR",{error:"No User"})}catch(n){ds.o.track("AGREED_TO_LATEST_TERMS_ERROR",{error:n}),a()}finally{o(!1),a()}},text:"ACCEPT AND CONTINUE",variant:"secondary",btnSize:"large",disabled:i})})})]})})})})]})})})})));var xc=__webpack_require__(55989);const Cc=xc.Ik().shape({email:xc.Yj().email("Invalid email").required("Required")});async function Ac(e){var t,n;let r=null!==(t=await(null===pl.j2||void 0===pl.j2||null===(n=pl.j2.currentUser)||void 0===n?void 0:n.getIdToken(!0)))&&void 0!==t?t:"";var i,o;""===r&&(await fc(1e3),r=null!==(i=await(null===pl.j2||void 0===pl.j2||null===(o=pl.j2.currentUser)||void 0===o?void 0:o.getIdToken(!0)))&&void 0!==i?i:"");const a="".concat(ss.Sw,"/notifications/subscribe"),s={Authorization:r};try{return(await cs().post(a,{email:e},{headers:s})).data}catch(l){console.log("subscribeEmailToNotification",{error:l})}}const Ec=async(e,t,n,r)=>{try{const i=[],o=[];1==n?i.push("offers"):0==n&&o.push("offers"),1==r?i.push("newsletter"):0==r&&o.push("newsletter"),await async function(e){var t,n;let{resubscribeNames:r,unsubscribeNames:i,email:o}=e;if(!r.length&&!i.length)return;let a=null!==(t=await(null===pl.j2||void 0===pl.j2||null===(n=pl.j2.currentUser)||void 0===n?void 0:n.getIdToken(!0)))&&void 0!==t?t:"";var s,l;""===a&&(await fc(1e3),a=null!==(s=await(null===pl.j2||void 0===pl.j2||null===(l=pl.j2.currentUser)||void 0===l?void 0:l.getIdToken(!0)))&&void 0!==s?s:"");const c="".concat(ss.Sw,"/notifications/save"),u={Authorization:a};try{return(await cs().post(c,{email:o,resubscribeNames:r,unsubscribeNames:i},{headers:u})).data}catch(d){(0,fs.t)("updateEmailNotificationSubscriptions",{error:d})}}({email:t,resubscribeNames:i,unsubscribeNames:o}).then((n=>(null===e||void 0===e||e.setMarketingEmail(t),n)))}catch(i){return(0,fs.t)("handleSubscribe",i),i}};var _c=__webpack_require__(48470);const Tc=async(e,t,n,r,i)=>{if(!e)throw new Error("Required parameter loggedUserAddress should be provided");{var o;const a="welcome"===r?{email:t.emailOptIn?null===t||void 0===t?void 0:t.email:"",emailOptIn:null===t||void 0===t?void 0:t.emailOptIn,hasAcceptedTermsV2:!0,preferredCardSize:(null===t||void 0===t?void 0:t.preferredCardSize)||"large",welcomePopupAcknowledged:!0}:"settings"===r?{avatar:t.avatar||"",email:(null===t||void 0===t?void 0:t.email)||"",preferredCardSize:(null===t||void 0===t?void 0:t.preferredCardSize)||"large",userName:(null===t||void 0===t||null===(o=t.userName)||void 0===o?void 0:o.toLowerCase())||""}:{};await gc(e,a).then((()=>{n()})).catch((e=>{null===i||void 0===i||i(e)}))}},Sc=e=>{var t,n,r,i,o;return{avatar:(null===e||void 0===e||null===(t=e.loggedUser)||void 0===t?void 0:t.avatar)||"",email:(null===e||void 0===e||null===(n=e.loggedUser)||void 0===n?void 0:n.email)||"",emailOptIn:(null===e||void 0===e||null===(r=e.loggedUser)||void 0===r?void 0:r.emailOptIn)||!1,marketingEmail:(null===e||void 0===e||null===(i=e.loggedUser)||void 0===i?void 0:i.marketingEmail)||"",userName:(null===e||void 0===e||null===(o=e.loggedUser)||void 0===o?void 0:o.userName)||""}},kc=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(!0),[i,o]=(0,sa.useState)(!1),a=xc.Ik().shape({email:xc.Yj().email("Invalid email").when("emailOptIn",{is:!0,then:xc.Yj().required("Email is required when opting in").email("Invalid email"),otherwise:xc.Yj().optional()}),welcomeCheckboxTerms:xc.zM().required("Please read and agree to the Flowty terms before proceeding.")}),s=()=>{r(!1),o(!0)};return(0,ms.jsxs)("div",{children:[(0,ms.jsx)(_c.s,{setShow:o,show:i,seconds:5,message:"Successfully Saved Preferences",type:"SUCCESS"}),(0,ms.jsx)(cc.e,{appear:!0,show:n,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:"relative z-40",static:!0,onClose:()=>null,children:[(0,ms.jsx)(cc.e.Child,{enter:"transition duration-000 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:sa.Fragment,children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,ms.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-1000",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,ms.jsx)(uc.l.Panel,{className:"relative z-40 shadow-xl",children:(0,ms.jsx)("div",{className:"bg-darkBg rounded-[10px] border border-[#343A40]",children:(0,ms.jsx)(gl.l1,{initialValues:(()=>{const e=Sc(t);var n,r,i,o;return e.email&&0!==e.email.length?e:{...e,email:null!==t&&void 0!==t&&null!==(n=t.loggedUser)&&void 0!==n&&n.emailOptIn&&(null===t||void 0===t||null===(r=t.loggedUser)||void 0===r?void 0:r.blockToEmail)||"",emailOptIn:!0,preferredCardSize:null!==(i=null===t||void 0===t||null===(o=t.loggedUser)||void 0===o?void 0:o.preferredCardSize)&&void 0!==i?i:"large",subscribe:!0}})(),validationSchema:a,enableReinitialize:!0,onSubmit:e=>{var n;null===t||void 0===t||t.setEmail(null===e||void 0===e?void 0:e.email),null!==e&&void 0!==e&&e.emailOptIn&&(null===t||void 0===t||t.setOptIn(null===e||void 0===e?void 0:e.emailOptIn)),ds.o.track("WELCOME_MESSAGE_SUBMIT",{values:e}),null===t||void 0===t||t.setWelcomeMessagePopupAcknowledged(!0),null===t||void 0===t||t.setNewTermsAcknowledged(!0),null!==e&&void 0!==e&&e.preferredCardSize&&(null===t||void 0===t||t.setPreferredCardSize(null===e||void 0===e?void 0:e.preferredCardSize)),!0===e.subscribe&&(null===t||void 0===t||t.setMarketingEmail(null===e||void 0===e?void 0:e.email),(async e=>{try{const t=await Ac(e);return ds.o.track("ADD_MARKETING_EMAIL_SUCCESS",{email:e}),t}catch(t){ds.o.track("ADD_MARKETING_EMAIL_FAILURE",{email:e,error:t})}})(null===e||void 0===e?void 0:e.email)),Tc(null===t||void 0===t||null===(n=t.loggedUser)||void 0===n?void 0:n.addr,e,s,"welcome",(()=>{})).then((()=>{ds.o.track("WELCOME_MESSAGE_MODAL_FORM_SUBMIT_SUCCESS",{values:e})})).catch((t=>{ds.o.track("WELCOME_MESSAGE_MODAL_FORM_SUBMIT_FAILURE",{error:t,values:e})}))},children:e=>{let{isSubmitting:t,setFieldValue:n,values:r,setTouched:i,handleChange:o,validateField:a}=e;return(0,ms.jsxs)(gl.lV,{className:"flex flex-col select-none",children:[(0,ms.jsx)("div",{className:"p-[40px]",children:(0,ms.jsx)("span",{className:"text-white text-shadow text-[24px] font-montserrat font-black leading-normal font-montserrat",children:"Welcome to Flowty!"})}),(0,ms.jsx)("div",{className:"mx-auto p-[40px] bg-darkBg border-y border-[#343A40]",children:t?(0,ms.jsx)("div",{className:"mx-auto text-center",children:(0,ms.jsx)(bc.BM,{height:200,width:200})}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("h2",{className:"text-xl font-bold mb-[20px]",children:"Email Notification Preferences"}),(0,ms.jsxs)("div",{className:"flex flex-col space-y-[24px]",children:[(0,ms.jsx)(Bs.Al,{name:"emailOptIn",toggled:r.emailOptIn,onToggle:e=>{n("emailOptIn",e),0==e&&(n("email",""),n("subscribe",!1))},label:(0,ms.jsx)("p",{className:"text-[12px] text-[#DBDBDB] font-normal w-[21.43rem] md:w-[320px] leading-none",children:"Receive emails for new purchases, listings, loans, rentals and other user-initiated actions"})},0),(0,ms.jsx)(Bs.Al,{name:"subscribe",toggled:r.subscribe,onToggle:e=>{n("subscribe",e)},disabled:!r.emailOptIn,label:(0,ms.jsx)("p",{className:"text-[12px] text-[#DBDBDB] font-normal w-[21.43rem] md:w-[320px] leading-none",children:"Receive emails for offers received on your NFTs and Flowty marketing"})},1)]}),(0,ms.jsxs)("div",{className:"mt-[32px]",children:[(0,ms.jsx)("label",{htmlFor:"email",className:"text-base font-bold",children:"Email Address"}),(0,ms.jsx)(gl.D0,{type:"email",name:"email",id:"email",disabled:!r.emailOptIn,onChange:e=>{o(e),i({email:!0})},onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||setTimeout((()=>{""===e.target.value&&a("email")}),0),i({email:!0})},className:"border rounded-[.3125rem] leading-tight pr-[0.75rem] py-[.5rem] pl-[1.06rem] min-w-[22.687rem] text-white font-bold bg-transparent w-full mt-4 ".concat(r.emailOptIn?"opacity-100":"opacity-50 cursor-not-allowed")})]}),(0,ms.jsx)("div",{className:"mt-[32px]",children:(0,ms.jsx)(Bs.VR,{label:(0,ms.jsxs)("span",{className:"text-[#ADB5BD] text-12px font-normal",children:["I have read and agreed to Flowty's"," ",(0,ms.jsx)("a",{className:"text-primary underline",href:"https://www.flowty.io/tos",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,ms.jsx)("a",{className:"text-primary underline",href:"https://www.flowty.io/privacy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy."})]}),name:"welcomeCheckboxTerms",id:"welcomeCheckboxTerms",errorMessage:"Please review and agree to our terms of service"})})]})}),(0,ms.jsxs)("div",{className:"bg-darkBg  rounded-b-[.625rem] py-[20px] flex flex-col items-center justify-center",children:[(0,ms.jsx)("div",{className:"w-96 mb-2",children:(0,ms.jsx)(Bs.M2,{type:"submit",text:"SAVE PREFERENCES",variant:"secondary",disabled:t||!r.welcomeCheckboxTerms||r.emailOptIn&&!r.email,btnSize:"large"})}),(0,ms.jsx)("div",{className:"text-[12px] text-[#7D7D7D] font-normal leading-normal",children:"Update preferences in Settings Page"})]})]})}})})})})})]})})]})})));var Pc=__webpack_require__(48532);function Dc(e){return e&&"object"===typeof e?"position"in e||"type"in e?Nc(e.position):"start"in e||"end"in e?Nc(e):"line"in e||"column"in e?Fc(e):"":""}function Fc(e){return Ic(e&&e.line)+":"+Ic(e&&e.column)}function Nc(e){return Fc(e&&e.start)+"-"+Fc(e&&e.end)}function Ic(e){return e&&"number"===typeof e?e:1}class Rc extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=Dc(t)||"1:1",this.message="object"===typeof e?e.message:e,this.stack="","object"===typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}Rc.prototype.file="",Rc.prototype.name="",Rc.prototype.reason="",Rc.prototype.message="",Rc.prototype.stack="",Rc.prototype.fatal=null,Rc.prototype.column=null,Rc.prototype.line=null,Rc.prototype.source=null,Rc.prototype.ruleId=null,Rc.prototype.position=null;const Oc={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');jc(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(jc(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){jc(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)jc(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){jc(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function jc(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Mc={cwd:function(){return"/"}};function Lc(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function Bc(e){if("string"===typeof e)e=new URL(e);else if(!Lc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Uc=["history","path","basename","stem","extname","dirname"];class Vc{constructor(e){let t;t=e?"string"===typeof e||function(e){return Pc(e)}(e)?{value:e}:Lc(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=Mc.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<Uc.length;){const e=Uc[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Uc.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){Lc(e)&&(e=Bc(e)),zc(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"===typeof this.path?Oc.dirname(this.path):void 0}set dirname(e){Wc(this.basename,"dirname"),this.path=Oc.join(e||"",this.basename)}get basename(){return"string"===typeof this.path?Oc.basename(this.path):void 0}set basename(e){zc(e,"basename"),Hc(e,"basename"),this.path=Oc.join(this.dirname||"",e)}get extname(){return"string"===typeof this.path?Oc.extname(this.path):void 0}set extname(e){if(Hc(e,"extname"),Wc(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Oc.join(this.dirname,this.stem+(e||""))}get stem(){return"string"===typeof this.path?Oc.basename(this.path,this.extname):void 0}set stem(e){zc(e,"stem"),Hc(e,"stem"),this.path=Oc.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new Rc(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function Hc(e,t){if(e&&e.includes(Oc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oc.sep+"`")}function zc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Wc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var qc=__webpack_require__(16e3),Gc=__webpack_require__(98043);function Yc(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var Kc=__webpack_require__(27841);const Qc=function e(){const t=(0,Kc.S)(),n=[];let r,i={},o=-1;return a.data=function(e,t){if("string"===typeof e)return 2===arguments.length?(eu("data",r),i[e]=t,a):Xc.call(i,e)&&i[e]||null;if(e)return eu("data",r),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++o<n.length;){const[e,...r]=n[o];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const i=e.call(a,...r);"function"===typeof i&&t.use(i)}return r=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];let l;if(eu("use",r),null===e||void 0===e);else if("function"===typeof e)p(e,...o);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):u(e)}l&&(i.settings=Object.assign(i.settings||{},l));return a;function c(e){if("function"===typeof e)p(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;p(t,...n)}else u(e)}}function u(e){d(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function d(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function p(e,t){let r,i=-1;for(;++i<n.length;)if(n[i][0]===e){r=n[i];break}r?(Yc(r[1])&&Yc(t)&&(t=Gc(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=ru(e),n=a.Parser;if(Jc("parse",n),Zc(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=ru(t),r=a.Compiler;if($c("stringify",r),tu(e),Zc(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,n,r){tu(e),a.freeze(),r||"function"!==typeof n||(r=n,n=void 0);if(!r)return new Promise(i);function i(i,o){function a(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)}t.run(e,ru(n),a)}i(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,i),nu("runSync","run",r),n;function i(e,t){(0,qc.V)(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),Jc("process",a.Parser),$c("process",a.Compiler),!t)return new Promise(n);function n(n,r){const i=ru(e);function o(e,i){e||!i?r(e):n?n(i):t(null,i)}a.run(a.parse(i),i,((e,t,n)=>{if(!e&&t&&n){const i=a.stringify(t,n);void 0===i||null===i||("string"===typeof(r=i)||Pc(r)?n.value=i:n.result=i),o(e,n)}else o(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),Jc("processSync",a.Parser),$c("processSync",a.Compiler);const n=ru(e);return a.process(n,r),nu("processSync","process",t),n;function r(e){t=!0,(0,qc.V)(e)}},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(Gc(!0,{},i)),t}}().freeze(),Xc={}.hasOwnProperty;function Zc(e,t){return"function"===typeof e&&e.prototype&&(function(e){let t;for(t in e)if(Xc.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Jc(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function $c(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function eu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tu(e){if(!Yc(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function nu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ru(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Vc(e)}const iu={};function ou(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return au(e.children,t,n)}return Array.isArray(e)?au(e,t,n):""}function au(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ou(e[i],t,n);return r.join("")}function su(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function lu(e,t){return e.length>0?(su(e,e.length,0,t),e):t}const cu={}.hasOwnProperty;function uu(e){const t={};let n=-1;for(;++n<e.length;)du(t,e[n]);return t}function du(e,t){let n;for(n in t){const r=(cu.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){cu.call(r,o)||(r[o]=[]);const e=i[o];pu(r[o],Array.isArray(e)?e:e?[e]:[])}}}function pu(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);su(e,0,0,r)}const hu=_u(/[A-Za-z]/),fu=_u(/[\dA-Za-z]/),mu=_u(/[#-'*+\--9=?A-Z^-~]/);function gu(e){return null!==e&&(e<32||127===e)}const vu=_u(/\d/),yu=_u(/[\dA-Fa-f]/),bu=_u(/[!-/:-@[-`{-~]/);function wu(e){return null!==e&&e<-2}function xu(e){return null!==e&&(e<0||32===e)}function Cu(e){return-2===e||-1===e||32===e}const Au=_u(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Eu=_u(/\s/);function _u(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Tu(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Cu(r))return e.enter(n),a(r);return t(r)};function a(r){return Cu(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const Su={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Tu(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):wu(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const ku={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return su(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Pu,u,d)(i)}function u(e){return r&&y(),v(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(Pu,h,f)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):wu(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;su(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Pu={tokenize:function(e,t,n){return Tu(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Du={tokenize:function(e,t,n){return function(t){return Cu(t)?Tu(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||wu(e)?t(e):n(e)}},partial:!0};function Fu(e){const t={};let n,r,i,o,a,s,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Nu(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),su(e,r,c-r+1,a))}}return!l}function Nu(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.unshift([n,n+t.length-1]),su(e,n,2,t)}for(p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const Iu={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):wu(t)?e.check(Ru,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Fu(e),e}},Ru={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Tu(e,i,"linePrefix")};function i(i){if(null===i||wu(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const Ou={tokenize:function(e){const t=this,n=e.attempt(Du,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Tu(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Iu,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ju={resolveAll:Uu()},Mu=Bu("string"),Lu=Bu("text");function Bu(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Uu("text"===e?Vu:void 0)}}function Uu(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Vu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function Hu(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function zu(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[],l=!0;const c={consume:function(e){wu(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(v),interrupt:y(v,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"===typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},now:f,defineSkip:function(e){i[e.line]=e.column,w()},write:function(e){if(a=lu(a,e),m(),null!==a[a.length-1])return[];return b(t,0),u.events=Hu(o,u.events,u),u.events}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,p=p(e)}function v(e,t){t.restore()}function y(e,t){return function(n,i,o){let a,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){h=function(){const e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{restore:a,from:i};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,w()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(p,h),i}function y(e){return l=!0,h.restore(),++d<a.length?g(a[d]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&su(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Wu={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||wu(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),Cu(t)?Tu(e,o,"whitespace")(t):o(t))}}};const qu={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:vu(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Wu,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return vu(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Du,r.interrupt?n:c,e.attempt(Gu,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Cu(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Du,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tu(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Cu(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yu,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tu(e,e.attempt(qu,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Gu={tokenize:function(e,t,n){const r=this;return Tu(e,(function(e){const i=r.events[r.events.length-1];return!Cu(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Yu={tokenize:function(e,t,n){const r=this;return Tu(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Ku={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Cu(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Cu(t))return Tu(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(Ku,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Qu(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||gu(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||wu(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!xu(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||gu(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function Xu(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):wu(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||wu(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Cu(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Zu(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):wu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Tu(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||wu(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ju(e,t){let n;return function r(i){if(wu(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Cu(i))return Tu(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function $u(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ed={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Xu.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=$u(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return xu(t)?Ju(e,s)(t):s(t)}function s(t){return Qu(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(td,c,c)(t)}function c(t){return Cu(t)?Tu(e,u,"whitespace")(t):u(t)}function u(o){return null===o||wu(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},td={tokenize:function(e,t,n){return function(t){return xu(t)?Ju(e,r)(t):n(t)};function r(t){return Zu(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Cu(t)?Tu(e,o,"whitespace")(t):o(t)}function o(e){return null===e||wu(e)?t(e):n(e)}},partial:!0};const nd={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Tu(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):wu(t)?e.attempt(rd,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||wu(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},rd={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):wu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Tu(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):wu(e)?i(e):n(e)}},partial:!0};const id={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||xu(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||wu(n)?(e.exit("atxHeading"),t(n)):Cu(n)?Tu(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||xu(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},su(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const od={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Cu(t)?Tu(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||wu(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const ad=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sd=["pre","script","style","textarea"],ld={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:R):hu(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,p):hu(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:T:p):n(i)}function h(t){return hu(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||xu(s)){const l=47===s,c=a.toLowerCase();return l||o||!sd.includes(c)?ad.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):v(s)):(i=1,r.interrupt?t(s):T(s))}return 45===s||fu(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:T):n(i)}function g(t){return Cu(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||hu(t)?(e.consume(t),y):Cu(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||fu(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):Cu(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Cu(t)?(e.consume(t),w):C(t)}function x(t){return t===l?(e.consume(t),l=null,A):null===t||wu(t)?n(t):(e.consume(t),x)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||xu(t)?b(t):(e.consume(t),C)}function A(e){return 47===e||62===e||Cu(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||wu(t)?T(t):Cu(t)?(e.consume(t),_):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),D):60===t&&1===i?(e.consume(t),F):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),I):!wu(t)||6!==i&&7!==i?null===t||wu(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(cd,j,S)(t))}function S(t){return e.check(ud,k,j)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||wu(t)?S(t):(e.enter("htmlFlowData"),T(t))}function D(t){return 45===t?(e.consume(t),R):T(t)}function F(t){return 47===t?(e.consume(t),a="",N):T(t)}function N(t){if(62===t){const n=a.toLowerCase();return sd.includes(n)?(e.consume(t),O):T(t)}return hu(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):T(t)}function I(t){return 93===t?(e.consume(t),R):T(t)}function R(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),R):T(t)}function O(t){return null===t||wu(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),O)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},cd={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Du,t,n)}},partial:!0},ud={tokenize:function(e,t,n){const r=this;return function(t){if(wu(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const dd={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},pd={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Cu(t)?Tu(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),Cu(t)?Tu(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||wu(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Cu(t)?Tu(e,c,"whitespace")(t):c(t))}function c(n){return null===n||wu(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(dd,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||wu(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Cu(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Tu(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||wu(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||wu(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Cu(t)?Tu(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||wu(t)?e.check(dd,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||wu(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var hd=__webpack_require__(87566);const fd={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=fu,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=yu,c):(e.enter("characterReferenceValue"),i=7,o=vu,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==fu||(0,hd.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}};const md={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return bu(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const gd={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Tu(e,t,"linePrefix")}}};const vd={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes($u(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(yd,c,o?c:u)(t):91===t?e.attempt(bd,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(wd,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=lu(o,e.slice(r+1,r+s+3)),o=lu(o,[["enter",u,t]]),o=lu(o,Hu(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=lu(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=lu(o,e.slice(i+1)),o=lu(o,[["exit",l,t]]),su(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},yd={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return xu(t)?Ju(e,i)(t):i(t)}function i(t){return 41===t?c(t):Qu(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return xu(t)?Ju(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Zu(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return xu(t)?Ju(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},bd={tokenize:function(e,t,n){const r=this;return function(t){return Xu.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes($u(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},wd={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const xd={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:vd.resolveAll};function Cd(e){return null===e||xu(e)||Eu(e)?1:Au(e)?2:void 0}const Ad={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Cd(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=Cd(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);Ed(d,-s),Ed(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=lu(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=lu(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=lu(l,Hu(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=lu(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=lu(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,su(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function Ed(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _d={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return hu(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||fu(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||fu(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||gu(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):mu(t)?(e.consume(t),l):n(t)}function c(e){return fu(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||fu(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Td={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):hu(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):hu(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):wu(t)?(a=u,N(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?F(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):wu(t)?(a=f,N(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?F(t):93===t?(e.consume(t),g):f(t)}function v(t){return null===t||62===t?F(t):wu(t)?(a=v,N(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):wu(t)?(a=y,N(t)):(e.consume(t),y)}function b(e){return 62===e?F(e):y(e)}function w(t){return hu(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||fu(t)?(e.consume(t),x):C(t)}function C(t){return wu(t)?(a=C,N(t)):Cu(t)?(e.consume(t),C):F(t)}function A(t){return 45===t||fu(t)?(e.consume(t),A):47===t||62===t||xu(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),F):58===t||95===t||hu(t)?(e.consume(t),_):wu(t)?(a=E,N(t)):Cu(t)?(e.consume(t),E):F(t)}function _(t){return 45===t||46===t||58===t||95===t||fu(t)?(e.consume(t),_):T(t)}function T(t){return 61===t?(e.consume(t),S):wu(t)?(a=T,N(t)):Cu(t)?(e.consume(t),T):E(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,k):wu(t)?(a=S,N(t)):Cu(t)?(e.consume(t),S):(e.consume(t),P)}function k(t){return t===i?(e.consume(t),i=void 0,D):null===t?n(t):wu(t)?(a=k,N(t)):(e.consume(t),k)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||xu(t)?E(t):(e.consume(t),P)}function D(e){return 47===e||62===e||xu(e)?E(e):n(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Cu(t)?Tu(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const Sd={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:vd.resolveAll};const kd={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return wu(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Pd={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):wu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||wu(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const Dd={42:qu,43:qu,45:qu,48:qu,49:qu,50:qu,51:qu,52:qu,53:qu,54:qu,55:qu,56:qu,57:qu,62:Ku},Fd={91:ed},Nd={[-2]:nd,[-1]:nd,32:nd},Id={35:id,42:Wu,45:[od,Wu],60:ld,61:od,95:Wu,96:pd,126:pd},Rd={38:fd,92:md},Od={[-5]:gd,[-4]:gd,[-3]:gd,33:xd,38:fd,42:Ad,60:[_d,Td],91:Sd,92:[kd,md],93:vd,95:Ad,96:Pd},jd={null:[Ad,ju]},Md={null:[42,95]},Ld={null:[]};const Bd=/[\0\t\n\r]/g;function Ud(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const Vd=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Hd(e){return e.replace(Vd,zd)}function zd(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ud(n.slice(t?2:1),t?16:10)}return(0,hd.s)(n)||e}const Wd={}.hasOwnProperty,qd=function(t,n,r){return"string"!==typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:S,autolinkEmail:S,atxHeading:s(J),blockQuote:s(Y),characterEscape:S,characterReference:S,codeFenced:s(K),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(K,l),codeText:s(Q,l),codeTextData:S,data:S,codeFlowValue:S,definition:s(X),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Z),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(ee,l),htmlFlowData:S,htmlText:s(ee,l),htmlTextData:S,image:s(te),label:l,link:s(ne),listItem:s(ie),listItemValue:f,listOrdered:s(re,h),listUnordered:s(re),paragraph:s(oe),reference:V,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(J),strong:s(ae),thematicBreak:s(le)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:G,autolinkProtocol:q,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:W,codeFenced:u(y),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:u(b),codeText:u(I),codeTextData:k,data:k,definition:u(),definitionDestinationString:C,definitionLabelString:w,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(F),htmlFlowData:k,htmlText:u(N),htmlTextData:k,image:u(O),label:M,labelText:j,lineEnding:P,link:u(R),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:H,resourceDestinationString:L,resourceTitleString:B,resource:U,setextHeading:u(T),setextHeadingLineSequence:_,setextHeadingText:E,strong:u(),thematicBreak:u()}};Yd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];Wd.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},r),e[u][1])}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||Qd).call(r,void 0,e[0])}for(n.position={start:Gd(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Gd(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)n=t.transforms[u](n)||n;return n}function i(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,o=void 0,a=!0)}}return e[t][1]._spread=c,n}function o(e,t){n[e]=t}function a(e){return n[e]}function s(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Gd(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),d.call(this,t)}}function d(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Dc({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Qd).call(this,e,r[0])}return n.position.end=Gd(e.end),n}function p(){return function(e,t){const n=t||iu;return ou(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function f(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function v(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$u(this.sliceSerialize(e)).toLowerCase()}function x(){const e=this.resume();this.stack[this.stack.length-1].title=e}function C(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function E(){o("setextHeadingSlurpLineEnding",!0)}function _(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function T(){o("setextHeadingSlurpLineEnding")}function S(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=se(),n.position={start:Gd(e.start)},t.children.push(n)),this.stack.push(n)}function k(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Gd(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak")){return n.children[n.children.length-1].position.end=Gd(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(S.call(this,e),k.call(this,e))}function D(){o("atHardBreak",!0)}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function O(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function j(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Hd(t),n.identifier=$u(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function V(){o("referenceType","collapsed")}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$u(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function W(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;if(n)r=Ud(t,"characterReferenceMarkerNumeric"===n?10:16),o("characterReferenceType");else{r=(0,hd.s)(t)}const i=this.stack.pop();i.value+=r,i.position.end=Gd(e.end)}function q(e){k.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){k.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function $(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(r)(function(e){for(;!Fu(e););return e}(function(t){const n={defined:[],lazy:{},constructs:uu([e,...(t||{}).extensions||[]]),content:r(Su),document:r(ku),flow:r(Ou),string:r(Mu),text:r(Lu)};return n;function r(e){return function(t){return zu(n,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,p;for(i=n+i.toString(o),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Bd.lastIndex=u,l=Bd.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(t,n,!0))))};function Gd(e){return{line:e.line,column:e.column,offset:e.offset}}function Yd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Yd(e,r):Kd(e,r)}}function Kd(e,t){let n;for(n in t)if(Wd.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function Qd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Dc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Dc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Dc({start:t.start,end:t.end})+") is still open")}function Xd(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return qd(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Zd(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&fu(e.charCodeAt(n+1))&&fu(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const Jd=function(e){if(void 0===e||null===e)return ep;if("string"===typeof e)return function(e){return $d(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Jd(e[n]);return $d(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].call(this,...r))return!0;return!1}}(e):function(e){return $d(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return $d(e);throw new Error("Expected function, string, or object as test")};function $d(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function ep(){return!0}const tp=!0,np=!1,rp=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);const i=Jd(t),o=r?-1:1;!function e(a,s,l){const c=a&&"object"===typeof a?a:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||i(a,s,l[l.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[tp,e];return[e]}(n(a,l)),p[0]===np))return p;if(a.children&&"skip"!==p[0])for(u=(r?a.children.length:-1)+o,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),c[0]===np)return c;u="number"===typeof c[1]?c[1]:u+o}return p}}(e,void 0,[])()};const ip=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),rp(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},op=sp("start"),ap=sp("end");function sp(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const lp={}.hasOwnProperty;function cp(e){return String(e||"").toUpperCase()}function up(e,t){const n=String(t.identifier).toUpperCase(),r=Zd(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;-1===i?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function dp(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function pp(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}var hp=__webpack_require__(44106);const fp={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:up,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},up(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return dp(e,t);const r={src:Zd(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Zd(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return dp(e,t);const r={href:Zd(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Zd(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=pp(n[r])}return t}(n):pp(t),o={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=op(t.children[1]),a=ap(t.children[t.children.length-1]);o.line&&a.line&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:(0,hp.E)(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:mp,yaml:mp,definition:mp,footnoteDefinition:mp};function mp(){return null}const gp={}.hasOwnProperty;function vp(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...fp,...n.handlers},a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return ip(e,"definition",(e=>{const n=cp(e.identifier);n&&!lp.call(t,n)&&(t[n]=e)})),function(e){const n=cp(e);return n&&lp.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=yp,a.applyData=bp,a.one=function(e,t){return wp(a,e,t)},a.all=function(e){return xp(a,e)},a.wrap=Cp,a.augment=o,ip(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();gp.call(i,t)||(i[t]=e)})),a;function o(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column})(n)||(t.position={start:op(n),end:ap(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function yp(e,t){e.position&&(t.position=function(e){return{start:op(e),end:ap(e)}}(e))}function bp(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"===typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function wp(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return gp.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:xp(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||gp.call(n,"hProperties")||gp.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:xp(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function xp(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=wp(e,r[i],t);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function Cp(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Ap(e,t){const n=vp(e,t),r=n.one(e,null),i=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=Zd(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}const Ep=function(e,t){return e&&"run"in e?function(e,t){return(n,r,i)=>{e.run(Ap(n,t),r,(e=>{i(e)}))}}(e,t):function(e){return t=>Ap(t,e)}(e||t)};var _p=__webpack_require__(91814);function Tp(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{ip(t,"element",((t,n,r)=>{const i=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"===typeof n&&(o=!e.allowElement(t,n,i)),o&&"number"===typeof n)return e.unwrapDisallowed&&t.children?i.children.splice(n,1,...t.children):i.children.splice(n,1),n}))}}var Sp=__webpack_require__(54437);function kp(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var Pp=__webpack_require__(43551),Dp=__webpack_require__(1214),Fp=__webpack_require__(61861),Np=__webpack_require__(78394);const Ip=__webpack_require__(11647),Rp=["http","https","mailto","tel"];function Op(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++i<Rp.length;){const e=Rp[i];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return i=t.indexOf("?"),-1!==i&&r>i?t:(i=t.indexOf("#"),-1!==i&&r>i?t:"javascript:void(0)")}const jp={}.hasOwnProperty,Mp=new Set(["table","thead","tbody","tfoot","tr"]);function Lp(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)r=t.children[i],"element"===r.type?n.push(Bp(e,r,i,t)):"text"===r.type?"element"===t.type&&Mp.has(t.tagName)&&kp(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function Bp(e,t,n,r){const i=e.options,o=void 0===i.transformLinkUri?Op:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let c,u=a;if("html"===a.space&&"svg"===s&&(u=_p.JW,e.schema=u),t.properties)for(c in t.properties)jp.call(t.properties,c)&&Vp(l,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const d=Lp(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=a;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&jp.call(i.components,s)?i.components[s]:s,f="string"===typeof h||h===sa.Fragment;if(!Sp.isValidElementType(h))throw new TypeError("Component for name `".concat(s,"` not defined or is not renderable"));if(l.key=n,"a"===s&&i.linkTarget&&(l.target="function"===typeof i.linkTarget?i.linkTarget(String(l.href||""),t.children,"string"===typeof l.title?l.title:null):i.linkTarget),"a"===s&&o&&(l.href=o(String(l.href||""),t.children,"string"===typeof l.title?l.title:null)),f||"code"!==s||"element"!==r.type||"pre"===r.tagName||(l.inline=!0),f||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(l.level=Number.parseInt(s.charAt(1),10)),"img"===s&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),"string"===typeof l.title?l.title:null)),!f&&"li"===s&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);l.checked=e&&e.properties?Boolean(e.properties.checked):null,l.index=Up(r,t),l.ordered="ol"===r.tagName}var m;return f||"ol"!==s&&"ul"!==s||(l.ordered="ol"===s,l.depth=e.listDepth),"td"!==s&&"th"!==s||(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),f||(l.isHeader="th"===s)),f||"tr"!==s||"element"!==r.type||(l.isHeader=Boolean("thead"===r.tagName)),i.sourcePos&&(l["data-sourcepos"]=[(m=p).start.line,":",m.start.column,"-",m.end.line,":",m.end.column].map(String).join("")),!f&&i.rawSourcePos&&(l.sourcePosition=t.position),!f&&i.includeElementIndex&&(l.index=Up(r,t),l.siblingCount=Up(r)),f||(l.node=t),d.length>0?sa.createElement(h,l,d):sa.createElement(h,l)}function Up(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function Vp(e,t,n,r){const i=(0,Pp.I)(r.schema,t);let o=n;null!==o&&void 0!==o&&o===o&&(Array.isArray(o)&&(o=i.commaSeparated?(0,Np.A)(o):(0,Fp.A)(o)),"style"===i.property&&"string"===typeof o&&(o=function(e){const t={};try{Ip(e,n)}catch{}return t;function n(e,n){const r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,Hp)]=n}}(o)),i.space&&i.property?e[jp.call(Dp.H,i.property)?Dp.H[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function Hp(e,t){return t.toUpperCase()}const zp={}.hasOwnProperty,Wp={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function qp(e){for(const o in Wp)if(zp.call(Wp,o)&&zp.call(e,o)){const e=Wp[o];console.warn("[react-markdown] Warning: please ".concat(e.to?"use `".concat(e.to,"` instead of"):"remove"," `").concat(o,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(e.id,"> for more info)")),delete Wp[o]}const t=Qc().use(Xd).use(e.remarkPlugins||[]).use(Ep,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Tp,e),n=new Vc;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let i=sa.createElement(sa.Fragment,{},Lp({options:e,schema:_p.qy,listDepth:0},r));return e.className&&(i=sa.createElement("div",{className:e.className},i)),i}qp.propTypes={children:da.string,className:da.string,allowElement:da.func,allowedElements:da.arrayOf(da.string),disallowedElements:da.arrayOf(da.string),unwrapDisallowed:da.bool,remarkPlugins:da.arrayOf(da.oneOfType([da.object,da.func,da.arrayOf(da.oneOfType([da.bool,da.string,da.object,da.func,da.arrayOf(da.any)]))])),rehypePlugins:da.arrayOf(da.oneOfType([da.object,da.func,da.arrayOf(da.oneOfType([da.bool,da.string,da.object,da.func,da.arrayOf(da.any)]))])),sourcePos:da.bool,rawSourcePos:da.bool,skipHtml:da.bool,includeElementIndex:da.bool,transformLinkUri:da.oneOfType([da.func,da.bool]),linkTarget:da.oneOfType([da.func,da.string]),transformImageUri:da.func,components:da.object};const Gp={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},Yp={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(Qp,l,s)(t):null===t||xu(t)||Eu(t)||45!==t&&Au(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},Kp={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(Qp,t,o)(a):null===a||xu(a)||Eu(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Qp={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||xu(a)||Eu(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||xu(e)||Eu(e)?t(e):r(e)}function o(e){return hu(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):hu(t)?(e.consume(t),a):n(t)}},partial:!0},Xp={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return fu(e)?n(e):t(e)}},partial:!0},Zp={tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!rh.call(r,r.previous)||sh(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Gp,e.attempt(Yp,e.attempt(Kp,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rh},Jp={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&ih.call(r,r.previous)&&!sh(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(hu(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||gu(t)||xu(t)||Eu(t)||Au(t)?n(t):e.attempt(Yp,e.attempt(Kp,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ih},$p={tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!ah(t)||!oh.call(r,r.previous)||sh(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return ah(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Xp,c,l)(t):45===t||95===t||fu(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&hu(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:oh},eh={},th={text:eh};let nh=48;for(;nh<123;)eh[nh]=$p,nh++,58===nh?nh=65:91===nh&&(nh=97);function rh(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||xu(e)}function ih(e){return!hu(e)}function oh(e){return!(47===e||ah(e))}function ah(e){return 43===e||45===e||46===e||95===e||fu(e)}function sh(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eh[43]=$p,eh[45]=$p,eh[46]=$p,eh[95]=$p,eh[72]=[$p,Jp],eh[104]=[$p,Jp],eh[87]=[$p,Zp],eh[119]=[$p,Zp];const lh={tokenize:function(e,t,n){const r=this;return Tu(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function ch(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=$u(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function uh(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function dh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||xu(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes($u(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return xu(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function ph(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||xu(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=$u(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return xu(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Tu(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function hh(e,t,n){return e.check(Du,t,e.attempt(lh,t,n))}function fh(e){e.exit("gfmFootnoteDefinition")}function mh(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=Cd(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Cd(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&su(a,a.length,0,Hu(s,e.slice(r+1,n),t)),su(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),su(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class gh{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(((e,t)=>e[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function vh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}const yh={flow:{null:{tokenize:function(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?w:s;if(o===w&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):wu(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Cu(t)?Tu(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||xu(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Cu(t)?Tu(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return Cu(t)?Tu(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||wu(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Cu(t)?Tu(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||wu(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||wu(n)?(e.exit("tableRow"),t(n)):Cu(n)?Tu(e,x,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||xu(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?A:C)}function A(t){return 92===t||124===t?(e.consume(t),C):C(t)}},resolveAll:function(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new gh;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(wh(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=bh(p,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=bh(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],i=bh(p,t,l,s,o,i)):0!==c[1]&&(i=bh(p,t,c,s,o,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}0!==d&&wh(p,t,d,n,r);p.consume(t.events),o=-1;for(;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=vh(t.events,o))}return e}}}};function bh(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},xh(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=xh(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=xh(t.events,n[2]),o=xh(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},xh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function wh(e,t,n,r,i){const o=[],a=xh(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function xh(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ch={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return xu(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return wu(r)?t(r):Cu(r)?e.check({tokenize:Eh},t,n)(r):n(r)}}},Ah={text:{91:Ch}};function Eh(e,t,n){return Tu(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}var _h=__webpack_require__(50768);const Th={}.hasOwnProperty,Sh=function(e,t,n,r){let i,o;"string"===typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=Jd(i.ignore||[]),s=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([kh(e[n][0]),Ph(e[n][1])])}else{let n;for(n in e)Th.call(e,n)&&t.push([kh(n),Ph(e[n])])}return t}(o);let l=-1;for(;++l<s.length;)rp(e,"text",c);return e;function c(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(a(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=s[l][0],i=s[l][1];let o=0;const a=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let s=i(...d,a);if("string"===typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function kh(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Ph(e){return"function"===typeof e?e:()=>e}const Dh="phrasing",Fh=["autolink","link","image","label"],Nh={transforms:[function(e){Sh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Oh],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,jh]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Rh,literalAutolinkHttp:Rh,literalAutolinkWww:Rh},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},Ih={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Fh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Fh},{character:":",before:"[ps]",after:"\\/",inConstruct:Dh,notInConstruct:Fh}]};function Rh(e){this.config.enter.autolinkProtocol.call(this,e)}function Oh(e,t,n,r,i){let o="";if(!Mh(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=(0,_h.D)(e,"(");let o=(0,_h.D)(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function jh(e,t,n,r){return!(!Mh(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Mh(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Eu(n)||Au(n))&&(!t||47!==n)}function Lh(e){return e.label||!e.identifier?e.label||"":Hd(e.identifier)}function Bh(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Uh=/\r?\n|\r/g;function Vh(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Hh(e,t){return zh(e,t.inConstruct,!0)&&!zh(e,t.notInConstruct,!1)}function zh(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Wh(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Hh(e.stack,t))continue;const n=Vh(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(i.push(r),a[r]={before:e,after:n})}}i.sort(qh);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<l||e>=c||(e+1<c&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&o.push(Gh(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):o.push("\\")))}return o.push(Gh(r.slice(l,c),n.after)),o.join("")}function qh(e,t){return e-t}function Gh(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a,s=-1,l=0;for(;a=n.exec(o);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&i.push(e.slice(l,r[s])),i.push("\\"),l=r[s];return i.push(e.slice(l)),i.join("")}function Yh(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return i+=n.length-1,o=1===n.length?o+a.length:1+a.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function Kh(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Qh(){this.buffer()}function Xh(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$u(this.sliceSerialize(e)).toLowerCase()}function Zh(e){this.exit(e)}function Jh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $h(){this.buffer()}function ef(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$u(this.sliceSerialize(e)).toLowerCase()}function tf(e){this.exit(e)}function nf(e,t,n,r){const i=Yh(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(Wh(n,Lh(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function rf(e,t,n,r){const i=Yh(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(Wh(n,Lh(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(function(e,t){const n=[];let r,i=0,o=0;for(;r=Uh.exec(e);)a(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return a(e.slice(i)),n.join("");function a(e){n.push(t(e,o,!e))}}(function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const n=i[s];r[r.length-1]=s,a.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Bh(n,i[s+1],e,t)))}return r.pop(),a.join("")}(e,n,i.current()),of)),a(),o}function of(e,t,n){return 0===t?e:(n?"":"    ")+e}function af(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let n=t.handle.handlers[i[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}nf.peek=function(){return"["};cf.peek=function(){return"~"};const sf={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},lf={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:cf}};function cf(e,t,n,r){const i=Yh(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=af(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function uf(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=Vh(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}uf.peek=function(){return"`"};var df=__webpack_require__(55744);const pf={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:ff,tableHeader:ff,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,mf));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:hf,tableHeader:hf,tableRow:hf}};function hf(e){this.exit(e)}function ff(e){this.enter({type:"tableCell",children:[]},e)}function mf(e,t){return"|"===t?t:e}function gf(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,n){let r=uf(e,0,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=af(e,n,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return(0,df.Q)(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function vf(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return l(),c}const yf={exit:{taskListCheckValueChecked:wf,taskListCheckValueUnchecked:wf,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},bf={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=Yh(r);o&&s.move(a);let l=vf(e,t,n,{...r,...s.current()});o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return l}}};function wf(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function xf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return uu([th,{document:{91:{tokenize:ph,continuation:{tokenize:hh},exit:fh}},text:{91:{tokenize:dh},93:{add:"after",tokenize:ch,resolveTo:uh}}},mh(e),yh,Ah])}(e)),n("fromMarkdownExtensions",[Nh,{enter:{gfmFootnoteDefinition:Kh,gfmFootnoteDefinitionLabelString:Qh,gfmFootnoteCall:Jh,gfmFootnoteCallString:$h},exit:{gfmFootnoteDefinition:Zh,gfmFootnoteDefinitionLabelString:Xh,gfmFootnoteCall:tf,gfmFootnoteCallString:ef}},sf,pf,yf]),n("toMarkdownExtensions",function(e){return{extensions:[Ih,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rf,footnoteReference:nf}},lf,gf(e),bf]}}(e))}const Cf=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))}));var Af=__webpack_require__(86718),Ef=__webpack_require__(67687);const _f=()=>{const{messageType:e,sporkMessage:t,isShowing:n,setIsShowing:r}=Os(),i=(0,sa.useRef)(null),o=(0,sa.useRef)(!1),{pathname:a}=(0,js.zy)();return(0,sa.useEffect)((()=>{if(!o.current&&t&&n){var e;const n=document.createRange().createContextualFragment(t);null===(e=i.current)||void 0===e||e.append(n),o.current=!0}}),[t,n]),(0,ms.jsx)(ms.Fragment,{children:t&&n&&"/create"!==a&&(0,ms.jsx)("div",{className:"rounded-md  bg-opacity-10 border-[0.5px]  p-6 mb-8 flex w-full\n\t\t\t".concat("info"===e?"bg-[#3A70D9] border-[#3A70D9]":"warning"===e?"border-[#FF6E25] bg-[#FF6E25]":"border-danger bg-danger","\n\t\t"),children:(0,ms.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ms.jsxs)("div",{className:"flex",children:[(0,ms.jsx)("div",{className:"px-2",children:"info"===e?(0,ms.jsx)(Cf,{className:"h-6 w-6 text-[#3A70D9]","aria-hidden":"true"}):(0,ms.jsx)(Af.A,{className:"h-6 w-6 ".concat("warning"===e?"text-[#FF6E25]":"text-danger")})}),(0,ms.jsxs)("div",{className:"flex flex-col px-1 py-0.5 ",children:[(0,ms.jsx)("h2",{className:"uppercase  \n\t\t\t\t".concat("info"===e?"text-[#3A70D9]":"warning"===e?"text-[#FF6E25]":"text-danger","\n\t\t\t\t"),children:e}),(0,ms.jsx)(qp,{remarkPlugins:[xf],className:"text-base markdown-messages",children:t})]})]}),(0,ms.jsx)("div",{className:"h-full flex items-center px-2",children:(0,ms.jsx)(Ef.A,{onClick:()=>r(!1),className:"h-7 w-7 cursor-pointer hover:text-danger"})})]})})})};var Tf=__webpack_require__(48231);const Sf="Attempt at triggering multiple Frames";let kf=function(e){return e.CommissionNotSetUp="Given recipient has not authorised to receive the commission",e.MissingNFT="Collateral is no longer in Borrower's account; This listing should be removed from Marketplace shortly.",e.InsufficientFunds="Account has insufficient funds for selected action.",e.Fund1="The selected listing is in cooldown and will be eligible for funding within five minutes.",e.Fund2="The selected listing has already been funded.",e.Fund3="The selected listing does not exist or has already funded",e.Repay1="The loan has already reached maturity and is no longer eligible for repayment.",e.Repay2="The loan has already been repaid.",e.Profile="Usernames can be a maximum of 15 characters.",e.RejectTx="User rejected signature.",e.SessionExpired="Session expired for the current user. Please log out and connect your account again.",e.DefaultError="Undefined error; please retry. If error persists, please file a support ticket via Discord.",e.InsufficientFlowBalance="Account has insufficient FLOW balance to process transaction. Please add FLOW to your account and retry. If you need further assistance, please file a support ticket in Discord.",e.UnableToFollowTransactionResult="Uh oh! Something went wrong while trying to follow your transaction results",e}({});const Pf=[{flowtyError:"missing NFT",uiError:kf.MissingNFT},{flowtyError:"Amount withdrawn must be less than or equal than the balance of the Vault",uiError:kf.InsufficientFunds},{flowtyError:"Funding is not enabled",uiError:kf.Fund1},{flowtyError:"listing has already been funded",uiError:kf.Fund2},{flowtyError:"the loan has expired",uiError:kf.Repay1},{flowtyError:"funding has already been repaid",uiError:kf.Repay2},{flowtyError:"User names must be under 15 characters long",uiError:kf.Profile},{flowtyError:"Declined: User rejected signature",uiError:kf.RejectTx},{flowtyError:"Declined: Session expired. Please log out and log back in again",uiError:kf.SessionExpired},{flowtyError:"No Listing with that ID in FlowtyStorefront. Already funded or delisted.",uiError:kf.Fund3},{flowtyError:"Capacity can be increased by adding FLOW tokens to the account",uiError:kf.InsufficientFlowBalance},{flowtyError:"Given recipient has not authorised to receive the commission",uiError:kf.CommissionNotSetUp}],Df="panic:",Ff="pre-condition failed:",Nf=e=>{(0,fs._)("getUserFriendlyErrorMessage ",e);const t=Pf.find((t=>e.toString().includes(t.flowtyError)));if(t)return t.uiError;if("string"==typeof e){if(e.includes(Df))return e.slice(e.indexOf(Df)+6,e.indexOf("--\x3e")).trim();if(e.includes(Ff))return e.slice(e.indexOf(Ff)+21,e.indexOf("--\x3e")).trim()}return kf.DefaultError},If=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;try{return await dc.tx(e).onceSealed()}catch(r){const i=(0,us.getMessageFromError)(r);if(i.includes("panic")||i.includes("assertion failed")||i.includes("Execution failed"))throw new Error(i);if(0===t)throw new Error(kf.UnableToFollowTransactionResult);return await fc(n),If(e,t-1)}};var Rf=__webpack_require__(88729),Of=__webpack_require__(75805),jf=__webpack_require__(76096),Mf=__webpack_require__(65587),Lf=__webpack_require__(35877);function Bf(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Uf=Bf,Vf=new Of.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Hf=new jf.Vy("@firebase/auth");function zf(e){if(Hf.logLevel<=jf.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Hf.error("Auth (".concat(Rf.SDK_VERSION,"): ").concat(e),...n)}}function Wf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Kf(e,...n)}function qf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Kf(e,...n)}function Gf(e,t,n){const r=Object.assign(Object.assign({},Uf()),{[t]:n});return new Of.FA("auth","Firebase",r).create(t,{appName:e.name})}function Yf(e){return Gf(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Kf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return Vf.create(e,...n)}function Qf(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Kf(t,...r)}}function Xf(e){const t="INTERNAL ASSERTION FAILED: "+e;throw zf(t),new Error(t)}function Zf(e,t){e||Xf(t)}function Jf(){return"http:"===$f()||"https:"===$f()}function $f(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class em{constructor(e,t){this.shortDelay=e,this.longDelay=t,Zf(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,Of.jZ)()||(0,Of.lV)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(Jf()||(0,Of.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function tm(e,t){Zf(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class nm{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void Xf("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void Xf("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void Xf("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const rm={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},im=new em(3e4,6e4);function om(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function am(e,t,n,r){return sm(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let i={},o={};r&&("GET"===t?o=r:i={body:JSON.stringify(r)});const a=(0,Of.Am)(Object.assign({key:e.config.apiKey},o)).slice(1),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/json",e.languageCode&&(s["X-Firebase-Locale"]=e.languageCode),nm.fetch()(cm(e,e.config.apiHost,n,a),Object.assign({method:t,headers:s,referrerPolicy:"no-referrer"},i))}))}async function sm(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},rm),t);try{const t=new dm(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw pm(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw pm(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw pm(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw pm(e,"user-disabled",o);const s=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw Gf(e,s,a);Wf(e,s)}}catch(i){if(i instanceof Of.g)throw i;Wf(e,"network-request-failed",{message:String(i)})}}async function lm(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=await am(e,t,n,r,i);return"mfaPendingCredential"in o&&Wf(e,"multi-factor-auth-required",{_serverResponse:o}),o}function cm(e,t,n,r){const i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?tm(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}function um(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class dm{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(qf(this.auth,"network-request-failed"))),im.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function pm(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=qf(e,t,r);return i.customData._tokenResponse=n,i}function hm(e){return void 0!==e&&void 0!==e.enterprise}class fm{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return um(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function mm(e,t){return am(e,"GET","/v2/recaptchaConfig",om(e,t))}async function gm(e,t){return am(e,"POST","/v1/accounts:lookup",t)}function vm(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function ym(e){return 1e3*Number(e)}function bm(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return zf("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,Of.u)(n);return e?JSON.parse(e):(zf("Failed to decode base64 JWT payload"),null)}catch(i){return zf("Caught error parsing JWT payload as JSON",null===i||void 0===i?void 0:i.toString()),null}}function wm(e){const t=bm(e);return Qf(t,"internal-error"),Qf("undefined"!==typeof t.exp,"internal-error"),Qf("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function xm(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof Of.g&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class Cm{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class Am{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=vm(this.lastLoginAt),this.creationTime=vm(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Em(e){var t;const n=e.auth,r=await e.getIdToken(),i=await xm(e,gm(n,{idToken:r}));Qf(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const a=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?_m(o.providerUserInfo):[],s=(l=e.providerData,c=a,[...l.filter((e=>!c.some((t=>t.providerId===e.providerId)))),...c]);var l,c;const u=e.isAnonymous,d=!(e.email&&o.passwordHash)&&!(null===s||void 0===s?void 0:s.length),p=!!u&&d,h={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new Am(o.createdAt,o.lastLoginAt),isAnonymous:p};Object.assign(e,h)}function _m(e){return e.map((e=>{var{providerId:t}=e,n=(0,Mf.Tt)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}class Tm{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Qf(e.idToken,"internal-error"),Qf("undefined"!==typeof e.idToken,"internal-error"),Qf("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):wm(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Qf(0!==e.length,"internal-error");const t=wm(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(Qf(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await sm(e,{},(async()=>{const n=(0,Of.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,o=cm(e,r,"/v1/token","key=".concat(i)),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",nm.fetch()(o,{method:"POST",headers:a,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new Tm;return n&&(Qf("string"===typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(Qf("string"===typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(Qf("number"===typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Tm,this.toJSON())}_performRefresh(){return Xf("not implemented")}}function Sm(e,t){Qf("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class km{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=(0,Mf.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Cm(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Am(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await xm(this,this.stsTokenManager.getToken(this.auth,e));return Qf(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,Of.Ku)(e),r=await n.getIdToken(t),i=bm(r);Qf(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"===typeof i.firebase?i.firebase:void 0,a=null===o||void 0===o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:vm(ym(i.auth_time)),issuedAtTime:vm(ym(i.iat)),expirationTime:vm(ym(i.exp)),signInProvider:a||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,Of.Ku)(e);await Em(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(Qf(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new km(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){Qf(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Em(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,Rf._isFirebaseServerApp)(this.auth.app))return Promise.reject(Yf(this.auth));const e=await this.getIdToken();return await xm(this,async function(e,t){return am(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,a,s,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,p=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,h=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(s=t._redirectEventId)&&void 0!==s?s:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:y,emailVerified:b,isAnonymous:w,providerData:x,stsTokenManager:C}=t;Qf(y&&C,e,"internal-error");const A=Tm.fromJSON(this.name,C);Qf("string"===typeof y,e,"internal-error"),Sm(u,e.name),Sm(d,e.name),Qf("boolean"===typeof b,e,"internal-error"),Qf("boolean"===typeof w,e,"internal-error"),Sm(p,e.name),Sm(h,e.name),Sm(f,e.name),Sm(m,e.name),Sm(g,e.name),Sm(v,e.name);const E=new km({uid:y,auth:e,email:d,emailVerified:b,displayName:u,isAnonymous:w,photoURL:h,phoneNumber:p,tenantId:f,stsTokenManager:A,createdAt:g,lastLoginAt:v});return x&&Array.isArray(x)&&(E.providerData=x.map((e=>Object.assign({},e)))),m&&(E._redirectEventId=m),E}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Tm;r.updateFromServerResponse(t);const i=new km({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Em(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];Qf(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?_m(r.providerUserInfo):[],o=!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length),a=new Tm;a.updateFromIdToken(n);const s=new km({uid:r.localId,auth:e,stsTokenManager:a,isAnonymous:o}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new Am(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length)};return Object.assign(s,l),s}}const Pm=new Map;function Dm(e){Zf(e instanceof Function,"Expected a class definition");let t=Pm.get(e);return t?(Zf(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Pm.set(e,t),t)}class Fm{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}Fm.type="NONE";const Nm=Fm;function Im(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class Rm{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=Im(this.userKey,r.apiKey,i),this.fullPersistenceKey=Im("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?km._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new Rm(Dm(Nm),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||Dm(Nm);const o=Im(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(o);if(t){const n=km._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const s=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&s.length?(i=s[0],a&&await i._set(o,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(o)}catch(l){}}))),new Rm(i,e,n)):new Rm(i,e,n)}}function Om(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Bm(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(jm(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Vm(t))return"Blackberry";if(Hm(t))return"Webos";if(Mm(t))return"Safari";if((t.includes("chrome/")||Lm(t))&&!t.includes("edge/"))return"Chrome";if(Um(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function jm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/firefox\//i.test(e)}function Mm(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Lm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/crios\//i.test(e)}function Bm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/iemobile/i.test(e)}function Um(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/android/i.test(e)}function Vm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/blackberry/i.test(e)}function Hm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/webos/i.test(e)}function zm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Wm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,Of.ZQ)();return zm(e)||Um(e)||Hm(e)||Vm(e)||/windows phone/i.test(e)||Bm(e)}function qm(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=Om((0,Of.ZQ)());break;case"Worker":t="".concat(Om((0,Of.ZQ)()),"-").concat(e);break;default:t=e}const r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Rf.SDK_VERSION,"/").concat(r)}class Gm{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(ns){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class Ym{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,a;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(i=s.containsUppercaseLetter)||void 0===i||i),s.isValid&&(s.isValid=null===(o=s.containsNumericCharacter)||void 0===o||o),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class Km{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Xm(this),this.idTokenSubscription=new Xm(this),this.beforeStateQueue=new Gm(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Vf,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Dm(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await Rm.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await gm(this,{idToken:e}),n=await km._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,Rf._isFirebaseServerApp)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise((t=>{setTimeout((()=>this.initializeCurrentUserFromIdToken(e).then(t,t)))})):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null===r||void 0===r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==o||!(null===a||void 0===a?void 0:a.user)||(r=a.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(o){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(o)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Qf(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Em(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,Rf._isFirebaseServerApp)(this.app))return Promise.reject(Yf(this));const t=e?(0,Of.Ku)(e):null;return t&&Qf(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&Qf(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return(0,Rf._isFirebaseServerApp)(this.app)?Promise.reject(Yf(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,Rf._isFirebaseServerApp)(this.app)?Promise.reject(Yf(this)):this.queue((async()=>{await this.assertedPersistence.setPersistence(Dm(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return am(e,"GET","/v2/passwordPolicy",om(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new Ym(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Of.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return am(e,"POST","/v2/accounts:revokeToken",om(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&Dm(e)||this._popupRedirectResolver;Qf(t,this,"argument-error"),this.redirectPersistenceManager=await Rm.create(this,[Dm(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Qf(a,this,"internal-error"),a.then((()=>{o||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Qf(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=qm(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(Hf.logLevel<=jf.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Hf.warn("Auth (".concat(Rf.SDK_VERSION,"): ").concat(e),...n)}}("Error while retrieving App Check token: ".concat(t.error)),null===t||void 0===t?void 0:t.token}}function Qm(e){return(0,Of.Ku)(e)}class Xm{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,Of.tD)((e=>this.observer=e))}get next(){return Qf(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Zm={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Jm(e){return Zm.loadJS(e)}function $m(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class eg{constructor(e){this.type="recaptcha-enterprise",this.auth=Qm(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;hm(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{mm(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new fm(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&hm(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=Zm.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Jm(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function tg(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new eg(e);let o;try{o=await i.verify(n)}catch(s){o=await i.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function ng(e,t,n,r){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await tg(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await tg(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}class rg{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Xf("not implemented")}_getIdTokenResponse(e){return Xf("not implemented")}_linkToIdToken(e,t){return Xf("not implemented")}_getReauthenticationResolver(e){return Xf("not implemented")}}async function ig(e,t){return am(e,"POST","/v1/accounts:signUp",t)}async function og(e,t){return lm(e,"POST","/v1/accounts:signInWithPassword",om(e,t))}class ag extends rg{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new ag(e,t,"password")}static _fromEmailAndCode(e,t){return new ag(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return ng(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",og);case"emailLink":return async function(e,t){return lm(e,"POST","/v1/accounts:signInWithEmailLink",om(e,t))}(e,{email:this._email,oobCode:this._password});default:Wf(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return ng(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ig);case"emailLink":return async function(e,t){return lm(e,"POST","/v1/accounts:signInWithEmailLink",om(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:Wf(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function sg(e,t){return lm(e,"POST","/v1/accounts:signInWithIdp",om(e,t))}class lg extends rg{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new lg(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Wf("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,Mf.Tt)(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new lg(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return sg(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,sg(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,sg(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,Of.Am)(t)}return e}}const cg={USER_NOT_FOUND:"user-not-found"};class ug extends rg{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new ug({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new ug({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return lm(e,"POST","/v1/accounts:signInWithPhoneNumber",om(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await lm(e,"POST","/v1/accounts:signInWithPhoneNumber",om(e,t));if(n.temporaryProof)throw pm(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return lm(e,"POST","/v1/accounts:signInWithPhoneNumber",om(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),cg)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new ug({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class dg{constructor(e){var t,n,r,i,o,a;const s=(0,Of.I9)((0,Of.hp)(e)),l=null!==(t=s.apiKey)&&void 0!==t?t:null,c=null!==(n=s.oobCode)&&void 0!==n?n:null,u=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=s.mode)&&void 0!==r?r:null);Qf(l&&c&&u,"argument-error"),this.apiKey=l,this.operation=u,this.code=c,this.continueUrl=null!==(i=s.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(o=s.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(a=s.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=(0,Of.I9)((0,Of.hp)(e)).link,n=t?(0,Of.I9)((0,Of.hp)(t)).deep_link_id:null,r=(0,Of.I9)((0,Of.hp)(e)).deep_link_id;return(r?(0,Of.I9)((0,Of.hp)(r)).link:null)||r||n||t||e}(e);try{return new dg(t)}catch(n){return null}}}class pg{constructor(){this.providerId=pg.PROVIDER_ID}static credential(e,t){return ag._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=dg.parseLink(t);return Qf(n,"argument-error"),ag._fromEmailAndCode(e,n.code,n.tenantId)}}pg.PROVIDER_ID="password",pg.EMAIL_PASSWORD_SIGN_IN_METHOD="password",pg.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class hg{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class fg extends hg{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class mg extends fg{constructor(){super("facebook.com")}static credential(e){return lg._fromParams({providerId:mg.PROVIDER_ID,signInMethod:mg.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return mg.credentialFromTaggedObject(e)}static credentialFromError(e){return mg.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return mg.credential(t.oauthAccessToken)}catch(n){return null}}}mg.FACEBOOK_SIGN_IN_METHOD="facebook.com",mg.PROVIDER_ID="facebook.com";class gg extends fg{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return lg._fromParams({providerId:gg.PROVIDER_ID,signInMethod:gg.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return gg.credentialFromTaggedObject(e)}static credentialFromError(e){return gg.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return gg.credential(n,r)}catch(i){return null}}}gg.GOOGLE_SIGN_IN_METHOD="google.com",gg.PROVIDER_ID="google.com";class vg extends fg{constructor(){super("github.com")}static credential(e){return lg._fromParams({providerId:vg.PROVIDER_ID,signInMethod:vg.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return vg.credentialFromTaggedObject(e)}static credentialFromError(e){return vg.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return vg.credential(t.oauthAccessToken)}catch(n){return null}}}vg.GITHUB_SIGN_IN_METHOD="github.com",vg.PROVIDER_ID="github.com";class yg extends fg{constructor(){super("twitter.com")}static credential(e,t){return lg._fromParams({providerId:yg.PROVIDER_ID,signInMethod:yg.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return yg.credentialFromTaggedObject(e)}static credentialFromError(e){return yg.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return yg.credential(n,r)}catch(i){return null}}}yg.TWITTER_SIGN_IN_METHOD="twitter.com",yg.PROVIDER_ID="twitter.com";class bg{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await km._fromIdTokenResponse(e,n,r),o=wg(n);return new bg({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=wg(n);return new bg({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function wg(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class xg extends Of.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,xg.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new xg(e,t,n,r)}}function Cg(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw xg._fromErrorAndOperation(e,n,t,r);throw n}))}async function Ag(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await xm(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return bg._forOperation(e,"link",r)}async function Eg(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e;if((0,Rf._isFirebaseServerApp)(r.app))return Promise.reject(Yf(r));const i="reauthenticate";try{const o=await xm(e,Cg(r,i,t,e),n);Qf(o.idToken,r,"internal-error");const a=bm(o.idToken);Qf(a,r,"internal-error");const{sub:s}=a;return Qf(e.uid===s,r,"user-mismatch"),bg._forOperation(e,i,o)}catch(o){throw(null===o||void 0===o?void 0:o.code)==="auth/".concat("user-not-found")&&Wf(r,"user-mismatch"),o}}async function _g(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,Rf._isFirebaseServerApp)(e.app))return Promise.reject(Yf(e));const r="signIn",i=await Cg(e,r,t),o=await bg._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}function Tg(e,t,n,r){return(0,Of.Ku)(e).onAuthStateChanged(t,n,r)}new WeakMap;const Sg="__sak";class kg{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(Sg,"1"),this.storage.removeItem(Sg),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class Pg extends kg{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=(0,Of.ZQ)();return Mm(e)||zm(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=Wm(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,Of.lT)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Pg.type="LOCAL";class Dg extends kg{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Dg.type="SESSION";class Fg{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new Fg(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null===o||void 0===o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(o).map((async e=>e(t.origin,i))),s=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(a);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function Ng(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}Fg.receivers=[];class Ig{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((a,s)=>{const l=Ng("",20);r.port1.start();const c=setTimeout((()=>{s(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),s(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}function Rg(){return window}function Og(){return"undefined"!==typeof Rg().WorkerGlobalScope&&"function"===typeof Rg().importScripts}const jg="firebaseLocalStorageDb",Mg="firebaseLocalStorage",Lg="fbase_key";class Bg{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function Ug(e,t){return e.transaction([Mg],t?"readwrite":"readonly").objectStore(Mg)}function Vg(){const e=indexedDB.open(jg,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Mg,{keyPath:Lg})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Mg)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(jg);return new Bg(e).toPromise()}(),t(await Vg()))}))}))}async function Hg(e,t,n){const r=Ug(e,!0).put({[Lg]:t,value:n});return new Bg(r).toPromise()}function zg(e,t){const n=Ug(e,!0).delete(t);return new Bg(n).toPromise()}class Wg{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Vg()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Og()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Fg._getInstance(Og()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Ig(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Vg();return await Hg(e,Sg,"1"),await zg(e,Sg),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>Hg(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=Ug(e,!1).get(t),r=await new Bg(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>zg(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=Ug(e,!1).getAll();return new Bg(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Wg.type="LOCAL";$m("rcb"),new em(3e4,6e4);const qg="recaptcha";async function Gg(e,t,n){var r;const i=await n.verify();try{let o;if(Qf("string"===typeof i,e,"argument-error"),Qf(n.type===qg,e,"argument-error"),o="string"===typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){Qf("enroll"===t.type,e,"internal-error");const n=await function(e,t){return am(e,"POST","/v2/accounts/mfaEnrollment:start",om(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{Qf("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;Qf(n,e,"missing-multi-factor-info");const a=await function(e,t){return am(e,"POST","/v2/accounts/mfaSignIn:start",om(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return am(e,"POST","/v1/accounts:sendVerificationCode",om(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}class Yg{constructor(e){this.providerId=Yg.PROVIDER_ID,this.auth=Qm(e)}verifyPhoneNumber(e,t){return Gg(this.auth,e,(0,Of.Ku)(t))}static credential(e,t){return ug._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Yg.credentialFromTaggedObject(t)}static credentialFromError(e){return Yg.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?ug._fromTokenResponse(n,r):null}}Yg.PROVIDER_ID="phone",Yg.PHONE_SIGN_IN_METHOD="phone";class Kg extends rg{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return sg(e,this._buildIdpRequest())}_linkToIdToken(e,t){return sg(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return sg(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Qg(e){return _g(e.auth,new Kg(e),e.bypassAuthState)}function Xg(e){const{auth:t,user:n}=e;return Qf(n,t,"internal-error"),Eg(n,new Kg(e),e.bypassAuthState)}async function Zg(e){const{auth:t,user:n}=e;return Qf(n,t,"internal-error"),Ag(n,new Kg(e),e.bypassAuthState)}class Jg{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:a}=e;if(o)return void this.reject(o);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Qg;case"linkViaPopup":case"linkViaRedirect":return Zg;case"reauthViaPopup":case"reauthViaRedirect":return Xg;default:Wf(this.auth,"internal-error")}}resolve(e){Zf(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Zf(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const $g=new em(2e3,1e4);class ev extends Jg{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,ev.currentPopupAction&&ev.currentPopupAction.cancel(),ev.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Qf(e,this.auth,"internal-error"),e}async onExecution(){Zf(1===this.filter.length,"Popup operations only handle one event");const e=Ng();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(qf(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(qf(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,ev.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(qf(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,$g.get())};e()}}ev.currentPopupAction=null;new Map;new em(3e4,6e4);new em(5e3,15e3),new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);encodeURIComponent("fac");var tv="@firebase/auth",nv="1.7.5";class rv{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Qf(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}(0,Of.XA)("authIdTokenMaxAge");var iv;!function(e){Zm=e}({loadJS:e=>new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=qf("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),iv="Browser",(0,Rf._registerComponent)(new Lf.uA("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=r.options;Qf(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:s,clientPlatform:iv,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:qm(iv)},c=new Km(r,i,o,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Dm);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),(0,Rf._registerComponent)(new Lf.uA("auth-internal",(e=>(e=>new rv(e))(Qm(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Rf.registerVersion)(tv,nv,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(iv)),(0,Rf.registerVersion)(tv,nv,"esm2017");const ov=async e=>cs().get("".concat(ss.Sw,"/ingestAccount"),{params:{address:e}}),av=async e=>{let t=!1;try{(await dc.account(e)).address&&(t=!0)}catch(n){(0,fs.t)("Couldn't find account [".concat(e,"] for private listing"))}return t},sv=()=>{localStorage.removeItem("FCL_CURRENT_USER"),dc.unauthenticate(),pl.j2.signOut().then((()=>{(0,fs.t)("firebase sign out successful")})),dc.config.put({"discovery.authn.endpoint":"https://fcl-discovery.onflow.org/api/authn","discovery.wallet":"https://fcl-discovery.onflow.org/authn"}),(0,Tf.E6)(),sessionStorage.clear()},lv=(e,t,n,r)=>{var i,o;const a=localStorage.getItem("FCL_CURRENT_USER");let s;if(a&&""!==a)try{s=JSON.parse(a)}catch(l){console.error("Error parsing localStorageUser:",l)}if(Boolean(null===(i=s)||void 0===i?void 0:i.expiresAt)&&(null===(o=s)||void 0===o?void 0:o.expiresAt)<Date.now())sv();else{if(a){try{sessionStorage.getItem("CURRENT_USER")||sessionStorage.setItem("CURRENT_USER",a)}catch(l){}localStorage.removeItem("FCL_CURRENT_USER")}dc.currentUser().subscribe((async i=>{var o;i&&localStorage.setItem("FCL_CURRENT_USER",JSON.stringify(i)),(0,fs.t)("fcl subscribe currentUser",{currentUser:i});const a=n;(0,fs.t)("currentUser is",null===i||void 0===i?void 0:i.addr,null===i||void 0===i?void 0:i.token,a);const s=(null===i||void 0===i||null===(o=i.services)||void 0===o?void 0:o.length)>0&&i.services[0].endpoint&&i.services[0].endpoint.includes("meetdapper.com")||!1,l=i;if(!l)return void e(null);r(!0);const c=l.addr;if(c){var u,d,p;const n=Tf.su.scripts.getAccountWalletBalance(c);(0,fs.t)("accountAddress",c);const r=l.services[0]&&{email:null===(u=l.services[0].scoped)||void 0===u?void 0:u.email}||{};let o,g=(null===l||void 0===l?void 0:l.token)||"";try{if((0,fs.t)("trying to login with firebase"),a)ds.o.track("[PREVIEW 2-4233]YesFbUser",{}),o={user:a};else{if(ds.o.track("[PREVIEW 2-4233]NoFbUser",{}),!g)throw new Error("Not authenticated");o=await cv(g)}(0,fs.t)("obtained firebaseSignedUser...")}catch(f){(0,fs.t)("something went wrong logging in: ",f),(0,fs.t)("getting user signed message..."),ds.o.track("[PREVIEW 2-4233]CatchBlock",{message:null===f||void 0===f?void 0:f.message}),g=await yc(i),g||sv(),ds.o.track("[PREVIEW 2-4233]createAccountToken",{customToken:g}),(0,fs.t)("obtained custom token, logging in...");try{o=await cv(g),await new Promise(((e,t)=>{const n=Tg(pl.j2,(t=>{t&&(n(),e(t));const r=setTimeout((()=>{ds.o.track("[PREVIEW 2-4233]ForcedRefresh",{}),window.location.reload()}),1500);clearTimeout(r)}),(e=>{n(),t(e)}))}))}catch(m){return(0,us.getMessageFromError)(m).includes("Popup failed to open")&&await hc().fire({icon:"error",showConfirmButton:!0,timer:2500,title:"Pop-up blocker is enabled. Please allow pop-ups and try again."}),(0,fs._)("something went wrong logging in with new signature: ",(0,us.getMessageFromError)(m)),void sv()}}if((null===(d=o)||void 0===d||null===(p=d.user)||void 0===p?void 0:p.uid)===c){(0,fs.t)("checking if account exists...",c),ds.o.track("[PREVIEW 2-4233]AccountExists",{});let i=!1;try{i=await(async e=>(await pl.db.collection(mc).doc(e).get()).exists)(c)}catch(f){ds.o.track("ERROR_FIREBASE_CHECK_ACCOUNT_EXISTS",{e:f})}if(ds.o.track("[PREVIEW 2-4233]AccountExists?",{accountExists:i}),!i&&c){(0,fs.t)("account does not exist yet",c),ds.o.track("[PREVIEW 2-4233]No Account",{accountAddress:c});try{await(async(e,t)=>pl.db.collection(mc).doc(e).set(t))(c,{email:""})}catch(f){ds.o.track("ERROR_FIREBASE_SET_ACCOUNT_DATA",{e:f})}}(0,fs.t)("signed in user matches account address"),ds.o.track("[PREVIEW 2-4233]getAccountData",{accountAddress:c});const o=Tf.su.scripts.getHybridCustodyAccountSummaries((null===l||void 0===l?void 0:l.addr)||"");let a=null,u=null;try{var h;a=Tf.su.scripts.getChildAccounts(null!==(h=null===l||void 0===l?void 0:l.addr)&&void 0!==h?h:""),u=Tf.su.scripts.getHybridCustodyFTProvidersScript((null===l||void 0===l?void 0:l.addr)||"").then((async e=>{if(!e)return;const t=Object.entries(e),n={};for(let r=0;r<t.length;r++){const[e,i]=t[r],o=Object.keys(i),a=await Tf.su.scripts.getBalanceForAvailableProvidersScript(e,o);n[e]=o.reduce(((e,t)=>{var n,r;return{...e,[t]:{balance:a[t],domain:null===(n=i[t])||void 0===n?void 0:n.domain,identifier:null===(r=i[t])||void 0===r?void 0:r.identifier}}}),{})}return n}))}catch(f){(0,fs.t)("error on script child account execution",f)}vc(c).then((async t=>{ds.o.track("[PREVIEW 2-4233]getAccountDataResult",{accountData:t});const[d,p,h,f]=await Promise.all([n,a,u,o]),m=Object.keys(p||{}).reduce(((e,t)=>null===p?e:{...e,[t]:{...p[t],tokens:h?h[t]:{}}}),{}),v={...f};v[c]={...(null===f||void 0===f?void 0:f[c])||{},display:{description:"Main Account",name:t.userName||c,thumbnail:t.avatar||""},isDapper:s,isMain:!0};const y={...l,...t,blockToEmail:r.email,isFirstLogin:!i,token:g,accountSummaries:v,balance:d,childAccounts:m,isDapper:s};e(y)})).catch((e=>{ds.o.track("ERROR_FIREBASE_GET_ACCOUNT_DATA",{err:e,message:null===e||void 0===e?void 0:e.message}),ds.o.track("[PREVIEW 2-4233]onSubscribeError",{message:null===e||void 0===e?void 0:e.message}),t(e.toString())})),ds.o.track("Successful Login")}else(0,fs._)("User was not authenticated successfully!",o),ds.o.track("Failed Login"),sv()}else e(null)}))}},cv=e=>pl.j2.signInWithCustomToken(e),uv=async e=>{void 0===e&&null!==e||e(!0);const t=await dc.authenticate(),{addr:n,cid:r,loggedIn:i,expiresAt:o,services:a}=t;void 0===e||null!==n||null!==r||i||null!==o||0!==a.length||e(!1)};var dv=__webpack_require__(30339);const pv=[{image:"https://storage.googleapis.com/flowty-images/drops/PromoLaunchpadFlow.webp",message:(0,ms.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[(0,ms.jsxs)("p",{className:"text-[#DEE2E6] text-[14px]",children:["To celebrate Flowty\u2019s new self-service NFT launchpad, we\u2019re giving away ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"20,000 FLOW!"})," "]}),(0,ms.jsxs)("div",{className:"flex max-lg:flex-col gap-[14px]",children:[(0,ms.jsxs)("div",{className:"w-full flex flex-col gap-[12px] text-[#DEE2E6] text-[12px]",children:[(0,ms.jsx)("p",{className:"font-bold",children:"Flowty Contests* (10,000 FLOW)"}),(0,ms.jsxs)("div",{className:"h-full w-full flex flex-col gap-[6px]",children:[(0,ms.jsxs)("div",{className:"h-full w-full flex flex-col border border-[#B9B9B9]",children:[(0,ms.jsxs)("div",{className:"flex",children:[(0,ms.jsx)("p",{className:"w-[110px] border-r border-[#B9B9B9] text-[11px] px-[14px] py-[11px] text-white font-bold",children:"2,500 FLOW"}),(0,ms.jsx)("p",{className:"text-[10px] px-[14px] py-[11px] w-max",children:"Most unique wallets minted"})]}),(0,ms.jsxs)("div",{className:"flex border-t border-[#B9B9B9]",children:[(0,ms.jsx)("p",{className:"w-[110px] border-r border-[#B9B9B9] text-[11px] px-[14px] py-[11px] text-white font-bold",children:"5,000 FLOW"}),(0,ms.jsx)("p",{className:"text-[10px] px-[14px] py-[11px] w-max",children:"2nd - 11th most unique wallets (500ea)"})]}),(0,ms.jsxs)("div",{className:"flex border-t border-[#B9B9B9]",children:[(0,ms.jsx)("p",{className:"w-[110px] border-r border-[#B9B9B9] text-[11px] px-[14px] py-[11px] text-white font-bold",children:"2,500 FLOW"}),(0,ms.jsx)("p",{className:"text-[10px] px-[14px] py-[11px] w-max",children:"5 winners for best art/creativity (500ea)"})]})]}),(0,ms.jsxs)("p",{className:"text-[10px]",children:["*Must include"," ",(0,ms.jsx)("span",{className:"font-bold text-[10px]",children:"Flowty"})," logo / reference in NFT art"]})]})]}),(0,ms.jsxs)("div",{className:"w-full flex flex-col gap-[12px] text-[#DEE2E6] text-[12px]",children:[(0,ms.jsx)("p",{className:"font-bold ",children:"Partner Contests** (10,000 FLOW)"}),(0,ms.jsxs)("div",{className:"h-full w-full flex flex-col gap-[6px]",children:[(0,ms.jsx)("div",{className:"h-full w-full flex flex-col border border-[#B9B9B9]",children:(0,ms.jsxs)("div",{className:"h-full flex",children:[(0,ms.jsx)("p",{className:"w-[110px] border-r border-[#B9B9B9] text-[11px] px-[14px] py-[11px] text-white font-bold",children:"10,000 FLOW"}),(0,ms.jsxs)("ul",{className:"px-[14px] py-[11px] ml-[14px] text-[10px] list-disc",children:[(0,ms.jsx)("li",{children:"20+ community specific contests"}),(0,ms.jsxs)("li",{children:["Collection with most unique ",(0,ms.jsx)("br",{})," wallets minted for each costest ",(0,ms.jsx)("br",{})," will win ~500 FLOW each"]})]})]})}),(0,ms.jsxs)("p",{className:"text-[10px]",children:["**Must include"," ",(0,ms.jsx)("span",{className:"font-bold text-[10px]",children:"Partner"})," logo / reference in NFT art"]})]})]})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,ms.jsxs)("div",{className:"text-[#DEE2E6] text-[12px]",children:[(0,ms.jsx)("p",{className:"text-[12px]",children:"Key Rules:"}),(0,ms.jsxs)("ul",{className:"text-[12px] list-disc ml-[14px]",children:[(0,ms.jsx)("li",{children:"Must be FREE mint"}),(0,ms.jsxs)("li",{children:["Must include"," ",(0,ms.jsx)("span",{className:"font-bold text-[12px]",children:"exactly one hashtag"})," ","(see details) in the collection description"]}),(0,ms.jsx)("li",{children:"Snapshot for all contests will be 2 PM PST on October 2, 2024"})]})]}),(0,ms.jsxs)("p",{className:"text-[#DEE2E6] text-[12px] italic",children:["Please read"," ",(0,ms.jsx)("a",{href:"https://flowty.substack.com/p/nft-launchpad-promo",target:"_blank",rel:"noreferrer",className:"underline",tabIndex:-1,children:"Full Promotional Details"})," ","for all rules on how to qualify and win"]}),(0,ms.jsx)("p",{className:"text-[#DEE2E6] text-[12px]",children:"HAVE FUN AND HAPPY CREATING!"})]})]}),primaryButton:{label:"VISIT LAUNCHPAD",mobileLabel:"VISIT LAUNCHPAD",redirectUrl:"/create"},promotionId:"creators-hub-live",secondaryButton:{label:"FULL PROMOTIONAL DETAILS",mobileLabel:"FULL DETAILS",redirectUrl:"https://flowty.substack.com/p/nft-launchpad-promo"},title:"NFT Launchpad Live on Flowty"}],hv=e=>{var t,n,r,i,o,a;let{landingPage:s,authStore:l,pathname:c}=e;const u=(0,Bs.dv)(),{isShowing:d}=Os(),[p,h]=(0,sa.useState)(!1),{visibleInNav:f,setNavbarOffsetHeight:m,navbarOffsetHeight:g}=(0,sa.useContext)(Cs),[v,y]=(0,sa.useState)(!1),[b,w]=(0,sa.useState)(!1),[x,C]=(0,sa.useState)(!1),A=l&&l.loggedUser&&""===l.loggedUser.email,E=l&&l.loggedUser&&(!l.loggedUser.marketingEmail||""===l.loggedUser.marketingEmail),_=null===l||void 0===l||null===(t=l.loggedUser)||void 0===t||null===(n=t.hasAcknowledgedPromotions)||void 0===n?void 0:n[null===(r=pv[0])||void 0===r?void 0:r.promotionId],T="featurePopupAcknowledged_".concat(null===(i=pv[0])||void 0===i?void 0:i.promotionId);(0,sa.useEffect)((()=>{var e;l&&l.loadActiveGlobalAlerts(),null!==l&&void 0!==l&&null!==(e=l.loggedUser)&&void 0!==e&&e.loggedIn&&h(!1)}),[null===l||void 0===l||null===(o=l.loggedUser)||void 0===o?void 0:o.loggedIn]),(0,sa.useEffect)((()=>{var e,t,n;(!A||null!==(e=l.loggedUser)&&void 0!==e&&e.welcomePopupAcknowledged)&&(!ss.Ao||!E||null!==(t=l.loggedUser)&&void 0!==t&&t.welcomePopupAcknowledged)||"/tos"===c||"/privacy"===c?null===l||void 0===l||!l.loggedUser||null!==(n=l.loggedUser)&&void 0!==n&&n.hasAcceptedTermsV2||"/tos"===c||"/privacy"===c?C(!1):C(!0):y(!0)}),[null===l||void 0===l?void 0:l.loggedUser,E,A]),(0,sa.useEffect)((()=>{var e,t;const n="true"===localStorage.getItem(T);"/create"===c||(null===l||void 0===l||null===(e=l.loggedUser)||void 0===e||!e.addr||_)&&(null!==l&&void 0!==l&&null!==(t=l.loggedUser)&&void 0!==t&&t.addr||!1!==n)||w(!0)}),[null===l||void 0===l?void 0:l.loggedUser,null===(a=pv[0])||void 0===a?void 0:a.promotionId,T]);const S=(0,sa.useMemo)((()=>{if(c.includes("/collection"))return;const e=Object.entries(dv.C).find((e=>{let[,t]=e;return c.includes(t)}));return e?e[0]:void 0}),[c]);return{authLoading:p,getPaddingBottom:(0,sa.useCallback)((()=>["xs","mobile","tablet"].includes(u)?g:"".concat(g,"px")),[u,s,g,c,S,f]),handleClosePromotion:async()=>{var e,t,n,r,i;(w(!1),null!==l&&void 0!==l&&null!==(e=l.loggedUser)&&void 0!==e&&e.addr)&&(await gc(null===l||void 0===l||null===(t=l.loggedUser)||void 0===t?void 0:t.addr,{hasAcknowledgedPromotions:{[null===(n=pv[0])||void 0===n?void 0:n.promotionId]:!0}}),ds.o.track("User acknowledged promotion",null===(r=pv[0])||void 0===r?void 0:r.promotionId),null===l||void 0===l||l.setPromotionAcknowledged(null===(i=pv[0])||void 0===i?void 0:i.promotionId,!0));localStorage.setItem(T,"true")},isPromotionVisible:b,isShowing:d,navbarOffsetHeight:g,selectedItem:S,setAuthLoading:h,setNavbarOffsetHeight:m,showLatestTermsModal:x,showWelcomeMessage:v,visibleInNav:f}},fv=(0,ua.WQ)("rootStore","authStore")((0,ua.PA)((e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w;let{children:x,authStore:C,landingPage:A}=e;const{pathname:E}=(0,js.zy)(),{showWelcomeMessage:_,showLatestTermsModal:T,isShowing:S,getPaddingBottom:k,selectedItem:P,setAuthLoading:D,authLoading:F,setNavbarOffsetHeight:N,navbarOffsetHeight:I}=hv({authStore:C,landingPage:A,pathname:E}),{notifications:R,queueNotification:O,fetchMoreNotifications:j,hasMore:M,loading:L}=(e=>{let{loggedUserAddress:t,autoResolve:n=!0,delay:r=1e3}=e;const[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)([]),[l,c]=(0,sa.useState)([]),[u,d]=(0,sa.useState)(null),[p,h]=(0,sa.useState)(!0),f=(0,sa.useMemo)((()=>a.filter((e=>e.type===us.NotificationType.Transaction&&"status"in e&&"PROCESSING"===e.status))),[a]),m=(0,sa.useCallback)((e=>{let{id:t,type:n}=e;c((e=>[...e,{id:t,type:n}]))}),[]),g=(0,sa.useCallback)((async e=>{const n=a.find((t=>t.id===e));if(n&&n.type===us.NotificationType.Transaction)try{const r=await pl.db.collection("/accounts/".concat(t,"/messages")).doc(e).get();if(!r.exists)return;let i=r.data().transactionID;n.type!==us.NotificationType.Transaction||"bulkListing"!==n.listingType&&"bulkDelisting"!==n.listingType||(i=i.split("-")[0]);const{statusString:o}=await If(i),a="SEALED"===o?"SUCCESSFUL":"FAILED";await pl.db.doc("/accounts/".concat(t,"/messages/").concat(e)).update({status:a}),s((t=>{const r=t.findIndex((t=>t.id===e));if(-1===r)return t;const i=[...t];return i[r]={...n,...n.type===us.NotificationType.Transaction&&{status:a}},i}))}catch(r){await pl.db.collection("/accounts/".concat(t,"/messages")).doc(e).update({status:"FAILED"}),s((t=>{const r=t.findIndex((t=>t.id===e));if(-1===r)return t;const i=[...t];return i[r]={...n,status:"FAILED"},i}))}}),[t,a]),v=(0,sa.useCallback)((async e=>{let{id:t,type:n}=e;"TRANSACTION"===n?await g(t):console.error("Unknown notification type")}),[g]),y=(0,sa.useCallback)((async e=>{for await(const{id:t,type:n}of e)await v({id:t,type:n})}),[v]);(0,sa.useEffect)((()=>{t&&n&&f.length&&y(f)}),[n,f,y,t]),(0,sa.useEffect)((()=>{if(!t)return;const e=pl.db.collection("/accounts/".concat(t,"/messages")).orderBy("timestamp","desc").limit(1).onSnapshot((e=>{const t=[];e.forEach((e=>{t.push({...e.data(),id:e.id})})),s((n=>{const r=e.docChanges().filter((e=>"removed"===e.type)).map((e=>e.doc.id)).filter((e=>void 0!==e)),i=n.filter((e=>e.id&&!r.includes(e.id))),o=[...t,...i],a=new Map(o.map((e=>[e.id,e])));return Array.from(a.values())}))}));return()=>e()}),[t]);const b=(0,sa.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return;e&&o(!0);let n=pl.db.collection("/accounts/".concat(t,"/messages")).orderBy("timestamp","desc").limit(25);u&&!e&&(n=n.startAfter(u));const r=await n.get(),i=[];r.forEach((e=>{i.push({...e.data(),id:e.id})})),r.docs.length<25&&h(!1),d(r.docs[r.docs.length-1]),s((t=>e?i:[...t,...i])),o(!1)}),[u,t]),w=(0,sa.useCallback)((()=>{p&&b()}),[b,p]);return(0,sa.useEffect)((()=>{b(!0)}),[t]),(0,sa.useEffect)((()=>{if(!n&&l.length){const e=setInterval((()=>{const e=[...l];c([]),e.forEach((e=>{let{id:t,type:n}=e;v({id:t,type:n})}))}),r);return()=>{clearInterval(e)}}}),[n,l,v]),{fetchMoreNotifications:w,hasMore:p,loading:i,notifications:a,queueNotification:m}})({autoResolve:!1,loggedUserAddress:(null===C||void 0===C||null===(t=C.loggedUser)||void 0===t?void 0:t.addr)||""}),{showDapperSignInBar:B,setShowDapperSignInBar:U}=(()=>{const[e,t]=(0,sa.useState)((()=>{const e=localStorage.getItem("showDapperSignInBar");return!e||JSON.parse(e)}));return(0,sa.useEffect)((()=>{localStorage.setItem("showDapperSignInBar",JSON.stringify(e))}),[e]),{setShowDapperSignInBar:t,showDapperSignInBar:e}})(),V=(0,sa.useMemo)((()=>{var e;const t=(0,sc.HO)(null===C||void 0===C||null===(e=C.loggedUser)||void 0===e?void 0:e.childAccounts);return Object.values(null!==t&&void 0!==t?t:{})}),[null===C||void 0===C||null===(n=C.loggedUser)||void 0===n?void 0:n.childAccounts]);return(0,ms.jsxs)("div",{className:"App h-full ".concat(A&&"bg-[#04070b]"),children:[(0,ms.jsx)(lc,{}),_&&(0,ms.jsx)(kc,{authStore:C}),T&&(0,ms.jsx)(wc,{authStore:C}),(0,ms.jsxs)("div",{style:{paddingBottom:S?0:k()},children:[(0,ms.jsx)(Bs.AP,{disconnectWallet:()=>{sv(),window.location.reload(),ds.o.track("Successful Logout")},isDapper:null===C||void 0===C||null===(r=C.loggedUser)||void 0===r?void 0:r.isDapper,childAccounts:V,user:{authServiceUid:null===C||void 0===C||null===(i=C.loggedUser)||void 0===i||null===(o=i.services[0])||void 0===o?void 0:o.uid,userAddress:null!==(a=null===C||void 0===C||null===(s=C.loggedUser)||void 0===s?void 0:s.addr)&&void 0!==a?a:"",userAvatar:null!==(l=null===C||void 0===C||null===(c=C.loggedUser)||void 0===c?void 0:c.avatar)&&void 0!==l?l:"",userFlowBalance:null===C||void 0===C||null===(u=C.loggedUser)||void 0===u||null===(d=u.balance)||void 0===d||null===(p=d.balances)||void 0===p?void 0:p[Tf.su.tokens.getTokenIdentifier(us.SupportedTokens.FLOW)],userName:null!==(h=null===C||void 0===C||null===(f=C.loggedUser)||void 0===f?void 0:f.userName)&&void 0!==h?h:"",userUsdcBalance:null===C||void 0===C||null===(m=C.loggedUser)||void 0===m||null===(g=m.balance)||void 0===g||null===(v=g.balances)||void 0===v?void 0:v[Tf.su.tokens.getTokenIdentifier(us.SupportedTokens.USDC)]},notificationData:{fetchMoreNotifications:j,hasMore:M,loadingNotifications:L,notifications:R,queueNotification:O},registerHeight:e=>N(e),isLandingPage:!!A,isCreatePage:"/create"===E,isLogged:!(null===C||void 0===C||null===(y=C.loggedUser)||void 0===y||!y.loggedIn),selectedItem:P,logUser:()=>uv(D),authLoading:F,loggedUserAddress:(null===C||void 0===C||null===(b=C.loggedUser)||void 0===b?void 0:b.addr)||""}),(0,ms.jsx)("div",{style:{marginTop:S?I:0},children:(0,ms.jsx)(_f,{})})]}),!(null!==C&&void 0!==C&&null!==(w=C.loggedUser)&&void 0!==w&&w.loggedIn)&&B&&"/create"!==E&&(0,ms.jsx)(Bs.sD,{onDismiss:()=>{U(!1)},connectDapperWallet:()=>(async()=>{const e=ss.KS.includes("mainnet")?"https://accounts.meetdapper.com/fcl/authn-restricted":"https://staging.accounts.meetdapper.com/fcl/authn-restricted";dc.config().put("discovery.wallet",e),dc.config().put("discovery.wallet.method","POP/RPC"),await dc.authenticate()})()}),x]})}))),mv=e=>{let{children:t}=e;return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty NFT Activity: Loans, Rentals and Storefront. View the latest activity from our users",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsxs)("div",{className:"container bg-darkBg",children:[(0,ms.jsx)(zs,{path:"activity"}),t]})]})},gv=(0,ua.WQ)("authStore")((0,ua.PA)((()=>{const e=(0,js.Zp)(),[t,n]=(0,sa.useState)(1),[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)([]),[c,u]=(0,sa.useState)({min:"",path:""}),[d,p]=(0,sa.useState)(!0),[h,f]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending});(0,sa.useEffect)((()=>{n(1)}),[h,c]),(0,sa.useEffect)((()=>fl({filterActivityBy:c,limit:ss.cb*t,makerCb(e){a(e)},sort:h,takerCb(e){l(e)}})),[t,c,h]);const m=(0,sa.useMemo)((()=>o.map((e=>{const t=Number((null===e||void 0===e?void 0:e.amount)||e.additionalData.amount||0),n=Number((null===e||void 0===e?void 0:e.rate)||e.additionalData.periodicInterest||0),r=Number((null===e||void 0===e?void 0:e.term)||e.additionalData.term||0);return{...e,calculatedValues:{...(0,us.solveWithAmountAndInterest)({amount:t,interest:n,term:r},(null===e||void 0===e?void 0:e.royaltyRate)||0)}}}))),[s,o]),g=xl({isLoading:!1,onInfiniteScroll(){setTimeout((()=>{i(!1)}),2e3),t*ss.cb===m.length&&(n(t+1),i(!0)),ds.o.track("Infinite Scroll Global Activity Page")}},[t,m]),v=[{label:"All",value:""},{label:"Settled",value:"SETTLED"},{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Listed",value:"LISTED"},{label:"Expired",value:"EXPIRED"}],[y,b]=(0,sa.useState)(v[0].value);return(0,ms.jsx)(mv,{children:(0,ms.jsxs)("div",{children:[(0,ms.jsx)(Ql,{showFilter:d,setShowFilter:p,filterBy:c,setFilterBy:u}),(0,ms.jsx)("div",{className:"flex mb-[20px]",children:(0,ms.jsx)(Bs.DG,{fields:v,selectedField:y,updateSelectedField:e=>{b(e),u({max:"",min:e,path:"state"})}})}),(0,ms.jsx)("div",{className:"line-separator mb-3 md:mb-4 bg-gradient-to-r from-darkBg via-secondary to-darkBg"}),(0,ms.jsx)($s,{onClickRow:t=>{var n,r;let{item:i}=t;const o=null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.nftType,a=null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.nftID.toString(),s=!(!o||!a),l=(0,us.nftTypeAndIdToLocationData)(o,a);s&&e("/asset/".concat(l.contract.address,"/").concat(l.contract.name,"/").concat(l.resourceName,"/").concat(l.nftID))},fields:oc(e),items:m,onSort:f,initialSortConfig:h,stickyHeaders:!0,composeRowHref:e=>{var t,n;const r=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.nftType,i=null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.nftID.toString(),o=(0,us.nftTypeAndIdToLocationData)(r,i);return"/asset/".concat(o.contract.address,"/").concat(o.contract.name,"/").concat(o.resourceName,"/").concat(o.nftID)}}),(0,ms.jsx)("div",{ref:g,children:r?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):t*ss.cb===m.length&&(0,ms.jsx)(Cl,{})})]})})}))),vv=e=>{var t,n,r,i,o,a,s;let{asset:l}=e;const c="View Asset: ".concat(null!==(t=null===(n=l.card)||void 0===n?void 0:n.title)&&void 0!==t?t:""," ").concat((e=>{var t,n,r;if(null!==e&&void 0!==e&&null!==(t=e.card)&&void 0!==t&&t.additionalDetails){var i,o;return["".concat(null!==e&&void 0!==e&&null!==(i=e.card)&&void 0!==i&&i.additionalDetails?null===e||void 0===e||null===(o=e.card)||void 0===o?void 0:o.additionalDetails.map((e=>" "+e)):"")]}const a="#".concat(e.id);return"".concat(!e.id||null!==(n=e.card)&&void 0!==n&&null!==(r=n.title)&&void 0!==r&&r.includes("#")?"":a)})(l)),u="View ".concat(null!==(r=null===l||void 0===l||null===(i=l.card)||void 0===i?void 0:i.title)&&void 0!==r?r:""," and much more on flowty.io"),d=(0,us.getImageURL)(null!==l&&void 0!==l&&null!==(o=l.card)&&void 0!==o&&o.images&&(null===l||void 0===l||null===(a=l.card)||void 0===a?void 0:a.images.length)>0?null===l||void 0===l||null===(s=l.card)||void 0===s?void 0:s.images[0].url:"");return(0,ms.jsxs)(as,{children:[(0,ms.jsx)("meta",{name:"description",content:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals."}),(0,ms.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,ms.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,ms.jsx)("meta",{name:"twitter:site",content:"@flowty"}),(0,ms.jsx)("meta",{name:"twitter:title",content:c}),(0,ms.jsx)("meta",{name:"twitter:description",content:u}),(0,ms.jsx)("meta",{name:"twitter:image",content:d}),(0,ms.jsx)("meta",{name:"description",content:u}),(0,ms.jsx)("meta",{property:"og:title",content:c}),(0,ms.jsx)("meta",{property:"og:description",content:u}),(0,ms.jsx)("meta",{property:"og:image",content:d}),(0,ms.jsx)("title",{children:c})]})},yv=async e=>(await pl.db.collection("flowNFTTraits").doc(e).get()).data()||null;var bv=__webpack_require__(23220);const wv="-";function xv(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map((e=>{let[n,r]=e;return[n,r.map((e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((e=>{let[n,r]=e;return[t+n,r]}))):e))]}))}(Object.entries(e.classGroups),n);return i.forEach((e=>{let[n,i]=e;Ev(i,r,n,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(wv);return""===n[0]&&1!==n.length&&n.shift(),Cv(n,t)||function(e){if(Av.test(e)){const t=Av.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}}function Cv(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),o=i?Cv(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join(wv);return null===(n=t.validators.find((e=>{let{validator:t}=e;return t(a)})))||void 0===n?void 0:n.classGroupId}const Av=/^\[(.+)\]$/;function Ev(e,t,n,r){e.forEach((e=>{if("string"!==typeof e){if("function"===typeof e)return e.isThemeGetter?void Ev(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((e=>{let[i,o]=e;Ev(o,_v(t,i),n,r)}))}else{(""===e?t:_v(t,e)).classGroupId=n}}))}function _v(e,t){let n=e;return t.split(wv).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Tv(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}}const Sv="!";function kv(e){const t=e.separator,n=1===t.length,r=t[0],i=t.length;return function(e){const o=[];let a,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===r&&(n||e.slice(d,d+i)===t)){o.push(e.slice(l,d)),l=d+i;continue}if("/"===c){a=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===o.length?e:e.substring(l),u=c.startsWith(Sv);return{modifiers:o,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}const Pv=/\s+/;function Dv(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Fv(e))&&(r&&(r+=" "),r+=t);return r}function Fv(e){if("string"===typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Fv(e[r]))&&(n&&(n+=" "),n+=t);return n}function Nv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i,o,a,s=function(t){const r=n.reduce(((e,t)=>t(e)),e());return i=function(e){return{cache:Tv(e.cacheSize),splitModifiers:kv(e),...xv(e)}}(r),o=i.cache.get,a=i.cache.set,s=l,l(t)};function l(e){const t=o(e);if(t)return t;const n=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(Pv).map((e=>{const{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:a}=n(e);let s=r(a?o.substring(0,a):o),l=Boolean(a);if(!s){if(!a)return{isTailwindClass:!1,originalClassName:e};if(s=r(o),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:i?c+Sv:c,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!o.has(a)&&(o.add(a),i(n,r).forEach((e=>o.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,i);return a(e,n),n}return function(){return s(Dv.apply(null,arguments))}}function Iv(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const Rv=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ov=/^\d+\/\d+$/,jv=new Set(["px","full","screen"]),Mv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bv=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Vv(e){return zv(e)||jv.has(e)||Ov.test(e)}function Hv(e){return ny(e,"length",ry)}function zv(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Wv(e){return ny(e,"number",zv)}function qv(e){return Boolean(e)&&Number.isInteger(Number(e))}function Gv(e){return e.endsWith("%")&&zv(e.slice(0,-1))}function Yv(e){return Rv.test(e)}function Kv(e){return Mv.test(e)}const Qv=new Set(["length","size","percentage"]);function Xv(e){return ny(e,Qv,iy)}function Zv(e){return ny(e,"position",iy)}const Jv=new Set(["image","url"]);function $v(e){return ny(e,Jv,ay)}function ey(e){return ny(e,"",oy)}function ty(){return!0}function ny(e,t,n){const r=Rv.exec(e);return!!r&&(r[1]?"string"===typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function ry(e){return Lv.test(e)}function iy(){return!1}function oy(e){return Bv.test(e)}function ay(e){return Uv.test(e)}Symbol.toStringTag;function sy(){const e=Iv("colors"),t=Iv("spacing"),n=Iv("blur"),r=Iv("brightness"),i=Iv("borderColor"),o=Iv("borderRadius"),a=Iv("borderSpacing"),s=Iv("borderWidth"),l=Iv("contrast"),c=Iv("grayscale"),u=Iv("hueRotate"),d=Iv("invert"),p=Iv("gap"),h=Iv("gradientColorStops"),f=Iv("gradientColorStopPositions"),m=Iv("inset"),g=Iv("margin"),v=Iv("opacity"),y=Iv("padding"),b=Iv("saturate"),w=Iv("scale"),x=Iv("sepia"),C=Iv("skew"),A=Iv("space"),E=Iv("translate"),_=()=>["auto",Yv,t],T=()=>[Yv,t],S=()=>["",Vv,Hv],k=()=>["auto",zv,Yv],P=()=>["","0",Yv],D=()=>[zv,Wv],F=()=>[zv,Yv];return{cacheSize:500,separator:":",theme:{colors:[ty],spacing:[Vv,Hv],blur:["none","",Kv,Yv],brightness:D(),borderColor:[e],borderRadius:["none","","full",Kv,Yv],borderSpacing:T(),borderWidth:S(),contrast:D(),grayscale:P(),hueRotate:F(),invert:P(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Gv,Hv],inset:_(),margin:_(),opacity:D(),padding:T(),saturate:D(),scale:D(),sepia:P(),skew:F(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Yv]}],container:["container"],columns:[{columns:[Kv]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Yv]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qv,Yv]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Yv]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",qv,Yv]}],"grid-cols":[{"grid-cols":[ty]}],"col-start-end":[{col:["auto",{span:["full",qv,Yv]},Yv]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[ty]}],"row-start-end":[{row:["auto",{span:[qv,Yv]},Yv]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Yv]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Yv]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Yv,t]}],"min-w":[{"min-w":["min","max","fit",Yv,Vv]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Kv]},Kv,Yv]}],h:[{h:[Yv,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Vv,Yv]}],"max-h":[{"max-h":[Yv,t,"min","max","fit"]}],"font-size":[{text:["base",Kv,Hv]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wv]}],"font-family":[{font:[ty]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Yv]}],"line-clamp":[{"line-clamp":["none",zv,Wv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vv,Yv]}],"list-image":[{"list-image":["none",Yv]}],"list-style-type":[{list:["none","disc","decimal",Yv]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vv,Hv]}],"underline-offset":[{"underline-offset":["auto",Vv,Yv]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Yv]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Yv]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Zv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$v]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Vv,Yv]}],"outline-w":[{outline:[Vv,Hv]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Vv,Hv]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Kv,ey]}],"shadow-color":[{shadow:[ty]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Kv,Yv]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Yv]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",Yv]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",Yv]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[qv,Yv]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Yv]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Yv]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Yv]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vv,Hv,Wv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const ly=Nv(sy);function cy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ly((0,bv.$)(t))}const uy=e=>{let{collectionAddress:t,collectionName:n,trait:r,traitDisplayValue:i}=e;const o=new URLSearchParams;o.set("collectionFilters",JSON.stringify({["".concat(t,".").concat(n)]:{[r.name]:{[i]:!0}}})),o.set("orderFilters",JSON.stringify({})),o.set("sort",JSON.stringify({direction:"desc",listingKind:null,path:"blockTimestamp"})),o.set("paymentTokens","null");return"/collection/".concat(t,"/").concat(n,"?").concat(o.toString())},dy=async(e,t)=>{for(const n of[".svg",".png",".jpeg",".jpg",".mp4"].filter((e=>!e.includes(t))))if(e.toLowerCase().endsWith(n))return!1;return fetch("".concat(ss.Sw,"/imageMimeType?url=").concat(e)).then((e=>e.json().then((e=>{let{mimetype:n}=e;return n===".".concat(t)}))))},py=e=>{let{collectionAddress:t,collectionName:n,onError:r,className:i}=e;const[o,a]=(0,sa.useState)("");return(0,sa.useEffect)((()=>{il({collectionAddress:t,collectionName:n}).then((e=>{a(e)}))}),[]),(0,ms.jsx)("img",{src:o,onError:r,alt:"".concat(o," asset"),className:i})},hy=e=>{let{isOpen:t,onClose:n,ipfsLink:r}=e;return(0,ms.jsx)(cc.e,{appear:!0,show:t,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:"relative z-[60]",onClose:n,children:[(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,ms.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,ms.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,ms.jsxs)(uc.l.Panel,{className:" transform rounded-xl bg-[#212b36]   text-left align-middle shadow-xl transition-all w-[26rem] md:w-[45rem] lg:w-[65rem]",children:[(0,ms.jsxs)(uc.l.Title,{as:"div",className:"p-4 border-b border-[#495057] px-10 w-full flex items-center justify-between",children:[(0,ms.jsx)("div",{}),(0,ms.jsx)(Ef.A,{onClick:n,className:"w-8 h-8 cursor-pointer fill-white"})]}),(0,ms.jsx)("div",{className:"flex w-full h-[85vh]",children:(0,ms.jsx)("iframe",{title:"FlowtyWrapped",src:"https://flowty.mypinata.cloud/ipfs/".concat(r.slice(7)),className:"w-full h-full"})})]})})})})]})})},fy=ss.Ao?"A.592eb32b47d8b85f.FlowtyWrapped.NFT":"A.d1712bc9e162f9e3.FlowtyWrapped.NFT",my=e=>{var t,n,r,i,o;let{asset:a,classNames:s}=e;const[l,c]=(0,sa.useState)(!1),[u,d]=(0,sa.useState)(!1),p=(0,sa.useMemo)((()=>a.type===fy),[a]);(0,sa.useEffect)((()=>{p&&(async e=>{const t=await Tf.su.scripts.getFlowtyWrappedIpfs(e);t&&d(t)})(null===a||void 0===a?void 0:a.owner)}),[p,a]);const[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(!1),v=(0,sa.useMemo)((()=>{var e,t,n,r;return(0,us.getImageURL)(null!==(e=null===(t=a.card)||void 0===t||null===(n=t.images)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.url)&&void 0!==e?e:tl.A,(0,ss.hx)(a.type))}),[null===(t=a.card)||void 0===t||null===(n=t.images)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.url]);(0,sa.useEffect)((()=>{v&&m&&dy(v,"mp4").then(f)}),[v,m]);const y=(0,sa.useMemo)((()=>{var e,t,n;return(0,Bs.Yj)({traits:null!==(e=null===(t=a.nftView)||void 0===t||null===(n=t.traits)||void 0===n?void 0:n.traits)&&void 0!==e?e:[]})}),[null===(i=a.nftView)||void 0===i||null===(o=i.traits)||void 0===o?void 0:o.traits]),b=(0,sa.useMemo)((()=>{var e,t;if(!h&&m)return(0,ms.jsxs)("div",{className:"relative mx-auto w-fit",children:[(0,ms.jsx)("div",{className:"flex flex-row absolute top-4 left-4",children:(0,ms.jsx)(Bs.t1,{specialTsTraits:y})}),(0,ms.jsx)(py,{collectionAddress:(null===a||void 0===a||null===(e=a.card)||void 0===e?void 0:e.collectionAddress)||(null===a||void 0===a?void 0:a.contractAddress)||"",collectionName:(null===a||void 0===a||null===(t=a.card)||void 0===t?void 0:t.collectionName)||(null===a||void 0===a?void 0:a.contractName)||"",onError:e=>{(0,ol.R)(e)},className:"bg-no-repeat bg-cover bg-center ".concat(s)})]});if(!h){var n,r;const e=(null===(n=a.card)||void 0===n?void 0:n.title)||"".concat(null===a||void 0===a?void 0:a.contractName," #").concat(null===a||void 0===a||null===(r=a.nftView)||void 0===r?void 0:r.id);return p?(0,ms.jsxs)("div",{className:"relative mx-auto w-fit",children:[(0,ms.jsx)("img",{className:"bg-no-repeat bg-cover bg-center ".concat(s),src:v,alt:e,onError:()=>{g(!0)}}),(0,ms.jsx)("button",{onClick:()=>{c(!0)},className:"absolute top-1/2  left-1/2 transform translate-x-[-50%] translate-y-[-50%] w-[10rem] h-[2.3rem] md:w-[15rem] md:h-[3.3rem] flex justify-center items-center gap-[1rem] flex-shrink-0 open-rich-text-button text-[14px] md:text-[1.5rem] font-[500] text-white font-montserrat",children:"Click To Open"})]}):(0,ms.jsxs)("div",{className:"relative mx-auto w-fit",children:[(0,ms.jsx)("div",{className:"flex flex-row absolute top-4 left-4",children:(0,ms.jsx)(Bs.t1,{specialTsTraits:y})}),(0,ms.jsx)("img",{className:"bg-no-repeat bg-cover bg-center ".concat(s),src:v,alt:e,onError:()=>{g(!0)}})]})}return h?(0,ms.jsx)("div",{className:"".concat(s),children:(0,ms.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,controls:!1,playsInline:!0,preload:"auto",children:(0,ms.jsx)("source",{type:"video/mp4",src:v})})}):void 0}),[s,v,ol.R,h,m,g]);return(0,ms.jsxs)(ms.Fragment,{children:[b,l&&(0,ms.jsx)(hy,{ipfsLink:u.toString(),isOpen:l,onClose:()=>c(!1)})]})};var gy=__webpack_require__(99154);const vy=e=>{let{symbol:t,count:n}=e;return(0,ms.jsx)("div",{style:{lineHeight:1},className:"".concat("LOAN"===t?"bg-[#2F2FA5] text-[#9D9DFE] border-[#9D9DFE]":"".concat("RENT"===t?"bg-[#973C19] text-[#F3B59C] border-[#F3B59C]":"".concat("LOCKED"===t?"bg-[#4C5B69] text-[#c2c2c2] border-[#7EE7C7]":"".concat("FORBIDDEN"===t?"bg-[#C70039] text-[#F3B59C] border-[#F3B59C]":"bg-[#1B8062] text-[#7EE7C7] border-[#7EE7C7]")))," rounded-md py-[0.25rem] px-[0.75rem] text-[0.75rem] mx-0.5 border-[1px] font-bold flex items-center justify-center shadow-xl h-fit m-auto w-fit"),children:"LOCKED"===t?(0,ms.jsx)(gy.A,{className:"h-4 w-4 fill-white"}):(0,ms.jsxs)("span",{children:[t," ","".concat(Number(n)>1?"x".concat(n):"")]})})},yy=["A.e4cf4bdc1751c65d.PackNFT.NFT","A.2d4c3caffbeab845.FLOAT.NFT","A.fdae91e14e960079.GaiaPackNFT.NFT","A.e81193c424cfd3fb.Doodles.NFT"],by=e=>{var t,n,r,i,o;let{nft:a,orders:s}=e;const{denylistCache:l}=ys(),[c,u]=(0,sa.useState)(a.type);return(0,sa.useEffect)((()=>{a.type.endsWith(".NFT")||u("".concat(a.type,".NFT"))}),[a]),(0,ms.jsx)(ms.Fragment,{children:0!==(null===(t=a.offers)||void 0===t?void 0:t.length)||s.loans||s.rentals||s.storefront?(0,ms.jsxs)("div",{className:"flex flex-row gap-[0.375rem]",children:[null!==(n=a.offers)&&void 0!==n&&n.length?(0,ms.jsx)(vy,{symbol:"OFFER"}):null,null!==s&&void 0!==s&&null!==(r=s.storefront)&&void 0!==r&&r.length?(0,ms.jsx)(vy,{symbol:"SALE",count:s.storefront.length}):null,null!==s&&void 0!==s&&null!==(i=s.loans)&&void 0!==i&&i.length?(0,ms.jsx)(vy,{symbol:"LOAN",count:s.loans.length}):null,null!==s&&void 0!==s&&null!==(o=s.rentals)&&void 0!==o&&o.length?(0,ms.jsx)(vy,{symbol:"RENT",count:s.rentals.length}):null,l.has(c)&&!yy.includes(c)?(0,ms.jsx)(vy,{symbol:"FORBIDDEN"}):null]}):(0,ms.jsx)("span",{className:"text-[1rem] md:text-[1.125rem] font-bold font-montserrat",children:"None available"})})};var wy;function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(null,arguments)}function Cy(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",xy({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,wy||(wy=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.80039 1.63683C5.52384 1.57909 6.21064 1.29461 6.76302 0.823877C8.05205 -0.274626 9.94795 -0.274626 11.237 0.823877C11.7894 1.29461 12.4762 1.57909 13.1996 1.63683C14.8878 1.77155 16.2285 3.11215 16.3632 4.80039C16.4209 5.52384 16.7054 6.21064 17.1761 6.76302C18.2746 8.05205 18.2746 9.94795 17.1761 11.237C16.7054 11.7894 16.4209 12.4762 16.3632 13.1996C16.2285 14.8878 14.8878 16.2285 13.1996 16.3632C12.4762 16.4209 11.7894 16.7054 11.237 17.1761C9.94795 18.2746 8.05205 18.2746 6.76302 17.1761C6.21064 16.7054 5.52384 16.4209 4.80039 16.3632C3.11215 16.2285 1.77155 14.8878 1.63683 13.1996C1.57909 12.4762 1.29461 11.7894 0.823877 11.237C-0.274626 9.94795 -0.274626 8.05205 0.823877 6.76302C1.29461 6.21064 1.57909 5.52384 1.63683 4.80039C1.77155 3.11215 3.11215 1.77155 4.80039 1.63683ZM13.1705 7.5455C13.6098 7.10616 13.6098 6.39384 13.1705 5.9545C12.7312 5.51516 12.0188 5.51516 11.5795 5.9545L7.875 9.65901L6.4205 8.2045C5.98116 7.76516 5.26884 7.76516 4.8295 8.2045C4.39016 8.64384 4.39016 9.35615 4.8295 9.7955L7.0795 12.0455C7.51884 12.4848 8.23116 12.4848 8.6705 12.0455L13.1705 7.5455Z",fill:"#04E5A3"})))}const Ay=sa.forwardRef(Cy),Ey=(__webpack_require__.p,()=>{const{collectionAddress:e,collectionName:t}=(0,js.g)(),[n,r]=(0,sa.useState)(!0),[i,o]=(0,sa.useState)(null),[a,s]=(0,sa.useState)(!1);return(0,sa.useEffect)((()=>{(0,nl.r)({collectionAddress:"".concat(e),collectionName:"".concat(t)}).then((e=>{o(e),s(!(null===e||void 0===e||!e.isNFTCatalog))})).then((()=>r(!1)))}),[]),(0,ms.jsx)(ms.Fragment,{children:n?(0,ms.jsx)(bc.BM,{width:20,height:20}):(0,ms.jsx)(ms.Fragment,{children:ss.bo?(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)(ca.N_,{className:"flex items-center group font-montserrat",to:"/collection/".concat(e,"/").concat(t),children:[(0,ms.jsx)("div",{className:"w-[1.5rem] h-[1.5rem] bg-cover bg-no-repeat bg-center rounded-[0.1875rem]",style:{backgroundImage:"url(".concat(t?(0,us.getSquareImage)(t,i):rl.A,")")}}),(0,ms.jsx)("p",{className:"mx-2 text-primary text-[1rem] md:text-[1.125rem] font-bold",children:null===i||void 0===i?void 0:i.name}),n?(0,ms.jsx)("div",{className:"w-[16px] h-[16px]"}):(0,ms.jsx)(ms.Fragment,{children:a&&(0,ms.jsx)(Ay,{className:"group-hover:stroke-primary",width:16,height:16})})]})}):(0,ms.jsx)("p",{className:"text-primary text-[1rem] md:text-[1.125rem] font-bold",children:null===i||void 0===i?void 0:i.name})})})}),_y=[{collectionAddress:ss.BN,collectionName:"TopShot"},{collectionAddress:ss.zp,collectionName:"AllDay"}],Ty=e=>{var t,n,r,i,o,a,s,l,c,u,d,p;let{asset:h,orders:f}=e;const[m,g]=(0,sa.useState)(!1),[v,y]=(0,sa.useState)(!1),[b,w]=(0,sa.useState)(!1),{collectionAddress:x,collectionName:C}=(0,js.g)(),[A,E]=(0,sa.useState)(!1),_=(0,sa.useCallback)((()=>{const e=(0,us.nftTypeAndIdToLocationData)(h.type,h.id),t=(0,us.getNFTIdentifier)(e);g(!0),Tf.su.api.refreshMetadata(t).then((()=>ds.o.track("REFRESH_NFT_METADATA_SUCCESS"))).catch((e=>ds.o.track("REFRESH_NFT_METADATA_FAILED",e)))}),[]),{traitDataLoading:T,collectionTraits:S}=(e=>{let{contractID:t}=e;const[n,r]=(0,sa.useState)(!0),[i,o]=(0,sa.useState)([]),a=(0,sa.useCallback)((async e=>{try{const t=await yv(e);o(null===t||void 0===t?void 0:t.traits),r(!1)}catch(t){ds.o.track("Error fetching data:",t)}}),[]);return(0,sa.useEffect)((()=>{a(t)}),[t]),{collectionTraits:i,traitDataLoading:n}})({contractID:(0,us.nftTypeToContractID)(h.type)}),k=(e=>{let{traits:t,isLoading:n,collectionTraits:r}=e;const i=(0,sa.useMemo)((()=>{if(!n){const e=t.filter((e=>null===r||void 0===r?void 0:r.some((t=>t.name===e.name)))),n=t.filter((e=>!(null!==r&&void 0!==r&&r.some((t=>t.name===e.name)))));return e.sort(((e,t)=>e.name.localeCompare(t.name))),n.sort(((e,t)=>e.name.localeCompare(t.name))),[...e,...n]}return[]}),[t,r,n]);return i})({collectionTraits:S,isLoading:T,traits:null!==(t=null===(n=h.nftView)||void 0===n||null===(r=n.traits)||void 0===r?void 0:r.traits)&&void 0!==t?t:[]}).map((e=>{const t=(e=>{if("object"!==typeof e.value)return e.displayType,e.value})(e);return{...e,url:uy({collectionAddress:null!==x&&void 0!==x?x:"",collectionName:null!==C&&void 0!==C?C:"",trait:e,traitDisplayValue:null!==t&&void 0!==t?t:""})}})),P=(0,sa.useMemo)((()=>_y.some((e=>e.collectionAddress===x&&e.collectionName===C))),[h]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"flex flex-col mt-[1rem] lg:mt-[3rem]",children:[(0,ms.jsx)("div",{className:"grid lg:flex lg:flex-row lg:gap-x-[38px] rounded-md bg-[#606e7d33] py-[18px] px-[32px] md:p-[2rem]",children:(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"flex flex-col lg:hidden mb-[1.4rem] gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"font-extrabold font-montserrat text-[1.25rem]",children:null===(i=h.card)||void 0===i?void 0:i.title}),(0,ms.jsx)("span",{className:"font-bold font-montserrat text-[1rem] text-[#C1C1C1]",children:null===(o=h.card)||void 0===o?void 0:o.additionalDetails})]}),(0,ms.jsx)("div",{className:"xl:w-[398px] xl:h-[398px] max-h-[25rem] md:w-[25rem] mx-auto flex justify-center",children:(0,ms.jsx)(my,{asset:h,classNames:"rounded-[0.625rem] w-full md:w-auto md:m-auto h-auto max-h-full"})}),(0,ms.jsxs)("div",{className:"flex flex-col flex-1 !leading-[18px]",children:[(0,ms.jsxs)("div",{children:[(0,ms.jsxs)("div",{className:"flex flex-row items-center justify-between w-full",children:[(0,ms.jsx)("span",{className:"font-extrabold font-montserrat text-[1.5rem] hidden lg:block",children:null===(a=h.card)||void 0===a?void 0:a.title}),(0,ms.jsxs)("div",{className:"flex pt-[16px] lg:pt-[0px]",children:[(0,ms.jsx)("div",{"data-tooltip-place":"top",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),"data-tooltip-id":"".concat(h.id,"-refresh-tooltip"),onClick:()=>_(),className:"border-[1px] border-opacity-25 border-[#7c7c7c] group cursor-pointer bg-[#FFFFFF] backdrop-blur-sm p-2 mx-1 rounded-md hover:bg-opacity-[15%] bg-opacity-[8%]",children:(0,ms.jsx)(ql,{className:cy("w-6 h-6",{"animate-spin":m})})}),(null===h||void 0===h||null===(s=h.nftView)||void 0===s?void 0:s.externalURL)&&(0,ms.jsx)("button",{onClick:()=>{var e,t,n;P?window.open(null!==(e=null===h||void 0===h||null===(t=h.nftView)||void 0===t||null===(n=t.externalURL)||void 0===n?void 0:n.url)&&void 0!==e?e:"","_blank"):w(!0)},children:(0,ms.jsx)("div",{"data-tooltip-place":"top",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),"data-tooltip-id":"".concat(h.id,"-external-tooltip"),className:"border-[1px] border-opacity-25 border-[#7c7c7c] group cursor-pointer bg-[#FFFFFF] backdrop-blur-sm p-2 mx-1 rounded-md hover:bg-opacity-[15%] bg-opacity-[8%]",children:(0,ms.jsx)(tc,{className:"w-6 h-6"})})})]})]}),(0,ms.jsx)("span",{className:"font-bold font-montserrat text-[1.125rem] text-[#C1C1C1] hidden lg:block mt-2 lg:mt-0",children:null===(l=h.card)||void 0===l?void 0:l.additionalDetails})]}),(0,ms.jsx)("div",{className:"flex flex-row items-center my-[1.4rem] flex-wrap gap-y-[0.25rem] md:gap-y-[0rem]",children:(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row flex-wrap",children:[(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[1rem] text-[#C1C1C1]",children:"Collection"}),(0,ms.jsx)(Ey,{})]}),(0,ms.jsx)("div",{className:"horizontal-border-gradient mx-[1.75rem]"}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[1rem] text-[#C1C1C1]",children:"Owned By"}),h.owner&&(0,ms.jsx)(ca.N_,{to:"/user/".concat(h.owner),className:"text-primary text-[1rem] md:text-[1.125rem] leading-8 font-bold font-montserrat truncate max-w-[110px] sm:max-w-full",children:h.owner})]}),(0,ms.jsx)("div",{className:"horizontal-border-gradient mx-[1.75rem]"}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[1rem] text-[#C1C1C1]",children:"Available Listings"}),(0,ms.jsx)("div",{children:(0,ms.jsx)(by,{nft:h,nftId:null===(c=h.id)||void 0===c?void 0:c.toString(),orders:f})})]})]})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[1rem] text-[#C1C1C1] mb-[0.5rem]",children:"Properties"}),(0,ms.jsx)(Bs.Di,{traits:k,customRender:e=>(0,ms.jsx)(ca.N_,{to:e.url,children:(0,ms.jsx)(Bs.or,{trait:e})},e.name)})]})]})]})}),(0,ms.jsx)(_c.s,{type:"SUCCESS",setShow:g,show:m,seconds:5,message:"Refreshing NFT's metadata. It may take a few minutes for our records to update."}),(0,ms.jsx)(nc.m_,{id:"".concat(null===h||void 0===h?void 0:h.id,"-refresh-tooltip"),style:{backdropFilter:"blur(100px)",backgroundColor:"#33333380",zIndex:999},isOpen:v,children:(0,ms.jsx)("p",{className:"text-sm font-normal leading-none text-white",children:"Something look off? Refresh NFT"})}),(0,ms.jsx)(nc.m_,{id:"".concat(null===h||void 0===h?void 0:h.id,"-external-tooltip"),style:{backdropFilter:"blur(100px)",backgroundColor:"#33333380",zIndex:999},isOpen:A,children:(0,ms.jsx)("p",{className:"text-sm font-normal leading-none text-white",children:"View NFT on ".concat(null===h||void 0===h?void 0:h.contractName)})})]}),(0,ms.jsx)(Bs.tY,{isOpen:b,linkURL:null!==(u=null===h||void 0===h||null===(d=h.nftView)||void 0===d||null===(p=d.externalURL)||void 0===p?void 0:p.url)&&void 0!==u?u:"",onCloseModal:()=>w(!1)})]})},Sy=[{description:"View all collections on Flowty.",href:"/marketplace",title:"Marketplace"},{description:"View live platform activity.",href:"/activity",title:"Activity"},{description:"Learn everything there is to know about Flowty's platform.",href:"https://docs.flowty.io/reference/",title:"Flowty FAQ"}],ky=()=>((0,sa.useEffect)((()=>{ds.o.track("404 page visited",{url:window.location.href})}),[]),(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: This page does not exist",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("div",{className:"bg-darkBg",children:(0,ms.jsx)("main",{className:"max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8",children:(0,ms.jsxs)("div",{className:"max-w-xl mx-auto py-16 sm:py-24",children:[(0,ms.jsxs)("div",{className:"text-center",children:[(0,ms.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wide welcome",children:"404 error"}),(0,ms.jsx)("h1",{className:"mt-2 text-4xl font-extrabold text-gray-200 tracking-tight sm:text-5xl",children:"This page does not exist."}),(0,ms.jsx)("p",{className:"mt-2 text-lg text-gray-400",children:"The page you are looking for could not be found."})]}),(0,ms.jsxs)("div",{className:"mt-12",children:[(0,ms.jsx)("h2",{className:"text-sm font-semibold text-gray-300 tracking-wide uppercase",children:"Popular pages"}),(0,ms.jsx)("ul",{className:"mt-4 border-t border-b border-gray-200 divide-y divide-gray-200",children:Sy.map((e=>(0,ms.jsxs)("li",{className:"relative py-6 flex items-start space-x-4",children:[(0,ms.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ms.jsx)("h3",{className:"text-base font-medium text-gray-400",children:(0,ms.jsx)("span",{className:"rounded-sm focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-primary",children:(0,ms.jsxs)("a",{href:e.href,className:"focus:outline-none hover:text-primary",children:[(0,ms.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),e.title]})})}),(0,ms.jsx)("p",{className:"text-base text-gray-300",children:e.description})]}),(0,ms.jsx)("div",{className:"flex-shrink-0 self-center",children:(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,ms.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]},e.title)))}),(0,ms.jsx)("div",{className:"mt-8",children:(0,ms.jsxs)("a",{href:"/",className:"text-base font-medium welcome hover:text-green-600",children:["Or visit the Flowty landing page",(0,ms.jsx)("span",{"aria-hidden":"true",children:" \u2192"})]})})]})]})})})]})),Py=()=>(0,ms.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[rgba(116,118,117,0.8)] h-[400px] w-full rounded-md shadow-customCollectionPage border border-[#6C757D] mt-[1rem] lg:mt-[3rem]"}),(0,ms.jsxs)("div",{className:"w-full flex gap-2 max-w-[240px] pt-10",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-4/5 h-[40px] rounded-md"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-4/5 h-[40px] rounded-md"})]}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-full h-[37px] rounded-md pb-2 my-[0.5rem]"}),(0,ms.jsxs)("div",{className:"flex flex-col gap-5 md:flex-row",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] md:w-[350px] w-full h-[270px] rounded-md pb-2"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-full h-[270px] rounded-md pb-2"})]})]});const Dy=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))}));const Fy=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));var Ny=__webpack_require__(14716);const Iy=e=>{let{name:t,value:n,disabled:r,onChange:i,isChecked:o,icon:a,iconPosition:s,collapsible:l,label:c,children:u,isOpen:d,setIsOpen:p}=e;const h=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"single-listing-type-chevron",className:(0,Ny.cn)("w-[0.875rem] h-[0.5rem]",{"rotate-0":!d,"rotate-180":d}),viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:d?"#04e5a3":"#F8F9FA"})})),[d]);return(0,ms.jsxs)("button",{className:"py-[0.75rem] w-full font-montserrat border-[1px] border-neutral-400 border-opacity-25 text-[0.875rem] font-[600] px-[1rem] rounded-[0.375rem] text-white bg-[#ffffff0a] hover:bg-[#ffffff1f] flex flex-col items-center justify-between gap-[0.375rem] shadow-[0_2px_4px_0px_rgba(0,0,0,0.1)]",children:[(0,ms.jsxs)("div",{className:"flex w-full items-center",onClick:e=>{e.stopPropagation(),p&&p(!d)},children:[(0,ms.jsx)("div",{onClick:()=>{var e;return null===(e=document.getElementById("".concat(n,"-listing-type-radio")))||void 0===e?void 0:e.click()},onKeyDown:()=>{var e;return null===(e=document.getElementById("".concat(n,"-listing-type-radio")))||void 0===e?void 0:e.click()},className:"flex items-center w-[70%] justify-between cursor-pointer",children:(0,ms.jsxs)("div",{className:"flex items-center w-full",children:[(0,ms.jsx)("input",{id:"".concat(n,"-listing-type-radio"),"data-testid":"".concat(n,"-listing-type-radio"),type:"radio",name:t,value:n,disabled:r,checked:o,onChange:e=>{i(e.target.value)},className:"hidden h-5 w-5 text-primary focus:outline-none focus:ring-0 focus:ring-offset-0 cursor-pointer"}),(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full border-2 border-white relative ".concat(o?"bg-primary border-none flex items-center justify-center":"bg-transparent!"),children:(0,ms.jsx)("div",{className:"rounded-full p-[0.27rem] ".concat(o?"bg-[#031021]":"bg-transparent")})}),"left"===s&&a,(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat",children:c}),"right"===s&&a]})]})}),(0,ms.jsx)("div",{className:"ml-auto",children:l&&h})]}),d&&u]})},Ry=e=>{let{storefrontForm:t,rentalForm:n,loanForm:r,setEventType:i}=e;const[o,a]=(0,sa.useState)("all"),[s,l]=(0,sa.useState)({loan:!1,rent:!1,storefront:!1}),c=e=>{i(e),l({loan:!1,rent:!1,storefront:!1,[e]:!0}),a(e)};return(0,ms.jsxs)("div",{className:"space-y-2",children:[(0,ms.jsx)(Iy,{name:"listing-type",value:"all",label:"Show All",disabled:!1,onChange:c,isChecked:"all"===o,icon:void 0,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(Iy,{name:"listing-type",value:"storefront",label:"Buy Now",disabled:!1,onChange:c,isChecked:"storefront"===o,icon:void 0,iconPosition:"right",collapsible:!0,isOpen:s.storefront,setIsOpen:e=>l({...s,storefront:e}),children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:t})}),(0,ms.jsx)(Iy,{name:"listing-type",value:"rent",label:"Rentals",disabled:!1,onChange:c,isChecked:"rent"===o,icon:void 0,iconPosition:"right",collapsible:!0,isOpen:s.rent,setIsOpen:e=>l({...s,rent:e}),children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:n})}),(0,ms.jsx)(Iy,{name:"listing-type",value:"loan",label:"Loans",disabled:!1,onChange:c,isChecked:"loan"===o,icon:void 0,iconPosition:"right",collapsible:!0,isOpen:s.loan,setIsOpen:e=>l({...s,loan:e}),children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:r})})]})},Oy=e=>{let{storefrontForm:t,rentalForm:n,loanForm:r,setEventType:i}=e;return(0,ms.jsxs)("div",{className:"w-max h-fit flex flex-col gap-3 px-2 py-6 eventTypeCard min-w-[344px]",children:[(0,ms.jsx)("div",{className:"flex items-center justify-between w-full px-[1rem]",children:(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.432 9.39523L9.39409 18.433C8.91944 18.9078 8.14511 18.9078 7.67038 18.433L1.56698 12.3296C1.09226 11.855 1.09226 11.0807 1.56698 10.6059L10.6048 1.568C10.8485 1.32429 11.1478 1.20405 11.4925 1.21124L16.4403 1.31577C17.03 1.32816 17.5574 1.56023 17.9985 2.00148C18.4398 2.44273 18.6718 2.97003 18.6842 3.55972L18.7887 8.50753C18.796 8.85222 18.6757 9.15152 18.432 9.39523ZM15.1291 4.87097C14.5496 4.29148 13.61 4.29148 13.0305 4.87097C12.451 5.45046 12.451 6.38999 13.0305 6.96945C13.61 7.54894 14.5496 7.54894 15.1292 6.96945C15.7087 6.38999 15.7087 5.45046 15.1291 4.87097Z",fill:"white",fillOpacity:"0.8"})}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Event Type"})]})}),(0,ms.jsx)("div",{className:"space-y-2 mt-3 overflow-y-auto styled-scroll px-[1rem]",children:(0,ms.jsx)(Ry,{loanForm:r,rentalForm:n,storefrontForm:t,setEventType:i})})]})},jy=e=>{let{values:t,setEventType:n}=e;const r=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");return(0,ms.jsx)(Oy,{setEventType:n,storefrontForm:(0,ms.jsx)("div",{className:"pl-4 flex flex-col gap-4",children:Object.keys(t.storefrontFilters).map((e=>(0,ms.jsx)(Bs.VR,{name:"storefrontFilters.".concat(e),id:"storefrontFilters.".concat(e),label:r(e),className:"text-[14px] font-[700] capitalize"},e)))}),rentalForm:(0,ms.jsx)("div",{className:"pl-4 flex flex-col gap-4",children:Object.keys(t.rentalFilters).map((e=>(0,ms.jsx)(Bs.VR,{name:"rentalFilters.".concat(e),id:"rentalFilters.".concat(e),label:r(e),className:"text-[14px] font-[700] capitalize"},e)))}),loanForm:(0,ms.jsx)("div",{className:"pl-4 flex flex-col gap-4",children:Object.keys(t.loanFilters).map((e=>(0,ms.jsx)(Bs.VR,{name:"loanFilters.".concat(e),id:"loanFilters.".concat(e),label:r(e),className:"text-[14px] font-[700] capitalize"},e)))})})};var My=__webpack_require__(40485);const Ly=e=>{let{openSearchNFT:t,values:n,page:r,setPage:i}=e;const[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)(!0),[c,u]=(0,sa.useState)(!1),[d,p]=(0,sa.useState)(0),h=20*r,f=xl({isLoading:c,onInfiniteScroll(){c||s||i(r+1)}},[d]),m=(e=>!e.storefront||e.loan||e.rent?!e.loan||e.storefront||e.rent?!e.rent||e.storefront||e.loan?"ALL":"RENTAL":"LOAN":"STOREFRONT")(n);return(0,sa.useEffect)((()=>{if(1===r&&l(!0),r>1&&u(!0),"ALL"===m){var e,i;const n=(e=>{let{limit:t=45,cb:n,nftId:r,nftType:i}=e;const o=(0,My.rJ)(pl.db,"events");let a=(0,My.P)(o),s=(0,My.P)(o);s=(0,My.P)(s,(0,My.or)((0,My.Uo)((0,My._M)("data.nftType","==",i),(0,My._M)("data.nftID","==",r)),(0,My.Uo)((0,My._M)("data.typeAndIDOffer.nftType","==",i),(0,My._M)("data.typeAndIDOffer.nftID","==",r)))),a=(0,My.P)(a,(0,My.or)((0,My.Uo)((0,My._M)("data.nftType","==",i),(0,My._M)("data.nftID","==",r)),(0,My.Uo)((0,My._M)("data.typeAndIDOffer.nftType","==",i),(0,My._M)("data.typeAndIDOffer.nftID","==",r)))),s=(0,My.P)(s,(0,My.My)("blockTimestamp","desc")),s=(0,My.P)(s,(0,My.AB)(t));const l=(0,My.GG)(a).then((e=>e.size));return(0,My.aQ)(s,(e=>{const t=e.docs.map((e=>({id:e.id,...e.data()})));t&&l.then((e=>{n({data:t,totalCount:e})}))}))})({cb:e=>{let{data:t,totalCount:n}=e;p(n),a(t),1===r?l(!1):u(!1)},limit:h,nftId:null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:"",nftType:null!==(i=null===t||void 0===t?void 0:t.type)&&void 0!==i?i:""});return()=>n()}if("STOREFRONT"===m){var o,s;const e=(e=>{const t=new Set;return t.add(us.IEventType.StorefrontListed),t.add(us.IEventType.StorefrontPurchased),t.add(us.IEventType.StorefrontOfferCreated),t.add(us.IEventType.StorefrontOfferCancelled),t.add(us.IEventType.StorefrontOfferAccepted),e.purchased||t.delete(us.IEventType.StorefrontPurchased),e.listed||t.delete(us.IEventType.StorefrontListed),e.offerCreated||t.delete(us.IEventType.StorefrontOfferCreated),e.offerCancelled||t.delete(us.IEventType.StorefrontOfferCancelled),e.offerAccepted||t.delete(us.IEventType.StorefrontOfferAccepted),Array.from(t)})(n.storefrontFilters),i=(e=>{let{limit:t=25,cb:n,nftId:r,nftType:i,filterBy:o}=e;const a=(0,My.rJ)(pl.db,"storefrontEvents");let s=(0,My.P)(a),l=(0,My.P)(a);l=(0,My.P)(l,(0,My.or)((0,My.Uo)((0,My._M)("data.nftType","==",i),(0,My._M)("data.nftID","==",r)),(0,My.Uo)((0,My._M)("data.typeAndIDOffer.nftType","==",i),(0,My._M)("data.typeAndIDOffer.nftID","==",r)))),s=(0,My.P)(s,(0,My.or)((0,My.Uo)((0,My._M)("data.nftType","==",i),(0,My._M)("data.nftID","==",r)),(0,My.Uo)((0,My._M)("data.typeAndIDOffer.nftType","==",i),(0,My._M)("data.typeAndIDOffer.nftID","==",r)))),o.length>0?(l=(0,My.P)(l,(0,My._M)("type","in",o)),s=(0,My.P)(s,(0,My._M)("type","in",o))):(l=(0,My.P)(l,(0,My._M)("type","==","null")),s=(0,My.P)(s,(0,My._M)("type","==","null"))),l=(0,My.P)(l,(0,My.My)("blockTimestamp","desc")),l=(0,My.P)(l,(0,My.AB)(t));const c=(0,My.GG)(s).then((e=>e.size));return(0,My.aQ)(l,(e=>{const t=e.docs.map((e=>({id:e.id,...e.data()})));t&&c.then((e=>{n({data:t,totalCount:e})}))}))})({cb:e=>{let{data:t,totalCount:n}=e;p(n),a(t),1===r?l(!1):u(!1)},filterBy:e,limit:h,nftId:null!==(o=null===t||void 0===t?void 0:t.id)&&void 0!==o?o:"",nftType:null!==(s=null===t||void 0===t?void 0:t.type)&&void 0!==s?s:""});return()=>i()}if("RENTAL"===m){var c,d;const e=(e=>{const t=new Set;return t.add(us.IEventType.RentalListed),t.add(us.IEventType.RentalRented),t.add(us.IEventType.RentalReturned),t.add(us.IEventType.RentalSettled),e.listed||t.delete(us.IEventType.RentalListed),e.returned||t.delete(us.IEventType.RentalReturned),e.unreturned||t.delete(us.IEventType.RentalSettled),e.rented||t.delete(us.IEventType.RentalRented),Array.from(t)})(n.rentalFilters),i=(e=>{let{limit:t=25,cb:n,nftId:r,nftType:i,filterBy:o}=e;const a=(0,My.rJ)(pl.db,"rentalEvents");let s=(0,My.P)(a),l=(0,My.P)(a);l=(0,My.P)(l,(0,My.Uo)((0,My.Uo)((0,My._M)("data.nftType","==",i)),(0,My.Uo)((0,My._M)("data.nftID","==",r)))),s=(0,My.P)(s,(0,My.Uo)((0,My.Uo)((0,My._M)("data.nftType","==",i)),(0,My.Uo)((0,My._M)("data.nftID","==",r)))),o.length>0?(l=(0,My.P)(l,(0,My._M)("type","in",o)),s=(0,My.P)(s,(0,My._M)("type","in",o))):(l=(0,My.P)(l,(0,My._M)("type","==","null")),s=(0,My.P)(s,(0,My._M)("type","==","null"))),l=(0,My.P)(l,(0,My.My)("blockTimestamp","desc")),l=(0,My.P)(l,(0,My.AB)(t));const c=(0,My.GG)(s).then((e=>e.size));return(0,My.aQ)(l,(e=>{const t=e.docs.map((e=>({id:e.id,...e.data()})));t&&c.then((e=>{n({data:t,totalCount:e})}))}))})({cb:e=>{let{data:t,totalCount:n}=e;p(n),a(t),1===r?l(!1):u(!1)},filterBy:e,limit:h,nftId:null!==(c=null===t||void 0===t?void 0:t.id)&&void 0!==c?c:"",nftType:null!==(d=null===t||void 0===t?void 0:t.type)&&void 0!==d?d:""});return()=>i()}if("LOAN"===m){var f,g;const e=(e=>{const t=new Set;return t.add(us.IEventType.Listed),t.add(us.IEventType.Funded),t.add(us.IEventType.Repaid),t.add(us.IEventType.Settled),e.listed||t.delete(us.IEventType.Listed),e.funded||t.delete(us.IEventType.Funded),e.repaid||t.delete(us.IEventType.Repaid),e.defaulted||t.delete(us.IEventType.Settled),Array.from(t)})(n.loanFilters),i=(e=>{let{limit:t=25,cb:n,nftId:r,nftType:i,filterBy:o}=e;const a=(0,My.rJ)(pl.db,"p2pEvents");let s=(0,My.P)(a),l=(0,My.P)(a);l=(0,My.P)(l,(0,My.Uo)((0,My.Uo)((0,My._M)("data.nftType","==",i)),(0,My.Uo)((0,My._M)("data.nftID","==",r)))),s=(0,My.P)(s,(0,My.Uo)((0,My.Uo)((0,My._M)("data.nftType","==",i)),(0,My.Uo)((0,My._M)("data.nftID","==",r)))),o.length>0?(l=(0,My.P)(l,(0,My._M)("type","in",o)),s=(0,My.P)(s,(0,My._M)("type","in",o))):(l=(0,My.P)(l,(0,My._M)("type","==","null")),s=(0,My.P)(s,(0,My._M)("type","==","null"))),l=(0,My.P)(l,(0,My.My)("blockTimestamp","desc")),l=(0,My.P)(l,(0,My.AB)(t));const c=(0,My.GG)(s).then((e=>e.size));return(0,My.aQ)(l,(e=>{const t=e.docs.map((e=>({id:e.id,...e.data()})));t&&c.then((e=>{n({data:t,totalCount:e})}))}))})({cb:e=>{let{data:t,totalCount:n}=e;p(n),a(t),1===r?l(!1):u(!1)},filterBy:e,limit:h,nftId:null!==(f=null===t||void 0===t?void 0:t.id)&&void 0!==f?f:"",nftType:null!==(g=null===t||void 0===t?void 0:t.type)&&void 0!==g?g:""});return()=>i()}a([]),l(!1),u(!1)}),[r,n]),{bottomOfPageRef:f,finalLength:d<=o.length,historyData:o,initialLoading:s,loading:c}},By=e=>{let{address:t}=e;return(0,ms.jsx)("a",{onClick:e=>e.stopPropagation(),href:"/user/".concat(t),target:"_blank",rel:"noreferrer",className:"text-[#04E5A3] font-bold",children:t})},Uy=e=>{let{borrower:t,amount:n,paymentTokenType:r,interestRate:i,term:o}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsx)("p",{className:"text-start",children:"Listing for"}),(0,ms.jsx)(Bs.GM,{price:n+i,token:r}),(0,ms.jsxs)("p",{className:"text-start",children:["with a duration of"," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:Sl(o)})," ","by ",(0,ms.jsx)(By,{address:t})]})]})};var Vy=__webpack_require__(98081);const Hy=e=>{let{lender:t}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Loan funded"})," by"," ",(0,ms.jsx)(By,{address:t})," "]})})},zy=e=>{let{borrower:t,repaymentAmount:n,tokenIdentifier:r}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Loan"})," of",""]}),(0,ms.jsx)(Bs.GM,{price:n,token:r}),(0,ms.jsxs)("p",{className:"text-start",children:["repaid by ",(0,ms.jsx)(By,{address:t})]})]})},Wy=e=>{let{listedBy:t}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Delisted"})," by"," ",(0,ms.jsx)(By,{address:t})]})})},qy=e=>{let{borrower:t,repaymentAmount:n,tokenIdentifier:r}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Loan"})," of",""]}),(0,ms.jsx)(Bs.GM,{price:n,token:r}),(0,ms.jsxs)("p",{className:"text-start",children:["was not repaid on time by ",(0,ms.jsx)(By,{address:t})]})]})},Gy=e=>{let{loan:t}=e;const n=(0,sa.useMemo)((()=>{switch(t.type){case"LISTED":return(0,ms.jsx)(Uy,{borrower:t.data.flowtyStorefrontAddress,amount:t.data.amount,paymentTokenType:Vy.IdentifierToPaymentToken[t.data.paymentTokenType],interestRate:t.data.interestRate,term:t.data.term});case"FUNDED":return(0,ms.jsx)(Hy,{lender:t.data.lender});case"REPAID":return(0,ms.jsx)(zy,{borrower:t.data.borrower,repaymentAmount:t.data.repaymentAmount,tokenIdentifier:t.paymentTokenName});case"DELISTED":return(0,ms.jsx)(Wy,{listedBy:t.data.flowtyStorefrontAddress});case"SETTLED":return(0,ms.jsx)(qy,{borrower:t.data.borrower,repaymentAmount:t.data.repaymentAmount,tokenIdentifier:t.paymentTokenName})}}),[t]);return(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-6",children:[(0,ms.jsx)(vy,{symbol:"LOAN"}),n]})},Yy=e=>{let{flowtyStorefrontAddress:t,amount:n,deposit:r,paymentTokenType:i,term:o}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 flex-wrap text-[14px]",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Listed"})," for a"," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"rental fee"})," of"]}),(0,ms.jsx)(Bs.GM,{price:n,token:i}),(0,ms.jsxs)("p",{className:"text-start",children:["with a ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"deposit"})," of"," "]}),(0,ms.jsx)(Bs.GM,{price:r,token:i}),(0,ms.jsxs)("p",{className:"text-start",children:["and duration of"," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:Sl(o)})]}),(0,ms.jsxs)("p",{className:"text-start",children:["by ",(0,ms.jsx)(By,{address:t})," "]})]})},Ky=e=>{let{renterAddress:t,owner:n}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)(By,{address:t})," rented NFT from"," ",(0,ms.jsx)(By,{address:n})]})})},Qy=e=>{let{lender:t,renter:n}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)(By,{address:n})," did not return NFT and the"," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"refundable deposit"})," was sent to ",(0,ms.jsx)(By,{address:t})]})})},Xy=e=>{let{renterAddress:t}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)(By,{address:t})," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"returned NFT"})]})})},Zy=e=>{let{flowtyStorefrontAddress:t}=e;return(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Delisted"})," by"," ",(0,ms.jsx)(By,{address:t})]})})},Jy=e=>{let{rent:t}=e;const n=(0,sa.useMemo)((()=>{switch(t.type){case"RENTAL_LISTED":return(0,ms.jsx)(Yy,{flowtyStorefrontAddress:t.data.flowtyStorefrontAddress,deposit:t.data.deposit,amount:t.data.amount,term:t.data.term,paymentTokenType:Vy.IdentifierToPaymentToken[t.data.paymentTokenType]});case"RENTAL_DESTROYED":return(0,ms.jsx)(Zy,{flowtyStorefrontAddress:t.data.flowtyStorefrontAddress});case"RENTAL_RENTED":return(0,ms.jsx)(Ky,{renterAddress:t.data.renterAddress,owner:t.data.flowtyStorefrontAddress});case"RENTAL_SETTLED":return(0,ms.jsx)(Qy,{lender:t.data.lender,renter:t.data.renter});case"RENTAL_RETURNED":return(0,ms.jsx)(Xy,{renterAddress:t.data.renterAddress})}}),[t]);return(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-6",children:[(0,ms.jsx)(vy,{symbol:"RENT"}),n]})},$y=e=>{let{storefrontAddress:t,offerAmount:n,tokenIdentifier:r,taker:i}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap items-center",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Offer"})," for"," ",(0,ms.jsx)(Bs.GM,{price:n,token:r}),(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"from"})," ",(0,ms.jsx)(By,{address:t})," was"," ",(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"accepted by"})," ",(0,ms.jsx)(By,{address:i})]})]})},eb=e=>{let{offerAddress:t,offeredAmount:n,paymentTokenType:r}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Offer"})," for"]}),(0,ms.jsx)(Bs.GM,{price:n,token:r}),(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"cancelled"})," by"," ",(0,ms.jsx)(By,{address:t})," "]})]})},tb=e=>{let{storefrontAddress:t,offeredAmount:n,tokenIdentifier:r}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Offer created"})," by"," ",(0,ms.jsx)(By,{address:t})," for"," "]}),(0,ms.jsx)(Bs.GM,{price:n,token:r})]})},nb=()=>(0,ms.jsx)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:(0,ms.jsx)("p",{className:"text-start",children:(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Delisted"})})}),rb=e=>{let{storefrontAddress:t,salePrice:n,tokenIdentifier:r}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Listed"})," by"," ",(0,ms.jsx)(By,{address:t})," for"," "]}),(0,ms.jsx)(Bs.GM,{price:n,token:r})]})},ib=e=>{let{storefrontAddress:t,buyer:n,salePrice:r,tokenIdentifier:i}=e;return(0,ms.jsxs)("div",{className:"flex gap-1 text-[14px] flex-wrap",children:[(0,ms.jsxs)("p",{className:"text-start",children:[(0,ms.jsx)("span",{className:"font-bold text-[14px]",children:"Purchased"})," by"," ",(0,ms.jsx)(By,{address:n})," from"," ",(0,ms.jsx)(By,{address:t})," for"," "]}),(0,ms.jsx)(Bs.GM,{price:r,token:i})]})},ob=e=>{var t;let{storefront:n}=e;const r=null!==(t=n.data.salePaymentVaultType)&&void 0!==t?t:"",i=(0,sa.useMemo)((()=>{var e,t,i,o,a,s,l,c,u,d,p,h,f,m;switch(n.type){case"STOREFRONT_LISTED":return(0,ms.jsx)(rb,{storefrontAddress:n.data.storefrontAddress,salePrice:n.data.salePrice,tokenIdentifier:Vy.IdentifierToPaymentToken[r]});case"STOREFRONT_DELISTED":return(0,ms.jsx)(nb,{});case"STOREFRONT_PURCHASED":return(0,ms.jsx)(ib,{storefrontAddress:n.data.storefrontAddress,buyer:null!==(e=null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.buyer)&&void 0!==e?e:"",salePrice:n.data.salePrice,tokenIdentifier:Vy.IdentifierToPaymentToken[r]});case"STOREFRONT_OFFER_CREATED":const g=null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.paymentTokenName;return(0,ms.jsx)(tb,{storefrontAddress:n.data.storefrontAddress,offeredAmount:null!==(o=null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.offeredAmount)&&void 0!==o?o:0,tokenIdentifier:g});case"STOREFRONT_OFFER_ACCEPTED":return(0,ms.jsx)($y,{taker:"object"===typeof(null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.taker)?"-":null!==(l=null===n||void 0===n||null===(c=n.data)||void 0===c?void 0:c.taker)&&void 0!==l?l:"-",storefrontAddress:n.data.storefrontAddress,offerAmount:null!==(u=null===n||void 0===n||null===(d=n.data)||void 0===d?void 0:d.offeredAmount)&&void 0!==u?u:0,tokenIdentifier:null===n||void 0===n||null===(p=n.data)||void 0===p?void 0:p.paymentTokenName});case"STOREFRONT_OFFER_CANCELLED":return(0,ms.jsx)(eb,{offeredAmount:null!==(h=null===n||void 0===n||null===(f=n.data)||void 0===f?void 0:f.offeredAmount)&&void 0!==h?h:0,offerAddress:n.data.flowtyStorefrontAddress,paymentTokenType:null===n||void 0===n||null===(m=n.data)||void 0===m?void 0:m.paymentTokenName});default:return null}}),[n]);return(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-6",children:[(0,ms.jsx)(vy,{symbol:"BUY NOW"}),i]})},ab=e=>{let{historyRow:t}=e;const n=(0,sa.useMemo)((()=>null!==t&&void 0!==t&&t.type.includes("STOREFRONT")?"STOREFRONT":null!==t&&void 0!==t&&t.type.includes("RENT")?"RENT":"LOAN"),[t]),r="mainnet"===Tf.su.config.network?us.FLOW_SCAN_TX_MAINNET_URL:us.FLOW_SCAN_TX_TESTNET_URL,i="".concat(r,"/").concat(t.transactionId),o=(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm");return(0,ms.jsxs)("button",{onClick:()=>{window.open(i,"_blank")},className:"w-full flex flex-col md:flex-row gap-2 md:gap-6 justify-between collectionCard p-6",children:["STOREFRONT"===n&&(0,ms.jsx)(ob,{storefront:t}),"RENT"===n&&(0,ms.jsx)(Jy,{rent:t}),"LOAN"===n&&(0,ms.jsx)(Gy,{loan:t}),(0,ms.jsx)("p",{className:"font-semibold text-[12px] md:text-[16px] md:font-bold text-[#898989] md:text-white whitespace-nowrap",children:o})]})};var sb;function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lb.apply(null,arguments)}function cb(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",lb({width:82,height:105,viewBox:"0 0 82 105",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-24 w-24",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,sb||(sb=sa.createElement("path",{d:"M76.5 22.5L81.5 0H44C30.8 2.4 23.5 15.3333 21.5 21.5L0 105H26L35.5 67H53.5L58.5 43.5H41.5C46 27.5 47.5 22.5 50.5 22.5H76.5Z",className:"fill-[#b3bbbe]"})))}const ub=sa.forwardRef(cb),db=(__webpack_require__.p,e=>{let{values:t,openSearchNFT:n,page:r,setPage:i}=e;const{historyData:o,initialLoading:a,loading:s,finalLength:l,bottomOfPageRef:c}=Ly({openSearchNFT:n,page:r,setPage:i,values:t});return(0,ms.jsx)("div",{style:{height:"calc(100vh - 800px)"},className:"w-full flex flex-col gap-3 pr-1 overflow-scroll min-h-[600px]",children:a?(0,ms.jsx)("div",{className:"w-full flex flex-col gap-3",children:Array.from({length:5}).map(((e,t)=>(0,ms.jsx)("div",{className:"rounded flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait w-full h-[72px]"},t)))}):(0,ms.jsxs)(ms.Fragment,{children:[0===o.length&&(0,ms.jsxs)("div",{className:"w-full h-full flex items-center pt-[1.5rem] flex-col animate-pulse gap-3",children:[(0,ms.jsxs)("div",{className:"relative mr-5",children:[(0,ms.jsx)(ub,{}),(0,ms.jsxs)("div",{className:"flex space-x-2 left-11 bottom-0 absolute",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"})]})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("p",{className:"text-white text-montserrat text-[0.875rem] leading-normal font-bold",children:"No History Found"}),(0,ms.jsx)("p",{className:"text-white text-montserrat text-[0.875rem] font-normal leading-normal",children:"Try applying filters"})]})]}),o.map((e=>e.type.includes("DELISTED")||e.type.includes("DESTROYED")?null:(0,ms.jsx)(ab,{historyRow:e},e.id))),s||l?(0,ms.jsx)(ms.Fragment,{children:s&&(0,ms.jsx)("div",{className:"w-full flex justify-center items-center py-4",children:(0,ms.jsx)(bc.BM,{secondaryColor:"#4f4f4f",color:"#B3BBBE",height:40,width:40})})}):(0,ms.jsxs)("div",{className:"w-full h-full",children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{className:"w-full h-[2px]",ref:c})]})]})})}),pb={all:!0,storefront:!1,loan:!1,rent:!1,loanFilters:{funded:!0,repaid:!0,defaulted:!0,listed:!0},rentalFilters:{rented:!0,returned:!0,unreturned:!0,listed:!0},storefrontFilters:{purchased:!0,listed:!0,offerAccepted:!0,offerCancelled:!0,offerCreated:!0}},hb=e=>{let{openSearchNFT:t}=e;const{renderMobile:n}=(0,ws.h)(),[r,i]=(0,sa.useState)(!n),[o,a]=(0,sa.useState)(1),s=e=>{a(e)};return(0,ms.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,ms.jsxs)("button",{onClick:()=>i((e=>!e)),className:"w-max max-md:w-full flex items-center justify-center py-1 collectionCard !rounded-md md:min-w-[344px]",children:[r?(0,ms.jsx)(Dy,{height:20,width:20}):(0,ms.jsx)(Fy,{height:20,width:20})," ","Filters"," "]}),(0,ms.jsx)("div",{className:"w-full flex gap-4",children:(0,ms.jsx)(gl.l1,{initialValues:pb,onSubmit:()=>{},validate:()=>({}),children:e=>{let{values:a,setFieldValue:l}=e;return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:r?"flex":"hidden",children:(0,ms.jsx)(jy,{values:a,setEventType:e=>{l("all",!1),l("storefront",!1),l("loan",!1),l("rent",!1),l(e,!0),s(1),n&&i(!1)}})}),n&&r?null:(0,ms.jsx)(db,{openSearchNFT:t,values:a,page:o,setPage:s})]})}})})]})};var fb=__webpack_require__(36597);const mb=()=>{const[e,t]=(0,sa.useState)({loan:[],rental:[],storefront:[]}),[n,r]=(0,sa.useState)(!1),[i,o]=(0,sa.useState)(null),[a,s]=(0,sa.useState)(null),l=e=>(e.listingKind,e);return{cleanItemOrder:()=>{t({loan:[],rental:[],storefront:[]}),o(null),s(null)},fetchFlowNFT:async(e,t)=>{try{const n=await(0,nl.t)({nftId:e,nftType:t});s(n)}catch(n){(0,fs._)("Failed to fetch Flow NFT type.",n)}},flowNFT:a,getItem:async(n,i,a,s)=>{r(!0);try{var c;const r=await Tf.su.api.getItem({contractAddress:n,contractName:i,nftID:a,resourceName:s});o(r);const u=null===(c=r.orders)||void 0===c?void 0:c.reduce(((e,t)=>{var n;const r={...e},i=null!==(n=r[t.listingKind])&&void 0!==n&&n.length?[...r[t.listingKind]]:[];return r[t.listingKind]=[...i,l(t)],r}),e);t(u||{loan:[],rental:[],storefront:[]})}catch(u){(0,fs._)("Failed to fetch asset orders.",u)}finally{r(!1)}},getLoanOrder:async e=>{r(!0);try{const t=await(async e=>{const t=pl.kA.collection("fundingAvailable").where("listingResourceID","==",e);return(await t.get()).docs.map((e=>e.data()))[0].fundingResourceID})(e);return t}catch(t){(0,fs._)("Failed to fetch loan order.",t)}finally{r(!1)}},isOrderLoading:n,orders:e,selectedNft:i}};var gb=__webpack_require__(67625);const vb={isViewOnly:!1,selectCard:async()=>{}},yb=(0,sa.createContext)(vb),bb=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i;let{authStore:o,children:a}=e;const[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(null),[d,p]=(0,sa.useState)(null),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(void 0),[v,y]=(0,sa.useState)(null),[b,w]=(0,sa.useState)(!1),[x,C]=(0,sa.useState)(void 0),[A,E]=(0,sa.useState)(null),[_,T]=(0,sa.useState)(null),[S,k]=(0,sa.useState)(!1),[P,D]=(0,sa.useState)({catalogIdentifier:"",ticketID:""}),{cleanItemOrder:F,fetchFlowNFT:N,flowNFT:I,getItem:R,getLoanOrder:O,isOrderLoading:j,orders:M,selectedNft:L}=mb(),{cleanValuation:B,getValuation:U,isLoadingValuation:V,valuation:H}=(()=>{const[e,t]=(0,sa.useState)(null),[n,r]=(0,sa.useState)(!1);return{cleanValuation:()=>{t(null)},getValuation:async e=>{r(!0);try{const n=await cs().post("".concat(ss.Sw,"/nft/valuation"),e);t(n.data)}catch(n){(0,fs._)("Failed to fetch asset orders.",n)}finally{r(!1)}},isLoadingValuation:n,valuation:e}})(),{addressesWithCollectionPublic:z,checkHasProvider:W,getNftProviderPathIdentifier:q,getPublicAddresses:G}=(()=>{const{hybridCustodyNFTStatus:e,iterateAndRunScript:t}=(0,bs.g)(),[n,r]=(0,sa.useState)([]);return{addressesWithCollectionPublic:n,checkHasProvider:(t,n)=>{var r;const i=null!==(r=null===n||void 0===n?void 0:n.owner)&&void 0!==r?r:"";return((e,t,n)=>{var r;return e?(null===e||void 0===e?void 0:e.owner)===t||(void 0===n?null:(null===n||void 0===n||null===(r=n[null===e||void 0===e?void 0:e.contractAddress.concat(".").concat(null===e||void 0===e?void 0:e.contractName)])||void 0===r?void 0:r.length)>0):null})(n,t,e[i])},getNftProviderPathIdentifier:(t,n,r)=>{var i;return t!==(null===n||void 0===n?void 0:n.owner)?(0,gb.D)((null===e||void 0===e||null===(i=e[(null===n||void 0===n?void 0:n.owner)||""])||void 0===i?void 0:i[r])||[],null===n||void 0===n?void 0:n.contractAddress,null===n||void 0===n?void 0:n.contractName):""},getPublicAddresses:async(e,n,i,o,a,s)=>{try{t([e],n||{},i);const l=await Tf.su.scripts.getAddressesWithCollectionPublic(Object.keys(o)||[],a,s);r(l)}catch(l){(0,fs._)("Failed to fetch hybrid custody",l)}}}})(),[Y,K]=(0,sa.useState)(null),{collectionAddress:Q,collectionName:X}=(null===L||void 0===L?void 0:L.card)||{collectionAddress:"",collectionName:""},Z=(e=>{let{collectionAddress:t,collectionName:n}=e;const[r,i]=(0,sa.useState)({});return(0,sa.useEffect)((()=>{const e=localStorage.getItem("collectionImages"),r=e?JSON.parse(e):{},o=(new Date).getTime(),a=r[n];a&&a.expiry>o?i((e=>({...e,[n]:a.url}))):t&&n&&il({collectionAddress:t,collectionName:n}).then((e=>{const t={expiry:o+12096e5,url:e};i((t=>({...t,[n]:e}))),e.includes("new_fallback_image")||localStorage.setItem("collectionImages",JSON.stringify({...r,[n]:t}))}))}),[t,n]),r})({collectionAddress:Q,collectionName:X}),J=Z[X],$=(0,fb.s)(us.SupportedTokens.FLOW),ee=(0,sa.useMemo)((()=>{var e,t,n,r;return A?"storefront"===A.listingKind?"purchase":A.listingKind:"storefront"===(null===L||void 0===L||null===(e=L.orders)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.listingKind)||"make-offer"===h||_?"purchase":null===L||void 0===L||null===(n=L.orders)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.listingKind}),[L,h,_]),te=null!==L&&void 0!==L&&null!==(t=L.type)&&void 0!==t&&t.endsWith(".NFT")?null===L||void 0===L?void 0:L.type:"".concat(null===L||void 0===L?void 0:L.type,".NFT");let ne=!1;te===ss.l8&&(ne=(0,us.checkIsLocked)(L));const re="".concat(null===c||void 0===c?void 0:c.contractAddress,".").concat(null===c||void 0===c?void 0:c.contractName),ie=(0,sa.useMemo)((()=>{var e,t;return W(null!==(e=null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.addr)&&void 0!==e?e:"",L)||ne}),[L,ne]),oe=(0,sa.useMemo)((()=>{var e,t;return q(null!==(e=null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.addr)&&void 0!==e?e:"",L,re)}),[L,o]);(0,sa.useEffect)((()=>{var e,t,n;if(F(),B(),null===c||void 0===c||!c.contractAddress||null===c||void 0===c||!c.contractName||null===c||void 0===c||!c.nftID)return;const r=(0,us.nftTypeAndIdToLocationData)(null!==(e=null===c||void 0===c?void 0:c.nftType)&&void 0!==e?e:"",null!==(t=null===c||void 0===c?void 0:c.nftID)&&void 0!==t?t:"");R(r.contract.address,r.contract.name,r.nftID,r.resourceName),U(c),N(c.nftID,null!==(n=null===c||void 0===c?void 0:c.nftType)&&void 0!==n?n:"")}),[c]),(0,sa.useEffect)((()=>{var e,t,n;c&&G(re,(null===o||void 0===o||null===(e=o.loggedUser)||void 0===e?void 0:e.childAccounts)||{},(null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.addr)||"",(null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.accountSummaries)||{},(null===c||void 0===c?void 0:c.contractAddress)||"",(null===c||void 0===c?void 0:c.contractName)||"")}),[c]),(0,sa.useEffect)((()=>{var e,t,n;const r=null===L||void 0===L?void 0:L.owner;S?w(!0):r&&null!==o&&void 0!==o&&null!==(e=o.loggedUser)&&void 0!==e&&e.addr?o.loggedUser.addr!==r?null!==o&&void 0!==o&&null!==(t=o.loggedUser)&&void 0!==t&&t.childAccounts?r in((null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.childAccounts)||{})&&w(!0):w(!1):w(!0):w(!1)}),[L,o,S]);const ae=(0,sa.useCallback)(((e,t)=>{ds.o.track(e,t)}),[]),se=(0,sa.useCallback)((async e=>{let{selected:t,initListingType:n,selectedSinglePurchase:r,selectedSingleOffer:i,singleOfferType:o,singleDelistAction:a,singleDelistOrder:s,loanRentalActions:c,lostAndFoundModal:d,lostAndFoundTicketData:h}=e;if(l(!0),u(t),d)return k(!0),void D(h);if(c){if("loan"===c.type){var m,v;const e=await O(null!==(m=null===(v=c)||void 0===v?void 0:v.listingResourceID)&&void 0!==m?m:"");c={...c,fundingResourceID:e}}T(c)}else C(n),E(r),p(i||null),f(o||null),g(a||void 0),y(s||null)}),[]);(0,sa.useEffect)((()=>{var e,t,n;(async()=>{const e=(0,us.nftTypeToContractID)(te);try{const i=await pl.db.collection("flowNFTContract").doc(e).get();if(i.exists){var t;const e=i.data();if(null!==e&&void 0!==e&&null!==(t=e.collectionDisplay)&&void 0!==t&&t.name){var n,r;const t=null===e||void 0===e||null===(n=e.collectionDisplay)||void 0===n||null===(r=n.name)||void 0===r?void 0:r.replaceAll("-"," ");K(t)}}}catch(i){(0,fs.t)(i,te,e)}})();const r=null===L||void 0===L?void 0:L.owner;r&&null!==o&&void 0!==o&&null!==(e=o.loggedUser)&&void 0!==e&&e.addr?o.loggedUser.addr!==r?null!==o&&void 0!==o&&null!==(t=o.loggedUser)&&void 0!==t&&t.childAccounts?r in((null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.childAccounts)||{})&&w(!0):w(!1):w(!0):w(!1)}),[L,o]);const le=()=>{l(!1),k(!1),D({catalogIdentifier:"",ticketID:""}),F(),B(),u(null),p(null),E(null),T(null)},ce=async e=>{var t;null!==o&&void 0!==o&&null!==(t=o.loggedUser)&&void 0!==t&&t.addr&&await pl.db.collection("/accounts/".concat(o.loggedUser.addr,"/messages")).add({...e,type:us.NotificationType.Transaction})},ue=(0,sa.useMemo)((()=>({isViewOnly:!1,selectCard:se})),[se]);return(0,ms.jsxs)(yb.Provider,{value:ue,children:[a,s&&L&&(0,ms.jsx)(ms.Fragment,{children:b&&!_&&"cancel-offer"!==h?(0,ms.jsx)(Bs.ZJ,{createTransactionNotification:ce,collectionDisplayName:Y,collectionImage:J,initialListingType:x,valuation:H,isLoadingValuation:V,isOpen:s,onClose:le,openSearchFlowNFT:L,accountSummaries:null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.accountSummaries,hasProvider:ie,spotPrice:$,nftProviderPathIdentifier:oe,flowNFT:null!==I&&void 0!==I?I:void 0,selectedOffer:d,singleAction:m,singleOrder:null!==v&&void 0!==v?v:void 0,strapiUrl:ss.j$,mixPanelFn:ae,addressesWithCollectionPublic:z,flowty:Tf.su}):(0,ms.jsx)(Bs.m9,{isLostAndFound:S,lostAndFoundTicketID:P.ticketID,lostAndFoundCatalogIdentifier:P.catalogIdentifier,flowNft:null!==I&&void 0!==I?I:void 0,createTransactionNotification:ce,collectionImage:J,singleOffer:null!==h&&void 0!==h?h:void 0,offer:d,isLoggedUser:Boolean(null===o||void 0===o||null===(r=o.loggedUser)||void 0===r?void 0:r.loggedIn),purchaseType:ee,nftOrders:A?void 0:M,isLoadingOrders:j,singleListing:null!==A&&void 0!==A?A:void 0,openSearchFlowNFT:L,accountSummaries:null===o||void 0===o||null===(i=o.loggedUser)||void 0===i?void 0:i.accountSummaries,nftProviderPathIdentifier:oe,isOpen:s,onClose:le,valuation:H,isLoadingValuation:V,spotPrice:$,strapiUrl:ss.j$,hasProvider:!0,mixPanelFn:ae,addressesWithCollectionPublic:z,loanRentalActionsData:_||void 0,flowty:Tf.su})})]})}))),wb=()=>(0,sa.useContext)(yb);function xb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cb(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)}}function Ab(e,t,n){return t&&Cb(e.prototype,t),n&&Cb(e,n),e}function Eb(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tb(e,t)}function _b(e){return _b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_b(e)}function Tb(e,t){return Tb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tb(e,t)}function Sb(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kb(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_b(e);if(t){var i=_b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Sb(this,n)}}function Pb(e){return function(e){if(Array.isArray(e))return Db(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Db(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);if(0===t)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",o=r?r[3]:"",a=r?r[2]:n,s=a.length>=t?a:(Pb(Array(t)).map((function(){return"0"})).join("")+a).slice(-1*t);return"".concat(i).concat(s).concat(o)}var Nb={daysInHours:!1,zeroPadTime:2};function Ib(e,t){var n=e.days,r=e.hours,i=e.minutes,o=e.seconds,a=Object.assign(Object.assign({},Nb),t),s=a.daysInHours,l=a.zeroPadTime,c=a.zeroPadDays,u=void 0===c?l:c,d=Math.min(2,l),p=s?Fb(r+24*n,l):Fb(r,d);return{days:s?"":Fb(n,u),hours:p,minutes:Fb(i,d),seconds:Fb(o,d)}}var Rb=function(e){Eb(n,e);var t=kb(n);function n(){var e;return xb(this,n),(e=t.apply(this,arguments)).state={count:e.props.count||3},e.startCountdown=function(){e.interval=window.setInterval((function(){0===e.state.count-1?(e.stopCountdown(),e.props.onComplete&&e.props.onComplete()):e.setState((function(e){return{count:e.count-1}}))}),1e3)},e.stopCountdown=function(){clearInterval(e.interval)},e.addTime=function(t){e.stopCountdown(),e.setState((function(e){return{count:e.count+t}}),e.startCountdown)},e}return Ab(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,sa.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(sa.Component);Rb.propTypes={count:da.number,children:da.element,onComplete:da.func};var Ob=function(e){Eb(n,e);var t=kb(n);function n(e){var r;if(xb(this,n),(r=t.call(this,e)).mounted=!1,r.initialTimestamp=r.calcOffsetStartTimestamp(),r.offsetStartTimestamp=r.props.autoStart?0:r.initialTimestamp,r.offsetTime=0,r.legacyMode=!1,r.legacyCountdownRef=(0,sa.createRef)(),r.tick=function(){var e=r.calcTimeDelta(),t=e.completed&&!r.props.overtime?void 0:r.props.onTick;r.setTimeDeltaState(e,void 0,t)},r.start=function(){if(!r.isStarted()){var e=r.offsetStartTimestamp;r.offsetStartTimestamp=0,r.offsetTime+=e?r.calcOffsetStartTimestamp()-e:0;var t=r.calcTimeDelta();r.setTimeDeltaState(t,"STARTED",r.props.onStart),r.props.controlled||t.completed&&!r.props.overtime||(r.clearTimer(),r.interval=window.setInterval(r.tick,r.props.intervalDelay))}},r.pause=function(){r.isPaused()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.setTimeDeltaState(r.state.timeDelta,"PAUSED",r.props.onPause))},r.stop=function(){r.isStopped()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.offsetTime=r.offsetStartTimestamp-r.initialTimestamp,r.setTimeDeltaState(r.calcTimeDelta(),"STOPPED",r.props.onStop))},r.isStarted=function(){return r.isStatus("STARTED")},r.isPaused=function(){return r.isStatus("PAUSED")},r.isStopped=function(){return r.isStatus("STOPPED")},r.isCompleted=function(){return r.isStatus("COMPLETED")},e.date){var i=r.calcTimeDelta();r.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else r.legacyMode=!0;return r}return Ab(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(e){this.legacyMode||this.props.date!==e.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var e=this.props,t=e.date,n=e.now,r=e.precision,i=e.controlled,o=e.overtime;return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,i=void 0===r?Date.now:r,o=n.precision,a=void 0===o?0:o,s=n.controlled,l=n.offsetTime,c=void 0===l?0:l,u=n.overtime;t="string"===typeof e?new Date(e).getTime():e instanceof Date?e.getTime():e,s||(t+=c);var d=s?t:t-i(),p=Math.min(20,Math.max(0,a)),h=Math.round(1e3*parseFloat(((u?d:Math.max(0,d))/1e3).toFixed(p))),f=Math.abs(h)/1e3;return{total:h,days:Math.floor(f/86400),hours:Math.floor(f/3600%24),minutes:Math.floor(f/60%60),seconds:Math.floor(f%60),milliseconds:Number((f%1*1e3).toFixed()),completed:h<=0}}(t,{now:n,precision:r,controlled:i,offsetTime:this.offsetTime,overtime:o})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(e){this.legacyCountdownRef.current.addTime(e)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(e){return this.state.status===e}},{key:"setTimeDeltaState",value:function(e,t,n){var r=this;if(this.mounted){var i=e.completed&&!this.state.timeDelta.completed,o=e.completed&&"STARTED"===t;i&&!this.props.overtime&&this.clearTimer();return this.setState((function(n){var i=t||n.status;return e.completed&&!r.props.overtime?i="COMPLETED":t||"COMPLETED"!==i||(i="STOPPED"),{timeDelta:e,status:i}}),(function(){n&&n(r.state.timeDelta),r.props.onComplete&&(i||o)&&r.props.onComplete(e,o)}))}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var e=this.props,t=e.daysInHours,n=e.zeroPadTime,r=e.zeroPadDays,i=this.state.timeDelta;return Object.assign(Object.assign({},i),{api:this.getApi(),props:this.props,formatted:Ib(i,{daysInHours:t,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var e=this.props,t=e.count,n=e.children,r=e.onComplete;return(0,sa.createElement)(Rb,{ref:this.legacyCountdownRef,count:t,onComplete:r},n)}var i=this.props,o=i.className,a=i.overtime,s=i.children,l=i.renderer,c=this.getRenderProps();if(l)return l(c);if(s&&this.state.timeDelta.completed&&!a)return(0,sa.cloneElement)(s,{countdown:c});var u=c.formatted,d=u.days,p=u.hours,h=u.minutes,f=u.seconds;return(0,sa.createElement)("span",{className:o},c.total<0?"-":"",d,d?":":"",p,":",h,":",f)}}]),n}(sa.Component);Ob.defaultProps=Object.assign(Object.assign({},Nb),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),Ob.propTypes={date:(0,da.oneOfType)([(0,da.instanceOf)(Date),da.string,da.number]),daysInHours:da.bool,zeroPadTime:da.number,zeroPadDays:da.number,controlled:da.bool,intervalDelay:da.number,precision:da.number,autoStart:da.bool,overtime:da.bool,className:da.string,children:da.element,renderer:da.func,now:da.func,onMount:da.func,onStart:da.func,onPause:da.func,onStop:da.func,onTick:da.func,onComplete:da.func};const jb=Ob,Mb=e=>{let{blockTimestamp:t}=e;const[n,r]=(0,sa.useState)(Dl(t));return(0,sa.useEffect)((()=>{r(Dl(t))}),[t]),n?null:(0,ms.jsx)("div",{className:"w-full h-full flex justify-center  bottom-2",children:(0,ms.jsxs)("div",{className:"bg-darkBg bg-opacity-70 h-10 flex justify-center items-center w-full",children:[(0,ms.jsx)("p",{className:"text-white font-bold me-2 pb-0.5",children:"Active in"}),(0,ms.jsx)(jb,{className:"text-white font-bold",renderer:e=>{let{minutes:t,seconds:n}=e;return(0,ms.jsxs)("span",{className:"text-white text-bold",children:[Fb(t),":",Fb(n)]})},date:kl(t),onComplete:()=>{r(!0)}})]})})},Lb=e=>{let{type:t,isOwner:n,isDapper:r,updateListing:i}=e;const o=(0,sa.useMemo)((()=>"BUY NOW"===t?{actionName:"Sale",listingName:"Sale"}:"RENT"===t?{actionName:"Rent",listingName:"Rental"}:"LOAN"===t?{actionName:"Loan",listingName:"Loan"}:void 0),[t]),a=(0,sa.useMemo)((()=>r&&"BUY NOW"!==t?"How to Access Feature":"List for ".concat(null===o||void 0===o?void 0:o.actionName)),[r,o]);return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("div",{className:"rounded-[0.5rem] flex flex-col flex-grow px-[1.5rem] py-[1.5rem] bg-[#606e7d33] w-full md:w-[25rem] justify-between gap-x-[1.5rem] items-start",children:[r&&n&&"BUY NOW"!==t?(0,ms.jsxs)("div",{className:"w-full h-full flex justify-center items-center flex-col gap-[0.75rem] my-[1.5rem]",children:["Feature not available"," "]}):(0,ms.jsxs)("div",{className:"w-full h-full flex flex-col justify-center items-center animate-pulse gap-[0.75rem] my-[1.5rem]",children:[(0,ms.jsxs)("div",{className:"relative mr-5",children:[(0,ms.jsx)(ub,{}),(0,ms.jsxs)("div",{className:"flex space-x-2 left-11 bottom-0 absolute",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"})]})]}),(0,ms.jsxs)("div",{className:"text-white text-montserrat text-[0.875rem]",children:["No ",null===o||void 0===o?void 0:o.listingName," Listings Found"]})]}),n?(0,ms.jsx)(Bs.M2,{onClick:i,text:(0,ms.jsx)("div",{children:a}),variant:"secondary",btnSize:"small"}):null]})})},Bb=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{asset:n,orders:r,setSelectedListing:i,authStore:o,isAssetOwner:a}=e;const s=null!==(t=null===o||void 0===o?void 0:o.getAccountSummaryAddresses())&&void 0!==t?t:[],l=null===o||void 0===o?void 0:o.loggedUser,c=()=>{dc.authenticate()},u=(0,sa.useMemo)((()=>(null===l||void 0===l?void 0:l.services[0].uid.toLocaleLowerCase())||""),[l]).includes("dapper"),d=(0,sa.useCallback)(((e,t)=>l?e?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Bs.M2,{text:"Delist",onClick:()=>i({listingType:"loan",singleDelistAction:"delistLoan",singleDelistOrder:t}),variant:"secondary",btnSize:"small",bgColor:"danger"}),(0,ms.jsx)(Bs.M2,{text:"Add loan",onClick:()=>i({listingType:"loan",singleDelistAction:void 0,singleDelistOrder:void 0}),variant:"secondary",btnSize:"small",bgColor:"primary"})]}):(0,ms.jsx)(Bs.M2,{text:"FUND",onClick:()=>i({listing:t}),variant:"secondary",btnSize:"small"}):(0,ms.jsx)(Bs.M2,{onClick:c,text:(0,ms.jsx)("b",{children:l?(0,ms.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading",children:(0,ms.jsx)("span",{className:"sr-only",children:"Loading..."})}):(0,ms.jsx)("span",{className:"text-base font-montserrat",children:"Sign in"})}),variant:"secondary",btnSize:"small"})),[l]);return(0,ms.jsx)("div",{className:"mt-[1.5rem] md:min-h-[19.65rem] flex flex-row flex-wrap gap-[1.5rem] items-stretch",children:(null===r||void 0===r?void 0:r.length)>0?r.map(((e,t)=>{var n,r,i,o,a,c,u,p,h,f,m,g,v,y;const b=s.includes(e.flowtyStorefrontAddress)&&!(null===l||void 0===l||!l.loggedIn);return(0,ms.jsxs)("div",{className:"rounded-[0.5rem]  flex flex-col p-[1.5rem] bg-[#606e7d33] w-full lg:w-[25rem] gap-y-[1.5rem] gap-x-[1.5rem] items-start",children:[(0,ms.jsx)(vy,{symbol:"LOAN"}),(0,ms.jsxs)("div",{className:"flex flex-col gap-y-[1.2rem] w-full",children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Loan Amount"}),(0,ms.jsx)(Fl.se,{fontSize:"text-[0.875rem]",isSmall:!0,amount:null===e||void 0===e||null===(n=e.derivations)||void 0===n||null===(r=n.calculatedValues)||void 0===r?void 0:r.marketplaceAmount,token:null===e||void 0===e?void 0:e.paymentTokenName})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Repayment Amount"}),(0,ms.jsx)(Fl.se,{fontSize:"text-[0.875rem]",isSmall:!0,amount:null===(i=e.derivations)||void 0===i||null===(o=i.calculatedValues)||void 0===o?void 0:o.totalRepayment,token:e.paymentTokenName})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Loan Rate"}),(0,ms.jsxs)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:[null===(a=100*(null!==(c=null===e||void 0===e||null===(u=e.derivations)||void 0===u||null===(p=u.calculatedValues)||void 0===p?void 0:p.periodicInterest)&&void 0!==c?c:0))||void 0===a?void 0:a.toFixed(2),"%"]})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"APR"}),(0,ms.jsxs)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:[Tl()((0,us.calcAPRInterest)(e?Number(null===e||void 0===e||null===(h=e.derivations)||void 0===h||null===(f=h.calculatedValues)||void 0===f?void 0:f.periodicInterest):0,e?Number(null===e||void 0===e?void 0:e.term):0)).format("0,0.00"),"%"]})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Duration"}),(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:Sl(Number(null===e||void 0===e?void 0:e.term))})]}),(null===e||void 0===e||null===(m=e.valuations)||void 0===m||null===(g=m.aggregate)||void 0===g?void 0:g.loanToValueRatio)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Blended LTV"}),(0,ms.jsxs)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:[null!==e&&void 0!==e&&e.valuations?"".concat(Tl()(100*(null===e||void 0===e||null===(v=e.valuations)||void 0===v||null===(y=v.aggregate)||void 0===y?void 0:y.loanToValueRatio)).format("0,0.0"),"%"):"-"," "]})]})]}),(0,ms.jsx)(Mb,{blockTimestamp:null===e||void 0===e?void 0:e.blockTimestamp}),(0,ms.jsx)("div",{className:"w-full flex gap-[0.5rem]",children:d(b,e)})]},t)})):(0,ms.jsx)("div",{className:"min-h-[280px] w-full flex flex-col items-stretch",children:(0,ms.jsx)(Lb,{type:"LOAN",isOwner:a,isDapper:u,updateListing:()=>i({listingType:"loan"})})})})}))),Ub=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{asset:n,orders:r,authStore:i,setSelectedListing:o,isAssetOwner:a}=e;const s=null!==(t=null===i||void 0===i?void 0:i.getAccountSummaryAddresses())&&void 0!==t?t:[],l=null===i||void 0===i?void 0:i.loggedUser,c=()=>{dc.authenticate()},u=(0,sa.useMemo)((()=>(null===l||void 0===l?void 0:l.services[0].uid.toLocaleLowerCase())||""),[l]).includes("dapper"),d=(0,sa.useCallback)(((e,t)=>l?e?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Bs.M2,{text:"Delist",variant:"secondary",bgColor:"danger",onClick:()=>o({listingType:"rent",singleDelistAction:"delistRental",singleDelistOrder:t}),btnSize:"small"}),(0,ms.jsx)(Bs.M2,{text:"Add rental",variant:"secondary",onClick:()=>o({listingType:"rent",singleDelistAction:void 0,singleDelistOrder:void 0}),btnSize:"small"})]}):(0,ms.jsx)(Bs.M2,{onClick:()=>o({listing:t}),text:"Rent",variant:"secondary",btnSize:"small"}):(0,ms.jsx)(Bs.M2,{onClick:c,text:(0,ms.jsx)("b",{children:l?(0,ms.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading",children:(0,ms.jsx)("span",{className:"sr-only",children:"Loading..."})}):(0,ms.jsx)("span",{className:"text-base font-montserrat",children:"Sign in"})}),variant:"secondary",btnSize:"small"})),[l]);return(0,ms.jsx)("div",{className:" mt-[1.5rem] sm:min-h-[19.65rem] flex flex-row flex-wrap gap-[1.5rem] items-stretch",children:(null===r||void 0===r?void 0:r.length)>0?r.map(((e,t)=>{var n,r,i,o;const a=s.includes(e.flowtyStorefrontAddress)&&!(null===l||void 0===l||!l.loggedIn),c=null===e||void 0===e?void 0:e.renter;return(0,ms.jsxs)("div",{className:"rounded-[0.5rem] min-h-[17.5rem] flex flex-col p-[1.5rem] bg-[#606e7d33] w-[25rem] gap-y-[1.5rem] items-start",children:[(0,ms.jsx)(vy,{symbol:"RENT"}),c&&(0,ms.jsxs)("div",{children:[(0,ms.jsx)("h5",{className:"text-white text-xl",children:"Please Note"}),(0,ms.jsxs)("p",{className:"text-lightText text-12 line-height-19 mt-2",children:["This is a private listing and can only be filled by the address ",e.renter,"."]})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-y-[1.2rem] w-full",children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Rental Fee"}),(0,ms.jsx)(Fl.se,{fontSize:"text-[0.875rem]",amount:Number(null===e||void 0===e?void 0:e.amount),isSmall:!0,token:null===e||void 0===e?void 0:e.paymentTokenName})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Rental Deposit"}),(0,ms.jsx)(Fl.se,{fontSize:"text-[0.875rem]",amount:Number(null===e||void 0===e?void 0:e.deposit),isSmall:!0,token:null===e||void 0===e?void 0:e.paymentTokenName})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Total Due Upfront"}),(0,ms.jsx)(Fl.se,{fontSize:"text-[0.875rem]",amount:Number(null===e||void 0===e?void 0:e.deposit)+Number(null===e||void 0===e?void 0:e.amount),isSmall:!0,largeText:!0,token:null===e||void 0===e?void 0:e.paymentTokenName})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Duration"}),(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:Sl(Number(null===e||void 0===e?void 0:e.term))})]}),(null===e||void 0===e||null===(n=e.valuations)||void 0===n||null===(r=n.aggregate)||void 0===r?void 0:r.depositToValueRatio)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Blended DTV"}),(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem] font-bold",children:null===e||void 0===e||null===(i=e.valuations)||void 0===i||null===(o=i.aggregate)||void 0===o?void 0:o.depositToValueRatio})]})]}),(0,ms.jsx)(Mb,{blockTimestamp:null===e||void 0===e?void 0:e.blockTimestamp}),(0,ms.jsx)("div",{className:"w-full flex gap-[0.5rem]",children:d(a,e)})]},t)})):(0,ms.jsx)("div",{className:"min-h-[280px] w-full flex flex-col items-stretch",children:(0,ms.jsx)(Lb,{type:"RENT",isOwner:a,isDapper:u,updateListing:()=>o({listingType:"rent"})})})})})));var Vb=__webpack_require__(72012),Hb=__webpack_require__(76705);function zb(e){(0,Ps.A)(1,arguments);var t=(0,Ds.A)(e);return(0,Hb.default)(1e3*t)}const Wb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHiSURBVHgBrVO/S8NQEL6XRHAzoqPSuLja1UGM4OYSwUUQf/wF1tXFODvYxTlJMzhawUFwaPwDpB1cnBps7SKlVRGkpj7v0kt/EZw8+MjjvXt3333vi4CUkFIa+DERBm+FiEAIEY7nKuMXESVclrlAEhaihGcOF0/tuoeoInIIPdnXao6pvfhXUHV0PmshLEjp3OIC/Q4T9UIOL8sYNc/m3CznZeMGnEu0j3hmorpG86rqRDGKIh1UWAIhTErE/Qqen+LyHLFGFS1EOaF79vE4wkSr+yX12bdSRqZGpsJieVrNt0HRSsfvleJDp3nPTAyQcN/tRkGKbNckLhVYQiAtqOC3LeFnerl5u3rx+RSP9j2348LCQXsgqpfnZYjI9qn0DgvFyeqlMUTTpnE2Xu9yNAoJqTYKVRKX7iACYvCGiJ8tmt+1vha2w8EruAGNdzO7frg1mfGEIjJCCkMKZY/vtKlAAKOm6QW+O2pyharbVORyZuVkUZvKChCu1lE3oWeuItHUWXV9eM7YA/VCMD4Oe4ZAYSjYgQTyEM6gvdKWQpxLBTJawyePQMIEep4hD5yO/BssppMwwe4VdKCt0yiDHGJbRriQFniQZ5r7iVV5nyifsN3z8FdwssuFkgi5uAn/Hb98kmqwmKkc/gAAAABJRU5ErkJggg==";var qb=__webpack_require__(43619),Gb=__webpack_require__(40559),Yb=__webpack_require__(50453);function Kb(e){const t=new Date,n=(0,qb.A)(e,t);if(n>1)return"".concat(n," Days");const r=(0,Gb.A)(e,t);if(r>1)return"".concat(r," Hours");const i=(0,Yb.A)(e,t);return i>1?"".concat(i," Minutes"):"1 Minute"}const Qb=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o;let{authStore:a,nft:s}=e;const{collectionName:l,collectionAddress:c,nftId:u}=(0,js.g)(),[d,p]=(0,sa.useState)([]),{denylistCache:h}=ys(),{selectCard:f}=wb(),m=(0,sa.useCallback)((e=>{let{offer:t,singleOfferType:n}=e;f({selected:{contractAddress:s.contractAddress,contractName:s.contractName,nftID:s.id,nftType:s.type},selectedSingleOffer:t,singleOfferType:n})}),[f]),{hybridCustodyNFTStatus:g,iterateAndRunScript:v}=(0,bs.g)(),y=(null!==(t=null===a||void 0===a?void 0:a.getAccountSummaryAddresses())&&void 0!==t?t:[]).includes((null===s||void 0===s?void 0:s.owner)||""),b=(0,sa.useMemo)((()=>null!==s&&void 0!==s&&s.type.endsWith(".NFT")?s.type:"".concat(null===s||void 0===s?void 0:s.type,".NFT")),[s]),w="".concat(null===s||void 0===s?void 0:s.contractAddress,".").concat(null===s||void 0===s?void 0:s.contractName),x=null===g||void 0===g||null===(n=g[(null===s||void 0===s?void 0:s.owner)||""])||void 0===n||null===(r=n[w])||void 0===r?void 0:r.length,C="".concat(c,".").concat(l);return(0,sa.useEffect)((()=>{var e,t;v([C],(null===a||void 0===a||null===(e=a.loggedUser)||void 0===e?void 0:e.childAccounts)||{},(null===a||void 0===a||null===(t=a.loggedUser)||void 0===t?void 0:t.addr)||"")}),[]),(0,sa.useEffect)((()=>{if(!c||!l||!u)return;const e=(0,us.nftTypeAndIdToLocationData)(s.type,u);Tf.su.api.getItem({contractAddress:c,contractName:l,nftID:u,resourceName:e.resourceName}).then((e=>{const t=e.offers.sort(((e,t)=>t.usdValue-e.usdValue));p(t)})).catch((e=>(0,fs.t)({err:e})))}),[]),(0,ms.jsxs)("div",{className:"flex-1 rounded-[0.5rem] bg-[#606e7d33] w-full",children:[!y&&(null===a||void 0===a||null===(i=a.loggedUser)||void 0===i?void 0:i.loggedIn)&&!h.has(b)&&(0,ms.jsx)("div",{className:"flex flex-row justify-start w-full px-[1.5rem] py-[0.75rem]",children:(0,ms.jsx)("div",{className:"w-[9rem]",children:(0,ms.jsx)(Bs.M2,{text:"MAKE OFFER",onClick:()=>{m({singleOfferType:"make-offer"})},variant:"secondary",bgColor:"white"})})}),(0,ms.jsx)("div",{className:"overflow-x-auto",children:(0,ms.jsxs)("div",{className:"inline-block min-w-full styled-scroll max-h-64 overflow-y-auto px-[1.5rem]",children:[(0,ms.jsxs)("table",{className:"w-full",children:[(0,ms.jsx)("thead",{className:"border-b-[1px] border-[#adb5bd3d]",children:(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("th",{className:"h-[4rem] text-left px-[0.75rem] font-montserrat font-bold text-[#DDDDDD] text-xs md:text-[0.875rem]",children:"OFFER"}),(0,ms.jsx)("th",{className:"h-[4rem] text-left px-[0.75rem] font-montserrat font-bold text-[#DDDDDD] text-xs md:text-[0.875rem]",children:"FROM"}),(0,ms.jsxs)("th",{className:"h-[4rem] text-left px-[0.75rem] font-montserrat font-bold text-[#DDDDDD] text-xs md:text-[0.875rem]",children:["DATE ",(0,ms.jsx)("span",{className:"hidden md:inline-block",children:"OFFERED"})]}),(0,ms.jsx)("th",{className:"h-[4rem] text-left px-[0.75rem] font-montserrat font-bold text-[#DDDDDD] text-xs md:text-[0.875rem]",children:"EXPIRATION"}),(null===a||void 0===a||null===(o=a.loggedUser)||void 0===o?void 0:o.addr)&&(0,ms.jsx)("th",{className:"h-[4rem] px-[0.75rem] font-montserrat font-bold text-[#DDDDDD] text-xs md:text-[0.875rem] text-center",children:"ACTION"})]})}),(0,ms.jsx)("tbody",{children:null===d||void 0===d?void 0:d.map(((e,t)=>{var n,r;return(0,ms.jsxs)("tr",{className:"border-b-[1px] border-[#adb5bd3d] h-[5rem]",children:[(0,ms.jsx)("td",{className:"px-[0.75rem]",children:(0,ms.jsx)("div",{className:"min-w-[3em]",children:(0,ms.jsx)(Fl.se,{amount:e.amount,token:e.paymentTokenName,isSmall:!0,largeText:!1,justifyStart:!0})})}),(0,ms.jsx)("td",{className:"px-[0.75rem] text-[#04E5A3]",children:(0,ms.jsx)("div",{className:"flex flex-col",children:(0,ms.jsx)(ca.N_,{to:"/user/".concat(e.storefrontAddress),children:(0,ms.jsx)("span",{className:"text-eletric-green-900 text-base hover:underline hover:text-primary",children:e.storefrontAddress})})})}),(0,ms.jsx)("td",{className:"px-[0.75rem] whitespace-nowrap font-bold text-base text-[#D9D9D9]",children:(0,el.default)((0,Hb.default)(e.blockTimestamp),"yyyy-MM-dd HH:mm")}),(0,ms.jsx)("td",{className:"px-[0.75rem] whitespace-nowrap font-bold text-base  text-[#D9D9D9]",children:Kb(zb(e.expiry))}),(null===a||void 0===a||null===(n=a.loggedUser)||void 0===n?void 0:n.addr)===e.storefrontAddress?(0,ms.jsx)("td",{className:"whitespace-nowrap px-[0.75rem] text-sm text-center",children:(0,ms.jsx)("div",{className:"space-x-3",children:(0,ms.jsx)(Bs.M2,{text:"Cancel",onClick:()=>m({offer:e,singleOfferType:"cancel-offer"}),variant:"secondary",bgColor:"white"})})}):y?(0,ms.jsx)("td",{className:"whitespace-nowrap px-[0.75rem] text-sm text-center",children:(null===a||void 0===a||null===(r=a.loggedUser)||void 0===r?void 0:r.addr)===s.owner||x?(0,ms.jsx)("div",{className:"flex justify-center space-x-4",children:(0,ms.jsx)(Bs.M2,{onClick:()=>m({offer:e}),text:"ACCEPT",variant:"secondary",btnSize:"small"})}):(0,ms.jsxs)("div",{className:"flex gap-2 flex-row-reverse items-center",children:[(0,ms.jsx)(nc.m_,{id:"".concat(s.uuid,"-view-only-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)("img",{"data-tooltip-id":"".concat(s.uuid,"-view-only-tooltip"),"data-tooltip-content":"This profile has view-only access to this item","data-tooltip-place":"bottom",src:Wb,alt:"Read Only Icon",width:16,height:16}),(0,ms.jsx)(Bs.M2,{disabled:!0,text:"Accept",variant:"primary"})]})}):(0,ms.jsx)("td",{className:"whitespace-nowrap px-[0.75rem] text-sm text-center",children:"-"})]},t)}))})]}),d.length?null:(0,ms.jsxs)("div",{className:"w-full h-full flex justify-center items-center pt-[2.5rem] flex-col animate-pulse gap-[0.75rem]",children:[(0,ms.jsxs)("div",{className:"relative mr-5",children:[(0,ms.jsx)(ub,{}),(0,ms.jsxs)("div",{className:"flex space-x-2 left-11 bottom-0 absolute",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"})]})]}),(0,ms.jsx)("div",{className:"text-white text-montserrat text-[0.875rem]",children:"No Offers Found"})]})]})})]})}))),Xb=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{asset:n,orders:r,authStore:i,setSelectedListing:o,isAssetOwner:a}=e;const s=null===i||void 0===i?void 0:i.loggedUser,l=null!==(t=null===i||void 0===i?void 0:i.getAccountSummaryAddresses())&&void 0!==t?t:[],c=()=>{dc.authenticate()},u=(0,sa.useMemo)((()=>(null===s||void 0===s?void 0:s.services[0].uid.toLocaleLowerCase())||""),[s]).includes("dapper"),d=(0,sa.useCallback)(((e,t)=>s?e?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Bs.M2,{text:"Delist",onClick:()=>o({singleDelistAction:"delistSale",singleDelistOrder:t}),variant:"secondary",btnSize:"small",bgColor:"danger"}),(0,ms.jsx)(Bs.M2,{text:"Edit listing",onClick:()=>o({singleDelistAction:void 0,singleDelistOrder:void 0}),variant:"secondary",btnSize:"small",bgColor:"primary"})]}):(0,ms.jsx)(Bs.M2,{text:"Buy Now",onClick:()=>o({listing:t}),variant:"secondary",btnSize:"small"}):(0,ms.jsx)(Bs.M2,{text:(0,ms.jsx)("b",{children:s?(0,ms.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading",children:(0,ms.jsx)("span",{className:"sr-only",children:"Loading..."})}):(0,ms.jsx)("span",{className:"text-base font-montserrat",children:"Sign in"})}),onClick:c,variant:"secondary",btnSize:"small"})),[s]);return(0,ms.jsxs)("div",{className:"mt-[1.5rem] min-h-[280px] h-full flex flex-row flex-wrap gap-[1.5rem] items-stretch",children:[(null===r||void 0===r?void 0:r.length)>0?r.map(((e,t)=>{var n,r,i,o,a,c,u;const p=l.includes(e.flowtyStorefrontAddress)&&!(null===s||void 0===s||!s.loggedIn);return(0,ms.jsxs)("div",{className:"rounded-[0.5rem] flex flex-col p-[1.5rem] bg-[#606e7d33] w-full lg:w-[25rem] gap-y-[1.5rem] gap-x-[1.5rem] items-start justify-between",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)(vy,{symbol:"BUY NOW"})}),(0,ms.jsxs)("div",{className:"flex flex-col w-full justify-center items-center",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[0.875rem]",children:"Purchase Price"}),(0,ms.jsxs)("div",{className:"flex flex-row",children:[(0,ms.jsx)(Fl.xz,{token:null===e||void 0===e?void 0:e.paymentTokenName,isLarge:!0}),(0,ms.jsx)("p",{className:"font-bold text-[2rem] font-montserrat ml-1",children:null===(n=Tl()(null===e||void 0===e||null===(r=e.amount)||void 0===r?void 0:r.toFixed(2)))||void 0===n?void 0:n.format("0,0.00")})]}),null!==(i=e.valuations)&&void 0!==i&&null!==(o=i.blended)&&void 0!==o&&o.usdValue&&(null===(a=e.valuations)||void 0===a||null===(c=a.blended)||void 0===c?void 0:c.usdValue)>0?(0,ms.jsxs)("p",{className:"font-montserrat text-[0.78125rem]",children:["Third Party FMV:"," ",(0,Vb.K)(null===(u=e.valuations)||void 0===u?void 0:u.blended.usdValue)]}):null]}),(0,ms.jsx)("div",{className:"w-full flex gap-[0.5rem]",children:d(p,e)})]},t)})):(0,ms.jsx)("div",{className:"min-h-full w-full md:w-auto flex flex-col items-stretch",children:(0,ms.jsx)(Lb,{type:"BUY NOW",isOwner:a,isDapper:u,updateListing:()=>o({})})}),(0,ms.jsx)(Qb,{nft:n})]})}))),Zb={"A.0b2a3299cc857e29.TopShot":"ad3260ba-a87c-4359-a8b0-def2cc36310b","A.329feb3ab062d289.UFC_NFT":"24ed5274-68f4-42bc-8600-4a6f5fa17359","A.427ceada271aa0b1.SturdyItems":"fb3cebea-cb28-4231-9d56-ea4ecd2f8ff7","A.427ceada271aa0b1.SturdyTokens":"35c53829-12f1-4f0d-ac7f-9a9d2b7bc172","A.87ca73a41bb50ad5.Golazos":"44924327-dea6-4915-a18d-85a827c5eb51","A.8b148183c28ff88f.Gaia":"75dc054b-e405-4fbd-91c3-6dbfc0e691ca","A.e4cf4bdc1751c65d.AllDay":"567226a0-f1fe-4c9a-ba85-423d020d646a"},Jb=e=>{let{flowNFT:t}=e;const n=((e,t)=>{var n;if((0,fs.t)("getDapperInventoryURL",{nftType:e}),!e||!t)return null;const[r,i,o]=e.split("."),a="A.".concat(i,".").concat(o),s=null!==(n=Zb[a])&&void 0!==n?n:null;return s?"https://accounts.meetdapper.com/inventory?page=1&sort=DESC&token=".concat(t,"&contract=").concat(a,"&dapp=").concat(s):null})(t.type,t.id);return(0,ms.jsxs)("div",{className:"min-h-[16.65rem] flex flex-col flex-grow w-full justify-between ",children:[(0,ms.jsx)("div",{}),(0,ms.jsx)("span",{className:"w-full px-2 h-full flex justify-center items-center flex-col gap-[0.75rem] my-[1.5rem]",children:"NFTs in Dapper Wallet can only be transferred via Dapper inventory"}),(0,ms.jsx)("div",{className:"flex justify-items-end",children:(0,ms.jsx)(Bs.M2,{text:"View in dapper inventory",variant:"secondary",btnSize:"small",onClick:()=>{window.open(n||"https://accounts.meetdapper.com/inventory","_blank")}})})]})},$b=e=>{let{onSubmit:t,accounts:n,nft:r,loggedUser:i}=e;const o=(0,sa.useMemo)((()=>{const e=n.find((e=>{if(r.owner===e.address)return e}));return!!e&&e.isDapper}),[n]),a=xc.Ik().shape({address:xc.Yj().required("Required").test("is-not-owner","This user already owns this NFT",(e=>e!==i.addr)).test("is-valid-address","Invalid address",(e=>av(e||"")))});return o?(0,ms.jsx)("div",{className:"w-full h-full",children:(0,ms.jsx)(Jb,{flowNFT:r})}):(0,ms.jsx)(gl.l1,{initialValues:{address:"",isDapper:!1},validationSchema:a,onSubmit:e=>t(e.address),children:e=>{let{values:n,errors:r}=e;return(0,ms.jsx)(gl.lV,{className:"w-full h-full",children:(0,ms.jsxs)("div",{className:"flex flex-col gap-4 w-full h-full font-montserrat",children:[(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("span",{className:" text-[14px] font-[700] mb-6",children:"TRANSFER"}),(0,ms.jsx)("span",{className:" text-base font-[600] mb-3",children:"Recipient"}),(0,ms.jsx)("div",{className:"flex w-full",children:(0,ms.jsxs)("div",{className:"relative w-full",children:[(0,ms.jsx)(Bs.ez,{name:"address",inputError:Boolean(r.address),valueError:Boolean(r.address),placeholder:"Address"}),r.address&&(0,ms.jsx)("span",{className:"text-red-500 text-left h-6 font-bold font-montserrat-bold w-full mt-2",children:r.address})]})})]}),(0,ms.jsx)("div",{className:"flex flex-col w-full h-full justify-end",children:(0,ms.jsx)("div",{className:"h-full flex flex-col justify-end",children:(0,ms.jsx)("p",{className:"text-sm",children:"Note: Flowty is not responsible for any loss of assets or unexpected outcomes resulting from NFT transfers"})})}),(0,ms.jsx)(Bs.M2,{onClick:()=>t(n.address),text:"Transfer",variant:"secondary",disabled:!n.address||Boolean(r.address),btnSize:"small"})]})})}})};const ew=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}));const tw=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))})),nw=e=>{let{transactionID:t}=e;return(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center h-full",children:[(0,ms.jsx)("div",{className:"px-6 w-full flex justify-center items-center my-3",children:(0,ms.jsx)("span",{className:"text-base text-center",children:"Uh oh! Something went wrong while trying to follow your transaction results"})}),t&&(0,ms.jsx)("div",{className:"w-full flex flex-col items-center",children:(0,ms.jsxs)("p",{className:"h-12",children:["You can verify its outcome on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(ss.I4,"/").concat(t),target:"_blank",rel:"noreferrer",children:"Flowscan"})]})})]})},rw=e=>{let{transactionID:t,flowscanBaseURL:n,statusUncertain:r,error:i,sealed:o,isLoading:a,onSubmit:s}=e;return i&&!r?(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center h-full",children:[t&&(0,ms.jsxs)("p",{className:"h-12",children:["View your transaction on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(n,"/").concat(t),target:"_blank",rel:"noreferrer",children:"Flowscan"})]}),(0,ms.jsxs)("div",{className:"flex justify-center items-center my-3",children:[(0,ms.jsx)(ew,{className:"h-16 w-16 fill-red-500"}),(0,ms.jsx)("span",{className:"text-lg font-montserrat-bold font-bold",children:"Transaction Failed"})]}),(0,ms.jsx)("div",{className:"px-6 w-full flex justify-center items-center my-3",children:(0,ms.jsxs)("span",{className:"text-base text-center",children:["Your transaction failed. Please try again. If you continue to have issues, please open a support ticket in"," ",(0,ms.jsx)("a",{href:"https://discord.com/channels/657618722634203176/940412791507017729",className:"underline text-primary",children:"Discord"}),"."]})}),(0,ms.jsx)(Bs.M2,{text:"Try Again",onClick:s,variant:"primary"})]}):o&&!i&&t?(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center h-full",children:[(0,ms.jsx)("div",{className:"w-full flex flex-col items-center",children:(0,ms.jsxs)("p",{className:"h-12",children:["Follow your transaction on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(n,"/").concat(t),target:"_blank",rel:"noreferrer",children:"Flowscan"})]})}),(0,ms.jsx)("div",{className:"px-6 w-full flex justify-center items-center my-3",children:(0,ms.jsx)("span",{className:"text-base text-center",children:"It may take a few minutes for your NFT to appear in the receiving account. You can close this window at any time."})}),(0,ms.jsxs)("div",{className:"flex justify-center items-center my-3",children:[(0,ms.jsx)(tw,{className:"h-16 w-16 fill-primary"}),(0,ms.jsx)("span",{className:"text-lg font-montserrat-bold font-bold",children:"Transaction Successful!"})]})]}):r?(0,ms.jsx)(nw,{transactionID:t}):a?(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center h-full",children:[t?(0,ms.jsxs)("p",{className:"h-12",children:["Follow your transaction on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(n,"/").concat(t),target:"_blank",rel:"noreferrer",children:"Flowscan"})]}):(0,ms.jsx)("div",{className:"h-12"}),(0,ms.jsx)("span",{className:"text-lg font-montserrat-bold font-bold",children:"Processing..."}),(0,ms.jsx)(bc.BM,{height:150,width:150})]}):null};function iw(e){var t;return null===e||void 0===e||null===(t=e.accountSummaries)||void 0===t?void 0:t[(null===e||void 0===e?void 0:e.addr)||""]}const ow=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o;let{asset:a,authStore:s}=e;const[l,c]=(0,sa.useState)(!1),[u,d]=(0,sa.useState)(!1),[p,h]=(0,sa.useState)(null),[f,m]=(0,sa.useState)(!1),[g,v]=(0,sa.useState)(!1),[y,b]=(0,sa.useState)(""),{hybridCustodyNFTStatus:w}=(0,bs.g)(),x=null===s||void 0===s?void 0:s.loggedUser,{flowNFT:C}=(e=>{let{nftType:t,nftId:n,skip:r}=e;const[i,o]=(0,sa.useState)(null);return(0,sa.useEffect)((()=>{r||(0,nl.t)({nftId:n,nftType:t}).then((e=>o(e)))}),[t,n]),{flowNFT:i}})({nftId:"".concat(null===a||void 0===a?void 0:a.id),nftType:a.type}),A=[iw(x),...Object.values(null!==(t=null===x||void 0===x?void 0:x.accountSummaries)&&void 0!==t?t:{})],E="".concat(null===C||void 0===C?void 0:C.contractAddress,".").concat(null===C||void 0===C?void 0:C.contractName),_=null===C||void 0===C||null===(n=C.nftView)||void 0===n||null===(r=n.collectionData)||void 0===r||null===(i=r.providerPath)||void 0===i?void 0:i.identifier,T=(null===x||void 0===x?void 0:x.walletAddress)===(null===a||void 0===a?void 0:a.owner)?"":(0,gb.D)((null===w||void 0===w||null===(o=w[(null===C||void 0===C?void 0:C.owner)||""])||void 0===o?void 0:o[E])||[],null===C||void 0===C?void 0:C.contractAddress,null===C||void 0===C?void 0:C.contractName,_),S=async e=>{b(e),c(!0),d(!1),h(null);try{await Tf.su.transferNft({nftData:{contractAddress:(null===C||void 0===C?void 0:C.contractAddress)||"",contractName:(null===C||void 0===C?void 0:C.contractName)||"",id:(null===C||void 0===C?void 0:C.id)||"",nftOwner:(null===C||void 0===C?void 0:C.owner)||"",type:(null===C||void 0===C?void 0:C.type)||""},nftProviderPathIdentifier:T,transferRecipient:e,txAvailableCallback:e=>h(e)}).then((e=>{var t,n;if(4!==(null===e||void 0===e?void 0:e.status)&&null!==e&&void 0!==e&&null!==(t=e.toString())&&void 0!==t&&t.includes("Error")||null!==e&&void 0!==e&&null!==(n=e.toString())&&void 0!==n&&n.includes("Declined"))throw new Error(e)})),m(!0),c(!1),ds.o.track("Successful transfer listing transaction",{listingData:C})}catch(t){d(!0);(0,us.getMessageFromError)(t)===kf.UnableToFollowTransactionResult&&v(!0),c(!1),ds.o.track("Error transfer listing transaction",{err:t,listingData:C})}};return C&&x?(0,ms.jsx)("div",{className:"min-h-[280px] mt-[1.5rem] rounded-[0.5rem] flex flex-col justify-center p-[1.5rem] bg-[#606e7d33] w-auto md:w-[25rem] gap-y-[1.5rem]",children:l||u||f?(0,ms.jsx)(rw,{isLoading:l,error:u,transactionID:p,flowscanBaseURL:ss.I4,statusUncertain:g,sealed:f,onSubmit:()=>S(y)}):(0,ms.jsx)($b,{nft:C,loggedUser:x,accounts:A,onSubmit:S})}):null})));var aw,sw,lw;function cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cw.apply(null,arguments)}function uw(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",cw({width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,aw||(aw=sa.createElement("g",{clipPath:"url(#clip0_970_17310)"},sa.createElement("path",{d:"M5.61791 12.5462L4.15381 10.0103M4.15381 10.0103L6.68971 8.54615M4.15381 10.0103L9.15381 11.35M15.7615 6.68975L14.2974 4.15385M14.2974 4.15385L11.7615 5.61795M14.2974 4.15385L12.9577 9.15385M8.54611 17.6179L10.0102 20.1538M10.0102 20.1538L12.5461 18.6897M10.0102 20.1538L11.35 15.1538M20.1538 14.2974L15.1538 12.9577M20.1538 14.2974L18.6897 11.7615M20.1538 14.2974L17.6179 15.7615",stroke:"#04E5A3",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),sw||(sw=sa.createElement("path",{d:"M19.7192 20.0983C23.9879 15.8296 23.9879 8.90882 19.7192 4.64019C15.4506 0.371564 8.52979 0.371564 4.26116 4.64019M19.7192 20.0983C15.4506 24.3669 8.52979 24.3669 4.26116 20.0983C-0.0074647 15.8296 -0.0074647 8.90882 4.26116 4.64019M19.7192 20.0983L4.26116 4.64019",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),lw||(lw=sa.createElement("defs",null,sa.createElement("clipPath",{id:"clip0_970_17310"},sa.createElement("rect",{width:17.5692,height:17.5692,fill:"white",transform:"translate(0 8.78467) rotate(-30)"})))))}const dw=sa.forwardRef(uw),pw=(__webpack_require__.p,()=>(0,ms.jsx)("div",{className:"py-3 w-full",children:(0,ms.jsxs)("div",{className:"p-4 bg-[#FFFFFF] bg-opacity-10 w-full h-full rounded-md flex",children:[(0,ms.jsx)("div",{className:"h-full px-2",children:(0,ms.jsx)(dw,{className:"h-6 w-6"})}),(0,ms.jsxs)("div",{className:"w-full px-3",children:[(0,ms.jsxs)("div",{className:"leading-4",children:[(0,ms.jsxs)("span",{className:"text-white text-xs font-normal",children:["Icon indicates that an NFT is"," "]}),(0,ms.jsx)("span",{className:"text-white text-xs font-bold",children:"view-only"}),(0,ms.jsxs)("span",{className:"text-white text-xs font-normal",children:[", meaning that a user cannot perform any Flowty actions on the NFT. An NFT may be view-only for several reasons, including:",(0,ms.jsx)("br",{})]})]}),(0,ms.jsxs)("ul",{className:"text-white text-xs font-normal list-disc pl-4",children:[(0,ms.jsx)("li",{children:"NFTs in Dapper Wallets have restrictions."}),(0,ms.jsx)("li",{className:"",children:"The NFT does not have a provider set up."}),(0,ms.jsxs)("li",{className:"",children:[" ","The NFT is stored in a different wallet to the one that a user is currently connected with."]})]})]})]})})),hw=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{asset:n,orders:r,authStore:i}=e;const[o,a]=(0,sa.useState)(r.storefront.length>0?"storefront":r.loans.length>0?"loan":r.rentals.length>0?"rental":"storefront"),{selectCard:s}=wb(),l=(0,sa.useCallback)((e=>{let{listing:t,listingType:r,singleDelistAction:i,singleDelistOrder:o}=e;s({initListingType:r,selected:{contractAddress:n.contractAddress,contractName:n.contractName,nftID:n.id,nftType:n.type},selectedSinglePurchase:t,singleDelistAction:i,singleDelistOrder:o})}),[n,s]),c=(null!==(t=null===i||void 0===i?void 0:i.getAccountSummaryAddresses())&&void 0!==t?t:[]).includes((null===n||void 0===n?void 0:n.owner)||""),{hybridCustodyNFTStatus:u,iterateAndRunScript:d}=(0,bs.g)();(0,sa.useEffect)((()=>{var e,t;const r="".concat(n.contractAddress,".").concat(n.contractName);d([r],(null===i||void 0===i||null===(e=i.loggedUser)||void 0===e?void 0:e.childAccounts)||{},(null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.addr)||"")}),[]);const p=(0,sa.useCallback)((e=>{var t,n;if(e.owner===(null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.addr))return!0;const r=u[e.owner];return void 0===r?null:(null===r||void 0===r||null===(n=r[e.contractAddress.concat(".").concat(e.contractName)])||void 0===n?void 0:n.length)>0}),[u]),h=(0,sa.useMemo)((()=>{var e,t,i,o,a,s,u,d,p,h,f,m,g,v;return c?[{badgeNotification:null!==r&&void 0!==r&&null!==(e=r.storefront)&&void 0!==e&&e.length?null===r||void 0===r||null===(t=r.storefront)||void 0===t?void 0:t.length.toString():void 0,content:(0,ms.jsx)(Xb,{setSelectedListing:l,asset:n,orders:null===r||void 0===r?void 0:r.storefront,isAssetOwner:c}),id:"storefront",label:"Buy"},{badgeNotification:null!==r&&void 0!==r&&null!==(i=r.loans)&&void 0!==i&&i.length?null===r||void 0===r||null===(o=r.loans)||void 0===o||null===(a=o.length)||void 0===a?void 0:a.toString():void 0,content:(0,ms.jsx)(Bb,{asset:n,setSelectedListing:l,orders:null===r||void 0===r?void 0:r.loans,isAssetOwner:c}),id:"loan",label:"Loan"},{badgeNotification:null!==r&&void 0!==r&&null!==(s=r.rentals)&&void 0!==s&&s.length?null===(u=r.rentals.length)||void 0===u?void 0:u.toString():void 0,content:(0,ms.jsx)(Ub,{asset:n,setSelectedListing:l,orders:null===r||void 0===r?void 0:r.rentals,isAssetOwner:c}),id:"rental",label:"Rent"},{content:(0,ms.jsx)(ow,{asset:n}),disabled:!c,id:"accept-storefront-offer",label:"Transfer"}]:[{badgeNotification:null!==r&&void 0!==r&&null!==(d=r.storefront)&&void 0!==d&&d.length?null===r||void 0===r||null===(p=r.storefront)||void 0===p?void 0:p.length.toString():void 0,content:(0,ms.jsx)(Xb,{setSelectedListing:l,asset:n,orders:null===r||void 0===r?void 0:r.storefront,isAssetOwner:c}),id:"storefront",label:"Buy"},{badgeNotification:null!==r&&void 0!==r&&null!==(h=r.loans)&&void 0!==h&&h.length?null===r||void 0===r||null===(f=r.loans)||void 0===f||null===(m=f.length)||void 0===m?void 0:m.toString():void 0,content:(0,ms.jsx)(Bb,{asset:n,setSelectedListing:l,orders:null===r||void 0===r?void 0:r.loans,isAssetOwner:c}),id:"loan",label:"Loan"},{badgeNotification:null!==r&&void 0!==r&&null!==(g=r.rentals)&&void 0!==g&&g.length?null===(v=r.rentals.length)||void 0===v?void 0:v.toString():void 0,content:(0,ms.jsx)(Ub,{asset:n,setSelectedListing:l,orders:null===r||void 0===r?void 0:r.rentals,isAssetOwner:c}),id:"rental",label:"Rent"}]}),[c,r]),f=(0,sa.useCallback)((e=>{a(e)}),[a]);return(0,ms.jsx)(ms.Fragment,{children:!p(n)&&c?(0,ms.jsx)(pw,{}):(0,ms.jsx)(Bs.cs,{tabs:h,activeTab:o,onChange:f,type:"secondary"})})}))),fw=e=>{let{collectionAddress:t,collectionName:n,resourceName:r,nftId:i}=e;const[o,a]=(0,sa.useState)(null);return(0,sa.useEffect)((()=>{t&&n&&i&&Tf.su.api.getItem({contractAddress:t,contractName:n,nftID:i,resourceName:r}).then((e=>{a(e)})).catch((e=>(0,fs.t)({err:e})))}),[t,n,i,null===o||void 0===o?void 0:o.type]),{openSearchNFT:o}},mw=()=>{const{anyUndefined:e,openSearchNFT:t,orders:n,tabs:r,changeTab:i,currentTab:o}=(()=>{const{collectionAddress:e,collectionName:t,nftId:n,resource:r}=(0,js.g)(),i=(0,js.zy)().search,[o,a]=(0,ca.ok)(),s=new URLSearchParams(i),l=(0,sa.useRef)(!0),[c,u]=(0,sa.useState)("history"===o.get("tab")?"HISTORY":"LISTINGS"),d=r||"NFT",{selectCard:p}=wb(),[h,f]=(0,sa.useState)(!1);(0,sa.useEffect)((()=>{const r=[e,t,n].includes("undefined");f(r)}),[e,t,n]);const{openSearchNFT:m}=fw({collectionAddress:"".concat(e),collectionName:"".concat(t),nftId:"".concat(n),resourceName:d}),g=(0,sa.useMemo)((()=>{var e,t,n;return{loans:null===m||void 0===m||null===(e=m.orders)||void 0===e?void 0:e.filter((e=>"loan"===(null===e||void 0===e?void 0:e.listingKind))),rentals:null===m||void 0===m||null===(t=m.orders)||void 0===t?void 0:t.filter((e=>"rental"===(null===e||void 0===e?void 0:e.listingKind))),storefront:null===m||void 0===m||null===(n=m.orders)||void 0===n?void 0:n.filter((e=>"storefront"===(null===e||void 0===e?void 0:e.listingKind)))}}),[m]),v=s.get("listingResourceID");return(0,sa.useEffect)((()=>{if(m&&v){var e;const t=null===m||void 0===m||null===(e=m.orders)||void 0===e?void 0:e.find((e=>e.listingResourceID===v));t&&l.current&&(l.current=!1,p({selected:{contractAddress:m.contractAddress,contractName:m.contractName,nftID:m.id,nftType:m.type},selectedSinglePurchase:t}))}}),[g,s]),{anyUndefined:h,changeTab:e=>{"HISTORY"===e?(o.set("tab","history"),a(o)):(o.delete("tab"),a(o)),u(e)},currentTab:c,openSearchNFT:m,orders:g,tabs:[{key:"LISTINGS",name:"Listings"},{key:"HISTORY",name:"History"}]}})();return(0,ms.jsx)(ms.Fragment,{children:e?(0,ms.jsx)(ky,{}):(0,ms.jsx)("div",{className:"bg-cover bg-fixed bg-no-repeat md:bg-repeat-y",children:(0,ms.jsx)(fv,{children:(0,ms.jsx)("div",{className:"flex flex-col w-full container",children:t?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(vv,{asset:t}),(0,ms.jsx)(Ty,{asset:t,orders:n}),(0,ms.jsx)("nav",{className:"flex justify-between pt-10","aria-label":"Tabs",children:(0,ms.jsx)("div",{className:"-mb-px flex space-x-8",children:r.map((e=>(0,ms.jsx)("button",{onClick:()=>i(e.key),className:"font-bold font-montserrat uppercase text-base text-neutral-900 px-6 py-1.5\n\t\t\t\t\t\t\t".concat(e.key===o?"border-neutral-900":"border-transparent",' \n\t\t\t\t\t\t\t"whitespace-nowrap px-2 border-b-[4px] text-sm"\n\t\t\t\t\t\t'),children:e.name},e.name)))})}),(0,ms.jsxs)("div",{className:"my-[1.5rem]",children:["LISTINGS"===o&&(0,ms.jsx)(hw,{asset:t,orders:n}),"HISTORY"===o&&(0,ms.jsx)(hb,{openSearchNFT:t})]})]}):(0,ms.jsx)(Py,{})})})})})};class gw{static globalSearch(e,t){return cs().post(ss.Sw.concat("/search/global"),e,t).then((e=>e.data))}}const vw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const[t,n]=(0,sa.useState)(e),[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(null),s=(0,sa.useRef)();return(0,sa.useEffect)((()=>{t?(async e=>{var t;i(!0),null===(t=s.current)||void 0===t||t.abort();const n=new AbortController;s.current=n;const r=e.replaceAll(/\s/g,"");try{const e=await gw.globalSearch({query:r},{signal:n.signal});a(e)}catch(o){"canceled"!==o.message&&console.error("Search Request Failed",o)}finally{i(!1)}})(t):a(null)}),[t]),{collections:o,isLoading:r,search:t,setSearch:n}},yw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKWSURBVHgBbVNNaxRBEK3q6ZnZaGKiJJIsIioegof8BsWLCGI8hXwYCCKeclHITQT/RU6SGA/Gk7eAIEG8KF48eIgiEndd4yGKrrs7O9Pd5atZFEkyyw7dPfVeVb16zXTAc2x37Ugzk3kRmiVjHEl46pr5Mo3faO6N5f83cW31plgzRiLXWOiQMBccghc2BZHUONCmRLTlqtc39hHYxupzEh7H0jOzExGAqGARJ0w5EUhYHAXyQvLen5i/pTijr6S2MgPwBOgibCOUHKECw5qAsWLAcEj6Y01gTiWNh5NlYn0FYyZ6QFEAQhnVi5IpWlhM0MrwVavyOPJ4jZQVDH16MAT2qwDa8i8cIwuIDQhYWwwA1ou4mHLWzGlbJOSNhPO0s3rY/E6Tuwg8g54BphhkCdRPhUKlVyHXU5ss0vGFnX7Ige8OvEVgk0RCl9l+WdvF4RCyQhsgjDurHE78BvppF95eoZPTjf6v6yNdl9+DasOIl1BKL21DHKAwZQBnwLc5VHxWnd22nF8qyE4qeGBreTgL3SWKeABxuVYAhZ3RiaGCJTDdAVgPMDL5mLh4rg2g5hjcfnS0Y/0iVB2FPmhJEGagqmeo/owJroszeYHYPulV0oFyH9IovW2zVtFKknlhP4YBVqQUWVQXA3l/OB68XxqprEJkqmyFTQtz/IUxfvdsvpkQukiYgjjB+GLMNQ6i/pFNmOlJ6QMMbDt4avUIQgtBHTima0QtgoFJz0DYm6DuYo7Y2M/+rxPz0bnHGOM7JYBtNGNmYGF1Xyjlxi2gcunVA6i2VoxOv9p3mWx95YIYW8VEx0FQCSTNEqC9R1TAm2+5iH666szLA2/jv6e23pfG+UXvwzliq5W8cd38NZ1eyPaG/gFXZFTsABwhLgAAAABJRU5ErkJggg==",bw=e=>{var t,n,r,i,o,a,s,l;let{collection:c,isLoading:u}=e;const[d,p]=(0,sa.useState)(!1),h="max-w-full object-fill aspect-square";return(0,ms.jsx)("div",{children:u?(0,ms.jsx)("div",{className:"collectionCard h-auto p-[18px] z-10 max-sm:m-auto",children:(0,ms.jsxs)("div",{className:"h-full flex flex-col gap-[14px] overflow-hidden",children:[(0,ms.jsx)("div",{className:"flex animate-pulse bg-[#43ff640a] ".concat(h)}),(0,ms.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,ms.jsx)("div",{className:"w-[211px] h-[16px] animate-pulse bg-[#43ff640a] rounded-lg"}),(0,ms.jsxs)("div",{className:"w-full flex justify-between",children:[(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"w-[50px] h-[15px] animate-pulse bg-[#43ff640a] rounded-lg"}),(0,ms.jsx)("div",{className:"w-[88px] h-[15px] animate-pulse bg-[#43ff640a] rounded-lg"})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"w-[50px] h-[15px] animate-pulse bg-[#43ff640a] rounded-lg"}),(0,ms.jsx)("div",{className:"w-[88px] h-[15px] animate-pulse bg-[#43ff640a] rounded-lg"})]})]})]})]})}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(ca.N_,{to:"/collection/".concat(null===c||void 0===c?void 0:c.address,"/").concat(null===c||void 0===c?void 0:c.name),children:(0,ms.jsx)("div",{className:"collectionCard h-full p-[18px] z-10 max-sm:m-auto",children:(0,ms.jsxs)("div",{className:"flex flex-col h-full gap-[14px] overflow-hidden",children:[!d&&(0,ms.jsx)("div",{className:"flex max-w-full ".concat(h," animate-pulse bg-[#43ff640a] ").concat(d?"hidden":"object-fill aspect-square")}),(0,ms.jsx)("div",{className:"flex max-w-full h-full ".concat(d?"object-fill aspect-square":"hidden"),children:(0,ms.jsx)("img",{src:null!==c&&void 0!==c&&null!==(t=c.collectionDisplay)&&void 0!==t&&t.name?(0,us.getSquareImage)((null===c||void 0===c||null===(n=c.collectionDisplay)||void 0===n?void 0:n.name)||"",c||null):rl.A,alt:null!==c&&void 0!==c&&null!==(r=c.collectionDisplay)&&void 0!==r&&r.name?null===c||void 0===c||null===(i=c.collectionDisplay)||void 0===i?void 0:i.name:"",onLoad:()=>{p(!0)},onError:ol.R,className:"".concat(d?"object-fill aspect-square w-full":"hidden")})}),(0,ms.jsxs)("div",{className:"flex flex-col gap-[18px] text-[#FFFFFF]",children:[(0,ms.jsxs)("div",{className:"w-full flex gap-2 items-center text-[#F8F9FA]",children:[(0,ms.jsx)("p",{className:"text-sm sm:text-lg uppercase font-black break-words max-w-[300px] text-ellipsis whitespace-nowrap overflow-hidden",children:null===c||void 0===c||null===(o=c.collectionDisplay)||void 0===o||null===(a=o.name)||void 0===a?void 0:a.replaceAll("-"," ")}),(null===c||void 0===c?void 0:c.isNFTCatalog)&&(0,ms.jsx)("button",{id:"anchor-select",children:(0,ms.jsx)("img",{src:yw,alt:"Catalog check mark","data-tooltip-place":"top","data-tooltip-id":"".concat(null===c||void 0===c?void 0:c.name,"-verified-tooltip")})})]}),(0,ms.jsxs)("div",{className:"w-full flex justify-between",children:[(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"text-xs font-normal text-[#CED4DA]",children:"Total Items"}),(0,ms.jsxs)("p",{className:"text-base uppercase font-bold",children:[(null===c||void 0===c?void 0:c.totalItems)&&(c.totalItems<1e3?c.totalItems:Tl()(c.totalItems||0).format("0.0a").toLocaleUpperCase())," "]})]}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"text-xs font-normal text-[#CED4DA]",children:"Floor Price"}),(0,ms.jsx)("p",{className:"text-base uppercase font-bold text-right",children:null!==c&&void 0!==c&&null!==(s=c.floorPrice)&&void 0!==s&&s.valueInUSD?"$".concat(null===c||void 0===c||null===(l=c.floorPrice)||void 0===l?void 0:l.valueInUSD.toFixed(2)):"-"})]})]})]})]})})}),(0,ms.jsx)(nc.m_,{id:"".concat(null===c||void 0===c?void 0:c.name,"-verified-tooltip"),style:{backdropFilter:"blur(100px)",backgroundColor:"#33333380",zIndex:999},anchorSelect:"#anchor-select",clickable:!0,children:(0,ms.jsxs)("div",{className:"flex flex-col gap-2 z-50",children:[(0,ms.jsxs)("div",{className:"flex gap-1",children:[(0,ms.jsx)("img",{src:yw,alt:"Catalog check mark",className:"w-[16px] h-[16px]"}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#F8F9FA]",children:"Verified Collection"})]}),(0,ms.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,ms.jsx)("p",{className:"text-sm font-normal text-[#ADB5BD] leading-none",children:"Verified by the"}),(0,ms.jsx)("a",{href:"https://www.flow-nft-catalog.com/",target:"_blank",rel:"noreferrer",className:" text-sm font-normal text-[#04E5A3] leading-none",children:"Flow NFT Catalog"})]})]})})]})})},ww=e=>{let{count:t=8}=e;const n="".concat(ss.Sw,"/collections"),[r,i]=(0,sa.useState)([]),[o,a]=(0,sa.useState)(!1),[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(0);(0,sa.useEffect)((()=>{a(!0),cs().post(n,{offset:t*c,size:t}).then((e=>{var t,n,o,s,c;i([...r,...null!==(t=null===(n=e.data)||void 0===n?void 0:n.collections)&&void 0!==t?t:[]]),l(r.length+(null!==(o=null===(s=e.data)||void 0===s?void 0:s.collections)&&void 0!==o?o:[]).length>=(null===(c=e.data)||void 0===c?void 0:c.total)),a(!1)}))}),[c]);const d=xl({isLoading:o,onInfiniteScroll(){u(c+1)}},[r]);return(0,sa.useEffect)((()=>{ds.o.track("All collections page visited")}),[]),{collections:r,endOfData:s,isLoading:o,onScrollRef:d}};var xw=__webpack_require__(38190);const Cw=()=>{var e;const{collections:t,endOfData:n,isLoading:r,onScrollRef:i}=ww({count:21}),{search:o,setSearch:a,collections:s}=vw(""),l=(0,sa.useMemo)((()=>window.innerWidth>=1280?[0,1,2,3,4,5,6,7]:window.innerWidth>=768?[0,1,2]:[0,1]),[window.innerWidth]),c=(0,js.Zp)();(0,sa.useEffect)((()=>{c(window.location.pathname,{replace:!0})}),[c]);const u=t.slice(0,5),d=null!==(e=null===s||void 0===s?void 0:s.contracts)&&void 0!==e?e:[];return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty NFT Collections: From NBA TopShot, UFC Moments, NFL All Day to Jolly Jokers, Flovatar and more!",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsxs)("div",{className:"mt-4 container",children:[(0,ms.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-[16px] lg:gap-0 lg:flex-row md:justify-between",children:[(0,ms.jsx)("p",{className:"text-2xl uppercase font-black max-sm:text-center self-start","data-testid":"collection-list-header",children:"Collections"}),(0,ms.jsx)(Bs.Ol,{onBlur:()=>a(""),popularSearches:u,onChange:a,hits:d,value:o,placeholder:"Search NFT Collections",debounceTime:300,labelText:"Search NFT Collections"})]}),t.length>0&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"mt-5 grid grid-cols-2  smMobile:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-auto 2xl:grid-cols-5 3xl:grid-cols-7 gap-[12px] max-sm:justify-center",children:[null===t||void 0===t?void 0:t.map(((e,t)=>(0,ms.jsx)(bw,{collection:e},"".concat(e.address,"-").concat(e.name,"-").concat(t)))),r&&(0,ms.jsx)(ms.Fragment,{children:l.map(((e,t)=>(0,ms.jsx)(bw,{isLoading:!0},t)))})]}),!r&&!n&&(0,ms.jsx)("div",{className:"w-full flex justify-center mt-2",children:(0,ms.jsx)(Cl,{})})]}),n?(0,ms.jsx)("p",{className:"justify-center items-center flex flex-row mt-16 animate-pulse color-[#D9D9D9] text-sm font-semibold",children:"Nothing else to see here!"}):(0,ms.jsx)(ms.Fragment,{children:r?0===(null===t||void 0===t?void 0:t.length)&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"w-full h-auto mt-12 hidden xl:grid xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-7 gap-[12px] auto-rows-1fr",children:Array.from({length:21}).map(((e,t)=>(0,ms.jsx)(bw,{isLoading:!0},t)))}),(0,ms.jsx)("div",{className:"w-full h-auto mt-12 grid max-md:hidden md:grid-cols-3 lg:grid-cols-4 xl:hidden gap-[10px]",children:[0,1,2,3,4,5,6,7,8].map(((e,t)=>(0,ms.jsx)(bw,{isLoading:!0},t)))}),(0,ms.jsx)("div",{className:"w-full h-auto mt-12 grid max-smMobile:grid-cols-1 max-md:grid-cols-2 md:hidden gap-[10px] max-sm:auto-cols-min justify-center",children:[0,1,2,4,5,6].map(((e,t)=>(0,ms.jsx)(bw,{isLoading:!0},t)))})]}):(0,ms.jsxs)(ms.Fragment,{children:[(null===t||void 0===t?void 0:t.length)>0&&(0,ms.jsx)("div",{ref:i,className:"mt-[8rem]"}),(0,ms.jsx)("p",{className:"justify-center items-center flex flex-row animate-pulse color-[#D9D9D9] text-sm font-semibold",children:"Loading More"})]})})]}),(0,ms.jsx)(ms.Fragment,{children:n&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(xw.c,{}),(0,ms.jsx)(Bs.$z,{subscribeEmailToNotification:Ac,mixPanelFn:(e,t)=>{ds.o.track(e,t)}})]})})]})};function Aw(e){return e.reduce(((e,t)=>{var n;const r={...e};return r[t.collection]={count:t.count,traits:null===t||void 0===t||null===(n=t.traits)||void 0===n?void 0:n.reduce(((e,t)=>{const n={...e};return n[t.name]={count:t.count,values:{}},t.values.forEach((e=>{n[t.name].values[e.value]=e.count})),n}),{})},r}),{})}const Ew=!0,_w=ss.hr?{loan:{},rental:{},storefront:{}}:{loan:{},rental:{}},Tw=(0,sa.createContext)({canScroll:!0,facets:[],fetchSearchResults:()=>{},filters:{},hits:[],initialLoading:!0,isFilterHidden:!1,isLoading:!0,isLoadingFacets:!0,matchedCount:0,noFilterMappedFacets:{},onlyUnlisted:!1,orderFilters:_w,page:1,pageCount:0,paymentTokens:null,publicAccount:null,search:"",serialFilter:null,setFilters:()=>{},setIsFilterHidden:()=>{},setOnlyUnlisted:()=>{},setOrderFilters:()=>{},setPage:()=>{},setPaymentTokens:()=>{},setSearch:()=>{},setSerialFilter:()=>{},setSort:()=>{},setWalletAddresses(){},sort:null,walletAddresses:[]}),Sw=24,kw={direction:"desc",listingKind:"storefront",path:"blockTimestamp",prefix:void 0},Pw={direction:"desc",listingKind:null,path:"latestBlock",prefix:""},Dw={storefront:{}},Fw=e=>{let{publicAccount:t,collectionPage:n,children:r,defaultShowOrders:i=!1,endpoint:o,isHomeScreen:a}=e;const s=(0,js.zy)(),l=(0,js.Zp)(),c=s.search,u=new URLSearchParams(c),d=s.pathname,p=(0,us.safeParseJSON)(u.get("collectionFilters"))||{},h=(()=>{const e=(0,us.safeParseJSON)(u.get("orderFilters"));return e||(a||"collection"!==o&&"marketplace"!==o?{}:Dw)})(),f=(0,us.safeParseJSON)(u.get("sort"))||null,[m,g]=(0,sa.useState)(!1),[v,y]=(0,sa.useState)(!1),[b,w]=(0,sa.useState)((0,us.safeParseJSON)(u.get("walletAddresses"))||("user"===o?[(null===t||void 0===t?void 0:t.addr)||"",...Object.keys((null===t||void 0===t?void 0:t.childAccounts)||{})]:[])),[x,C]=(0,sa.useState)([]),[A,E]=(0,sa.useState)(""),[_,T]=(0,sa.useState)(p),[S,k]=(0,sa.useState)([]),[P,D]=(0,sa.useState)([]),[F,N]=(0,sa.useState)(0),[I,R]=(0,sa.useState)(1),[O,j]=(0,sa.useState)(!0),[M,L]=(0,sa.useState)(!0),[B,U]=(0,sa.useState)(!0),[V,H]=(0,sa.useState)((()=>{const e=u.get("sort");return e?(0,us.safeParseJSON)(e):"user"===o?Pw:f||kw})),[z,W]=(0,sa.useState)(h),[q,G]=(0,sa.useState)(null),[Y,K]=(0,sa.useState)((0,us.safeParseJSON)(u.get("paymentTokens"))),[Q,X]=(0,sa.useState)((0,us.safeParseJSON)(u.get("serialFilter"))),[Z,J]=(0,sa.useState)([]),[$,ee]=(0,sa.useState)(""),{iterateAndRunScript:te}=(0,bs.g)(),ne=(0,sa.useRef)(!0),re=(0,sa.useRef)(""),ie=(0,sa.useRef)(null),oe=(0,sa.useRef)(null),ae=(0,sa.useRef)(null),se=(0,sa.useRef)(!0),[le,ce]=n||[],ue=n&&((e,t)=>({collection:"".concat(e,".").concat(t),maxSerial:void 0,minSerial:void 0,traits:[]}))(le||"",ce||""),de=(0,sa.useMemo)((()=>{const e=i?Object.keys(z).length>0?z:_w:z;return Object.keys(e).map((t=>({conditions:Object.keys(e[t]||{}).map((n=>{var r;const i=null===e||void 0===e||null===(r=e[t])||void 0===r?void 0:r[n];return{gte:null===i||void 0===i?void 0:i.min,lte:(null===i||void 0===i?void 0:i.max)||null,path:n}})),kind:t,paymentTokens:"user"!==o&&Y?null!==Y&&void 0!==Y&&Y.dapper?Object.keys(Y.dapper):Object.keys((null===Y||void 0===Y?void 0:Y.other)||{}):[]})))}),[z,Y]),pe=(0,sa.useMemo)((()=>{const e={..._};null!==ue&&void 0!==ue&&ue.collection&&!e[ue.collection]&&(e[ue.collection]={});return Object.keys(e).map((t=>{const n=e[t],r=Object.keys(n);return{collection:t,maxSerial:null!==Q&&void 0!==Q&&Q.max?null===Q||void 0===Q?void 0:Q.max.toString():void 0,minSerial:null!==Q&&void 0!==Q&&Q.min?null===Q||void 0===Q?void 0:Q.min.toString():void 0,traits:r.map((n=>({name:n,values:Object.keys(e[t][n])})))}}))}),[_,ue,Q]),he=(0,sa.useMemo)((()=>"collection"===o?"".concat(ss.Sw,"/collection/").concat(le,"/").concat(ce):"user"===o?"".concat(ss.Sw,"/").concat(o,"/").concat(null===t||void 0===t?void 0:t.addr):"".concat(ss.Sw,"/").concat(o)),[le,ce,o,null===t||void 0===t?void 0:t.addr]),fe=e=>{var n;const r=b.filter((e=>((null===e||void 0===e?void 0:e.length)||0)>2));if(e)return{address:(null===t||void 0===t?void 0:t.addr)||null,addresses:r,collectionFilters:[],from:0,includeAllListings:Ew,limit:I*Sw,onlyUnlisted:v,orderFilters:[],sort:V};if("all"===(null===de||void 0===de||null===(n=de[0])||void 0===n?void 0:n.kind)){const e={direction:"desc",listingKind:null,path:"blockTimestamp"};return{address:(null===t||void 0===t?void 0:t.addr)||null,addresses:r,collectionFilters:pe,from:0,includeAllListings:Ew,kind:"storefront",limit:I*Sw,onlyUnlisted:v,sort:JSON.stringify(V)===JSON.stringify({direction:"desc",listingKind:"all",path:"latestBlock"})?e:V}}return{address:(null===t||void 0===t?void 0:t.addr)||null,addresses:r,collectionFilters:pe,from:0,includeAllListings:Ew,limit:I*Sw,onlyUnlisted:v,orderFilters:de,sort:V}},me=(0,sa.useMemo)((()=>Aw(S)),[S]),ge=(0,sa.useMemo)((()=>Aw(P)),[P]),ve=(0,sa.useCallback)((async()=>{const e=fe(!0);if("collection"===o){const e="".concat(le,".").concat(ce),t=await yv(e);if(!t)return;D([t])}else try{var t;const n=await cs().post(he+"/facets",e,{signal:null===ae||void 0===ae||null===(t=ae.current)||void 0===t?void 0:t.signal});D(n.data.facets)}catch(n){ds.o.track("ERROR_FETCHING_INITIAL_FACETS",{error:n})}}),[]),ye=async e=>{if("collection"===o&&le&&ce&&e){const e="".concat(le,".").concat(ce),t=await yv(e);if(!t)return;k([t]);const n=Aw([t]);G(n),U(!1)}else try{var t,n;const e=fe(!1),r=await cs().post(he+"/facets",e,{signal:null===ae||void 0===ae||null===(t=ae.current)||void 0===t?void 0:t.signal});r.data.facets.length>0&&"collection"===o?k([null===(n=r.data.facets)||void 0===n?void 0:n[0]]):k(r.data.facets);const i=Aw(r.data.facets);G(i);const a=Object.keys(i);J(Object.keys(i)),ee(a.join(",")),U(!1)}catch(r){ds.o.track("FAILED_OSC_FACET_REQUEST",{err:r})}},be=async e=>{var t,n,r,i,o,a;const l=fe(!1),c=JSON.stringify(l);if(re.current===c&&!Boolean(e))return;L(!0),U(!0),null===(t=ie.current)||void 0===t||t.abort(),ie.current=new AbortController,re.current=c;try{const e=await cs().post(he,l,{signal:ie.current.signal});C((t=>((e.data.nfts.length>=t.length+Sw||0===t.length)&&(ne.current=!0),e.data.total===e.data.nfts.length&&(ne.current=!1),e.data.nfts))),N(e.data.total),O&&j(!1),L(!1)}catch(u){ds.o.track("FAILED_OSC_NFT_REQUEST",{err:u})}null===(n=oe.current)||void 0===n||n.abort(),oe.current=new AbortController;s.pathname.includes("/collection")&&0===(null===(r=l.collectionFilters)||void 0===r||null===(i=r[0])||void 0===i||null===(o=i.traits)||void 0===o?void 0:o.length)&&0===(null===l||void 0===l||null===(a=l.orderFilters)||void 0===a?void 0:a.length)?await ye(!0):ye(!1)};(0,sa.useEffect)((()=>{te(Z,(null===t||void 0===t?void 0:t.childAccounts)||{},null===t||void 0===t?void 0:t.addr)}),[$]),(0,sa.useEffect)((()=>{R(1),ne.current=!0}),[_,de,V]),(0,sa.useEffect)((()=>{be()}),[A,pe,de,V,I,Q,b,t,d]),(0,sa.useEffect)((()=>{se.current&&(se.current=!1,ve())}),[]);const we={collectionFilters:JSON.stringify({}),orderFilters:s.pathname.includes("/user")?JSON.stringify({all:{}}):JSON.stringify({storefront:{}}),paymentTokens:JSON.stringify(null),serialFilter:JSON.stringify({max:"",min:""}),sort:s.pathname.includes("/user")?JSON.stringify({direction:"desc",listingKind:null,path:"latestBlock",prefix:""}):JSON.stringify({direction:"desc",listingKind:"storefront",path:"blockTimestamp"})};(0,sa.useEffect)((()=>{const e={collectionFilters:JSON.stringify(_),orderFilters:JSON.stringify(z),paymentTokens:JSON.stringify(Y),serialFilter:JSON.stringify(Q),sort:JSON.stringify(V)},t=new URLSearchParams(s.search);Object.entries(e).forEach((e=>{let[n,r]=e;r===we[n]||"null"===r||"{}"===r||"{{}}"===r?t.delete(n):t.set(n,r)}));const n=t.toString();if(n&&c.replace(/\?/g,"")!==n){if("/"===s.pathname)return;l("?".concat(n),{replace:!0})}else n||""===c.replace(/\?/g,"")||l(s.pathname,{replace:!0})}),[_,z,V,Y,Q,s,c,l]);const xe=(0,sa.useMemo)((()=>({canScroll:ne.current,facets:S,fetchSearchResults:be,filters:_,hits:x,initialLoading:O,isFilterHidden:m,isLoading:M,isLoadingFacets:B,mappedFacets:me,matchedCount:F,noFilterMappedFacets:ge,onlyUnlisted:v,orderFilters:z,page:I,pageCount:Math.ceil(F/Sw),paymentTokens:Y,publicAccount:t,search:A,serialFilter:Q,setFilters:T,setIsFilterHidden:g,setOnlyUnlisted:y,setOrderFilters:W,setPage:R,setPaymentTokens:K,setSearch:E,setSerialFilter:X,setSort:H,setWalletAddresses:w,sort:V,walletAddresses:b})),[ne,S,be,_,x,O,m,M,B,me,F,ge,v,z,I,Sw,Y,t,A,Q,T,g,y,W,R,K,E,X,H,w,V,b]);return(0,ms.jsx)(Tw.Provider,{value:xe,children:r({hasNoSpecifiedOrderTypeSelected:1!==Object.keys(z).length,initialLoading:O,isFilterHidden:m,mappedFacets:me,referenceFacets:q})})},Nw=()=>{const e=(0,sa.useContext)(Tw);if(void 0===e)throw new Error("useMarketplaceAppContext must be used within a MarketplaceAppProvider");return e};var Iw,Rw=__webpack_require__(68875);function Ow(){return Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ow.apply(null,arguments)}function jw(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",Ow({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Iw||(Iw=sa.createElement("path",{d:"M12.4999 12.5L10.8332 16.6666L7.49986 7.49998L16.6665 10.8333L12.4999 12.5ZM12.4999 12.5L16.6665 16.6666M5.99005 1.86542L6.6371 4.28023M4.28005 6.63725L1.86523 5.9902M11.6246 3.37522L9.85685 5.14299M5.14288 9.85695L3.37512 11.6247",strokeLinecap:"round",strokeLinejoin:"round"})))}const Mw=sa.forwardRef(jw),Lw=(__webpack_require__.p,()=>{const{toggleBulkList:e,bulkListActive:t}=(0,ws.h)(),n=(0,js.zy)();return n.pathname.includes("profile")?(0,ms.jsx)(ms.Fragment,{children:n.pathname.includes("profile")&&(0,ms.jsxs)("button",{"data-testid":"bulk-select-btn",onClick:()=>{e(),t?ds.o.track("BULK_SELECT_CLOSED"):ds.o.track("BULK_SELECT_OPENED")},className:"w-auto h-fit lg:!w-max py-2 px-4 flex justify-center items-center gap-1.5 rounded-md group cursor-pointer border bg-[#FFFFFF] backdrop-blur-sm\n                    \t\t\t\t\t\t".concat(t?"bg-opacity-[8%] border-emerald-400":"border-transparent hover:bg-opacity-[15%] bg-opacity-[8%]","\n\t\t\t\t\t\t\t\t\t\t"),children:[(0,ms.jsx)("p",{className:"text-sm font-medium ".concat(t?"text-emerald-400 ":"text-white","\n\t\t\t\t\t\t"),children:"Bulk Select"}),(0,ms.jsx)(Mw,{className:"h-6 w-6 ".concat(t?"stroke-emerald-400":"stroke-white","\n\t\t\t\t\t\t")})]})}):null}),Bw=__webpack_require__.p+"static/media/dapper_logo.888a3a9ebcc8ca3fa421.png";var Uw,Vw,Hw,zw=__webpack_require__(42777);function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(null,arguments)}function qw(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",Ww({width:19,height:18,viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Uw||(Uw=sa.createElement("rect",{x:.5,width:18,height:18,fill:"url(#pattern0)"})),Vw||(Vw=sa.createElement("rect",{x:.5,width:18,height:18,fill:"url(#pattern1)"})),Hw||(Hw=sa.createElement("defs",null,sa.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:1,height:1},sa.createElement("use",{xlinkHref:"#image0_1401_13622",transform:"scale(0.005)"})),sa.createElement("pattern",{id:"pattern1",patternContentUnits:"objectBoundingBox",width:1,height:1},sa.createElement("use",{xlinkHref:"#image0_1401_13622",transform:"scale(0.005)"})),sa.createElement("image",{id:"image0_1401_13622",width:200,height:200,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWIElEQVR4Ae1dX4ge1RW/k9TaClFTBNGUkvhvtwTUqvkWoSWx1se2mxd90uhTBQMayIakDzXpQxOyC0ZIwT41q0/6ktg+atRgQbLRWoXF3WhNFIwIQtSAbSphytnN/fbutzPz3XvuueeeO3MHdme+mfvnnN85v7n/7xQqHywIjE7MPFoq9VeKzIqi3Dd3cGwvRVo5jWYEiubH+aktAiMTM28opTbbhg8c7sT8ZG9L4Dw6kXwmCMLMoztPbSmL8nVE1GhRyqLcevrg2LFoAiSacSaIpeFGJmZKy6BJBLv43RVrzx762VdJCBtRyEyQGvDbRogaNfu35yd72Rf6aCxdZFCWsFBdI4Wh+rLLTJYlODpPkNt2nRwvyuLoEiT5qo9AWeyYn9p0qP+7gxedJUguLdy8vVh9acPcgXvPusVKP3SnCJJi75M0FyuUemxusndEmlyh5OkEQW6dmLlzlVLvhgKxi+l2hSitJkiuRvFQt82N+lYSRNioNo+XRs+l/GR+cmx9dDGIBWgdQXKpQewhjsm1bQCyFQQZ3f3W+vLS6jOOtszBAyJQlMV9c1ObYH5a0kfyBMklhmz/S719kixB8gCfbGKY0qU8PT9JguRSw3S/dK5TLE2SIkjunUqHDA2Sfj0/2bu24bmoR8kQJJcaovzGW5hUShPxBKFcqupt1ZwAKQJlqaZPT/UeJU2UODHRBBnZOfMvVag7iHXOyclCQHSVSyxBcpVKlheHlkZqlUskQTI5QrujzPQlkkQUQdY/9e61V17x3XmZ5stScSAgbXMJMQQZmTh5TKnitxxGyHmIR0BMu0QEQXKVSrzDRhFQQpUrOkEyOaL4XjKZxiZJVIJkciTjp1EFjUmSaATJ5Ijqc8llHoskq2IglTo5tj+wTs0d3BQDOlSeIOvvf/MTVFwpkWL5DHsJEktRX0P/9Mar1NGnNlYmM7rrVOX92DeP7dioRm+4aoUY26c/Uq/Optmbzl2SsBIkNXJc/cPVambfXSscbPCGVILYlHL3739ffXb+4qBKon9zkoStipUSOXo3r1moQtmQQ7QnWQh3fM/tC7puvec6i9AygnD6EksJwqmQjwkPPLRBjd/t7igplyCDeJ36+IJ6+Lm5wdsif3OUJMEJksIIuU1VpMlD2kQQU0+pehkyBh9xD1rFgrlVkqeP6KqUAXi+NBCAF4fwqtc1sF7IEJn8MihBJE88BOM//7tRckDbluD+BzeI7tKm+u5jnd2CVbGktjt8q1NVQEqtinRJ11DtkSAliERy/GrjWtFvwiriSbwHpJM46BjK58gJsrBMVphlwaiHt90iTKp0xXnk59eLfNmEIAkpQRYaTILWkMPod4hqRrquTSs5YCutEb/Ya0qnJ2kbJASDsapixzRc85Pa/tB6cLwg5j7/Vo0/M6uzjH6mbI+QEUQSOTic4tg7X6rdL6axX/a2X1yv9vw6/GRFSS8LKpKQEETSjochyXHhv5fUpj/8M/ob0keA1/bcoW5c+32fJBrjCiIJySAiFUHKRtSYHoYix+FXzqnDr3zGpAVPNtB2gDGOEIcUklCUIt4EkVC1sp116+oM587/T/1y/3uu0ZIK/8Ljo2rTTWvIZd56aFZ9cO5b8nRdE/QliRdBJHyCIMSbsAvEGHS0EJ0aMtpp5cvzk2Pjg/ra/vYiSOzSI4RRpVQPbA1IHY66miqhh8unFEETpG3kaGM7A0semMRJOU8tZZKgBgrhm4BY8CniQbUKs26jKm/omYJSo22N8Cpdbe/N/PvCAiZQ1aQ4YNkvlPYxD+ysXxRBYn4wExrkVL0ve146k3y3bUingw4KaGxTHPBCiznqjp31i6pixaxeUdWRJbQ1bMYkpIy9tAH3YvWlDXMH7j3rQnjnEiSTwwXe+rDgcDYDdmt+sFrEfDKqFwoV0eqRrX+Cqfk4EeTyiHm9BAGfUAALjUUqQwdUVWzSgB103foeFLbEyjAyMfOVS1wngiilNrskThWWAlDYC0rShDoqbLjTgflnvaf9p9tQ2BSp+zUu8awJEqtqRQEkvPlS3SjNxZhcYb/5z2LPn29+FLbFyODiy9YEwQgiIU6uUoWzQhewtSLIrRMzd4aDuT5l3zdMFwxYjx7PE1+MfW2M1XJ018m9NnGtCLJKqXdtEqMM4wscRT2ZUp82p5UiScqyeNrGJkMJMrrz1BabhCjDwO7pPgcMbkE9OR98CPi+kGCjbe5jZGLm0LA8hxKkLMrXhyVC/Xz7Azeik4SuXAnTrNEKJBoRXkgwnw17VO1Cj03LId6Tw8IOJciwBKif+1atclcutUXs0/Odz+Zre3tJl0LCko2lXyuvGgni0h22Mmn+O751YX6J25ejrw1grh3nUZTF0ab8GgnSFDHEM583iK9hQujT1TR9bCHtkxO1kxW5Vwue+uNdCuYdYQ4fg2Dyw8Sp+9qTa1owA/no2/7TPVzzxYRP5YVXlmr69FSvchPs79UpPqzoqYuHvY8lBzY/jnhUpDBlhan+err//r9/qqbf/MJ8nK8RCBSF2qaUqiSIiCqWzzoBiaUHvDnhL3TPDOx1BfnAtHmJh49tYDMJCUdlFYu7cY4tin0MEAJ8rB5UskjdbAKLC7d9q9auRy9BpL79XJ0W6wSu+TSFh/UlEuRoktHlmQRdohPEZtFQFajcb5cqGeAeVAUkGNKUT5o8UmxlYmR7vYIgnNUr6LnCHLAMVcIBjhhi0zUK3UA22N1eynF81mmdUl9sTrJX+f4KgvQlY7jA9lxJ2B+X03BYUxx9in9+U52sT0x/WPdI9P2oBMEgQ7HkE5OvGcd3MqWZVuhrSUR+5C9pfF7atEk0gmANF/uTAzAVwmcypQk+1zUWa2r5YL8tzMEp/+DcrGUDhVV1MIxCoeLcv//9UElbp0sxFQLepLbOsm7tler4ntut5ZMeEBrsnA7visflAfL+8EeUEgT7EcjPzl901Zc0vO9EOnAO+LMlBwgPOut4PspIdkobvWINBywrQWwEpQgDH4FM8cCWHuDgFIdOB+vssOeuCzkpZK5KAwY0Xbv3XcNX5Yu51y9BYqwcdBFYO4dLHAlhQ8iNTZNyQ2ofbKV/c8VcadgnCNfKQezYh49BKOJi39oUeVel4bN6ryq9FO4x2qC/0rBPEC6AMGMf2Dcml051+YSU23f1Xp3MXPdDYkOpAztBKIXveloYJ2N8C7fCPJkgFmaEzyi7HikOirnq2IXwCwTh2pQa8/bCvCWpDYf5xriE3iJqHKjTw9gW40MYufWYoC5BomxKjRE8x1mOgKuTuYZfnlv3fmmCdE/zFmls6/S24VoEjbcqUQYKbaWm+kaebX6U4WCqOecGdqk6//P/+EK5DhxzDniylSCY8Q/pA0pNhJI01bxJztjP/vS3T51F4BzwZCMIZvzDGblAEWA703x0EwE2gqQM7yPP4dYxYErNlHFqo+yZIBZWhY2ZMUfKpSZGX2wcqW1NmJ+4CvuBdSwYtvHaMtAG/fawpiMf9QhIbWuWRbl3FfYD6/XqrnwCvQ6uR5sG2mDBUyaKqwc0hz/w0IbmADRPN7NUsQ48eBONuBFToehG1UThGg2OCFfwrMfvvi54HpAByzhIrMUuLAgiMzFJcurjC+phZEcAMvsczRIBFoJYyiI+GHxmDLuqsEk52FvLJIwZNpPHRIP/OhPEAXNsb5ZDFiuCVpFn+/RH+bvvK5AKcyMTxBFXaIvUve0dk0IHP7ztln5c2GVSwkZ6fYFadsHSSG8ZZgu7jEjRCcZagLD6T4pcrnJAVVLiIZIgUsEyDUjRq2WmR3WdKlFOIjeVo8KtLh2RBJEK1iCIvt8GH0yP8jcQBbv/GKUctmnNfPyNbVDWcCIJwoqAR2bQaIeSROpUCZhGDkTJBx6BTBA8dv2YMFVCapULhMwk6ZvK+SITxBmy+ghAEqlEySSpt1vTE5EEGUPM3WpSkvuZJoo0skgmSe+mq7nNZJWfSIJI/WqTFaIDgUyySNgNUeoalR//6PsDyMn4mQcKGe0AuyEO7ogIH+Ph/N6I1DUqXJMPXc2dCeKKGHH4KtLoLEJViSBdadU/rbO0cyaINIsY8phODLs7YjawM5LLlwgERLZBEHq0Psr0m18svPVN0vgozbTgyEdEEXFXFUW5T4QkWQhrBHTD3zpCRUCpdf4KUWPeOrFq7uDY3tASwPTsfNAjQFWa0EsWPkWO+XpFWexlqWK9OnveGTHf7wE6Z5hohK6ShGMF5tzUpjdYCILxvRAr9zBypBAn9RL6hcdHxcIsliBiERMoGKaElqSG5IHhTBBJnpJlEYdAHgcZYhLYpd1lI+qutgmGwJjsY7YSBOM4EuqmLuQAL8jjC25cwHzejrPNpQlywk0tntCS66Z1COTxhTpkqu9jZgdwtrkWCDI/2dtSLX6+mxHoJgLzk70CNNclSDdRyFpnBIYgwEoQzCYHr+25Y4gK8h6HmoUrT1M/iTCbSux56Yxfpo6xWQmC2Zkw9r6+x9750hFS/uCpEtL124SA7NG3ee3RJ0hZlFv5TSs/x90v4t5Y0p0WPp6Zj2oEylJN6yd9gpw+OHZM35R2lu5sdXhtvSf8Fv1YbDAfz6zTE3MfKzcmL9c4p6d6j+o4fYLoG6HPmPGQ0DINSx87c3T/gxtUyEmXkp1sGKaY5zF8h50gGGAgTszNBnxmjsKky2M7NmLVro3nQ44YjmYq8udtt5o/RV8vI8jF765YK1Xa2JsNYEsRwHP0hqvINm+D7x36kEOCfe/feK0EMSplKJR6zHywMBhi3hiZmCnN36GuMUaGbmJMTxiVDhiZ6/J2fYtT5e2ab538PvcxunDJrQcItX5JTVaE6goXUBog8wx5Y4xrpqGvqdLR6dmcMeNQNum6hImht4t8g2GXVbEGH4b8HdPRffSSulH1MJ3gQzsxS99h8jU9j/lJ8BUEGSximgSP8Sz2Gwg2qk5h8NC0Dcgr4StUWNtxfRK8yvdXEMQEVup17GnwMHiYEkmwg52U9sdMa6fMH5tWVIJgq1kSpsGD0819/i0Wd5Z4x2e/itpmM5XETGuH+FgfMfP2uV7Ri6UTk9ybpWWMDZ6WA1t10PFDnKVgA7rBhFPsnDouPaqqVyB71BIEBOACIIQT6jRBB59xEp0OxRnkkIapdHI04V5PkLLY0RRRwjNJb24YbQfHjNnLBfn7jPqHsKkkG9XqV6r36p7VVrEgAlc1C/LyAVLaG1OD7aOTTmPYWaruKdm0rnoFOiQ1UDjMWaQ9N50XFgdh1j9U6WSmW/U836NDoLEEGd391vry0mrcggiEjD5v3NScxlXXtutnugunrjD3am6yd8TM37yub4NAtefAvWfNwKGvfaZCuDpcaF26nL6PLbhHzZvIATZsJAgEGJzdGNLwvlMhfAwTUq8upe27LIFr1HzRJuXLw2wzlCDDGDYsA9fnnMWrq2w5/HAEfJYlcNt+fnJsfJhGQwkCCXCWIpCfzwg1lCIhV/ENA7TLz1Mqwc115002syIIdyky/sxsk8xDn8G0+HzwIuBLDu7Sw1x33oSUFUGaEgj1zBcwX4OF0quN6fpi7WvrkJhaE6RpMCWUgL7A+RoulF5tStcXY5+eSyyOLr5sTZBFYcpPsELFiudrwFhyp5AvBba+PZehcXIiyPzk2PrQAg2m71uKQHoUhhyUq+u/KTClsK2rHVxKD0jbiSAQIcbOJxRAgkG3P7DOFc8cfgAB+KBQquQoyuK+AXWG/mycalIXm3MSoykDhWEgPQrCmXJhrl11kSAzDAL6jHNonGLp4lp6gLzOJQhEwjBRg+NzhhVyFIerc1LkOZiGi5O4hB3Mh+o3YEZBDtg8ItLxLCZfVAkCGcUqRWC/W9jSk+KIvc8WhQ4caVC9UGAdf6z18ZjSA7BFEwQixyIJbF1JtTsflEpPTH/I4WfJ5QEbLWDXkg8qCyVHrJ1VsOQAHVBVLK18UZT79DXnmdKhgWhUb0hODELnBZhQkQNkjUUO1bBa0AZDrxIEMohVikDesCk07HtLeUio71Pq45oWVUPczDcmpj6lB+jgVYJAAr4CmEC6XsOcLZ+JjVX5wZuT47seVXnHvNe7ec1CSUrRENd6QLUqZXKAHt4lCCQyMjED3UvXaGC4z6GqSDGNy4lhW/GjeHmTEOQySVh2ha9zHJjiHmoWb1t7u0IRY+uhWfXBubib6lGQA3yNjCASSAIyhDI6pA3f9Yv96TKQw+eg7CavkkNCqUtFDtCPlCC37Zw5UhRqWxVwnPdCkkTrIcERtCw2Z5/dDW3ShzAyMCk/oZwzSEoQACl2e0QbM0RvjE7bPMtwClOi5dccLwvIUQoOlKUH6OXdi7XcHAu9WiK+rwX97hyfOuZywEGcbX5zyAa9iG0lB2BMXoJow8UcH9Ey6HNoR5HiIFpffe6S3tQlh8aQvATRCYcSWKfvcgYHlrK5tIvcUsPGHt8YxCWkrwXderQsyq1FWRwdVCjGb72pc+i3agzdOPOUVlra7k6CxShYCQICnT44dkwp9TVWuBDxwMAxd2APoRNHmtJKDa2z7e4kOrzrOVgbxBREUnvElOvAQxvU+N3XmbdQ19LeqloJitISXibwXUaJR8iqldaXhSCQmVSSgGy+jtRWgkjVC2zGQQ7Ih40g0kniQxSpjoQlvlR9wEZwcJED8graBllUZ+k/p2JLudpfgWPAXxd7vKAqpfW3R4w/JLcPsZYgGk7J1S0tI5xtV9RJfePalCAxl8GaWNtcc5MDZIpCEMg4FZJowzU5W4oEkSqzxnvwHIMcIEM0gkDmqZFEG03P84KPvfB+z0JLYH9et/ZKdXzP7QsRUiOF1jIWOSD/qAQBAVIliTZePodFICY5QLPoBAEhMknCOlmqqccmB+DG2otVZ6jLQIgaca+TNd/nQUACOUBTEQQBQeYne9dyf8mKx9Q5FxcEYG6VFHKA3CKqWIMA5irXICLd+C2JGBpxkQQB4TJJtIm6cZZIDkBeLEEySbpBDNBSKjlANjFtkCp3WARu+Lesq+LmeykgABss9ES/pEULZ5o4V7lMNNK/lk4MjbDoEkQLCefLgOauYBOURK9TIQfAm0wJYvpCLk1MNNK5TokYGtVkShAtMJwXgc5tExMT0delei9FcgCmSZYgpjPk0sREQ951qsTQSCZZgmjh4QwGyCPwJiJirp9NnRyAZPIliOkOo7vfWl9eWn3GvJeveRGAD7zOTW16gzfXcLm1iiAaJin7A2t5unJuQ4kxaKtWEkQrmdsnGomw5zYSQyPWaoJoJUd3ndxblsXT+nc++yMAs25Db9rmL6V/Cp0giIZpZGLmkFLqSf07nzEIlC/PT46NY2KmGKdTBNEGum3XyXEpewZrmaSfoadwbrJ3RLqc1PJ1kiAmiFK+imXKJOYaBvimeneKkSeCIJ0niIl5btQvotHmRrdpb5vrTJAalLpGlkyKakfIBKnGZdndNrZZutqmWGZYix+ZIBYgDQZJsTesK92yg7by/Z0J4ovg5fjSqmS5ykRj2EwQGhwbUxndeWpLWZR7lVKbGwPaPzxRlMXeNs15sledN+T/AeG886pjIoE3AAAAAElFTkSuQmCC"}))))}const Gw=sa.forwardRef(qw);__webpack_require__.p;var Yw,Kw,Qw,Xw,Zw,Jw,$w,ex;function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tx.apply(null,arguments)}function nx(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",tx({width:27,height:18,viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Yw||(Yw=sa.createElement("path",{d:"M18 18C13.0294 18 9 13.9706 9 9C9 4.02943 13.0294 3.52266e-07 18 0C22.9706 -3.52266e-07 27 4.02943 27 9C27 13.9706 22.9706 18 18 18Z",fill:"white"})),Kw||(Kw=sa.createElement("path",{d:"M18.002 16C14.1498 16 11.027 12.8723 11.027 9.01398C11.027 5.1557 14.1498 2.02795 18.002 2.02795C21.8542 2.02795 24.9771 5.1557 24.9771 9.01398C24.9771 12.8723 21.8542 16 18.002 16Z",fill:"#FC814A"})),Qw||(Qw=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3543 5.81163V5.31034C14.3543 4.65055 15.1152 4.28266 15.631 4.69305L17.009 5.78943C17.2377 5.9714 17.5212 6.07047 17.8133 6.07047H19.1049C19.4961 6.07047 19.8663 5.89309 20.1118 5.58799L20.2492 5.4172C20.7152 4.83803 21.6492 5.16807 21.6492 5.91187V6.31487C21.6492 6.48795 21.6846 6.65921 21.7532 6.81807L22.0798 7.57396C22.4782 8.496 22.6114 9.51116 22.4644 10.5049L22.4513 10.5934C22.3147 11.517 21.8503 12.3602 21.1432 12.9686C20.5965 13.3769 19.9697 13.6646 19.304 13.8127L19.0489 13.8695C18.4327 13.9443 17.8097 13.9443 17.1935 13.8695L16.8933 13.8115C16.3223 13.7013 15.7812 13.4706 15.3061 13.1347C14.6839 12.6948 14.1965 12.0899 13.8985 11.3879L13.83 11.2266C13.5193 10.4946 13.3983 9.69581 13.4783 8.90448L13.4976 8.71403C13.553 8.16549 13.6911 7.62851 13.907 7.12134L14.253 6.30855C14.3198 6.15143 14.3543 5.98242 14.3543 5.81163Z",fill:"white"})),Xw||(Xw=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.561 4.78126C15.1189 4.42951 14.4666 4.74484 14.4666 5.31037V5.81169C14.4666 5.99765 14.4291 6.1817 14.3563 6.35276L14.0103 7.16556C13.7988 7.66228 13.6637 8.18819 13.6093 8.72541L13.5901 8.91586C13.512 9.68832 13.6301 10.468 13.9334 11.1825L14.0018 11.3438C14.2917 12.0266 14.7657 12.6149 15.3709 13.0427C15.8329 13.3694 16.3591 13.5938 16.9144 13.701L17.2108 13.7582C17.815 13.8313 18.4257 13.8313 19.0298 13.7584L19.2795 13.7028C19.9284 13.5584 20.5396 13.2782 21.0727 12.8806C21.7577 12.2901 22.2075 11.4724 22.34 10.577L22.3531 10.4885C22.497 9.51545 22.3666 8.52148 21.9765 7.61875L21.6499 6.86284C21.5752 6.68986 21.5366 6.50337 21.5366 6.31492V5.9119C21.5366 5.27435 20.736 4.99148 20.3366 5.48788L20.1992 5.6587C19.9324 5.99032 19.53 6.18312 19.1048 6.18312H17.8132C17.4957 6.18312 17.1876 6.07544 16.9389 5.87764L15.561 4.78126ZM14.2418 5.31037C14.2418 4.55634 15.1114 4.13589 15.7009 4.60491L17.0788 5.70127C17.2877 5.86744 17.5465 5.95787 17.8132 5.95787H19.1048C19.462 5.95787 19.8 5.79591 20.0241 5.51736L20.1615 5.34657C20.6941 4.68468 21.7615 5.06184 21.7615 5.9119V6.31492C21.7615 6.47261 21.7938 6.62864 21.8563 6.77337L22.1829 7.52928C22.5896 8.47057 22.7256 9.50692 22.5755 10.5215L22.5624 10.61C22.4219 11.5603 21.944 12.428 21.2163 13.054C21.2144 13.0557 21.2123 13.0573 21.2103 13.0589C20.6509 13.4767 20.0095 13.7711 19.3283 13.9227L19.0732 13.9795C19.0696 13.9803 19.066 13.9809 19.0623 13.9814C18.4371 14.0572 17.8051 14.0572 17.1799 13.9814C17.1773 13.981 17.1747 13.9806 17.1722 13.9801L16.8719 13.9222C16.2852 13.8089 15.7293 13.5718 15.2412 13.2267C14.6019 12.7747 14.1011 12.1532 13.7949 11.432L13.7264 11.2707C13.4083 10.5212 13.2844 9.70339 13.3663 8.89316L13.3856 8.70271C13.4422 8.14288 13.5831 7.59483 13.8034 7.07721L14.1494 6.26442C14.2104 6.12127 14.2418 5.96727 14.2418 5.81169V5.31037ZM20.4169 9.77918C20.3911 9.74476 20.3489 9.72674 20.3063 9.73185L20.0656 9.76078C19.9859 9.77035 19.9407 9.85714 19.9785 9.9281C19.9996 9.96786 20.0422 9.99143 20.0871 9.98834L20.3482 9.97029C20.435 9.9643 20.4807 9.86439 20.4285 9.79469L20.4169 9.77918ZM20.2795 9.50821C20.4019 9.4935 20.5228 9.54528 20.5968 9.64402L20.6084 9.65955C20.7675 9.87207 20.6283 10.1767 20.3637 10.195L20.1025 10.213C19.9692 10.2223 19.8429 10.1522 19.78 10.0341C19.6678 9.8234 19.8021 9.5656 20.0388 9.53714L20.2795 9.50821ZM15.7428 10.0076C15.7998 9.9827 15.866 10.0087 15.8909 10.0657C16.3227 11.055 17.1522 11.547 18.0083 11.7652C18.8176 11.9716 19.6411 11.93 20.1451 11.8347V10.688C20.1451 10.6258 20.1955 10.5754 20.2576 10.5754C20.3197 10.5754 20.37 10.6258 20.37 10.688V11.7836C20.737 11.6846 21.0236 11.5241 21.2452 11.2961C21.4942 11.0401 21.6693 10.6907 21.7786 10.2258C21.7928 10.1652 21.8533 10.1277 21.9138 10.142C21.9742 10.1562 22.0117 10.2168 21.9975 10.2774C21.8818 10.7697 21.6915 11.16 21.4064 11.4532C21.1207 11.7471 20.7478 11.9353 20.2815 12.0369C19.7616 12.1502 18.8511 12.2125 17.9528 11.9835C17.052 11.7539 16.1526 11.2276 15.6849 10.1559C15.66 10.0989 15.6859 10.0325 15.7428 10.0076Z",fill:"black"})),Zw||(Zw=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2585 7.66394L22.4848 7.59156C22.5265 7.59115 22.5595 7.62683 22.556 7.6685L22.503 8.2851C22.4643 8.73655 22.0872 9.08324 21.635 9.08324C21.2488 9.11009 20.8677 8.97739 20.5808 8.717L20.3944 8.53877C20.2885 8.43744 20.1477 8.38092 20.0012 8.38092C19.8025 8.38092 19.6182 8.48471 19.5149 8.65479L19.4087 8.82941C19.3261 8.96539 19.2111 9.07657 19.0759 9.15425C18.9061 9.2756 18.5837 9.3581 18.2129 9.35999C17.9583 9.37355 17.7028 9.35353 17.4528 9.30016L17.095 9.22381C17.0428 9.20812 17.0167 9.20027 16.991 9.19212C16.5979 9.06746 16.2292 8.87562 15.9013 8.62507C15.8799 8.60863 15.8585 8.59176 15.8157 8.55802L15.7217 8.48392C15.6954 8.46317 15.6822 8.45278 15.6685 8.44378C15.6155 8.40886 15.5546 8.38775 15.4914 8.38231C15.4751 8.38092 15.4583 8.38092 15.4248 8.38092H13.8612H13.5389L13.6211 7.98585C13.6715 7.79606 13.843 7.66394 14.039 7.66394H14.6915H15.2585Z",fill:"black"})),Jw||(Jw=sa.createElement("path",{d:"M9 18C4.02944 18 2.11279e-07 13.9706 0 9C-2.46492e-07 4.02943 4.02944 3.52266e-07 9 0C13.9706 -3.52266e-07 18 4.02943 18 9C18 13.9706 13.9706 18 9 18Z",fill:"white"})),$w||($w=sa.createElement("path",{d:"M9.36962 6C8.19936 6 7.05707 6.48731 6.20313 7.35176C5.26651 8.30017 4.67377 9.70079 4.33401 11.0183C4.11147 11.8801 4 12.7743 4 13.6694C4 13.94 4.01028 14.2083 4.03003 14.4735C4.0543 14.796 4.34511 15.0194 4.6347 14.935C4.88726 14.8617 5.15298 14.8222 5.42694 14.8222C5.98965 14.8222 6.51698 14.9874 6.96905 15.2762C6.98015 15.2833 6.99085 15.2904 7.00195 15.2971C7.73661 15.7701 8.6033 16.03 9.52758 15.9967C11.9384 15.9105 13.9079 13.792 13.9968 11.1889C14.0939 8.34103 11.9849 6 9.36962 6ZM9.36962 13.2847C8.20101 13.2847 7.25369 12.2617 7.25369 11.0001C7.25369 9.73855 8.20101 8.71507 9.36962 8.71507C10.5382 8.71507 11.4856 9.7381 11.4856 11.0001C11.4856 12.2622 10.5382 13.2847 9.36962 13.2847Z",fill:"#14AAFF"})),ex||(ex=sa.createElement("path",{d:"M7 4.73514C7 5.34578 6.72342 5.91235 6.26922 6.22364C5.9841 6.41923 5.71678 6.65022 5.47473 6.91333C4.93759 7.49556 4.53678 8.20996 4.23991 8.91818C4.18118 9.05735 4 9.00794 4 8.85312V4.73514C4 3.77698 4.67169 3 5.5 3C6.32831 3 7 3.77698 7 4.73514Z",fill:"#0077FF"})))}const rx=sa.forwardRef(nx);__webpack_require__.p;const ix=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),ox=e=>{let{onChange:t,isChecked:n,label:r,icon:i}=e;return(0,ms.jsxs)("div",{className:"flex items-center px-[1.75rem] pt-[0.5rem] w-full gap-[0.5rem]",onClick:()=>t(!n),children:[(0,ms.jsx)("div",{"data-testid":"wallet-currency-checkbox",className:cy("text-black flex justify-center rounded-[0.25rem] items-center focus:border-none cursor-pointer h-[1rem] w-[1rem]",{"bg-primary":n,"bg-transparent border border-white":!n,"border-none":n}),children:n&&(0,ms.jsx)(ix,{})}),i,(0,ms.jsx)("div",{className:"text-[0.875rem] font-semibold",children:r})]})},ax={DUC:!0},sx={FLOW:!0,USDC:!0},lx=e=>{let{name:t,value:n,disabled:r,onChange:i,isChecked:o,icon:a,iconPosition:s,children:l,collapsible:c,label:u}=e;const[d,p]=(0,sa.useState)(!1),h=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"account-chevron",className:cy("w-[0.875rem] h-[0.5rem]",{"bg-transparent":!o,"border-none":o,"rotate-0":!d,"rotate-180":d,"text-primary":o}),viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:d?"#04e5a3":"#F8F9FA"})})),[o,d]);return(0,ms.jsxs)("div",{"data-testid":"account-option",className:"cursor-pointer py-[0.75rem] w-full font-montserrat border-[1px] border-neutral-400 border-opacity-25 text-[0.875rem] font-[600] px-[1rem] rounded-[0.375rem] text-white bg-[#ffffff0a] hover:bg-[#ffffff1f] flex flex-col items-center justify-between gap-[0.375rem] shadow-[0_2px_4px_0px_rgba(0,0,0,0.1)]",children:[(0,ms.jsxs)("div",{className:"flex w-full items-center",onClick:e=>{e.stopPropagation(),p(!d)},children:[(0,ms.jsx)("div",{onClick:()=>{var e;return null===(e=document.getElementById("".concat(n,"-wallet-radio")))||void 0===e?void 0:e.click()},onKeyDown:()=>{var e;return null===(e=document.getElementById("".concat(n,"-wallet-radio")))||void 0===e?void 0:e.click()},className:"flex items-center w-[70%] justify-between cursor-pointer",children:(0,ms.jsxs)("div",{className:"flex items-center w-full",children:[(0,ms.jsx)("input",{id:"".concat(n,"-wallet-radio"),"data-testid":"".concat(n,"-wallet-radio"),type:"radio",name:t,value:n,disabled:r,checked:o,onChange:e=>{e.stopPropagation(),d||p(!0),i(e.target.value)},className:"hidden h-5 w-5 text-primary focus:outline-none focus:ring-0 focus:ring-offset-0 cursor-pointer"}),(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full border-2 border-white relative ".concat(o?"bg-primary border-none flex items-center justify-center":"bg-transparent!"),children:(0,ms.jsx)("div",{className:"rounded-full p-[0.27rem] ".concat(o?"bg-[#031021]":"bg-transparent")})}),"left"===s&&a,(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat",children:u}),"right"===s&&a]})]})}),(0,ms.jsx)("div",{className:"ml-auto",children:c&&h})]}),d&&l]})},cx=()=>{var e,t;const{paymentTokens:n,setPaymentTokens:r}=(0,sa.useContext)(Tw),[i,o]=(0,sa.useState)("all"),a=Object.values(null!==n&&void 0!==n?n:{}).filter((e=>0!==Object.keys(null!==e&&void 0!==e?e:{}).length));(0,sa.useEffect)((()=>{a.length||o("all")}),[a.length]),(0,sa.useEffect)((()=>{"{}"!==JSON.stringify(null===n||void 0===n?void 0:n.dapper)&&"{}"!==JSON.stringify(null===n||void 0===n?void 0:n.other)?null!==n&&void 0!==n&&n.dapper?o("dapper"):null!==n&&void 0!==n&&n.other&&o("other"):o("all")}),[n]);const s=e=>{ds.o.track("Account type toggled",{accountType:e}),"all"===e&&(o("all"),r(null)),"dapper"===e&&(o("dapper"),r({dapper:{...ax},other:void 0})),"other"===e&&(o("other"),r({dapper:void 0,other:{...sx}}))};return(0,ms.jsxs)("div",{className:"space-y-2",children:[(0,ms.jsx)(lx,{name:"account",value:"all",label:"Show All",disabled:!1,onChange:s,isChecked:"all"===i,icon:void 0,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(lx,{name:"account",value:"dapper",label:"Dapper Wallet",disabled:!1,onChange:s,isChecked:"dapper"===i,icon:(0,ms.jsx)("img",{src:Bw,alt:"Dapper",className:"w-[1.4rem] h-[1.25rem]"}),iconPosition:"left",collapsible:!1}),(0,ms.jsx)(lx,{name:"account",value:"other",label:"Other Wallets",disabled:!1,onChange:s,isChecked:"other"===i,icon:(0,ms.jsx)(rx,{}),iconPosition:"left",collapsible:!0,children:(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)(ox,{label:"USDC",onChange:e=>{if(o("other"),e)r({dapper:void 0,other:{...null===n||void 0===n?void 0:n.other,USDC:e}});else{var t;const e={...n};null===e||void 0===e||(null===(t=e.other)||void 0===t||delete t.USDC),r(e)}},isChecked:!(null===n||void 0===n||null===(e=n.other)||void 0===e||!e.USDC),icon:(0,ms.jsx)(Gw,{})}),(0,ms.jsx)(ox,{label:"FLOW",onChange:e=>{if(o("other"),e)r({dapper:void 0,other:{...null===n||void 0===n?void 0:n.other,FLOW:e}});else{var t;const e={...n};null===e||void 0===e||(null===(t=e.other)||void 0===t||delete t.FLOW),r(e)}},isChecked:!(null===n||void 0===n||null===(t=n.other)||void 0===t||!t.FLOW),icon:(0,ms.jsx)(zw.h,{height:18,width:18})})]})})]})},ux=()=>{const[e,t]=(0,sa.useState)(!0),n=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"chevron",onClick:n=>{n.stopPropagation(),t(!e)},className:cy({"rotate-0":!e,"rotate-180":e}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:e?"#04e5a3":"#F8F9FA"})})),[e]);return(0,ms.jsxs)("div",{className:cy("rounded-[0.375rem] cursor-pointer border-[1px] border-neutral-400 border-opacity-25  px-[1rem] py-[0.875rem]",{"hover:bg-[#ffffff29]":!e}),children:[(0,ms.jsxs)("div",{className:"flex items-center justify-between w-full",onClick:()=>t(!e),children:[(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ms.jsx)("path",{d:"M7.82609 7.91306V7.0435C7.82609 6.12101 8.19254 5.2363 8.84485 4.584C9.49715 3.9317 10.3819 3.56524 11.3043 3.56524H16.5217V1.82611C16.5217 1.59549 16.4301 1.37431 16.267 1.21123C16.104 1.04816 15.8828 0.956543 15.6522 0.956543H0.869565C0.638942 0.956543 0.417765 1.04816 0.25469 1.21123C0.0916147 1.37431 0 1.59549 0 1.82611L0 13.1305C0 13.3611 0.0916147 13.5823 0.25469 13.7453C0.417765 13.9084 0.638942 14 0.869565 14H15.6522C15.8828 14 16.104 13.9084 16.267 13.7453C16.4301 13.5823 16.5217 13.3611 16.5217 13.1305V11.3913H11.3043C10.3819 11.3913 9.49715 11.0249 8.84485 10.3726C8.19254 9.72027 7.82609 8.83556 7.82609 7.91306Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M16.5217 5.30432H11.3043C10.8431 5.30432 10.4007 5.48755 10.0746 5.8137C9.74842 6.13985 9.56519 6.58221 9.56519 7.04345V7.91302C9.56519 8.37426 9.74842 8.81662 10.0746 9.14277C10.4007 9.46892 10.8431 9.65215 11.3043 9.65215H16.5217C16.7523 9.65215 16.9735 9.56053 17.1366 9.39746C17.2997 9.23438 17.3913 9.01321 17.3913 8.78258V6.17389C17.3913 5.94326 17.2997 5.72209 17.1366 5.55901C16.9735 5.39594 16.7523 5.30432 16.5217 5.30432ZM12.6087 8.3478C12.378 8.3478 12.1569 8.25618 11.9938 8.09311C11.8307 7.93003 11.7391 7.70886 11.7391 7.47823C11.7391 7.24761 11.8307 7.02643 11.9938 6.86336C12.1569 6.70028 12.378 6.60867 12.6087 6.60867C12.8393 6.60867 13.0605 6.70028 13.2235 6.86336C13.3866 7.02643 13.4782 7.24761 13.4782 7.47823C13.4782 7.70886 13.3866 7.93003 13.2235 8.09311C13.0605 8.25618 12.8393 8.3478 12.6087 8.3478Z",fill:"#CED4DA"})]}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Wallets & Currencies"})]}),n]}),e?(0,ms.jsx)("div",{className:"space-y-2 mt-3 overflow-y-auto",children:(0,ms.jsx)(cx,{})}):null]})},dx=e=>{let{Comp:t,tooltipText:n}=e;const[r,i]=(0,sa.useState)(!1),o=t;return(0,sa.useEffect)((()=>{var e;null!==o&&void 0!==o&&null!==(e=o.ref)&&void 0!==e&&e.current&&i(o.ref.current.offsetWidth<o.ref.current.scrollWidth)}),[]),(0,ms.jsx)(ms.Fragment,{children:r?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:n}),(0,ms.jsx)("div",{"data-tooltip-content":n,"data-tooltip-id":n,children:t})]}):(0,ms.jsx)(ms.Fragment,{children:t})})},px=e=>{let{collection:t,isChecked:n,name:r,isCheckboxHidden:i,onChange:o,label:a,count:s,isVerified:l,isCollapsible:c=!0,children:u}=e;const d=(0,sa.useRef)(null),p=(0,js.zy)(),h=(0,sa.useMemo)((()=>p.pathname.includes("/collection/")),[p]),[f,m]=(0,sa.useState)(h),[g,v]=(0,sa.useState)(null);(0,sa.useEffect)((()=>{(async()=>{const e=await(async e=>{const t=await pl.db.collection("flowNFTContract").doc(e),n=await t.get();return n?n.data():null})(t);v(e)})()}),[t]);const y=(0,sa.useMemo)((()=>l?(0,ms.jsx)("svg",{className:"w-[0.875rem] h-[0.875rem]",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 14 14",fill:"none",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3869 2.41837C4.83705 2.38245 5.26439 2.20544 5.6081 1.91254C6.41016 1.22902 7.58983 1.22902 8.39189 1.91254C8.73559 2.20544 9.16294 2.38245 9.61308 2.41837C10.6635 2.5022 11.4977 3.33635 11.5815 4.38681C11.6174 4.83696 11.7945 5.2643 12.0874 5.60801C12.7709 6.41007 12.7709 7.58974 12.0874 8.3918C11.7945 8.7355 11.6174 9.16285 11.5815 9.61299C11.4977 10.6635 10.6635 11.4976 9.61308 11.5814C9.16294 11.6174 8.73559 11.7944 8.39189 12.0873C7.58983 12.7708 6.41016 12.7708 5.6081 12.0873C5.26439 11.7944 4.83705 11.6174 4.3869 11.5814C3.33644 11.4976 2.50229 10.6635 2.41846 9.61299C2.38254 9.16285 2.20553 8.7355 1.91263 8.3918C1.22912 7.58974 1.22912 6.41007 1.91263 5.60801C2.20553 5.2643 2.38254 4.83696 2.41846 4.38681C2.50229 3.33635 3.33644 2.5022 4.3869 2.41837ZM9.59497 6.09488C9.86834 5.82151 9.86834 5.37829 9.59497 5.10493C9.3216 4.83156 8.87839 4.83156 8.60502 5.10493L6.29999 7.40995L5.39497 6.50493C5.1216 6.23156 4.67839 6.23156 4.40502 6.50493C4.13165 6.7783 4.13165 7.22151 4.40502 7.49488L5.80502 8.89488C6.07839 9.16824 6.5216 9.16824 6.79497 8.89488L9.59497 6.09488Z",fill:"#04E5A3"})}):null),[l]),b=(0,sa.useMemo)((()=>c?(0,ms.jsx)("svg",{"data-testid":"single-collection-chevron",className:cy({"rotate-0":!f,"rotate-180":f}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:f?"#04e5a3":"#F8F9FA"})}):(0,ms.jsx)("div",{className:"w-[14px] h-[8px]"})),[c,f]),w=(0,sa.useMemo)((()=>{var e,t;const n=null===g||void 0===g||null===(e=g.collectionDisplay)||void 0===e||null===(t=e.name)||void 0===t?void 0:t.replace(/-/g," ");return null!==n&&void 0!==n?n:a}),[g]);return(0,ms.jsx)(ms.Fragment,{children:h?(0,ms.jsxs)(ms.Fragment,{children:[u," "]}):(0,ms.jsxs)("div",{className:cy("bg-[#ffffff0a] border-[1px] border-neutral-500 border-opacity-25 rounded-[0.375rem] px-[1rem] py-[0.75rem] cursor-pointer shadow-[0_2px_4px_0px_rgba(0,0,0,0.1)]",{"hover:bg-[#ffffff1f]":!f}),children:[(0,ms.jsxs)("div",{className:cy(" w-full font-montserrat text-[0.9375rem] font-[500] rounded-[0.375rem] text-white flex items-center justify-start gap-[0.375rem]"),children:[(0,ms.jsxs)("div",{className:"flex items-center space-x-3 w-[70%]",onClick:()=>{i||o(!n),c&&m(!0)},children:[i?null:(0,ms.jsx)("div",{className:cy("text-black flex justify-center rounded-[0.25rem] items-center focus:border-none cursor-pointer h-[1rem] w-[1rem]",{"bg-primary":n,"bg-transparent":!n,"border-[1px] border-white":!n,"border-none":n}),children:n&&(0,ms.jsx)(ix,{})}),(0,ms.jsx)("img",{className:"w-[2rem] max-w-[2rem] max-h-[2rem] h-[2rem] rounded-[0.25rem]",src:g?(0,us.getSquareImage)(r,g):rl.A,alt:r||"",onError:ol.R}),(0,ms.jsx)(dx,{tooltipText:w,Comp:(0,ms.jsx)("div",{ref:d,className:"font-montserrat text-[0.875rem] max-w-[100px] truncate capitalize",children:w})})]}),(0,ms.jsxs)("div",{className:"flex items-center justify-end ml-auto space-x-2 w-[30%]",onClick:()=>{c&&m(!f)},children:[(0,ms.jsx)("div",{className:"",children:y}),(0,ms.jsx)("div",{className:"font-[500] flex-shrink-0 w-fit text-[0.75rem]",children:s}),(0,ms.jsx)("div",{onClick:()=>{c&&m(!f)},className:"hover:cursor-pointer",children:b})]})]},t),f&&c?(0,ms.jsxs)("div",{className:"pt-2.5 gap-[8px]",children:[" ",u," "]}):null]})})},hx=e=>{let{isLocked:t,isChecked:n,onChange:r,label:i,count:o}=e;const{isLoadingFacets:a}=Nw(),s=i.length>=28,l=s?i.slice(0,26)+"..":i,c=t?"true"===l?"Locked":"Not Locked":l;return(0,ms.jsx)("div",{className:"w-full pt-1",onClick:()=>{r(!n)},children:(0,ms.jsxs)("div",{className:cy("min-w-min flex items-center text-white hover:bg-[#ffffff1f] py-2 rounded-[4px] px-2"),children:[(0,ms.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ms.jsx)("div",{className:cy("text-black flex justify-center rounded-[0.25rem] items-center focus:border-none cursor-pointer h-[1rem] w-[1rem]",{"bg-primary":n,"bg-transparent border border-white":!n,"border-none":n}),children:n&&(0,ms.jsx)(ix,{})}),s&&(0,ms.jsx)(nc.m_,{id:"".concat(l,"-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.875rem",fontWeight:500,zIndex:10}}),(0,ms.jsx)("div",{"data-tooltip-id":"".concat(l,"-tooltip"),"data-tooltip-content":i,"data-tooltip-place":"top",className:"text-[0.875rem] font-semibold",children:c})]}),(0,ms.jsx)("div",{className:"flex items-center ml-auto space-x-2",children:a?(0,ms.jsx)("div",{className:"w-[20px] h-[15px] animate-pulse bg-[#edf3f60a] rounded-lg"}):(0,ms.jsx)("div",{className:"font-[500] text-[0.75rem]",children:o||"-"})})]})})};const fx=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))})),mx=e=>{let{placeholder:t="",value:n,onChange:r,clearSearch:i}=e;const[o,a]=(0,sa.useState)(!1);return(0,ms.jsxs)("div",{"data-testid":"facet-search-bar",className:"relative flex items-center",children:[!o&&(0,ms.jsx)("div",{className:"absolute flex items-center pl-4",children:(0,ms.jsx)(fx,{height:17,width:17,color:"#9CA3AF"})}),n&&(0,ms.jsx)(Ef.A,{onClick:()=>{a(!1),i()},className:"absolute top-1/2 right-0 transform -translate-y-1/2 -translate-x-1/2 w-4 h-4"}),(0,ms.jsx)("input",{type:"text",onChange:r,value:n,className:cy("block cursor-pointer w-full text-base height-[3rem] font-montserrat rounded-[0.325rem] bg-glassFillGray py-2 text-white placeholder:text-gray-400 hover:placeholder:text-gray-300 hover:bg-glassFillGrayHover outline-none focus:bg-[#2c3645] sm:leading-6",{"border-[1px] border-neutral-500 pl-10":!o,"border-[1px] border-primary pl-4":o}),placeholder:o?"":t,onFocus:()=>a(!0)})]})},gx=e=>{let{isCollapsible:t,addon:n,count:r,resultMappedTrait:i,initialMappedTrait:o,label:a,collection:s}=e;const{filters:l,setFilters:c,isLoadingFacets:u}=Nw(),[d,p]=(0,sa.useState)(""),[h,f]=(0,sa.useState)(!1),m="Locked"===a&&s==="".concat(ss.BN,".TopShot"),g=(0,sa.useMemo)((()=>t?(0,ms.jsx)("svg",{"data-testid":"collection-trait-chevron",className:cy({"rotate-0":!h,"rotate-180":h}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:h?"#04e5a3":"#F8F9FA"})}):null),[t,h]),v=(null===o||void 0===o?void 0:o.values)&&Object.keys(o.values).length>9,y=(null===o||void 0===o?void 0:o.values)&&Object.keys(o.values).filter((e=>d?e.toLowerCase().includes(d.toLowerCase()):e)).map((e=>{var t,n,r;const o=(null===i||void 0===i||null===(t=i.values)||void 0===t?void 0:t[e])||0,u=!(null===l||void 0===l||null===(n=l[s])||void 0===n||null===(r=n[a])||void 0===r||!r[e]);return(0,ms.jsx)(hx,{isLocked:m,count:(0,Vb._)(o),label:e,isChecked:u,onChange:()=>(()=>{var t,n;const r={...l};var i,o,d,p,h,f,m;ds.o.track("Trait toggled",{traitType:{[a]:[null===r||void 0===r||null===(t=r[s])||void 0===t||null===(n=t[a])||void 0===n?void 0:n[e]]}}),null!==r&&void 0!==r&&r[s]||(r[s]={}),u?e?(null===r||void 0===r||null===(i=r[s])||void 0===i||null===(o=i[a])||void 0===o||delete o[e],0===Object.keys(null!==(d=null===r||void 0===r||null===(p=r[s])||void 0===p?void 0:p[a])&&void 0!==d?d:{}).length&&(null===r||void 0===r||null===(h=r[s])||void 0===h||delete h[a])):null===r||void 0===r||null===(f=r[s])||void 0===f||delete f[a]:e?(null!==r&&void 0!==r&&null!==(m=r[s])&&void 0!==m&&m[a]?r[s][a]=r[s][a]:r[s][a]={},r[s][a][e.toString()]=!0):r[s][a]={},c(r)})()},e)}));return(0,ms.jsxs)("div",{className:cy("border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 w-full bg-[#ffffff0a]",{"hover:bg-[#ffffff1f]":!h}),children:[(0,ms.jsxs)("div",{className:"flex justify-between px-[1rem]",onClick:()=>f(!h),children:[(0,ms.jsxs)("div",{className:"flex w-[70%]",onClick:()=>f(!0),children:[(0,ms.jsx)("div",{className:"text-[0.875rem] font-semibold capitalize",children:m?"Lock Status":(b=a,b.split(/(?=[A-Z][a-z])/).join(" "))}),(0,ms.jsx)("div",{className:"font-[500]",children:n})]}),(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem] w-[30%] justify-end",children:[(0,ms.jsx)("div",{className:"font-[500] text-[0.75rem]",children:u?(0,ms.jsx)("div",{className:"w-[20px] h-[15px] animate-pulse bg-[#edf3f60a] rounded-lg"}):r}),(0,ms.jsx)("div",{className:"hover:cursor-pointer",children:g})]})]}),h?(0,ms.jsxs)("div",{children:[(0,ms.jsx)("div",{className:"px-[1rem]",children:v&&(0,ms.jsx)(mx,{value:d,onChange:e=>p(e.target.value),clearSearch:()=>p(""),placeholder:"Search"})}),(0,ms.jsx)("div",{className:"max-h-[300px] overflow-y-auto px-[1rem]",children:y})]}):null]});var b},vx=()=>{var e,t,n,r,i,o,a;const{filters:s,setFilters:l,isLoadingFacets:c,orderFilters:u,mappedFacets:d,noFilterMappedFacets:p}=Nw(),[h,f]=(0,sa.useState)(!0),[m,g]=(0,sa.useState)(""),v=(0,js.zy)(),y=v.pathname.includes("/collection"),b=0===(null===(e=Object.keys(s||{}))||void 0===e?void 0:e.length)&&0===(null===(t=Object.keys(u||{}))||void 0===t?void 0:t.length),w=(0,sa.useMemo)((()=>{if(y){const e=v.pathname.split("/"),t=e[2],n=e[3],r="A.".concat(null===t||void 0===t?void 0:t.substring(2),".").concat(n,".NFT");return(0,ss.hx)(r)}return!1}),[y]),x=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"collection-chevron",className:cy({"rotate-0":!h,"rotate-180":h}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:h?"#04e5a3":"#F8F9FA"})})),[h]),C=Object.keys(null!==p&&void 0!==p?p:{}).filter((e=>m?e.toLowerCase().replace(/\s+/g,"").includes(m.toLowerCase().replace(/\s+/g,"")):e)).map((e=>{var t,n,r;const i=null===p||void 0===p?void 0:p[e],o=null===d||void 0===d?void 0:d[e],a=!!s[e],c=e.split(".")[0],u=e.split(".")[1],h="A.".concat(null===c||void 0===c?void 0:c.substring(2),".").concat(u,".NFT"),f=(null===i||void 0===i?void 0:i.traits)&&(null===(t=Object.keys(i.traits))||void 0===t?void 0:t.length)&&(null===(n=Object.keys(i.traits))||void 0===n?void 0:n.map((t=>{var n,r,a,s;return(0,ms.jsx)(gx,{collectionName:u,resultMappedTrait:null===o||void 0===o||null===(n=o.traits)||void 0===n?void 0:n[t],initialMappedTrait:null===i||void 0===i||null===(r=i.traits)||void 0===r?void 0:r[t],collection:e,isCollapsible:!0,label:t,count:(0,Vb._)(null===o||void 0===o||null===(a=o.traits)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.count)},t)})));return(0,ms.jsx)(px,{isCheckboxHidden:y,name:u,isCollapsible:!(null===o||void 0===o||!o.traits)&&!(0,ss.hx)(h),count:(0,Vb._)(null!==(r=null===o||void 0===o?void 0:o.count)&&void 0!==r?r:0),isVerified:!0,collection:e,label:u,onChange:t=>{ds.o.track("Collection toggled",{collectionType:{[e]:[t]}});const n=s?{...s}:{};t?n[e]={}:delete n[e],l(n)},isChecked:a,children:(0,ms.jsx)("div",{className:"space-y-1",children:f})},e)}));return(0,ms.jsxs)("div",{className:cy("rounded-[0.375rem] cursor-pointer border-[1px] border-neutral-400 border-opacity-25 py-[0.875rem]",{"hover:bg-[#ffffff29]":!h}),children:[(0,ms.jsxs)("div",{className:"flex items-center justify-between w-full cursor-pointer px-[1rem]",onClick:()=>f(!h),children:[(0,ms.jsx)("div",{className:"flex items-center gap-[0.5rem]",children:y?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,ms.jsx)("path",{d:"M9.50386 1.13176C9.81129 0.956081 10.1887 0.956081 10.4961 1.13176L12.2461 2.13176C12.7257 2.40577 12.8923 3.01662 12.6182 3.49614C12.3442 3.97566 11.7334 4.14225 11.2539 3.86824L10 3.15175L8.74614 3.86824C8.26662 4.14225 7.65577 3.97566 7.38176 3.49614C7.10775 3.01662 7.27434 2.40577 7.75386 2.13176L9.50386 1.13176Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M5.61824 4.50386C5.89225 4.98338 5.72566 5.59423 5.24614 5.86824L5.01556 6L5.24614 6.13176C5.72566 6.40577 5.89225 7.01662 5.61824 7.49614C5.34423 7.97566 4.73338 8.14225 4.25386 7.86824L4 7.72318V8C4 8.55228 3.55228 9 3 9C2.44772 9 2 8.55228 2 8V6C2 5.75001 2.09173 5.52145 2.24336 5.34614C2.27802 5.30603 2.31598 5.26854 2.35699 5.23411C2.40754 5.19163 2.46236 5.15405 2.52071 5.12213L4.25386 4.13176C4.73338 3.85775 5.34423 4.02434 5.61824 4.50386Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M14.3818 4.50386C14.6558 4.02434 15.2666 3.85775 15.7461 4.13176L17.4793 5.12212C17.5376 5.15405 17.5925 5.19162 17.643 5.23411C17.8613 5.41755 18 5.69258 18 6V8C18 8.55228 17.5523 9 17 9C16.4477 9 16 8.55228 16 8V7.72318L15.7461 7.86824C15.2666 8.14225 14.6558 7.97566 14.3818 7.49614C14.1077 7.01662 14.2743 6.40577 14.7539 6.13176L14.9844 6L14.7539 5.86824C14.2743 5.59423 14.1077 4.98338 14.3818 4.50386Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M7.38176 8.50386C7.65577 8.02434 8.26662 7.85775 8.74614 8.13176L10 8.84825L11.2539 8.13176C11.7334 7.85775 12.3442 8.02434 12.6182 8.50386C12.8923 8.98338 12.7257 9.59423 12.2461 9.86824L11 10.5803V12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12V10.5803L7.75386 9.86824C7.27434 9.59423 7.10775 8.98338 7.38176 8.50386Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M3 11C3.55228 11 4 11.4477 4 12V13.4197L5.24614 14.1318C5.72566 14.4058 5.89225 15.0166 5.61824 15.4961C5.34423 15.9757 4.73338 16.1423 4.25386 15.8682L2.50386 14.8682C2.19229 14.6902 2 14.3589 2 14V12C2 11.4477 2.44772 11 3 11Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M17 11C17.5523 11 18 11.4477 18 12V14C18 14.3589 17.8077 14.6902 17.4961 14.8682L15.7461 15.8682C15.2666 16.1423 14.6558 15.9757 14.3818 15.4961C14.1077 15.0166 14.2743 14.4058 14.7539 14.1318L16 13.4197V12C16 11.4477 16.4477 11 17 11Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M7.38176 16.5039C7.65577 16.0243 8.26662 15.8577 8.74614 16.1318L9 16.2768V16C9 15.4477 9.44772 15 10 15C10.5523 15 11 15.4477 11 16V16.2768L11.2539 16.1318C11.7334 15.8577 12.3442 16.0243 12.6182 16.5039C12.8923 16.9834 12.7257 17.5942 12.2461 17.8682L10.5113 18.8596C10.3617 18.9488 10.1868 19 10 19C9.81316 19 9.63828 18.9488 9.48866 18.8596L7.75386 17.8682C7.27434 17.5942 7.10775 16.9834 7.38176 16.5039Z",fill:"#CED4DA"})]}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Traits"})]}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ms.jsx)("path",{d:"M7 3C6.44772 3 6 3.44772 6 4C6 4.55228 6.44772 5 7 5H13C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3H7Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M4 7C4 6.44772 4.44772 6 5 6H15C15.5523 6 16 6.44772 16 7C16 7.55228 15.5523 8 15 8H5C4.44772 8 4 7.55228 4 7Z",fill:"#CED4DA"}),(0,ms.jsx)("path",{d:"M2 11C2 9.89543 2.89543 9 4 9H16C17.1046 9 18 9.89543 18 11V15C18 16.1046 17.1046 17 16 17H4C2.89543 17 2 16.1046 2 15V11Z",fill:"#CED4DA"})]}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Collections"})]})}),x]}),h?(0,ms.jsx)("div",{className:"space-y-2 mt-3 max-h-[360px] overflow-y-auto px-[1rem]",children:c&&0===(null===(n=Object.keys(d||{}))||void 0===n?void 0:n.length)?(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"w-full h-[44px] animate-pulse border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 bg-[#747675cb]"}),(0,ms.jsx)("div",{className:"w-full h-[44px] animate-pulse border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 bg-[#747675cb]"}),(0,ms.jsx)("div",{className:"w-full h-[44px] animate-pulse border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 bg-[#747675cb]"}),(0,ms.jsx)("div",{className:"w-full h-[44px] animate-pulse border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 bg-[#747675cb]"}),(0,ms.jsx)("div",{className:"w-full h-[44px] animate-pulse border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 bg-[#747675cb]"})]}):0!==(null===(r=Object.keys(d||{}))||void 0===r?void 0:r.length)||w?(null===(i=Object.keys(d||{}))||void 0===i?void 0:i.length)>0&&void 0===(null===(o=Object.values(d||{}))||void 0===o||null===(a=o[0])||void 0===a?void 0:a.traits)&&y||w?(0,ms.jsx)("div",{className:"w-full h-[44px] border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 cursor-default",children:(0,ms.jsx)("p",{className:"text-center",children:"No Traits Found"})}):(0,ms.jsxs)(ms.Fragment,{children:[!y&&(0,ms.jsx)(mx,{value:m,onChange:e=>g(e.target.value),clearSearch:()=>g(""),placeholder:"Search Collections"}),(0,ms.jsx)(ms.Fragment,{children:C.length?C:m&&(0,ms.jsx)("div",{children:"No results found."})})]}):(0,ms.jsx)("div",{className:"w-full h-[44px] border-[1px] rounded-[4px] py-[0.5rem] border-neutral-400 border-opacity-25 cursor-default",children:(0,ms.jsx)("p",{className:"text-center",children:y||!b?"No Filters Result":"No Owned NFTs"})})}):null]})};function yx(e,t){(0,Ps.A)(2,arguments);var n=(0,Hb.default)(e),r=(0,Hb.default)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var bx=__webpack_require__(17545),wx=__webpack_require__(33744),xx=__webpack_require__(23160);function Cx(e,t){if((0,Ps.A)(2,arguments),!t||"object"!==(0,bx.A)(t))return new Date(NaN);var n=t.years?(0,Ds.A)(t.years):0,r=t.months?(0,Ds.A)(t.months):0,i=t.weeks?(0,Ds.A)(t.weeks):0,o=t.days?(0,Ds.A)(t.days):0,a=t.hours?(0,Ds.A)(t.hours):0,s=t.minutes?(0,Ds.A)(t.minutes):0,l=t.seconds?(0,Ds.A)(t.seconds):0,c=(0,Hb.default)(e),u=r||n?(0,xx.default)(c,r+12*n):c,d=o||i?(0,wx.default)(u,o+7*i):u,p=1e3*(l+60*(s+60*a));return new Date(d.getTime()+p)}var Ax=__webpack_require__(46125),Ex=__webpack_require__(48266),_x=__webpack_require__(73814);function Tx(e,t){(0,Ps.A)(2,arguments);var n,r=(0,Hb.default)(e),i=(0,Hb.default)(t),o=yx(r,i),a=Math.abs((0,Ax.default)(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=yx(r,i)===-o;(function(e){(0,Ps.A)(1,arguments);var t=(0,Hb.default)(e);return(0,Ex.default)(t).getTime()===(0,_x.default)(t).getTime()})((0,Hb.default)(e))&&1===a&&1===yx(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}var Sx=__webpack_require__(59513),kx=__webpack_require__(24140);function Px(e){(0,Ps.A)(1,arguments);var t=(0,Hb.default)(e.start),n=(0,Hb.default)(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(function(e,t){(0,Ps.A)(2,arguments);var n=(0,Hb.default)(e),r=(0,Hb.default)(t),i=yx(n,r),o=Math.abs((0,kx.default)(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=yx(n,r)===-i,s=i*(o-Number(a));return 0===s?0:s}(n,t));var i=yx(n,t),o=Cx(t,{years:i*r.years});r.months=Math.abs(Tx(n,o));var a=Cx(o,{months:i*r.months});r.days=Math.abs((0,qb.A)(n,a));var s=Cx(a,{days:i*r.days});r.hours=Math.abs((0,Gb.A)(n,s));var l=Cx(s,{hours:i*r.hours});r.minutes=Math.abs((0,Yb.A)(n,l));var c=Cx(l,{minutes:i*r.minutes});return r.seconds=Math.abs((0,Sx.A)(n,c)),r}var Dx=__webpack_require__(40328),Fx=__webpack_require__(11540),Nx=["years","months","weeks","days","hours","minutes","seconds"];const Ix=e=>{if("number"!==typeof e)return"";return function(e,t){var n,r,i,o,a;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var s=(0,Dx.q)(),l=null!==(n=null!==(r=null===t||void 0===t?void 0:t.locale)&&void 0!==r?r:s.locale)&&void 0!==n?n:Fx.A,c=null!==(i=null===t||void 0===t?void 0:t.format)&&void 0!==i?i:Nx,u=null!==(o=null===t||void 0===t?void 0:t.zero)&&void 0!==o&&o,d=null!==(a=null===t||void 0===t?void 0:t.delimiter)&&void 0!==a?a:" ";return l.formatDistance?c.reduce((function(t,n){var r="x".concat(n.replace(/(^.)/,(function(e){return e.toUpperCase()}))),i=e[n];return"number"===typeof i&&(u||e[n])?t.concat(l.formatDistance(r,i)):t}),[]).join(d):""}(Px({end:1e3*e,start:0}),{format:["days"]})},Rx=()=>{(0,sa.useEffect)((()=>{const e=e=>{e.preventDefault()},t=document.querySelectorAll('input[type="number"]');return t.forEach((t=>{t.addEventListener("wheel",e,{passive:!1})})),()=>{t.forEach((t=>{t.removeEventListener("wheel",e)}))}}),[])},Ox=()=>{var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_;const{orderFilters:T,setOrderFilters:S}=(0,sa.useContext)(Tw),[k,P]=(0,sa.useState)({max:null!==(e=Ix(null===T||void 0===T||null===(t=T.loan)||void 0===t||null===(n=t.term)||void 0===n?void 0:n.max))&&void 0!==e?e:"",min:null!==(r=Ix(null===T||void 0===T||null===(i=T.loan)||void 0===i||null===(o=i.term)||void 0===o?void 0:o.min))&&void 0!==r?r:""}),D=!!T.loan,F=e=>e/100,N=e=>Number((100*e).toFixed(0)),I=(e,t,n)=>{const r={...T};let i=e;var o,a,s;("term"===t&&(i=(e=>60*e*60*24)(e),P({...k,[n]:e})),i)?r.loan?r.loan[t]={...r.loan[t],[n]:i}:r.loan={[t]:{[n]:i}}:i?(null===r||void 0===r||null===(o=r.loan)||void 0===o?void 0:o[t])&&delete r.loan[field.name].max:(null===r||void 0===r||null===(a=r.loan)||void 0===a?void 0:a[t])&&(null===r||void 0===r||(null===(s=r.loan)||void 0===s||delete s[t]));S(r)};return Rx(),(0,ms.jsxs)("div",{className:"flex flex-col gap-[1.5rem]",children:[(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] font-[600] text-white",children:"Loan Amount"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"loan-amount-min",onFocus:()=>{D||S({loan:{}})},value:null!==(a=null===T||void 0===T||null===(s=T.loan)||void 0===s||null===(l=s["derivations.calculatedValues.marketplaceAmount"])||void 0===l?void 0:l.min)&&void 0!==a?a:"",name:"derivations.calculatedValues.marketplaceAmount",onChange:e=>I(Number(e.target.value),e.target.name||"","min"),type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"loan-amount-max",onFocus:()=>{D||S({loan:{}})},name:"derivations.calculatedValues.marketplaceAmount",onChange:e=>I(Number(e.target.value),e.target.name||"","max"),value:null!==(c=null===T||void 0===T||null===(u=T.loan)||void 0===u||null===(d=u["derivations.calculatedValues.marketplaceAmount"])||void 0===d?void 0:d.max)&&void 0!==c?c:"",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] text-left font-[600] text-white",children:"APR %"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"loan-apr-min",value:null!==(p=null===T||void 0===T||null===(h=T.loan)||void 0===h||null===(f=h["derivations.marketplaceAPR"])||void 0===f?void 0:f.min)&&void 0!==p?p:"",name:"derivations.marketplaceAPR",onChange:e=>I(Number(e.target.value),e.target.name||"","min"),type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"loan-apr-max",value:null!==(m=null===T||void 0===T||null===(g=T.loan)||void 0===g||null===(v=g["derivations.marketplaceAPR"])||void 0===v?void 0:v.max)&&void 0!==m?m:"",onFocus:()=>{D||S({loan:{}})},name:"derivations.marketplaceAPR",type:"number",onChange:e=>I(Number(e.target.value),e.target.name||"","max"),placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] text-left font-[600] text-white",children:"Duration (Days)"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"loan-duration-min",onFocus:()=>{D||S({loan:{}})},value:k.min||"",name:"term",onChange:e=>{I(Number(e.target.value),e.target.name||"","min")},type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"loan-duration-max",value:k.max||"",onChange:e=>{I(Number(e.target.value),e.target.name||"","max")},name:"term",onFocus:()=>{D||S({loan:{}})},type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] text-left font-[600] text-white",children:"Loan to Value (LTV) %"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"loan-ltv-min",value:null!==T&&void 0!==T&&null!==(y=T.loan)&&void 0!==y&&null!==(b=y["valuations.aggregate.loanToValueRatio"])&&void 0!==b&&b.min?N(null===T||void 0===T||null===(w=T.loan)||void 0===w||null===(x=w["valuations.aggregate.loanToValueRatio"])||void 0===x?void 0:x.min):"",onFocus:()=>{D||S({loan:{}})},onChange:e=>I(F(Number(e.target.value)),e.target.name||"","min"),name:"valuations.aggregate.loanToValueRatio",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"loan-ltv-max",value:null!==T&&void 0!==T&&null!==(C=T.loan)&&void 0!==C&&null!==(A=C["valuations.aggregate.loanToValueRatio"])&&void 0!==A&&A.max?N(null===T||void 0===T||null===(E=T.loan)||void 0===E||null===(_=E["valuations.aggregate.loanToValueRatio"])||void 0===_?void 0:_.max):"",onFocus:()=>{D||S({loan:{}})},onChange:e=>I(F(Number(e.target.value)),e.target.name||"","max"),name:"valuations.aggregate.loanToValueRatio",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]})]})},jx=()=>{var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v;const{orderFilters:y,setOrderFilters:b}=(0,sa.useContext)(Tw),w=(e,t,n)=>{const r={...y};var i,o,a;e?r.storefront?r.storefront[t]={...r.storefront[t],[n]:e}:r.storefront={[t]:{[n]:e}}:e?(null===r||void 0===r||null===(i=r.storefront)||void 0===i?void 0:i[t])&&delete r.storefront[field.name].max:(null===r||void 0===r||null===(o=r.storefront)||void 0===o?void 0:o[t])&&(null===r||void 0===r||(null===(a=r.storefront)||void 0===a||delete a[t]));b(r)},x=e=>e/100,C=e=>100*e;return Rx(),(0,ms.jsxs)("div",{className:"flex flex-col gap-[1.5rem]",children:[(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] font-[600] text-white",children:"Purchase Price"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"purchase-price-min",value:null!==(e=null===y||void 0===y||null===(t=y.storefront)||void 0===t||null===(n=t.salePrice)||void 0===n?void 0:n.min)&&void 0!==e?e:"",onChange:e=>w(Number(e.target.value),e.target.name||"","min"),name:"salePrice",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"purchase-price-max",value:null!==(r=null===y||void 0===y||null===(i=y.storefront)||void 0===i||null===(o=i.salePrice)||void 0===o?void 0:o.max)&&void 0!==r?r:"",onChange:e=>w(Number(e.target.value),e.target.name||"","max"),name:"salePrice",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] font-[600] text-white text-left",children:"3rd Party FMV"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"fmv-min",value:null!==(a=null===y||void 0===y||null===(s=y.storefront)||void 0===s||null===(l=s["valuations.blended.usdValue"])||void 0===l?void 0:l.min)&&void 0!==a?a:"",onChange:e=>w(Number(e.target.value),e.target.name||"","min"),name:"valuations.blended.usdValue",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"fmv-max",value:null!==(c=null===y||void 0===y||null===(u=y.storefront)||void 0===u||null===(d=u["valuations.blended.usdValue"])||void 0===d?void 0:d.max)&&void 0!==c?c:"",onChange:e=>w(Number(e.target.value),e.target.name||"","max"),name:"valuations.blended.usdValue",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] font-[600] text-white text-left",children:"Discount to FMV %"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"fmv-discount-min",value:null!==y&&void 0!==y&&null!==(p=y.storefront)&&void 0!==p&&null!==(h=p.valuationRatio)&&void 0!==h&&h.min?C(null===y||void 0===y||null===(f=y.storefront)||void 0===f?void 0:f.valuationRatio.min):"",onChange:e=>w(x(Number(e.target.value)),e.target.name||"","min"),name:"valuationRatio",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"fmv-discount-max",value:null!==y&&void 0!==y&&null!==(m=y.storefront)&&void 0!==m&&null!==(g=m.valuationRatio)&&void 0!==g&&g.max?C(null===y||void 0===y||null===(v=y.storefront)||void 0===v?void 0:v.valuationRatio.max):"",onChange:e=>w(x(Number(e.target.value)),e.target.name||"","max"),name:"valuationRatio",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]})]})},Mx=()=>{var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v;const{orderFilters:y,setOrderFilters:b}=(0,sa.useContext)(Tw),[w,x]=(0,sa.useState)({max:null!==(e=Ix(null===y||void 0===y||null===(t=y.rental)||void 0===t||null===(n=t.term)||void 0===n?void 0:n.max))&&void 0!==e?e:"",min:null!==(r=Ix(null===y||void 0===y||null===(i=y.rental)||void 0===i||null===(o=i.term)||void 0===o?void 0:o.min))&&void 0!==r?r:""}),C=(e,t,n)=>{const r={...y};let i=e;var o,a,s;("term"===t&&(i=(e=>60*e*60*24)(e),x({...w,[n]:e})),i)?r.rental?r.rental[t]={...r.rental[t],[n]:i}:r.rental={[t]:{[n]:i}}:i?(null===r||void 0===r||null===(o=r.rental)||void 0===o?void 0:o[t])&&delete r.rental[field.name].max:(null===r||void 0===r||null===(a=r.rental)||void 0===a?void 0:a[t])&&(null===r||void 0===r||(null===(s=r.rental)||void 0===s||delete s[t]));b(r)};return Rx(),(0,ms.jsxs)("div",{className:"flex flex-col gap-[1.5rem]",children:[(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] font-[600] text-white",children:"Rental Fee"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"rental-fee-min",value:null!==(a=null===y||void 0===y||null===(s=y.rental)||void 0===s||null===(l=s.amount)||void 0===l?void 0:l.min)&&void 0!==a?a:"",onChange:e=>C(Number(e.target.value),e.target.name||"","min"),name:"amount",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"rental-fee-max",value:null!==(c=null===y||void 0===y||null===(u=y.rental)||void 0===u||null===(d=u.amount)||void 0===d?void 0:d.max)&&void 0!==c?c:"",onChange:e=>C(Number(e.target.value),e.target.name||"","max"),name:"amount",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] text-left font-[600]",children:"Refundable Deposit"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"refundable-deposit-min",value:null!==(p=null===y||void 0===y||null===(h=y.rental)||void 0===h||null===(f=h.deposit)||void 0===f?void 0:f.min)&&void 0!==p?p:"",onChange:e=>C(Number(e.target.value),e.target.name||"","min"),name:"deposit",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"refundable-deposit-max",value:null!==(m=null===y||void 0===y||null===(g=y.rental)||void 0===g||null===(v=g.deposit)||void 0===v?void 0:v.max)&&void 0!==m?m:"",onChange:e=>C(Number(e.target.value),e.target.name||"","max"),name:"deposit",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]}),(0,ms.jsxs)("div",{className:"text-left flex flex-col gap-[0.5rem]",children:[(0,ms.jsx)("span",{className:"text-[0.875rem] text-left font-[600]",children:"Duration (Days)"}),(0,ms.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ms.jsx)("input",{"data-testid":"rental-duration-min",value:w.min||"",onChange:e=>{C(Number(e.target.value),e.target.name||"","min")},name:"term",type:"number",placeholder:"Min",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"}),(0,ms.jsx)("input",{"data-testid":"rental-duration-max",value:w.max||"",onChange:e=>{C(Number(e.target.value),e.target.name||"","max")},name:"term",type:"number",placeholder:"Max",className:"w-1/2 px-3 py-0.5 font-semibold bg-transparent border border-[#FCFCFC] rounded-[5px]"})]})]})]})},Lx={all:"latestBlock",loan:"blockTimestamp",rental:"blockTimestamp",storefront:"blockTimestamp"},Bx=()=>{const{orderFilters:e,setOrderFilters:t,setSort:n,onlyUnlisted:r,setOnlyUnlisted:i}=(0,sa.useContext)(Tw),[o,a]=(0,sa.useState)("storefront"),[s,l]=(0,sa.useState)({loan:!1,rental:!1,storefront:!1}),c=(0,js.zy)().pathname,u=(0,sa.useMemo)((()=>c.includes("/user")),[c]);(0,sa.useEffect)((()=>null!==e&&void 0!==e&&e.loan?a("loan"):null!==e&&void 0!==e&&e.all?a("all"):null!==e&&void 0!==e&&e.storefront?a("storefront"):null!==e&&void 0!==e&&e.rental?a("rental"):r?a("unlisted"):void a("all")),[e]);const d=Object.keys(e).length>1,p=r=>{if(ds.o.track("".concat(r," listing toggled"),{listingType:r}),l({loan:!1,rental:!1,storefront:!1,[r]:!0}),a(r),i("unlisted"===r),"all"===r)return t({all:{}}),void n(u?{direction:"desc",listingKind:null,path:"latestBlock",prefix:""}:{direction:"desc",listingKind:null,path:"blockTimestamp"});if("unlisted"===r||null===r)return t({});if(e[r]&&!d)t({}),n({direction:"desc",listingKind:null,path:"blockTimestamp",prefix:void 0});else{const e={direction:"desc",listingKind:r,path:Lx[r],prefix:void 0};if(t({[r]:{}}),u){n({direction:"desc",listingKind:r,path:"blockTimestamp"})}else n(e)}};return(0,ms.jsxs)("div",{className:"space-y-2",children:[(0,ms.jsx)(Iy,{name:"listing-type",value:"all",label:"Show All",disabled:!1,onChange:p,isChecked:"all"===o,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(Iy,{name:"listing-type",value:"storefront",label:"Buy Now",disabled:!1,onChange:p,isChecked:"storefront"===o,iconPosition:"right",collapsible:!0,isOpen:s.storefront,setIsOpen:e=>{l({...s,storefront:e})},children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:(0,ms.jsx)(jx,{})})}),(0,ms.jsx)(Iy,{name:"listing-type",value:"rental",label:"Rentals",disabled:!1,onChange:p,isChecked:"rental"===o,iconPosition:"right",collapsible:!0,isOpen:s.rental,setIsOpen:e=>l({...s,rental:e}),children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:(0,ms.jsx)(Mx,{})})}),(0,ms.jsx)(Iy,{name:"listing-type",value:"loan",label:"Loans",disabled:!1,onChange:p,isChecked:"loan"===o,iconPosition:"right",collapsible:!0,isOpen:s.loan,setIsOpen:e=>l({...s,loan:e}),children:(0,ms.jsx)("div",{className:"w-full pb-1 mt-2.5",children:(0,ms.jsx)(Ox,{})})}),u&&(0,ms.jsx)(Iy,{name:"listing-type",value:"unlisted",label:"Unlisted",disabled:!1,onChange:p,isChecked:"unlisted"===o,iconPosition:"right",collapsible:!1})]})},Ux=()=>{const[e,t]=(0,sa.useState)(!0),n=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"listing-type-chevron",className:cy({"rotate-0":!e,"rotate-180":e}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:e?"#04e5a3":"#F8F9FA"})})),[e]);return(0,ms.jsxs)("div",{className:cy("rounded-[0.375rem] cursor-pointer border-[1px] border-neutral-400 border-opacity-25 py-[0.875rem]",{"hover:bg-[#ffffff29]":!e}),children:[(0,ms.jsxs)("div",{className:"flex items-center justify-between w-full px-[1rem]",onClick:()=>t(!e),children:[(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.432 9.39523L9.39409 18.433C8.91944 18.9078 8.14511 18.9078 7.67038 18.433L1.56698 12.3296C1.09226 11.855 1.09226 11.0807 1.56698 10.6059L10.6048 1.568C10.8485 1.32429 11.1478 1.20405 11.4925 1.21124L16.4403 1.31577C17.03 1.32816 17.5574 1.56023 17.9985 2.00148C18.4398 2.44273 18.6718 2.97003 18.6842 3.55972L18.7887 8.50753C18.796 8.85222 18.6757 9.15152 18.432 9.39523ZM15.1291 4.87097C14.5496 4.29148 13.61 4.29148 13.0305 4.87097C12.451 5.45046 12.451 6.38999 13.0305 6.96945C13.61 7.54894 14.5496 7.54894 15.1292 6.96945C15.7087 6.38999 15.7087 5.45046 15.1291 4.87097Z",fill:"white",fillOpacity:"0.8"})}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Listing Type"})]}),n]}),e?(0,ms.jsx)("div",{className:"space-y-2 mt-3 overflow-y-auto styled-scroll px-[1rem]",children:(0,ms.jsx)(Bx,{})}):null]})},Vx=e=>{var t,n;let{values:r,serialFilter:i,setSerialFilter:o,setFieldValue:a,disabled:s=!1}=e;const l=Number(null===r||void 0===r?void 0:r.serialNumberMax)<Number(null===r||void 0===r?void 0:r.serialNumberMin)&&Number(null===r||void 0===r?void 0:r.serialNumberMax)>0;return(0,sa.useEffect)((()=>{l||o({max:null===r||void 0===r?void 0:r.serialNumberMax,min:null===r||void 0===r?void 0:r.serialNumberMin})}),[r]),(0,sa.useEffect)((()=>{s&&(o(null),a("serialNumberMin",""),a("serialNumberMax",""))}),[s]),(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Bs.f,{name:"serialNumberMin",valueError:l,placeholder:(null===i||void 0===i||null===(t=i.min)||void 0===t?void 0:t.toString())||"Min",disabled:s}),(0,ms.jsx)(Bs.f,{name:"serialNumberMax",valueError:l,placeholder:(null===i||void 0===i||null===(n=i.max)||void 0===n?void 0:n.toString())||"Max",disabled:s})]})},Hx=()=>{const{serialFilter:e,setSerialFilter:t,filters:n}=(0,sa.useContext)(Tw),r=(0,js.zy)(),i=(0,sa.useMemo)((()=>r.pathname.includes("/collection/")),[r.pathname]),[o,a]=(0,sa.useState)(!0),[s,l]=(0,sa.useState)(!1);(0,sa.useEffect)((()=>{i||Object.keys(n).length?l(!1):l(!0)}),[n]);const c=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"serial-range-chevron",onClick:e=>{e.stopPropagation(),a(!o)},className:cy({"rotate-0":!o,"rotate-180":o}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:o?"#04e5a3":"#F8F9FA"})})),[o]);return(0,ms.jsxs)("div",{className:cy("rounded-[0.375rem] cursor-pointer border-[1px] border-neutral-400 border-opacity-25  px-[1rem] py-[0.875rem]",{"hover:bg-[#ffffff29]":!o}),children:[(0,ms.jsxs)("div",{className:"flex items-center justify-between w-full",onClick:()=>a(!o),children:[(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24254 3.02985C9.77833 3.1638 10.1041 3.70673 9.97014 4.24253L9.53078 5.99999H12.4692L13.0299 3.75746C13.1638 3.22166 13.7067 2.8959 14.2425 3.02985C14.7783 3.1638 15.1041 3.70673 14.9701 4.24253L14.5308 5.99999H17C17.5523 5.99999 18 6.44771 18 6.99999C18 7.55228 17.5523 7.99999 17 7.99999H14.0308L13.0308 12H15C15.5523 12 16 12.4477 16 13C16 13.5523 15.5523 14 15 14H12.5308L11.9701 16.2425C11.8362 16.7783 11.2933 17.1041 10.7575 16.9701C10.2217 16.8362 9.89591 16.2933 10.0299 15.7575L10.4692 14H7.53078L6.97014 16.2425C6.83619 16.7783 6.29326 17.1041 5.75746 16.9701C5.22167 16.8362 4.89591 16.2933 5.02986 15.7575L5.46922 14H3C2.44772 14 2 13.5523 2 13C2 12.4477 2.44772 12 3 12H5.96922L6.96922 7.99999H5C4.44772 7.99999 4 7.55228 4 6.99999C4 6.44771 4.44772 5.99999 5 5.99999H7.46922L8.02986 3.75746C8.16381 3.22166 8.70674 2.8959 9.24254 3.02985ZM9.03078 7.99999L8.03078 12H10.9692L11.9692 7.99999H9.03078Z",fill:"#CED4DA"})}),(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:"Serial Number Range"})]}),c]}),o?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"flex gap-2 pt-2",children:(0,ms.jsx)(gl.l1,{initialValues:{serialNumberMax:e?e.max:"",serialNumberMin:e?e.min:""},onSubmit:()=>{},validate:()=>({}),children:n=>{let{values:r,setFieldValue:i}=n;return(0,ms.jsx)(Vx,{values:r,setFieldValue:i,serialFilter:e,setSerialFilter:t,disabled:s})}})}),(0,ms.jsxs)("div",{className:"text-xs p-1 min-h-[21px]",children:[" ",s&&"Select at least one collection, then input range"," "]})]}):null]})},zx=e=>e.split(/(?=[A-Z][a-z])/).join(" "),Wx=e=>{let{label:t,dataTestId:n,text:r,icon:i,addon:o,children:a,onClick:s,isClearAll:l=!1}=e;return(0,ms.jsxs)("div",{"data-testid":n,onKeyDown:e=>{"Enter"===e.key&&s&&s()},onClick:s&&s,className:"py-[0.38rem] lg:py-[1.125rem] tracking-[.00625rem] lg:tracking-[0.1px] font-montserrat text-[.75rem] lg:text-[0.9375rem] font-[500] px-[.5rem] lg:px-[1rem] rounded-[0.375rem] text-white bg-[#e1e1e114] lg:bg-glassFillGray hover:bg-glassFillGrayHover h-[1.75rem] lg:h-[2.5rem]  flex items-center justify-center gap-[0.75rem] shadow-[0_2px_4px_0px_rgba(0,0,0,0.1)] cursor-pointer",children:[i,a,(0,ms.jsxs)("div",{className:"flex flex-row items-center whitespace-nowrap",children:[t&&(0,ms.jsx)("span",{className:"text-[#ffffff50] mr-2",children:" ".concat(zx(t))}),(0,ms.jsx)("span",{className:"flex text-center",children:r})]}),o,!l&&(0,ms.jsx)("div",{className:"cursor-pointer",children:(0,ms.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{d:"M3.5 10.5L10.5 3.5M3.5 3.5L10.5 10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},qx=()=>{var e,t;const[n]=(0,ca.ok)(),{paymentTokens:r,setPaymentTokens:i}=(0,sa.useContext)(Tw),o=JSON.parse(null!==(e=n.get(null!==(t="paymentTokens")?t:""))&&void 0!==e?e:"{}"),a=(0,sa.useMemo)((()=>null!==o&&void 0!==o&&o.dapper?"Dapper Wallet":null!==o&&void 0!==o&&o.other?"Other Wallets":"All Accounts"),[o]);return"All Accounts"===a?null:(0,ms.jsx)(Wx,{text:a,label:"Wallet:",onClick:()=>{const e={...r};"Dapper Wallet"===a&&delete e.dapper,"Other Wallets"===a&&delete e.other,i(e)}})};var Gx=__webpack_require__(41551),Yx=__webpack_require__(54622);const Kx={DUC:{icon:(0,ms.jsx)(Gx.h,{}),label:"Dapper Balance"},FLOW:{icon:(0,ms.jsx)(zw.h,{height:18,width:18}),label:"FLOW"},FUT:{icon:(0,ms.jsx)(Yx.h,{}),label:"Dapper FLOW"},USDC:{icon:(0,ms.jsx)(Gw,{}),label:"USDC"}},Qx=()=>{const{paymentTokens:e,setPaymentTokens:t}=(0,sa.useContext)(Tw),n=Object.entries(null!==e&&void 0!==e?e:{}).filter((e=>{let[,t]=e;return t&&"object"===typeof t})).map((e=>{let[,t]=e;return Object.keys(t).filter((e=>!0===t[e]))})).reduce(((e,t)=>e.concat(t)),[]);return(0,ms.jsx)(ms.Fragment,{children:n.map((n=>(0,ms.jsx)("div",{className:"flex",children:(0,ms.jsx)("div",{className:"fade-in",children:(0,ms.jsx)(Wx,{text:Kx[n].label,addon:Kx[n].icon,label:"Currency:",onClick:()=>{const r={...e};var i,o;"DUC"===n&&(null===r||void 0===r||(null===(i=r.dapper)||void 0===i||delete i[n]));"FLOW"!==n&&"USDC"!==n||(null===r||void 0===r||(null===(o=r.other)||void 0===o||delete o[n]));t(r)}})})},n)))})},Xx=e=>{let{trait:t,value:n,handleRemoval:r}=e;const i="".concat(t," ").concat(""!=n?n:"Any");return(0,ms.jsx)(Wx,{onClick:r,text:i.replace(t,""),label:"".concat(t,":")})},Zx=()=>{const e=window.location.pathname.includes("/collection/"),{filters:t,setFilters:n}=(0,sa.useContext)(Tw),r=Object.keys(t);return(0,ms.jsx)(ms.Fragment,{children:r.map(((r,i)=>{const o=Object.keys(t[r]);return(0,ms.jsxs)("div",{className:"contents flex-wrap gap-[4px]",children:[!e&&(0,ms.jsx)("div",{className:"fade-in","data-testid":"collections-".concat(r.split(".")[1]),children:(0,ms.jsx)(Wx,{text:r.split(".")[1],label:"Collections:",onClick:()=>{const e={...t};delete e[r],n(e)}})}),o.map((e=>{var i;const o=Object.keys(null===t||void 0===t||null===(i=t[r])||void 0===i?void 0:i[e]),a=r==="".concat(ss.BN,".TopShot"),s="Locked"===e&&a;return(0,ms.jsx)(ms.Fragment,{children:o.map((i=>{let a=i;s&&(a="true"===i?"Locked":"Not Locked");return(0,ms.jsx)("div",{className:"fade-in",children:(0,ms.jsx)(Xx,{trait:s?"Lock Status":e,value:a,handleRemoval:()=>{const a={...t};1===(null===o||void 0===o?void 0:o.length)?delete a[r][e]:delete a[r][e][i||""],n(a)}})},e)}))})}))]},"".concat(r,".").concat(i,".").concat(r))}))})},Jx=()=>{const{setOrderFilters:e,orderFilters:t,setSort:n}=(0,sa.useContext)(Tw),r=Object.keys(t),i=r[0],o="loan"===i?"LOAN":"rental"===i?"RENT":"storefront"===i?"BUY NOW":"ALL";return(0,ms.jsx)(ms.Fragment,{children:r.length>0&&(0,ms.jsx)("div",{className:"fade-in",children:(0,ms.jsx)(Wx,{addon:(0,ms.jsx)(Bs.FS,{label:o}),label:"Listing Type:",dataTestId:o,onClick:()=>{const r={...t};delete r[i],n({direction:"desc",listingKind:null,path:"blockTimestamp",prefix:void 0}),r.all={},e(r)}})})})},$x=e=>{let{dataTestId:t,onClick:n}=e;return(0,ms.jsx)("button",{"data-testid":t,onKeyDown:e=>{"Enter"===e.key&&n&&n()},onClick:n,className:"text-left text-white font-montserrat text-xs font-bold leading-4 tracking-[0.00625rem] underline cursor-pointer pb-0 md:pb-[2.06rem]",children:"CLEAR FILTERS"})},eC=e=>{var t,n;let{isMobile:r=!1}=e;const{paymentTokens:i,setSort:o,orderFilters:a,filters:s,setFilters:l,setOrderFilters:c,setPaymentTokens:u}=(0,sa.useContext)(Tw),d=(0,js.zy)(),p=d.pathname.includes("/collection"),h=(0,js.Zp)(),f=(null===i||void 0===i?void 0:i.dapper)||(null===i||void 0===i?void 0:i.other),m=Object.keys(s).length>0,g=(null===(t=Object.values(s))||void 0===t?void 0:t[0])||[],v=p?(null===(n=Object.keys(g))||void 0===n?void 0:n.length)>0:m,y=a.loan||a.rental||a.storefront,b=()=>{l({}),d.pathname.includes("/user")?o({direction:"desc",listingKind:null,path:"latestBlock",prefix:""}):o({direction:"desc",listingKind:null,path:"blockTimestamp",prefix:void 0}),u(null),c({all:{}}),h(d.pathname,{replace:!0})};return v||y||f?(0,ms.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-start justify-start gap-[0.63rem] w-full pb-4",children:[(0,ms.jsxs)("div",{className:"flex gap-[.75rem] lg:gap-[8px] w-full overflow-x-auto sm:flex-wrap pb-1 lg:pb-0",children:[(0,ms.jsx)(qx,{}),(0,ms.jsx)(Jx,{}),(0,ms.jsx)(Qx,{}),(0,ms.jsx)(Zx,{})]}),r?(0,ms.jsx)($x,{onClick:b}):(0,ms.jsx)(Wx,{text:"Clear All",onClick:b,isClearAll:!0})]}):null};const tC=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));var nC=__webpack_require__(74042);const rC={all:[{label:"Recently Viewed",value:"latestBlock"},{label:"Recently Listed",value:"blockTimestamp"},{label:"Serial Number",value:"nftView.serial"}],loan:[{label:"Recently Listed",value:"blockTimestamp"},{label:"Serial Number",value:"nftView.serial"},{label:"Loan Rate",value:"derivations.calculatedValues.periodicInterest"},{label:"APR",value:"derivations.apr"},{label:"Loan Amount",value:"derivations.calculatedValues.marketplaceAmount"},{label:"Duration",value:"term"},{label:"3rd Party LTV",value:"valuations.aggregate.loanToValueRatio"}],profile:[{label:"Recently Viewed",value:"latestBlock"},{label:"Serial Number",value:"nftView.serial"},{label:"Serial Number",value:"nftView.serial"},{label:"Recently Listed",value:"blockTimestamp"}],rental:[{label:"Recently Listed",value:"blockTimestamp"},{label:"Serial Number",value:"nftView.serial"},{label:"Rental Fee",value:"amount"},{label:"Deposit",value:"deposit"},{label:"Duration",value:"term"},{label:"3rd Party DTV",value:"valuations.aggregate.depositToValueRatio"}],storefront:[{label:"Recently Listed",value:"blockTimestamp"},{label:"Serial Number",value:"nftView.serial"},{label:"Price",value:"usdValue"},{label:"FMV",value:"valuations.blended.usdValue"},{label:"Discount to FMV",value:"valuationRatio"}]},iC=()=>{const[e,t]=(0,sa.useState)({isChrome:!1,isEdge:!1,isFirefox:!1,isIE:!1,isOpera:!1,isSafari:!1});return(0,sa.useEffect)((()=>{const e=navigator.userAgent,n=/chrome|chromium|crios/i.test(e)&&!/edge|edg|opr/i.test(e),r=/firefox|fxios/i.test(e),i=/^((?!chrome|android).)*safari/i.test(e),o=/opera|opr|opios/i.test(e),a=/msie|trident/i.test(e),s=/edge|edg/i.test(e);t({isChrome:n,isEdge:s,isFirefox:r,isIE:a,isOpera:o,isSafari:i})}),[]),e},oC=()=>{var e;const{orderFilters:t,setSort:n,sort:r,endpoint:i}=(0,sa.useContext)(Tw),[o,a]=(0,sa.useState)(!1),s=Object.keys(t),l=(0,sa.useMemo)((()=>1===s.length?s[0]:null),[s]),c=(0,sa.useMemo)((()=>"user"===i?rC.profile:l&&rC[l]?rC[l]:rC.all),[l]),{isSafari:u}=iC(),d=()=>a(!1);return(0,sa.useEffect)((()=>(window.addEventListener("click",d),()=>window.removeEventListener("click",d))),[]),(0,ms.jsxs)("div",{className:"relative",children:[(0,ms.jsxs)("button",{onClick:e=>{e.stopPropagation(),a(!o)},className:"flex h-[2.5rem] justify-center items-center py-2 text-base rounded-r-md border border-[#ffffff1f] lg:border-none lg:rounded-md bg-[#606e7d33] hover:bg-glassFillGrayHover font-normal max-sm:px-4 px-8 w-full text-nowrap",children:["Sort By:",(0,ms.jsx)("span",{className:"text-base lg:text-sm 2xl:text-base mx-1 mr-2",children:(null===(e=c.find((e=>e.value===(null===r||void 0===r?void 0:r.path))))||void 0===e?void 0:e.label)||"Recently Viewed"})," ","asc"===(null===r||void 0===r?void 0:r.direction)?(0,ms.jsx)(tC,{className:"w-[14px] h-[14px] lg:h-4 lg:w-4 2xl:h-[14px] 2xl:w-[14px]"}):(0,ms.jsx)(nC.A,{className:"w-[14px] h-[14px] lg:h-4 lg:w-4 2xl:h-[14px] 2xl:w-[14px]"})]}),(0,ms.jsxs)("div",{className:cy("absolute top-[42px] rounded-md overflow-hidden transition-all duration-500 ease-in-out z-10 w-full",{"bg-[#2f343a] bg-opacity-95":u,"bg-glassFillGray flowty-dropdown":!u,"max-h-0 p-0 opacity-0":!o,"max-h-96 py-3 opacity-100":o}),children:[null===c||void 0===c?void 0:c.map((e=>(0,ms.jsxs)("button",{className:"flex justify-between items-center px-4 py-2 cursor-pointer w-full hover:bg-slate-500 hover:bg-opacity-20 whitespace-nowrap",onClick:t=>{t.stopPropagation();const i=(null===e||void 0===e?void 0:e.value)===(null===r||void 0===r?void 0:r.path)?null===r||void 0===r?void 0:r.direction:null;let o="asc";if("valuationRatio"===e.value)o="desc";else o="asc";const a="asc"===i?"desc":"desc"===i?"asc":o,s="latestBlock"===e.value||"nftView.serial"===e.value?"":void 0,c={direction:a,listingKind:"nftView.serial"===e.value?null:l,path:(null===e||void 0===e?void 0:e.value)||"",prefix:s};n(c)},children:[(0,ms.jsx)("span",{className:"text-xs mr-4 font-medium text-[#ADB5BD] ".concat((null===r||void 0===r?void 0:r.path)===e.value&&"text-primary"," "),children:e.label}),(null===r||void 0===r?void 0:r.path)===e.value?"asc"===r.direction?(0,ms.jsx)(tC,{className:"w-4 h-4 fill-primary"}):(0,ms.jsx)(nC.A,{className:"w-4 h-4 fill-primary"}):null]},e.label))),l?null:(0,ms.jsx)("div",{className:"flex justify-center w-full",children:(0,ms.jsxs)("span",{className:"text-[#ADB5BD] px-4 py-2 text-xs font-normal",children:["Select a"," ",(0,ms.jsx)("span",{className:"font-bold text-xs text-[#ADB5BD]",children:"Listing Type"})," ","to see more sort options"]})})]})]})};const aC=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))}));var sC=__webpack_require__(49048);const lC=()=>(0,ms.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ms.jsx)("path",{d:"M15.8333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H13.3333L17.5 6.66667V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ms.jsx)("path",{d:"M14.1667 17.4999V10.8333H5.83337V17.4999",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ms.jsx)("path",{d:"M5.83337 2.5V6.66667H12.5",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),cC=e=>{let{action:t,actionType:n,children:r,head:i,className:o,isShowing:a,onAction:s,onClose:l}=e;return(0,ms.jsx)(cc.e,{appear:!0,show:a,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:cy("relative z-40",o),onClose:l,children:[(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),(0,ms.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,ms.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-0",leaveFrom:"opacity-0 scale-100",leaveTo:"opacity-0 scale-95",children:(0,ms.jsxs)(uc.l.Panel,{className:" transform rounded-xl bg-[#212b36]   text-left align-middle shadow-xl transition-all",children:[(0,ms.jsxs)(uc.l.Title,{as:"div",className:"border-b border-modal px-4 py-4 w-full flex justify-between items-center",children:[i,(0,ms.jsx)(Ef.A,{onClick:l,className:"h-8 w-8 cursor-pointer hover:fill-gray-400"})]}),(0,ms.jsx)("div",{className:"flex flex-col lg:flex-row w-full",children:r}),(0,ms.jsxs)("div",{className:"flex w-full justify-center px-4 pt-3 pb-6 border-t border-modal",children:[(0,ms.jsx)("button",{onClick:l,className:"w-full h-10 mr-4 flex justify-center items-center border border-white rounded-md font-extrabold text-base shadow-slate-100 hover-button-white",children:"Cancel"}),(0,ms.jsx)("button",{onClick:s,className:"w-full h-10 flex justify-center items-center uppercase  border-transparent rounded-md border-2 text-base font-extrabold text-black ".concat("positive"===n?"bg-primary hover-button":"bg-[#FF2F2F] hover-button-red"),children:t})]})]})})})})]})})},uC=e=>{let{selectedForDelete:t,setSelectedForDelete:n,deleteFilterView:r}=e;return(0,ms.jsx)(cC,{className:"z-[500]",actionType:"negative",isShowing:!!t,onClose:()=>n(null),onAction:()=>r(t),action:"Delete",head:(0,ms.jsxs)("div",{className:"flex w-full",children:[(0,ms.jsx)("div",{className:"text-[#FF2F2F] text-2xl font-bold px-1",children:"Delete"}),(0,ms.jsx)("div",{className:"px-1 text-2xl font-bold text-white",children:"Custom View"})]}),children:(0,ms.jsx)("div",{className:"flex items-center justify-center w-full px-10 py-20 bg-darkBg",children:(0,ms.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,ms.jsx)("div",{className:"mb-4 font-bold",children:"Are you sure you want to delete the filter below?"}),(0,ms.jsx)("div",{className:"text-3xl font-bold capitalize",children:null===t||void 0===t?void 0:t.name})]})})})},dC=e=>{let{collectionAddress:t,collectionName:n,isSaveModalOpen:r,isUserProfile:i,toggleIsSaveModalOpen:o,addFilterView:a,query:s,onShowSnackbar:l,newPresetTitle:c,setNewPresetTitle:u}=e;return(0,ms.jsx)(cC,{className:"z-[500]",actionType:"positive",isShowing:r,onClose:o,onAction:()=>{if(c)if(t&&n){const e="".concat(t,".").concat(n);a({collectionAddressName:e,config:s.toString(),name:c})}else a({config:s.toString(),isUserProfile:i,name:c});else l&&l({message:"Must enter value for preset name!",type:"WARNING"})},action:"save",head:(0,ms.jsxs)("div",{className:"flex w-full",children:[(0,ms.jsx)("div",{className:"px-1 text-2xl font-bold text-primary",children:"Save"}),(0,ms.jsx)("div",{className:"px-1 text-2xl font-bold text-white",children:"Custom View"})]}),children:(0,ms.jsx)("div",{className:"flex items-center justify-center w-full px-10 py-20 bg-darkBg",children:(0,ms.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,ms.jsx)("div",{className:"mb-4 font-bold",children:"What should we call this custom marketplace view?"}),(0,ms.jsx)("input",{onChange:e=>u(e.target.value),type:"text",className:"w-full px-2 text-lg font-bold bg-transparent border-2 border-white rounded-md lg:text-base",id:""})]})})})};const pC=e=>{let{address:t,onShowSnackbar:n}=e;const r=(0,js.zy)(),{collectionName:i,collectionAddress:o}=(0,js.g)(),a=r.pathname.includes("user"),{isLoading:s,setFilters:l,setOrderFilters:c,setSerialFilter:u,setSort:d}=(0,sa.useContext)(Tw),[p,h]=(0,sa.useState)([]),[f,m]=(0,sa.useState)(null),[g,v]=(0,sa.useState)(!1),[y,b]=(0,sa.useState)(null),[w,x]=(0,sa.useState)(""),C=new URLSearchParams(r.search),A="Default View",E={collectionAddressName:"".concat(o,".").concat(i),config:"orderFilters=%7B%7D&collectionFilters=%7B%7D&sort=%7B%22direction%22%3A%22desc%22%2C%22listingKind%22%3Anull%2C%22path%22%3A%22blockTimestamp%22%7D",isUserProfile:a,name:A},_=(0,sa.useRef)(!1),[T,S]=(0,sa.useState)(!1),k=e=>{_.current=!0,m(e);const t=new URLSearchParams(e.config),n=(0,us.safeParseJSON)(t.get("orderFilters"))||{},r=(0,us.safeParseJSON)(t.get("sort"))||null,i=(0,us.safeParseJSON)(t.get("collectionFilters"))||{},o=(0,us.safeParseJSON)(t.get("serialFilter"))||{};c(n),l(i),u(o),d(r),v(!1),setTimeout((()=>_.current=!1),500)},P=(0,sa.useCallback)((()=>{const e=(t=p,r=C.toString(),t.filter((e=>e.config===r))[0]||null);var t,r;(C.toString()===E.config||e)&&n?n({message:e?"View previously saved as ".concat(e.name,"."):"This is the default view!",type:"WARNING"}):S(!0)}),[p,C.toString()]),D=(0,sa.useCallback)((async e=>{try{const r=await pl.kA.collection("/accounts/".concat(t,"/filterViews")).add({...e,createdAt:(new Date).getTime()});m({...e,id:r.id}),S(!1),ds.o.track("Filter preset added",{filter:C.toString()}),n&&n({message:"Successfully saved filter preset!",type:"SUCCESS"})}catch(r){(0,fs._)("Failed to add preset",r),n&&n({message:"Failed to saved filter preset!",type:"ERROR"}),ds.o.track("Failed to add filter preset",{error:r,filter:C.toString()})}x("")}),[t]),F=(0,sa.useCallback)((async e=>{if(e.id)try{await pl.kA.collection("/accounts/".concat(t,"/filterViews")).doc(e.id).delete(),ds.o.track("Filter preset deleted",{filter:C.toString()}),b(null),n&&n({message:"Successfully deleted filter preset!",type:"SUCCESS"}),(null===f||void 0===f?void 0:f.id)===e.id&&m(null)}catch(r){n&&(n({message:"Failed to delete filter preset!",type:"ERROR"}),ds.o.track("Failed to delete filter preset",{error:r,filter:C.toString()}))}}),[t,f]),N=(0,sa.useCallback)((async()=>{try{if(a)await(async(e,t)=>{await pl.kA.collection("/accounts/".concat(e,"/filterViews")).where("isUserProfile","==",!0).orderBy("createdAt","asc").onSnapshot((async e=>{const n=e.docs.map((e=>({...e.data(),id:e.id})));t(n)}))})(null!==t&&void 0!==t?t:"",h);else{const e="".concat(o,".").concat(i);await(async(e,t,n)=>{await pl.kA.collection("/accounts/".concat(e,"/filterViews")).where("collectionAddressName","==",t).orderBy("createdAt","asc").onSnapshot((async e=>{const t=e.docs.map((e=>({...e.data(),id:e.id})));n(t)}))})(null!==t&&void 0!==t?t:"",e,h)}}catch(e){(0,fs._)("Failed to get user filter views",e)}}),[t]);return(0,sa.useEffect)((()=>{t&&N()}),[t]),(0,sa.useEffect)((()=>{_||m(null)}),[s]),(0,sa.useEffect)((()=>{C.toString()===E.config&&k(E)}),[C.toString()]),{addFilterView:D,applyPreset:k,collectionAddress:o,collectionName:i,defaultPreset:E,defaultPresetLabel:A,deleteFilterView:F,filterViews:p,isMenuOpen:g,isSaveModalOpen:T,isUserProfile:a,newPresetTitle:w,onSaveView:P,query:C,selectedForDelete:y,selectedValue:f,setNewPresetTitle:x,setSelectedForDelete:b,toggleIsSaveModalOpen:()=>S(!T),toggleMenuOpen:()=>v((e=>!e))}},hC=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n,onShowSnackbar:r}=e;const{applyPreset:i,collectionAddress:o,collectionName:a,defaultPresetLabel:s,filterViews:l,toggleMenuOpen:c,selectedValue:u,isMenuOpen:d,isSaveModalOpen:p,isUserProfile:h,defaultPreset:f,selectedForDelete:m,setSelectedForDelete:g,onSaveView:v,toggleIsSaveModalOpen:y,addFilterView:b,newPresetTitle:w,deleteFilterView:x,setNewPresetTitle:C,query:A}=pC({address:null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr,onShowSnackbar:r}),E=(0,sa.useRef)(null);function _(e){E.current&&!E.current.contains(e.target)&&c()}return(0,sa.useEffect)((()=>{if(d)return document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}}),[E,d]),null!==n&&void 0!==n&&n.loggedUser?(0,ms.jsxs)("div",{className:"flex items-center w-full",children:[l.length?(0,ms.jsxs)("div",{className:"relative w-full pr-2",children:[(0,ms.jsxs)("button",{ref:E,onClick:c,className:"min-h-[2.5rem] w-[160px] max-md:w-full px-[1.25rem] flex justify-between items-center rounded-[0.375rem] bg-glassFillGray hover:bg-[#ffffff29]",children:[(0,ms.jsx)("div",{className:"whitespace-nowrap capitalize text-[0.875rem] font-montserrat font-[600] ".concat((null===u||void 0===u?void 0:u.name)&&"text-primary"),children:(0,us.truncateString)((null===u||void 0===u?void 0:u.name)||"Saved Searches",15)}),(0,ms.jsx)(aC,{className:"h-6 w-6 transition-transform ".concat(d&&"rotate-180"," ").concat((null===u||void 0===u?void 0:u.name)&&"text-primary")})]}),(0,ms.jsx)("div",{className:"absolute w-full top-[110%] pr-2 z-10",children:(0,ms.jsx)("div",{className:"w-full bg-[#474747] shadow-lg rounded-md  transition-all duration-500 ease-in-out overflow-y-auto hide-scroll ".concat(d?"max-h-56 opacity-100 ":"max-h-0 opacity-0"),children:[...l,f].map((e=>(0,ms.jsxs)("button",{onClick:()=>{i(e)},className:"flex items-center justify-between w-full px-4 py-2 capitalize cursor-pointer select hover:bg-slate-500 hover:bg-opacity-20 ",children:[(0,ms.jsx)("div",{className:"select ".concat(u&&(null===u||void 0===u?void 0:u.id)===e.id&&"text-primary"),children:(0,us.truncateString)(e.name,12)}),e.name===s?null:(0,ms.jsx)(sC.A,{onClick:t=>{t.stopPropagation(),g(e)},className:"w-6 h-6 cursor-pointer delete text-danger border-none"})]},e.name)))})})]}):null,(0,ms.jsx)(Bs.$d,{onClick:v,text:l.length?"":"Save View",icon:(0,ms.jsx)(lC,{}),className:cy("justify-center hover:bg-[#ffffff29] w-full px-2",{"w-auto":l.length})}),(0,ms.jsx)(dC,{collectionAddress:o,collectionName:a,isSaveModalOpen:p,isUserProfile:h,toggleIsSaveModalOpen:y,addFilterView:b,query:A,onShowSnackbar:r,newPresetTitle:w,setNewPresetTitle:C}),!!m&&(0,ms.jsx)(uC,{selectedForDelete:m,setSelectedForDelete:g,deleteFilterView:x}),(0,ms.jsx)("div",{className:"fixed bottom-0 w-full"})]}):null}))),fC=e=>{let{showAccounts:t=!0}=e;const n=(0,js.zy)().pathname.includes("/user");return(0,ms.jsxs)("div",{className:"border-glassFillGrayBorder p-[1rem] rounded-[0.5rem] border-[0.3px] hidden lg:overflow-y-auto overflow-x-hidden lg:flex lg:flex-col items-stretch",children:[(0,ms.jsx)("div",{className:"mb-[1rem]",children:(0,ms.jsx)(vx,{})}),(0,ms.jsx)("div",{className:"mb-[1rem]",children:(0,ms.jsx)(Hx,{})}),(0,ms.jsx)("div",{className:"mb-[1rem]",children:(0,ms.jsx)(Ux,{})}),ss.hr&&t&&!n&&(0,ms.jsx)("div",{className:"mb-[1rem]",children:(0,ms.jsx)(ux,{})})]})},mC=e=>{let{isFilterHidden:t}=e;return(0,ms.jsx)("div",{className:"transition-width duration-200 ease-out ".concat(t?"w-0":"w-full"),children:(0,ms.jsx)("div",{style:{boxSizing:"border-box",height:"calc(100vh - 204px)"},className:"flex-col transition-opacity duration-[300ms] ease-out lg:flex overflow-y-scroll scroll-pr-0 ".concat(t?"opacity-0":"opacity-100"),children:(0,ms.jsx)(fC,{})})})};var gC,vC,yC;function bC(){return bC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bC.apply(null,arguments)}function wC(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",bC({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",className:"w-[20px] h-[20px] lg:h-4 lg:w-4 2xl:h-[20px] 2xl:w-[20px]",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,gC||(gC=sa.createElement("path",{d:"M15 16C15 16.5523 15.4477 17 16 17C16.5523 17 17 16.5523 17 16L17 8.73244C17.5978 8.38663 18 7.74028 18 7C18 6.25972 17.5978 5.61337 17 5.26756L17 4C17 3.44771 16.5523 3 16 3C15.4477 3 15 3.44771 15 4L15 5.26756C14.4022 5.61337 14 6.25972 14 7C14 7.74028 14.4022 8.38663 15 8.73243L15 16Z",fill:"#F8F9FA"})),vC||(vC=sa.createElement("path",{d:"M9 16C9 16.5523 9.44771 17 10 17C10.5523 17 11 16.5523 11 16L11 14.7324C11.5978 14.3866 12 13.7403 12 13C12 12.2597 11.5978 11.6134 11 11.2676L11 4C11 3.44771 10.5523 3 10 3C9.44772 3 9 3.44771 9 4L9 11.2676C8.4022 11.6134 8 12.2597 8 13C8 13.7403 8.4022 14.3866 9 14.7324L9 16Z",fill:"#F8F9FA"})),yC||(yC=sa.createElement("path",{d:"M4 17C3.44771 17 3 16.5523 3 16L3 8.73243C2.4022 8.38662 2 7.74028 2 7C2 6.25972 2.4022 5.61337 3 5.26756L3 4C3 3.44771 3.44772 3 4 3C4.55229 3 5 3.44771 5 4L5 5.26756C5.5978 5.61337 6 6.25972 6 7C6 7.74028 5.5978 8.38663 5 8.73243L5 16C5 16.5523 4.55229 17 4 17Z",fill:"#F8F9FA"})))}const xC=sa.forwardRef(wC),CC=(__webpack_require__.p,e=>{let{isFilterHidden:t,setIsFilterHidden:n}=e;return(0,ms.jsxs)("button",{onClick:()=>n(!t),className:"flex justify-center gap-2 items-center py-2 text-base rounded-md hover:bg-opacity-[15%] whitespace-nowrap w-full\n\t\t\t\t".concat(t?"bg-[#FFFFFF20]":"bg-glassFillGray hover:bg-glassFillGrayHover","\n\t\t\t\t"),children:[(0,ms.jsx)(xC,{}),(0,ms.jsx)("span",{className:"font-medium text-sm leading-4",children:t?"Show Filters":"Hide Filters"})]})});var AC;function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EC.apply(null,arguments)}function _C(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",EC({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,AC||(AC=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L6 4.58579L10.2929 0.292893C10.6834 -0.0976311 11.3166 -0.0976311 11.7071 0.292893C12.0976 0.683417 12.0976 1.31658 11.7071 1.70711L7.41421 6L11.7071 10.2929C12.0976 10.6834 12.0976 11.3166 11.7071 11.7071C11.3166 12.0976 10.6834 12.0976 10.2929 11.7071L6 7.41421L1.70711 11.7071C1.31658 12.0976 0.683417 12.0976 0.292893 11.7071C-0.0976311 11.3166 -0.0976311 10.6834 0.292893 10.2929L4.58579 6L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"white"})))}const TC=sa.forwardRef(_C),SC=(__webpack_require__.p,e=>{let{sidebarNavigation:t,children:n}=e;return(0,ms.jsx)("div",{className:"overlay flex min-h-full flex-col overflow-y-auto bg-[#04070B] backdrop-blur-[100px] backdrop-opacity-80 shadow-xl",style:{width:t},children:(0,ms.jsx)("div",{className:"relative flex-1 px-4",children:(0,ms.jsx)("div",{className:"absolute inset-0 flex flex-col",children:n})})})});var kC,PC,DC;function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(null,arguments)}function NC(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",FC({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",className:"w-[20px] h-[20px]",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,kC||(kC=sa.createElement("path",{d:"M15 16C15 16.5523 15.4477 17 16 17C16.5523 17 17 16.5523 17 16L17 8.73244C17.5978 8.38663 18 7.74028 18 7C18 6.25972 17.5978 5.61337 17 5.26756L17 4C17 3.44771 16.5523 3 16 3C15.4477 3 15 3.44771 15 4L15 5.26756C14.4022 5.61337 14 6.25972 14 7C14 7.74028 14.4022 8.38663 15 8.73243L15 16Z",fill:"#F8F9FA"})),PC||(PC=sa.createElement("path",{d:"M9 16C9 16.5523 9.44771 17 10 17C10.5523 17 11 16.5523 11 16L11 14.7324C11.5978 14.3866 12 13.7403 12 13C12 12.2597 11.5978 11.6134 11 11.2676L11 4C11 3.44771 10.5523 3 10 3C9.44772 3 9 3.44771 9 4L9 11.2676C8.4022 11.6134 8 12.2597 8 13C8 13.7403 8.4022 14.3866 9 14.7324L9 16Z",fill:"#F8F9FA"})),DC||(DC=sa.createElement("path",{d:"M4 17C3.44771 17 3 16.5523 3 16L3 8.73243C2.4022 8.38662 2 7.74028 2 7C2 6.25972 2.4022 5.61337 3 5.26756L3 4C3 3.44771 3.44772 3 4 3C4.55229 3 5 3.44771 5 4L5 5.26756C5.5978 5.61337 6 6.25972 6 7C6 7.74028 5.5978 8.38663 5 8.73243L5 16C5 16.5523 4.55229 17 4 17Z",fill:"#F8F9FA"})))}const IC=sa.forwardRef(NC),RC=(__webpack_require__.p,e=>{let{onClick:t,address:n,isActionsTab:r=!1}=e;const[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(!1);return(0,ms.jsxs)("div",{className:"w-full sticky top-[74px] py-[6px] z-20 bg-[#04070B]",children:[(0,ms.jsxs)("div",{className:"flex sm:flex-row flex-wrap ".concat(r?"":"flex-col justify-between"," gap-x-3"),children:[(0,ms.jsxs)("div",{className:"flex flex-wrap items-center md:flex-none pb-[.69rem]",children:[(0,ms.jsx)("button",{onClick:t,className:"flex justify-center h-[2.5rem] w-[5.75rem] gap-2 items-center py-2 px-5 text-base border border-[#ffffff1f] lg:border-none ".concat(r?"rounded-md":"rounded-l-md"," lg:rounded-md hover:bg-opacity-[15%] bg-[#606e7d33] hover:bg-glassFillGrayHover"),children:(0,ms.jsx)(IC,{})}),!r&&(0,ms.jsx)("div",{className:"max-w-[18rem] flex-1 md:flex-none",children:(0,ms.jsx)(oC,{})})]}),(0,ms.jsxs)("div",{className:"order-4 hidden max-lg:flex gap-3",children:[!r&&(0,ms.jsx)(Lw,{}),n&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"profile-refresh-tooltip",style:{backdropFilter:"blur(100px)",backgroundColor:"#33333380",zIndex:999},isOpen:i,children:(0,ms.jsx)("p",{className:"text-sm font-normal leading-none text-white",children:"Something look off? Refresh NFT"})}),(0,ms.jsx)("div",{"data-tooltip-place":"top",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),"data-tooltip-id":"profile-refresh-tooltip",onClick:async()=>{a||(s(!0),ds.o.track("Refresh Inventory Click"),s(!0),ov(null!==n&&void 0!==n?n:""),setTimeout((()=>{s(!1)}),4e3))},className:"group cursor-pointer bg-[#FFFFFF] backdrop-blur-sm p-2 rounded-md hover:bg-opacity-[15%] bg-opacity-[8%] self-start",children:(0,ms.jsx)(ql,{className:cy("w-6 h-6",{"animate-spin":a})})})]})]})]}),!r&&(0,ms.jsx)("div",{className:"w-full ".concat(n&&"pt-[.69rem]"),children:(0,ms.jsx)(eC,{isMobile:!0})})]})}),OC=e=>{let{mobilePageFilters:t,address:n,isActionsTab:r=!1}=e;const[i,o]=(0,sa.useState)("0px");return(0,ms.jsxs)(ms.Fragment,{children:["390px"===i&&(0,ms.jsx)("div",{onClick:()=>o("0px"),style:{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100vh",left:0,position:"fixed",top:0,width:"100vw",zIndex:2}}),(0,ms.jsx)(RC,{onClick:()=>o("390px"),address:n,isActionsTab:r}),(0,ms.jsxs)(SC,{sidebarNavigation:i,children:[(0,ms.jsxs)("button",{onClick:()=>o("0px"),className:"sticky top-0 left-0 w-full z-40 text-white bg-[#04070B] min-h-[2.5rem] rounded-md flex items-center gap-[0.375rem] pt-[2.75rem] pb-[2.19rem]",children:[(0,ms.jsx)("div",{className:"absolute left-5",children:(0,ms.jsx)(TC,{className:"h-4 w-4"})}),(0,ms.jsx)("span",{className:"mx-auto text-3xl font-bold ",children:"Filters"})]}),(0,ms.jsxs)("div",{className:"flex flex-col p-[0.5rem] items-stretch gap-[1rem] w-full px-4",children:[!r&&(0,ms.jsx)(hC,{}),(0,ms.jsx)(xw.c,{}),t]})]})]})},jC=e=>{let{address:t,nftList:n}=e;const{matchedCount:r,isFilterHidden:i,setIsFilterHidden:o}=Nw(),{width:a}=(0,Rw.k)(),s=a<1200,l=(0,sa.useMemo)((()=>r<1e4?Tl()(r).format("0,0"):"10,000+"),[r]);return(0,ms.jsxs)("div",{children:[s?(0,ms.jsx)(OC,{mobilePageFilters:(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(vx,{}),(0,ms.jsx)(Hx,{}),(0,ms.jsx)(Ux,{}),ss.hr&&(0,ms.jsx)(ux,{})]}),address:t}):(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("div",{className:"lg:flex flex-row gap-3 justify-between pb-4 sticky top-[138px] z-20 bg-darkBg lg:bg-blur-navbar",children:[(0,ms.jsxs)("div",{className:"min-w-[390px] flex flex-row justify-between gap-3",children:[(0,ms.jsx)(CC,{isFilterHidden:i,setIsFilterHidden:o}),(0,ms.jsx)(hC,{})]}),(0,ms.jsx)("div",{className:"w-full flex-row gap-3 justify-between",children:(0,ms.jsxs)("div",{className:"flex flex-row justify-between gap-3",children:[(0,ms.jsxs)("div",{className:"items-center flex flow-row gap-3",children:[(0,ms.jsx)(oC,{}),(0,ms.jsx)("div",{className:"font-montserrat flex items-center font-[700] flex-shrink-0 mr-2",children:"".concat(l," Items")})]}),(0,ms.jsx)(Lw,{})]})})]})}),(0,ms.jsxs)("div",{className:"flex flex-row gap-3",children:[!s&&(0,ms.jsx)("div",{className:"".concat(i?"hidden":"min-w-[390px] sticky top-[193px] h-full"),children:(0,ms.jsx)(mC,{isFilterHidden:i})}),(0,ms.jsxs)("div",{className:"w-full flex flex-col",children:[!s&&(0,ms.jsx)("div",{className:"flex-row gap-3 hidden lg:flex",children:(0,ms.jsx)(eC,{})}),n]})]})]})},MC=e=>{var t,n,r,i,o,a;let{isLoading:s,order:l}=e;return(0,ms.jsx)("div",{children:s?(0,ms.jsx)(Bs.rR,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center ",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("span",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Loan Amount"})}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"self-center text-bold text-base font-montserrat",children:(0,ms.jsx)(Fl.se,{amount:(null===l||void 0===l||null===(t=l.derivations)||void 0===t||null===(n=t.calculatedValues)||void 0===n?void 0:n.marketplaceAmount)||0,isSmall:!0,token:null===l||void 0===l?void 0:l.paymentTokenName})})})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center ",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("span",{className:"text-[#AAAAAA] text-base font-montserrat",children:"APR"})}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsxs)("span",{className:"text-bold text-base font-montserrat",children:[Tl()((0,us.calcAPRInterest)(l?Number(null===l||void 0===l||null===(r=l.derivations)||void 0===r||null===(i=r.calculatedValues)||void 0===i?void 0:i.periodicInterest):0,l?Number(l.term):0)).format("0,0.00"),"%"]})})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,ms.jsx)("div",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Duration"}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"text-bold text-base font-montserrat",children:(null===l||void 0===l?void 0:l.term)&&Sl(Number(l.term))})})]}),(0,ms.jsx)("div",{className:"my-1 border-t border-[#474747]"}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,ms.jsx)("div",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Blended LTV"}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"text-bold text-base font-montserrat",children:null!==l&&void 0!==l&&l.valuations?"".concat(Tl()(100*(null===(o=l.valuations)||void 0===o||null===(a=o.aggregate)||void 0===a?void 0:a.loanToValueRatio)).format("0,0.0"),"%"):"-"})})]})]})})},LC=e=>{let{dapperOffer:t,nonCustodialOffer:n,isWhite:r}=e;return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("span",{className:"".concat(r?"text-white":"text-[#AAAAAA] "," text-base font-montserrat mb-2 text-right"),children:"Best Offer"}),(n||t)&&ss.oT?(0,ms.jsxs)("div",{className:"flex flex-col",children:[n?(0,ms.jsxs)("div",{className:"flex flex-row justify-between text-bold",children:[(0,ms.jsx)("div",{className:"bg-[#FFFFFF2B] rounded-md flex items-center justify-center px-1 mx-1",children:(0,ms.jsx)("img",{src:(0,us.getProviderImage)("blocto"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,ms.jsx)("div",{className:"flex-1",children:(0,ms.jsx)(Fl.ti,{amount:(null===n||void 0===n?void 0:n.amount)||(null===n||void 0===n?void 0:n.salePrice)||0,isSmall:!0,token:(null===n||void 0===n?void 0:n.paymentTokenName)||(null===n||void 0===n?void 0:n.currencyToken)})})]}):(0,ms.jsxs)("div",{className:"flex flex-row justify-between text-bold",children:[(0,ms.jsx)("div",{className:"bg-[#FFFFFF2B] rounded-md flex items-center justify-center px-1 mx-1",children:(0,ms.jsx)("img",{src:(0,us.getProviderImage)("blocto"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,ms.jsx)("div",{className:"flex-1",children:(0,ms.jsx)("div",{className:"nft-price flex items-center justify-end small ",children:(0,ms.jsx)("div",{className:"text-bold text-base font-montserrat inline-block ms-1 ",children:"-"})})})]}),t?(0,ms.jsxs)("div",{className:"flex flex-row justify-between text-bold mt-1",children:[(0,ms.jsx)("div",{className:"bg-[#FFFFFF2B] rounded-md flex items-center justify-center px-1 mx-1",children:(0,ms.jsx)("img",{src:(0,us.getProviderImage)("dapper"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,ms.jsx)("div",{className:"flex-1",children:(0,ms.jsx)(Fl.ti,{amount:(null===t||void 0===t?void 0:t.amount)||(null===t||void 0===t?void 0:t.salePrice)||0,isSmall:!0,token:(null===t||void 0===t?void 0:t.paymentTokenName)||(null===t||void 0===t?void 0:t.currencyToken)})})]}):(0,ms.jsxs)("div",{className:"flex flex-row justify-between text-bold mt-1",children:[(0,ms.jsx)("div",{className:"bg-[#FFFFFF2B] rounded-md flex items-center justify-center px-1 mx-1",children:(0,ms.jsx)("img",{src:(0,us.getProviderImage)("dapper"),alt:"account icon",className:"h-4 w-4 rounded"})}),(0,ms.jsx)("div",{className:"flex-1",children:(0,ms.jsx)("div",{className:"nft-price flex items-center justify-end small ",children:(0,ms.jsx)("div",{className:"text-bold text-base font-montserrat inline-block ms-1 ",children:"-"})})})]})]}):(0,ms.jsx)("span",{className:"text-right",children:"-"})]})})},BC=e=>{let{isLoading:t,nft:n}=e;return(0,ms.jsx)(ms.Fragment,{children:t?(0,ms.jsx)(Bs.rR,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"font-montserrat text-center mx-auto my-3 text-base flex flex-row justify-center items-center",children:"No Listings Available"}),(0,ms.jsx)("div",{className:"w-full flex justify-end",children:(0,ms.jsx)(LC,{dapperOffer:n.bestDapperOffer,nonCustodialOffer:n.bestNonCustodialOffer})})]})})},UC=e=>{let{isLoading:t,order:n}=e;const{view:r}=Ss();return(0,ms.jsx)("div",{children:t?(0,ms.jsx)(Bs.rR,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("span",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Rental Fee"})}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"self-center text-bold",children:(0,ms.jsx)(Fl.se,{amount:(null===n||void 0===n?void 0:n.amount)||0,isSmall:!0,token:null===n||void 0===n?void 0:n.paymentTokenName})})})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,ms.jsx)("div",{children:"large"===r?(0,ms.jsx)("span",{className:" text-[#AAAAAA] text-base font-montserrat",children:"Refundable Deposit"}):(0,ms.jsx)("span",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Deposit"})}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"self-center text-bold",children:(0,ms.jsx)(Fl.se,{amount:(null===n||void 0===n?void 0:n.deposit)||0,isSmall:!0,token:null===n||void 0===n?void 0:n.paymentTokenName})})})]}),(0,ms.jsx)("div",{className:"my-1 border-t border-[#474747]"}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("span",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Total Upfront"})}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"self-center text-bold",children:null!==n&&void 0!==n&&n.amount&&null!==n&&void 0!==n&&n.deposit?(0,ms.jsx)(Fl.se,{amount:Number(n.deposit)+Number(n.amount),isSmall:!0,token:null===n||void 0===n?void 0:n.paymentTokenName}):(0,ms.jsx)("span",{className:"text-white text-end text-sm",children:"-"})})})]}),(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center",children:[(0,ms.jsx)("div",{className:"text-[#AAAAAA] text-base font-montserrat",children:"Duration"}),(0,ms.jsx)("div",{className:"self-center text-end",children:(0,ms.jsx)("span",{className:"text-bold text-base font-montserrat",children:(null===n||void 0===n?void 0:n.term)&&Sl(Number(n.term))})})]})]})})};var VC;function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(null,arguments)}function zC(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",HC({width:16,height:9,viewBox:"0 0 16 9",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,VC||(VC=sa.createElement("path",{d:"M0 8.5L16 8.5L8 0.5L0 8.5Z"})))}const WC=sa.forwardRef(zC);__webpack_require__.p;function qC(e){return"OTM"===e.toUpperCase()?"OTM's True Value model":e}const GC=e=>{var t,n,r,i,o,a,s,l,c,u;let{dapperOffer:d,isLoading:p,nonCustodialOffer:h,order:f}=e;const m=!(null===f||void 0===f||null===(t=f.valuations)||void 0===t||null===(n=t.blended)||void 0===n||!n.usdValue),g=function(e){const t=e.split(",");return t.length>1?"blended":t[0]}((null===f||void 0===f||null===(r=f.valuations)||void 0===r||null===(i=r.blended)||void 0===i?void 0:i.source)||"");return(0,ms.jsx)("div",{children:p?(0,ms.jsx)(Bs.rR,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between mt-1 items-center border-gradient mb-3",children:[(0,ms.jsx)("p",{className:"text-[#AAAAAA] text-base font-montserrat mb-2",children:"Purchase Price"}),(0,ms.jsx)("span",{className:"text-bold mb-2",children:null!==f&&void 0!==f&&f.salePrice?(0,ms.jsx)(Fl.se,{amount:(null===f||void 0===f?void 0:f.salePrice)||0,isSmall:!0,token:null===f||void 0===f?void 0:f.paymentTokenName}):"-"})]}),(0,ms.jsxs)("div",{className:"w-full flex justify-between",children:[m?(0,ms.jsxs)("div",{className:"flex flex-col justify-start items-start h-24 relative group",children:[(null===(o=f.valuations)||void 0===o||null===(a=o.blended)||void 0===a?void 0:a.usdValue)&&(0,ms.jsx)("div",{className:"text-[#AAAAAA] text-base font-montserrat",children:"3rd Party FMV"}),(0,ms.jsx)("div",{className:"self-center text-end py-1 w-full",children:(0,ms.jsx)("span",{className:"text-bold text-base font-montserrat w-full flex justify-start",children:null!==(s=f.valuations)&&void 0!==s&&null!==(l=s.blended)&&void 0!==l&&l.usdValue?"$".concat((0,Vb.K)(null===(c=f.valuations)||void 0===c||null===(u=c.blended)||void 0===u?void 0:u.usdValue)):"-"})}),(0,ms.jsx)("div",{onClick:e=>{e.stopPropagation()},className:"absolute hidden group-hover:block",children:(0,ms.jsxs)("div",{className:"relative right-0 -top-[9rem] bg-[#373D3F] rounded-md min-w-[18rem] z-10 cursor-default flex flex-col",children:[(0,ms.jsxs)("div",{className:"p-3",children:[(0,ms.jsx)("p",{className:"font-bold text-base mb-2",children:"Fair Market Value (FMV)"}),(0,ms.jsxs)("p",{className:"text-sm",children:["An estimate of an NFT's value based on"," ",(0,ms.jsx)(Bs.M2,{variant:"tertiary",onClick:()=>{window.open("OTM"===g.toUpperCase()?"https://www.otmnft.com/nbatopshot/articles/introducing-otm-true-value-account-valuation":"404","_blank")},text:qC(g)}),". FMV is an estimate and is in no way meant to construe financial advice."]})]}),(0,ms.jsx)(WC,{className:"fill-[#373D3F]  absolute h-6 w-6 -bottom-4 left-[13%] rotate-180"})]})})]}):(0,ms.jsx)("div",{className:"h-24"}),(0,ms.jsx)(LC,{dapperOffer:d,nonCustodialOffer:h})]})]})})},YC=e=>{let{isLoading:t,nft:n,order:r}=e;switch(null===r||void 0===r?void 0:r.listingKind){case"storefront":return(0,ms.jsx)("div",{className:"h-[9.325rem]",children:(0,ms.jsx)(GC,{isLoading:t,order:r,nonCustodialOffer:null===n||void 0===n?void 0:n.bestNonCustodialOffer,dapperOffer:null===n||void 0===n?void 0:n.bestDapperOffer})});case"loan":return(0,ms.jsx)(MC,{order:r,isLoading:t});case"rental":return(0,ms.jsx)(UC,{order:r,isLoading:t});default:return(0,ms.jsx)("div",{className:"h-[9.325rem]",children:(0,ms.jsx)(BC,{isLoading:!!t,nft:n})})}},KC=e=>{let{nft:t,isLoading:n}=e;return(0,ms.jsxs)("div",{className:"nftCard relative self-center justify-self-center flex flex-col p-[16px] rounded-lg nft-card-shadow cursor-pointer w-full h-full\n\t\t\t".concat("border-opacity-60 border-[0.8px] border-[#7c7c7c]"),children:[(0,ms.jsx)("div",{className:"sm:hover:text-white sm:peer-hover:text-white w-full h-full",children:(0,ms.jsx)("div",{className:"flex sm:flex-col-reverse mb-2 sm:mb-1",children:(0,ms.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-1 w-full h-full",children:[n?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"max-w-full w-full object-fill aspect-square hidden sm:flex cursor-wait my-[0.7rem] bg-gray-400 animate-pulse"}),(0,ms.jsx)("div",{className:"sm:hidden cursor-wait rounded bg-gray-400 flex justify-center items-center animate-pulse"})]}):null,n?(0,ms.jsxs)("div",{className:"flex flex-col sm:mb-2 pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"})]}):null]})})}),(0,ms.jsx)(YC,{order:null,isLoading:n,nft:t})]})},QC=()=>(0,ms.jsx)("div",{className:"w-full h-full grid pb-4 gap-4",style:{gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))"},children:Array.from({length:16}).map(((e,t)=>(0,ms.jsx)(KC,{nft:{},isLoading:!0},t)))});var XC;function ZC(){return ZC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZC.apply(null,arguments)}function JC(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",ZC({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,XC||(XC=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 9V7C5 4.23858 7.23858 2 10 2C12.7614 2 15 4.23858 15 7V9C16.1046 9 17 9.89543 17 11V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V11C3 9.89543 3.89543 9 5 9ZM13 7V9H7V7C7 5.34315 8.34315 4 10 4C11.6569 4 13 5.34315 13 7Z",fill:"#D8D8D8"})))}const $C=sa.forwardRef(JC);__webpack_require__.p;var eA;function tA(){return tA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tA.apply(null,arguments)}function nA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",tA({width:29,height:28,viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,eA||(eA=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 7C15.2732 7 15.9 7.6268 15.9 8.4V12.6L20.1 12.6C20.8732 12.6 21.5 13.2268 21.5 14C21.5 14.7732 20.8732 15.4 20.1 15.4H15.9V19.6C15.9 20.3732 15.2732 21 14.5 21C13.7268 21 13.1 20.3732 13.1 19.6V15.4H8.9C8.1268 15.4 7.5 14.7732 7.5 14C7.5 13.2268 8.1268 12.6 8.9 12.6H13.1V8.4C13.1 7.6268 13.7268 7 14.5 7Z",fill:"white"})))}const rA=sa.forwardRef(nA);__webpack_require__.p;var iA;function oA(){return oA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oA.apply(null,arguments)}function aA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",oA({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,iA||(iA=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7071 5.29289C17.0976 5.68342 17.0976 6.31658 16.7071 6.70711L8.70711 14.7071C8.31658 15.0976 7.68342 15.0976 7.29289 14.7071L3.29289 10.7071C2.90237 10.3166 2.90237 9.68342 3.29289 9.29289C3.68342 8.90237 4.31658 8.90237 4.70711 9.29289L8 12.5858L15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289Z",fill:"#04E5A3"})))}const sA=sa.forwardRef(aA);__webpack_require__.p;var lA,cA,uA=__webpack_require__(34630);function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dA.apply(null,arguments)}function pA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",dA({width:59,height:35,viewBox:"0 0 59 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,lA||(lA=sa.createElement("path",{d:"M29.5 35L3.95225 26L55.0477 26L29.5 35Z"})),cA||(cA=sa.createElement("rect",{x:55,y:26,width:51,height:26,transform:"rotate(180 55 26)"})))}const hA=sa.forwardRef(pA),fA=(__webpack_require__.p,e=>{let{percent:t,source:n,tooltip:r=!1}=e;return t<5?null:(0,ms.jsxs)("div",{className:"relative group",children:[(0,ms.jsx)(hA,{className:"fill-[#5308B2] drop-shadow-[0_0_2px_#5308B2]"}),(0,ms.jsxs)("div",{className:"absolute top-[46%] left-[54%] transform -translate-x-1/2 -translate-y-1/2 text-white font-montserrat-bold font-bold",children:[t,"%"]}),r&&(0,ms.jsx)("div",{onClick:e=>{e.stopPropagation()},className:"absolute hidden group-hover:block",children:(0,ms.jsxs)("div",{className:"relative -left-3/4 top-3 bg-[#373D3F] rounded-md min-w-[18rem] z-10 cursor-default",children:[(0,ms.jsx)("div",{className:"p-[12px]",children:(0,ms.jsxs)("p",{className:"text-sm font-normal",children:["Listed Purchase Price is ",t,"% lower than Fair Market Value (FMV) per ",qC("".concat(n)),". FMV is an estimate and is not financial advice."]})}),(0,ms.jsx)(WC,{className:"fill-[#373D3F] absolute h-6 w-6 -top-4 right-[9%]"})]})})]})}),mA=e=>{let{blockTimestamp:t}=e;const[n,r]=(0,sa.useState)(!1);return!t||Dl(t)?null:(0,ms.jsx)(ms.Fragment,{children:!n&&(0,ms.jsx)("div",{className:"absolute top-0 left-0 w-full h-[97%] flex justify-center items-end",children:(0,ms.jsx)("div",{className:"w-full h-full flex justify-center items-end group",children:(0,ms.jsxs)("div",{className:"bg-darkBg bg-opacity-70 w-full flex justify-center items-center h-36 border-y-2  border-white group-hover:hidden",children:[(0,ms.jsx)("p",{className:"text-white  font-bold me-2 pb-0.5",children:"Active in"}),(0,ms.jsx)(jb,{className:"text-white font-bold",renderer:e=>{let{minutes:t,seconds:n,completed:i}=e;return i&&r(!0),(0,ms.jsxs)("span",{className:"text-white text-bold",children:[Fb(t),":",Fb(n)]})},date:kl(t)})]})})})})},gA=e=>{let{accountSummaries:t,nft:n,publicAccountView:r}=e;const i=(0,sa.useMemo)((()=>{var e,i,o;if(location.pathname.includes("/profile"))return(null===t||void 0===t||null===(e=t[n.owner])||void 0===e||null===(i=e.display)||void 0===i?void 0:i.name)||(null===t||void 0===t||null===(o=t[n.owner])||void 0===o?void 0:o.address);var a,s,l;return(null===t||void 0===t?void 0:t[n.owner])?(null===t||void 0===t||null===(a=t[n.owner])||void 0===a||null===(s=a.display)||void 0===s?void 0:s.name)||(null===t||void 0===t||null===(l=t[n.owner])||void 0===l?void 0:l.address):(null===r||void 0===r?void 0:r.userName)||(null===r||void 0===r?void 0:r.addr)}),[t,n.owner]),o=(0,sa.useMemo)((()=>{var e,i;if(location.pathname.includes("/profile"))return null===t||void 0===t||null===(e=t[n.owner])||void 0===e||null===(i=e.display)||void 0===i?void 0:i.thumbnail;var o,a;return(null===t||void 0===t?void 0:t[n.owner])?null===t||void 0===t||null===(o=t[n.owner])||void 0===o||null===(a=o.display)||void 0===a?void 0:a.thumbnail:null===r||void 0===r?void 0:r.avatar}),[t,n.owner]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(n.uuid,"-nft-origin-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)("img",{"data-tooltip-id":"".concat(n.uuid,"-nft-origin-tooltip"),"data-tooltip-content":"From ".concat(i," account"),"data-tooltip-place":"right",className:"rounded-full h-5 w-5 aspect-square",src:(0,us.getImageURL)(o||""),alt:"Account owner icon"})]})},vA=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_;let{nft:T,hasProvider:S,bulkSelected:k,bulkDisabled:P,handleClick:D,discountPercent:F,isLoading:N,isLocked:I,isCatalog:R,accountSummaries:O,publicAccountView:j,bulkListActive:M}=e;const[L,B]=(0,sa.useState)(null),[U,V]=(0,sa.useState)(!1),H=(0,us.getImageURL)(null!==(t=null===(n=T.card)||void 0===n||null===(r=n.images)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.url)&&void 0!==t?t:tl.A),z=Object.keys(O||{}).length>1||!1,[W,q]=(0,sa.useState)(!1),G=window.location.pathname.includes("/collection"),{view:Y}=Ss(),{isFilterHidden:K}=Nw(),Q=I&&"large"!==Y,X=location.pathname.includes("profile"),Z=(0,sa.useMemo)((()=>{var e,t,n;return(0,Bs.Yj)({traits:null!==(e=null===(t=T.nftView)||void 0===t||null===(n=t.traits)||void 0===n?void 0:n.traits)&&void 0!==e?e:[]})}),[null===(o=T.nftView)||void 0===o||null===(a=o.traits)||void 0===a?void 0:a.traits]),J=(0,sa.useMemo)((()=>{var e,t,n,r;return L?U?(0,ms.jsxs)("div",{className:"relative mx-auto",children:[(0,ms.jsx)("div",{className:"flex flex-row absolute top-2 left-2 md:top-4 md:left-4",children:(0,ms.jsx)(Bs.t1,{specialTsTraits:Z})}),(0,ms.jsx)(py,{collectionAddress:T.contractAddress||T.card.collectionAddress||"",collectionName:T.contractName||T.card.collectionName||"",onError:e=>{(0,ol.R)(e)},className:"object-cover aspect-square w-[152px] sm:w-[304px]"})]}):L?(0,ms.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!1,className:"object-cover aspect-square w-[152px] sm:w-[304px]",onMouseEnter:e=>(0,uA._)(e),onMouseLeave:e=>{const t=e.target;t.pause(),t.currentTime=0},onError:()=>{V(!0)},children:(0,ms.jsx)("source",{type:"video/mp4",src:H})}):void 0:(0,ms.jsxs)("div",{className:"relative mx-auto",children:[(0,ms.jsx)("div",{className:"flex flex-row absolute top-2 left-2 md:top-4 md:left-4",children:(0,ms.jsx)(Bs.t1,{specialTsTraits:Z})}),(0,ms.jsx)("img",{src:(0,ss.hx)(T.type)?null===(e=T.card)||void 0===e||null===(t=e.images)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url:H,onError:()=>{B(!0)},alt:"".concat(null===T||void 0===T||null===(r=T.card)||void 0===r?void 0:r.title," asset"),className:"".concat((0,ss.hx)(T.type)?"object-contain":"object-cover"," aspect-square w-full")})]})}),[U,L,ol.R,B,V,H]),$=(0,sa.useRef)(null),[ee,te]=(0,sa.useState)(0),ne=()=>{const e=$.current;if(e){const t=window.getComputedStyle(e),n=parseFloat(t.lineHeight),r=Math.ceil(e.scrollHeight/n);te(r)}};(0,sa.useEffect)((()=>{navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&ne()})),(0,sa.useEffect)((()=>(ne(),window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne))),[null===T||void 0===T||null===(s=T.card)||void 0===s?void 0:s.title,null===T||void 0===T||null===(l=T.card)||void 0===l?void 0:l.num,K]);const re=(0,us.nftTypeAndIdToLocationData)((null===T||void 0===T?void 0:T.type)||"",(null===T||void 0===T?void 0:T.id)||"");return(0,ms.jsx)("a",{href:"/asset/".concat(re.contract.address,"/").concat(re.contract.name,"/").concat(re.resourceName,"/").concat(re.nftID),children:(0,ms.jsxs)("div",{onMouseEnter:()=>{q(!0)},onMouseLeave:()=>{q(!1)},onClick:e=>D(e),onKeyDown:e=>{"Enter"===e.key&&D(e)},"data-testid":"nft-card",className:"nftCard relative self-center justify-self-center flex flex-col p-[16px] rounded-lg nft-card-shadow cursor-pointer w-auto max-sm:w-full\n\t\t\t".concat(k?"border-[1.2px] !border-[#04E5A3] border-opacity-100 hover:border-[#04E5A3]":"border-opacity-60 border-[0.8px] border-[#7c7c7c]","\n\t\t\t").concat(M&&P&&"opacity-50"),style:{maxWidth:"500px",minWidth:"240px"},children:[(null===(c=T.orders)||void 0===c?void 0:c[0])&&"storefront"!==(null===(u=T.orders)||void 0===u?void 0:u[0].listingKind)&&(0,ms.jsx)(mA,{blockTimestamp:null===(d=T.orders)||void 0===d?void 0:d[0].blockTimestamp}),!N&&T.orders[0]&&"storefront"===T.orders[0].listingKind&&(0,ms.jsx)("div",{className:"absolute -top-1 right-[8%] lg:right-[10%] z-10",children:(0,ms.jsx)(fA,{percent:F,source:"".concat(null===(p=T.orders[0].valuations)||void 0===p?void 0:p.blended.source),tooltip:!0})}),(0,ms.jsx)("div",{className:"sm:hover:text-white sm:peer-hover:text-white ",children:(0,ms.jsx)("div",{className:"flex sm:flex-col-reverse mb-2 sm:mb-1",children:(0,ms.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-1 max-sm:w-full",children:[N?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"hidden sm:flex cursor-wait my-[0.7rem] bg-gray-400 justify-center items-center animate-pulse object-cover aspect-square w-[152px] sm:w-full h-[304px]"}),(0,ms.jsx)("div",{className:"sm:hidden cursor-wait rounded bg-gray-400 flex justify-center items-center animate-pulse"})]}):(0,ms.jsxs)("div",{className:"relative sm:my-3 isolate",children:[M&&(0,ms.jsx)("div",{className:"absolute flex items-center justify-center right-1 top-1 w-[36px] h-[36px] bg-[#ffffff33] rounded-full backdrop-blur-[20px]\n\t\t\t\t".concat(k&&"border-[1px] border-[#04E5A3] hover:border-[#04E5A3]","\n\t\t\t\t").concat(W&&!k&&"border-[1px] border-[#9D9D9D] hover:border-[#9D9D9D]","\n\t\t\t\t"),children:k?(0,ms.jsx)(sA,{}):(0,ms.jsx)(rA,{})}),J]}),N?(0,ms.jsxs)("div",{className:"flex flex-col sm:mb-2 pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"})]}):(0,ms.jsxs)("div",{className:"flex flex-col pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsxs)("div",{className:"flex flex-row relative",children:[(0,ms.jsx)("div",{className:"".concat(I?"max-w-[73%]":"max-w-[80%]"),children:null!==T&&void 0!==T&&null!==(h=T.card)&&void 0!==h&&h.additionalDetails?(0,ms.jsx)("p",{className:"text-[1.125rem] max-w-[240px] font-montserrat font-extrabold truncate pointer-events-none uppercase",children:null===T||void 0===T||null===(f=T.card)||void 0===f?void 0:f.title}):(0,ms.jsxs)("p",{className:"font-montserrat font-extrabold uppercase text-[1.125rem] overflow-hidden text-ellipsis ".concat(ee>3&&"h-[6rem] custom-truncate"),ref:$,children:[null===T||void 0===T||null===(m=T.card)||void 0===m?void 0:m.title,(null===T||void 0===T||null===(g=T.card)||void 0===g?void 0:g.num)&&!(null!==T&&void 0!==T&&null!==(v=T.card)&&void 0!==v&&v.title.includes("#"))&&(0,ms.jsxs)("span",{className:"font-montserrat font-extrabold uppercase text-[1.125rem]",children:[" ","#",null===T||void 0===T||null===(y=T.card)||void 0===y?void 0:y.num]})]})}),(0,ms.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2 flex-shrink-0 absolute top-1 right-0",children:(0,ms.jsxs)("div",{className:"flex flex-row sm:flex-col justify-center items-center gap-1",children:[R&&!G&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(T.uuid,"-verified-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)(Ay,{"data-tooltip-id":"".concat(T.uuid,"-verified-tooltip"),"data-tooltip-content":"Verified Collection from the Flow NFT catalog","data-tooltip-place":"right",width:18,height:18})]}),I&&(0,ms.jsx)($C,{className:"h-5 w-5 fill-white"}),z&&(0,ms.jsx)(gA,{accountSummaries:O,nft:T,publicAccountView:j}),null===S&&X&&(0,ms.jsx)(bc.BM,{wrapperClass:"p-0",height:15,width:15}),!1===S&&X&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(T.uuid,"-view-only-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem",zIndex:10}}),(0,ms.jsx)("img",{"data-tooltip-id":"".concat(T.uuid,"-view-only-tooltip"),"data-tooltip-content":"This profile has view-only access to this item","data-tooltip-place":"right",src:Wb,alt:"Read Only Icon",width:16,height:16})]})]})})]}),null!==T&&void 0!==T&&null!==(b=T.card)&&void 0!==b&&b.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==T&&void 0!==T&&null!==(w=T.card)&&void 0!==w&&w.additionalDetails?null===T||void 0===T||null===(x=T.card)||void 0===x||null===(C=x.additionalDetails)||void 0===C?void 0:C.map((e=>(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6 truncate",children:(0,ms.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e.length>26&&Q?e.slice(0,26)+"...":e})},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"})}):(0,ms.jsx)(ms.Fragment,{children:ee<3&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6",children:(null===T||void 0===T||null===(A=T.card)||void 0===A?void 0:A.headerTraits)&&(null===T||void 0===T||null===(E=T.card)||void 0===E?void 0:E.headerTraits.map((e=>(0,ms.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e.value},e.displayType))))}),ee<=1&&(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"})]})})]})]})})}),(0,ms.jsx)(YC,{order:(null===T||void 0===T||null===(_=T.orders)||void 0===_?void 0:_[0])||null,isLoading:N,nft:T})]})})},yA=(e,t,n,r)=>e?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("p",{className:"text-lg",children:"Loans and Rentals are not supported on Dapper Wallet. Please connect with a non-Dapper Wallet to use those features."}),(0,ms.jsxs)("p",{className:"text-lg",children:["For more information on Wallets, see our"," ",(0,ms.jsx)("a",{target:"_blank",rel:"noreferrer",className:"underline",href:"https://docs.flowty.io/reference/general-platform/supported-crypto-wallets",children:"supported wallets FAQ."})]})]}):t.showDropTab&&"ENDED"!==t.dropStatus?(0,ms.jsxs)("div",{className:"flex flex-col gap-[14px] pt-[8px]",children:[(0,ms.jsx)("div",{className:"text-[14px] font-bold text-[#B3B7BC]",children:"NO ITEMS FOUND"}),"COMING"===t.dropStatus&&(0,ms.jsx)("div",{className:"text-med text-[#6C757D] pb-2",children:"Collection isn\u2018t released yet."}),(0,ms.jsx)(Bs.M2,{text:"Visit Drop",onClick:()=>{n&&n("DROP")},variant:"secondary",bgColor:"white",className:"px-12"})]}):r?"No active loans or rentals found":"No results. Please adjust your filters to see available listings.",bA=e=>{let{isUnsupportedSelection:t,showVisitDrop:n={showDropTab:!1},onSelectedTabChange:r,emptyActionsPage:i}=e;return(0,ms.jsxs)("div",{className:"flex flex-col items-center",children:[(0,ms.jsxs)("div",{className:"relative mr-5",children:[(0,ms.jsx)("svg",{width:"82",height:"105",viewBox:"0 0 82 105",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{d:"M76.5 22.5L81.5 0H44C30.8 2.4 23.5 15.3333 21.5 21.5L0 105H26L35.5 67H53.5L58.5 43.5H41.5C46 27.5 47.5 22.5 50.5 22.5H76.5Z",className:"fill-[#b3bbbe]"})}),(0,ms.jsxs)("div",{className:"flex space-x-2 left-11 bottom-0 absolute",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"})]})]}),(0,ms.jsx)("div",{className:"text-[#B3B7BC] mt-3 px-4 lg:px-8 text-center",children:yA(t,n,r,i)})]})},wA=e=>{let{onSelectCard:t=()=>{},profilePage:n=!1,showVisitDrop:r={showDropTab:!1},onSelectedTabChange:i=()=>{}}=e;const{accountSummaries:o,bulkListActive:a,bulkPurchaseSelecteds:s,canScroll:l,catalogCache:c,denylistCache:u,hasProviderFn:d,hasProvinerPublicFn:p,hits:h,initialLoading:f,isLoading:m,isLoggedUserProfile:g,isProfile:v,isUnsupportedSelection:y,lastRef:b,onBulkPurchaseSelected:w,verifyHasOwner:x,publicAccountView:C}=(()=>{const{canScroll:e,hits:t,orderFilters:n,page:r,pageCount:i,paymentTokens:o,publicAccount:a,setPage:s,isFilterHidden:l,isLoading:c,initialLoading:u}=(0,sa.useContext)(Tw),d=location.pathname.includes("/profile"),{hybridCustodyNFTStatus:p,publicAccountNftProviders:h}=(0,bs.g)(),{catalogCache:f,denylistCache:m}=ys(),{bulkSelectedLength:g,bulkPurchaseSelecteds:v,onBulkPurchaseSelected:y,bulkListActive:b,loggedUserAddress:w,accountSummaries:x}=(0,ws.h)(),C=w===(null===a||void 0===a?void 0:a.addr),A=null===o||void 0===o?void 0:o.dapper,E=!(!n.loan&&!n.rental)&&!!A,_=xl({isLoading:c,onInfiniteScroll(){(0,fs.t)("Infinite Scroll Collection Cards",{isLoading:c,page:r,pageCount:i}),c||s(r+1)}},[null===t||void 0===t?void 0:t.length,r,i,c]),T=(0,sa.useCallback)((async e=>{const t=(0,us.nftTypeAndIdToLocationData)(e.type,e.id);try{return!!(await Tf.su.api.getItem({contractAddress:e.contractAddress,contractName:e.contractName,nftID:e.id,resourceName:t.resourceName})).owner}catch(n){return(0,fs.t)({err:n}),!0}}),[]),S=(0,sa.useCallback)((e=>{var t;if(!d||(null===e||void 0===e?void 0:e.owner)===(null===a||void 0===a?void 0:a.addr))return!0;const n=p[null===e||void 0===e?void 0:e.owner];return void 0===n?null:(null===n||void 0===n||null===(t=n[null===e||void 0===e?void 0:e.contractAddress.concat(".").concat(null===e||void 0===e?void 0:e.contractName)])||void 0===t?void 0:t.length)>0}),[p]),k=(0,sa.useCallback)((e=>{var t;if((null===e||void 0===e?void 0:e.owner)===(null===a||void 0===a?void 0:a.addr))return!0;const n=h[null===e||void 0===e?void 0:e.owner];return void 0===n?null:(null===n||void 0===n||null===(t=n[null===e||void 0===e?void 0:e.contractAddress.concat(".").concat(null===e||void 0===e?void 0:e.contractName)])||void 0===t?void 0:t.length)>0}),[h]),P=location.pathname.includes("/profile")?x:null===a||void 0===a?void 0:a.accountSummaries,D={addr:null===a||void 0===a?void 0:a.addr,avatar:null===a||void 0===a?void 0:a.avatar,userName:null===a||void 0===a?void 0:a.userName};return{accountSummaries:P,bulkListActive:b,bulkPurchaseSelecteds:v,bulkSelectedLength:g,canScroll:e,catalogCache:f,denylistCache:m,hasProviderFn:S,hasProvinerPublicFn:k,hits:t,initialLoading:u,isFilterHidden:l,isLoading:c,isLoggedUserProfile:C,isProfile:d,isUnsupportedSelection:E,lastRef:_,onBulkPurchaseSelected:y,publicAccountView:D,verifyHasOwner:T}})(),{loggedUserAddress:A,bulkLimit:E}=(0,ws.h)(),_=(0,js.Zp)(),[T,S]=(0,sa.useState)({message:"",show:!1,type:"WARNING"}),k=(0,sa.useMemo)((()=>window.innerWidth>=1680?Array.from({length:10}):window.innerWidth>=1280?Array.from({length:6}):window.innerWidth>=768?[0,1,2]:[0,1]),[window.innerWidth]),P=Object.keys(null!==o&&void 0!==o?o:{});return(0,ms.jsx)("div",{className:"min-h-screen relative flex flex-col justify-start w-full",children:f?(0,ms.jsx)(QC,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("ul",{className:"w-full h-full grid pb-4 gap-4",style:{gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))"},children:[null===h||void 0===h?void 0:h.map(((e,r)=>{var i,l,h,f,m,y,b,k,D,F,N,I,R,O,j;const M=null!==e&&void 0!==e&&null!==(i=e.type)&&void 0!==i&&i.endsWith(".NFT")?null===e||void 0===e?void 0:e.type:"".concat(null===e||void 0===e?void 0:e.type,".NFT"),L=c.has(M);let B=!1;M===ss.l8&&(B=(0,us.checkIsLocked)(e));const U=v||g?d(e):p(e),V="".concat(null===e||void 0===e?void 0:e.contractAddress,".").concat(null===e||void 0===e?void 0:e.contractName,".").concat(null===e||void 0===e?void 0:e.id),H=s.has(V),z=null===e||void 0===e||null===(l=e.orders)||void 0===l?void 0:l[0],W=(null===z||void 0===z?void 0:z.valuationDifference)&&(null===z||void 0===z||null===(h=z.valuations)||void 0===h||null===(f=h.blended)||void 0===f?void 0:f.usdValue)&&(null===z||void 0===z?void 0:z.valuationDifference)/(null===(m=z.valuations)||void 0===m||null===(y=m.blended)||void 0===y?void 0:y.usdValue),q=W?100*W:0,G="storefront"!==(null===e||void 0===e||null===(b=e.orders[0])||void 0===b?void 0:b.listingKind)?0:Math.floor(q),Y={loans:null===e||void 0===e||null===(k=e.orders)||void 0===k?void 0:k.filter((e=>"loan"===(null===e||void 0===e?void 0:e.listingKind))),rentals:null===e||void 0===e||null===(D=e.orders)||void 0===D?void 0:D.filter((e=>"rental"===(null===e||void 0===e?void 0:e.listingKind))),storefront:null===e||void 0===e||null===(F=e.orders)||void 0===F?void 0:F.filter((e=>"storefront"===(null===e||void 0===e?void 0:e.listingKind)))},K=(null===Y||void 0===Y||null===(N=Y.storefront)||void 0===N?void 0:N.length)>0&&(null===Y||void 0===Y||null===(I=Y.storefront)||void 0===I||null===(R=I[0])||void 0===R?void 0:R.flowtyStorefrontAddress)!==A;let Q;const X=async()=>{const n=e.owner;Q=await x(e),!1===!!Q&&(e=>Object.values(null!==P&&void 0!==P?P:{}).some((t=>t===e)))(n)?(S({message:"Our system does not identify you as the owner of this nft, your account is being refreshed",show:!0,type:"WARNING"}),ds.o.track("OWNERSHIP_MISMATCH",{selectedNft:e})):a?!K&&U&&!B&&Q?(ds.o.track("BULK_ASSET_TOGGLED",{selectedNft:e}),w(e)):(S({message:"Unable to bulk list this nft",show:!0,type:"WARNING"}),ds.o.track("BULK_ASSET_SELECT_ERROR",{selectedNft:e})):(t({contractAddress:e.contractAddress,contractName:e.contractName,nftID:e.id,nftType:e.type}),ds.o.track("PROFILE_ASSET_SELECTED",{selectedNft:e}))};return(0,ms.jsxs)("div",{children:[(0,ms.jsx)(_c.s,{setShow:e=>S({...T,show:e}),show:T.show,seconds:2,message:T.message,type:T.type}),(0,ms.jsx)(vA,{handleClick:t=>{const n=(0,us.nftTypeAndIdToLocationData)((null===e||void 0===e?void 0:e.type)||"",(null===e||void 0===e?void 0:e.id)||"");t.preventDefault();const r="/asset/".concat(n.contract.address,"/").concat(n.contract.name,"/").concat(n.resourceName,"/").concat(n.nftID);t.ctrlKey||t.metaKey?window.open(r,"_blank"):u.has(M)?_(r):X()},nft:e,hasProvider:U,bulkSelected:H&&a,bulkDisabled:K||B||!U||s.size===E&&!H,bulkListActive:a,isLoading:!1,isCatalog:L,isLocked:B,discountPercent:G,didImageLoadFail:!1,accountSummaries:o,publicAccountView:C,profilePage:n},"".concat(null===e||void 0===e||null===(j=e.card)||void 0===j?void 0:j.title,"-").concat(r))]},"".concat(null===e||void 0===e||null===(O=e.card)||void 0===O?void 0:O.title,"-").concat(r))})),m&&(0,ms.jsx)(ms.Fragment,{children:k.map(((e,t)=>(0,ms.jsx)(KC,{nft:{},isLoading:!0},t)))})]}),(0,ms.jsx)(Cl,{show:(null===h||void 0===h?void 0:h.length)>=Sw&&l}),(0,ms.jsx)("div",{className:"self-end justify-self-end",children:(null===h||void 0===h?void 0:h.length)>=Sw&&l?(0,ms.jsx)("div",{className:"w-full h-[20px] mt-44",ref:b}):null}),(0,ms.jsx)("div",{children:(null===h||void 0===h?void 0:h.length)<=0&&(0,ms.jsx)(ms.Fragment,{children:m?(0,ms.jsx)("div",{className:"w-full flex justify-center",children:(0,ms.jsx)(bc.BM,{height:150,width:150})}):(0,ms.jsx)(bA,{isUnsupportedSelection:y,showVisitDrop:r,onSelectedTabChange:i})})})]})})},xA=e=>{let{handleSelectCard:t,address:n,showVisitDrop:r,onSelectedTabChange:i}=e;const{facets:o}=Nw();return(0,ms.jsx)("div",{className:"flex flex-col w-full",children:(0,ms.jsx)(jC,{address:n,nftList:(0,ms.jsx)(ms.Fragment,{children:o?(0,ms.jsx)("div",{className:"w-full",children:(0,ms.jsx)(wA,{onSelectCard:t,showVisitDrop:r,onSelectedTabChange:i})}):(0,ms.jsx)(QC,{})})})})},CA=[{customRender:e=>{let{item:t}=e;const n=(null===t||void 0===t?void 0:t.type[0])+(null===t||void 0===t?void 0:t.type.slice(1).toLowerCase());return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:n})},name:"type",sortable:!1,title:"Status"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:null!==t&&void 0!==t&&t.blockTimestamp?(0,el.default)(null===t||void 0===t?void 0:t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"blockTimestamp",sortable:!0,title:"Start Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j;let{item:M}=e;const L="A.".concat(null===(t=M.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=M.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=M.additionalData)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)("img",{src:(0,us.getImageURL)(null!==(s=null===M||void 0===M||null===(l=M.additionalData)||void 0===l||null===(c=l.card)||void 0===c||null===(u=c.images)||void 0===u||null===(d=u[0])||void 0===d?void 0:d.url)&&void 0!==s?s:tl.A,(0,ss.hx)(L)),alt:"".concat(null===M||void 0===M||null===(p=M.card)||void 0===p?void 0:p.title," asset"),className:"object-cover aspect-square rounded-[4px]"})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==M&&void 0!==M&&null!==(h=M.additionalData)&&void 0!==h&&null!==(f=h.card)&&void 0!==f&&f.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===M||void 0===M||null===(m=M.additionalData)||void 0===m||null===(g=m.card)||void 0===g?void 0:g.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===M||void 0===M||null===(v=M.additionalData)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.title}),(null===M||void 0===M||null===(b=M.additionalData)||void 0===b||null===(w=b.card)||void 0===w?void 0:w.num)&&!(null!==(x=M.additionalData)&&void 0!==x&&null!==(C=x.card)&&void 0!==C&&C.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===M||void 0===M||null===(A=M.additionalData)||void 0===A||null===(E=A.card)||void 0===E?void 0:E.num]})]}),null!==M&&void 0!==M&&null!==(_=M.additionalData)&&void 0!==_&&null!==(T=_.card)&&void 0!==T&&T.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==M&&void 0!==M&&null!==(S=M.additionalData)&&void 0!==S&&null!==(k=S.card)&&void 0!==k&&k.additionalDetails?null===M||void 0===M||null===(P=M.additionalData)||void 0===P||null===(D=P.card)||void 0===D||null===(F=D.additionalDetails)||void 0===F?void 0:F.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===M||void 0===M||null===(N=M.additionalData)||void 0===N||null===(I=N.card)||void 0===I?void 0:I.headerTraits)&&(null===M||void 0===M||null===(R=M.additionalData)||void 0===R||null===(O=R.card)||void 0===O||null===(j=O.headerTraits)||void 0===j?void 0:j.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:null===e||void 0===e?void 0:e.value},null===e||void 0===e?void 0:e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:null!==n&&void 0!==n&&n.data?(0,ms.jsx)(Fl.se,{amount:null===n||void 0===n||null===(t=n.additionalData)||void 0===t?void 0:t.amount,isSmall:!0,token:null===n||void 0===n?void 0:n.paymentTokenName}):""})},name:"amount",sortable:!1,title:"Amount"},{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[null!==r&&void 0!==r&&null!==(t=r.additionalData)&&void 0!==t&&t.periodicInterest?Tl()(100*(null===r||void 0===r||null===(n=r.additionalData)||void 0===n?void 0:n.periodicInterest)).format("0,0.00"):"","%"]})},name:"rate",sortable:!1,title:"Rate"},{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:null!==r&&void 0!==r&&null!==(t=r.additionalData)&&void 0!==t&&t.term?Sl(null===r||void 0===r||null===(n=r.additionalData)||void 0===n?void 0:n.term):""})},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Tl()((0,us.calcAPRInterest)(r?Number(null===(t=r.additionalData)||void 0===t?void 0:t.periodicInterest):0,r?Number(null===(n=r.additionalData)||void 0===n?void 0:n.term):0)).format("0,0.00"),"%"]})},name:"apr",sortable:!1,title:"APR"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:null===n||void 0===n||null===(t=n.additionalData)||void 0===t?void 0:t.repaymentDue,isSmall:!0,token:(null===n||void 0===n?void 0:n.paymentTokenName)||ss.HT})})},name:"repayment",sortable:!1,title:"Repayment Amount"},{customRender:e=>{var t;let{item:n}=e;var r;return null!==n&&void 0!==n&&null!==(t=n.additionalData)&&void 0!==t&&t.loanToValueRatio?(0,ms.jsx)(rc,{valuationType:"LTV",children:(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[Math.round(100*(null===n||void 0===n||null===(r=n.additionalData)||void 0===r?void 0:r.loanToValueRatio)),"%"]})}):(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:"N/A"})},name:"valuations.aggregate.loanToValueRatio",sortable:!1,title:"3rd Party LTV"}],AA=e=>{var t,n,r,i,o,a,s,l;const{collectionAddress:c,collectionName:u,resource:d}=(0,js.g)(),p=(0,js.zy)(),h=u&&c&&"".concat(ss.Sw,"/collection/").concat(c,"/").concat(u),[f,m]=(0,sa.useState)(null),[g,v]=(0,sa.useState)([]),[y,b]=(0,sa.useState)(!1),[w,x]=(0,sa.useState)(!1),[C,A]=(0,ca.ok)(),E=(null===C||void 0===C||null===(t=C.get("page"))||void 0===t?void 0:t.toUpperCase())||null,[_,T]=(0,sa.useState)(E||"LISTINGS");(0,sa.useEffect)((()=>{var e;const t=(null===C||void 0===C||null===(e=C.get("page"))||void 0===e?void 0:e.toUpperCase())||null;t?t!==_&&T(t):T("LISTINGS")}),[C]);const S=e=>{T(e),C.delete("type"),"DROP"===e||"ACTIVITY"===e?(C.set("page",e.toLowerCase()),A(C)):(C.delete("page"),A(C))},k=(null===e||void 0===e||null===(n=e.loggedUser)||void 0===n?void 0:n.isDapper)||!1,P=null===e||void 0===e||null===(r=e.loggedUser)||void 0===r?void 0:r.addr,[D,F]=(0,sa.useState)({});(0,sa.useEffect)((()=>{window.scrollTo(0,0)}),[p.pathname]),(0,sa.useEffect)((()=>{if(h){if(D[h])return void m((e=>{var t;return(null===e||void 0===e?void 0:e.address)===(null===(t=D[h])||void 0===t?void 0:t.address)?e:D[h]}));b(!0),m(null),(0,nl.r)({collectionAddress:c,collectionName:u}).then((e=>{e&&(m(e||null),F((t=>({...t,[h]:e}))))})).catch((e=>{throw new us.FlowtyException(e,{url:h},"useCollection")})).then((()=>{b(!1)}))}}),[h,D]);const N=null!==f&&void 0!==f&&null!==(i=f.collectionDisplay)&&void 0!==i&&i.name?f.collectionDisplay.name:u,I=null!==(o=null===e||void 0===e||null===(a=e.loggedUser)||void 0===a||null===(s=a.balance)||void 0===s||null===(l=s.balances)||void 0===l?void 0:l[Tf.su.tokens.getTokenIdentifier(us.SupportedTokens.FLOW)])&&void 0!==o?o:0;return(0,sa.useEffect)((()=>{(async()=>{if(!c||!u)return;const e="A.".concat(c.substring(2),".").concat(u,".").concat(d||"NFT");try{x(!0);const t=await Tf.su.getAllDropDetails({minter:P||void 0,nftResourceTypeIdentifier:e,paymentIdentifier:Tf.su.config.getIdentifier("FlowToken","Vault"),quantity:1});t&&0!==(null===t||void 0===t?void 0:t.length)||"DROP"!==E||S("LISTINGS");const n=t.filter((e=>{const[t,n,r]=e.nftType.split(".");return"0x".concat(n)===c&&r===u}));v(n),x(!1)}catch(t){console.log("error on get collection drop data",t)}})()}),[P]),{collection:f,collectionAddress:c,collectionDisplayName:N,collectionDropData:g[0],collectionName:u,flowtyTokenBalance:I,isDapper:k,isLoading:y,isLoadingDrop:w,onSelectedTabChange:S,selectedTab:_}},EA=24,_A=()=>{var e;const{collectionAddress:t,collectionName:n}=(0,js.g)(),[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(1),[s,l]=(0,sa.useState)([]),[c,u]=(0,sa.useState)([]),[d,p]=(0,sa.useState)([]),[h,f]=(0,sa.useState)({min:null,path:null}),[m,g]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending}),[v,y]=(0,sa.useState)(!0),[b,w]=(0,sa.useState)([]),[x,C]=(0,ca.ok)(),A=(null===x||void 0===x||null===(e=x.get("type"))||void 0===e?void 0:e.toUpperCase())||null,[E,_]=(0,sa.useState)(null!==A&&void 0!==A?A:"SALE");(0,sa.useEffect)((()=>{t&&n&&Tf.su.scripts.getNftResourceIdentifiers(t||"",n||"").then((e=>{w(e)}))}),[t,n]);const T=(0,sa.useMemo)((()=>{switch(E){case"SALE":return d.map((e=>({...e})));case"LOAN":return s.map((e=>({...e})));case"RENTAL":return c.map((e=>({...e})));default:return[]}}),[d,s,c,E]);(0,sa.useEffect)((()=>{var e;const t=(null===x||void 0===x||null===(e=x.get("type"))||void 0===e?void 0:e.toUpperCase())||null;t?t&&t!==E&&_(t):_("SALE")}),[x]),(0,sa.useEffect)((()=>{b&&0!==b.length&&("SALE"===E?hl({addressPath:"data.storefrontAddress",eventCollection:"storefrontEvents",filterActivityBy:h,limit:EA*o,listingCollection:"storefrontEvents",makerCb:e=>p(e),nftTypes:b,sort:m}):(e=>{var t,n;let{limit:r=25,accountId:i,borrowerCb:o,sort:a,filterActivityBy:s,eventCollection:l="p2pEvents",nftType:c,nftTypes:u}=e,d=pl.kA.collection(l).orderBy(null!==(t=null===a||void 0===a?void 0:a.column)&&void 0!==t?t:"blockTimestamp",null!==(n=null===a||void 0===a?void 0:a.order)&&void 0!==n?n:"desc");u&&u.length>0?d=d.where("data.nftType","in",u):c&&(d=d.where("data.nftType","==",c)),null!==s&&void 0!==s&&s.min&&(d=d.where("type","==",null===s||void 0===s?void 0:s.min)),i&&(d=d.where("accountAddress","==",i));const p=d.limit(r).onSnapshot((async e=>{let{docs:t}=e;o(t.map((e=>({...e.data()}))))}))})({borrowerCb(e){"RENTAL"===E?u(e):l(e)},eventCollection:"RENTAL"===E?"rentalEvents":void 0,filterActivityBy:h,limit:EA*o,nftTypes:b,sort:m}))}),[E,o,h,m,b]);const S=xl({isLoading:!1,onInfiniteScroll(){setTimeout((()=>{i(!1)}),2e3),o*EA===T.length&&(a((e=>e+1)),i(!0)),ds.o.track("Inifinite Scroll Global Rentals Page")}},[o,T]);return{allActivityDocs:T,belowTableRef:S,filterBy:h,isLoading:r,onFilterChangeFn:e=>{g({column:"blockTimestamp",order:qs.Descending}),f(e),a(1)},onSortChangeFn:e=>{g(e),a(1)},onTableChangeTabFn:e=>{"LOAN"===e||"RENTAL"===e?(x.set("type",e.toLowerCase()),C(x)):(x.delete("type"),C(x)),_(e),f({min:null,path:null}),g({column:"blockTimestamp",order:qs.Descending})},setShowFilter:y,showFilter:v,sort:m,tablePage:o,tableSelectedTab:E}},TA=e=>{let{filterBy:t,isLoading:n,onFilterChangeFn:r,onSortChangeFn:i,sort:o,allActivityDocs:a,belowTableRef:s,showFilter:l,setShowFilter:c,tablePage:u}=e;const d=(0,js.Zp)(),{collectionName:p}=AA(),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(0),[v,y]=(0,sa.useState)(0),b=(0,Bs.dv)();(0,sa.useEffect)((()=>{if("xs"===b||"mobile"===b){if(m&&v){if(v-m>=500)ds.o.track("HOLD_ACTION_DETECTED",h);else if(h){var e,t,n,r,i,o;const a=(0,us.nftTypeAndIdToLocationData)((null===h||void 0===h||null===(e=h.data)||void 0===e?void 0:e.nftType)||(null===h||void 0===h||null===(t=h.data)||void 0===t||null===(n=t.typeAndIDOffer)||void 0===n?void 0:n.nftType),(null===h||void 0===h||null===(r=h.data)||void 0===r?void 0:r.nftID)||(null===h||void 0===h||null===(i=h.data)||void 0===i||null===(o=i.typeAndIDOffer)||void 0===o?void 0:o.nftID));d("/asset/".concat(a.contract.address,"/").concat(a.contract.name,"/").concat(a.resourceName,"/").concat(a.nftID))}g(0),y(0)}}else if(h){var a,s,l,c,u,p;const e=(0,us.nftTypeAndIdToLocationData)((null===h||void 0===h||null===(a=h.data)||void 0===a?void 0:a.nftType)||(null===h||void 0===h||null===(s=h.data)||void 0===s||null===(l=s.typeAndIDOffer)||void 0===l?void 0:l.nftType),(null===h||void 0===h||null===(c=h.data)||void 0===c?void 0:c.nftID)||(null===h||void 0===h||null===(u=h.data)||void 0===u||null===(p=u.typeAndIDOffer)||void 0===p?void 0:p.nftID));d("/asset/".concat(e.contract.address,"/").concat(e.contract.name,"/").concat(e.resourceName,"/").concat(e.nftID))}}),[v,m,h,b,d,500]),(0,sa.useEffect)((()=>{const e=e=>{g(Date.now()),ds.o.track("TOUCH_START")},t=e=>{y(Date.now()),ds.o.track("TOUCH_END");const t=Date.now()-m;ds.o.track("TOUCH_DURATION (ms):",t)};return window.addEventListener("touchstart",e),window.addEventListener("touchend",t),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchend",t)}}),[]),(0,sa.useEffect)((()=>{t.path&&ds.o.track("".concat(p," Loans Activity Page Filtered"),{filter:t}),ds.o.track("".concat(p," Activity page - Loan Tab visited"),{tab:"Activity"})}),[t]);const w=[{label:"All",value:""},{label:"Settled",value:"SETTLED"},{label:"Funded",value:"FUNDED"},{label:"Repaid",value:"REPAID"},{label:"Listed",value:"LISTED"},{label:"Expired",value:"EXPIRED"}],[x,C]=(0,sa.useState)(w[0].value);return(0,ms.jsxs)("div",{children:[(0,ms.jsx)(Ql,{showFilter:l,setShowFilter:c,filterBy:t,setFilterBy:r}),(0,ms.jsx)("div",{className:"flex py-2 md:py-3 mb-[14px] md:mb-0",children:(0,ms.jsx)(Bs.DG,{fields:w,selectedField:x,updateSelectedField:e=>{C(e),r({max:"",min:e,path:"state"})}})}),(0,ms.jsx)($s,{onClickRow:e=>{let{item:t}=e;f(t)},fields:CA,items:a,onSort:i,initialSortConfig:o,stickyHeaders:!0,composeRowHref:e=>{var t,n,r,i,o,a;const s=(0,us.nftTypeAndIdToLocationData)((null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.nftType)||(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftType),(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.nftID)||(null===e||void 0===e||null===(o=e.data)||void 0===o||null===(a=o.typeAndIDOffer)||void 0===a?void 0:a.nftID));return"/asset/".concat(s.contract.address,"/").concat(s.contract.name,"/").concat(s.resourceName,"/").concat(s.nftID)}}),(0,ms.jsx)("div",{ref:s,children:n?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):u*EA===a.length&&(0,ms.jsx)(Cl,{})})]})},SA=[{customRender:e=>{var t,n,r;let{item:i}=e;const o=null!==(t=null===i||void 0===i||null===(n=i.type)||void 0===n||null===(r=n.split("_").pop())||void 0===r?void 0:r.toLowerCase())&&void 0!==t?t:"";return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===o?"delisted":o})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,el.default)(null===n||void 0===n||null===(t=n.blockTimestamp)||void 0===t?void 0:t.toDate(),"yyyy-MM-dd HH:mm")})},name:"blockTimestamp",sortable:!0,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j;let{item:M}=e;const L="A.".concat(null===(t=M.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=M.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=M.additionalData)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)("img",{src:(0,us.getImageURL)(null!==(s=null===M||void 0===M||null===(l=M.additionalData)||void 0===l||null===(c=l.card)||void 0===c||null===(u=c.images)||void 0===u||null===(d=u[0])||void 0===d?void 0:d.url)&&void 0!==s?s:tl.A,(0,ss.hx)(L)),alt:"".concat(null===M||void 0===M||null===(p=M.card)||void 0===p?void 0:p.title," asset"),className:"object-cover aspect-square rounded-[4px]"})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==M&&void 0!==M&&null!==(h=M.additionalData)&&void 0!==h&&null!==(f=h.card)&&void 0!==f&&f.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===M||void 0===M||null===(m=M.additionalData)||void 0===m||null===(g=m.card)||void 0===g?void 0:g.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===M||void 0===M||null===(v=M.additionalData)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.title}),(null===M||void 0===M||null===(b=M.additionalData)||void 0===b||null===(w=b.card)||void 0===w?void 0:w.num)&&!(null!==(x=M.additionalData)&&void 0!==x&&null!==(C=x.card)&&void 0!==C&&C.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===M||void 0===M||null===(A=M.additionalData)||void 0===A||null===(E=A.card)||void 0===E?void 0:E.num]})]}),null!==M&&void 0!==M&&null!==(_=M.additionalData)&&void 0!==_&&null!==(T=_.card)&&void 0!==T&&T.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==M&&void 0!==M&&null!==(S=M.additionalData)&&void 0!==S&&null!==(k=S.card)&&void 0!==k&&k.additionalDetails?null===M||void 0===M||null===(P=M.additionalData)||void 0===P||null===(D=P.card)||void 0===D||null===(F=D.additionalDetails)||void 0===F?void 0:F.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===M||void 0===M||null===(N=M.additionalData)||void 0===N||null===(I=N.card)||void 0===I?void 0:I.headerTraits)&&(null===M||void 0===M||null===(R=M.additionalData)||void 0===R||null===(O=R.card)||void 0===O||null===(j=O.headerTraits)||void 0===j?void 0:j.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:null===e||void 0===e?void 0:e.value},null===e||void 0===e?void 0:e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null===n||void 0===n||null===(t=n.additionalData)||void 0===t?void 0:t.amount),isSmall:!0,token:null===n||void 0===n?void 0:n.data.paymentTokenName})})},name:"amount",sortable:!1,title:"Rental Fee"},{customRender:e=>{var t,n;let{item:r}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null===r||void 0===r||null===(t=r.additionalData)||void 0===t?void 0:t.deposit),isSmall:!0,token:null===r||void 0===r||null===(n=r.data)||void 0===n?void 0:n.paymentTokenName})})},name:"deposit",sortable:!1,title:"Returnable Deposit"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(null===n||void 0===n||null===(t=n.additionalData)||void 0===t?void 0:t.term)})},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:null!==i&&void 0!==i&&null!==(t=i.additionalData)&&void 0!==t&&t.depositToValueRatio?"".concat(null===i||void 0===i||null===(n=i.additionalData)||void 0===n||null===(r=n.depositToValueRatio)||void 0===r?void 0:r.toFixed(2),"x"):"N/A"})},name:"duration",sortable:!1,title:"3rd Party DTV"}],kA=e=>{let{filterBy:t,isLoading:n,onFilterChangeFn:r,onSortChangeFn:i,sort:o,allActivityDocs:a,belowTableRef:s,showFilter:l,setShowFilter:c,tablePage:u}=e;const d=(0,js.Zp)(),{collectionName:p}=AA(),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(0),[v,y]=(0,sa.useState)(0),b=(0,Bs.dv)();(0,sa.useEffect)((()=>{if("xs"===b||"mobile"===b){if(m&&v){if(v-m>=500);else if(h){var e,t,n,r,i,o,a;const s=(0,us.nftTypeAndIdToLocationData)((null===h||void 0===h||null===(e=h.data)||void 0===e?void 0:e.nftType)||(null===h||void 0===h||null===(t=h.data)||void 0===t||null===(n=t.typeAndIDOffer)||void 0===n?void 0:n.nftType)||"",(null===h||void 0===h||null===(r=h.data)||void 0===r||null===(i=r.nftID)||void 0===i?void 0:i.toString())||(null===h||void 0===h||null===(o=h.data)||void 0===o||null===(a=o.typeAndIDOffer)||void 0===a?void 0:a.nftID)||"");d("/asset/".concat(s.contract.address,"/").concat(s.contract.name,"/").concat(s.resourceName,"/").concat(s.nftID))}g(0),y(0)}}else if(h){var s,l,c,u,p,f,w;const e=(0,us.nftTypeAndIdToLocationData)((null===h||void 0===h||null===(s=h.data)||void 0===s?void 0:s.nftType)||(null===h||void 0===h||null===(l=h.data)||void 0===l||null===(c=l.typeAndIDOffer)||void 0===c?void 0:c.nftType)||"",(null===h||void 0===h||null===(u=h.data)||void 0===u||null===(p=u.nftID)||void 0===p?void 0:p.toString())||(null===h||void 0===h||null===(f=h.data)||void 0===f||null===(w=f.typeAndIDOffer)||void 0===w?void 0:w.nftID)||"");d("/asset/".concat(e.contract.address,"/").concat(e.contract.name,"/").concat(e.resourceName,"/").concat(e.nftID))}}),[m,v,h,b,d,500]),(0,sa.useEffect)((()=>{const e=e=>{g(Date.now()),ds.o.track("TOUCH_START")},t=e=>{y(Date.now()),ds.o.track("TOUCH_END");const t=Date.now()-m;ds.o.track("TOUCH_DURATION MS:",t)};return window.addEventListener("touchstart",e),window.addEventListener("touchend",t),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchend",t)}}),[]),(0,sa.useEffect)((()=>{t.path&&ds.o.track("".concat(p," Rental Activity Page Filtered"),{filter:t}),ds.o.track("".concat(p," Activity page - Rental tab visited"),{tab:"Activity"})}),[t]);const w=[{label:"All",value:""},{label:"Listed",value:"RENTAL_LISTED"},{label:"Delisted",value:"RENTAL_DESTROYED"},{label:"Rented",value:"RENTAL_RENTED"},{label:"Returned",value:"RENTAL_RETURNED"},{label:"Settled",value:"RENTAL_SETTLED"},{label:"Expired",value:"EXPIRED"}],[x,C]=(0,sa.useState)(w[0].value);return(0,ms.jsxs)("div",{children:[(0,ms.jsx)(Yl,{showFilter:l,setShowFilter:c,filterBy:t,setFilterBy:r}),(0,ms.jsx)("div",{className:"flex py-2 md:py-3 mb-[14px] md:mb-0",children:(0,ms.jsx)(Bs.DG,{fields:w,selectedField:x,updateSelectedField:e=>{C(e),r({max:"",min:e,path:"state"})}})}),(0,ms.jsx)($s,{onClickRow:e=>{let{item:t}=e;f(t)},fields:SA,items:a,onSort:i,initialSortConfig:o,stickyHeaders:!0,composeRowHref:e=>{var t,n,r,i,o,a,s;const l=(0,us.nftTypeAndIdToLocationData)((null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.nftType)||(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftType)||"",(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(o=i.nftID)||void 0===o?void 0:o.toString())||(null===e||void 0===e||null===(a=e.data)||void 0===a||null===(s=a.typeAndIDOffer)||void 0===s?void 0:s.nftID)||"");return"/asset/".concat(l.contract.address,"/").concat(l.contract.name,"/").concat(l.resourceName,"/").concat(l.nftID)}}),(0,ms.jsx)("div",{ref:s,children:n?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):u*EA===a.length&&(0,ms.jsx)(Cl,{})})]})},PA=[{label:"Purchased",value:us.IEventType.StorefrontPurchased.valueOf()},{label:"Listed",value:us.IEventType.StorefrontListed.valueOf()},{label:"Delisted",value:us.IEventType.StorefrontDelisted.valueOf()}];ss.Vv&&PA.push({label:"Offer Created",value:us.IEventType.StorefrontOfferCreated.valueOf()},{label:"Offer Accepted",value:us.IEventType.StorefrontOfferAccepted.valueOf()},{label:"Offer Cancelled",value:us.IEventType.StorefrontOfferCancelled.valueOf()});const DA=e=>(0,ms.jsx)(wl,{...e,filterOptions:PA}),FA=e=>[{customRender:e=>{let t,{item:n}=e;const r=null===n||void 0===n?void 0:n.type.split("_");return t=null!==n&&void 0!==n&&n.type.includes("OFFER")?"".concat(r[1]," ").concat(r[2]):r[r.length-1],t=t.toLowerCase(),(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===t?"delisted":t})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,el.default)(null===t||void 0===t?void 0:t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm")})},name:"blockTimestamp",sortable:!0,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L;let{item:B}=e;if(!(0,us.getNFTDetail)(null,null===B||void 0===B||null===(t=B.additionalData)||void 0===t?void 0:t.card)&&null!==B&&void 0!==B&&null!==(n=B.data)&&void 0!==n&&n.nftID){var U,V;const e=(0,us.nftTypeAndIdToLocationData)(null===B||void 0===B||null===(U=B.data)||void 0===U?void 0:U.nftType,null===B||void 0===B||null===(V=B.data)||void 0===V?void 0:V.nftID.toString()),t=(0,us.getNFTIdentifier)(e);Tf.su.api.refreshMetadata(t).then().catch((e=>(0,fs.t)(" Failed to refresh Metadata",e)))}const H="A.".concat(null===(r=B.additionalData)||void 0===r||null===(i=r.card)||void 0===i||null===(o=i.collectionAddress)||void 0===o?void 0:o.substring(2),".").concat(null===(a=B.additionalData)||void 0===a||null===(s=a.card)||void 0===s?void 0:s.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(l=B.additionalData)||void 0===l||!l.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)("img",{src:(0,us.getImageURL)(null!==(c=null===B||void 0===B||null===(u=B.additionalData)||void 0===u||null===(d=u.card)||void 0===d||null===(p=d.images)||void 0===p||null===(h=p[0])||void 0===h?void 0:h.url)&&void 0!==c?c:tl.A,(0,ss.hx)(H)),alt:"".concat(null===B||void 0===B||null===(f=B.card)||void 0===f?void 0:f.title," asset"),className:"object-cover aspect-square rounded-[4px]"})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==B&&void 0!==B&&null!==(m=B.additionalData)&&void 0!==m&&null!==(g=m.card)&&void 0!==g&&g.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===B||void 0===B||null===(v=B.additionalData)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===B||void 0===B||null===(b=B.additionalData)||void 0===b||null===(w=b.card)||void 0===w?void 0:w.title}),(null===B||void 0===B||null===(x=B.additionalData)||void 0===x||null===(C=x.card)||void 0===C?void 0:C.num)&&!(null!==(A=B.additionalData)&&void 0!==A&&null!==(E=A.card)&&void 0!==E&&E.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===B||void 0===B||null===(_=B.additionalData)||void 0===_||null===(T=_.card)||void 0===T?void 0:T.num]})]}),null!==B&&void 0!==B&&null!==(S=B.additionalData)&&void 0!==S&&null!==(k=S.card)&&void 0!==k&&k.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==B&&void 0!==B&&null!==(P=B.additionalData)&&void 0!==P&&null!==(D=P.card)&&void 0!==D&&D.additionalDetails?null===B||void 0===B||null===(F=B.additionalData)||void 0===F||null===(N=F.card)||void 0===N||null===(I=N.additionalDetails)||void 0===I?void 0:I.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===B||void 0===B||null===(R=B.additionalData)||void 0===R||null===(O=R.card)||void 0===O?void 0:O.headerTraits)&&(null===B||void 0===B||null===(j=B.additionalData)||void 0===j||null===(M=j.card)||void 0===M||null===(L=M.headerTraits)||void 0===L?void 0:L.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:null===e||void 0===e?void 0:e.value},null===e||void 0===e?void 0:e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number((null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.salePrice)||(null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.amount)),isSmall:!0,token:(null===i||void 0===i?void 0:i.paymentTokenName)||(0,us.getTokenFromType)(null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.salePaymentVaultType)})})},name:"amount",sortable:!1,title:"Price"},{customRender:t=>{var n,r,i,o;let{item:a}=t;const s=(null===a||void 0===a||null===(n=a.type)||void 0===n?void 0:n.includes("OFFER"))?"object"===typeof(null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.taker)?"-":null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.taker:null===a||void 0===a||null===(o=a.data)||void 0===o?void 0:o.storefrontAddress;return(0,ms.jsx)("div",{className:"seller flex flex-row justify-start items-center hover:text-green-200",onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(s))},children:(0,ms.jsx)("a",{href:"/user/".concat(s),children:s||"--"})})},name:"seller",sortable:!1,title:"Seller"},{customRender:t=>{var n,r,i;let{item:o}=t;(0,fs.t)("collectionStorefrontActivityFields",{...o});const a=(null===o||void 0===o||null===(n=o.type)||void 0===n?void 0:n.toLowerCase().includes("offer"))?null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.storefrontAddress:null===o||void 0===o||null===(i=o.data)||void 0===i?void 0:i.buyer;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(a))},className:"seller flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(a),children:a||"--"})})},name:"buyer",sortable:!1,title:"Buyer"}],NA=e=>{let{filterBy:t,isLoading:n,onFilterChangeFn:r,onSortChangeFn:i,sort:o,allActivityDocs:a,belowTableRef:s,showFilter:l,setShowFilter:c,tablePage:u}=e;const d=(0,js.Zp)(),[p,h]=(0,sa.useState)(null),[f,m]=(0,sa.useState)(0),[g,v]=(0,sa.useState)(0),y=(0,Bs.dv)();(0,sa.useEffect)((()=>{if("xs"===y||"mobile"===y){if(f&&g){g-f>=500||p&&d(p.href),m(0),v(0)}}else p&&d(p.href)}),[f,g,p,y,d,500]);const b=[{label:"All",value:""},{label:"Purchased",value:us.IEventType.StorefrontPurchased.valueOf()},{label:"Listed",value:us.IEventType.StorefrontListed.valueOf()},{label:"Delisted",value:us.IEventType.StorefrontDelisted.valueOf()},{label:"Offer Created",value:us.IEventType.StorefrontOfferCreated.valueOf()},{label:"Offer Accepted",value:us.IEventType.StorefrontOfferAccepted.valueOf()},{label:"Offer Cancelled",value:us.IEventType.StorefrontOfferCancelled.valueOf()}],[w,x]=(0,sa.useState)(b[0].value);return(0,ms.jsxs)("div",{children:[(0,ms.jsx)(DA,{showFilter:l,setShowFilter:c,filterBy:t,setFilterBy:r}),(0,ms.jsx)("div",{className:"flex py-2 md:py-3 mb-[14px] md:mb-0",children:(0,ms.jsx)(Bs.DG,{fields:b,selectedField:w,updateSelectedField:e=>{x(e),r({max:"",min:e,path:"state"})}})}),(0,ms.jsx)($s,{onClickRow:e=>{let{e:t,item:n}=e;const r=t;let i,o;var a,s,l,c,u;n.type.toLowerCase().includes("offer")?(i=null===(a=n.data)||void 0===a?void 0:a.storefrontAddress,o="object"===typeof(null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.taker)?"-":null===n||void 0===n||null===(l=n.data)||void 0===l?void 0:l.taker):(i=null===(c=n.data)||void 0===c?void 0:c.buyer,o=null===(u=n.data)||void 0===u?void 0:u.storefrontAddress);if("seller"===r.target.classList[0])return h({href:"/user/".concat(o),item:n}),d("/user/".concat(o));if("buyer"===r.target.classList[0])h({href:"/user/".concat(i),item:n});else{var p,f,m,g,v,y,b;const e=(0,us.nftTypeAndIdToLocationData)((null===n||void 0===n||null===(p=n.data)||void 0===p?void 0:p.nftType)||(null===n||void 0===n||null===(f=n.data)||void 0===f||null===(m=f.typeAndIDOffer)||void 0===m?void 0:m.nftType)||"",(null===n||void 0===n||null===(g=n.data)||void 0===g||null===(v=g.nftID)||void 0===v?void 0:v.toString())||(null===n||void 0===n||null===(y=n.data)||void 0===y||null===(b=y.typeAndIDOffer)||void 0===b?void 0:b.nftID)||"");h({href:"/asset/".concat(e.contract.address,"/").concat(e.contract.name,"/").concat(e.resourceName,"/").concat(e.nftID),item:n})}},fields:FA(d),items:a,onSort:i,initialSortConfig:o,stickyHeaders:!0,composeRowHref:e=>{var t,n,r,i,o,a,s;const l=(0,us.nftTypeAndIdToLocationData)((null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.nftType)||(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftType)||"",(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(o=i.nftID)||void 0===o?void 0:o.toString())||(null===e||void 0===e||null===(a=e.data)||void 0===a||null===(s=a.typeAndIDOffer)||void 0===s?void 0:s.nftID)||"");return"/asset/".concat(l.contract.address,"/").concat(l.contract.name,"/").concat(l.resourceName,"/").concat(l.nftID)}}),(0,ms.jsx)("div",{ref:s,children:n?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):u*EA===(null===a||void 0===a?void 0:a.length)&&(0,ms.jsx)(Cl,{})})]})},IA=()=>{const{allActivityDocs:e,belowTableRef:t,filterBy:n,isLoading:r,onFilterChangeFn:i,onSortChangeFn:o,showFilter:a,setShowFilter:s,tablePage:l,sort:c,tableSelectedTab:u,onTableChangeTabFn:d}=_A(),p=(0,Bs.dv)();return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"my-[4px]",children:(0,ms.jsx)(Bs.cs,{activeTab:u,tabs:[{id:"SALE",label:"Sales"},{id:"LOAN",label:"Loans"},{id:"RENTAL",label:"Rentals"}],onChange:e=>d(e),type:"xs"===p||"mobile"===p?"secondary":"primary",isCenter:!0})}),"SALE"===u?(0,ms.jsx)(NA,{filterBy:n,isLoading:r,onFilterChangeFn:i,onSortChangeFn:o,sort:c,allActivityDocs:e,belowTableRef:t,showFilter:a,setShowFilter:s,tablePage:l}):"LOAN"===u?(0,ms.jsx)(TA,{filterBy:n,isLoading:r,onFilterChangeFn:i,onSortChangeFn:o,sort:c,allActivityDocs:e,belowTableRef:t,showFilter:a,setShowFilter:s,tablePage:l}):(0,ms.jsx)(kA,{filterBy:n,isLoading:r,onFilterChangeFn:i,onSortChangeFn:o,sort:c,allActivityDocs:e,belowTableRef:t,showFilter:a,setShowFilter:s,tablePage:l})]})},RA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARqSURBVHgBrVU9bBxVEJ73s3dcEjsn5PjgHBJDxV+RIiAkCkQJKZEQkc9nXBgEQkQoBVWggpoCIUSkBNmOI8xPQURBh0QiQYlEgRQginI/RiEYJ87d7e3uG76ZPTs2hsiO8k7v9u3bmW9mvpk3j2gHY9fVs9XCpYWHd6JjtiMUteenmOl14rCbmDKoNdjwx9lY/dwdGyg1Tz2QUOERCLxMzIcBmGGdwVBmDJ5YE5uvsf4mSqjdGZ9sb8uAb84/TYbfhacCHsgoaGqMgecCyhkbSvM1idEgxgxxi1P6MD1YP/+/Blx7/jnD/CkJMJsgHisQsT6ZOIFKDm4AF+SplImR1EIQv+PJ/smf1jDtRgM20PsQcJjYDxbSomMJ7rN6YwYO4TVgwm0y0EJ0+IBAOUDz1U2Y66vW7AEIjAs45/tOpq452BwVeMxiThYBWxkICvCfNWrSt3H6/WRliwFP5qCCWrLwxotr8HBgyFhmzo3AY3xTcBhcgVRTcmKFKskTnlGh9OAWAwCtAUTAHF6cEeDAHpF7+Oet7uFfnGWW/LTuibKZpDpZQ2DfBkZutIQ5wJUjmwxEjbk69KYQO/gHKCs1HngANwiOI4g6yQdkUADUTKL02M3R6SXRRwlfRDR58vP5qGvMHbkVgaF3kD6v3ufce7gagerPsN8GQwUAFGEchrmRFopv0AB8z6+zo9bY5w0rRWme8JAh1hfUQNQ4cwjePsRaOcqz18nmo2Ss/ko6NvkYOP8ce0Ns7d+FzL9Goy/m4O1T++KSOYEcl+FIAodSmdCV81Ki9uI+7ywtp4ESRBHWS5C0dv5c4zGrTsz45uzFqOjPdqpHW7I31FoY6YbwNqT3oszSsJ5MlIFWNUxyskvrOmrNXUYEw6TVoSWnXFpr3uzfX/uC/jWGryze2zH9t9jyqGWl1OaALHgGRQ0q7LWkOnF8UEX2PQD3MLsQWYWJVfhwI4RwojhI1tooL58ud2w8g9OCxmdilFMfdZvgMGAKE0IR2onjr9aTDEuf4JR+hwR24VEPtX0T26v4fAMZO+YbZ55V8Euny9c7vgZn9wAkAROpzTTaDW0DkZM5n1ZqF2iQUB3s3Ekbsse1sZHpo/RiiQp8wRhP+ytzTyIsa0ExITRyNsPps8FpC3Gg3iECI0kAzoVbB3gwCn3zS99RLAHhwPXxlHUXIfaCGLNUASUr0AcNLggNSJiVvoL+QMK+TfX0i+K1TQdNRufA0RaEfoZArDJMiIJi8NvHXmLzi4ZVKWgtoHq1ZQQjDQ/tj6W1O7pK+6e2GsgV0w8UWCZxDDoSKzwDPOR3AW8oZa020BLye8PKncCI4suNmFsunGhp/ilKeRpaw2IMWz0IddE2OvCxq0k07IM2Q6PtQ1oLWsiSdf5cXHnpt9saWBtD1xdG4tV4JCP3BHJ3CD72wHgXxZLZYLT5gbPLrsg/lLxbWilPLP8XzvYu/dbsYXD0jLeuFGSg9p3j75P76j/S3Ry7/1io0F+Le3ei8w+mrFfdh1RC0QAAAABJRU5ErkJggg==",OA=(__webpack_require__.p,e=>{let{totalItems:t,floorPrice:n,totalOwners:r,weekTopSales:i,collectionRoyalty:o,createdDate:a}=e;const s=e=>{const t=Tl()(e).format("0.0a").toLocaleUpperCase();return t.endsWith(".0")?e:t},l=window.location.pathname;(0,sa.useMemo)((()=>l.includes("/collection")),[l]);return(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row gap-3 pb-2 justify-end",children:[(0,ms.jsxs)("div",{className:"flex flex-wrap gap-8 rounded-md border-1",children:[t?(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"text-lg font-semibold leading-8",children:s(t)}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#ADB5BD] whitespace-nowrap",children:"Items"})]}):(0,ms.jsx)(ms.Fragment,{}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsx)("p",{className:"text-lg font-semibold leading-8",children:n?"$".concat(n.toFixed(2)):"-"}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#ADB5BD] whitespace-nowrap",children:"Floor Price"})]}),i&&(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsxs)("p",{className:"text-lg font-semibold leading-8",children:["$",i.toFixed(2)]}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#ADB5BD] whitespace-nowrap",children:"7D Top Sales"})]}),o?(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsxs)("p",{className:"text-lg font-semibold leading-8",children:[(100*Number(o)).toFixed(2),"%"]}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#ADB5BD] whitespace-nowrap",children:"Royalty"})]}):(0,ms.jsx)(ms.Fragment,{}),r&&t?(0,ms.jsxs)("div",{className:"flex flex-col",children:[(0,ms.jsxs)("p",{className:"text-lg font-semibold leading-8",children:[s(r)," (",(100*r/t).toFixed(2),"%)"]}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#ADB5BD] whitespace-nowrap",children:"Unique Owners"})]}):(0,ms.jsx)(ms.Fragment,{})]}),!1]})}),jA=e=>{let{loggedUserAddr:t,loggedIsDapper:n,isNFTCatalog:r,websiteLink:i}=e;const{collectionAddress:o,collectionName:a}=(0,js.g)(),[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(!0),[d,p]=(0,sa.useState)(!1),[h,f]=(0,sa.useState)(!0);(0,sa.useEffect)((()=>{t&&o&&a&&void 0!==r&&(Tf.su.scripts.isCollectionSetup(t,o,a,n||!1,r||!1).then((e=>{u(e)})),n&&Tf.su.scripts.isDapperCollection(o,a).then((e=>{p(e)})))}),[s]);const m=!c&&(!n||d);return(0,ms.jsx)(ms.Fragment,{children:m&&h&&(0,ms.jsxs)("div",{className:"flex flex-row gap-3 max-lg:flex-col bg-[#FFFFFF08] backdrop-blur-[9px] border rounded-md border-[#6c757d52] px-[18px] py-[14px] sm:px-[24px] sm:py-[16px] items-center mt-2 ",children:[(0,ms.jsxs)("div",{className:"flex gap-2 max-w-96",children:[(0,ms.jsxs)("h6",{className:"text-xs text-white",children:["Your wallet's ability to transfer"," ",(0,ms.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:a})," ","is limited until you enable the collection."," ",(0,ms.jsx)("a",{href:"https://docs.flowty.io/reference",target:"_blank",rel:"noreferrer",className:"underline",children:"Learn more"})," "]}),(0,ms.jsx)(Ef.A,{className:"md:hidden h-[24px] w-[24px] min-h-[18px] min-w-[18px] hover:cursor-pointer",onClick:()=>f(!1)})]}),(0,ms.jsxs)("div",{className:"max-lg:w-full flex flex-row space-x-4",children:[(0,ms.jsx)("div",{className:"max-lg:flex md:mt-0 max-lg:grow",children:(0,ms.jsx)(Bs.M2,{onClick:async()=>{l(!0),await Tf.su.setupCollection(o||"",a||"",n||!1,r||!1),l(!1)},text:s?(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("div",{className:"flex flex-row justify-center",children:[(0,ms.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,ms.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,ms.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,ms.jsx)("span",{children:"Enabling..."})]})}):(0,ms.jsx)("span",{children:"Enable Collection"}),variant:"secondary",bgColor:"white"})}),(0,ms.jsx)("div",{className:"max-lg:w-full flex max-lg:grow self-center justify-end",children:(0,ms.jsx)(Ef.A,{className:"hidden md:block h-[24px] w-[24px] min-h-[18px] min-w-[18px] hover:cursor-pointer",onClick:()=>f(!1)})})]})]})})};var MA;function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(null,arguments)}function BA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",LA({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,MA||(MA=sa.createElement("path",{d:"M9.07502 3.35999C9.07502 3.35999 6.01877 3.56999 4.02002 5.17499C4.01064 5.17874 3.99939 5.18436 3.99002 5.18999C3.64314 5.51062 3.38252 6.00749 3.06002 6.71999C2.73752 7.43249 2.39627 8.34936 2.08502 9.37499C1.46439 11.4281 0.960017 13.9481 0.960017 16.32C0.958142 16.4044 0.978767 16.4869 1.02002 16.56C1.72127 17.7919 3.01127 18.5362 4.21502 19.005C5.41877 19.4737 6.53064 19.6612 7.09502 19.68C7.25439 19.6856 7.40627 19.6125 7.50002 19.485L8.67002 17.865C9.61314 18.0881 10.7194 18.24 12 18.24C13.2806 18.24 14.3869 18.0881 15.33 17.865L16.5 19.485C16.5938 19.6125 16.7456 19.6856 16.905 19.68C17.4694 19.6612 18.5813 19.4737 19.785 19.005C20.9888 18.5362 22.2788 17.7919 22.98 16.56C23.0213 16.4869 23.0419 16.4044 23.04 16.32C23.04 13.9481 22.5356 11.4281 21.915 9.37499C21.6038 8.34936 21.2625 7.43249 20.94 6.71999C20.6175 6.00749 20.3569 5.51062 20.01 5.18999C20.0006 5.18436 19.9894 5.17874 19.98 5.17499C17.9813 3.56999 14.925 3.35999 14.925 3.35999C14.8894 3.35624 14.8556 3.35624 14.82 3.35999C14.6531 3.38249 14.5125 3.49124 14.445 3.64499C14.445 3.64499 14.2819 4.00312 14.175 4.51499C13.2394 4.36499 12.4519 4.31999 12 4.31999C11.5481 4.31999 10.7606 4.36499 9.82502 4.51499C9.71814 4.00312 9.55502 3.64499 9.55502 3.64499C9.47252 3.45749 9.27939 3.34312 9.07502 3.35999ZM8.77502 4.39499C8.81064 4.49249 8.83502 4.58436 8.86502 4.69499C7.78314 4.94624 6.59814 5.35686 5.49002 6.04499C5.31564 6.11812 5.20127 6.28686 5.19564 6.47624C5.19189 6.66374 5.29877 6.83811 5.46752 6.92061C5.63814 7.00124 5.84064 6.97686 5.98502 6.85499C8.20877 5.47686 11.0381 5.27999 12 5.27999C12.9619 5.27999 15.7913 5.47686 18.015 6.85499C18.1594 6.97686 18.3619 7.00124 18.5325 6.92061C18.7013 6.83811 18.8081 6.66374 18.8044 6.47624C18.7988 6.28686 18.6844 6.11812 18.51 6.04499C17.4019 5.35686 16.2169 4.94624 15.135 4.69499C15.165 4.58436 15.1894 4.49249 15.225 4.39499C15.7725 4.46249 17.9006 4.74936 19.35 5.89499C19.4438 5.98124 19.77 6.46124 20.07 7.12499C20.37 7.78874 20.685 8.65312 20.985 9.64499C21.57 11.58 22.0425 13.9669 22.065 16.155C21.5194 17.0381 20.4956 17.6944 19.44 18.105C18.48 18.4781 17.5838 18.645 17.115 18.69L16.305 17.595C16.7175 17.4619 17.0888 17.3175 17.415 17.175C18.6263 16.6425 19.275 16.08 19.275 16.08C19.4738 15.9019 19.4906 15.5962 19.3125 15.3975C19.1344 15.1987 18.8288 15.1819 18.63 15.36C18.63 15.36 18.1275 15.8194 17.025 16.305C16.62 16.4831 16.1288 16.6594 15.57 16.815C15.4406 16.8 15.3113 16.8375 15.21 16.92C14.3156 17.1375 13.2525 17.28 12 17.28C10.7381 17.28 9.67314 17.1244 8.77502 16.905C8.67377 16.8375 8.55002 16.8094 8.43002 16.83C7.86939 16.6744 7.38189 16.4831 6.97502 16.305C5.87252 15.8194 5.37002 15.36 5.37002 15.36C5.26127 15.2587 5.11127 15.2156 4.96502 15.24C4.77939 15.2681 4.62564 15.4012 4.57502 15.5831C4.52252 15.7631 4.58252 15.9581 4.72502 16.08C4.72502 16.08 5.37377 16.6425 6.58502 17.175C6.91127 17.3175 7.28252 17.4619 7.69502 17.595L6.88502 18.69C6.41627 18.645 5.52002 18.4781 4.56002 18.105C3.50439 17.6944 2.48064 17.0381 1.93502 16.155C1.95752 13.9669 2.43002 11.58 3.01502 9.64499C3.31502 8.65312 3.63002 7.78874 3.93002 7.12499C4.23002 6.46124 4.55627 5.98124 4.65002 5.89499C6.09939 4.74936 8.22752 4.46249 8.77502 4.39499ZM8.88002 10.08C7.65564 10.08 6.72002 11.1919 6.72002 12.48C6.72002 13.7681 7.65564 14.88 8.88002 14.88C10.1044 14.88 11.04 13.7681 11.04 12.48C11.04 11.1919 10.1044 10.08 8.88002 10.08ZM15.12 10.08C13.8956 10.08 12.96 11.1919 12.96 12.48C12.96 13.7681 13.8956 14.88 15.12 14.88C16.3444 14.88 17.28 13.7681 17.28 12.48C17.28 11.1919 16.3444 10.08 15.12 10.08ZM8.88002 11.04C9.51189 11.04 10.08 11.6475 10.08 12.48C10.08 13.3125 9.51189 13.92 8.88002 13.92C8.24814 13.92 7.68002 13.3125 7.68002 12.48C7.68002 11.6475 8.24814 11.04 8.88002 11.04ZM15.12 11.04C15.7519 11.04 16.32 11.6475 16.32 12.48C16.32 13.3125 15.7519 13.92 15.12 13.92C14.4881 13.92 13.92 13.3125 13.92 12.48C13.92 11.6475 14.4881 11.04 15.12 11.04Z",fill:"white"})))}const UA=sa.forwardRef(BA);__webpack_require__.p;var VA;function HA(){return HA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HA.apply(null,arguments)}function zA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",HA({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,VA||(VA=sa.createElement("path",{d:"M19.7039 4.36677C18.2532 3.71907 16.7218 3.25956 15.1486 3C14.9334 3.37529 14.7386 3.76142 14.5651 4.15676C12.8894 3.91051 11.1853 3.91051 9.50966 4.15676C9.33609 3.76146 9.14132 3.37534 8.92614 3C7.352 3.26176 5.81952 3.72235 4.36738 4.37016C1.48451 8.52976 0.703013 12.5861 1.09376 16.5848C2.78204 17.8012 4.67171 18.7264 6.68063 19.32C7.13297 18.7267 7.53324 18.0972 7.87719 17.4384C7.22391 17.2004 6.59339 16.9068 5.99291 16.561C6.15094 16.4493 6.30551 16.3341 6.45486 16.2223C8.20212 17.0237 10.1092 17.4391 12.04 17.4391C13.9708 17.4391 15.8779 17.0237 17.6251 16.2223C17.7762 16.3426 17.9308 16.4577 18.0871 16.561C17.4854 16.9074 16.8537 17.2015 16.1993 17.4401C16.5428 18.0986 16.9431 18.7275 17.3959 19.32C19.4065 18.7288 21.2976 17.8041 22.9862 16.5865C23.4447 11.9492 22.203 7.93021 19.7039 4.36677ZM8.37214 14.1256C7.28325 14.1256 6.38366 13.1619 6.38366 11.9763C6.38366 10.7908 7.25199 9.81863 8.36867 9.81863C9.48534 9.81863 10.378 10.7908 10.3589 11.9763C10.3398 13.1619 9.48187 14.1256 8.37214 14.1256ZM15.7078 14.1256C14.6172 14.1256 13.7211 13.1619 13.7211 11.9763C13.7211 10.7908 14.5894 9.81863 15.7078 9.81863C16.8262 9.81863 17.7119 10.7908 17.6928 11.9763C17.6737 13.1619 16.8176 14.1256 15.7078 14.1256Z",fill:"white"})))}const WA=sa.forwardRef(zA),qA=(__webpack_require__.p,e=>{let{link:t,onSocialLinkClick:n}=e;const[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(!1),s=()=>{n?n(t,(()=>a(!0))):a(!0)};return(0,ms.jsxs)(ms.Fragment,{children:[r?(0,ms.jsx)(WA,{className:"cursor-pointer h-5",onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}):(0,ms.jsx)(UA,{className:"cursor-pointer h-5",onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}),(0,ms.jsx)(Bs.tY,{isOpen:o,linkURL:t,onCloseModal:()=>a(!1)})]})});var GA;function YA(){return YA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YA.apply(null,arguments)}function KA(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",YA({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,GA||(GA=sa.createElement("path",{d:"M8.68387 13.3419C8.88616 12.9381 9 12.4824 9 12C9 11.5176 8.88616 11.0619 8.68387 10.6581M8.68387 13.3419C8.19134 14.3251 7.17449 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.17449 9 8.19134 9.67492 8.68387 10.6581M8.68387 13.3419L15.3161 16.6581M8.68387 10.6581L15.3161 7.34193M15.3161 7.34193C15.8087 8.32508 16.8255 9 18 9C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6C15 6.48237 15.1138 6.93815 15.3161 7.34193ZM15.3161 16.6581C15.1138 17.0619 15 17.5176 15 18C15 19.6569 16.3431 21 18 21C19.6569 21 21 19.6569 21 18C21 16.3431 19.6569 15 18 15C16.8255 15 15.8087 15.6749 15.3161 16.6581Z",stroke:"#DEE2E6",strokeLinecap:"round",strokeLinejoin:"round"})))}const QA=sa.forwardRef(KA);__webpack_require__.p;var XA,ZA,JA,$A;function eE(){return eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eE.apply(null,arguments)}function tE(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",eE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,XA||(XA=sa.createElement("path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.8255 9 15.8087 8.32508 15.3161 7.34193C15.1138 6.93815 15 6.48237 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",fill:"#F8F9FA"})),ZA||(ZA=sa.createElement("path",{d:"M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 17.5176 15.1138 17.0619 15.3161 16.6581C15.8087 15.6749 16.8255 15 18 15C19.6569 15 21 16.3431 21 18Z",fill:"#F8F9FA"})),JA||(JA=sa.createElement("path",{d:"M9 12C9 12.4824 8.88616 12.9381 8.68387 13.3419C8.19134 14.3251 7.17449 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.17449 9 8.19134 9.67492 8.68387 10.6581C8.88616 11.0619 9 11.5176 9 12Z",fill:"#F8F9FA"})),$A||($A=sa.createElement("path",{d:"M8.68387 13.3419C8.88616 12.9381 9 12.4824 9 12C9 11.5176 8.88616 11.0619 8.68387 10.6581M8.68387 13.3419C8.19134 14.3251 7.17449 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.17449 9 8.19134 9.67492 8.68387 10.6581M8.68387 13.3419L15.3161 16.6581M8.68387 10.6581L15.3161 7.34193M15.3161 7.34193C15.8087 8.32508 16.8255 9 18 9C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6C15 6.48237 15.1138 6.93815 15.3161 7.34193ZM15.3161 16.6581C15.1138 17.0619 15 17.5176 15 18C15 19.6569 16.3431 21 18 21C19.6569 21 21 19.6569 21 18C21 16.3431 19.6569 15 18 15C16.8255 15 15.8087 15.6749 15.3161 16.6581Z",stroke:"#F8F9FA",strokeLinecap:"round",strokeLinejoin:"round"})))}const nE=sa.forwardRef(tE),rE=(__webpack_require__.p,e=>{let{shareFn:t}=e;const[n,r]=(0,sa.useState)(!1);return(0,ms.jsx)(ms.Fragment,{children:n?(0,ms.jsx)(nE,{className:"cursor-pointer h-5",onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)}):(0,ms.jsx)(QA,{className:"cursor-pointer h-5",onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)})})});var iE;function oE(){return oE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oE.apply(null,arguments)}function aE(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",oE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,iE||(iE=sa.createElement("path",{d:"M23 3.00005C22.0424 3.67552 20.9821 4.19216 19.86 4.53005C19.2577 3.83756 18.4573 3.34674 17.567 3.12397C16.6767 2.90121 15.7395 2.95724 14.8821 3.2845C14.0247 3.61176 13.2884 4.19445 12.773 4.95376C12.2575 5.71308 11.9877 6.61238 12 7.53005V8.53005C10.2426 8.57561 8.50127 8.18586 6.93101 7.39549C5.36074 6.60513 4.01032 5.43868 3 4.00005C3 4.00005 -1 13 8 17C5.94053 18.398 3.48716 19.099 1 19C10 24 21 19 21 7.50005C20.9991 7.2215 20.9723 6.94364 20.92 6.67005C21.9406 5.66354 22.6608 4.39276 23 3.00005Z",stroke:"#DEE2E6",strokeLinecap:"round",strokeLinejoin:"round"})))}const sE=sa.forwardRef(aE);__webpack_require__.p;var lE;function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cE.apply(null,arguments)}function uE(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",cE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,lE||(lE=sa.createElement("path",{d:"M23 3.00005C22.0424 3.67552 20.9821 4.19216 19.86 4.53005C19.2577 3.83756 18.4573 3.34674 17.567 3.12397C16.6767 2.90121 15.7395 2.95724 14.8821 3.2845C14.0247 3.61176 13.2884 4.19445 12.773 4.95376C12.2575 5.71308 11.9877 6.61238 12 7.53005V8.53005C10.2426 8.57561 8.50127 8.18586 6.93101 7.39549C5.36074 6.60513 4.01032 5.43868 3 4.00005C3 4.00005 -1 13 8 17C5.94053 18.398 3.48716 19.099 1 19C10 24 21 19 21 7.50005C20.9991 7.2215 20.9723 6.94364 20.92 6.67005C21.9406 5.66354 22.6608 4.39276 23 3.00005Z",fill:"#F8F9FA",stroke:"#F8F9FA",strokeLinecap:"round",strokeLinejoin:"round"})))}const dE=sa.forwardRef(uE),pE=(__webpack_require__.p,e=>{let{link:t,onSocialLinkClick:n}=e;const[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(!1),s=()=>{n?n(t,(()=>a(!0))):a(!0)};return(0,ms.jsxs)(ms.Fragment,{children:[r?(0,ms.jsx)(dE,{className:"cursor-pointer h-5",onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}):(0,ms.jsx)(sE,{className:"cursor-pointer h-5",onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}),(0,ms.jsx)(Bs.tY,{isOpen:o,linkURL:t,onCloseModal:()=>a(!1)})]})});var hE;function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fE.apply(null,arguments)}function mE(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",fE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,hE||(hE=sa.createElement("path",{d:"M21 12C21 16.9706 16.9706 21 12 21M21 12C21 7.02944 16.9706 3 12 3M21 12H3M12 21C7.02944 21 3 16.9706 3 12M12 21C13.6569 21 15 16.9706 15 12C15 7.02944 13.6569 3 12 3M12 21C10.3431 21 9 16.9706 9 12C9 7.02944 10.3431 3 12 3M3 12C3 7.02944 7.02944 3 12 3",stroke:"#DEE2E6",strokeLinecap:"round",strokeLinejoin:"round"})))}const gE=sa.forwardRef(mE);__webpack_require__.p;var vE,yE,bE;function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wE.apply(null,arguments)}function xE(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",wE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,vE||(vE=sa.createElement("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",fill:"#F8F9FA"})),yE||(yE=sa.createElement("path",{d:"M15 12C15 16.9706 13.6569 21 12 21C10.3431 21 9 16.9706 9 12C9 7.02944 10.3431 3 12 3C13.6569 3 15 7.02944 15 12Z",fill:"#F8F9FA"})),bE||(bE=sa.createElement("path",{d:"M21 12C21 16.9706 16.9706 21 12 21M21 12C21 7.02944 16.9706 3 12 3M21 12H3M12 21C7.02944 21 3 16.9706 3 12M12 21C13.6569 21 15 16.9706 15 12C15 7.02944 13.6569 3 12 3M12 21C10.3431 21 9 16.9706 9 12C9 7.02944 10.3431 3 12 3M3 12C3 7.02944 7.02944 3 12 3",stroke:"#031021",strokeLinecap:"round",strokeLinejoin:"round"})))}const CE=sa.forwardRef(xE),AE=(__webpack_require__.p,e=>{let{link:t,onSocialLinkClick:n}=e;const[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(!1);return(0,ms.jsxs)(ms.Fragment,{children:[r?(0,ms.jsx)(CE,{className:"cursor-pointer h-5",onClick:()=>n(t,(()=>a(!0))),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}):(0,ms.jsx)(gE,{className:"cursor-pointer h-5",onClick:()=>n(t,(()=>a(!0))),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)}),(0,ms.jsx)(Bs.tY,{isOpen:o,linkURL:t,onCloseModal:()=>a(!1)})]})}),EE=e=>{let{link:t,onSocialLinkClick:n}=e;const[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)(!1);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",className:"cursor-pointer h-5 w-[14px]",onClick:()=>{n?n(t,(()=>a(!0))):a(!0)},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),fill:"#F8F9FA",children:(0,ms.jsx)("path",{d:"M5.4002 0.200195C2.53319 0.200195 0.200195 2.53319 0.200195 5.4002V12.6002C0.200195 15.4672 2.53319 17.8002 5.4002 17.8002H12.6002C15.4672 17.8002 17.8002 15.4672 17.8002 12.6002V5.4002C17.8002 2.53319 15.4672 0.200195 12.6002 0.200195H5.4002ZM5.4002 1.0002H12.6002C15.0348 1.0002 17.0002 2.9656 17.0002 5.4002V12.6002C17.0002 15.0348 15.0348 17.0002 12.6002 17.0002H5.4002C2.9656 17.0002 1.0002 15.0348 1.0002 12.6002V5.4002C1.0002 2.9656 2.9656 1.0002 5.4002 1.0002ZM13.8002 3.4002C13.588 3.4002 13.3845 3.48448 13.2345 3.63451C13.0845 3.78454 13.0002 3.98802 13.0002 4.2002C13.0002 4.41237 13.0845 4.61585 13.2345 4.76588C13.3845 4.91591 13.588 5.0002 13.8002 5.0002C14.0124 5.0002 14.2159 4.91591 14.3659 4.76588C14.5159 4.61585 14.6002 4.41237 14.6002 4.2002C14.6002 3.98802 14.5159 3.78454 14.3659 3.63451C14.2159 3.48448 14.0124 3.4002 13.8002 3.4002ZM9.0002 4.6002C6.57488 4.6002 4.6002 6.57488 4.6002 9.0002C4.6002 11.4255 6.57488 13.4002 9.0002 13.4002C11.4255 13.4002 13.4002 11.4255 13.4002 9.0002C13.4002 6.57488 11.4255 4.6002 9.0002 4.6002ZM9.0002 5.4002C10.9932 5.4002 12.6002 7.00723 12.6002 9.0002C12.6002 10.9932 10.9932 12.6002 9.0002 12.6002C7.00723 12.6002 5.4002 10.9932 5.4002 9.0002C5.4002 7.00723 7.00723 5.4002 9.0002 5.4002Z",stroke:r?"#F8F9FA":"transparent",fill:"#F8F9FA"})}),(0,ms.jsx)(Bs.tY,{isOpen:o,linkURL:t,onCloseModal:()=>a(!1)})]})},_E=e=>{let{websiteLink:t,twitter:n,discord:r,instagram:i,isTrustableCollection:o}=e;const a=(e,t)=>{o?window.open(e,"_blank"):t()};return(0,ms.jsxs)("div",{className:"flex gap-2 justify-end",children:[t&&(0,ms.jsx)(AE,{link:t,onSocialLinkClick:a}),n&&(0,ms.jsx)(pE,{link:n,onSocialLinkClick:a}),r&&(0,ms.jsx)(qA,{link:r,onSocialLinkClick:a}),i&&(0,ms.jsx)(EE,{link:i,onSocialLinkClick:a}),(0,ms.jsx)(rE,{shareFn:()=>{navigator.clipboard.writeText(window.location.href),hc().fire({icon:"success",showConfirmButton:!1,timer:1500,title:"Link Copied"})}})]})},TE=()=>(0,ms.jsxs)("div",{className:"flex flex-col gap-3 py-8",children:[(0,ms.jsxs)("div",{className:"flex gap-5",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[rgba(116,118,117,0.8)] h-[92px] w-[92px] rounded-[12px] shadow-customCollectionPage border border-[#6C757D]"}),(0,ms.jsxs)("div",{className:"flex max-md:flex-col max-md:items-start max-md:gap-3 items-end bg-cover w-auto rounded-[24px]",children:[(0,ms.jsx)("div",{className:"w-full h-fit flex gap-4",children:(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-between",children:[(0,ms.jsx)("div",{className:"mt-3"}),(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-between",children:[(0,ms.jsxs)("div",{className:"flex flex-row gap-3 items-center mb-3",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[170px] h-[34px] rounded-md"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-2 sm:pl-4 w-[28px] h-[28px] rounded-full"})]}),(0,ms.jsxs)("div",{className:"gap-3 hidden sm:flex",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"})]})]})]})}),(0,ms.jsxs)("div",{className:"gap-3 flex sm:hidden",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] pl-4 w-[28px] h-[28px] rounded-full"})]})]})]}),(0,ms.jsxs)("div",{className:"w-full flex justify-between max-md:flex-col",children:[(0,ms.jsxs)("div",{className:"w-full sm:w-3/5 xl:w-2/5 md:self-center flex flex-col gap-2",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-full h-[17px] rounded-md pb-2"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-4/5 h-[17px] rounded-md"})]}),(0,ms.jsx)("div",{className:"flex gap-3 pb-2",children:(0,ms.jsxs)("div",{className:"flex gap-5 py-[16px]",children:[(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[41px] h-[17px] rounded-md"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[51px] h-[22px] rounded-md"})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[76px] h-[17px] rounded-md"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[46px] h-[22px] rounded-md"})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[86px] h-[17px] rounded-md"}),(0,ms.jsx)("div",{className:"animate-pulse bg-[#747675cb] w-[103px] h-[22px] rounded-md"})]})]})})]})]}),SE=e=>{var t,n,r,i,o,a,s,l;let{collectionName:c,loggedUserAddr:u,loggedIsDapper:d,totalItems:p,floorPrice:h,totalOwners:f,weekTopSales:m,createdDate:g,isTrustableCollection:v}=e;const{collection:y,isLoading:b,collectionDropData:w}=AA(),x=null===y||void 0===y||null===(t=y.collectionDisplay)||void 0===t?void 0:t.socials,C=null===x||void 0===x||null===(n=x.twitter)||void 0===n?void 0:n.url,A=null===x||void 0===x||null===(r=x.discord)||void 0===r?void 0:r.url,E=null===x||void 0===x||null===(i=x.instagram)||void 0===i?void 0:i.url,_=c&&c.includes("FLOAT")?"https://floats.city/":null===y||void 0===y||null===(o=y.collectionDisplay)||void 0===o?void 0:o.externalURL.url,T=(null===y||void 0===y||null===(a=y.collectionDisplay)||void 0===a?void 0:a.description)||"";return(0,ms.jsx)(ms.Fragment,{children:b?(0,ms.jsx)(TE,{}):(0,ms.jsxs)("div",{className:"flex flex-col gap-[1.2rem] py-8",children:[(0,ms.jsxs)("div",{className:"flex flex-row space-x-4 items-center flex-grow",children:[(0,ms.jsxs)("div",{className:"flex flex-row space-x-4 items-center gap-4 grow",children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("img",{className:"h-[96px] w-[96px] min-w-[96px] xl:h-[92px] xl:w-[92px] xl:min-w-[92px] bg-cover bg-no-repeat rounded-[12px] sm:h-18 sm:w-18 shadow-customCollectionPage border border-[#6C757D] backdrop-blur-[32px] bg-glassFillGray bg-blur",src:c?(0,us.getSquareImage)(c,y):rl.A,alt:null!==y&&void 0!==y&&null!==(s=y.collectionDisplay)&&void 0!==s&&s.name?null===y||void 0===y||null===(l=y.collectionDisplay)||void 0===l?void 0:l.name:"",onError:ol.R})}),(0,ms.jsxs)("div",{className:"flex flex-col items-start justify-start gap-y-3",children:[(0,ms.jsxs)("div",{className:"flex flex-row items-center",children:[(0,ms.jsx)("span",{className:"text-2xl sm:text-3xl font-bold truncate max-sm:max-w-[240px] max-w-[640px]",children:null===c||void 0===c?void 0:c.replaceAll("-"," ")}),(null===y||void 0===y?void 0:y.isNFTCatalog)&&(0,ms.jsxs)("div",{className:"pl-3",children:[(0,ms.jsx)(nc.m_,{id:"".concat(null===y||void 0===y?void 0:y.name,"-verified-tooltip"),style:{backdropFilter:"blur(100px)",backgroundColor:"#33333380",zIndex:999},anchorSelect:"#anchor-select",clickable:!0,children:(0,ms.jsxs)("div",{className:"flex flex-col gap-2 z-50",children:[(0,ms.jsxs)("div",{className:"flex gap-1",children:[(0,ms.jsx)("img",{src:RA,alt:"Catalog check mark",className:"w-[16px] h-[16px]"}),(0,ms.jsx)("p",{className:"text-sm font-medium text-[#F8F9FA]",children:"Verified Collection"})]}),(0,ms.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,ms.jsx)("p",{className:"text-sm font-normal text-[#ADB5BD] leading-none",children:"Verified by the"}),(0,ms.jsx)("a",{href:"https://www.flow-nft-catalog.com/",target:"_blank",rel:"noreferrer",className:" text-sm font-normal text-[#04E5A3] leading-none",children:"Flow NFT Catalog"})]})]})}),(0,ms.jsx)("button",{id:"anchor-select",children:(0,ms.jsx)("img",{className:"w-[18px] h-[18px] sm:w-[22px] sm:h-[22px]",src:RA,alt:"Catalog check mark","data-tooltip-place":"top","data-tooltip-id":"".concat(null===y||void 0===y?void 0:y.name,"-verified-tooltip")})})]})]}),(0,ms.jsx)("div",{children:(0,ms.jsx)(_E,{websiteLink:_,discord:A,twitter:C,instagram:E,isTrustableCollection:v})})]})]}),(0,ms.jsx)("div",{className:"hidden md:block",children:(0,ms.jsx)(jA,{isNFTCatalog:null===y||void 0===y?void 0:y.isNFTCatalog,loggedIsDapper:d,loggedUserAddr:u,websiteLink:_})})]}),(0,ms.jsxs)("div",{className:"flex flex-row max-md:flex-col max-md:items-start gap-3 items-center flex-grow",children:[T&&(0,ms.jsx)("div",{className:"grow w-full max-w-4xl py-4 px-6 rounded-md bg-white bg-opacity-5 backdrop-blur-lg custom-collection-border custom-collection-bg",children:(0,ms.jsx)("p",{className:"text-[#ADB5BD] text-sm font-medium",children:T})}),(0,ms.jsx)("div",{className:"w-full flex justify-end max-md:justify-start m-0",children:(0,ms.jsx)(OA,{createdDate:g,floorPrice:h,totalItems:p,totalOwners:f,weekTopSales:m,collectionRoyalty:null===w||void 0===w?void 0:w.royaltyRate})}),(0,ms.jsx)("div",{className:"block md:hidden",children:(0,ms.jsx)(jA,{isNFTCatalog:null===y||void 0===y?void 0:y.isNFTCatalog,loggedIsDapper:d,loggedUserAddr:u,websiteLink:_})})]})]})})};var kE=__webpack_require__(26284),PE=__webpack_require__.n(kE),DE=__webpack_require__(30274),FE=__webpack_require__.n(DE),NE=__webpack_require__(45006),IE=__webpack_require__.n(NE),RE="bodyAttributes",OE="htmlAttributes",jE="titleAttributes",ME={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},LE=(Object.keys(ME).map((function(e){return ME[e]})),"charset"),BE="cssText",UE="href",VE="http-equiv",HE="innerHTML",zE="itemprop",WE="name",qE="property",GE="rel",YE="src",KE="target",QE={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},XE="defaultTitle",ZE="defer",JE="encodeSpecialCharacters",$E="onChangeClientState",e_="titleTemplate",t_=Object.keys(QE).reduce((function(e,t){return e[QE[t]]=t,e}),{}),n_=[ME.NOSCRIPT,ME.SCRIPT,ME.STYLE],r_="data-react-helmet",i_="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},o_=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}}(),a_=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},s_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},l_=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},c_=function(e){var t=f_(e,ME.TITLE),n=f_(e,e_);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=f_(e,XE);return t||r||void 0},u_=function(e){return f_(e,$E)||function(){}},d_=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return a_({},e,t)}),{})},p_=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[ME.BASE]})).map((function(e){return e[ME.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},h_=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&b_("Helmet: "+e+' should be of type "Array". Instead found type "'+i_(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],l=s.toLowerCase();-1===t.indexOf(l)||n===GE&&"canonical"===e[n].toLowerCase()||l===GE&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==HE&&s!==BE&&s!==zE||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],l=IE()({},r[s],i[s]);r[s]=l}return e}),[]).reverse()},f_=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},m_=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){m_(t)}),0)}}(),g_=function(e){return clearTimeout(e)},v_="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||m_:__webpack_require__.g.requestAnimationFrame||m_,y_="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||g_:__webpack_require__.g.cancelAnimationFrame||g_,b_=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},w_=null,x_=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;E_(ME.BODY,r),E_(ME.HTML,i),A_(d,p);var h={baseTag:__(ME.BASE,n),linkTags:__(ME.LINK,o),metaTags:__(ME.META,a),noscriptTags:__(ME.NOSCRIPT,s),scriptTags:__(ME.SCRIPT,c),styleTags:__(ME.STYLE,u)},f={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,f,m)},C_=function(e){return Array.isArray(e)?e.join(""):e},A_=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=C_(e)),E_(ME.TITLE,t)},E_=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(r_),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(r_):n.getAttribute(r_)!==a.join(",")&&n.setAttribute(r_,a.join(","))}},__=function(e,t){var n=document.head||document.querySelector(ME.HEAD),r=n.querySelectorAll(e+"["+r_+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===HE)n.innerHTML=t.innerHTML;else if(r===BE)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(r_,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},T_=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},S_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[QE[n]||n]=e[n],t}),t)},k_=function(e,t,n){switch(e){case ME.TITLE:return{toComponent:function(){return function(e,t,n){var r,i=((r={key:t})[r_]=!0,r),o=S_(n,i);return[sa.createElement(ME.TITLE,o,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=T_(n),o=C_(t);return i?"<"+e+" "+r_+'="true" '+i+">"+l_(o,r)+"</"+e+">":"<"+e+" "+r_+'="true">'+l_(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case RE:case OE:return{toComponent:function(){return S_(t)},toString:function(){return T_(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[r_]=!0,r);return Object.keys(t).forEach((function(e){var n=QE[e]||e;if(n===HE||n===BE){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),sa.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===HE||e===BE)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+l_(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===n_.indexOf(e);return t+"<"+e+" "+r_+'="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},P_=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:k_(ME.BASE,t,r),bodyAttributes:k_(RE,n,r),htmlAttributes:k_(OE,i,r),link:k_(ME.LINK,o,r),meta:k_(ME.META,a,r),noscript:k_(ME.NOSCRIPT,s,r),script:k_(ME.SCRIPT,l,r),style:k_(ME.STYLE,c,r),title:k_(ME.TITLE,{title:d,titleAttributes:p},r)}},D_=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new 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),n.prototype.shouldComponentUpdate=function(e){return!FE()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case ME.SCRIPT:case ME.NOSCRIPT:return{innerHTML:t};case ME.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return a_({},r,((t={})[n.type]=[].concat(r[n.type]||[],[a_({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case ME.TITLE:return a_({},i,((t={})[r.type]=a,t.titleAttributes=a_({},o),t));case ME.BODY:return a_({},i,{bodyAttributes:a_({},o)});case ME.HTML:return a_({},i,{htmlAttributes:a_({},o)})}return a_({},i,((n={})[r.type]=a_({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=a_({},t);return Object.keys(e).forEach((function(t){var r;n=a_({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return sa.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[t_[n]||n]=e[n],t}),t)}(s_(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case ME.LINK:case ME.META:case ME.NOSCRIPT:case ME.SCRIPT:case ME.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=s_(t,["children"]),i=a_({},r);return n&&(i=this.mapChildrenToProps(n,i)),sa.createElement(e,i)},o_(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(sa.Component),t.propTypes={base:pa().object,bodyAttributes:pa().object,children:pa().oneOfType([pa().arrayOf(pa().node),pa().node]),defaultTitle:pa().string,defer:pa().bool,encodeSpecialCharacters:pa().bool,htmlAttributes:pa().object,link:pa().arrayOf(pa().object),meta:pa().arrayOf(pa().object),noscript:pa().arrayOf(pa().object),onChangeClientState:pa().func,script:pa().arrayOf(pa().object),style:pa().arrayOf(pa().object),title:pa().string,titleAttributes:pa().object,titleTemplate:pa().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=P_({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(PE()((function(e){return{baseTag:p_([UE,KE],e),bodyAttributes:d_(RE,e),defer:f_(e,ZE),encode:f_(e,JE),htmlAttributes:d_(OE,e),linkTags:h_(ME.LINK,[GE,UE],e),metaTags:h_(ME.META,[WE,LE,VE,qE,zE],e),noscriptTags:h_(ME.NOSCRIPT,[HE],e),onChangeClientState:u_(e),scriptTags:h_(ME.SCRIPT,[YE,HE],e),styleTags:h_(ME.STYLE,[BE],e),title:c_(e),titleAttributes:d_(jE,e)}}),(function(e){w_&&y_(w_),e.defer?w_=v_((function(){x_(e,(function(){w_=null}))})):(x_(e),w_=null)}),P_)((function(){return null})));D_.renderStatic=D_.rewind;const F_=e=>{let{metaImage:t,metaTitle:n,metaDescription:r}=e;return(0,ms.jsx)(ms.Fragment,{children:t&&(0,ms.jsx)(Ja,{children:(0,ms.jsxs)(D_,{children:[(0,ms.jsx)("meta",{name:"description",content:r}),(0,ms.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,ms.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,ms.jsx)("meta",{name:"twitter:site",content:"@flowty"}),(0,ms.jsx)("meta",{name:"twitter:title",content:n}),(0,ms.jsx)("meta",{name:"twitter:description",content:r}),(0,ms.jsx)("meta",{name:"twitter:image",content:t}),(0,ms.jsx)("meta",{name:"description",content:r}),(0,ms.jsx)("meta",{property:"og:title",content:n}),(0,ms.jsx)("meta",{property:"og:description",content:r}),(0,ms.jsx)("meta",{property:"og:image",content:t}),(0,ms.jsx)("title",{children:n})]},t)})})},N_=e=>{let{isDrop:t,selectedTab:n,onSelectedTabChange:r}=e;const{fetchSearchResults:i}=Nw();return(0,ms.jsx)("div",{className:"border-b border-neutral-200",children:(0,ms.jsx)("nav",{className:"flex justify-between","aria-label":"Tabs",children:(0,ms.jsx)("div",{className:"-mb-px flex space-x-8",children:[{key:"LISTINGS",name:"Listings"},{key:"ACTIVITY",name:"Activity"},{key:"DROP",name:"Drop"}].map((e=>"Drop"!==e.name||t?(0,ms.jsx)("button",{onClick:()=>{r(e.key),"LISTINGS"===e.key&&i(!0)},className:"font-bold font-montserrat uppercase text-base text-neutral-900 px-6 py-1.5\n\t\t\t\t\t\t\t".concat(e.key===n?"border-neutral-900":"border-transparent",' \n\t\t\t\t\t\t\t"whitespace-nowrap px-2 border-b-[4px] text-sm"\n\t\t\t\t\t\t'),children:e.name},e.name):null))})})})},I_=()=>(0,ms.jsxs)("div",{className:"py-20 flex max-lg:flex-col justify-center gap-20 max-lg:gap-0",children:[(0,ms.jsx)("div",{className:"flex w-full h-full max-w-[648px] tablet:w-[648px] tablet:h-[648px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"}),(0,ms.jsxs)("div",{className:"flex flex-col justify-center gap-10 py-16 max-lg:w-full w-[400px]",children:[(0,ms.jsx)("div",{className:"flex h-[30px] max-lg:w-full w-[135px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"}),(0,ms.jsxs)("div",{className:"flex flex-col gap-4 max-lg:w-full w-[350px] rounded-[2.5rem]",children:[(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[150px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"}),(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[350px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-4 max-lg:w-full w-[350px] rounded-[2.5rem]",children:[(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[180px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"}),(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[300px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"})]}),(0,ms.jsxs)("div",{className:"flex flex-col gap-4 max-lg:w-full w-[350px] rounded-[2.5rem]",children:[(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[180px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"}),(0,ms.jsx)("div",{className:"flex h-[20px] max-lg:w-full w-[330px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"})]}),(0,ms.jsx)("div",{className:"flex h-[35px] max-lg:w-full w-[400px] animate-pulse bg-[#43ff640a] rounded-[2.5rem]"})]})]}),R_=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r;let{authStore:i}=e;const{onSelectedTabChange:o,selectedTab:a,collection:s,collectionAddress:l,collectionName:c,collectionDisplayName:u,isDapper:d,flowtyTokenBalance:p,collectionDropData:h,isLoadingDrop:f}=AA(i),{selectCard:m}=wb(),g=(0,fb.s)(us.SupportedTokens.FLOW);(0,sa.useEffect)((()=>{ds.o.track("".concat(c," page visited"),{tab:"Collection"})}),[]);const v=null!==s&&void 0!==s&&null!==(t=s.collectionDisplay)&&void 0!==t&&t.name?s.collectionDisplay.name:u,y=null===v||void 0===v?void 0:v.replaceAll("-"," "),b="".concat(null!==y&&void 0!==y?y:"collections"," on Flowty: Buy, Sell, Loan and Rent ").concat(null!==y&&void 0!==y?y:""," NFTs"),w=null!==(n=null===s||void 0===s||null===(r=s.collectionDisplay)||void 0===r?void 0:r.description)&&void 0!==n?n:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",x=(0,sa.useMemo)((()=>(0,us.getBannerImage)(c,s)),[c,s]),C=(0,sa.useCallback)((e=>{m({selected:{contractAddress:e.contractAddress,contractName:e.contractName,nftID:e.nftID,nftType:e.nftType}})}),[]),A=(0,sa.useMemo)((()=>{const e=!f&&h;return{dropStatus:null!==h&&void 0!==h&&h.phases[0].hasEnded?"ENDED":null!==h&&void 0!==h&&h.phases[0].hasStarted?"LIVE":"COMING",showDropTab:e}}),[h,f,a]),E=(0,sa.useMemo)((()=>_y.some((e=>e.collectionAddress===l&&e.collectionName===c))),[s]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(F_,{metaImage:x,metaDescription:w,metaTitle:b}),(0,ms.jsx)(Fw,{endpoint:"collection",collectionPage:[l,c],children:()=>{var e,t,n,r,m;return(0,ms.jsx)(fv,{children:(0,ms.jsxs)("div",{className:"container",children:[(0,ms.jsx)("div",{className:"lg:mt-0",children:(0,ms.jsx)(SE,{collectionName:u,loggedIsDapper:(null===i||void 0===i||null===(e=i.loggedUser)||void 0===e?void 0:e.isDapper)||!1,loggedUserAddr:(null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.addr)||"",createdDate:void 0,floorPrice:null===s||void 0===s||null===(n=s.floorPrice)||void 0===n?void 0:n.valueInUSD,totalItems:null===s||void 0===s?void 0:s.totalItems,totalOwners:null===s||void 0===s?void 0:s.totalOwners,weekTopSales:void 0,isTrustableCollection:E})}),(0,ms.jsx)("div",{className:"py-3 md:pb-[20px] sticky top-[74px] z-20 bg-darkBg",children:(0,ms.jsx)(N_,{isDrop:Boolean(h),onSelectedTabChange:o,selectedTab:a})}),(0,ms.jsxs)("div",{children:["LISTINGS"===a&&(0,ms.jsx)(xA,{handleSelectCard:C,showVisitDrop:A,onSelectedTabChange:o}),"ACTIVITY"===a&&(0,ms.jsx)(IA,{}),"DROP"===a&&(0,ms.jsx)(ms.Fragment,{children:f?(0,ms.jsx)(I_,{}):h&&(0,ms.jsx)(Bs.KE,{isDapper:d,flowty:Tf.su,loggedUser:null!==(r=null===i||void 0===i||null===(m=i.loggedUser)||void 0===m?void 0:m.addr)&&void 0!==r?r:void 0,flowTokenBalance:p,spotPrice:g,dropData:h,contractAddress:l||"",contractName:c||"",collectionDisplayName:u||"",sendToCollectionPage:()=>o("LISTINGS")})})]})]})})}})]})})));var O_=__webpack_require__(97776);const j_=e=>{let{price:t,paymentType:n,toolTipCustomId:r}=e;if(!t)return(0,ms.jsx)(ms.Fragment,{children:"N/A"});const i=parseFloat(t);if(0===i)return(0,ms.jsx)(ms.Fragment,{children:"FREE"});const o=n?(0,us.getTokenFromType)(n):us.SupportedTokens.FLOW;return(0,ms.jsx)(Bs.GM,{price:i,token:o,toolTipCustomId:r})},M_=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S;let{contract:k,collectionName:P,getDropStatus:D}=e;const[F,N]=(0,sa.useState)(!1),I=D(null===(t=k.drops)||void 0===t?void 0:t[0]),R="ENDED"===I,O="/collection/".concat(null===k||void 0===k||null===(n=k.drops[0])||void 0===n?void 0:n.address,"/").concat(P,'?orderFilters=%7B"all"%3A%7B%7D%7D&sort=%7B"direction"%3A"desc"%2C"listingKind"%3Anull%2C"path"%3A"blockTimestamp"%7D&page=drop'),j="/collection/".concat(null===k||void 0===k||null===(r=k.drops[0])||void 0===r?void 0:r.address,"/").concat(P);return(0,ms.jsxs)(ca.N_,{to:R?j:O,className:"flex w-full max-sm:w-full relative self-center justify-self-center py-[16px] sm:py-[12px] px-[12px] sm:px-[14px] flex-col sm:items-start gap-[12px] rounded-[6.339px] border-[0.792px] border-neutral-300 bg-gradient-to-br from-[rgba(255,255,255,0.12)] to-[rgba(255,255,255,0.06)] backdrop-blur-[16.640px]",children:[(0,ms.jsxs)("div",{className:"w-full flex flex-col items-start gap-[12px]",children:[(0,ms.jsxs)("div",{className:"flex w-full  sm:h-[18px] justify-between items-center",children:[(0,ms.jsxs)("div",{className:"flex flex-column items-center gap-[12px]",children:[(0,ms.jsx)("img",{src:(0,us.getSquareImage)(null!==(i=null===k||void 0===k?void 0:k.name)&&void 0!==i?i:"",k),alt:"thumbnail",onError:ol.R,className:"w-[52px] h-[52px] sm:hidden"}),(0,ms.jsx)("div",{className:" text-[#F8F9FA] sm:max-w-[180px] font-montserrat sm:truncate sm:overflow-hidden text-[14px] sm:text-[12px] 3xl:text-[14.263px] font-black leading-normal uppercase",children:null===k||void 0===k||null===(o=k.collectionDisplay)||void 0===o?void 0:o.name})]}),(0,ms.jsx)("div",{className:"pl-[6px]",children:(0,ms.jsx)(O_.X,{dropStatus:I,card:!0})})]}),!F&&(0,ms.jsx)("div",{className:"hidden sm:flex ".concat("w-full object-fill aspect-square"," animate-pulse bg-[#43ff640a] ").concat(F?"hidden":"")}),(0,ms.jsx)("div",{className:"hidden sm:flex w-full h-full ".concat(F?"object-fill aspect-square":"sm:hidden"),children:(0,ms.jsx)("img",{src:(0,us.getSquareImage)(null!==(a=null===k||void 0===k||null===(s=k.collectionDisplay)||void 0===s?void 0:s.name)&&void 0!==a?a:"",k),alt:"thumbnail",onLoad:()=>{N(!0)},onError:ol.R,className:"".concat(F?"object-fill aspect-square w-full":"hidden")})})]}),(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center gap-[8px] self-stretch",children:[(0,ms.jsxs)("div",{className:"flex w-full justify-between items-end",children:[(0,ms.jsx)("span",{className:"text-white font-montserrat text-[14px] sm:text-[10.366px] 3xl:text-[12px] font-normal leading-normal",children:"Mint Price"}),(0,ms.jsx)("span",{children:(0,ms.jsx)(j_,{price:null===k||void 0===k||null===(l=k.drops)||void 0===l||null===(c=l[0])||void 0===c||null===(u=c.phases)||void 0===u||null===(d=u[0])||void 0===d||null===(p=d.quotes)||void 0===p||null===(h=p[Tf.su.config.getIdentifier("FlowToken","Vault")])||void 0===h?void 0:h.price,paymentType:null===k||void 0===k||null===(f=k.drops)||void 0===f||null===(m=f[0])||void 0===m||null===(g=m.phases)||void 0===g||null===(v=g[0])||void 0===v||null===(y=v.paymentTypes)||void 0===y?void 0:y[0],toolTipCustomId:"drop-price-tooltip"})})]}),(0,ms.jsxs)("div",{className:"flex w-full justify-between items-end",children:[(0,ms.jsx)("span",{className:"text-[#CED4DA] font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-normal leading-normal",children:"Quantity Minted"}),(0,ms.jsx)("span",{className:"text-[#CED4DA] text-right font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-medium leading-normal",children:null===k||void 0===k||null===(b=k.drops[0])||void 0===b?void 0:b.totalMinted})]}),(0,ms.jsxs)("div",{className:"flex w-full justify-between items-end",children:[(0,ms.jsx)("span",{className:"text-[#CED4DA] font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-normal leading-normal",children:"Mint Start"}),(0,ms.jsx)("span",{className:"text-[#CED4DA] text-right font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-medium leading-normal",children:(null===k||void 0===k||null===(w=k.drops[0])||void 0===w||null===(x=w.phases[0])||void 0===x?void 0:x.start)&&(0,el.default)(zb(parseInt(null===k||void 0===k||null===(C=k.drops[0])||void 0===C||null===(A=C.phases[0])||void 0===A?void 0:A.start,10)),"yyyy-MM-dd HH:mm")})]}),(0,ms.jsxs)("div",{className:"flex w-full justify-between items-end",children:[(0,ms.jsx)("span",{className:"text-[#CED4DA] font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-normal leading-normal",children:"Mint End"}),(0,ms.jsx)("span",{className:"text-[#CED4DA] text-right font-montserrat text-[12px] sm:text-[8.638px] 3xl:text-[10px] font-medium leading-normal",children:(null===k||void 0===k||null===(E=k.drops[0])||void 0===E||null===(_=E.phases[0])||void 0===_?void 0:_.end)&&(0,el.default)(zb(parseInt(null===k||void 0===k||null===(T=k.drops[0])||void 0===T||null===(S=T.phases[0])||void 0===S?void 0:S.end,10)),"yyyy-MM-dd HH:mm")})]})]})]})},L_=()=>(0,ms.jsx)("div",{className:"nftCard relative self-center justify-self-center flex flex-col p-[16px] rounded-lg nft-card-shadow cursor-pointer w-full h-full\n\t\t\t".concat("border-opacity-60 border-[0.8px] border-[#7c7c7c]"),children:(0,ms.jsx)("div",{className:"sm:hover:text-white sm:peer-hover:text-white w-full h-full",children:(0,ms.jsx)("div",{className:"flex sm:flex-col-reverse mb-2 sm:mb-1",children:(0,ms.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-1 w-full h-full",children:[(0,ms.jsx)("div",{className:"max-w-full w-full object-fill aspect-square hidden sm:flex cursor-wait my-[0.7rem] bg-gray-400 animate-pulse"}),(0,ms.jsx)("div",{className:"sm:hidden cursor-wait rounded bg-gray-400 flex justify-center items-center animate-pulse"}),(0,ms.jsxs)("div",{className:"flex flex-col sm:mb-2 pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"})]})]})})})});var B_=__webpack_require__(55503);const U_=e=>{var t;let{authStore:n}=e;const[r,i]=(0,sa.useState)(!0),[o,a]=(0,sa.useState)([]);null!==n&&void 0!==n&&null!==(t=n.loggedUser)&&void 0!==t&&t.loggedIn||window.location.replace("/");const s=e=>{const t=null===e||void 0===e?void 0:e.phases[0];return t?t.hasStarted||t.hasEnded?t.hasStarted&&!t.hasEnded?t.start||null!==t&&void 0!==t&&t.end?"ACTIVE":"NEVER_ENDING":"ENDED":"PENDING":"NO_PHASES"};(0,sa.useEffect)((()=>{(async()=>{const e=await(async()=>{try{var e,t;return await Tf.su.scripts.getAccountCollections(null!==(e=null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr)&&void 0!==e?e:"")}catch(r){ds.o.track("Error getting logged user account collections",r)}return{address:"",contracts:[]}})();if(null===e||void 0===e||!e.contracts.length||null===e||void 0===e||!e.address)return void i(!1);const t=((e,t)=>{const n=[];return null===t||void 0===t||t.contracts.forEach((r=>{const i=e.filter((e=>{var n,i;const[o,a,s]=e.nftType.split(".");return"0x".concat(a)===t.address&&s===(0,B_.h)(null!==(n=null===(i=r.collectionDisplay)||void 0===i?void 0:i.name)&&void 0!==n?n:"")}));n.push({...r,drops:i,status:s(null===i||void 0===i?void 0:i[0])})})),n})(await(async(e,t)=>{const n="A.".concat(t.substring(2),".").concat(null===e||void 0===e?void 0:e.name,".","NFT");return await Tf.su.getAllDropDetails({minter:t||void 0,nftResourceTypeIdentifier:n,paymentIdentifier:Tf.su.config.getIdentifier("FlowToken","Vault"),quantity:1})})(null===e||void 0===e?void 0:e.contracts[0],null===e||void 0===e?void 0:e.address),e);a(t),i(!1)})()}),[]);const l=(0,sa.useMemo)((()=>o.sort(((e,t)=>{const n={ACTIVE:1,ENDED:3,NEVER_ENDING:1,NO_PHASES:3,PENDING:2,SOLD_OUT:3},r=(n[e.status]||3)-(n[t.status]||3);var i,o,a,s;return 0===r?parseInt(null===(i=e.drops[0])||void 0===i||null===(o=i.phases[0])||void 0===o?void 0:o.start)-parseInt(null===(a=t.drops[0])||void 0===a||null===(s=a.phases[0])||void 0===s?void 0:s.start):r}))),[o,r]);return{getDropStatus:s,isLoading:r,sortedCollections:l}},V_=()=>(0,ms.jsxs)("div",{className:"flex flex-col gap-[18px] items-center",children:[(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"118",height:"106",viewBox:"0 0 118 106",fill:"none",children:(0,ms.jsxs)("g",{opacity:"0.7",children:[(0,ms.jsx)("path",{d:"M76.5 22.5L81.5 0H44C30.8 2.4 23.5 15.3333 21.5 21.5L0 105H26L35.5 67H53.5L58.5 43.5H41.5C46 27.5 47.5 22.5 50.5 22.5H76.5Z",fill:"white"}),(0,ms.jsx)("path",{d:"M60.5 95C60.5 101.075 55.5751 106 49.5 106C43.4249 106 38.5 101.075 38.5 95C38.5 88.9249 43.4249 84 49.5 84C55.5751 84 60.5 88.9249 60.5 95Z",fill:"#B3BBBE"}),(0,ms.jsx)("path",{d:"M89 95C89 101.075 84.0751 106 78 106C71.9249 106 67 101.075 67 95C67 88.9249 71.9249 84 78 84C84.0751 84 89 88.9249 89 95Z",fill:"#B3BBBE"}),(0,ms.jsx)("path",{d:"M117.5 95C117.5 101.075 112.575 106 106.5 106C100.425 106 95.5 101.075 95.5 95C95.5 88.9249 100.425 84 106.5 84C112.575 84 117.5 88.9249 117.5 95Z",fill:"#B3BBBE"})]})}),(0,ms.jsx)("div",{className:"text-[#B3B7BC] text-[14px] font-bold leading-normal",children:"NO COLLECTIONS FOUND"}),(0,ms.jsx)("div",{className:" w-[265px]",children:(0,ms.jsx)(Bs.M2,{onClick:()=>{window.location.replace("/create")},text:"Create New Collection",variant:"secondary",btnSize:"large",bgColor:"white"})})]}),H_=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const{isLoading:n,sortedCollections:r,getDropStatus:i}=U_({authStore:t}),o=(0,sa.useMemo)((()=>n?(0,ms.jsx)("div",{className:"flex gap-y-[12px] gap-x-[16px] 3xl:gap-x-[18px] flex-wrap",children:Array.from({length:10}).map(((e,t)=>(0,ms.jsx)("div",{className:"flex w-full sm:w-[271px] py-[16px] sm:py-[12px] px-[12px] sm:px-[14px] flex-col sm:items-start gap-[12px] rounded-[6.339px] border-[0.792px] border-neutral-300 bg-gradient-to-br from-[rgba(255,255,255,0.12)] to-[rgba(255,255,255,0.06)] backdrop-blur-[16.640px]",children:(0,ms.jsx)(L_,{})},t)))}):r.length?r.length>0?(0,ms.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-auto 2xl:grid-cols-5 3xl:grid-cols-7 gap-[12px] max-sm:justify-center",children:r.map(((e,t)=>{var n;const r=null===e||void 0===e?void 0:e.name.split(" ").join("");return(0,ms.jsx)(M_,{contract:e,collectionName:r,getDropStatus:i},"".concat(t," + ").concat(null===e||void 0===e||null===(n=e.collectionDisplay)||void 0===n?void 0:n.name))}))}):void 0:(0,ms.jsx)("div",{className:"flex justify-center items-center mt-16 lg:mt-24 2xl:mt-36",children:(0,ms.jsx)(V_,{})})),[n,r]);return(0,ms.jsx)("div",{className:"min-h-screen bg-cover bg-no-repeat bg-center bg-fixed mb-8",children:(0,ms.jsx)(fv,{children:(0,ms.jsx)("div",{className:"container",children:(0,ms.jsxs)("div",{className:"flex flex-col gap-[24px] mt-[12px]",children:[(0,ms.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,ms.jsx)("div",{className:"text-white font-montserrat text-[24px] font-black leading-[32px] tracking-[0.8px] ",children:"CREATOR HUB"}),r.length>0&&(0,ms.jsxs)(ms.Fragment,{children:[" ",(0,ms.jsx)("div",{className:" w-[265px] hidden sm:inline-block ",children:(0,ms.jsx)(Bs.M2,{onClick:()=>{window.location.replace("/create")},text:"Create New Collection",variant:"secondary",btnSize:"large",bgColor:"white"})}),(0,ms.jsx)("div",{className:"inline-block sm:hidden ",children:(0,ms.jsx)(Bs.M2,{onClick:()=>{window.location.replace("/create")},text:"Create",variant:"secondary",btnSize:"large",bgColor:"white"})})]})]}),o]})})})})}))),z_=async e=>{var t,n;const r=null!==(t=await(null===pl.j2||void 0===pl.j2||null===(n=pl.j2.currentUser)||void 0===n?void 0:n.getIdToken(!0)))&&void 0!==t?t:"",i=new FormData;i.append("file",e);return(await cs().post("".concat(ss.Sw,"/launch-pad/upload-image"),i,{headers:{Authorization:r,"Content-Type":"multipart/form-data"}})).data},W_=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r;let{authStore:i}=e;const o=(0,sa.useCallback)(((e,t)=>{ds.o.track(e,t)}),[]),a=(0,fb.s)(us.SupportedTokens.FLOW),s=Tf.su.tokens.getTokenIdentifier(us.SupportedTokens.FLOW),{flowtyStorefrontFee:l}=(0,Vy.useGetFlowtyStorefrontFee)({flowty:Tf.su,identifier:s});return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty NFT Activity: Loans, Rentals and Storefront. View the latest activity from our users",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)(Bs.t,{mixPanelFn:o,flowty:Tf.su,strapiUrl:ss.j$,logOutFn:sv,spotPrice:a,loggedUser:null!==(t=null===i||void 0===i||null===(n=i.loggedUser)||void 0===n?void 0:n.addr)&&void 0!==t?t:void 0,loggedIsDapper:(null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.isDapper)||!1,uploadIPFSImage:z_,flowtyMarketplaceFee:l})]})}))),q_=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const{search:n}=(0,js.zy)(),r=(0,sa.useMemo)((()=>new URLSearchParams(n)),[n]),i=(0,sa.useMemo)((()=>null===r||void 0===r?void 0:r.get("code")),[r]),[o,a]=(0,sa.useState)(!1),s=(0,sa.useMemo)((()=>{var e;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(0,ms.jsx)(ms.Fragment,{}):(0,ms.jsx)("div",{className:"flex flex-1 mt-4 flex-row items-center justify-center w-full",children:(0,ms.jsxs)("p",{className:"text-2xl",children:[" ","Please log-in to finish linking your Discord account."]})})}),[null===t||void 0===t?void 0:t.loggedUser]);return(0,sa.useEffect)((()=>{var e;null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr&&i&&(async e=>{const t=await(null===pl.j2||void 0===pl.j2||null===(e=pl.j2.currentUser)||void 0===e?void 0:e.getIdToken(!0));if(t){const e=new Headers;e.set("Authorization","".concat(t)),fetch("".concat(ss.Sw,"/discord?code=").concat(i),{headers:e}).then((()=>{a(!0)}))}})()}),[i,null===t||void 0===t?void 0:t.loggedUser]),i?o?(0,ms.jsx)(js.C5,{to:"/settings",replace:!0}):(0,ms.jsx)(fv,{children:s}):(0,ms.jsx)(js.C5,{to:"/",replace:!0})}))),G_=(0,ua.WQ)("rootStore","authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const{recentBigSaleData:n,topSalesData:r,isLoading:i}=(()=>{const[e,t]=(0,sa.useState)(!1),[n,r]=(0,sa.useState)(null),[i,o]=(0,sa.useState)(null),a="https://confident-crystal-513bf384d1.strapiapp.com";return(0,sa.useEffect)((()=>{const e=new AbortController,n=async()=>{try{const t=await fetch("".concat(a,"/api/top-sales-lists?populate=image"),{signal:e.signal});if(!t.ok)throw new Error("Network response was not ok");const n=(await t.json()).data.sort(((e,t)=>+t.attributes.salePrice-+e.attributes.salePrice));r(n)}catch(t){t instanceof Error?"AbortError"!==t.name&&console.error("Fetch error:",t.message):console.error("Unexpected error:",t)}},i=async()=>{try{const t=await fetch("".concat(a,"/api/recent-big-sale?populate=collectionImage,videoUrl,recent_big_sale_attributes.name,recent_big_sale_attributes.imgUrl"),{signal:e.signal});if(!t.ok)throw new Error("Network response was not ok");const n=await t.json();o(n.data)}catch(t){t instanceof Error?"AbortError"!==t.name&&console.error("Fetch error:",t.message):console.error("Unexpected error:",t)}};return(async()=>{t(!0),await Promise.all([n(),i()])})().then((()=>{setTimeout((()=>{t(!1)}),300)})),()=>{e.abort()}}),[a]),{isLoading:e,recentBigSaleData:i,topSalesData:n}})(),{data:o,isLoading:a}=(()=>{const[e,t]=(0,sa.useState)(!1),[n,r]=(0,sa.useState)(null);return(0,sa.useEffect)((()=>{t(!0),(async()=>{const e=await fetch("https://flipsidecrypto.xyz/api/v1/queries/26c51ee5-d7e5-425b-8c71-78ce69700ddc/data/latest"),n=await e.json();null!==n&&void 0!==n&&n[0]&&r(null===n||void 0===n?void 0:n[0]),t(!1)})()}),[]),{data:n,isLoading:e}})(),{tweetIds:s,isLoading:l}=(()=>{const[e,t]=(0,sa.useState)([]),[n,r]=(0,sa.useState)(!0),i="https://confident-crystal-513bf384d1.strapiapp.com";return(0,sa.useEffect)((()=>{const e=new AbortController,n=async()=>{try{const n=await fetch("".concat(i,"/api/embedded-tweets"),{signal:e.signal});if(!n.ok)throw new Error("Network response was not ok");const r=(await n.json()).data.map((e=>e.attributes.tweetId));t(r)}catch(n){n instanceof Error?"AbortError"!==n.name&&console.error("Fetch error:",n.message):console.error("Unexpected error:",n)}};return(async()=>{r(!0),await Promise.all([n()]),r(!1)})(),()=>{e.abort()}}),[i]),{isLoading:n,tweetIds:e}})(),c=(0,sa.useMemo)((()=>{var e;return!(null===t||void 0===t||null===(e=t.loggedUser)||void 0===e||!e.loggedIn)}),[null===t||void 0===t?void 0:t.loggedUser]);(0,sa.useEffect)((()=>{ds.o.track("Landing Page Visited")}),[]);return(0,ms.jsxs)(fv,{landingPage:!0,children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Built for Collectors, by Collectors | Secondary NFT Marketplace | NFT Rentals | NFT-Backed Loans",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)(Bs.LZ,{}),(0,ms.jsx)(Bs.fh,{isLoading:i,topSalesData:r,recentBigSaleData:n}),(0,ms.jsx)(Bs.cI,{topSalesData:o,isLoadingTopSalesData:a}),(0,ms.jsx)(Bs.yU,{connectWallet:()=>uv(),isUserLoggedIn:c}),(0,ms.jsx)(Bs.$4,{}),(0,ms.jsx)(Bs.i0,{tweetIds:s,isLoading:l}),(0,ms.jsx)(Bs.$z,{subscribeEmailToNotification:Ac,mixPanelFn:(e,t)=>{ds.o.track(e,t)}})]})}))),Y_=async(e,t)=>{const n=await pl.kA.collection(t).doc(e).get();return n.exists?n.data():null},K_=()=>{const e=(0,js.Zp)(),{pathname:t}=(0,js.zy)();return(0,sa.useEffect)((()=>{const[n,r,i]=t.split("/"),o=(e=>{switch(e){case"listing":return"listingAvailable";case"rentals":return"rentalAvailable";case"storefront":return"storefrontListingAvailable";default:(0,us.assertNever)(e)}})(r);(0,fs.t)("ListingRedirect",{collection:o,listingType:r,resourceID:i}),(async(t,n)=>{var r,i;let o=null;for(;!o;)o=await Y_(n,t),o||await fc(5e3);const a=(0,us.nftTypeAndIdToLocationData)((null===(r=o)||void 0===r?void 0:r.nftType)||"",(null===(i=o)||void 0===i?void 0:i.nftID)||""),s="/asset/".concat(a.contract.address,"/").concat(a.contract.name,"/").concat(a.resourceName,"/").concat(a.nftID);e(s)})(o,i)}),[]),(0,ms.jsx)("div",{className:"upload-btn-wrapper flex items-center justify-center bg-greyDark",children:(0,ms.jsx)(bc.BM,{color:"#04E5A3",height:210,width:210})})},Q_=e=>{let{blockTimestamp:t,onCountdownEnd:n,text:r,className:i}=e;const o=r?void 0:e=>{let{minutes:t,seconds:n}=e;return(0,ms.jsxs)("span",{className:"text-white text-bold",children:[Fb(t),":",Fb(n)]})};return Dl(t)?null:(0,ms.jsx)("div",{className:"absolute top-0 left-0 flex justify-center w-full",children:(0,ms.jsxs)("div",{className:"flex justify-center text-center items-center py-1 bg-blue-500 bg-opacity-90 rounded-t-xl ".concat(i),children:[(0,ms.jsx)("p",{className:"text-white text-bold me-2",children:r||"Active in"}),(0,ms.jsx)(jb,{className:"text-white text-bold",renderer:o,date:kl(t),onComplete:n})]})})},X_=e=>{var t,n,r,i,o,a,s,l,c,u;let{listing:d}=e;const p="Flowty loan listing ".concat(null!==(t=null===d||void 0===d||null===(n=d.detail)||void 0===n||null===(r=n.nft)||void 0===r?void 0:r.title)&&void 0!==t?t:""),h="View this ".concat(null!==(i=null===d||void 0===d||null===(o=d.detail)||void 0===o||null===(a=o.nft)||void 0===a?void 0:a.title)&&void 0!==i?i:""," loan listing and many others on flowty.io"),f=null!==d&&void 0!==d&&null!==(s=d.detail)&&void 0!==s&&null!==(l=s.nft)&&void 0!==l&&l.media&&(null===d||void 0===d||null===(c=d.detail)||void 0===c?void 0:c.nft.media.length)>0?null===d||void 0===d||null===(u=d.detail)||void 0===u?void 0:u.nft.media[0].uri:"";return(0,ms.jsxs)(as,{children:[(0,ms.jsx)("meta",{name:"description",content:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals."}),(0,ms.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,ms.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,ms.jsx)("meta",{name:"twitter:site",content:"@flowty"}),(0,ms.jsx)("meta",{name:"twitter:title",content:p}),(0,ms.jsx)("meta",{name:"twitter:description",content:h}),(0,ms.jsx)("meta",{name:"twitter:image",content:f}),(0,ms.jsx)("meta",{name:"description",content:h}),(0,ms.jsx)("meta",{property:"og:title",content:p}),(0,ms.jsx)("meta",{property:"og:description",content:h}),(0,ms.jsx)("meta",{property:"og:image",content:f}),(0,ms.jsx)("title",{children:p})]})};var Z_;function J_(){return J_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J_.apply(null,arguments)}function $_(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",J_({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,Z_||(Z_=sa.createElement("path",{d:"M14.0003 0.666504C11.3632 0.666504 8.78538 1.44849 6.59273 2.91358C4.40007 4.37866 2.69111 6.46104 1.68194 8.89739C0.672769 11.3337 0.408725 14.0146 0.923194 16.601C1.43766 19.1875 2.70754 21.5632 4.57224 23.4279C6.43694 25.2926 8.81271 26.5625 11.3991 27.077C13.9855 27.5914 16.6664 27.3274 19.1028 26.3182C21.5391 25.3091 23.6215 23.6001 25.0866 21.4074C26.5517 19.2148 27.3337 16.6369 27.3337 13.9998C27.3297 10.4648 25.9237 7.07572 23.4241 4.57609C20.9244 2.07646 17.5353 0.670435 14.0003 0.666504ZM14.0003 24.6665C11.8907 24.6665 9.82837 24.0409 8.07425 22.8688C6.32012 21.6968 4.95295 20.0309 4.14562 18.0818C3.33828 16.1327 3.12705 13.988 3.53862 11.9189C3.9502 9.84974 4.9661 7.94912 6.45786 6.45736C7.94962 4.9656 9.85024 3.9497 11.9194 3.53813C13.9885 3.12655 16.1332 3.33779 18.0823 4.14512C20.0314 4.95246 21.6973 6.31963 22.8693 8.07375C24.0414 9.82788 24.667 11.8902 24.667 13.9998C24.6638 16.8278 23.5389 19.539 21.5392 21.5387C19.5395 23.5384 16.8283 24.6633 14.0003 24.6665ZM14.0003 13.3332C13.6467 13.3332 13.3076 13.4736 13.0575 13.7237C12.8075 13.9737 12.667 14.3129 12.667 14.6665V18.6665C12.667 19.0201 12.8075 19.3593 13.0575 19.6093C13.3076 19.8594 13.6467 19.9998 14.0003 19.9998C14.354 19.9998 14.6931 19.8594 14.9431 19.6093C15.1932 19.3593 15.3337 19.0201 15.3337 18.6665V14.6665C15.3337 14.3129 15.1932 13.9737 14.9431 13.7237C14.6931 13.4736 14.354 13.3332 14.0003 13.3332ZM14.0003 7.99984C13.6707 7.99984 13.3485 8.09758 13.0744 8.28072C12.8003 8.46386 12.5867 8.72415 12.4605 9.0287C12.3344 9.33324 12.3014 9.66835 12.3657 9.99165C12.43 10.315 12.5887 10.6119 12.8218 10.845C13.0549 11.0781 13.3519 11.2368 13.6752 11.3011C13.9985 11.3655 14.3336 11.3324 14.6381 11.2063C14.9427 11.0802 15.203 10.8665 15.3861 10.5925C15.5693 10.3184 15.667 9.99614 15.667 9.6665C15.667 9.22448 15.4914 8.80055 15.1788 8.48799C14.8663 8.17543 14.4424 7.99984 14.0003 7.99984Z",fill:"#F3F5F9"})))}const eT=sa.forwardRef($_);__webpack_require__.p;var tT;function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nT.apply(null,arguments)}function rT(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",nT({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,tT||(tT=sa.createElement("path",{d:"M9.00033 3.99996C8.89089 3.99993 8.78251 4.02147 8.68139 4.06334C8.58028 4.1052 8.4884 4.16659 8.41101 4.24397C8.33362 4.32136 8.27224 4.41324 8.23037 4.51436C8.1885 4.61547 8.16697 4.72385 8.167 4.83329V8.48645L6.14145 9.50573C6.04371 9.55489 5.95662 9.62282 5.88514 9.70564C5.81366 9.78846 5.75919 9.88455 5.72484 9.98842C5.6905 10.0923 5.67694 10.2019 5.68496 10.311C5.69298 10.4201 5.72241 10.5266 5.77157 10.6243C5.82073 10.722 5.88865 10.8091 5.97147 10.8806C6.05429 10.9521 6.15038 11.0066 6.25425 11.0409C6.35812 11.0753 6.46773 11.0888 6.57684 11.0808C6.68595 11.0728 6.7924 11.0433 6.89014 10.9942L9.37468 9.74418C9.51269 9.67492 9.62872 9.56863 9.70978 9.4372C9.79083 9.30577 9.83373 9.15438 9.83366 8.99996V4.83329C9.83369 4.72385 9.81216 4.61547 9.77029 4.51436C9.72842 4.41324 9.66704 4.32136 9.58965 4.24397C9.51226 4.16659 9.42038 4.1052 9.31927 4.06334C9.21815 4.02147 9.10977 3.99993 9.00033 3.99996ZM9.00033 0.666626C7.35215 0.666626 5.74099 1.15537 4.37058 2.07105C3.00017 2.98672 1.93206 4.28821 1.30133 5.81093C0.670603 7.33365 0.505575 9.0092 0.827119 10.6257C1.14866 12.2422 1.94234 13.7271 3.10777 14.8925C4.27321 16.058 5.75807 16.8516 7.37458 17.1732C8.99109 17.4947 10.6666 17.3297 12.1894 16.699C13.7121 16.0682 15.0136 15.0001 15.9292 13.6297C16.8449 12.2593 17.3337 10.6481 17.3337 8.99996C17.3311 6.7906 16.4523 4.67245 14.8901 3.11019C13.3278 1.54794 11.2097 0.669154 9.00033 0.666626ZM9.00033 15.6666C7.68179 15.6666 6.39286 15.2756 5.29653 14.5431C4.2002 13.8105 3.34572 12.7694 2.84113 11.5512C2.33655 10.333 2.20453 8.99256 2.46176 7.69936C2.719 6.40615 3.35393 5.21826 4.28628 4.28591C5.21863 3.35356 6.40652 2.71863 7.69973 2.46139C8.99293 2.20416 10.3334 2.33618 11.5516 2.84076C12.7697 3.34535 13.8109 4.19983 14.5435 5.29616C15.276 6.39249 15.667 7.68142 15.667 8.99996C15.665 10.7674 14.9619 12.462 13.7121 13.7118C12.4623 14.9616 10.7678 15.6646 9.00033 15.6666Z",fill:"#9DA1A8"})))}const iT=sa.forwardRef(rT);__webpack_require__.p;var oT=__webpack_require__(76081);const aT={danger:"bg-[#dc3545] text-white",dark:"bg-[#212529] text-white",info:"bg-[#0dcaf0]  text-white",light:"bg-[#f8f9fa] text-black",primary:"bg-[#0d6efd] text-white",secondary:"bg-[#6c757d] text-white",success:"bg-[#198754] text-white",warning:"bg-[#ffc107] text-black"},sT=e=>{let{variant:t="primary",children:n,onClose:r,className:i}=e;return(0,ms.jsxs)("div",{className:cy("p-4 rounded-lg ".concat(aT[t]),i),children:[n,r&&(0,ms.jsx)("button",{onClick:r,className:"absolute top-2 right-2 text-xl leading-none hover:text-black",children:"\xd7"})]})},lT=e=>{let{xs:t,sm:n,md:r,lg:i,xl:o,children:a,className:s}=e;const l=t||n||r||i||o?"":"flex-grow",c=[t?"w-".concat(t,"/12"):"",n?"sm:w-".concat(n,"/12"):"",r?"md:w-".concat(r,"/12"):"",i?"lg:w-".concat(i,"/12"):"",o?"xl:w-".concat(o,"/12"):"",l].join(" ");return(0,ms.jsx)("div",{className:cy(c,s),children:a})},cT=e=>{let{children:t,className:n}=e;return(0,ms.jsx)("div",{className:cy("flex flex-wrap",n),children:t})};var uT=__webpack_require__(92040);const dT=e=>{let{showTooltip:t,tooltipText:n,children:r}=e;return t?(0,ms.jsx)(uT.o,{Comp:r,tooltipText:n,tooltipId:"conditional-tooltip"}):r},pT=e=>{let{className:t,listing:n,isOwner:r,isOrderListedByLoggedAccount:i}=e;const o=(0,us.nftTypeAndIdToLocationData)(n.nftType,n.nftID),{openSearchNFT:a}=fw({collectionAddress:o.contract.address,collectionName:o.contract.name,nftId:o.nftID,resourceName:o.resourceName}),{selectCard:s}=wb(),l=(0,sa.useCallback)((e=>{var t,n,r,i;let{singleListing:o}=e;s({selected:{contractAddress:null!==(t=null===a||void 0===a?void 0:a.contractAddress)&&void 0!==t?t:"",contractName:null!==(n=null===a||void 0===a?void 0:a.contractName)&&void 0!==n?n:"",nftID:null!==(r=null===a||void 0===a?void 0:a.id)&&void 0!==r?r:"",nftType:null!==(i=null===a||void 0===a?void 0:a.type)&&void 0!==i?i:""},singleDelistAction:"delistLoan",singleDelistOrder:o})}),[s,a,n]);return(0,ms.jsx)("div",{className:"".concat(t),children:(0,ms.jsx)("button",{disabled:!i,className:"".concat(r?"bg-danger hover-button-red":"bg-primary hover-button","  ").concat(!i&&r?"opacity-50 cursor-not-allowed":"hover-glow  hover-button-red"," shadow text-black text-bold text-lg py-2 px-10 w-full rounded-md hover-button cursor-pointer"),onClick:()=>l({singleListing:n}),children:"DELIST"})})};const hT=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));var fT,mT,gT=__webpack_require__(85221);function vT(){return vT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vT.apply(null,arguments)}function yT(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",vT({width:53,height:49,viewBox:"0 0 53 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,fT||(fT=sa.createElement("path",{d:"M51.9115 37.5622L32.674 4.31224C30.774 0.98724 26.2615 -0.200259 22.9365 1.69974C21.749 2.41224 20.799 3.36224 20.324 4.31224L1.08646 37.5622C-0.813541 40.8872 0.373959 45.3997 3.69896 47.2997C4.88646 48.0122 6.07396 48.2497 7.26146 48.2497H45.499C49.5365 48.2497 52.624 44.9247 52.624 41.1247C52.8615 39.6997 52.3865 38.5122 51.9115 37.5622ZM26.499 38.7497C25.074 38.7497 24.124 37.7997 24.124 36.3747C24.124 34.9497 25.074 33.9997 26.499 33.9997C27.924 33.9997 28.874 34.9497 28.874 36.3747C28.874 37.7997 27.924 38.7497 26.499 38.7497ZM28.874 26.8747C28.874 28.2997 27.924 29.2497 26.499 29.2497C25.074 29.2497 24.124 28.2997 24.124 26.8747V17.3747C24.124 15.9497 25.074 14.9997 26.499 14.9997C27.924 14.9997 28.874 15.9497 28.874 17.3747V26.8747Z",fill:"#444C5B"})),mT||(mT=sa.createElement("path",{d:"M51.9115 37.5622L32.674 4.31224C30.774 0.98724 26.2615 -0.200259 22.9365 1.69974C21.749 2.41224 20.799 3.36224 20.324 4.31224L1.08646 37.5622C-0.813541 40.8872 0.373959 45.3997 3.69896 47.2997C4.88646 48.0122 6.07396 48.2497 7.26146 48.2497H45.499C49.5365 48.2497 52.624 44.9247 52.624 41.1247C52.8615 39.6997 52.3865 38.5122 51.9115 37.5622ZM26.499 38.7497C25.074 38.7497 24.124 37.7997 24.124 36.3747C24.124 34.9497 25.074 33.9997 26.499 33.9997C27.924 33.9997 28.874 34.9497 28.874 36.3747C28.874 37.7997 27.924 38.7497 26.499 38.7497ZM28.874 26.8747C28.874 28.2997 27.924 29.2497 26.499 29.2497C25.074 29.2497 24.124 28.2997 24.124 26.8747V17.3747C24.124 15.9497 25.074 14.9997 26.499 14.9997C27.924 14.9997 28.874 15.9497 28.874 17.3747V26.8747Z",fill:"white",fillOpacity:.15})))}const bT=sa.forwardRef(yT),wT=(__webpack_require__.p,e=>{let{errorMsg:t,onTryAgainClick:n}=e;return(0,ms.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,ms.jsx)(bT,{}),(0,ms.jsx)("h5",{className:"mt-4 text-white",children:"Transaction was not successful"}),(0,ms.jsx)("p",{className:"text-lightText text-center px-4",children:t}),(0,ms.jsx)("div",{className:" flex justify-between mt-5",children:(0,ms.jsx)(Bs.M2,{variant:"primary",onClick:n,text:"Try again"})})]})});function xT(e){const t=e.toLowerCase();return t.includes("dapper")?"Dapper":t.includes("blocto")?"Blocto":t.includes("lilico")||/flow.*reference/i.test(t)?"Flow Reference Wallet":""}const CT=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i;let{authStore:o}=e;const a=(null===o||void 0===o||null===(t=o.loggedUser)||void 0===t?void 0:t.services[0].uid)||"",{disableActions:s}=Os(),l=(0,sa.useMemo)((()=>{var e;return Object.values((null===o||void 0===o||null===(e=o.loggedUser)||void 0===e?void 0:e.accountSummaries)||{}).length>1}),[null===o||void 0===o||null===(n=o.loggedUser)||void 0===n?void 0:n.accountSummaries]);return(0,ms.jsx)(ms.Fragment,{children:null!==o&&void 0!==o&&null!==(r=o.loggedUser)&&void 0!==r&&r.loggedIn&&l?(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row items-center py-3 justify-center w-full",children:[(0,ms.jsx)("span",{className:"pl-[1rem] pr-4 text-base font-normal text-nowrap",children:"Connected Account:"}),(0,ms.jsxs)("span",{className:"flex items-center bg-[#ffffff1a] rounded-md px-[1.25rem] py-2",children:[(0,ms.jsx)("img",{src:(0,us.getProviderImage)(a),alt:"Wallet Icon",className:"h-6 w-6 rounded-full"}),(0,ms.jsxs)("span",{className:"ml-3 text-base font-semibold text-nowrap",children:[xT(a)," Account"]}),(0,ms.jsx)(Bs.Bo,{text:"main",type:"primary"})]})]}):s||null!==o&&void 0!==o&&null!==(i=o.loggedUser)&&void 0!==i&&i.loggedIn?null:(0,ms.jsx)("div",{className:"flex flex-col md:flex-row items-center py-3 justify-center w-full",children:(0,ms.jsx)("button",{className:"text-base px-[1.25rem] py-2 bg-primary rounded-lg shadow-lg w-3/4 text-darkBg uppercase hover-button transform duration-300 ease-in-out",onClick:()=>uv(),children:(0,ms.jsx)("b",{children:null!==o&&void 0!==o&&o.loadingUser?(0,ms.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading",children:(0,ms.jsx)("span",{className:"sr-only",children:"Loading..."})}):(0,ms.jsx)("span",{className:"font-black text-base font-montserrat-bold",children:"Sign in"})})})})})}))),AT=e=>{let{size:t=4,borderThickness:n=4,children:r}=e;return(0,ms.jsxs)("div",{children:[(0,ms.jsx)("div",{className:"animate-spin inline-block w-".concat(t," h-").concat(t," border-").concat(n," border-current border-t-transparent rounded-full"),"aria-label":"loading"}),r]})},ET=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{onFundClick:t,funding:n,userSelectedWallet:r,loading:i}=e;const o="paymentTokenType"in n.listingAvailable?(0,us.getTokenFromType)(n.listingAvailable.paymentTokenType):us.SupportedTokens.FLOW,a=!n.repaymentAmount||((e,t)=>{var n,r;return((null===t||void 0===t||null===(n=t.tokens)||void 0===n||null===(r=n[e.listingAvailable.paymentTokenType])||void 0===r?void 0:r.balance)||0)>=Number(null===e||void 0===e?void 0:e.repaymentAmount)})(n,r);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"flex flex-col justify-center items-center",children:(0,ms.jsx)(cT,{className:"w-full",children:(0,ms.jsx)(lT,{children:(0,ms.jsx)("table",{className:"table-borderless mt-6 px-[1.25rem]",children:(0,ms.jsx)("tbody",{children:(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{className:"text-base text-start",children:(0,ms.jsx)("p",{children:"Repayment Amount:"})}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsx)("div",{className:"flex flex-col-reverse md:flex-row-reverse",children:(0,ms.jsx)(Fl.se,{amount:Number(n.repaymentAmount||0),isSmall:!0,largeText:!0,token:o})})})]})})})})})}),!a&&(0,ms.jsx)("div",{className:"px-3",children:(0,ms.jsx)(sT,{variant:"danger",className:"mt-3 mb-1",children:(0,ms.jsx)("div",{className:"flex justify-between items-center",children:(0,ms.jsxs)("p",{className:"text-red",children:["Insufficient ",o," to repay this loan"]})})})}),(0,ms.jsxs)("div",{className:"flex flex-col items-center justify-center w-full px-4 py-3 lg:flex-row border-modal",children:[(0,ms.jsx)(CT,{}),(0,ms.jsx)("div",{className:"flex flex-col items-center",children:(0,ms.jsx)("div",{className:"flex items-center justify-center w-full lg:justify-end",children:(0,ms.jsx)("button",{onClick:t,disabled:!a||i,className:"w-[10em] md:w-[12em] flex justify-center items-center border border-white rounded-md font-extrabold text-base shadow-slate-100 hover-button-white px-[1.25rem] py-2 ".concat((!a||i)&&"bg-gray-600 text-gray-400"),children:i?(0,ms.jsx)(AT,{}):"Repay"})})})]})]})})));var _T;function TT(){return TT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TT.apply(null,arguments)}function ST(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",TT({width:49,height:49,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,_T||(_T=sa.createElement("path",{d:"M24.5 0.75C11.4375 0.75 0.75 11.4375 0.75 24.5C0.75 37.5625 11.4375 48.25 24.5 48.25C37.5625 48.25 48.25 37.5625 48.25 24.5C48.25 11.4375 37.5625 0.75 24.5 0.75ZM34.475 20.4625L23.075 31.8625C22.125 32.8125 20.7 32.8125 19.75 31.8625L14.525 26.6375C13.575 25.6875 13.575 24.2625 14.525 23.3125C15.475 22.3625 16.9 22.3625 17.85 23.3125L21.4125 26.875L31.15 17.1375C32.1 16.1875 33.525 16.1875 34.475 17.1375C35.425 18.0875 35.425 19.5125 34.475 20.4625Z",fill:"#04E5A3"})))}const kT=sa.forwardRef(ST),PT=(__webpack_require__.p,e=>{let{msg:t}=e;return(0,ms.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,ms.jsx)(kT,{}),(0,ms.jsx)("h5",{className:"text-white",children:"All set!"}),(0,ms.jsx)("p",{className:"text-lightText text-center px-4",children:t})]})}),DT=e=>{var t;let{className:n,funding:r,authStore:i}=e;const[o,a]=(0,sa.useState)(!1),[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(0),[d,p]=(0,sa.useState)(iw(null===i||void 0===i?void 0:i.loggedUser)),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(null),[v,y]=(0,sa.useState)(!1),b="paymentTokenType"in r.listingAvailable?(0,us.getTokenFromType)(r.listingAvailable.paymentTokenType):us.SupportedTokens.FLOW;let w="";(0,sa.useEffect)((()=>{var e,t;const n=(null===d||void 0===d||null===(e=d.tokens)||void 0===e?void 0:e[r.listingAvailable.paymentTokenType].providerPaths)||[];d.address!==(null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.addr)&&(w=(0,gb.z)(n))}),[d]);const x=()=>{a(!1),f(null),g(null),ds.o.track("Repay Modal Closed",{funding:r,step:c}),window.location.reload(),y(!1)},C=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(!0),g(null),f(null),y(!1);const t=Tf.su.tokens.getTokenInfo(b);try{await Tf.su.repayLoan({address:"0x5c57f79c6694797f",ftPrivatePathIdentifier:w,ftProviderAddress:d.address,fundItemID:r.fundingResourceID||0,token:t,txAvailableCallback:f}),await ds.o.track("Repayment Submit Successfully",{funding:r}),y(!0)}catch(n){(e=>{e&&e.includes(Sf)||g(e)})("".concat(n)),ds.o.track("Repayment Submit Error",{err:n,funding:r})}l(!1),u(e?c:c+2)};return(0,ms.jsxs)("div",{className:"".concat(n),children:[(0,ms.jsx)("button",{className:"w-[10em] md:w-[12em]  flex justify-center items-center uppercase  px-[1.25rem] py-2 bg-primary hover-button border-transparent rounded-md border-2 text-base font-extrabold text-black",onClick:()=>{a(!0),ds.o.track("Repay Modal Opened",{funding:r})},children:"Repay"}),(0,ms.jsx)(cc.e.Root,{show:o,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:"relative z-20",onClose:x,children:[(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,ms.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,ms.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,ms.jsxs)(uc.l.Panel,{className:"relative transform overflow-hidden rounded-lg text-left Max-w-full md:max-w-4xl shadow-xl transition-all sm:my-8 sm:w-full flowty-modal loan-listing-modal bg-black",children:[(0,ms.jsxs)(uc.l.Title,{as:"div",className:"border-b border-modal px-4 py-4 w-full flex justify-between items-center",children:[(0,ms.jsxs)("div",{children:[(0,ms.jsx)("span",{className:"text-white text-2xl leading-6 font-extrabold px-1",children:"Confirm"}),(0,ms.jsx)("span",{className:"text-primary text-2xl leading-6 font-extrabold px-1",children:"Repayment"})]}),(0,ms.jsx)(hT,{onClick:x,className:"h-8 w-8 cursor-pointer hover:fill-gray-400"})]}),!v&&Object.values((null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.accountSummaries)||{}).length>1&&(0,ms.jsx)("div",{className:"px-3 pt-4",children:(0,ms.jsx)(gT.dK,{label:"Pay With",disabledMessage:gT.b0.payWith,selected:d,setSelected:e=>p(e),selectorFilter:new gT.tm({tokenName:r.listingAvailable.paymentTokenName})})}),(0,ms.jsx)(ms.Fragment,{children:s?(0,ms.jsx)("div",{className:"my-2 py-4",children:(0,ms.jsxs)("div",{className:"w-full flex flex-col justify-center items-center h-full",children:[h?(0,ms.jsxs)("p",{className:"h-12",children:["Follow your transaction on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(ss.I4,"/").concat(h),target:"_blank",rel:"noreferrer",children:"Flowscan"})]}):(0,ms.jsx)("div",{className:"h-12"}),(0,ms.jsx)("span",{className:"text-lg font-montserrat-bold font-bold",children:"Processing..."}),(0,ms.jsx)(bc.BM,{height:150,width:150})]})}):m?(0,ms.jsx)("div",{className:"my-2 py-4",children:(0,ms.jsx)(wT,{errorMsg:Nf(m),onTryAgainClick:()=>C(!0)})}):v&&(0,ms.jsx)("div",{className:"my-2 py-4",children:(0,ms.jsx)(PT,{msg:"Loan was successfully repaid!"})})}),!v&&(0,ms.jsx)(ET,{funding:r,onFundClick:()=>C(),userSelectedWallet:d,loading:s})]})})})})]})})]})},FT=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o;let{authStore:a,listing:s,funding:l,isListingActive:c,isListingExpired:u}=e;const d=(0,us.nftTypeAndIdToLocationData)(s.nftType,s.nftID),{selectCard:p}=wb(),{openSearchNFT:h}=fw({collectionAddress:d.contract.address,collectionName:d.contract.name,nftId:d.nftID,resourceName:d.resourceName}),{listingResourceId:f}=(0,js.g)(),m=null===h||void 0===h||null===(t=h.orders)||void 0===t?void 0:t.find((e=>e.listingResourceID===f)),g="paymentTokenType"in s?(0,us.getTokenFromType)(s.paymentTokenType):us.SupportedTokens.FLOW,v=null===a||void 0===a||null===(n=a.loggedUser)||void 0===n?void 0:n.addr,[y,b]=(0,sa.useState)(null),w=(0,us.getContractNameFromType)(s.nftType),x=(0,us.isContractWithValuation)(w)?(0,ms.jsx)(ic,{contractName:w,nftID:s.nftID.toString(),labelType:"LTV"}):void 0;(0,sa.useEffect)((()=>{g===us.SupportedTokens.FLOW?(0,oT.d)(g).then((e=>{(0,fs.t)("setTokenPrice",e.value),b(e.value)})):b(1)}),[g]);const C=(0,us.solveWithAmountAndInterest)({amount:Number(s.amount||0),interest:Number(s.interestRate||0),term:Number(s.term||0)},s.royaltyRate||0),A=(0,us.calcAPRInterest)(C?C.periodicInterest:0,C?C.term:0),E=null!==(r=null===s||void 0===s||null===(i=s.detail)||void 0===i||null===(o=i.nft)||void 0===o?void 0:o.title)&&void 0!==r?r:"",_=(0,us.truncateString)(E,ss.Sp);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"nft-info-card bg-greyDark w-full",children:[(0,ms.jsxs)(cT,{className:"nft-info-row flex",children:[(0,ms.jsx)(lT,{children:(0,ms.jsx)(dT,{showTooltip:E!==_,tooltipText:E,children:(0,ms.jsx)("h1",{className:"inline",children:_})})}),(0,ms.jsx)(lT,{className:"pt-1",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[g===us.SupportedTokens.FLOW&&y&&(0,ms.jsxs)("p",{children:["(USD $",C&&Tl()(((null===C||void 0===C?void 0:C.marketplaceAmount)||0)*y).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null===C||void 0===C?void 0:C.marketplaceAmount)||0,token:g})]})})]}),(0,ms.jsx)("div",{className:"nft-info-separator bg-secondary"}),(0,ms.jsx)("table",{className:"table-borderless",children:(0,ms.jsxs)("tbody",{children:[(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Repayment"}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[g===us.SupportedTokens.FLOW&&y&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===C||void 0===C?void 0:C.totalRepayment)||0)*y).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null===C||void 0===C?void 0:C.totalRepayment)||0,isSmall:!0,token:g})]})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Loan Rate"}),(0,ms.jsxs)("td",{className:"flex justify-end",children:[C&&(100*C.periodicInterest).toFixed(2),"%"]})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"APR"}),(0,ms.jsxs)("td",{className:"flex justify-end",children:[Tl()(A).format("0,0.00"),"%"]})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsxs)("td",{children:[(0,ms.jsx)(iT,{className:"inline"}),(0,ms.jsx)("p",{className:"pt-1 inline ms-1",children:"Duration"})]}),(0,ms.jsx)("td",{className:"flex justify-end",children:C&&Sl(C.term)})]}),s.valuations&&(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:x}),(0,ms.jsxs)("td",{className:"flex justify-end",children:[Math.round(100*s.valuations.aggregate.loanToValueRatio),"%"]})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Auto Repayment"}),(0,ms.jsx)("td",{className:"flex justify-end",children:s.enabledAutoRepayment?(0,ms.jsx)("input",{disabled:!0,checked:s.enabledAutoRepayment,type:"checkbox",className:"w-4 h-4 border-gray-300 rounded cursor-not-allowed focus:ring-primary text-primary accent-pink-500"}):(0,ms.jsx)("span",{className:"px-1 font-extrabold text-red-600 bg-gray-400 rounded-sm",children:"X"})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Listed By"}),(0,ms.jsx)("td",{className:"flex justify-end",children:(0,ms.jsx)(ca.N_,{to:HD(s.flowtyStorefrontAddress),children:s.flowtyStorefrontAddress===v?"You":s.flowtyStorefrontAddress})})]}),(null===l||void 0===l?void 0:l.lender)&&(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Lender"}),(0,ms.jsx)("td",{className:"flex justify-end",children:(0,ms.jsx)(ca.N_,{to:HD(l.lender),children:l.lender===v?"You":l.lender})})]}),s.flowtyStorefrontAddress===v&&s.state!==us.ListingStatus.Expired&&(0,ms.jsx)("tr",{children:(0,ms.jsx)("div",{className:"flex flex-col gap-4",children:(0,ms.jsx)("td",{children:(0,ms.jsxs)("table",{children:[(0,ms.jsx)("tr",{children:(0,ms.jsx)("td",{children:(0,ms.jsx)("u",{children:"Borrower Information:"})})}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Borrowed Amount:"}),(0,ms.jsx)("td",{children:(0,ms.jsx)(Fl.se,{amount:(null===C||void 0===C?void 0:C.amount)||0,isSmall:!0,token:g})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Repayment Amount:"}),(0,ms.jsx)("td",{children:(0,ms.jsx)(Fl.se,{amount:(null===C||void 0===C?void 0:C.repaymentDue)||0,isSmall:!0,token:g})})]})]})})})})]})}),(0,ms.jsx)("div",{className:"justify-end",children:!u&&(null===s||void 0===s?void 0:s.state)!==us.ListingStatus.Delisted&&(null===s||void 0===s?void 0:s.state)!==us.ListingStatus.Repaid&&(()=>{var e;const t=(null!==(e=null===a||void 0===a?void 0:a.getAccountSummaryAddresses())&&void 0!==e?e:[]).includes(s.flowtyStorefrontAddress),n=s.flowtyStorefrontAddress===v;return c?((e,t)=>s.state===us.ListingStatus.Funded&&l?e?(0,ms.jsx)(DT,{className:"flex m-auto justify-end w-fit",funding:l,authStore:a}):void 0:s.state!==us.ListingStatus.Expired&&t?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(pT,{className:"flex m-auto justify-end w-fit",listing:s,isOrderListedByLoggedAccount:e,isOwner:t}),!e&&t&&"LISTED"===s.state&&(0,ms.jsxs)("div",{className:"py-2 text-sm font-normal text-center text-orange-500",children:["NFT was listed while connected with"," ".concat(null===s||void 0===s?void 0:s.flowtyStorefrontAddress)," as Main. Please sign in with "," ".concat(null===s||void 0===s?void 0:s.flowtyStorefrontAddress)," to delist."]})]}):(0,ms.jsx)("div",{className:"flex m-auto justify-end w-fit",children:(0,ms.jsx)(Bs.M2,{text:"FUND",onClick:()=>{var e,t,n,r;return p({selected:{contractAddress:null!==(e=null===h||void 0===h?void 0:h.contractAddress)&&void 0!==e?e:"",contractName:null!==(t=null===h||void 0===h?void 0:h.contractName)&&void 0!==t?t:"",nftID:null!==(n=null===h||void 0===h?void 0:h.id)&&void 0!==n?n:"",nftType:null!==(r=null===h||void 0===h?void 0:h.type)&&void 0!==r?r:""},selectedSinglePurchase:m})},variant:"secondary",btnSize:"small"})}))(n,t):n?(0,ms.jsx)(pT,{className:"mt-3 text-center",listing:s,isOrderListedByLoggedAccount:n,isOwner:t}):null})()})]}),!u&&(null===s||void 0===s?void 0:s.state)===us.ListingStatus.Listed&&(0,ms.jsx)(sT,{variant:"dark",className:"mt-2",children:(0,ms.jsxs)("div",{className:"flex items-center",children:[(0,ms.jsx)(eT,{className:"mt-1 text-xl me-3"}),(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)("h5",{className:"text-xl text-white",children:"Please Note"}),(0,ms.jsx)("p",{className:"mt-2 text-lightText",children:"There is no guarantee that you will receive the Repayment amount. If the Borrower does not repay (defaults), you will receive the collateral in lieu of a repayment."})]})]})})]})}))),NT=(e,t)=>{var n;const r=null!==(n=null===e||void 0===e?void 0:e.metadata)&&void 0!==n?n:{};let i={};if(t.includes("TopShot")){var o,a,s,l,c;const e=(0,us.flowSeriesToTopShotSeries)(null!==(o=r.TopShotSeries)&&void 0!==o?o:r.SeriesNumber),t=null!==(a=null!==(s=r.Serial)&&void 0!==s?s:r.SerialNumber)&&void 0!==a?a:r.editionNumber,n=null!==(l=r.Supply)&&void 0!==l?l:r.editionMax;i.Name=r.FullName,i.Set=null!==(c=r.Set)&&void 0!==c?c:r.SetName,i.Tier=(null===r||void 0===r?void 0:r.Tier)||"Unknown",i.Series=Number.isNaN(+e)?e:"Series ".concat(e),i.Serial="".concat(t," / ").concat(n),i.Team=r.TeamAtMoment,i["Play Type"]=r.PlayType}else i={...r};return i};var IT=__webpack_require__(83849),RT=__webpack_require__(42332);const OT=e=>{let{field:t,value:n}=e;return(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{className:"w-[25%]",children:(0,ms.jsx)("p",{className:"text-13 pr-3 py-2 capitalize",children:t})}),(0,ms.jsx)("td",{className:"w-[75%]",children:(0,ms.jsx)("p",{className:"text-13",children:(0,ms.jsx)("strong",{children:n})})})]})},jT=e=>{let{data:t}=e;const[n,r]=(0,sa.useState)(!0);return(0,ms.jsx)("div",{children:(0,ms.jsx)("div",{className:"metadata-grid justify-start",children:(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsxs)("div",{className:"flex justify-between cursor-pointer",onClick:()=>r(!n),children:[(0,ms.jsx)("div",{children:"Properties"}),n?(0,ms.jsx)(IT.A,{height:24,width:24}):(0,ms.jsx)(RT.A,{height:24,width:24})]}),n&&(0,ms.jsx)("div",{className:"flex justify-center",children:(0,ms.jsx)("table",{className:"min-w-full overflow-auto flex",children:(0,ms.jsx)("tbody",{className:"bg-darkBG px-4",children:Object.entries(t).map((e=>{let[t,n]=e;return(0,ms.jsx)(OT,{field:t,value:n},"field-".concat(t))}))})})})]})})})},MT=e=>{let{metadata:t,type:n}=e;const r=NT(t,n);return(0,ms.jsx)(jT,{data:r})},LT=e=>{let{nftID:t,nftType:n}=e;const r=(0,us.nftTypeAndIdToLocationData)(n,t),i=(0,us.getNFTIdentifier)(r);return(0,ms.jsx)("div",{onClick:()=>{Tf.su.api.refreshMetadata(i).then((()=>window.location.reload())).catch((e=>(0,fs.t)(" Failed to refresh Metadata",e)))},className:"flex items-end justify-center",children:(0,ms.jsx)("svg",{className:"h-6 w-6 hover:stroke-emerald-500 cursor-pointer stroke-2",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,ms.jsx)("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})},BT=e=>{let{settleDeadline:t,className:n,onCountdownEnd:r}=e;return(0,ms.jsxs)("div",{className:"nft-expiration flex justify-center items-center ".concat(n||""),children:[(0,ms.jsx)("div",{className:"p-2 flex justify-center items-center nft-expiration-left",children:(0,ms.jsx)("p",{className:"text-bold ms-1",children:"Expiration Date ".concat(t.toLocaleDateString("en-US"))})}),(0,ms.jsxs)("div",{className:"p-2 flex justify-center items-center nft-expiration-right",children:[(0,ms.jsx)("p",{className:"text-bold ms-1 me-1",children:"Expires in "}),(0,ms.jsx)(jb,{date:t,onComplete:r})]})]})},UT=e=>{let{type:t,className:n}=e,r=null,i=null;switch(t){case us.ListingStatus.Listed:r="listed",i="LISTED";break;case us.ListingStatus.Funded:r="funded",i="FUNDED";break;case us.ListingStatus.Repaid:r="repaid",i="REPAID";break;case us.ListingStatus.Delisted:r="delisted",i="DELISTED";break;case us.ListingStatus.Cancelled:r="cancelled",i="CANCELLED";break;case us.ListingStatus.Settled:r="settled",i="DEFAULTED";break;case us.ListingStatus.Invalid:r="invalid",i="Invalid";break;case us.ListingStatus.Rented:r="rented",i="Rented";break;case us.ListingStatus.Returned:r="returned",i="Returned";break;case us.ListingStatus.Expired:r="expired",i="Expired";break;case us.ListingStatus.Purchased:r="purchased",i="Purchased";break;default:(0,us.assertNever)(t)}return(0,ms.jsx)("div",{className:n,children:(0,ms.jsx)("p",{className:"nft-label ".concat(r),children:i})})},VT=e=>{let{nftState:t}=e;return(0,ms.jsx)("div",{className:"absolute w-3/4 h-full bg-opacity-75 rounded-3xl flex justify-center items-center",children:(0,ms.jsx)(UT,{type:t,className:"mt-3"})})},HT=async e=>{const t=pl.db.collection("listingRented").where("listingResourceID","in",[Number(e),e.toString()]).limit(1),n=await t.get();if(n.docs.length>0){const e=n.docs[0].data(),t={...e};var r;if(t)t.settleDeadline=null===e||void 0===e||null===(r=e.settleDeadline)||void 0===r?void 0:r.toDate();return t}return null},zT=e=>{let{className:t}=e;return(0,ms.jsx)("div",{className:"layout-loader flex justify-center items-center ".concat(t||""),children:(0,ms.jsx)(bc.BM,{color:"#04E5A3",height:80,width:80})})},WT=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o,a,s;let{authStore:l}=e;const{listingResourceId:c}=(0,js.g)(),u=null===l||void 0===l||null===(t=l.loggedUser)||void 0===t?void 0:t.addr,d=c||"",[p,h]=(0,sa.useState)(null),[f,m]=(0,sa.useState)(null),[g,v]=(0,sa.useState)(null),[y,b]=(0,sa.useState)(!1),w=(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Delisted||(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Repaid||(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Settled||(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Funded||(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Invalid||(null===f||void 0===f?void 0:f.state)===us.ListingStatus.Expired,[x,C]=(0,sa.useState)(!!f&&Dl(null===f||void 0===f?void 0:f.blockTimestamp)),[A,E]=(0,sa.useState)(!(null===g||void 0===g||!g.settleDeadline)&&Pl(null===g||void 0===g?void 0:g.settleDeadline)),_=async()=>{const e=await(async e=>{if(!e)return null;const t=pl.db.collection("fundingAvailable").where("listingResourceID","in",[e.toString(),Number(e)]).limit(1),n=await t.get();if(n.docs.length>0){const e=n.docs[0].data(),t={...e};var r;return t&&(t.settleDeadline=null===e||void 0===e||null===(r=e.settleDeadline)||void 0===r?void 0:r.toDate()),t}return null})(d||"");v(e)},T=async()=>{const e=await(async e=>{(0,fs.t)("fetchListingById",e);const t=pl.db.collection("listingAvailable").where("listingResourceID","in",[e.toString(),Number(e)]).limit(1),n=await t.get();if((0,fs.t)("fetchListingById",n.docs),n.docs.length>0){var r;const e=n.docs[0].data();(0,fs.t)("fetchListingById",e);const t={...e};return t.blockTimestamp=null===e||void 0===e||null===(r=e.blockTimestamp)||void 0===r?void 0:r.toDate(),t}return null})(d);m(e)};(0,sa.useEffect)((()=>{_().then((()=>{(0,fs.t)("getFunding",g)})),T().then((()=>{(0,fs.t)("set listing to",f)}))}),[c]),(0,sa.useEffect)((()=>{const e=null===f||void 0===f?void 0:f.blockTimestamp;e&&C(Dl(e))}),[null===f||void 0===f?void 0:f.blockTimestamp]),(0,sa.useEffect)((()=>{const e=null===g||void 0===g?void 0:g.settleDeadline;e&&E(Pl(e))}),[null===g||void 0===g?void 0:g.settleDeadline]),(0,sa.useEffect)((()=>{if(!f)return;const e=(0,us.nftTypeAndIdToLocationData)(null===f||void 0===f?void 0:f.nftType,null===f||void 0===f?void 0:f.nftID);Tf.su.api.getItem({contractAddress:e.contract.address,contractName:e.contract.name,nftID:e.nftID,resourceName:e.resourceName}).then((e=>{var t,n,r;const i=null!==(t=null===(n=e.nftView)||void 0===n||null===(r=n.externalURL)||void 0===r?void 0:r.url)&&void 0!==t?t:"";h(i),i||(0,fs.t)("No backlink URL")}))}),[f]);(0,sa.useEffect)((()=>{if(null!==f&&void 0!==f&&f.detail){const e=f.detail;ds.o.track("Asset Detail Page Visited",{listingInfo:e})}}),[null===f||void 0===f?void 0:f.detail]);const S=null===f,[k,P]=(0,sa.useState)(null),D=(0,sa.useMemo)((()=>{var e,t,n;return null!==f&&void 0!==f&&null!==(e=f.detail)&&void 0!==e&&null!==(t=e.card)&&void 0!==t&&t.images&&f.detail.card.images.length>0?(0,us.getImageURL)(null!==(n=f.detail.card.images[0].url)&&void 0!==n?n:tl.A):(0,us.getImageURL)(tl.A)}),[null===f||void 0===f||null===(n=f.detail)||void 0===n||null===(r=n.card)||void 0===r?void 0:r.images,tl.A]);(0,sa.useEffect)((()=>{D&&y&&dy(D,"mp4").then(P)}),[D,y]);const F=(0,sa.useMemo)((()=>{var e,t,n,r,i,o;return!k&&y?(0,ms.jsx)(py,{collectionAddress:null===f||void 0===f||null===(e=f.detail)||void 0===e||null===(t=e.card)||void 0===t?void 0:t.collectionAddress,collectionName:null===f||void 0===f||null===(n=f.detail)||void 0===n||null===(r=n.card)||void 0===r?void 0:r.collectionName,onError:e=>{(0,ol.R)(e)},className:"object-cover aspect-square w-3/4 ".concat(w?"opacity-50":"")}):k?k?(0,ms.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!0,className:"nft-image max-w-xs md:max-w-lg mx-auto ".concat(w?"opacity-50":""),children:(0,ms.jsx)("source",{type:"video/mp4",src:D})}):void 0:(0,ms.jsx)("img",{src:D,className:"nft-image max-w-xs md:max-w-lg mx-auto ".concat(w?"opacity-50":""),loading:"lazy",alt:"".concat(null===f||void 0===f||null===(i=f.detail)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.title," asset"),onError:()=>{b(!0)}})}),[D,ol.R,k,y,w,b]);return(0,ms.jsx)(fv,{children:S?(0,ms.jsx)(zT,{}):(0,ms.jsxs)("div",{className:"container",children:[f&&(0,ms.jsx)(X_,{listing:f}),(0,ms.jsx)("nav",{"aria-label":"breadcrumb",children:(0,ms.jsxs)("ol",{className:"flex items-center",children:[(0,ms.jsxs)("li",{className:"flex items-center",children:[(0,ms.jsx)("a",{href:VD.Marketplace,className:"hover:underline cursor-pointer",children:"Marketplace"}),(0,ms.jsx)(Fy,{className:"h-7 w-7 flex-shrink-0 text-primary","aria-hidden":"true"})]}),(0,ms.jsx)("li",{children:(0,ms.jsxs)("a",{href:"/marketplace",className:"hover:underline cursor-pointer",children:[" ",(null===f||void 0===f||null===(i=f.detail)||void 0===i||null===(o=i.nft)||void 0===o?void 0:o.title)||""]})})]})}),(0,ms.jsxs)("div",{className:"relative pt-4",children:[(0,ms.jsxs)(cT,{className:"md:flex-nowrap flex-wrap",children:[(0,ms.jsxs)(lT,{lg:4,children:[(0,ms.jsxs)("div",{className:"flex justify-center nft-image-card",children:[F,u===f.flowtyStorefrontAddress&&x&&(0,ms.jsx)("div",{className:"z-50 flex justify-center nft-image-alert w-full",children:(0,ms.jsx)("div",{className:"w-3/4 flex justify-center items-center countdown-content rounded-t-xl",children:(0,ms.jsx)("p",{className:"text-white text-bold me-2",children:"My Listing"})})}),w?(null===f||void 0===f?void 0:f.state)&&(0,ms.jsx)(VT,{nftState:f.state}):!x&&null!==f&&void 0!==f&&f.blockTimestamp?(0,ms.jsx)("div",{className:"flex justify-center items-center",children:(0,ms.jsx)(Q_,{blockTimestamp:null===f||void 0===f?void 0:f.blockTimestamp,onCountdownEnd:()=>C(!0),className:"w-3/4"})}):A?(0,ms.jsx)("div",{className:"nft-image-alert w-full",children:(0,ms.jsx)("div",{className:"pt-1 flex justify-center items-center",children:(0,ms.jsx)(sT,{variant:"info",className:"pt-2 pb-2 mt-5 absolute ps-3 pe-3 text-bold",children:"Expired"})})}):null]}),(0,ms.jsxs)("div",{className:"flex justify-between w-full ms-2 padding-20",children:[p&&(0,ms.jsxs)("a",{href:p,target:"_blank",rel:"noreferrer",children:[(0,ms.jsx)("p",{className:"inline-block pt-1 mt-3 me-2 text-16",children:"View Asset"}),(0,ms.jsx)(tc,{className:"inline-block pb-1"})]}),(0,ms.jsx)(LT,{nftType:f.nftType,nftID:f.nftID})]}),(0,ms.jsx)("div",{className:"padding-10",children:(null===f||void 0===f||null===(a=f.detail)||void 0===a||null===(s=a.nft)||void 0===s?void 0:s.metadata)&&(null===f||void 0===f?void 0:f.nftType)&&(0,ms.jsx)(MT,{metadata:f.detail.nft.metadata,type:f.nftType})})]}),(0,ms.jsx)(lT,{className:"mt-5",children:(0,ms.jsx)(FT,{listing:f,funding:g,isListingActive:x,isListingExpired:A})})]}),(null===g||void 0===g?void 0:g.settleDeadline)&&((null===f||void 0===f?void 0:f.state)===us.ListingStatus.Funded||us.ListingStatus.Rented)&&(0,ms.jsx)(BT,{settleDeadline:null===g||void 0===g?void 0:g.settleDeadline,className:"mt-5",onCountdownEnd:()=>E(!0)})]})]})})}))),qT=()=>{(0,sa.useEffect)((()=>{ds.o.track("Privacy Page Visited")}),[]);return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Privacy Policy",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("section",{children:(0,ms.jsxs)("div",{className:"mt-5 mb-4 pt-4 container",children:[(0,ms.jsx)("h1",{className:"pt-3 text-3xl text-center",children:"Privacy Policy"}),(0,ms.jsx)("br",{}),(0,ms.jsx)("iframe",{title:"privacy",src:"https://storage.googleapis.com/flowty-docs/flowty-privacy-policy.pdf",width:"100%",height:"700px",children:"Privacy Policy"})]})})]})};var GT=__webpack_require__(77706);const YT=2e5,KT=async(e,t,n,r,i)=>{var o,a;const s=(null===e||void 0===e||null===(o=e.target)||void 0===o?void 0:o.files)&&(null===e||void 0===e||null===(a=e.target)||void 0===a?void 0:a.files[0]);if(!s)return;let l;if((0,fs.t)("Max image size",Tl()(YT).format("0.0 b")),(0,fs.t)("Image size",Tl()(s.size).format("0.0 b")),s.size>YT?(l=await((e,t,n)=>new Promise(((r,i)=>{if(!e)return;const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{const a=document.createElement("img");a.src=o.result,a.onload=()=>{const i=document.createElement("canvas");i.width=t,i.height=n;const o=i.getContext("2d");null===o||void 0===o||o.drawImage(a,0,0,t,n),i.toBlob((t=>{const n=new File([t||""],e.name,{lastModified:e.lastModified,type:e.type});r(n)}),e.type,.8)},a.onerror=e=>{i(e)}},o.onerror=e=>{i(e)}})))(s,300,300),(0,fs.t)("Image Resized: ",Tl()(l.size).format("0.0 b"))):l=s,l&&await(async e=>{if(!e)return;const t=["image/jpeg","image/png"];return e.size>YT?(hc().fire({confirmButtonColor:"#3085d6",text:"".concat(e.name," is too large, please pick an image with max size ").concat(Tl()(YT).format("0,0 b")," KB")}),!1):!!t.includes(e.type)||(hc().fire({confirmButtonColor:"#3085d6",text:"".concat(e.type," is an invalid file type, please upload from the following file types: ").concat(t)}),!1)})(l)){n(!0);const e=l.name.split(".").pop(),o=pl.IG.ref("/images/".concat(r,".").concat(null!==e&&void 0!==e?e:""));o.put(l).then((()=>{o.getDownloadURL().then((e=>{t(e),null===i||void 0===i||i("avatar",e),n(!1)}))}))}},QT=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n;let{user:r,authStore:i}=e;const o=null!==(t=null===r||void 0===r?void 0:r.accountSummaries)&&void 0!==t?t:{},{walletAddresses:a,setWalletAddresses:s}=(0,sa.useContext)(Tw),l=hc().mixin({background:"#232D39E6",customClass:{container:"py-1 mb-4",icon:"text-green-500"},iconColor:"#04F5A3",position:"bottom",showConfirmButton:!1,timer:3e3,toast:!0,width:"400px"}),c=(0,sa.useMemo)((()=>{var e;return null===r||void 0===r?void 0:r.accountSummaries[null!==(e=null===r||void 0===r?void 0:r.addr)&&void 0!==e?e:""]}),[]);return(0,ms.jsx)("div",{children:(null===r||void 0===r?void 0:r.accountSummaries)&&Object.keys(null===r||void 0===r?void 0:r.accountSummaries).length>1&&(0,ms.jsx)(Bs.VX,{childAccounts:null===r||void 0===r?void 0:r.accountSummaries,isLoggedUserAcct:r.addr===(null===i||void 0===i||null===(n=i.loggedUser)||void 0===n?void 0:n.addr),mainAccount:c,tokenIdentifiers:GT.IdentifierToPaymentToken,selectedWalletAddresses:a,selectAllAddresses:()=>{s(Object.keys(o))},clearAllAddresses:()=>{s([])},updateSelectedAddresses:e=>{let t=[...a];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),s(t)},onUploadNewImage:KT,saveNewImage:async(e,t,n)=>{try{await Tf.su.editChildAccountDisplay({childAddress:e,desc:"",name:t,thumbnail:n}).then((()=>{l.fire({icon:"success",text:"Successfully Updated Account Details"}),null===i||void 0===i||i.setLinkedWalletImage(e,n),null===i||void 0===i||i.setLinkedWalletDisplayName(e,t)}))}catch(r){console.log("errorrr",r)}}})})})));const XT=__webpack_require__.p+"static/media/defaultProfileImage.e70fd45310525e8aed61d90f67910926.svg";const ZT=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}))})),JT=e=>{let{address:t}=e;const[n,r]=(0,sa.useState)(!1),i=()=>r(!1),o=window.location.origin;return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsx)("button",{disabled:n,"data-tooltip-id":"copy-wallet-url-tooltip","data-tooltip-content":"Share Profile URL","data-tooltip-place":"right",className:cy("bg-[#606E7D33] hover:bg-[#606E7D52] border border-[#FFFFFF1F] rounded-md px-[12px] py-[6px] cursor-pointer flex items-center justify-between w-[126px] md:w-[146px]",n&&"text-white bg-[#606E7D52]"),onClick:()=>{r(!0),setTimeout(i,5e3),navigator.clipboard.writeText("".concat(o,"/user/").concat(t))},children:n?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"font-normal text-[0.875rem] md:text-[14px] mr-[0.25rem] text-[#DEDEDE] leading-[normal]",children:"Profile Copied"}),(0,ms.jsx)(ix,{className:"w-4 h-4 stroke-primary"})]}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"font-normal text-[0.875rem] md:text-[14px] mr-[0.25rem] text-[#DEDEDE] leading-[normal]",children:"Share Profile"}),(0,ms.jsx)(ZT,{className:"w-4 h-4 stroke-[#DEDEDE]"})]})})})},$T=e=>{let{profile:t}=e;const[n,r]=(0,sa.useState)(!1),i="Dapper Wallet Email Address - ".concat(t.email,"%0D%0A\nDapper Wallet Address - ").concat(t.addr,"%0D%0A\n%0D%0A\nI am requesting access to Dapper's Account Linking portal for the above Dapper Wallet.%0D%0A\n%0D%0A\nThank you"),o="mailto:developers@dapperlabs.com?subject=Account Linking&body=".concat(i);return(0,sa.useEffect)((()=>{t.isDapper&&t.addr&&vc(null===t||void 0===t?void 0:t.addr).then((e=>{null!==e&&void 0!==e&&e.hideDWAccountLinkingBanner||r(!0)}))}),[t.addr]),n?(0,ms.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row bg-[#ffffff] bg-opacity-[2%] backdrop-blur-lg border-[1px] border-opacity-20 rounded-md border-[#7c7c7c] p-4 justify-around lg:max-w-[70%] items-center mt-2",children:[(0,ms.jsx)("div",{className:"text-sm text-white",children:"Do you own multiple wallets on the FLOW blockchain? Link them together and access all of them at one place today!"}),(0,ms.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",onClick:()=>{(0,fs.t)("Account Linking Requested"),ds.o.track("Account Linking Requested")},children:(0,ms.jsxs)("div",{className:"bg-white rounded-lg text-[#011020] px-4 py-3 flex flex-nowrap font-extrabold text-base uppercase whitespace-nowrap",children:["Request Access",(0,ms.jsx)(tc,{className:"inline-block pb-2 pl-2"})]})}),(0,ms.jsx)("button",{onClick:()=>{null!==t&&void 0!==t&&t.addr&&gc(null===t||void 0===t?void 0:t.addr,{hideDWAccountLinkingBanner:!0}).then((()=>{r(!1)}))},children:(0,ms.jsx)(TC,{})})]}):(0,ms.jsx)(ms.Fragment,{})},eS=e=>{let{walletAddress:t}=e;const[n,r]=(0,sa.useState)(null);return(0,sa.useEffect)((()=>{t&&pl.db.doc("/accounts/".concat(t,"/providers/discord")).get().then((e=>{e.exists&&r(e.data().username)})).catch((e=>{ds.o.track("ERROR_FIREBASE_FETCH_DISCORD",{e:e})}))}),[t]),n?(0,ms.jsxs)("div",{children:[(0,ms.jsx)(nc.m_,{id:"view-discord-profile-tooltip",style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)("div",{"data-tooltip-id":"view-discord-profile-tooltip","data-tooltip-content":"View Discord Profile","data-tooltip-place":"right",children:(0,ms.jsx)(qA,{link:"https://discordapp.com/users/".concat(n)})})]}):(0,ms.jsx)(ms.Fragment,{})},tS=e=>{let{walletAddress:t}=e;const[n,r]=(0,sa.useState)(null);return(0,sa.useEffect)((()=>{t&&pl.db.doc("/accounts/".concat(t,"/providers/twitter")).get().then((e=>{if(e.exists){var t;const n=e.data();r(null!==(t=n.handle)&&void 0!==t?t:null)}})).catch((e=>{ds.o.track("ERROR_FIREBASE_FETCH_TWITTER",{e:e})}))}),[t]),n?(0,ms.jsxs)("div",{children:[(0,ms.jsx)(nc.m_,{id:"view-twitter-profile-tooltip",style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)("div",{"data-tooltip-id":"view-twitter-profile-tooltip","data-tooltip-content":"View Twitter Profile","data-tooltip-place":"right",children:(0,ms.jsx)(pE,{link:"https://twitter.com/".concat(n)})})]}):(0,ms.jsx)(ms.Fragment,{})},nS=e=>{let{profile:t}=e;const n=(0,Bs.dv)();if(!t)return null;const r=window.location.origin;return(0,ms.jsx)("div",{className:"mb-8 pt-[3rem] md:pt-[6rem] lg:pt-20 lg:mb-4",children:(0,ms.jsxs)("div",{className:"max-w-5xl",children:[(0,ms.jsxs)("div",{className:"sm:-mt-16 inline-flex items-center gap-[0.75rem]",children:[(0,ms.jsx)("img",{className:"h-[4rem] w-[4rem] rounded-[0.5rem]",src:t.avatar||XT,alt:"User profile"}),(0,ms.jsxs)("div",{className:"flex flex-col gap-[0.25rem]",children:[(0,ms.jsxs)("div",{className:"truncate flex items-center space-x-[0.75rem]",children:[(0,ms.jsx)("h1",{className:"text-[1.5rem] font-bold text-white truncate leading-none",children:(()=>{var e,r,i;return t.userName&&""!==t.userName?t.userName:["xs","mobile","tablet"].includes(n)?(null===t||void 0===t||null===(r=t.addr)||void 0===r?void 0:r.slice(0,3))+"..."+(null===t||void 0===t||null===(i=t.addr)||void 0===i?void 0:i.slice(-4)):null!==(e=null===t||void 0===t?void 0:t.addr)&&void 0!==e?e:""})()}),(0,ms.jsxs)("div",{className:"flex flex-row items-center gap-[2px]",children:[(0,ms.jsx)(tS,{walletAddress:t.addr||""}),(0,ms.jsx)(eS,{walletAddress:t.addr||""}),(0,ms.jsx)(rE,{shareFn:()=>{navigator.clipboard.writeText("".concat(r,"/user/").concat(null===t||void 0===t?void 0:t.addr))}})]})]}),(0,ms.jsxs)("div",{className:"mt-[0.25rem] flex gap-1 flex-wrap",children:[(0,ms.jsx)(Bl,{address:t.addr||""}),(0,ms.jsx)(JT,{address:(null===t||void 0===t?void 0:t.addr)||""})]})]})]}),(0,ms.jsx)($T,{profile:t})]})})},rS=()=>(0,ms.jsxs)("div",{className:"w-full flex flex-col gap-3 pt-3",children:[(0,ms.jsx)("div",{className:"rounded flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait w-full h-[46px]"}),Array.from({length:5}).map(((e,t)=>(0,ms.jsx)("div",{className:"rounded flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait w-full h-[72px]"},t)))]}),iS=e=>{let{isReceived:t}=e;const n=(0,js.Zp)();return(0,ms.jsxs)("div",{className:"flex flex-col items-center",children:[(0,ms.jsxs)("div",{className:"relative mr-5",children:[(0,ms.jsx)("svg",{width:"82",height:"105",viewBox:"0 0 82 105",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{d:"M76.5 22.5L81.5 0H44C30.8 2.4 23.5 15.3333 21.5 21.5L0 105H26L35.5 67H53.5L58.5 43.5H41.5C46 27.5 47.5 22.5 50.5 22.5H76.5Z",className:"fill-[#b3bbbe]"})}),(0,ms.jsxs)("div",{className:"flex space-x-2 left-11 bottom-0 absolute",children:[(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"}),(0,ms.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#B3BBBE]"})]})]}),(0,ms.jsx)("div",{className:"uppercase text-[#B3B7BC] mt-3 pb-2",children:"No Offers Found"}),!t&&(0,ms.jsx)(Bs.M2,{text:"View all Collections",onClick:()=>n("/collections"),variant:"secondary",btnSize:"small"})]})};const oS=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}),sa.createElement("path",{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));const aS=sa.forwardRef((function(e,t){return sa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),sa.createElement("path",{fillRule:"evenodd",d:"M15.707 15.707a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 010 1.414zm-6 0a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 011.414 1.414L5.414 10l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}))})),sS=e=>{let{nft:t,moreOffer:n,fields:r,isLast:i,onHide:o}=e;const[a,s]=(0,sa.useState)(!1);return(0,ms.jsxs)("tr",{className:"text-lightText ".concat(a&&"hidden"," ").concat(i&&"border-b-[0.5px] border-[#444444]"," "),children:[(0,ms.jsx)("td",{}),r.slice(1).map(((e,r)=>e.customRender({callback:()=>{o(),s(!0)},key:"".concat(r),nft:t,offer:n})))]})},lS=e=>{let{nft:t,fields:n}=e;const[r,i]=(0,sa.useState)(!0),[o,a]=(0,sa.useState)(!1),s=t.offers,[l,c]=(0,sa.useState)(0),[u,d]=(0,sa.useState)(s.length-1),[p,h]=(0,sa.useState)({}),f=(0,sa.useMemo)((()=>s.length-Object.keys(p).length>1),[l,p]),m=()=>{h({...p,[l]:!0});let e=1;if(!f)return a(!0);for(;p[l+e];)e+=1;c(l+e)};return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("tr",{className:"".concat((!f||f&&!r)&&"border-b-[0.5px] border-[#444444]"," text-lightText ").concat(o&&"hidden"),children:[s[l]&&n.map(((e,n)=>e.customRender({callback:m,key:"".concat(e.name,"-").concat(e.title,"-").concat(n),nft:t,offer:s[l]}))),f&&(0,ms.jsx)("td",{className:"relative whitespace-nowrap py-4 pl-3 pr-4 text-center text-[#B5B5B5] text-lg font-medium sm:pr-0",children:(0,ms.jsxs)("div",{className:"inline-flex cursor-pointer",onClick:()=>i(!r),onKeyDown:e=>{"Enter"===e.key&&i(!r)},children:["".concat(s.length-(Object.keys(p).length+1)," more offers"),r?(0,ms.jsx)(IT.A,{className:"h-7 w-7 ml-1 cursor-pointer text-primary"}):(0,ms.jsx)(RT.A,{className:"h-7 w-7 ml-1 cursor-pointer text-primary"})]})})]}),f&&r&&s.slice(l+1).map(((e,r)=>{const i=r+1+l,o=i===u;return e?(0,ms.jsx)(sS,{onHide:()=>{if(o){let e=u-1;for(;e>0&&p[e];)e-=1;d(e)}h({...p,[i]:!0})},nft:t,fields:n,moreOffer:e,isLast:o},e.offerResourceID):null}))]})},cS=e=>{let{items:t,fields:n,onSort:r=()=>{},initialSortConfig:i=null,isFetchingResults:o}=e;const[a,s]=(0,sa.useState)(i),[l,c]=(0,sa.useState)(!0),[u,d]=(0,sa.useState)(!0),p=(0,sa.useRef)(null),h=(0,sa.useCallback)((e=>()=>{if((null===a||void 0===a?void 0:a.column)===e)return"desc"===a.order?void s({column:e,order:"asc"}):void s(i);s({column:e,order:"desc"})}),[a]);(0,sa.useEffect)((()=>{r(a)}),[a]),(0,sa.useEffect)((()=>{"blockTimestamp"===(null===a||void 0===a?void 0:a.column)&&"desc"===(null===a||void 0===a?void 0:a.order)&&ds.o.track("Offers table sorted",{sortedBy:a})}),[null===a||void 0===a?void 0:a.column]),(0,sa.useEffect)((()=>{if(!p.current)return;const e=p.current.scrollWidth,t=p.current.clientWidth;if(!(e>t))return;const n=p.current.scrollLeft;d(n+t+100>e),c(n<100)}),[null===p||void 0===p?void 0:p.current]);const f=(0,sa.useMemo)((()=>{var e,t,n;return((null===(e=p.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t||null===(n=t.call(e))||void 0===n?void 0:n.top)||0)+100}),[p.current]);return(0,ms.jsx)("div",{className:" relative flow-root w-full text-lightText pr-6 pl-4 sm:pl-0 lg:pr-0 ".concat(o&&"animate-pulse"),children:(0,ms.jsxs)("div",{onScroll:e=>{const t=e.target;d((null===t||void 0===t?void 0:t.clientWidth)+(null===t||void 0===t?void 0:t.scrollLeft)+100>(null===t||void 0===t?void 0:t.scrollWidth)),c((null===t||void 0===t?void 0:t.scrollLeft)<100)},ref:p,className:"-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8",children:[!u&&(0,ms.jsx)(oS,{style:{top:"".concat(f,"px")},className:"lg:hidden fixed right-2  animate-pulse h-12 w-12 text-white drop-shadow-[0_6px_6px_rgba(4,229,163,0.5)] z-50"}),!l&&(0,ms.jsx)(aS,{style:{top:"".concat(f,"px")},className:"lg:hidden fixed left-2  animate-pulse h-12 w-12 text-white drop-shadow-[0_6px_6px_rgba(4,229,163,0.5)] z-50"}),(0,ms.jsx)("div",{className:"inline-block py-2 align-middle sm:px-6 lg:px-8 w-full",children:(0,ms.jsxs)("table",{className:"w-full divide-y divide-gray-300 bg-transparent",children:[(0,ms.jsx)("thead",{className:"border-b-[0.5px] border-[#444444]",children:(0,ms.jsx)("tr",{className:"uppercase text-base font-semibold text-[#DDDDDD]",children:n.map((e=>(0,ms.jsx)("th",{className:"px-3 py-3.5",children:(0,ms.jsxs)("button",{type:"button",className:"bg-transparent ".concat(e.sortable?"":"cursor-default"," p-0 m-0 flex flex-row items-center"),disabled:!e.sortable,onClick:e.sortable?h(null===e||void 0===e?void 0:e.name):()=>{},children:[(0,ms.jsx)("span",{className:"uppercase whitespace-nowrap inline-flex items-center text-left text-base",children:e.title}),e.sortable&&(0,ms.jsx)(IT.A,{color:"white",height:20,className:" ml-1 ".concat((null===a||void 0===a?void 0:a.column)===e.name?"opacity-100":"opacity-20 hover:opacity-30"," ").concat("desc"===(null===a||void 0===a?void 0:a.order)?"transform rotate-180":""," ")})]})},"".concat(e.title," header"))))})}),(0,ms.jsxs)("tbody",{children:[o&&(0,ms.jsx)("div",{className:"flex justify-center col-span-4 py-3",children:(0,ms.jsx)(bc.BM,{height:100,width:100})}),t.map((e=>e?(0,ms.jsx)(lS,{nft:e,fields:n},"".concat(null===e||void 0===e?void 0:e.contractAddress," ").concat(null===e||void 0===e?void 0:e.contractName," ").concat(null===e||void 0===e?void 0:e.id)):null))]})]})})]})})},uS=async(e,t)=>{var n,r;const i=null!==(n=await(null===pl.j2||void 0===pl.j2||null===(r=pl.j2.currentUser)||void 0===r?void 0:r.getIdToken(!0)))&&void 0!==n?n:"",o="".concat(ss.Sw,"/offers/hide"),a={hidden:t,offerID:e},s={Authorization:i},l=await cs().post(o,a,{headers:s});if(200!==l.status)throw new Error("Unable to hide offer, please try again later");return l.data},dS=e=>{var t,n,r,i,o,a,s,l,c,u;let{locationData:d,offer:p}=e;return(0,ms.jsx)(ca.N_,{to:"/asset/".concat(d.contract.address,"/").concat(d.contract.name,"/").concat(d.resourceName,"/").concat(d.nftID),children:(0,ms.jsxs)("div",{className:"flex cursor-pointer",children:[(0,ms.jsx)("div",{className:"h-16 w-16 mr-3",children:(0,ms.jsx)(al,{collectionAddress:(null===p||void 0===p||null===(t=p.card)||void 0===t?void 0:t.collectionAddress)||"",collectionName:(null===p||void 0===p||null===(n=p.card)||void 0===n?void 0:n.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(r=null===p||void 0===p||null===(i=p.card)||void 0===i||null===(o=i.images)||void 0===o||null===(a=o[0])||void 0===a?void 0:a.url)&&void 0!==r?r:tl.A,(0,ss.hx)(null!==(s=p.type)&&void 0!==s?s:""))})}),(0,ms.jsxs)("div",{className:"flex flex-col justify-center text-base text-primary whitespace-nowrap h-16",children:[(0,ms.jsx)("div",{className:"font-extrabold ",children:null===p||void 0===p||null===(l=p.card)||void 0===l?void 0:l.title}),null===p||void 0===p||null===(c=p.card)||void 0===c||null===(u=c.additionalDetails)||void 0===u?void 0:u.map((e=>(0,ms.jsx)("div",{className:"font-normal text-sm",children:e},e)))]})]})})},pS=e=>{let{callBack:t,onAccept:n,onHide:r,hasProvider:i}=e;const[o,a]=(0,sa.useState)(!1);return(0,ms.jsxs)("div",{className:"flex items-center gap-12",children:[i?(0,ms.jsx)("div",{className:"w-36",children:(0,ms.jsx)(Bs.M2,{onClick:n,text:"Accept",variant:"secondary",btnSize:"small"})}):(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)("div",{className:"w-36",children:[(0,ms.jsx)(nc.m_,{id:"view-only-tooltip",style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)("div",{"data-tooltip-id":"view-only-tooltip","data-tooltip-content":"This profile has view-only access to this item","data-tooltip-place":"bottom",children:(0,ms.jsx)(Bs.M2,{onClick:n,text:"Accept",variant:"secondary",btnSize:"small",disabled:!0})})]})}),(0,ms.jsx)("div",{className:"w-36",children:(0,ms.jsx)(Bs.M2,{text:o?(0,ms.jsx)("div",{className:"flex justify-around items-center",children:(0,ms.jsx)(bc.BM,{height:12,width:12})}):"Hide",onClick:()=>{a(!0),r().then((()=>t())).finally((()=>a(!1)))},variant:"secondary",btnSize:"small",bgColor:"white"})})]})},hS=e=>{let{isPublic:t,authStore:n,address:r,addresses:i}=e;const[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)(0),[c,u]=(0,sa.useState)(0),[d,p]=(0,sa.useState)(!0),[h,f]=(0,sa.useState)(!0),m=(0,sa.useRef)(!1),{selectCard:g}=wb(),v=(0,sa.useCallback)((e=>{let{offer:t,singleOfferType:n,selectedNft:r}=e;g({selected:{contractAddress:r.contractAddress,contractName:r.contractName,nftID:r.id,nftType:r.type},selectedSingleOffer:t,singleOfferType:n})}),[g]),[y,b]=(0,sa.useState)(!1),{hybridCustodyNFTStatus:w}=(0,bs.g)(),x=xl({isLoading:m.current,onInfiniteScroll(){h&&((0,fs.t)("Scroll Triggered",{hasMore:h,page:s}),l(s+1))}},[o.length,h,m.current]),[C,A]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending}),E=(0,sa.useCallback)((async()=>{a([]),m.current=!0,l(0),f(!0),b(!0),p(!0);try{const e=await cs().post("".concat(ss.Sw,"/user/").concat(r,"/offers/received"),{addresses:i,from:0,limit:5,sort:{direction:null===C||void 0===C?void 0:C.order,path:null===C||void 0===C?void 0:C.column}});o.length+e.data.nfts.length===e.data.total&&f(!1),a(e.data.nfts),u(e.data.total),m.current=!1,p(!1),b(!1)}catch(e){cs().isCancel(e)&&ds.o.track("PROFILE_OFFERS_RECEIVED",{event:"cancelled"}),m.current=!1,p(!1),b(!1)}}),[i,r,C,s]);(0,sa.useEffect)((()=>{E()}),[r,C,i]),(0,sa.useEffect)((()=>{0!==s&&(m.current=!0,p(!0),cs().post("".concat(ss.Sw,"/user/").concat(r,"/offers/received"),{addresses:i,from:5*s,limit:5,sort:{direction:null===C||void 0===C?void 0:C.order,path:null===C||void 0===C?void 0:C.column}}).then((e=>{o.length+e.data.nfts.length===e.data.total&&f(!1),a([...o,...e.data.nfts]),u(e.data.total),m.current=!1,p(!1)})).catch((e=>{m.current=!1,p(!1)})))}),[s,i]);const _=[{customRender:e=>{var t,n;let{offer:r,key:i}=e;const o=(0,us.nftTypeAndIdToLocationData)((null===r||void 0===r||null===(t=r.typeAndIDOffer)||void 0===t?void 0:t.nftType)||"",(null===r||void 0===r||null===(n=r.typeAndIDOffer)||void 0===n?void 0:n.nftID)||"");return(0,ms.jsx)("td",{className:"px-3 py-8 text-sm font-medium sm:pl-3",children:(0,ms.jsx)(dS,{locationData:o,offer:r})},i)},name:"NFT",title:"NFT"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:(0,ms.jsx)(Fl.se,{amount:null===t||void 0===t?void 0:t.amount,token:null===t||void 0===t?void 0:t.paymentTokenName,isSmall:!0,largeText:!0,justifyStart:!0})},n)},name:"usdValue",sortable:!0,title:"Offer"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8",children:(0,ms.jsx)("div",{className:"flex flex-col",children:(0,ms.jsx)(ca.N_,{to:"/user/".concat(null===t||void 0===t?void 0:t.storefrontAddress),children:(0,ms.jsx)("span",{className:"text-[#1B8062] text-sm hover:underline cursor-pointer",children:null===t||void 0===t?void 0:t.storefrontAddress})})})},n)},name:"From",title:"From"},{customRender:e=>{var t,n;let{offer:r,key:i}=e;const o=null===r||void 0===r||null===(t=r.valuations)||void 0===t||null===(n=t.blended)||void 0===n?void 0:n.usdValue;return o?(0,ms.jsxs)("td",{className:"whitespace-nowrap px-3 py-8 text-sm text-bold",children:["$",(0,Vb.K)(o)]},i):(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:"-"})},name:"FMV",title:"FMV"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:(0,el.default)((0,Hb.default)(null===t||void 0===t?void 0:t.blockTimestamp),"yyyy-MM-dd HH:mm")},n)},name:"blockTimestamp",sortable:!0,title:"Date Received"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:Kb(zb(null===t||void 0===t?void 0:t.expiry))},n)},name:"Expiration",title:"Expiration"},...t?[{customRender:e=>{var t;let{nft:r,offer:i,key:o}=e;const a=(null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr)===i.storefrontAddress;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-sm",children:(0,ms.jsx)("div",{className:"space-x-3",children:a?(0,ms.jsx)(Bs.M2,{text:"Cancel",onClick:()=>{v({offer:i,selectedNft:r,singleOfferType:"cancel-offer"})},variant:"secondary",btnSize:"small",bgColor:"white"}):(0,ms.jsx)("div",{className:"w-36"})})},o)},name:"Cancel",title:"Cancel"}]:[{customRender:e=>{var t,r,i;let{nft:o,offer:a,callback:s,key:l}=e;const c=(null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr)===(null===o||void 0===o?void 0:o.owner),u="".concat(null===o||void 0===o?void 0:o.contractAddress,".").concat(null===o||void 0===o?void 0:o.contractName),d=(null===w||void 0===w||null===(r=w[(null===o||void 0===o?void 0:o.owner)||""])||void 0===r||null===(i=r[u])||void 0===i?void 0:i.length)>0||c;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-sm",children:(0,ms.jsx)(pS,{callBack:s,onAccept:()=>v({offer:a,selectedNft:o}),onHide:async()=>(async e=>uS(e,!0))(null===a||void 0===a?void 0:a.offerResourceID).then((e=>{s()})),hasProvider:d})},l)},name:"Accept/Hide",title:"Accept/Hide"}]];return{dataTotal:c,hasMore:h,isFetching:d,isLoadingResults:y,nftsWithOffers:o,receivedOffersFields:_,scroll:x,setSort:A,sort:C}},fS=e=>{let{address:t,isPublic:n,authStore:r,addresses:i}=e;const{dataTotal:o,isFetching:a,isLoadingResults:s,receivedOffersFields:l,scroll:c,sort:u,nftsWithOffers:d,setSort:p,hasMore:h}=hS({address:t,addresses:i,authStore:r,isPublic:n});return(0,ms.jsx)("div",{className:"flex flex-col justify-center items-center",children:a?(0,ms.jsx)(rS,{}):(0,ms.jsx)(ms.Fragment,{children:Boolean(o)?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(cS,{fields:l,initialSortConfig:u,items:d,onSort:p,isFetchingResults:s}),h&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:c})]})]}):(0,ms.jsx)(iS,{isReceived:!0})})})},mS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{const{walletAddresses:t}=(0,sa.useContext)(Tw);return(0,ms.jsx)(fS,{...e,addresses:t})}))),gS=e=>{let{address:t,isPublic:n,addresses:r}=e;const{dataTotal:i,hasMore:o,isFetching:a,isLoadingResults:s,nftsWithOffers:l,madeOfferFields:c,scroll:u,setSort:d,sort:p}=(e=>{let{address:t,isPublic:n,addresses:r}=e;const[i,o]=(0,sa.useState)([]),[a,s]=(0,sa.useState)(0),[l,c]=(0,sa.useState)(0),[u,d]=(0,sa.useState)(!0),[p,h]=(0,sa.useState)(!0),[f,m]=(0,sa.useState)(!1),g=(0,sa.useRef)(!1),{selectCard:v}=wb(),y=(0,sa.useCallback)((e=>{let{offer:t,singleOfferType:n,selectedNft:r}=e;v({selected:{contractAddress:r.contractAddress,contractName:r.contractName,nftID:r.id,nftType:r.type},selectedSingleOffer:t,singleOfferType:n})}),[v]),b=xl({isLoading:g.current,onInfiniteScroll(){p&&s(a+1)}},[i.length,p,g.current]),[w,x]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending}),C=(0,sa.useCallback)((async()=>{o([]),g.current=!0,s(0),h(!0),m(!0),d(!0);try{const e=await cs().post("".concat(ss.Sw,"/user/").concat(t,"/offers/created"),{addresses:r,from:0,limit:5,sort:{direction:null===w||void 0===w?void 0:w.order,path:null===w||void 0===w?void 0:w.column}});i.length+e.data.nfts.length===e.data.total&&h(!1),o(e.data.nfts),c(e.data.total),g.current=!1,d(!1),m(!1)}catch(e){cs().isCancel(e)&&ds.o.track("PROFILE_OFFERS_CREATED",{event:"cancelled"}),g.current=!1,d(!1),m(!1)}}),[r,t,w,a]);(0,sa.useEffect)((()=>{C()}),[t,w,r]),(0,sa.useEffect)((()=>{0!==a&&(g.current=!0,cs().post("".concat(ss.Sw,"/user/").concat(t,"/offers/created"),{addresses:r,from:5*a,limit:5,sort:{direction:null===w||void 0===w?void 0:w.order,path:null===w||void 0===w?void 0:w.column}}).then((e=>{i.length+e.data.nfts.length===e.data.total&&h(!1),o([...i,...e.data.nfts]),c(e.data.total),g.current=!1,d(!1)})).catch((e=>{g.current=!1,d(!1)})))}),[a,r]);const A=[{customRender:e=>{var t,n;let{offer:r,key:i}=e;const o=(0,us.nftTypeAndIdToLocationData)((null===r||void 0===r||null===(t=r.typeAndIDOffer)||void 0===t?void 0:t.nftType)||"",(null===r||void 0===r||null===(n=r.typeAndIDOffer)||void 0===n?void 0:n.nftID)||"");return(0,ms.jsx)("td",{className:"px-3 py-8 text-sm font-medium sm:pl-3",children:(0,ms.jsx)(dS,{locationData:o,offer:r})},i)},name:"NFT",title:"NFT"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:(0,ms.jsx)(Fl.se,{amount:null===t||void 0===t?void 0:t.amount,token:null===t||void 0===t?void 0:t.paymentTokenName,isSmall:!0,largeText:!0,justifyStart:!0})},n)},name:"usdValue",sortable:!0,title:"Offer"},{customRender:e=>{let{nft:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8",children:(0,ms.jsx)("div",{className:"flex flex-col",children:(0,ms.jsx)(ca.N_,{to:"/user/".concat(null===t||void 0===t?void 0:t.owner),children:(0,ms.jsx)("span",{className:"text-[#1B8062] text-sm hover:underline cursor-pointer",children:null===t||void 0===t?void 0:t.owner})})})},n)},name:"To",title:"To"},{customRender:e=>{var t,n;let{offer:r,key:i}=e;const o=null===r||void 0===r||null===(t=r.valuations)||void 0===t||null===(n=t.blended)||void 0===n?void 0:n.usdValue;return o?(0,ms.jsxs)("td",{className:"whitespace-nowrap px-3 py-8 text-sm text-bold",children:["$",(0,Vb.K)(o)]},i):(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:"-"})},name:"FMV",title:"FMV"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:(0,el.default)((0,Hb.default)(null===t||void 0===t?void 0:t.blockTimestamp),"yyyy-MM-dd HH:mm")},n)},name:"blockTimestamp",sortable:!0,title:"Date Sent"},{customRender:e=>{let{offer:t,key:n}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-lg",children:Kb(zb(null===t||void 0===t?void 0:t.expiry))},n)},name:"Expiration",title:"Expiration"},...n?[]:[{customRender:e=>{let{offer:t,nft:n,key:r}=e;return(0,ms.jsx)("td",{className:"whitespace-nowrap px-3 py-8 text-sm",children:(0,ms.jsx)("div",{className:"w-28",children:(0,ms.jsx)(Bs.M2,{onClick:()=>y({offer:t,selectedNft:n,singleOfferType:"cancel-offer"}),text:"Cancel",variant:"secondary",bgColor:"white"})})},r)},name:"Action",title:"Action"}]];return{dataTotal:l,hasMore:p,isFetching:u,isLoadingResults:f,madeOfferFields:A,nftsWithOffers:i,scroll:b,setSort:x,sort:w}})({address:t,addresses:r,isPublic:n});return(0,ms.jsx)("div",{className:"flex flex-col justify-center items-center",children:a?(0,ms.jsx)(rS,{}):i?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(cS,{fields:c,initialSortConfig:p,items:l,onSort:d,isFetchingResults:s}),o&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:u})]})]}):(0,ms.jsx)(iS,{})})},vS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{const{walletAddresses:t}=(0,sa.useContext)(Tw);return(0,ms.jsx)(gS,{...e,addresses:t})}))),yS=e=>{let{address:t,isPublic:n=!1}=e;const r=(0,js.Zp)(),{search:i}=(0,js.zy)(),o=new URLSearchParams(i),a=o.get("offersTab")||0,[s,l]=(0,sa.useState)(Number(a)),c=(0,sa.useMemo)((()=>[{component:(0,ms.jsx)(mS,{address:t,isPublic:n}),name:"Received"},{component:(0,ms.jsx)(vS,{address:t,isPublic:n}),name:"Made"}]),[t]);return(0,ms.jsxs)("div",{className:"pt-4",children:[(0,ms.jsx)("div",{className:"py-[11px] px-3 bg-[#606e7d] bg-opacity-20 flex items-center justify-center w-[16rem] rounded-[5px] space-x-4 mb-9",children:c.map(((e,t)=>(0,ms.jsx)("button",{className:"py-1.5 px-3 rounded-[5px] font-bold text-base uppercase ".concat(s===t?"bg-primary text-black":"text-lightText"),onClick:()=>(e=>{o.set("offersTab","".concat(e)),r({search:o.toString()}),l(e)})(t),children:e.name},e.name)))}),c[s].component]})},bS=e=>{let{days:t}=e;return(0,ms.jsx)("div",{className:"bg-[#000000ab] absolute bottom-[-10px] m-auto flex items-center gap-1",children:(0,ms.jsxs)("div",{className:cy("flex items-center gap-1 border px-[6px] py-[4px] rounded",t<=1&&"bg-[#FF69693D] border-[#FF696985]",t>1&&t<=3&&"bg-[#FF8A4F3D] border-[#FF8A4F85]",t>3&&"bg-[#9A9A9A3D] border-[#9A9A9A85]"),children:[(0,ms.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,ms.jsx)("path",{d:"M6 4V6L7.5 7.5M10.5 6C10.5 8.48528 8.48528 10.5 6 10.5C3.51472 10.5 1.5 8.48528 1.5 6C1.5 3.51472 3.51472 1.5 6 1.5C8.48528 1.5 10.5 3.51472 10.5 6Z",stroke:t<=1?"#FF6969CC":t<=3?"#FF8A4FCC":"#9A9A9ACC",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,ms.jsxs)("p",{className:cy("text-[10px] font-[500] leading-none",t<=1&&"text-[#FF6969CC] hover:text-[#FF6969CC]",t>1&&t<=3&&"text-[#FF8A4FCC]",t>3&&"text-[#9A9A9ACC]"),children:[t," ",t>1?"Days":"Day"]})]})})},wS=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C;let{nft:A,handleClick:E,isLoading:_,isCatalog:T}=e;const[S,k]=(0,sa.useState)(null),[P,D]=(0,sa.useState)(!1),F=(0,us.getImageURL)(null!==(t=null===A||void 0===A||null===(n=A.nftData)||void 0===n||null===(r=n.images)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.url)&&void 0!==t?t:tl.A),N=window.location.pathname.includes("/collection"),{isFilterHidden:I}=Nw(),R=(0,sa.useMemo)((()=>{var e,t,n;return S?P?(0,ms.jsx)(py,{collectionAddress:(null===A||void 0===A||null===(t=A.nftData)||void 0===t?void 0:t.collectionAddress)||"",collectionName:(null===A||void 0===A||null===(n=A.nftData)||void 0===n?void 0:n.collectionName)||"",onError:e=>{(0,ol.R)(e),k(!0)},className:"object-cover aspect-square w-[152px] sm:w-[304px]"}):S?(0,ms.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!1,className:"object-cover aspect-square w-[152px] sm:w-[304px]",onMouseEnter:e=>(0,uA._)(e),onMouseLeave:e=>{const t=e.target;t.pause(),t.currentTime=0},onError:()=>{D(!0)},children:(0,ms.jsx)("source",{type:"video/mp4",src:F})}):void 0:(0,ms.jsx)("img",{src:F,onError:()=>{k(!0)},alt:"".concat(null===A||void 0===A||null===(e=A.nftData)||void 0===e?void 0:e.title," asset"),className:"object-cover aspect-square w-full"})}),[P,S,us.getImageURL,ol.R,k,D,F]),O=(0,sa.useRef)(null),[j,M]=(0,sa.useState)(0);(0,sa.useEffect)((()=>{const e=()=>{const e=O.current;if(e){const t=window.getComputedStyle(e),n=parseFloat(t.lineHeight),r=Math.ceil(e.scrollHeight/n);M(r)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[null===A||void 0===A||null===(o=A.nftData)||void 0===o?void 0:o.title,null===A||void 0===A||null===(a=A.nftData)||void 0===a?void 0:a.num,I]);return(0,ms.jsx)("a",{href:"/asset/".concat(null===A||void 0===A||null===(s=A.nftData)||void 0===s?void 0:s.collectionAddress,"/").concat(null===A||void 0===A||null===(l=A.nftData)||void 0===l?void 0:l.collectionName,"/").concat(null===A||void 0===A?void 0:A.nftID),children:(0,ms.jsxs)("div",{onClick:e=>E(e),onKeyDown:e=>{"Enter"===e.key&&E(e)},"data-testid":"nft-card",className:"actionNftCard relative self-center justify-self-center flex flex-col p-[16px] rounded-lg nft-card-shadow cursor-pointer w-auto max-sm:w-full\n\t\t\t",style:{maxWidth:"500px",minWidth:"240px"},children:[(0,ms.jsx)("div",{children:(0,ms.jsx)("div",{className:"flex sm:flex-col-reverse mb-2 sm:mb-1",children:(0,ms.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-1 max-sm:w-full",children:[_?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"hidden sm:flex cursor-wait my-[0.7rem] bg-gray-400 justify-center items-center animate-pulse object-cover aspect-square w-[152px] sm:w-full h-[304px]"}),(0,ms.jsx)("div",{className:"sm:hidden cursor-wait rounded bg-gray-400 flex justify-center items-center animate-pulse"})]}):(0,ms.jsxs)("div",{className:"relative isolate flex justify-center",children:[R,(0,ms.jsx)(bS,{days:(()=>{const e=new Date,t=(new Date(1e3*(null===A||void 0===A?void 0:A.settleDeadline)).getTime()-e.getTime())/864e5;return Math.ceil(t)})()})]}),_?(0,ms.jsxs)("div",{className:"flex flex-col sm:mb-2 pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"})]}):(0,ms.jsxs)("div",{className:"flex flex-col pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsxs)("div",{className:"flex flex-row relative",children:[(0,ms.jsx)("div",{className:"max-w-[80%]",children:null!==A&&void 0!==A&&null!==(c=A.nftData)&&void 0!==c&&c.additionalDetails?(0,ms.jsx)("p",{className:"text-[1.125rem] max-w-[240px] font-montserrat font-extrabold truncate pointer-events-none uppercase",children:null===A||void 0===A||null===(u=A.nftData)||void 0===u?void 0:u.title}):(0,ms.jsxs)("p",{className:"font-montserrat font-extrabold uppercase text-[1.125rem] ".concat(j>3&&"h-[6rem] custom-truncate"),ref:O,children:[null===A||void 0===A||null===(d=A.nftData)||void 0===d?void 0:d.title,(null===A||void 0===A||null===(p=A.nftData)||void 0===p?void 0:p.num)&&!(null!==A&&void 0!==A&&null!==(h=A.nftData)&&void 0!==h&&h.title.includes("#"))&&(0,ms.jsxs)("span",{className:"font-montserrat font-extrabold uppercase text-[1.125rem]",children:[" ","#",null===A||void 0===A||null===(f=A.nftData)||void 0===f?void 0:f.num]})]})}),(0,ms.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2 flex-shrink-0 absolute top-1 right-0",children:(0,ms.jsx)("div",{className:"flex flex-row sm:flex-col justify-center items-center gap-1",children:T&&!N&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(null===A||void 0===A||null===(m=A.nftData)||void 0===m?void 0:m.title,"-verified-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)(Ay,{"data-tooltip-id":"".concat(null===A||void 0===A||null===(g=A.nftData)||void 0===g?void 0:g.title,"-verified-tooltip"),"data-tooltip-content":"Verified Collection from the Flow NFT catalog","data-tooltip-place":"right",width:18,height:18})]})})})]}),null!==A&&void 0!==A&&null!==(v=A.nftData)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==A&&void 0!==A&&null!==(y=A.nftData)&&void 0!==y&&y.additionalDetails?null===A||void 0===A||null===(b=A.nftData)||void 0===b||null===(w=b.additionalDetails)||void 0===w?void 0:w.map((e=>(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6 truncate",children:(0,ms.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e})},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"})}):(0,ms.jsx)(ms.Fragment,{children:j<3&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6",children:(null===A||void 0===A||null===(x=A.nftData)||void 0===x?void 0:x.headerTraits)&&(null===A||void 0===A||null===(C=A.nftData)||void 0===C?void 0:C.headerTraits.map((e=>(0,ms.jsx)("p",{className:"font-montserrat text-[#8B8B8B] text-sm font-semibold last:border-none border-r-2 border-[#8B8B8B] pointer-events-none first:pl-0 pr-2 pl-2",children:e.value},e.displayType))))}),j<=1&&(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"})]})})]})]})})}),(0,ms.jsx)(Bs.zV,{order:A,isLoading:_})]})})},xS=e=>{var t,n,r;let{nft:i,handleClick:o,isLoading:a,isCatalog:s}=e;const[l,c]=(0,sa.useState)(null),[u,d]=(0,sa.useState)(!1),p=(0,us.getImageURL)(null!==(t=null===i||void 0===i?void 0:i.thumbnail)&&void 0!==t?t:tl.A),h=window.location.pathname.includes("/collection"),{isFilterHidden:f}=Nw(),{contract:{address:m,name:g},resourceName:v,nftID:y}=(0,us.nftTypeAndIdToLocationData)(null!==(n=i.typeIdentifier)&&void 0!==n?n:"",null!==(r=i.nftID)&&void 0!==r?r:""),b=(0,sa.useMemo)((()=>l?u?(0,ms.jsx)(py,{collectionAddress:(null===i||void 0===i?void 0:i.collectionAddress)||"",collectionName:(null===i||void 0===i?void 0:i.collectionName)||"",onError:e=>{(0,ol.R)(e),c(!0)},className:"object-cover aspect-square w-[152px] sm:w-[304px]"}):l?(0,ms.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!1,className:"object-cover aspect-square w-[152px] sm:w-[304px]",onMouseEnter:e=>{e.target.play()},onMouseLeave:e=>{const t=e.target;t.pause(),t.currentTime=0},onError:()=>{d(!0)},children:(0,ms.jsx)("source",{type:"video/mp4",src:p})}):void 0:(0,ms.jsx)("img",{src:p,onError:()=>{c(!0)},alt:"".concat(null===i||void 0===i?void 0:i.name," asset"),className:"object-cover aspect-square w-full"})),[u,l,ol.R,c,d,p]),w=(0,sa.useRef)(null),[x,C]=(0,sa.useState)(0);return(0,sa.useEffect)((()=>{const e=()=>{const e=w.current;if(e){const t=window.getComputedStyle(e),n=parseFloat(t.lineHeight),r=Math.ceil(e.scrollHeight/n);C(r)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i,f]),(0,ms.jsx)("a",{href:"/asset/".concat(m,"/").concat(g,"/").concat(v,"/").concat(y),children:(0,ms.jsxs)("div",{onClick:e=>o(e),onKeyDown:e=>{"Enter"===e.key&&o(e)},"data-testid":"nft-card",className:"actionNftCard relative self-center justify-self-center flex flex-col p-[16px] rounded-lg nft-card-shadow w-auto max-sm:w-full\n\t\t\t",style:{maxWidth:"500px",minWidth:"240px"},children:[(0,ms.jsx)("div",{className:"sm:hover:text-white sm:peer-hover:text-white ",children:(0,ms.jsx)("div",{className:"flex sm:flex-col-reverse mb-2 sm:mb-1",children:(0,ms.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-1 max-sm:w-full",children:[a?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"hidden sm:flex cursor-wait my-[0.7rem] bg-gray-400 justify-center items-center animate-pulse object-cover aspect-square w-[152px] sm:w-full h-[304px]"}),(0,ms.jsx)("div",{className:"sm:hidden cursor-wait rounded bg-gray-400 flex justify-center items-center animate-pulse"})]}):(0,ms.jsx)("div",{className:"relative isolate flex justify-center",children:b}),a?(0,ms.jsxs)("div",{className:"flex flex-col sm:mb-2 pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start bg-gray-400 animate-pulse cursor-wait mt-2 h-4"})]}):(0,ms.jsxs)("div",{className:"flex flex-col pl-3 sm:pl-0 col-span-2 sm:order-first",children:[(0,ms.jsxs)("div",{className:"flex flex-row relative",children:[(0,ms.jsx)("div",{className:"max-w-[80%]",children:(0,ms.jsx)("p",{className:"font-montserrat font-extrabold uppercase text-[1.125rem] ".concat(x>3&&"h-[6rem] custom-truncate"),ref:w,children:null===i||void 0===i?void 0:i.name})}),(0,ms.jsx)("div",{className:"flex flex-col items-center justify-center space-y-2 flex-shrink-0 absolute top-1 right-0",children:(0,ms.jsx)("div",{className:"flex flex-row sm:flex-col justify-center items-center gap-1",children:s&&!h&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nc.m_,{id:"".concat(null===i||void 0===i?void 0:i.name,"-verified-tooltip"),style:{backgroundColor:"white",color:"#031021",fontSize:"0.75rem"}}),(0,ms.jsx)(Ay,{"data-tooltip-id":"".concat(null===i||void 0===i?void 0:i.name,"-verified-tooltip"),"data-tooltip-content":"Verified Collection from the Flow NFT catalog","data-tooltip-place":"right",width:18,height:18})]})})})]}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"}),(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-6"})]})]})})}),(0,ms.jsx)("div",{className:"w-full h-[10rem] flex items-center justify-center",children:(0,ms.jsx)(Bs.Xb,{})})]})})},CS=e=>{let{allUserActionCenterItems:t,isLoading:n,isFiltered:r}=e;const{selectCard:i}=wb();return n?(0,ms.jsx)(QC,{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("ul",{className:"w-full h-full grid pb-4 gap-4",style:{gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))"},children:null===t||void 0===t?void 0:t.map(((e,t)=>{const r=t=>{t.preventDefault(),"loan"===(null===e||void 0===e?void 0:e.type)||"rental"===(null===e||void 0===e?void 0:e.type)?i({loanRentalActions:e,selected:{contractAddress:e.nftData.collectionAddress,contractName:e.nftData.collectionName,nftID:e.nftID,nftType:e.nftType}}):i({lostAndFoundModal:!0,lostAndFoundTicketData:{catalogIdentifier:e.catalogIdentifier,ticketID:e.ticketID},selected:{contractAddress:e.collectionAddress,contractName:e.collectionName,nftID:e.nftID,nftType:e.typeIdentifier}})};return"loan"===(null===e||void 0===e?void 0:e.type)||"rental"===(null===e||void 0===e?void 0:e.type)?(0,ms.jsx)(wS,{handleClick:r,nft:e,isLoading:n,isCatalog:!0},"".concat(null===e||void 0===e?void 0:e.nftID,"-").concat(t)):(0,ms.jsx)(xS,{handleClick:r,nft:e,isLoading:n,isCatalog:!0},"".concat(null===e||void 0===e?void 0:e.nftID,"-").concat(t))}))}),0===t.length&&!n&&(0,ms.jsx)("div",{className:"pt-6",children:(0,ms.jsx)(bA,{isUnsupportedSelection:!1,emptyActionsPage:!r})})]})},AS=e=>{let{child:t,title:n,filterIcon:r}=e;const[i,o]=(0,sa.useState)(!0),a=(0,sa.useMemo)((()=>(0,ms.jsx)("svg",{"data-testid":"listing-type-chevron",className:cy({"rotate-0":!i,"rotate-180":i}),width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ms.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0L7 8L14 0L0 0Z",fill:i?"#04e5a3":"#F8F9FA"})})),[i]);return(0,ms.jsxs)("div",{className:cy("rounded-[0.375rem] cursor-pointer border-[1px] border-neutral-400 border-opacity-25 py-[0.875rem]",{"hover:bg-[#ffffff29]":!i}),children:[(0,ms.jsxs)("div",{className:"flex items-center justify-between w-full px-[1rem]",onClick:()=>o(!i),onKeyDown:e=>{"Enter"===e.key&&o(!i)},children:[(0,ms.jsxs)("div",{className:"flex items-center gap-[0.5rem]",children:[r,(0,ms.jsx)("span",{className:"text-[0.875rem] font-montserrat font-[600]",children:n})]}),a]}),i?(0,ms.jsx)("div",{className:"space-y-2 mt-3 overflow-y-auto styled-scroll px-[1rem]",children:t}):null]})},ES=e=>{let{filter:t,setFilter:n}=e;return(0,ms.jsxs)("div",{className:"space-y-2",children:[(0,ms.jsx)(Iy,{name:"listing-type",value:"all",label:"Show All",disabled:!1,onChange:n,isChecked:"all"===t,icon:void 0,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(Iy,{name:"listing-type",value:"rental",label:"Rentals",disabled:!1,onChange:n,isChecked:"rental"===t,icon:void 0,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(Iy,{name:"listing-type",value:"loan",label:"Loans",disabled:!1,onChange:n,isChecked:"loan"===t,icon:void 0,iconPosition:"right",collapsible:!1}),(0,ms.jsx)(Iy,{name:"listing-type",value:"lostAndFound",label:"Inbox",disabled:!1,onChange:n,isChecked:"lostAndFound"===t,icon:void 0,iconPosition:"right",collapsible:!1})]})};var _S,TS,SS,kS,PS,DS;function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FS.apply(null,arguments)}function NS(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",FS({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",fill:"none",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,_S||(_S=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4081 2.59269C14.7986 2.98322 14.7986 3.61638 14.4081 4.00691L12.7111 5.70396C12.3205 6.09449 11.6874 6.09449 11.2968 5.70396C10.9063 5.31344 10.9063 4.68027 11.2968 4.28975L12.9939 2.59269C13.3844 2.20217 14.0176 2.20217 14.4081 2.59269Z",fill:"#CED4DA"})),TS||(TS=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4081 15.4071C14.0176 15.7976 13.3844 15.7976 12.9939 15.4071L11.2968 13.7101C10.9063 13.3195 10.9063 12.6864 11.2968 12.2958C11.6874 11.9053 12.3205 11.9053 12.7111 12.2958L14.4081 13.9929C14.7986 14.3834 14.7986 15.0166 14.4081 15.4071Z",fill:"#CED4DA"})),SS||(SS=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.9996 9C16.9996 9.5523 16.5519 10 15.9996 10H13.5996C13.0473 10 12.5996 9.5523 12.5996 9C12.5996 8.4477 13.0473 8 13.5996 8H15.9996C16.5519 8 16.9996 8.4477 16.9996 9Z",fill:"#CED4DA"})),kS||(kS=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0C8.5523 0 9 0.44772 9 1V3.4C9 3.95228 8.5523 4.4 8 4.4C7.4477 4.4 7 3.95228 7 3.4V1C7 0.44772 7.4477 0 8 0Z",fill:"#CED4DA"})),PS||(PS=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.59367 2.59269C1.9842 2.20217 2.61736 2.20217 3.00789 2.59269L4.70494 4.28975C5.09547 4.68027 5.09547 5.31344 4.70494 5.70396C4.31442 6.09449 3.68125 6.09449 3.29073 5.70396L1.59367 4.00691C1.20315 3.61638 1.20315 2.98322 1.59367 2.59269Z",fill:"#CED4DA"})),DS||(DS=sa.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5081 7.49414C9.781 7.76784 9.8718 8.17434 9.7412 8.53814L6.9412 16.3381C6.7962 16.742 6.4097 17.0083 5.98062 17C5.55156 16.9917 5.17565 16.7106 5.04642 16.3013L4.00187 12.9936L0.693183 11.927C0.285293 11.7955 0.00653314 11.4187 0.000113136 10.9902C-0.00630686 10.5617 0.261043 10.1767 0.664813 10.033L8.4648 7.25804C8.829 7.12854 9.2352 7.22044 9.5081 7.49414ZM4.11453 10.9285L5.10682 11.2484C5.41504 11.3478 5.65606 11.5903 5.75358 11.8991L6.0607 12.8715L7.1452 9.85034L4.11453 10.9285Z",fill:"#CED4DA"})))}const IS=sa.forwardRef(NS),RS=(__webpack_require__.p,e=>{let{loggedUserAddress:t,accountSummaryAddresses:n}=e;const[r,i]=(0,sa.useState)([]),[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)([]),[c,u]=(0,sa.useState)("all"),[d,p]=(0,sa.useState)(!0),h=(0,sa.useCallback)((async e=>{try{await(async e=>{let{userAddress:t,callbackFn:n}=e;const r=pl.kA.collection("listingAvailable").where("flowtyStorefrontAddress","==",t).where("state","==","FUNDED");await r.onSnapshot((async e=>{let{docs:t}=e;const r=t.map((e=>e.data()));n(r)}))})({callbackFn:e=>{const t=[];e.forEach((e=>{var n,r,i,o,a,s,l,c,u;e&&t.push({enabledAutoRepayment:e.enabledAutoRepayment,listingResourceID:e.listingResourceID,loanAmount:+e.amount,nftContractStoragePath:String(null===(n=e.detail)||void 0===n||null===(r=n.nft)||void 0===r||null===(i=r.contract)||void 0===i||null===(o=i.contractMetadata)||void 0===o?void 0:o.storagePath),nftData:{...null===(a=e.detail)||void 0===a?void 0:a.card},nftID:e.nftID,nftType:e.nftType,paymentTokenName:e.paymentTokenName,repaymentDue:null!==(s=null===(l=e.derivations)||void 0===l||null===(c=l.calculatedValues)||void 0===c?void 0:c.repaymentDue)&&void 0!==s?s:0,settleDeadline:Number(null===(u=e.settleDeadline)||void 0===u?void 0:u.seconds),term:+e.term,type:"loan"})})),i(t)},userAddress:e})}catch(t){ds.o.track("ACTIVITY_CENTER_LOAN_SNAPSHOT_ERROR",{error:t})}}),[t]),f=(0,sa.useCallback)((async e=>{try{await(async e=>{let{userAddresses:t,callbackFn:n}=e;const r=pl.kA.collection("listingRented").where("renterAddress","in",t).where("returned","==",!1).where("settled","==",!1);await r.onSnapshot((async e=>{let{docs:t}=e;const r=t.map((e=>e.data()));n(r)}))})({callbackFn:e=>{const t=[];e.forEach((e=>{var n,r,i,o,a,s,l,c,u,d,p;if(!e)return;const h=e.settleDeadline;t.push({enabledAutoRepayment:e.enabledAutomaticReturn,nftContractStoragePath:String(null===(n=e.listingAvailable)||void 0===n||null===(r=n.detail)||void 0===r||null===(i=r.nft)||void 0===i||null===(o=i.contract)||void 0===o||null===(a=o.contractMetadata)||void 0===a?void 0:a.storagePath),nftData:{...null===(s=e.listingAvailable)||void 0===s||null===(l=s.detail)||void 0===l?void 0:l.card},nftID:null===(c=e.listingAvailable)||void 0===c?void 0:c.nftID,nftType:null===(u=e.listingAvailable)||void 0===u?void 0:u.nftType,paymentTokenName:null===(d=e.listingAvailable)||void 0===d?void 0:d.paymentTokenName,rentalFee:e.amount,rentalRefundableDeposit:e.deposit,rentalResourceID:String(e.rentalResourceID),renterAddress:e.renterAddress,settleDeadline:+h.seconds,term:null===(p=e.listingAvailable)||void 0===p?void 0:p.term,type:"rental"})})),a(t)},userAddresses:e})}catch(t){ds.o.track("ACTIVITY_CENTER_RENTAL_SNAPSHOT_ERROR",{error:t}),(0,fs.t)("error getting rentals",t)}}),[t]),m=(0,sa.useCallback)((async()=>{p(!0);try{const e=(await Tf.su.scripts.getLostAndFoundTickets(String(t))).map((e=>{const t=e.typeIdentifier.split(".")[1],n=e.typeIdentifier.split(".")[2];return{catalogIdentifier:e.catalogIdentifier,collectionAddress:"0x".concat(t),collectionName:n,description:e.description,memo:e.memo,name:e.name,nftID:e.nftID,redeemed:e.redeemed,redeemer:e.redeemer,thumbnail:e.thumbnail,ticketID:e.ticketID,typeIdentifier:e.typeIdentifier}}));l(e),p(!1)}catch(e){console.log("error getting lost and found",e),p(!1)}}),[t]),g=(e,t)=>e.settleDeadline-t.settleDeadline,v=(0,sa.useMemo)((()=>{if("loan"===c)return r.sort(g);if("rental"===c)return o.sort(g);if("lostAndFound"===c)return s;const e=[...r,...o];return e.sort(g),[...e,...s]}),[c,r,o,s]);(0,sa.useEffect)((()=>{(async()=>{t&&(p(!0),"all"===c&&(await h(t),await f(null!==n&&void 0!==n?n:[]),await m()),"loan"===c&&await h(t),"rental"===c&&await f(null!==n&&void 0!==n?n:[]),"lostAndFound"===c&&await m(),p(!1))})()}),[c]);return{allUserActionCenterItems:v,isFiltered:"all"!==c,isLoading:d,traitsFilters:(0,ms.jsx)(AS,{title:"Type",child:(0,ms.jsx)(ES,{filter:c,setFilter:u}),filterIcon:(0,ms.jsx)(IS,{})})}}),OS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o,a;let{authStore:s}=e;const[l,c]=(0,sa.useState)(!1),{allUserActionCenterItems:u,traitsFilters:d,isLoading:p,isFiltered:h}=RS({accountSummaryAddresses:Object.keys(null!==(t=null===s||void 0===s||null===(n=s.loggedUser)||void 0===n?void 0:n.accountSummaries)&&void 0!==t?t:{}),loggedUserAddress:null!==(r=null===s||void 0===s||null===(i=s.loggedUser)||void 0===i?void 0:i.addr)&&void 0!==r?r:""}),{width:f}=(0,Rw.k)(),m=f<1200;return(0,ms.jsx)("div",{className:"w-full flex flex-col",children:(0,ms.jsxs)("div",{className:"w-full flex gap-3",children:[(0,ms.jsxs)("div",{className:"flex flex-col gap-4 lg:w-1/4 xl:w-1/6 min-w-[340px] max-lg:hidden sticky top-[148px] h-full ".concat(l?"hidden":""),children:[(0,ms.jsx)("div",{className:"flex gap-3",children:(0,ms.jsx)(CC,{isFilterHidden:l,setIsFilterHidden:c})}),(0,ms.jsx)("div",{className:"transition-width duration-200 ease-out ".concat(l?"w-0":"w-full"),children:(0,ms.jsx)("div",{className:"hidden flex-col xl:col-span-1 transition-opacity duration-[300ms] ease-out lg:flex ".concat(l?"opacity-0":"opacity-100"),children:(0,ms.jsx)("div",{className:"border-glassFillGrayBorder p-[1rem] rounded-[0.5rem] border-[0.3px] hidden lg:overflow-y-auto overflow-x-hidden lg:flex lg:flex-col items-stretch",children:(0,ms.jsx)("div",{className:"mb-[1rem]",children:d})})})})]}),(0,ms.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[m?(0,ms.jsx)(OC,{mobilePageFilters:d,isActionsTab:!0,address:null!==(o=null===s||void 0===s||null===(a=s.loggedUser)||void 0===a?void 0:a.addr)&&void 0!==o?o:""}):(0,ms.jsx)("div",{className:"flex flex-col justify-center gap-3 max-lg:hidden h-[32px]",children:(0,ms.jsx)("div",{className:"flex justify-between",children:(0,ms.jsxs)("div",{className:"flex gap-3",children:[(0,ms.jsx)("div",{className:"flex flex-col gap-3 lg:w-1/4 xl:w-1/6 min-w-[340px] ".concat(l?"":"hidden"),children:(0,ms.jsx)("div",{className:"flex gap-3",children:(0,ms.jsx)(CC,{isFilterHidden:l,setIsFilterHidden:c})})}),(0,ms.jsx)("div",{className:"font-montserrat flex items-center font-[700] flex-shrink-0 mr-2",children:!p&&(0,ms.jsx)("p",{className:"font-montserrat font-[700]",children:"".concat(u.length," Items")})})]})})}),(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)("div",{className:"min-h-screen relative flex flex-col justify-start w-full",children:(0,ms.jsx)(CS,{allUserActionCenterItems:u,isLoading:p,isFiltered:h})})," "]})]})]})})})));var jS=__webpack_require__(49098);const MS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{profile:n,authStore:r,isPublic:i=!1}=e;const[o,a]=(0,sa.useState)(!1),[s,l]=(0,sa.useState)({}),{selectCard:c}=wb();(0,sa.useEffect)((()=>{const e={...s};null!==n&&void 0!==n&&n.childAccounts&&(Object.entries(n.childAccounts).forEach((t=>{var n;let[r,i]=t;null!==(n=i.display)&&void 0!==n&&n.thumbnail?e[i.address]=i.display.thumbnail:delete e[i.address]})),l(e))}),[]);const u=(0,sa.useCallback)((async e=>{const t={...e},n=await(0,nl.t)({nftId:String(t.nftID),nftType:t.nftType}),r=await(0,jS.J)(n),o=(0,us.nftTypeAndIdToLocationData)(n.type,n.id),s=(0,us.getNFTIdentifier)(o);await(async()=>{if(!n.owner)return!1;try{return await Tf.su.scripts.validateUserOwnsNft(n.owner||"",n.id.toString(),n.contractName,n.contractAddress,o.resourceName,r)}catch(e){return ds.o.track("ERROR_VALIDATING_USER_OWNS_NFT",{err:e}),!1}})()||i?c({selected:{contractAddress:e.contractAddress,contractName:e.contractName,nftID:e.nftID,nftType:e.nftType}}):(a(!0),await Tf.su.api.refreshMetadata(s),await setTimeout((()=>{a(!1)}),4e3))}),[i]),d=i?null===n||void 0===n?void 0:n.walletAddress:null===r||void 0===r||null===(t=r.loggedUser)||void 0===t?void 0:t.addr;return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("div",{className:"z-0 flex flex-wrap justify-end",children:o&&(0,ms.jsxs)(sT,{className:"flex flex-col items-center justify-center w-full p-3 z-10",variant:"danger",onClose:()=>{a(!1)},children:[(0,ms.jsx)("h2",{children:"Missing Item"}),(0,ms.jsx)("p",{children:"Our system does not identify you as the owner of this nft, please be sure to refresh your account."})]})}),(0,ms.jsx)(xA,{handleSelectCard:u,address:d||""})]})})));var LS;function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BS.apply(null,arguments)}function US(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",BS({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,LS||(LS=sa.createElement("path",{d:"M5.3335 5.33325V11.9999H6.10885M26.5843 14.6666C25.9282 9.40484 21.4397 5.33325 16.0002 5.33325C11.5237 5.33325 7.69122 8.09081 6.10885 11.9999M6.10885 11.9999H12.0002M26.6668 26.6666V19.9999H25.8915M25.8915 19.9999C24.3091 23.909 20.4767 26.6666 16.0002 26.6666C10.5607 26.6666 6.07215 22.595 5.41602 17.3333M25.8915 19.9999H20.0002",stroke:"#04E5A3",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const VS=sa.forwardRef(US),HS=(__webpack_require__.p,e=>{let{tabs:t,address:n}=e;const r=(0,js.Zp)(),{search:i}=(0,js.zy)(),{fetchSearchResults:o}=Nw(),a=new URLSearchParams(i),s=a.get("tab")||0,[l,c]=(0,sa.useState)(Number(s)),[u,d]=(0,sa.useState)(!1),p=isNaN(l)||l<0||l>=t.length;if((0,sa.useEffect)((()=>{p&&(r("/user/".concat(n),{replace:!0}),c(0))}),[p]),p)return null;const h=(0,ms.jsxs)("button",{onClick:async()=>{u||(d(!0),ds.o.track("Refresh Inventory Click"),d(!0),ov(null!==n&&void 0!==n?n:""),setTimeout((()=>{d(!1)}),4e3))},className:"flex flex-row items-center hover:cursor-pointer group hover:opacity-75",children:[(0,ms.jsx)("p",{className:"font-montserrat text-primary font-[0.875rem] capitalize mr-[0.25rem]",children:"Refresh Profile"}),(0,ms.jsx)(VS,{className:"w-[1.25rem] ".concat(u&&"animate-spin")})]});return(0,ms.jsxs)("div",{className:"mt-14 mb-1",children:[(0,ms.jsx)("div",{className:"py-3 md:pb-[20px] md:sticky md:top-[76px] z-20 bg-darkBg",children:(0,ms.jsxs)("div",{className:"flex justify-between border-b border-[#6C757D40]",children:[(0,ms.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto","aria-label":"Tabs",children:t.map(((e,t)=>(0,ms.jsxs)("button",{onClick:()=>(e=>{a.set("tab","".concat(e)),r({search:a.toString()}),c(e),0===e&&o(!0)})(t),className:"font-montserrat uppercase pb-2.5 flex items-center\n\t\t\t\t\t\t\t".concat(l===t?"border-primary text-primary":"border-transparent text-lightText hover:text-primary"," \n\t\t\t\t\t\t\twhitespace-nowrap tab-window-padding justify-center border-b-[3px] font-medium text-sm sm:text-base\n\t\t\t\t\t\t"),children:[e.name,"Offers"===e.name&&(0,ms.jsx)("div",{className:"w-[10px] h-[10px] bg-primary rounded-full ml-2 drop-shadow-sm"})]},e.name)))}),(0,ms.jsxs)("div",{className:"items-center justify-center hidden lg:flex",children:[(0,ms.jsx)("p",{className:"font-montserrat text-[#C8C8C8] font-[0.875rem] capitalize mr-[0.75rem]",children:"Missing items?"}),(0,ms.jsx)(uT.o,{Comp:h,tooltipText:"Refreshes this account's inventory. Can take a few minutes to complete",tooltipId:"refresh-profile-tooltip"})]})]})}),t[l].component]})}),zS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r;let{authStore:i}=e;null!==i&&void 0!==i&&null!==(t=i.loggedUser)&&void 0!==t&&t.loggedIn||window.location.replace("/");const o="".concat(null!==i&&void 0!==i&&null!==(n=i.loggedUser)&&void 0!==n&&n.addr?"Flowty: Your NFT Assets":"Flowty NFT: User Profile Page"),a=[{component:(0,ms.jsx)(MS,{profile:(null===i||void 0===i?void 0:i.loggedUser)||null}),name:"Collection"},{component:(0,ms.jsx)(yS,{address:"".concat(null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.addr)}),name:"Offers"},{component:(0,ms.jsx)(OS,{}),name:"Action Center"}];return(0,ms.jsx)("div",{className:"min-h-screen bg-cover bg-no-repeat bg-center bg-fixed",children:(0,ms.jsx)(Fw,{publicAccount:(null===i||void 0===i?void 0:i.loggedUser)||null,endpoint:"user",children:()=>{var e;return(0,ms.jsx)(fv,{children:(0,ms.jsxs)("div",{className:"container",children:[(0,ms.jsx)(ac,{metaTitle:o,metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)(nS,{profile:null===i||void 0===i?void 0:i.loggedUser}),(0,ms.jsx)("div",{className:"mt-4",children:(0,ms.jsx)(QT,{user:null===i||void 0===i?void 0:i.loggedUser})}),(0,ms.jsx)(HS,{tabs:a,address:(null===i||void 0===i||null===(e=i.loggedUser)||void 0===e?void 0:e.addr)||""})]})})}})})}))),WS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{listing:n,authStore:r,className:i}=e;return null!==n&&void 0!==n&&n.renter&&"LISTED"===(null===n||void 0===n?void 0:n.state)?(0,ms.jsx)("div",{className:"absolute top-0 left-0 w-full flex justify-center",children:(0,ms.jsx)("div",{className:"flex justify-center items-center py-1 rounded-t-xl ".concat(i," ").concat(null!==n&&void 0!==n&&n.renter&&(null===r||void 0===r||null===(t=r.loggedUser)||void 0===t?void 0:t.addr)===n.renter?"bg-primary":"bg-secondary"),children:(0,ms.jsx)("p",{className:"text-white text-bold me-2",children:"Private Listing"})})}):null})));var qS=__webpack_require__(44320),GS=__webpack_require__.n(qS);const YS=e=>{let{children:t,open:n,setOpen:r}=e;return(0,ms.jsx)(cc.e.Root,{show:n,as:sa.Fragment,children:(0,ms.jsxs)(uc.l,{as:"div",className:"relative z-10",onClose:r,children:[(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,ms.jsx)("div",{className:"fixed inset-0 bg-gray-800 bg-opacity-75 transition-opacity"})}),(0,ms.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,ms.jsx)("div",{className:"flex min-h-full items-end justify-center p-2 text-center sm:items-center sm:p-0",children:(0,ms.jsx)(cc.e.Child,{as:sa.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,ms.jsx)(uc.l.Panel,{className:"relative transform overflow-hidden rounded-md  bg-slate-700 px-2 text-center shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-3",children:t})})})})]})})},KS=e=>{let{error:t,reset:n}=e;return(0,ms.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,ms.jsx)(bT,{}),(0,ms.jsx)("h5",{className:"mt-4 text-white",children:"Transaction was not successful"}),(0,ms.jsx)("p",{className:"text-lightText text-center px-4"}),(0,ms.jsx)("div",{className:"flex justify-between mt-5",children:(0,ms.jsx)(Bs.M2,{variant:"primary",onClick:n,text:"Try again"})})]})},QS=e=>{let{transactionId:t,callTransaction:n}=e;const r=(0,sa.useRef)(!1);return(0,sa.useEffect)((()=>{if(!r.current)return n(),()=>{r.current=!0}}),[]),(0,ms.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,ms.jsx)(bc.BM,{color:"#04E5A3",height:45,width:45}),(0,ms.jsx)("h5",{className:"text-lightText mt-4",children:t?(0,ms.jsxs)("p",{children:["Follow your transaction on\xa0",(0,ms.jsx)("a",{className:"modal-external-link",href:"".concat(ss.I4,"/").concat(t,"/"),target:"_blank",rel:"noreferrer",children:"Flowscan"})]}):(0,ms.jsx)("p",{children:"Transaction is processing..."})}),(0,ms.jsx)(sT,{variant:"dark",className:"mt-2",children:(0,ms.jsxs)("div",{className:"flex items-center",children:[(0,ms.jsx)(eT,{}),(0,ms.jsxs)("div",{children:[(0,ms.jsx)("h5",{className:"text-white",children:"Note"}),(0,ms.jsx)("p",{className:"text-lightText",children:"It may take up to five minutes for your transaction to process"})]})]})})]})},XS=e=>{let{rentalListing:t,nftProviderPathIdentifier:n,nftProviderAddress:r}=e;const[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(null),[l,c]=(0,sa.useState)(null),[u,d]=(0,sa.useState)(!1),[p,h]=(0,sa.useState)(!1);(0,sa.useEffect)((()=>{h(!1)}),[t]);const f=e=>{e&&e.includes(Sf)||s(e)},m=()=>{o(!i),c(null),f(null),i?ds.o.track("Return Rental Modal Launched",{rentalListing:t}):ds.o.track("Return Rental Modal Closed",{rentalListing:t})},g=(0,sa.useCallback)((e=>{let{nextStep:t,currentStep:n}=e;return(0,ms.jsxs)("div",{className:"flex justify-center px-4 py-2 gap-[6rem]",children:[(0,ms.jsx)("button",{onClick:m,className:"w-[10em] md:w-[12em]   mr-4 flex justify-center items-center border border-white rounded-md font-extrabold text-base shadow-slate-100 hover-button-white px-[1.25rem] py-2",children:"CLOSE"}),1===n&&(0,ms.jsx)("button",{className:"w-[10em] md:w-[12em]  flex justify-center items-center uppercase  px-[1.25rem] py-2 bg-primary hover-button border-transparent rounded-md border-2 text-base font-extrabold text-black",onClick:()=>{t()},children:"Return"})]})}),[m]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("button",{className:"w-[10em] md:w-[12em]  flex justify-center items-center uppercase  px-[1.25rem] py-2 bg-primary hover-button border-transparent rounded-md border-2 text-base font-extrabold text-black",disabled:p,onClick:m,children:p?"Processing...":"Return"}),(0,ms.jsx)(YS,{open:i,setOpen:o,children:(0,ms.jsxs)("div",{className:"flowty-modal loan-listing-modal",children:[(0,ms.jsx)("div",{className:"flowty-modal loan-listing-modal p-2",children:(0,ms.jsx)("h2",{className:"m-2 text-xl text-center",children:"RETURN RENTAL"})}),(0,ms.jsx)("div",{className:"p-2 border-[#545353] border-t",children:(0,ms.jsxs)(GS(),{isLazyMount:!0,className:"flex flex-col-reverse p-3 gap-3",nav:(0,ms.jsx)(g,{}),children:[(0,ms.jsx)("div",{className:"flex flex-col justify-center items-center",children:(0,ms.jsx)("p",{className:"text-white text-lg",children:"Are you sure you want to return this NFT?"})}),(0,ms.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[a?(0,ms.jsx)(KS,{error:a,reset:()=>{f(""),c("")}}):!u&&(0,ms.jsx)(QS,{transactionId:l,callTransaction:async()=>{try{var e,i,o,s,l,u,p,m,g,v,y;h(!0);const b=await HT(t.listingResourceID);if(!b)return f("rental does not have an associated listing"),void ds.o.track("Return Rental Submit Error",{error:a,rentalListing:t});const w=Tf.su.tokens.getTokenInfo(b.listingAvailable.paymentTokenName),x=(0,us.nftTypeToContractID)(b.nftType);if(!(await pl.kA.collection("flowNFTContract").doc(x).get()).data())throw new Error("Contract not found");const C=null===b||void 0===b?void 0:b.settleDeadline,A={enabledAutoRepayment:null===b||void 0===b?void 0:b.enabledAutomaticReturn,listingResourceID:String(null===b||void 0===b?void 0:b.listingResourceID),nftContractStoragePath:String(null===b||void 0===b||null===(e=b.listingAvailable)||void 0===e||null===(i=e.detail)||void 0===i||null===(o=i.nft)||void 0===o||null===(s=o.contract)||void 0===s||null===(l=s.contractMetadata)||void 0===l?void 0:l.storagePath),nftData:{...null===b||void 0===b||null===(u=b.listingAvailable)||void 0===u||null===(p=u.detail)||void 0===p?void 0:p.card},nftID:null===b||void 0===b||null===(m=b.listingAvailable)||void 0===m?void 0:m.nftID,nftType:null===b||void 0===b||null===(g=b.listingAvailable)||void 0===g?void 0:g.nftType,paymentTokenName:null===b||void 0===b||null===(v=b.listingAvailable)||void 0===v?void 0:v.paymentTokenName,rentalFee:null===b||void 0===b?void 0:b.amount,rentalRefundableDeposit:null===b||void 0===b?void 0:b.deposit,rentalResourceID:String(null===b||void 0===b?void 0:b.rentalResourceID),settleDeadline:+C.seconds,term:null===b||void 0===b||null===(y=b.listingAvailable)||void 0===y?void 0:y.term,type:"rental"};await Tf.su.returnRental(A,w,c,r,n),d(!0),ds.o.track("Return Rental Submit Successfully",{rentalListing:t})}catch(b){h(!1),f((null===b||void 0===b?void 0:b.message)||"ERROR"),ds.o.track("Return Rental Submit Error",{error:b,rentalListing:t}),(0,fs.t)(b)}}}),(0,ms.jsx)("div",{className:"flex flex-col justify-center items-center",children:u&&(0,ms.jsx)(PT,{msg:"Success! You have returned the item attached to this rental, your deposit has been returned"})})]})]})})]})})]})},ZS=e=>{let{rentalListing:t,isOwner:n,isOrderListedByLoggedAccount:r}=e;const i=(0,us.nftTypeAndIdToLocationData)(t.nftType,t.nftID),{openSearchNFT:o}=fw({collectionAddress:i.contract.address,collectionName:i.contract.name,nftId:i.nftID,resourceName:i.resourceName}),{selectCard:a}=wb(),s=(0,sa.useCallback)((e=>{var t,n,r,i;let{singleListing:s}=e;a({selected:{contractAddress:null!==(t=null===o||void 0===o?void 0:o.contractAddress)&&void 0!==t?t:"",contractName:null!==(n=null===o||void 0===o?void 0:o.contractName)&&void 0!==n?n:"",nftID:null!==(r=null===o||void 0===o?void 0:o.id)&&void 0!==r?r:"",nftType:null!==(i=null===o||void 0===o?void 0:o.type)&&void 0!==i?i:""},singleDelistAction:"delistRental",singleDelistOrder:s})}),[a,o,t]);return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsx)("button",{disabled:!r,onClick:()=>s({singleListing:t}),className:"".concat(n?"bg-danger hover-button-red":"bg-primary hover-button","  ").concat(!r&&n?"opacity-50 cursor-not-allowed":"hover-glow  hover-button-red"," shadow text-black text-bold text-lg py-2 px-10 w-full rounded-md hover-button cursor-pointer"),children:"DELIST"})})},JS=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m;let{authStore:g,listing:v,isListingActive:y,isListingExpired:b,setListing:w}=e;const x="paymentTokenType"in v?(0,us.getTokenFromType)(v.paymentTokenType):us.SupportedTokens.FLOW,[C,A]=(0,sa.useState)(null),[E,_]=(0,sa.useState)(null),T=(0,us.getContractNameFromType)(v.nftType),S=(0,us.getContractAddressFromType)(v.nftType),{iterateAndRunScript:k,hybridCustodyNFTStatus:P}=(0,bs.g)(),D="".concat(S,".").concat(T),[F,N]=(0,sa.useState)(null),I=(null!==(t=null===g||void 0===g?void 0:g.getAccountSummaryAddresses())&&void 0!==t?t:[]).includes(F||""),R=(null===g||void 0===g||null===(n=g.loggedUser)||void 0===n?void 0:n.addr)===(null===v||void 0===v?void 0:v.flowtyStorefrontAddress);(0,sa.useEffect)((()=>{const e=(0,us.nftTypeAndIdToLocationData)(v.nftType,v.nftID),t=(0,us.getNFTIdentifier)(e);pl.kA.collection("flowNFT").doc(t).get().then((e=>{if(!e.exists)return;const t=e.data();N((null===t||void 0===t?void 0:t.owner)||"")})).catch((e=>{ds.o.track("ERROR_FIREBASE_GETTING_NFT",{e:e})}))}),[]);const O=(0,sa.useMemo)((()=>{var e,t;return(null===g||void 0===g||null===(e=g.loggedUser)||void 0===e?void 0:e.addr)!==F?(0,gb.D)((null===P||void 0===P||null===(t=P[F||""])||void 0===t?void 0:t[D])||[],S,T):""}),[F,g,P]);(0,sa.useEffect)((()=>{var e,t;k([D],(null===g||void 0===g||null===(e=g.loggedUser)||void 0===e?void 0:e.childAccounts)||{},(null===g||void 0===g||null===(t=g.loggedUser)||void 0===t?void 0:t.addr)||"")}),[null===g||void 0===g?void 0:g.loggedUser,v]);const j=(0,us.isContractWithValuation)(T)?(0,ms.jsx)(ic,{contractName:T,labelType:"DTV",nftID:v.nftID.toString()}):void 0;(0,sa.useEffect)((()=>{x===us.SupportedTokens.FLOW?(0,oT.d)(x).then((e=>{(0,fs.t)("setTokenPrice",e.value),A(e.value)})):A(1)}),[x]),(0,sa.useEffect)((()=>{try{pl.db.collection("rentalAvailable").doc(v.listingResourceID.toString()).onSnapshot((e=>{const t=e.data();(0,fs.t)("snapshot",t),t.state!==v.state?w({...t,blockTimestamp:v.blockTimestamp}):(0,fs.t)("states are equal, skipping..")}))}catch(e){ds.o.track("ERROR_FIREBASE_GETTING_RENTAL_AVAILABLE",{e:e})}}),[]);const M=(0,ms.jsx)("h1",{className:"inline",children:(0,us.truncateString)(null===v||void 0===v||null===(r=v.detail)||void 0===r||null===(i=r.nft)||void 0===i?void 0:i.title,ss.Sp)}),L={costToRent:v.amount+v.deposit};return(0,sa.useEffect)((()=>{(async()=>{const e=(0,us.nftLocationDataFromListing)(v),t=(0,us.getNFTIdentifier)(e),n=await Y_(t,"flowNFT");if(!n)throw new Error("could not find nft");return(async e=>{if(!e.owner)throw new Error("nft owner is required to calculate royalty rate");const t=await(0,jS.J)(e);if(!t)throw new Error("unable to get storage path for nft to calculate royalty rate");const n=await Tf.su.scripts.getRoyaltyRate(e.owner||"",e.id.toString(),t);return(0,fs.t)("getRoyaltyRateForNFT",{rate:n}),Number(n)})(n)})().then((e=>_(e))).catch((e=>{ds.o.track("ERROR_GETTING_ROYALTY_RATE",{err:e})}))}),[v]),(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsxs)("div",{className:"nft-info-card bg-greyDark w-full",children:[(0,ms.jsx)(cT,{className:"nft-info-row flex",children:(0,ms.jsx)(lT,{children:(0,ms.jsx)("div",{children:(0,ms.jsx)(uT.o,{Comp:M,tooltipText:(null===v||void 0===v||null===(o=v.detail)||void 0===o||null===(a=o.nft)||void 0===a?void 0:a.title)||"",tooltipId:"nft-title-tooltip"})})})}),(0,ms.jsx)("div",{className:"nft-info-separator bg-secondary"}),(0,ms.jsx)("table",{className:"table-borderless",children:(0,ms.jsxs)("tbody",{children:[(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Rental Fee"}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[x===us.SupportedTokens.FLOW&&C&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===v||void 0===v?void 0:v.amount)||0)*C).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null===v||void 0===v?void 0:v.amount)||0,isSmall:!0,token:x})]})})]}),(0,ms.jsxs)("tr",{className:"border-b border-white",children:[(0,ms.jsx)("td",{children:"Refundable Deposit"}),(0,ms.jsx)("td",{className:"flex justify-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[x===us.SupportedTokens.FLOW&&C&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===v||void 0===v?void 0:v.deposit)||0)*C).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null===v||void 0===v?void 0:v.deposit)||0,isSmall:!0,token:x})]})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Total Due Upfront"}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[x===us.SupportedTokens.FLOW&&C&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===L||void 0===L?void 0:L.costToRent)||0)*C).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null===L||void 0===L?void 0:L.costToRent)||0,isSmall:!0,token:x})]})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsxs)("td",{children:[(0,ms.jsx)(iT,{className:"inline"}),(0,ms.jsx)("p",{className:"pt-1 inline ms-1",children:"Duration"})]}),(0,ms.jsx)("td",{className:"flex justify-end",children:v&&Sl(v.term)})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:(0,ms.jsx)("p",{className:"pt-1 inline ms-1",children:"Listed By"})}),(0,ms.jsx)("td",{className:"flex justify-end",children:(0,ms.jsx)(ca.N_,{to:HD(v.flowtyStorefrontAddress),children:v.flowtyStorefrontAddress===(null===g||void 0===g||null===(s=g.loggedUser)||void 0===s?void 0:s.addr)?"You":v.flowtyStorefrontAddress})})]}),v.renter&&(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:(0,ms.jsx)("p",{className:"pt-1 inline ms-1",children:"Rented By"})}),(0,ms.jsx)("td",{className:"flex justify-end",children:(0,ms.jsx)(ca.N_,{to:HD(v.renter),children:v.renter===(null===g||void 0===g||null===(l=g.loggedUser)||void 0===l?void 0:l.addr)?"You":v.renter})})]}),(null===v||void 0===v||null===(c=v.valuations)||void 0===c?void 0:c.aggregate)&&(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:(0,ms.jsx)("td",{children:j})}),(0,ms.jsxs)("td",{className:"flex justify-end",children:[v.valuations.aggregate.depositToValueRatio.toFixed(2),"x"]})]}),I&&v.state!==us.ListingStatus.Expired&&(0,ms.jsx)(ms.Fragment,{children:null!=E&&(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("tr",{children:(0,ms.jsx)("td",{children:(0,ms.jsx)("u",{children:"Owner Information:"})})}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{children:"Rental Fee Share:"}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[x===us.SupportedTokens.FLOW&&C&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===L||void 0===L?void 0:L.costToRent)||0)*C).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null!==(u=null===v||void 0===v?void 0:v.amount)&&void 0!==u?u:0)-((null!==(d=null===v||void 0===v?void 0:v.amount)&&void 0!==d?d:0)*E+(null!==(p=null===v||void 0===v?void 0:v.amount)&&void 0!==p?p:0)*ss.Mu),isSmall:!0,token:x})]})})]}),(0,ms.jsxs)("tr",{children:[(0,ms.jsx)("td",{className:"pr-1.5",children:"Received if Renter Defaults:"}),(0,ms.jsx)("td",{className:"text-end",children:(0,ms.jsxs)("div",{className:"flex-row-reverse flex items-center",children:[x===us.SupportedTokens.FLOW&&C&&(0,ms.jsxs)("p",{className:"text-sm",children:["(USD $",Tl()(((null===L||void 0===L?void 0:L.costToRent)||0)*C).format("0,0.00"),")"]}),(0,ms.jsx)(Fl.se,{amount:(null!==(h=null===v||void 0===v?void 0:v.deposit)&&void 0!==h?h:0)-(null!==(f=null===v||void 0===v?void 0:v.deposit)&&void 0!==f?f:0)*E,isSmall:!0,token:x})]})})]})]})})]})}),(0,ms.jsx)("div",{className:"flex m-auto justify-end w-fit",children:!b&&(null===v||void 0===v?void 0:v.state)!==us.ListingStatus.Delisted&&(null===v||void 0===v?void 0:v.state)!==us.ListingStatus.Repaid&&(()=>{if(I&&("LISTED"===v.state||"INVALID"===v.state))return(0,ms.jsx)(ZS,{isOwner:I,isOrderListedByLoggedAccount:R,rentalListing:v});if(y){var e;if(F&&I&&"RENTED"===v.state&&(F===(null===g||void 0===g||null===(e=g.loggedUser)||void 0===e?void 0:e.addr)||O))return(0,ms.jsx)(XS,{rentalListing:v,nftProviderPathIdentifier:O,nftProviderAddress:F});if("LISTED"===v.state&&(null===v.renter||I))return null}return null})()}),!R&&I&&"LISTED"===v.state&&(0,ms.jsxs)("div",{className:"py-2 text-sm font-normal text-center text-orange-500",children:["NFT was listed while connected with"," ".concat(null===v||void 0===v?void 0:v.flowtyStorefrontAddress)," as Main. Please sign in with "," ".concat(null===v||void 0===v?void 0:v.flowtyStorefrontAddress)," to delist."]})]}),!b&&(null===v||void 0===v?void 0:v.state)===us.ListingStatus.Listed&&(0,ms.jsx)(sT,{variant:"dark",className:"mt-2",children:I?(0,ms.jsxs)("div",{className:"flex items-center",children:[(0,ms.jsx)(eT,{className:"mt-1 text-xl me-3"}),(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)("h5",{className:"text-xl text-white",children:"Please Note"}),(0,ms.jsx)("p",{className:"mt-2 text-lightText",children:"There is no guarantee that your NFT will be returned. If the Renter does not return the NFT (defaults), you will receive the deposit (after collection royalty) instead of your NFT."})]})]}):(0,ms.jsxs)("div",{className:"flex items-center",children:[(0,ms.jsx)(eT,{className:"mt-1 text-xl me-3"}),(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)("h5",{className:"text-xl text-white",children:"Please Note"}),(0,ms.jsx)("p",{className:"mt-2 text-lightText",children:null===v.renter||v.renter===(null===g||void 0===g||null===(m=g.loggedUser)||void 0===m?void 0:m.addr)?(0,ms.jsxs)("p",{children:["If you do not return the NFT by the end of the rental term, you will forfeit your refundable deposit.",(0,ms.jsx)("br",{}),(0,ms.jsx)("br",{}),"Please note that some platforms or wallets may have limitations on withdrawing NFTs, which is outside of Flowty's control. Please ensure that you fully understand any restrictions that may impact your ability to return a rented NFT."]}):"This is a private listing and can only be filled by the address ".concat(v.renter)})]})]})})]})}))),$S=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r,i,o,a;let{authStore:s}=e;const{listingResourceId:l}=(0,js.g)(),c=(null===s||void 0===s?void 0:s.getAccountSummaryAddresses())||[],u=null!==l&&void 0!==l?l:"",[d,p]=(0,sa.useState)(null),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(null),[v,y]=(0,sa.useState)(!1),b=(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Delisted||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Repaid||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Settled||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Invalid||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Rented||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Returned||(null===h||void 0===h?void 0:h.state)===us.ListingStatus.Expired,[w,x]=(0,sa.useState)(!!h&&Dl(null===h||void 0===h?void 0:h.blockTimestamp)),[C,A]=(0,sa.useState)(!(null===m||void 0===m||!m.settleDeadline)&&Pl(null===m||void 0===m?void 0:m.settleDeadline)),E=async()=>{const e=await(async e=>{(0,fs.t)("fetchRentalListingById",e);const t=pl.db.collection("rentalAvailable").where("listingResourceID","in",[e.toString(),Number(e)]).limit(1),n=await t.get();if((0,fs.t)("fetchRentalListingById",n.docs),n.docs.length>0){var r;const e=n.docs[0].data();(0,fs.t)("fetchRentalListingById",e);const t={...e};return t.blockTimestamp=null===e||void 0===e||null===(r=e.blockTimestamp)||void 0===r?void 0:r.toDate(),t}return null})(u);f(e)};(0,sa.useEffect)((()=>{(async()=>{const e=await HT(u);g(e)})().then((()=>{(0,fs.t)("getFunding",m)})),E().then((()=>{(0,fs.t)("set listing to",h)}))}),[l]),(0,sa.useEffect)((()=>{const e=null===h||void 0===h?void 0:h.blockTimestamp;e&&x(Dl(e))}),[null===h||void 0===h?void 0:h.blockTimestamp]),(0,sa.useEffect)((()=>{const e=null===m||void 0===m?void 0:m.settleDeadline;e&&A(Pl(e))}),[null===m||void 0===m?void 0:m.settleDeadline]),(0,sa.useEffect)((()=>{if(!h)return;const e=(0,us.nftTypeAndIdToLocationData)(null===h||void 0===h?void 0:h.nftType,null===h||void 0===h?void 0:h.nftID);Tf.su.api.getItem({contractAddress:e.contract.address,contractName:e.contract.name,nftID:e.nftID,resourceName:e.resourceName}).then((e=>{var t,n,r;const i=null!==(t=null===(n=e.nftView)||void 0===n||null===(r=n.externalURL)||void 0===r?void 0:r.url)&&void 0!==t?t:"";p(i),i||(0,fs.t)("No backlink URL")}))}),[h]);(0,sa.useEffect)((()=>{if(null!==h&&void 0!==h&&h.detail){const e=h.detail;ds.o.track("Asset Detail Page Visited",{listingInfo:e})}}),[null===h||void 0===h?void 0:h.detail]);const _=null===h,[T,S]=(0,sa.useState)(null),k=(0,sa.useMemo)((()=>{var e,t,n;return null!==h&&void 0!==h&&null!==(e=h.detail)&&void 0!==e&&null!==(t=e.card)&&void 0!==t&&t.images&&h.detail.card.images.length>0?(0,us.getImageURL)(null!==(n=h.detail.card.images[0].url)&&void 0!==n?n:tl.A):(0,us.getImageURL)(tl.A)}),[null===h||void 0===h||null===(t=h.detail)||void 0===t||null===(n=t.card)||void 0===n?void 0:n.images,tl.A]);(0,sa.useEffect)((()=>{k&&v&&dy(k,"mp4").then(S)}),[k,v]);const P=(0,sa.useMemo)((()=>{var e,t,n,r,i,o;return!T&&v?(0,ms.jsx)(py,{collectionAddress:null===h||void 0===h||null===(e=h.detail)||void 0===e||null===(t=e.card)||void 0===t?void 0:t.collectionAddress,collectionName:null===h||void 0===h||null===(n=h.detail)||void 0===n||null===(r=n.card)||void 0===r?void 0:r.collectionName,onError:e=>{(0,ol.R)(e)},className:"object-cover aspect-square w-3/4 ".concat(b?"opacity-50":"")}):T?T?(0,ms.jsx)("video",{muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!0,className:"nft-image max-w-xs md:max-w-lg mx-auto ".concat(b?"opacity-50":""),children:(0,ms.jsx)("source",{type:"video/mp4",src:k})}):void 0:(0,ms.jsx)("img",{src:k,className:"nft-image max-w-xs md:max-w-lg mx-auto ".concat(b?"opacity-50":""),loading:"lazy",alt:"".concat(null===h||void 0===h||null===(i=h.detail)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.title," asset"),onError:()=>{y(!0)}})}),[k,ol.R,T,v,b,y]);return(0,ms.jsx)(fv,{children:_?(0,ms.jsx)(zT,{}):(0,ms.jsxs)("div",{className:"container",children:[(0,ms.jsx)("nav",{"aria-label":"Breadcrumb",children:(0,ms.jsxs)("ol",{className:"flex items-center",children:[(0,ms.jsxs)("li",{className:"flex items-center",children:[(0,ms.jsx)("a",{href:VD.Marketplace,className:"hover:underline cursor-pointer",children:"Marketplace"}),(0,ms.jsx)(Fy,{className:"h-7 w-7 flex-shrink-0 text-primary","aria-hidden":"true"})]}),(0,ms.jsx)("li",{children:(0,ms.jsxs)("a",{href:"/marketplace",className:"hover:underline cursor-pointer",children:[" ",(null===h||void 0===h||null===(r=h.detail)||void 0===r||null===(i=r.nft)||void 0===i?void 0:i.title)||""]})})]})}),(0,ms.jsxs)("div",{className:"relative pt-4",children:[(0,ms.jsxs)(cT,{className:"md:flex-nowrap flex-wrap",children:[(0,ms.jsxs)(lT,{lg:4,children:[(0,ms.jsxs)("div",{className:"flex justify-center nft-image-card",children:[P,w?c.includes(h.flowtyStorefrontAddress)?(0,ms.jsx)("div",{className:"z-50 flex justify-center nft-image-alert w-full",children:(0,ms.jsx)("div",{className:"w-3/4 flex justify-center items-center countdown-content rounded-t-xl",children:(0,ms.jsx)("p",{className:"text-white text-bold me-2",children:"My Listing"})})}):h.renter&&(0,ms.jsx)(WS,{listing:h,className:"w-3/4"}):!w&&null!==h&&void 0!==h&&h.blockTimestamp?(0,ms.jsx)(Q_,{blockTimestamp:null===h||void 0===h?void 0:h.blockTimestamp,onCountdownEnd:()=>x(!0),className:"w-3/4"}):C?(0,ms.jsx)("div",{className:"nft-image-alert w-full",children:(0,ms.jsx)("div",{className:"pt-1 flex justify-center items-center",children:(0,ms.jsx)(sT,{variant:"info",className:"pt-2 pb-2 mt-5 absolute ps-3 pe-3 text-bold",children:"Expired"})})}):null,b&&(null===h||void 0===h?void 0:h.state)&&(0,ms.jsx)(VT,{nftState:h.state})]}),(0,ms.jsxs)("div",{className:"ms-2 padding-20 w-full flex ".concat(d?"justify-between":"justify-end"),children:[d&&(0,ms.jsxs)("a",{href:d,target:"_blank",rel:"noreferrer",children:[(0,ms.jsx)("p",{className:"inline-block pt-1 mt-3 me-2 text-16",children:"View Asset"}),(0,ms.jsx)(tc,{className:"inline-block pb-1"})]}),(0,ms.jsx)(LT,{nftType:h.nftType,nftID:h.nftID})]}),(0,ms.jsx)("div",{className:"padding-10",children:(null===h||void 0===h||null===(o=h.detail)||void 0===o||null===(a=o.nft)||void 0===a?void 0:a.metadata)&&(null===h||void 0===h?void 0:h.nftType)&&(0,ms.jsx)(MT,{metadata:h.detail.nft.metadata,type:h.nftType})})]}),(0,ms.jsx)(lT,{className:"mt-5 ",children:(0,ms.jsx)(JS,{listing:h,isListingActive:w,isListingExpired:C,setListing:f})})]}),(null===m||void 0===m?void 0:m.settleDeadline)&&((null===h||void 0===h?void 0:h.state)===us.ListingStatus.Funded||us.ListingStatus.Rented)&&(0,ms.jsx)(BT,{settleDeadline:null===m||void 0===m?void 0:m.settleDeadline,className:"mt-5",onCountdownEnd:()=>A(!0)})]})]})})}))),ek=e=>[{customRender:e=>{var t,n,r;let{item:i}=e;const o=null!==(t=null===i||void 0===i||null===(n=i.type)||void 0===n||null===(r=n.split("_").pop())||void 0===r?void 0:r.toLowerCase())&&void 0!==t?t:"";return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===o?"delisted":o})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,el.default)(null===n||void 0===n||null===(t=n.blockTimestamp)||void 0===t?void 0:t.toDate(),"yyyy-MM-dd HH:mm")})},name:"blockTimestamp",sortable:!0,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.nftInfo)||void 0===a||!a.nft)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.nftInfo)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.nftInfo)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.nftInfo)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==U&&void 0!==U&&null!==(g=U.nftInfo)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===U||void 0===U||null===(y=U.nftInfo)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===U||void 0===U||null===(w=U.nftInfo)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===U||void 0===U||null===(C=U.nftInfo)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.nftInfo)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===U||void 0===U||null===(T=U.nftInfo)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.nftInfo)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.nftInfo)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.nftInfo)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.nftInfo)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.nftInfo)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:null===e||void 0===e?void 0:e.value},null===e||void 0===e?void 0:e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null===t||void 0===t?void 0:t.amount),isSmall:!0,token:null===t||void 0===t?void 0:t.paymentTokenName})})},name:"amount",sortable:!1,title:"Rental Fee"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null===t||void 0===t?void 0:t.deposit),isSmall:!0,token:null===t||void 0===t?void 0:t.paymentTokenName})})},name:"deposit",sortable:!1,title:"Returnable Deposit"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(null===t||void 0===t?void 0:t.term)})},name:"duration",sortable:!1,title:"Duration"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:null!==i&&void 0!==i&&i.valuations?"".concat(null===(t=i.valuations)||void 0===t||null===(n=t.aggregate)||void 0===n||null===(r=n.depositToValueRatio)||void 0===r?void 0:r.toFixed(2),"x"):"N/A"})},name:"duration",sortable:!1,title:"3rd Party DTV"},{customRender:t=>{var n,r,i,o,a;let{item:s}=t;return(0,ms.jsx)("div",{onClick:t=>{var n,r,i;t.preventDefault(),t.stopPropagation(),e("/user/".concat(null!==(n=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.lender)&&void 0!==n?n:null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.flowtyStorefrontAddress))},className:"lender flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(null!==(n=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.lender)&&void 0!==n?n:null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.flowtyStorefrontAddress),children:(null===s||void 0===s||null===(o=s.data)||void 0===o?void 0:o.lender)||(null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.flowtyStorefrontAddress)||"--"})})},name:"owner",sortable:!1,title:"Owner"},{customRender:t=>{var n,r,i,o,a;let{item:s}=t;return(0,ms.jsx)("div",{onClick:t=>{var n,r,i;t.preventDefault(),t.stopPropagation(),e("/user/".concat(null!==(n=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.renter)&&void 0!==n?n:null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.renterAddress))},className:"renter flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(null!==(n=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.renter)&&void 0!==n?n:null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.renterAddress),children:(null===s||void 0===s||null===(o=s.data)||void 0===o?void 0:o.renter)||(null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.renterAddress)||"--"})})},name:"renter",sortable:!1,title:"Renter"}],tk=()=>{const[e,t]=(0,sa.useState)(1),n=(0,js.Zp)(),[r,i]=(0,sa.useState)(!1),[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)([]),[c,u]=(0,sa.useState)({min:"",path:""}),[d,p]=(0,sa.useState)(!0),[h,f]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending});(0,sa.useEffect)((()=>{t(1)}),[h,c]),(0,sa.useEffect)((()=>fl({addressPath:"data.renterAddress",eventCollection:"rentalEvents",filterActivityBy:c,limit:ss.cb*e,listingCollection:"rentalAvailable",makerCb(e){a(e)},sort:h,takerCb(e){l(e)}})),[e,c,h]);const m=(0,sa.useMemo)((()=>o.map((e=>({...e})))),[s,o]),g=xl({isLoading:!1,onInfiniteScroll(){setTimeout((()=>{i(!1)}),2e3),e*ss.cb===m.length&&(t(e+1),i(!0)),ds.o.track("Inifinite Scroll Global Rentals Page")}},[e,m]);(0,sa.useEffect)((()=>{ds.o.track("Global Rentals Page Visited")}),[]),(0,sa.useEffect)((()=>{c.path&&ds.o.track("Global Rentals Page Filtered",{filter:c})}),[c.path]);const v=[{label:"All",value:""},{label:"Listed",value:"RENTAL_LISTED"},{label:"Delisted",value:"RENTAL_DESTROYED"},{label:"Rented",value:"RENTAL_RENTED"},{label:"Returned",value:"RENTAL_RETURNED"},{label:"Settled",value:"RENTAL_SETTLED"},{label:"Expired",value:"EXPIRED"}],[y,b]=(0,sa.useState)(v[0].value);return(0,ms.jsx)(mv,{children:(0,ms.jsxs)("div",{children:[(0,ms.jsx)(Yl,{showFilter:d,setShowFilter:p,filterBy:c,setFilterBy:u}),(0,ms.jsx)("div",{className:"flex mb-[20px]",children:(0,ms.jsx)(Bs.DG,{fields:v,selectedField:y,updateSelectedField:e=>{b(e),u({max:"",min:e,path:"state"})}})}),(0,ms.jsx)("div",{className:"line-separator mb-3 md:mb-4 bg-gradient-to-r from-darkBg via-secondary to-darkBg"}),(0,ms.jsx)($s,{onClickRow:e=>{var t,r;let{item:i}=e;const o=null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.nftType,a=null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.nftID.toString(),s=!(!o||!a),l=(0,us.nftTypeAndIdToLocationData)(o,a);s&&n("/asset/".concat(l.contract.address,"/").concat(l.contract.name,"/").concat(l.resourceName,"/").concat(l.nftID))},fields:ek(n),items:m,onSort:f,initialSortConfig:h,stickyHeaders:!0,composeRowHref:e=>{var t,n;const r=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.nftType,i=null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.nftID.toString(),o=(0,us.nftTypeAndIdToLocationData)(r,i);return"/asset/".concat(o.contract.address,"/").concat(o.contract.name,"/").concat(o.resourceName,"/").concat(o.nftID)}}),(0,ms.jsx)("div",{ref:g,children:r?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):e*ss.cb===m.length&&(0,ms.jsx)(Cl,{})})]})})},nk=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n}=e;const[r,i]=(0,sa.useState)(null),[o,a]=(0,sa.useState)(null),[s,l]=(0,sa.useState)({message:"",show:!1,type:"SUCCESS"}),c=(null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr)||null;(0,sa.useEffect)((()=>{let e=()=>{},t=()=>{};if(c){const n=pl.db.doc("/accounts/".concat(c,"/providers/twitter")),s=pl.db.doc("/accounts/".concat(c,"/providers/discord"));e=n.onSnapshot((e=>{if(e.exists){var t;const n=e.data();i(null!==(t=n.handle)&&void 0!==t?t:null)}else i(null)}),(e=>{ds.o.track("FETCHING_TWITTER_DATA_ERROR",{error:e,twitterHandle:r,walletAddress:c})})),t=s.onSnapshot((e=>{if(e.exists){var t;const n=e.data();a(null!==(t=n.username)&&void 0!==t?t:null)}else a(null)}),(e=>{ds.o.track("FETCHING_DISCORD_DATA_ERROR",{discordHandle:o,error:e,walletAddress:c})}))}return()=>{e(),t()}}),[c]);return(0,ms.jsxs)("div",{className:"flex-1 px-[2.5rem] py-[2rem] max-h-auto bg-neutral-400/10 rounded-lg w-full lg:min-w-[44.25rem]",children:[(0,ms.jsx)(_c.s,{setShow:e=>l({...s,show:e}),show:s.show,seconds:5,message:s.message,type:s.type}),(0,ms.jsxs)("div",{className:"flex  flex-col items-start w-full",children:[(0,ms.jsx)("div",{className:"font-semibold text-lg ",children:"Social Connections"}),(0,ms.jsx)(Bs.Qw,{twitterHandle:r,walletAddress:c,handleTwitterDisconnect:async()=>{ds.o.track("TWITTER_DISCONNECT_CLICKED",{twitterHandle:r,walletAddress:c});try{await pl.db.doc("/accounts/".concat(c,"/providers/twitter")).delete(),l({message:"Successfully Disconnected Twitter",show:!0,type:"SUCCESS"}),ds.o.track("TWITTER_DISCONNECT_SUCCESS",{twitterHandle:r,walletAddress:c})}catch(e){return l({message:"Something went wrong. Please try again later.",show:!0,type:"ERROR"}),ds.o.track("TWITTER_DISCONNECT_ERROR",{error:e,twitterHandle:r,walletAddress:c}),e}}}),(0,ms.jsx)(Bs.dG,{discordHandle:o,walletAddress:c,handleDiscordDisconnect:async()=>{ds.o.track("DISCORD_DISCONNECT_CLICKED",{discordHandle:o,walletAddress:c});try{await pl.db.doc("/accounts/".concat(c,"/providers/discord")).delete(),l({message:"Successfully Disconnected Discord",show:!0,type:"SUCCESS"}),ds.o.track("DISCORD_DISCONNECT_SUCCESS",{discordHandle:o,walletAddress:c})}catch(e){l({message:"Something went wrong. Please try again later.",show:!0,type:"ERROR"}),ds.o.track("DISCORD_DISCONNECT_ERROR",{discordHandle:o,error:e,walletAddress:c})}}})]})]})})));var rk,ik,ok,ak;function sk(){return sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sk.apply(null,arguments)}function lk(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",sk({width:118,height:118,viewBox:"0 0 118 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,rk||(rk=sa.createElement("rect",{width:118,height:118,rx:8,fill:"url(#paint0_linear_101_2137)"})),ik||(ik=sa.createElement("path",{d:"M59 54.8209C65.9243 54.8209 71.5375 49.2076 71.5375 42.2834C71.5375 35.3591 65.9243 29.7458 59 29.7458C52.0758 29.7458 46.4625 35.3591 46.4625 42.2834C46.4625 49.2076 52.0758 54.8209 59 54.8209Z",fill:"white",fillOpacity:.8})),ok||(ok=sa.createElement("path",{d:"M29.7458 92.4334C29.7458 76.2767 42.8434 63.1792 59 63.1792C75.1567 63.1792 88.2542 76.2767 88.2542 92.4334H29.7458Z",fill:"white",fillOpacity:.8})),ak||(ak=sa.createElement("defs",null,sa.createElement("linearGradient",{id:"paint0_linear_101_2137",x1:59,y1:0,x2:59,y2:118,gradientUnits:"userSpaceOnUse"},sa.createElement("stop",{stopColor:"#04E5A3"}),sa.createElement("stop",{offset:.9999,stopColor:"#329CE8"}),sa.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})))))}const ck=sa.forwardRef(lk);__webpack_require__.p;var uk,dk,pk,hk,fk,mk;function gk(){return gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gk.apply(null,arguments)}function vk(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",gk({width:118,height:118,viewBox:"0 0 118 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,uk||(uk=sa.createElement("rect",{width:118,height:118,rx:8,fill:"url(#paint0_linear_101_2140)"})),dk||(dk=sa.createElement("path",{d:"M59 54.8209C65.9243 54.8209 71.5375 49.2076 71.5375 42.2834C71.5375 35.3591 65.9243 29.7458 59 29.7458C52.0757 29.7458 46.4625 35.3591 46.4625 42.2834C46.4625 49.2076 52.0757 54.8209 59 54.8209Z",fill:"white",fillOpacity:.8})),pk||(pk=sa.createElement("path",{d:"M29.7458 92.4334C29.7458 76.2767 42.8434 63.1792 59 63.1792C75.1566 63.1792 88.2542 76.2767 88.2542 92.4334H29.7458Z",fill:"white",fillOpacity:.8})),hk||(hk=sa.createElement("rect",{width:118,height:118,rx:6,fill:"#03102E",fillOpacity:.8})),fk||(fk=sa.createElement("path",{d:"M51 63L51 64C51 65.6569 52.3431 67 54 67L64 67C65.6569 67 67 65.6569 67 64L67 63M63 55L59 51M59 51L55 55M59 51L59 63",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),mk||(mk=sa.createElement("defs",null,sa.createElement("linearGradient",{id:"paint0_linear_101_2140",x1:59,y1:0,x2:59,y2:118,gradientUnits:"userSpaceOnUse"},sa.createElement("stop",{stopColor:"#04E5A3"}),sa.createElement("stop",{offset:.9999,stopColor:"#329CE8"}),sa.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})))))}const yk=sa.forwardRef(vk);__webpack_require__.p;var bk;function wk(){return wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wk.apply(null,arguments)}function xk(e,t){let{title:n,titleId:r,...i}=e;return sa.createElement("svg",wk({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?sa.createElement("title",{id:r},n):null,bk||(bk=sa.createElement("path",{d:"M4 16L4 17C4 18.6569 5.34315 20 7 20L17 20C18.6569 20 20 18.6569 20 17L20 16M16 8L12 4M12 4L8 8M12 4L12 16",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Ck=sa.forwardRef(xk),Ak=(__webpack_require__.p,e=>{let{avatar:t}=e;const[n,r]=(0,sa.useState)(!1);return t?(0,ms.jsx)("div",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),className:"group relative w-[7.375rem] h-[7.375rem]",children:n?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("img",{src:t,alt:"Your Description",className:"w-full h-full rounded-lg"}),(0,ms.jsx)("div",{className:"absolute inset-0 bg-[#031021]/25 flex items-center justify-center rounded-lg",children:(0,ms.jsx)(Ck,{})})," "]}):(0,ms.jsx)("img",{src:t,alt:"Your Description",className:"w-full h-full rounded-lg"})}):(0,ms.jsx)("div",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),className:"cursor-pointer",children:n?(0,ms.jsx)(yk,{}):(0,ms.jsx)(ck,{})})}),Ek=e=>{var t,n,r;let{authStore:i,setFieldValue:o,image:a,setImage:s}=e;const[l,c]=(0,sa.useState)(!1),u=(0,sa.useRef)(null);return(0,ms.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-[3.5] gap-[1rem]",children:[(0,ms.jsxs)("div",{className:"flex flex-col justify-between w-auto",children:[(0,ms.jsx)("label",{htmlFor:"profilePicture",className:"block text-base font-bold mb-[1.12rem] min-w-[8.5rem]",children:"Profile Picture"}),(0,ms.jsx)("input",{id:"avatar",name:"avatar",type:"file",ref:u,style:{display:"none"},onChange:e=>{var t,n;KT(e,s,c,null!==(t=null===i||void 0===i||null===(n=i.loggedUser)||void 0===n?void 0:n.addr)&&void 0!==t?t:"",o)}}),(0,ms.jsx)("button",{type:"button",className:"flex flex-col cursor-pointer items-center justify-center ".concat(null!==i&&void 0!==i&&null!==(t=i.loggedUser)&&void 0!==t&&t.avatar?" focus:border-none focus:ring-0 rounded-[0.25rem] w-[7.375rem] h-[7.375rem] bg-cover bg-center text-white":""),onClick:e=>{e.stopPropagation(),(()=>{var e;u&&u.current&&(null===(e=u.current)||void 0===e||e.click())})()},children:(0,ms.jsx)("div",{className:"bg-[#031021]/60 rounded-[0.25rem] w-[7.375rem] h-[7.375rem] flex items-center ".concat(l?"justify-center":""),children:l?(0,ms.jsx)(AT,{size:15,borderThickness:3}):(0,ms.jsx)(Ak,{avatar:a||(null!==i&&void 0!==i&&null!==(n=i.loggedUser)&&void 0!==n&&n.avatar?null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.avatar:"")})})})]}),(0,ms.jsxs)("div",{className:"flex flex-col w-full",children:[(0,ms.jsxs)("div",{className:"mb-4",children:[(0,ms.jsx)("label",{htmlFor:"userName",className:"block text-base font-bold mb-[.5rem]",children:"Username"}),(0,ms.jsx)(gl.D0,{type:"text",id:"userName",name:"userName",className:"text-[1rem] bg-[#FFFFFF14] font-normal cursor-pointer border-[1px] focus:border-primary focus:outline-none focus:bg-transparent focus:ring-0 border-[#6C757D] rounded-md w-full py-2 px-3 leading-tight hover:bg-[#ffffff29] input::-webkit-autofill input::-webkit-autofill:focus input::-webkit-autofill:active input:-webkit-autofill:hover"})]}),(0,ms.jsxs)("div",{children:[(0,ms.jsx)("label",{htmlFor:"email",className:"block text-base font-bold mb-2",children:"Email"}),(0,ms.jsx)(gl.D0,{type:"email",id:"email",name:"email",className:"text-[1rem] bg-[#FFFFFF14] font-normal cursor-pointer border-[1px] focus:border-primary focus:outline-none focus:bg-transparent focus:ring-0 border-[#6C757D] rounded-md w-full py-2 px-3 leading-tight hover:bg-[#ffffff29] input::-webkit-autofill input::-webkit-autofill:focus input::-webkit-autofill:active input:-webkit-autofill:hover"}),(0,ms.jsx)(gl.Kw,{name:"email",component:"div",className:"text-red-500"})]})]})]})};var _k=__webpack_require__(71408);const Tk=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r;let{authStore:i}=e;null!==i&&void 0!==i&&null!==(t=i.loggedUser)&&void 0!==t&&t.loggedIn||window.location.replace("/");const[o,a]=(0,sa.useState)(!0),[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(!1),[d,p]=(0,sa.useState)(),[h,f]=(0,sa.useState)(null),[m,g]=(0,sa.useState)(null!==(n=null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.avatar)&&void 0!==n?n:""),[v,y]=(0,sa.useState)({message:"",show:!1,type:"SUCCESS"}),b=async()=>{try{const r=await async function(){var e,t;let n=null!==(e=await(null===pl.j2||void 0===pl.j2||null===(t=pl.j2.currentUser)||void 0===t?void 0:t.getIdToken(!0)))&&void 0!==e?e:"";var r,i;""===n&&(await fc(1e3),n=null!==(r=await(null===pl.j2||void 0===pl.j2||null===(i=pl.j2.currentUser)||void 0===i?void 0:i.getIdToken(!0)))&&void 0!==r?r:"");const o="".concat(ss.Sw,"/notifications/settings"),a={Authorization:n};try{return(await cs().get(o,{headers:a})).data}catch(s){return(0,fs.t)("getEmailSettings",{error:s}),{settings:[]}}}();var e,t,n;if(r)p(!(null!==(e=r.settings[1])&&void 0!==e&&e.suppressed)),u(!(null!==(t=r.settings[0])&&void 0!==t&&t.suppressed)),a(!1),ds.o.track("EMAIL_SETTINGS_FETCH_SUCCESS",{email:null===i||void 0===i||null===(n=i.loggedUser)||void 0===n?void 0:n.marketingEmail})}catch(o){var r;ds.o.track("EMAIL_SETTINGS_FETCH_FAILURE",{email:null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.marketingEmail,error:o})}};(0,sa.useEffect)((()=>{var e;null!==i&&void 0!==i&&null!==(e=i.loggedUser)&&void 0!==e&&e.marketingEmail?b():(u(!1),p(!1),a(!1))}),[null===i||void 0===i?void 0:i.loggedUser]);const w=()=>{y({message:"Successfully Saved Preferences",show:!0,type:"SUCCESS"}),f(null)},x=(e,t)=>{t(),y({message:"Something went wrong. Please try again later",show:!0,type:"ERROR"}),f(e)};return(0,ms.jsxs)("div",{className:"flex-1 px-[2.5rem] py-[2rem] w-full lg:min-w-[44.25rem] text-[#DEE2E6] bg-neutral-400/10 rounded-lg",children:[(0,ms.jsx)(_c.s,{setShow:e=>y({...v,show:e}),show:v.show,seconds:5,message:v.message,type:v.type})," ",(0,ms.jsx)("div",{className:"font-semibold text-lg pb-[2rem]",children:"User Preferences"}),(0,ms.jsx)(gl.l1,{initialValues:(()=>{const e=Sc(i);var t;return e.email&&0!==e.email.length?{...e,subscribeNewsletter:null!==d&&void 0!==d&&d,subscribeOffers:null!==c&&void 0!==c&&c}:{...e,email:(null===i||void 0===i||null===(t=i.loggedUser)||void 0===t?void 0:t.blockToEmail)||""}})(),enableReinitialize:!0,validationSchema:Cc,onSubmit:async(e,t)=>{let{setSubmitting:n,resetForm:r}=t;try{await(async(e,t)=>{var n,r;const{userName:o,email:a,subscribeOffers:s,subscribeNewsletter:l}=e;null===i||void 0===i||i.setProfileImage(m),null===i||void 0===i||i.setUsername(o),null===i||void 0===i||i.setEmail(a),Ec(i,a,s,l),await Tc(null!==(n=null===i||void 0===i||null===(r=i.loggedUser)||void 0===r?void 0:r.addr)&&void 0!==n?n:"",e,w,"settings").then((()=>{t(!1),ds.o.track("USER_PREFERENCES_SUBMITTED",{values:e})})).catch((n=>{t(!1),x(n,(()=>{})),ds.o.track("USER_PREFERENCES_SUBMIT_FAILED",{error:n,values:e})}))})(e,n)}catch(o){x(o,r)}},children:e=>{let{dirty:t,isSubmitting:n,isValid:r,setFieldValue:a,resetForm:l}=e;return(0,ms.jsxs)(gl.lV,{children:[(0,ms.jsx)("div",{className:"section md:[mb-6] mb-4",children:(0,ms.jsx)(Ek,{authStore:i,image:m,setImage:g,setFieldValue:a})}),(0,ms.jsx)("div",{className:"max-w-[39.25rem] fill-[4C5B69] my-[3em] border-gradient js-show-on-scroll motion-safe:animate-fadeIn"}),(0,ms.jsx)("div",{className:"flex md:[mb-6] mb-4 w-full",children:(0,ms.jsxs)("div",{className:"w-full",children:[(0,ms.jsx)("h3",{className:"text-lg font-bold mb-[2rem]",children:"Notifications"}),(0,ms.jsx)("p",{className:"text-base font-bold leading-4",children:"Received Offers"}),(0,ms.jsx)(_k.O,{loading:o,name:"subscribeOffers",label:(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsx)("p",{className:"text-xs font-normal mt-[0.5rem] mb-[0.5rem] text-[#DEE2E6]",children:"Subscribe to email notifications for Received Offers"})})},0),(0,ms.jsx)("p",{className:"text-base font-bold leading-4 mt-8",children:"Promotional Emails"}),(0,ms.jsx)(_k.O,{loading:o,name:"subscribeNewsletter",label:(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("p",{className:"text-xs font-normal mt-[0.5rem] mb-[0.5rem] text-[#DEE2E6]",children:"Subscribe to email notifications for The Flowty Newsletter and other informational emails"}),(0==d||0==c)&&(0,ms.jsx)("p",{className:"text-xs font-normal mb-[0.5rem] text-[#FF6E25]",children:"Note: Opting out of the above will not prevent transaction confirmation emails"})]})},1)]})}),(0,ms.jsx)("div",{className:"max-w-[39.25rem] fill-[4C5B69] my-[3em] border-gradient js-show-on-scroll motion-safe:animate-fadeIn"}),(0,ms.jsxs)("div",{className:"flex gap-[0.5rem] justify-end w-[200px] mr-0 ml-auto",children:[(0,ms.jsx)(Bs.M2,{onClick:l,type:"reset",disabled:!t&&!s,text:"CANCEL",variant:"secondary",bgColor:"white"}),(0,ms.jsx)(Bs.M2,{text:n?(0,ms.jsx)("div",{className:"animate-spin inline-block w-4 h-4 border-[3px] border-current border-t-transparent rounded-full",role:"status","aria-label":"loading"}):"SAVE",type:"submit",disabled:!r||n||!t&&!s,variant:"secondary"})]})]})}})]})}))),Sk=()=>(0,ms.jsxs)("section",{children:[(0,ms.jsx)("div",{className:"text-[2rem] font-black pb-[3rem] pt-[1.5rem] leading-8 tracking-wider",children:"SETTINGS"}),(0,ms.jsxs)("div",{className:"flex flex-col xl:flex-row xl:items-start bg-blue gap-[1.5rem]",children:[(0,ms.jsx)(Tk,{}),(0,ms.jsx)(nk,{})]}),(0,ms.jsx)("div",{className:"w-full fill-[4C5B69] my-[3em] border-gradient js-show-on-scroll motion-safe:animate-fadeIn"})]}),kk=()=>(0,ms.jsxs)("div",{className:"flex flex-col h-screen",children:[(0,ms.jsx)("div",{className:"flex-grow",children:(0,ms.jsx)(fv,{children:(0,ms.jsxs)("div",{className:"container",children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Your Profile Settings",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)(Sk,{})]})})}),(0,ms.jsx)(Bs.$z,{subscribeEmailToNotification:Ac,mixPanelFn:(e,t)=>{ds.o.track(e,t)}})]}),Pk=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n}=e;const r=(0,js.Zp)();return(0,sa.useEffect)((()=>{var e;null!==n&&void 0!==n&&null!==(e=n.loggedUser)&&void 0!==e&&e.loggedIn&&r("/user/profile")}),[null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.loggedIn]),(0,ms.jsx)(fv,{children:(0,ms.jsx)("div",{className:"w-full h-auto flex justify-center mt-[12.5rem]",children:(0,ms.jsx)(Bs.aE,{onSignIn:()=>uv()})})})}))),Dk=e=>[{customRender:e=>{var t;let n,{item:r}=e;const i=null===r||void 0===r?void 0:r.type.split("_");return n=null!==r&&void 0!==r&&null!==(t=r.type)&&void 0!==t&&t.includes("OFFER")?"".concat(i[1]," ").concat(i[2]):i[i.length-1],n=n.toLowerCase(),(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===n?"delisted":n})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{var t;let{item:n}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,el.default)(null===n||void 0===n||null===(t=n.blockTimestamp)||void 0===t?void 0:t.toDate(),"yyyy-MM-dd HH:mm")})},name:"blockTimestamp",sortable:!0,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L;let{item:B}=e;const U=(0,us.getNFTDetail)(null,null===B||void 0===B||null===(t=B.additionalData)||void 0===t?void 0:t.card);if(!U&&null!==B&&void 0!==B&&null!==(n=B.data)&&void 0!==n&&n.nftID){var V,H;const e=(0,us.nftTypeAndIdToLocationData)(null===B||void 0===B||null===(V=B.data)||void 0===V?void 0:V.nftType,null===B||void 0===B||null===(H=B.data)||void 0===H?void 0:H.nftID.toString()),t=(0,us.getNFTIdentifier)(e);Tf.su.api.refreshMetadata(t).then().catch((e=>(0,fs.t)(" Failed to refresh Metadata",e)))}const z="A.".concat(null===(r=B.additionalData)||void 0===r||null===(i=r.card)||void 0===i||null===(o=i.collectionAddress)||void 0===o?void 0:o.substring(2),".").concat(null===(a=B.additionalData)||void 0===a||null===(s=a.card)||void 0===s?void 0:s.collectionName,".NFT");return(0,ms.jsx)("div",{children:U&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===B||void 0===B||null===(l=B.additionalData)||void 0===l||null===(c=l.card)||void 0===c?void 0:c.collectionAddress)||"",collectionName:(null===B||void 0===B||null===(u=B.additionalData)||void 0===u||null===(d=u.card)||void 0===d?void 0:d.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(p=null===B||void 0===B||null===(h=B.additionalData)||void 0===h||null===(f=h.card)||void 0===f||null===(m=f.images)||void 0===m||null===(g=m[0])||void 0===g?void 0:g.url)&&void 0!==p?p:tl.A,(0,ss.hx)(z))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[B.additionalData?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===B||void 0===B||null===(v=B.additionalData)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.title}):(0,ms.jsxs)("div",{className:"flex flex-row",children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===B||void 0===B||null===(b=B.additionalData)||void 0===b||null===(w=b.card)||void 0===w?void 0:w.title}),(null===B||void 0===B||null===(x=B.additionalData)||void 0===x||null===(C=x.card)||void 0===C?void 0:C.num)&&!(null!==(A=B.additionalData)&&void 0!==A&&null!==(E=A.card)&&void 0!==E&&E.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-1",children:["#",null===B||void 0===B||null===(_=B.additionalData)||void 0===_||null===(T=_.card)||void 0===T?void 0:T.num]})]}),null!==B&&void 0!==B&&null!==(S=B.additionalData)&&void 0!==S&&null!==(k=S.card)&&void 0!==k&&k.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==B&&void 0!==B&&null!==(P=B.additionalData)&&void 0!==P&&null!==(D=P.card)&&void 0!==D&&D.additionalDetails?null===B||void 0===B||null===(F=B.additionalData)||void 0===F||null===(N=F.card)||void 0===N||null===(I=N.additionalDetails)||void 0===I?void 0:I.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===B||void 0===B||null===(R=B.additionalData)||void 0===R||null===(O=R.card)||void 0===O?void 0:O.headerTraits)&&(null===B||void 0===B||null===(j=B.additionalData)||void 0===j||null===(M=j.card)||void 0===M||null===(L=M.headerTraits)||void 0===L?void 0:L.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:null===e||void 0===e?void 0:e.value},null===e||void 0===e?void 0:e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number(null===t||void 0===t?void 0:t.amount),isSmall:!0,token:null===t||void 0===t?void 0:t.paymentTokenName})})},name:"amount",sortable:!1,title:"Price"},{customRender:t=>{var n,r,i,o;let{item:a}=t;const s=(null===a||void 0===a||null===(n=a.type)||void 0===n?void 0:n.includes("OFFER"))?"object"===typeof(null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.taker)?"-":null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.taker:null===a||void 0===a||null===(o=a.data)||void 0===o?void 0:o.storefrontAddress;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(s))},className:"seller flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(s),children:s||"--"})})},name:"seller",sortable:!1,title:"Seller"},{customRender:t=>{var n,r,i;let{item:o}=t;const a=(null===o||void 0===o||null===(n=o.type)||void 0===n?void 0:n.includes("OFFER"))?null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.storefrontAddress:null===o||void 0===o||null===(i=o.data)||void 0===i?void 0:i.buyer;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(a))},className:"buyer flex flex-row justify-start items-center hover:text-green-200",children:(0,ms.jsx)("a",{href:"/user/".concat(a),children:a||"--"})})},name:"buyer",sortable:!1,title:"Buyer"}],Fk=()=>{const[e,t]=(0,sa.useState)(1),n=(0,js.Zp)(),[r,i]=(0,sa.useState)([]),[o,a]=(0,sa.useState)({min:"",path:""}),[s,l]=(0,sa.useState)(!1),[c,u]=(0,sa.useState)(!0),[d,p]=(0,sa.useState)({column:"blockTimestamp",order:qs.Descending});(0,sa.useEffect)((()=>{t(1)}),[d,o]);(0,sa.useEffect)((()=>hl({addressPath:"data.storefrontAddress",eventCollection:"storefrontEvents",filterActivityBy:o,limit:ss.cb*e,listingCollection:"storefrontEvents",makerCb:e=>(e=>{i(e)})(e),sort:d})),[e,o,d]);const h=(0,sa.useMemo)((()=>r.map((e=>e))),[r]),f=xl({isLoading:!1,onInfiniteScroll(){setTimeout((()=>{l(!1)}),2e3),e*ss.cb===h.length&&(t(e+1),l(!0)),ds.o.track("Inifinite Scroll Global Rentals Page")}},[e,h]);(0,sa.useEffect)((()=>{ds.o.track("Global Storefront Page Visited")}),[]),(0,sa.useEffect)((()=>{o.path&&ds.o.track("Global Storefront Page Filtered",{filter:o})}),[o.path]);const m=[{label:"All",value:""},{label:"Purchased",value:us.IEventType.StorefrontPurchased.valueOf()},{label:"Listed",value:us.IEventType.StorefrontListed.valueOf()},{label:"Delisted",value:us.IEventType.StorefrontDelisted.valueOf()},{label:"Offer Created",value:us.IEventType.StorefrontOfferCreated.valueOf()},{label:"Offer Accepted",value:us.IEventType.StorefrontOfferAccepted.valueOf()},{label:"Offer Cancelled",value:us.IEventType.StorefrontOfferCancelled.valueOf()}],[g,v]=(0,sa.useState)(m[0].value);return(0,ms.jsx)(mv,{children:(0,ms.jsxs)("div",{children:[(0,ms.jsx)(DA,{showFilter:c,setShowFilter:u,filterBy:o,setFilterBy:a}),(0,ms.jsx)("div",{className:"flex mb-[20px]",children:(0,ms.jsx)(Bs.DG,{fields:m,selectedField:g,updateSelectedField:e=>{v(e),a({max:"",min:e,path:"state"})}})}),(0,ms.jsx)("div",{className:"line-separator mb-3 md:mb-4 bg-gradient-to-r from-darkBg via-secondary to-darkBg"}),(0,ms.jsx)($s,{onClickRow:e=>{let{e:t,item:r}=e;const i=t;let o,a;var s,l,c,u,d;r.type.toLowerCase().includes("offer")?(o=null===(s=r.data)||void 0===s?void 0:s.storefrontAddress,a="object"===typeof(null===r||void 0===r||null===(l=r.data)||void 0===l?void 0:l.taker)?"-":null===r||void 0===r||null===(c=r.data)||void 0===c?void 0:c.taker):(o=null===(u=r.data)||void 0===u?void 0:u.buyer,a=null===(d=r.data)||void 0===d?void 0:d.storefrontAddress);if("buyer"===i.target.classList[0]){if(o)return n("/user/".concat(o))}else{if("seller"!==i.target.classList[0]){var p,h,f,m,g,v,y,b,w,x,C,A,E,_;const e=(null===(p=r.data)||void 0===p?void 0:p.nftID)||(null===r||void 0===r||null===(h=r.data)||void 0===h||null===(f=h.typeAndIDOffer)||void 0===f?void 0:f.nftID)||null;if(!e)return;if(null===r||void 0===r||null===(m=r.additionalData)||void 0===m||null===(g=m.card)||void 0===g||!g.collectionAddress||null===r||void 0===r||null===(v=r.additionalData)||void 0===v||null===(y=v.card)||void 0===y||!y.collectionName)return;const t=(null===(b=r.data)||void 0===b?void 0:b.nftType)||(null===r||void 0===r||null===(w=r.data)||void 0===w||null===(x=w.typeAndIDOffer)||void 0===x?void 0:x.nftType)||"",i=(0,us.nftTypeAndIdToLocationData)(t,e.toString()),o=e?"/asset/".concat(i.contract.address,"/").concat(i.contract.name,"/").concat(i.resourceName,"/").concat(i.nftID):"/collection/".concat(null===r||void 0===r||null===(C=r.additionalData)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.collectionAddress,"/").concat(null===r||void 0===r||null===(E=r.additionalData)||void 0===E||null===(_=E.card)||void 0===_?void 0:_.collectionName);return n(o)}if(a)return n("/user/".concat(a))}},fields:Dk(n),items:h,onSort:p,initialSortConfig:d,stickyHeaders:!0,composeRowHref:e=>{var t,n,r,i,o,a,s,l,c,u;const d=(null===(t=e.data)||void 0===t?void 0:t.nftID)||(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftID)||"",p=(null===(i=e.data)||void 0===i?void 0:i.nftType)||(null===e||void 0===e||null===(o=e.data)||void 0===o||null===(a=o.typeAndIDOffer)||void 0===a?void 0:a.nftType)||"",h=p&&d?(0,us.nftTypeAndIdToLocationData)(p,d):null;return h?"/asset/".concat(h.contract.address,"/").concat(h.contract.name,"/").concat(h.resourceName,"/").concat(h.nftID):"/collection/".concat(null===e||void 0===e||null===(s=e.additionalData)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress,"/").concat(null===e||void 0===e||null===(c=e.additionalData)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)}}),(0,ms.jsx)("div",{ref:f,children:s?(0,ms.jsx)("div",{className:"h-10 w-full flex justify-center items-center",children:(0,ms.jsxs)("h2",{className:"justify-center items-center flex flex-row animate-pulse",children:[(0,ms.jsx)(ql,{}),"Loading..."]})}):e*ss.cb===h.length&&(0,ms.jsx)(Cl,{})})]})})};var Nk=__webpack_require__(58706);function Ik(){return Ik=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ik.apply(null,arguments)}function Rk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ok=__webpack_require__(55152),jk=__webpack_require__(30414),Mk=__webpack_require__(2474),Lk=__webpack_require__(48926),Bk=__webpack_require__(95309),Uk=__webpack_require__(72715),Vk=__webpack_require__(24586),Hk=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},zk=["onKeyDown","onKeyPress","onKeyUp"],Wk=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],qk=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],Gk=Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk(Hk([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),zk,!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),Wk,!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),qk,!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function Yk(e,t){var n={};return Gk.forEach((function(r){var i=e[r];i&&(n[r]=t?function(e){return i(e,t(r))}:i)})),n}function Kk(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return!t&&n(e)})).catch((function(e){return!t&&r(e)}))})),cancel:function(){t=!0}}}function Qk(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qk(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const Xk=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Qk(e))&&(r&&(r+=" "),r+=t);return r};var Zk=!0,Jk="Invariant failed";function $k(e,t){if(!e){if(Zk)throw new Error(Jk);var n="function"===typeof t?t():t,r=n?"".concat(Jk,": ").concat(n):Jk;throw new Error(r)}}var eP=__webpack_require__(77623);const tP=(0,sa.createContext)(null);function nP(e){var t=e.children,n=e.type;return sa.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(n)},t)}nP.propTypes={children:pa().node,type:pa().oneOf(["error","loading","no-data"]).isRequired};var rP=function(){function e(){(0,Ok.A)(this,e),this.externalLinkTarget=null,this.externalLinkRel=null}return(0,jk.A)(e,[{key:"setDocument",value:function(e){this.pdfDocument=e}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setExternalLinkRel",value:function(e){this.externalLinkRel=e}},{key:"setExternalLinkTarget",value:function(e){this.externalLinkTarget=e}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return 0},set:function(e){}},{key:"goToDestination",value:function(e){var t=this;new Promise((function(n){"string"===typeof e?t.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)})).then((function(n){$k(Array.isArray(n),'"'.concat(n,'" is not a valid destination array.'));var r=n[0];new Promise((function(e){r instanceof Object?t.pdfDocument.getPageIndex(r).then((function(t){e(t)})).catch((function(){$k(!1,'"'.concat(r,'" is not a valid page reference.'))})):"number"===typeof r?e(r):$k(!1,'"'.concat(r,'" is not a valid destination reference.'))})).then((function(n){var r=n+1;$k(r>=1&&r<=t.pagesCount,'"'.concat(r,'" is not a valid page number.')),t.pdfViewer.scrollPageIntoView({dest:e,pageIndex:n,pageNumber:r})}))}))}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),e}();const iP={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var oP=__webpack_require__(27985);function aP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||(0,oP.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var sP="undefined"!==typeof document,lP=sP&&"file:"===window.location.protocol;function cP(e){return"undefined"!==typeof e}function uP(e){return cP(e)&&null!==e}function dP(e){return"string"===typeof e&&/^data:/.test(e)}function pP(e){$k(dP(e),"Invalid data URI.");var t=aP(e.split(","),2),n=t[0],r=t[1];return-1!==n.split(";").indexOf("base64")?atob(r):unescape(r)}var hP="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function fP(){(0,eP.A)(!lP,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(hP))}function mP(e){e&&e.cancel&&e.cancel()}function gP(e,t){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e}function vP(e){return"RenderingCancelledException"===e.name}var yP=__webpack_require__(86284);function bP(e){return function(e){if(Array.isArray(e))return(0,yP.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,oP.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wP=function(){var e={};return[].concat(bP(Wk),bP(qk),bP(zk)).forEach((function(t){e[t]=pa().func})),e}(),xP=[pa().string,pa().instanceOf(ArrayBuffer),pa().shape({data:pa().oneOfType([pa().object,pa().string]),httpHeaders:pa().object,range:pa().object,url:pa().string,withCredentials:pa().bool})];"undefined"!==typeof File&&xP.push(pa().instanceOf(File)),"undefined"!==typeof Blob&&xP.push(pa().instanceOf(Blob));var CP=pa().oneOfType([pa().string,pa().arrayOf(pa().string)]),AP=pa().oneOfType(xP),EP=pa().instanceOf(rP),_P=(pa().oneOf(["_self","_blank","_parent","_top"]),pa().shape({commonObjs:pa().shape({}).isRequired,getAnnotations:pa().func.isRequired,getTextContent:pa().func.isRequired,getViewport:pa().func.isRequired,render:pa().func.isRequired})),TP=pa().oneOfType([pa().shape({getDestination:pa().func.isRequired,getOutline:pa().func.isRequired,getPage:pa().func.isRequired,numPages:pa().number.isRequired}),pa().bool]),SP=pa().oneOfType([pa().func,pa().shape({current:pa().any})]),kP=pa().oneOf(["canvas","none","svg"]),PP=pa().oneOf([0,90,180,270]),DP=["url"];function FP(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 NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FP(Object(n),!0).forEach((function(t){(0,Vk.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IP(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}var RP=Nk.PDFDataRangeTransport,OP=function(e){(0,Lk.A)(n,e);var t=IP(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{pdf:null}),(0,Vk.A)((0,Mk.A)(e),"viewer",{scrollPageIntoView:function(t){var n=t.dest,r=t.pageIndex,i=t.pageNumber,o=e.props.onItemClick;if(o)o({dest:n,pageIndex:r,pageNumber:i});else{var a=e.pages[r];a?a.scrollIntoView():(0,eP.A)(!1,"An internal link leading to page ".concat(i," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}}),(0,Vk.A)((0,Mk.A)(e),"linkService",new rP),(0,Vk.A)((0,Mk.A)(e),"loadDocument",(function(){mP(e.runningTask),e.loadingTask&&e.loadingTask.destroy();var t=Kk(e.findDocumentSource());e.runningTask=t,t.promise.then((function(t){if(e.onSourceSuccess(),t){e.setState((function(e){return e.pdf?{pdf:null}:null}));var n=e.props,r=n.options,i=n.onLoadProgress,o=n.onPassword,a=Nk.getDocument(NP(NP({},t),r));a.onPassword=o,i&&(a.onProgress=i),e.loadingTask=a,a.promise.then((function(t){e.setState((function(e){return e.pdf&&e.pdf.fingerprint===t.fingerprint?null:{pdf:t}}),e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))}})).catch((function(t){e.onSourceError(t)}))})),(0,Vk.A)((0,Mk.A)(e),"setupLinkService",(function(){var t=e.props,n=t.externalLinkRel,r=t.externalLinkTarget;e.linkService.setViewer(e.viewer),e.linkService.setExternalLinkRel(n),e.linkService.setExternalLinkTarget(r)})),(0,Vk.A)((0,Mk.A)(e),"onSourceSuccess",(function(){var t=e.props.onSourceSuccess;t&&t()})),(0,Vk.A)((0,Mk.A)(e),"onSourceError",(function(t){(0,eP.A)(t);var n=e.props.onSourceError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,n=e.state.pdf;t&&t(n),e.pages=new Array(n.numPages),e.linkService.setDocument(n)})),(0,Vk.A)((0,Mk.A)(e),"onLoadError",(function(t){e.setState({pdf:!1}),(0,eP.A)(t);var n=e.props.onLoadError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"findDocumentSource",(function(){return new Promise((function(t){var n=e.props.file;if(n||t(null),"string"===typeof n){if(dP(n)){var r=pP(n);t({data:r})}fP(),t({url:n})}if(n instanceof RP&&t({range:n}),n instanceof ArrayBuffer&&t({data:n}),sP&&(function(e){return $k(sP,"isBlob can only be used in a browser environment"),e instanceof Blob}(n)||function(e){return $k(sP,"isFile can only be used in a browser environment"),e instanceof File}(n)))(function(e){return new Promise((function(t,n){var r=new FileReader;return r.onload=function(){return t(new Uint8Array(r.result))},r.onerror=function(e){switch(e.target.error.code){case e.target.error.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case e.target.error.NOT_READABLE_ERR:return n(new Error("Error while reading a file: File not readable."));case e.target.error.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case e.target.error.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},r.readAsArrayBuffer(e),null}))})(n).then((function(e){t({data:e})}));else{if($k("object"===(0,bx.A)(n),"Invalid parameter in file, need either Uint8Array, string or a parameter object"),$k(n.url||n.data||n.range,"Invalid parameter object: need either .data, .range or .url"),"string"===typeof n.url){if(dP(n.url)){var i=n.url,o=Rk(n,DP),a=pP(i);t(NP({data:a},o))}fP()}t(n)}}))})),(0,Vk.A)((0,Mk.A)(e),"registerPage",(function(t,n){e.pages[t]=n})),(0,Vk.A)((0,Mk.A)(e),"unregisterPage",(function(t){delete e.pages[t]})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){mP(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,n=this.unregisterPage,r=this.props,i=r.imageResourcesPath,o=r.renderMode,a=r.rotate;return{imageResourcesPath:i,linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:o,rotate:a,unregisterPage:n}}},{key:"eventProps",get:function(){var e=this;return Yk(this.props,(function(){return e.state.pdf}))}},{key:"renderChildren",value:function(){var e=this.props.children;return sa.createElement(tP.Provider,{value:this.childContext},e)}},{key:"renderContent",value:function(){var e=this.props.file,t=this.state.pdf;if(!e){var n=this.props.noData;return sa.createElement(nP,{type:"no-data"},"function"===typeof n?n():n)}if(null===t){var r=this.props.loading;return sa.createElement(nP,{type:"loading"},"function"===typeof r?r():r)}if(!1===t){var i=this.props.error;return sa.createElement(nP,{type:"error"},"function"===typeof i?i():i)}return this.renderChildren()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.inputRef;return sa.createElement("div",Ik({className:Xk("react-pdf__Document",t),ref:n},this.eventProps),this.renderContent())}}]),n}(sa.PureComponent);OP.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF\u2026",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case iP.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case iP.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var jP=pa().oneOfType([pa().func,pa().node]);OP.propTypes=NP(NP({},wP),{},{children:pa().node,className:CP,error:jP,externalLinkRel:pa().string,externalLinkTarget:pa().string,file:AP,imageResourcesPath:pa().string,inputRef:SP,loading:jP,noData:jP,onItemClick:pa().func,onLoadError:pa().func,onLoadProgress:pa().func,onLoadSuccess:pa().func,onPassword:pa().func,onSourceError:pa().func,onSourceSuccess:pa().func,rotate:pa().number});const MP=(0,sa.createContext)(null);var LP=function(){function e(t){var n=t.num,r=t.gen;(0,Ok.A)(this,e),this.num=n,this.gen=r}return(0,jk.A)(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}(),BP=["item"];function UP(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}var VP=function(e){(0,Lk.A)(n,e);var t=UP(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"getDestination",(function(){return new Promise((function(t,n){if(cP(e.destination))t(e.destination);else{var r=e.props,i=r.item,o=r.pdf;"string"===typeof i.dest?o.getDestination(i.dest).then(t).catch(n):t(i.dest)}})).then((function(t){return e.destination=t,t}))})),(0,Vk.A)((0,Mk.A)(e),"getPageIndex",(function(){return new Promise((function(t,n){var r=e.props.pdf;cP(e.pageIndex)?t(e.pageIndex):e.getDestination().then((function(e){if(e){var i=aP(e,1)[0];r.getPageIndex(new LP(i)).then(t).catch(n)}}))})).then((function(t){return e.pageIndex=t,e.pageIndex}))})),(0,Vk.A)((0,Mk.A)(e),"getPageNumber",(function(){return new Promise((function(t,n){cP(e.pageNumber)?t(e.pageNumber):e.getPageIndex().then((function(e){t(e+1)})).catch(n)})).then((function(t){return e.pageNumber=t,t}))})),(0,Vk.A)((0,Mk.A)(e),"onClick",(function(t){var n=e.props.onClick;return t.preventDefault(),!!n&&Promise.all([e.getDestination(),e.getPageIndex(),e.getPageNumber()]).then((function(e){var t=aP(e,3),r=t[0],i=t[1],o=t[2];n({dest:r,pageIndex:i,pageNumber:o})}))})),e}return(0,jk.A)(n,[{key:"renderSubitems",value:function(){var e=this.props,t=e.item,r=Rk(e,BP);if(!t.items||!t.items.length)return null;var i=t.items;return sa.createElement("ul",null,i.map((function(e,t){return sa.createElement(n,Ik({key:"string"===typeof e.destination?e.destination:t,item:e},r))})))}},{key:"render",value:function(){var e=this.props.item;return sa.createElement("li",null,sa.createElement("a",{href:"#",onClick:this.onClick},e.title),this.renderSubitems())}}]),n}(sa.PureComponent),HP=pa().oneOfType([pa().string,pa().arrayOf(pa().any)]);VP.propTypes={item:pa().shape({dest:HP,items:pa().arrayOf(pa().shape({dest:HP,title:pa().string})),title:pa().string}).isRequired,onClick:pa().func,pdf:TP.isRequired};const zP=function(e){return sa.createElement(tP.Consumer,null,(function(t){return sa.createElement(MP.Consumer,null,(function(n){return sa.createElement(VP,Ik({},t,n,e))}))}))};function WP(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 qP(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}var GP=function(e){(0,Lk.A)(n,e);var t=qP(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{outline:null}),(0,Vk.A)((0,Mk.A)(e),"loadOutline",(function(){var t=e.props.pdf;e.setState((function(e){return e.outline?{outline:null}:null}));var n=Kk(t.getOutline());e.runningTask=n,n.promise.then((function(t){e.setState({outline:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),(0,Vk.A)((0,Mk.A)(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,n=e.state.outline;t&&t(n)})),(0,Vk.A)((0,Mk.A)(e),"onLoadError",(function(t){e.setState({outline:!1}),(0,eP.A)(t);var n=e.props.onLoadError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"onItemClick",(function(t){var n=t.dest,r=t.pageIndex,i=t.pageNumber,o=e.props.onItemClick;o&&o({dest:n,pageIndex:r,pageNumber:i})})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){$k(this.props.pdf,"Attempted to load an outline, but no document was specified."),this.loadOutline()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;e.pdf&&t!==e.pdf&&this.loadOutline()}},{key:"componentWillUnmount",value:function(){mP(this.runningTask)}},{key:"childContext",get:function(){return{onClick:this.onItemClick}}},{key:"eventProps",get:function(){var e=this;return Yk(this.props,(function(){return e.state.outline}))}},{key:"renderOutline",value:function(){var e=this.state.outline;return sa.createElement("ul",null,e.map((function(e,t){return sa.createElement(zP,{key:"string"===typeof e.destination?e.destination:t,item:e})})))}},{key:"render",value:function(){var e=this.props.pdf,t=this.state.outline;if(!e||!t)return null;var n=this.props,r=n.className,i=n.inputRef;return sa.createElement("div",Ik({className:Xk("react-pdf__Outline",r),ref:i},this.eventProps),sa.createElement(MP.Provider,{value:this.childContext},this.renderOutline()))}}]),n}(sa.PureComponent);GP.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WP(Object(n),!0).forEach((function(t){(0,Vk.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:CP,inputRef:SP,onItemClick:pa().func,onLoadError:pa().func,onLoadSuccess:pa().func,pdf:TP},wP);function YP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(Boolean);return n.length<=1?n[0]||null:function(e){n.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}const KP=(0,sa.createContext)(null);function QP(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}var XP=Nk.AnnotationMode,ZP=function(e){(0,Lk.A)(n,e);var t=QP(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"canvasElement",(0,sa.createRef)()),(0,Vk.A)((0,Mk.A)(e),"onRenderSuccess",(function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,i=t.scale;n&&n(gP(r,i))})),(0,Vk.A)((0,Mk.A)(e),"onRenderError",(function(t){if(!vP(t)){(0,eP.A)(t);var n=e.props.onRenderError;n&&n(t)}})),(0,Vk.A)((0,Mk.A)(e),"drawPageOnCanvas",(function(){var t=e.canvasElement.current;if(!t)return null;var n=(0,Mk.A)(e),r=n.renderViewport,i=n.viewport,o=e.props,a=o.canvasBackground,s=o.page,l=o.renderForms;t.width=r.width,t.height=r.height,t.style.width="".concat(Math.floor(i.width),"px"),t.style.height="".concat(Math.floor(i.height),"px");var c={annotationMode:l?XP.ENABLE_FORMS:XP.ENABLE,get canvasContext(){return t.getContext("2d",{alpha:!1})},viewport:r};a&&(c.background=a),e.cancelRenderingTask();var u=s.render(c);return e.renderer=u,u.promise.then(e.onRenderSuccess).catch(e.onRenderError)})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasBackground,r=t.devicePixelRatio,i=t.page,o=t.renderForms;n===e.canvasBackground&&r===e.devicePixelRatio&&o===e.renderForms||(i.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var e=this.canvasElement.current;e&&(e.width=0,e.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"devicePixelRatio",get:function(){return this.props.devicePixelRatio||sP&&window.devicePixelRatio||1}},{key:"renderViewport",get:function(){var e=this.devicePixelRatio,t=this.props,n=t.page,r=t.rotate,i=t.scale;return n.getViewport({scale:i*e,rotation:r})}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var e=this.props.canvasRef;return sa.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:YP(e,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),n}(sa.PureComponent);function JP(e){return sa.createElement(KP.Consumer,null,(function(t){return sa.createElement(ZP,Ik({},t,e))}))}function $P(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}ZP.propTypes={canvasBackground:pa().string,canvasRef:SP,devicePixelRatio:pa().number,onRenderError:pa().func,onRenderSuccess:pa().func,page:_P.isRequired,renderForms:pa().bool,rotate:PP,scale:pa().number.isRequired};var eD=function(e){(0,Lk.A)(n,e);var t=$P(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{svg:null}),(0,Vk.A)((0,Mk.A)(e),"onRenderSuccess",(function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,i=t.scale;n&&n(gP(r,i))})),(0,Vk.A)((0,Mk.A)(e),"onRenderError",(function(t){if(!vP(t)){(0,eP.A)(t);var n=e.props.onRenderError;n&&n(t)}})),(0,Vk.A)((0,Mk.A)(e),"renderSVG",(function(){var t=e.props.page;return e.renderer=t.getOperatorList(),e.renderer.then((function(n){var r=new Nk.SVGGraphics(t.commonObjs,t.objs);e.renderer=r.getSVG(n,e.viewport).then((function(t){e.setState({svg:t},e.onRenderSuccess)})).catch(e.onRenderError)})).catch(e.onRenderError)})),(0,Vk.A)((0,Mk.A)(e),"drawPageOnContainer",(function(t){var n=e.state.svg;if(t&&n){t.firstElementChild||t.appendChild(n);var r=e.viewport,i=r.width,o=r.height;n.setAttribute("width",i),n.setAttribute("height",o)}})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var e=this,t=this.viewport,n=t.width,r=t.height;return sa.createElement("div",{className:"react-pdf__Page__svg",ref:function(t){return e.drawPageOnContainer(t)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:n,height:r,userSelect:"none"}})}}]),n}(sa.PureComponent);function tD(e){return sa.createElement(KP.Consumer,null,(function(t){return sa.createElement(eD,Ik({},t,e))}))}function nD(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 rD(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}eD.propTypes={onRenderError:pa().func,onRenderSuccess:pa().func,page:_P.isRequired,rotate:PP,scale:pa().number.isRequired};var iD=function(e){(0,Lk.A)(n,e);var t=rD(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{textContent:null}),(0,Vk.A)((0,Mk.A)(e),"layerElement",(0,sa.createRef)()),(0,Vk.A)((0,Mk.A)(e),"endElement",(0,sa.createRef)()),(0,Vk.A)((0,Mk.A)(e),"loadTextContent",(function(){var t=Kk(e.props.page.getTextContent());e.runningTask=t,t.promise.then((function(t){e.setState({textContent:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),(0,Vk.A)((0,Mk.A)(e),"onLoadSuccess",(function(){var t=e.props.onGetTextSuccess,n=e.state.textContent;t&&t(n)})),(0,Vk.A)((0,Mk.A)(e),"onLoadError",(function(t){e.setState({textItems:!1}),(0,eP.A)(t);var n=e.props.onGetTextError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"onRenderSuccess",(function(){var t=e.props.onRenderTextLayerSuccess;t&&t()})),(0,Vk.A)((0,Mk.A)(e),"onRenderError",(function(t){(0,eP.A)(t);var n=e.props.onRenderTextLayerError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"onMouseDown",(function(){var t=e.endElement.current;t&&t.classList.add("active")})),(0,Vk.A)((0,Mk.A)(e),"onMouseUp",(function(){var t=e.endElement.current;t&&t.classList.remove("active")})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){$k(this.props.page,"Attempted to load page text content, but no page was specified."),(0,eP.A)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),this.loadTextContent()}},{key:"componentDidUpdate",value:function(e){var t=this.props.page;e.page&&t!==e.page&&this.loadTextContent()}},{key:"componentWillUnmount",value:function(){mP(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,n=e.scale;return t.getViewport({scale:n})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"renderTextLayer",value:function(){var e=this,t=this.state.textContent;if(!t)return null;var n=this.layerElement.current,r=this.viewport,i=this.props,o=i.customTextRenderer,a=i.pageIndex,s=i.pageNumber;mP(this.runningTask),n.innerHTML="";var l={container:n,textContent:t,viewport:r},c=Nk.renderTextLayer(l);this.runningTask=c,c.promise.then((function(){var r=document.createElement("div");if(r.className="endOfContent",n.append(r),e.endElement.current=r,o){var i=0;t.items.forEach((function(t,n){var r=e.layerElement.current.children[i],l=o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nD(Object(n),!0).forEach((function(t){(0,Vk.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({pageIndex:a,pageNumber:s,itemIndex:n},t));r.innerHTML=l,i+=t.str&&t.hasEOL?2:1}))}e.onRenderSuccess()})).catch((function(t){e.onRenderError(t)}))}},{key:"render",value:function(){return sa.createElement("div",{className:"react-pdf__Page__textContent textLayer",onMouseUp:this.onMouseUp,onMouseDown:this.onMouseDown,ref:this.layerElement},this.renderTextLayer())}}]),n}(sa.PureComponent);function oD(e){return sa.createElement(KP.Consumer,null,(function(t){return sa.createElement(iD,Ik({},t,e))}))}function aD(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}iD.propTypes={customTextRenderer:pa().func,onGetTextError:pa().func,onGetTextSuccess:pa().func,onRenderTextLayerError:pa().func,onRenderTextLayerSuccess:pa().func,page:_P.isRequired,pageIndex:pa().number.isRequired,pageNumber:pa().number.isRequired,rotate:PP,scale:pa().number};var sD=function(e){(0,Lk.A)(n,e);var t=aD(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{annotations:null}),(0,Vk.A)((0,Mk.A)(e),"layerElement",(0,sa.createRef)()),(0,Vk.A)((0,Mk.A)(e),"loadAnnotations",(function(){var t=Kk(e.props.page.getAnnotations());e.runningTask=t,t.promise.then((function(t){e.setState({annotations:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))})),(0,Vk.A)((0,Mk.A)(e),"onLoadSuccess",(function(){var t=e.props.onGetAnnotationsSuccess,n=e.state.annotations;t&&t(n)})),(0,Vk.A)((0,Mk.A)(e),"onLoadError",(function(t){e.setState({annotations:!1}),(0,eP.A)(t);var n=e.props.onGetAnnotationsError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"onRenderSuccess",(function(){var t=e.props.onRenderAnnotationLayerSuccess;t&&t()})),(0,Vk.A)((0,Mk.A)(e),"onRenderError",(function(t){(0,eP.A)(t);var n=e.props.onRenderAnnotationLayerError;n&&n(t)})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){$k(this.props.page,"Attempted to load page annotations, but no page was specified."),(0,eP.A)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.page,r=t.renderForms;(e.page&&n!==e.page||r!==e.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){mP(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"renderAnnotationLayer",value:function(){var e=this.state.annotations;if(e){var t=this.props,n=t.imageResourcesPath,r=t.linkService,i=t.page,o=t.renderForms,a=this.viewport.clone({dontFlip:!0}),s={annotations:e,div:this.layerElement.current,imageResourcesPath:n,linkService:r,page:i,renderForms:o,viewport:a};this.layerElement.current.innerHTML="";try{Nk.AnnotationLayer.render(s),this.onRenderSuccess()}catch(l){this.onRenderError(l)}}}},{key:"render",value:function(){return sa.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),n}(sa.PureComponent);sD.propTypes={imageResourcesPath:pa().string,linkService:EP.isRequired,onGetAnnotationsError:pa().func,onGetAnnotationsSuccess:pa().func,onRenderAnnotationLayerError:pa().func,onRenderAnnotationLayerSuccess:pa().func,page:_P,renderForms:pa().bool,rotate:PP,scale:pa().number};const lD=function(e){return sa.createElement(tP.Consumer,null,(function(t){return sa.createElement(KP.Consumer,null,(function(n){return sa.createElement(sD,Ik({},t,n,e))}))}))};function cD(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 uD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cD(Object(n),!0).forEach((function(t){(0,Vk.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dD(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,Uk.A)(e);if(t){var i=(0,Uk.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,Bk.A)(this,n)}}var pD=function(e){(0,Lk.A)(n,e);var t=dD(n);function n(){var e;(0,Ok.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,Vk.A)((0,Mk.A)(e),"state",{page:null}),(0,Vk.A)((0,Mk.A)(e),"pageElement",(0,sa.createRef)()),(0,Vk.A)((0,Mk.A)(e),"onLoadSuccess",(function(){var t=e.props,n=t.onLoadSuccess,r=t.registerPage,i=e.state.page;n&&n(gP(i,e.scale)),r&&r(e.pageIndex,e.pageElement.current)})),(0,Vk.A)((0,Mk.A)(e),"onLoadError",(function(t){e.setState({page:!1}),(0,eP.A)(t);var n=e.props.onLoadError;n&&n(t)})),(0,Vk.A)((0,Mk.A)(e),"loadPage",(function(){var t=e.props.pdf,n=e.getPageNumber();if(n){e.setState((function(e){return e.page?{page:null}:null}));var r=Kk(t.getPage(n));e.runningTask=r,r.promise.then((function(t){e.setState({page:t},e.onLoadSuccess)})).catch((function(t){e.onLoadError(t)}))}})),e}return(0,jk.A)(n,[{key:"componentDidMount",value:function(){$k(this.props.pdf,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;if(e.pdf&&t!==e.pdf||this.getPageNumber()!==this.getPageNumber(e)){var n=this.props.unregisterPage;n&&n(this.getPageIndex(e)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterPage;e&&e(this.pageIndex),mP(this.runningTask)}},{key:"childContext",get:function(){var e=this.pageIndex,t=this.pageNumber,n=this.state.page;if(!n)return{};var r=this.props,i=r.canvasBackground,o=r.customTextRenderer,a=r.devicePixelRatio,s=r.onGetAnnotationsError,l=r.onGetAnnotationsSuccess,c=r.onGetTextError,u=r.onGetTextSuccess,d=r.onRenderAnnotationLayerError,p=r.onRenderAnnotationLayerSuccess,h=r.onRenderError,f=r.onRenderSuccess,m=r.onRenderTextLayerError,g=r.onRenderTextLayerSuccess,v=r.renderForms,y=r.renderInteractiveForms;return{canvasBackground:i,customTextRenderer:o,devicePixelRatio:a,onGetAnnotationsError:s,onGetAnnotationsSuccess:l,onGetTextError:c,onGetTextSuccess:u,onRenderAnnotationLayerError:d,onRenderAnnotationLayerSuccess:p,onRenderError:h,onRenderSuccess:f,onRenderTextLayerError:m,onRenderTextLayerSuccess:g,page:n,pageIndex:e,pageNumber:t,renderForms:null!==v&&void 0!==v?v:y,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return uP(e.pageNumber)?e.pageNumber-1:uP(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return uP(e.pageNumber)?e.pageNumber:uP(e.pageIndex)?e.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if(uP(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,n=t.scale,r=t.width,i=t.height,o=this.rotate,a=1,s=null===n?1:n;if(r||i){var l=e.getViewport({scale:1,rotation:o});a=r?r/l.width:i/l.height}return s*a}},{key:"eventProps",get:function(){var e=this;return Yk(this.props,(function(){var t=e.state.page;return t?gP(t,e.scale):t}))}},{key:"pageKey",get:function(){return"".concat(this.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){return"".concat(this.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var e=this.props,t=e.canvasRef;switch(e.renderMode){case"none":return null;case"svg":return sa.createElement(tD,{key:"".concat(this.pageKeyNoScale,"_svg")});default:return sa.createElement(JP,{key:"".concat(this.pageKey,"_canvas"),canvasRef:t})}}},{key:"renderTextLayer",value:function(){var e=this.props.renderTextLayer;return e?sa.createElement(oD,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var e=this.props.renderAnnotationLayer;return e?sa.createElement(lD,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var e=this.props.children;return sa.createElement(KP.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),e)}},{key:"renderContent",value:function(){var e=this.pageNumber,t=this.props.pdf,n=this.state.page;if(!e){var r=this.props.noData;return sa.createElement(nP,{type:"no-data"},"function"===typeof r?r():r)}if(null===t||null===n){var i=this.props.loading;return sa.createElement(nP,{type:"loading"},"function"===typeof i?i():i)}if(!1===t||!1===n){var o=this.props.error;return sa.createElement(nP,{type:"error"},"function"===typeof o?o():o)}return this.renderChildren()}},{key:"render",value:function(){var e=this.pageNumber,t=this.props,n=t.className,r=t.inputRef;return sa.createElement("div",Ik({className:Xk("react-pdf__Page",n),"data-page-number":e,ref:YP(r,this.pageElement),style:{position:"relative",minWidth:"min-content",minHeight:"min-content"}},this.eventProps),this.renderContent())}}]),n}(sa.PureComponent);pD.defaultProps={error:"Failed to load the page.",loading:"Loading page\u2026",noData:"No page specified.",renderAnnotationLayer:!0,renderMode:"canvas",renderTextLayer:!0,scale:1};var hD=pa().oneOfType([pa().func,pa().node]);function fD(e,t){return sa.createElement(tP.Consumer,null,(function(n){return sa.createElement(pD,Ik({ref:t},n,e))}))}pD.propTypes=uD(uD({},wP),{},{canvasBackground:pa().string,children:pa().node,className:CP,customTextRenderer:pa().func,devicePixelRatio:pa().number,error:hD,height:pa().number,imageResourcesPath:pa().string,inputRef:SP,loading:hD,noData:hD,onGetTextError:pa().func,onGetTextSuccess:pa().func,onLoadError:pa().func,onLoadSuccess:pa().func,onRenderError:pa().func,onRenderSuccess:pa().func,onRenderTextLayerError:pa().func,onRenderTextLayerSuccess:pa().func,pageIndex:function(e,t,n){var r=e[t],i=e.pageNumber,o=e.pdf;if(!cP(o))return null;if(cP(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat((0,bx.A)(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));var a=o.numPages;if(r+1>a)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(a-1,"."))}else if(!cP(i))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pageNumber:function(e,t,n){var r=e[t],i=e.pageIndex,o=e.pdf;if(!cP(o))return null;if(cP(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat((0,bx.A)(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));var a=o.numPages;if(r>a)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(a,"."))}else if(!cP(i))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pdf:TP,registerPage:pa().func,renderAnnotationLayer:pa().bool,renderForms:pa().bool,renderInteractiveForms:pa().bool,renderMode:kP,renderTextLayer:pa().bool,rotate:PP,scale:pa().number,unregisterPage:pa().func,width:pa().number});const mD=sa.forwardRef(fD);(0,eP.A)(!lP,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(hP)),Nk.GlobalWorkerOptions.workerSrc="pdf.worker.js";const gD=__webpack_require__.p+"static/media/flowty-service-terms.b3c37f17324057b32691.pdf";Nk.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(Nk.version,"/pdf.worker.js");const vD=()=>{(0,sa.useEffect)((()=>{ds.o.track("Terms Page Visited")}),[]);const[e,t]=(0,sa.useState)(null);return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Terms of Service",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("section",{className:"container",children:(0,ms.jsxs)("div",{className:"mt-5 mb-4 pt-4",children:[(0,ms.jsx)("h1",{className:"pt-3 text-3xl text-center",children:"Terms of Service"}),(0,ms.jsx)("br",{}),(0,ms.jsx)("object",{data:"https://storage.googleapis.com/flowty-docs/flowty-service-terms.pdf",type:"application/pdf",width:"100%",className:"h-[500px] md:h-[800px] hidden md:block",children:(0,ms.jsxs)("p",{children:["Your web browser does not have a PDF plugin. Instead you can",(0,ms.jsx)("a",{href:"https://storage.googleapis.com/flowty-docs/flowty-service-terms.pdf",children:"click here to view the PDF file"})]})}),(0,ms.jsx)("div",{className:"md:hidden",children:(0,ms.jsx)(OP,{file:gD,onLoadSuccess:e=>{let{numPages:n}=e;t(n)},renderMode:"canvas",children:Array.from(Array(e),((e,t)=>(0,ms.jsx)("div",{className:"mb-2 mx-auto text-center justify-center flex",children:(0,ms.jsx)("div",{children:(0,ms.jsx)(mD,{pageNumber:t+1,width:window.innerWidth})})},t)))})})]})})]})},yD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const{search:n}=(0,js.zy)(),r=(0,sa.useMemo)((()=>new URLSearchParams(n)),[n]),i=(0,sa.useMemo)((()=>null===r||void 0===r?void 0:r.get("code")),[r]),[o,a]=(0,sa.useState)(!1),s=(0,sa.useMemo)((()=>{var e;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(0,ms.jsx)(ms.Fragment,{}):(0,ms.jsx)("div",{className:"flex flex-1 mt-4 flex-row items-center justify-center w-full",children:(0,ms.jsxs)("p",{className:"text-2xl",children:[" ","Please log-in to finish linking your Twitter account."]})})}),[null===t||void 0===t?void 0:t.loggedUser]);return(0,sa.useEffect)((()=>{var e;null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr&&i&&(async e=>{const t=await(null===pl.j2||void 0===pl.j2||null===(e=pl.j2.currentUser)||void 0===e?void 0:e.getIdToken(!0));if(t){const e=new Headers;e.set("Authorization","".concat(t)),fetch("".concat(ss.Sw,"/twitter?code=").concat(i),{headers:e}).then((()=>{a(!0)}))}})()}),[i,null===t||void 0===t?void 0:t.loggedUser]),i?o?(0,ms.jsx)(js.C5,{to:"/settings",replace:!0}):(0,ms.jsx)(fv,{children:s}):(0,ms.jsx)(js.C5,{to:"/",replace:!0})}))),bD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const{walletAddress:n}=(0,js.g)(),r=(0,js.Zp)(),[i,o]=(0,sa.useState)(null);(0,sa.useEffect)((()=>{(async e=>{(0,fs.t)("getPublicAccount",e);const t={addr:e,avatar:"",childAccounts:null,lastProcessed:Date.now(),processed:!1,userName:e,walletAddress:e};if(!e||""===e)return t;try{if(!await av(e))return t;const n=Tf.su.scripts.getChildAccounts(e),r=await cs().get("".concat(ss.Sw,"/user/").concat(e,"/details"));if(200!==r.status)return t;const i=await n;return{...r.data,childAccounts:i,walletAddress:e}}catch(n){return(0,fs._)("failed to get account due to ",n),t}})(n||"").then((e=>o({...e,accountSummaries:Object.keys((null===e||void 0===e?void 0:e.childAccounts)||{}).reduce(((t,n)=>{var r;return{...t,[n]:null===e||void 0===e||null===(r=e.childAccounts)||void 0===r?void 0:r[n]}}),{})}))).catch((e=>{(0,fs._)(e),r("/wallet-not-found")}))}),[n]);const a=(0,sa.useMemo)((()=>{var e;return(null===t||void 0===t||null===(e=t.loggedUser)||void 0===e?void 0:e.addr)!==n}),[null===t||void 0===t?void 0:t.loggedUser,n]),s=(0,sa.useMemo)((()=>{const e=[{component:(0,ms.jsx)(MS,{isPublic:a,profile:i}),name:"Collection"},{component:(0,ms.jsx)(yS,{address:"".concat(n),isPublic:a}),name:"Offers"}];return a||e.push({component:(0,ms.jsx)(OS,{}),name:"Action Center"}),e}),[a]),l="Flowty: ".concat(n," NFT Account");return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(ac,{metaTitle:l,metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),i?(0,ms.jsx)(Fw,{publicAccount:i||null,endpoint:"user",children:()=>(0,ms.jsx)(fv,{children:(0,ms.jsxs)("div",{className:"container",children:[i?(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(nS,{profile:i}),(0,ms.jsx)("div",{className:"mt-4",children:(0,ms.jsx)(QT,{user:i})})]}):(0,ms.jsx)("div",{className:"w-full flex justify-center items-center",children:(0,ms.jsx)(bc.BM,{color:"#04E5A3",height:100,width:100})}),(0,ms.jsx)(HS,{tabs:s,address:(null===i||void 0===i?void 0:i.walletAddress)||""})]})})},n):(0,ms.jsx)("div",{className:"w-full h-screen flex justify-center items-center",children:(0,ms.jsx)(bc.BM,{color:"#04E5A3",height:100,width:100})})]})}))),wD=e=>{let{activeTabBtn:t=Ul.History}=e;return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Your NFT Loans Activity",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("div",{className:"container",children:(0,ms.jsx)(Vl,{activeTabBtn:t})})]})},xD=[{customRender:e=>{let{item:t}=e;const n=t.type?t.type.split("_").pop().toLowerCase():"";return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===n?"delisted":n})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.activityType})},name:"data.flowtyStorefrontAddress",sortable:!1,title:"Role"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.blockTimestamp?(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"blockTimestamp",sortable:!0,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.nftInfo)||void 0===a||!a.nft)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.nftInfo)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.nftInfo)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.nftInfo)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=U.nftInfo)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(y=U.nftInfo)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(w=U.nftInfo)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===(C=U.nftInfo)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.nftInfo)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(T=U.nftInfo)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.nftInfo)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.nftInfo)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.nftInfo)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.nftInfo)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.nftInfo)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"}],CD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t}=e;const[n,r]=(0,sa.useState)(0),[i,o]=(0,sa.useState)(!1),[a,s]=(0,sa.useState)(1),[l,c]=(0,sa.useState)(!0),[u,d]=(0,sa.useState)({max:null,min:null,path:null}),[p,h]=(0,sa.useState)([]),[f,m]=(0,sa.useState)([]),g=(0,js.Zp)(),v=(0,sa.useMemo)((()=>a*ss.cb),[a]),y=(0,sa.useMemo)((()=>f.map((e=>({...e,activityType:"Renter"}))).concat(p.map((e=>({...e,activityType:"Owner"}))))),[f,p]),b=(0,sa.useMemo)((()=>y.length),[y]),w=xl({isLoading:i,onInfiniteScroll(){i||(s(a+1),r(b)),ds.o.track("Inifinite Scroll Rentals Table")}},[b,i]);return(0,sa.useEffect)((()=>{o(!(n!==b||!b))}),[n,b]),(0,sa.useEffect)((()=>{var e;if(null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr){var n;const e=(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[];return fl({accountIDs:e,accountId:null===t||void 0===t||null===(n=t.loggedUser)||void 0===n?void 0:n.addr,addressPath:"data.renterAddress",eventCollection:"rentalEvents",filterActivityBy:u,limit:v,listingCollection:"rentalAvailable",makerCb(e){h(e)},takerCb(e){m(e)}})}return()=>{}}),[v,null===t||void 0===t?void 0:t.loggedUser,u]),(0,sa.useEffect)((()=>{s(1)}),[u]),(0,sa.useEffect)((()=>{u.path&&ds.o.track("Profile Rentals Page Filtered",{filter:u,user:null===t||void 0===t?void 0:t.loggedUser})}),[u.path]),(0,fs.t)({allLenderActivityDocs:f}),(0,ms.jsxs)("div",{className:"w-full flex flex-col",children:[(0,ms.jsx)(Yl,{showFilter:l,setShowFilter:c,filterBy:u,setFilterBy:d}),(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{c(!l)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{var t;let{item:n}=e;return(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.listingResourceID)&&g(qD(n.data.listingResourceID))},fields:xD,items:y,stickyHeaders:!0,composeRowHref:e=>qD(e.data.listingResourceID)})}),i?(0,ms.jsx)("div",{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:w})]})]})}))),AD=e=>[{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:t.state?t.state.split("_").pop().toLowerCase():""})},name:"state",sortable:!1,title:"Status"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L,B;let{item:U}=e;const V="A.".concat(null===(t=U.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=U.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=U.detail)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===U||void 0===U||null===(s=U.detail)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===U||void 0===U||null===(c=U.detail)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===U||void 0===U||null===(p=U.detail)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(V))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=U.detail)&&void 0!==g&&null!==(v=g.card)&&void 0!==v&&v.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(y=U.detail)||void 0===y||null===(b=y.card)||void 0===b?void 0:b.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(w=U.detail)||void 0===w||null===(x=w.card)||void 0===x?void 0:x.title}),(null===(C=U.detail)||void 0===C||null===(A=C.card)||void 0===A?void 0:A.num)&&!(null!==(E=U.detail)&&void 0!==E&&null!==(_=E.card)&&void 0!==_&&_.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(T=U.detail)||void 0===T||null===(S=T.card)||void 0===S?void 0:S.num]})]}),null!==U&&void 0!==U&&null!==(k=U.detail)&&void 0!==k&&null!==(P=k.card)&&void 0!==P&&P.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==U&&void 0!==U&&null!==(D=U.detail)&&void 0!==D&&null!==(F=D.card)&&void 0!==F&&F.additionalDetails?null===U||void 0===U||null===(N=U.detail)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.additionalDetails)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===U||void 0===U||null===(O=U.detail)||void 0===O||null===(j=O.card)||void 0===j?void 0:j.headerTraits)&&(null===U||void 0===U||null===(M=U.detail)||void 0===M||null===(L=M.card)||void 0===L||null===(B=L.headerTraits)||void 0===B?void 0:B.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.amount,isSmall:!0,token:t.paymentTokenName})})},name:"amount",sortable:!1,title:"Rental Fee"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.deposit,isSmall:!0,token:t.paymentTokenName})})},name:"deposit",sortable:!1,title:"Refundable Deposit"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.deposit+t.amount,isSmall:!0,token:t.paymentTokenName})})},name:"total",sortable:!1,title:"Total Due Upfront"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(t.term)})},name:"term",sortable:!1,title:"Duration"},{customRender:e=>{let{item:t}=e;return t.valuations?(0,ms.jsx)(rc,{valuationType:"DTV",children:(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[t.valuations.aggregate.depositToValueRatio.toFixed(2),"x"]})}):(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:"N/A"})},name:"valuations.aggregate.depositToValueRatio",sortable:!1,title:"3rd Party DTV"},{customRender:t=>{let{item:n}=t;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(null===n||void 0===n?void 0:n.renter))},className:"flex flex-row justify-start items-center hover:text-green-300",children:(0,ms.jsx)("a",{href:"/user/".concat(null===n||void 0===n?void 0:n.renter),children:(null===n||void 0===n?void 0:n.renter)||"--"})})},name:"flowtyStorefrontAddress",sortable:!1,title:"Renter"}],ED=e=>[{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:t.state?t.state.split("_").pop().toLowerCase():""})},name:"state",sortable:!1,title:"Status"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R;let{item:O}=e;return(0,ms.jsx)("div",{children:!(null===(t=O.detail)||void 0===t||!t.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===O||void 0===O||null===(n=O.detail)||void 0===n||null===(r=n.card)||void 0===r?void 0:r.collectionAddress)||"",collectionName:(null===O||void 0===O||null===(i=O.detail)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(a=null===O||void 0===O||null===(s=O.detail)||void 0===s||null===(l=s.card)||void 0===l||null===(c=l.images)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.url)&&void 0!==a?a:tl.A,(0,ss.hx)(O.type))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(d=O.detail)&&void 0!==d&&null!==(p=d.card)&&void 0!==p&&p.additionalDetails?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(h=O.detail)||void 0===h||null===(f=h.card)||void 0===f?void 0:f.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(m=O.detail)||void 0===m||null===(g=m.card)||void 0===g?void 0:g.title}),(null===(v=O.detail)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.num)&&!(null!==(b=O.detail)&&void 0!==b&&null!==(w=b.card)&&void 0!==w&&w.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(x=O.detail)||void 0===x||null===(C=x.card)||void 0===C?void 0:C.num]})]}),null!==O&&void 0!==O&&null!==(A=O.detail)&&void 0!==A&&null!==(E=A.card)&&void 0!==E&&E.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==O&&void 0!==O&&null!==(_=O.detail)&&void 0!==_&&null!==(T=_.card)&&void 0!==T&&T.additionalDetails?null===O||void 0===O||null===(S=O.detail)||void 0===S||null===(k=S.card)||void 0===k||null===(P=k.additionalDetails)||void 0===P?void 0:P.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===O||void 0===O||null===(D=O.detail)||void 0===D||null===(F=D.card)||void 0===F?void 0:F.headerTraits)&&(null===O||void 0===O||null===(N=O.detail)||void 0===N||null===(I=N.card)||void 0===I||null===(R=I.headerTraits)||void 0===R?void 0:R.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.amount,isSmall:!0,token:t.paymentTokenName})})},name:"amount",sortable:!1,title:"Rental Fee"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.deposit,isSmall:!0,token:t.paymentTokenName})})},name:"deposit",sortable:!1,title:"Refundable Deposit"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:t.deposit+t.amount,isSmall:!0,token:t.paymentTokenName})})},name:"total",sortable:!1,title:"Total Due Upfront"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:Sl(t.term)})},name:"term",sortable:!1,title:"Duration"},{customRender:e=>{let{item:t}=e;return t.valuations?(0,ms.jsx)(rc,{valuationType:"DTV",children:(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[t.valuations.aggregate.depositToValueRatio.toFixed(2),"x"]})}):(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:"N/A"})},name:"valuations.aggregate.depositToValueRatio",sortable:!1,title:"3rd Party DTV"},{customRender:t=>{let{item:n}=t;return(0,ms.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),e("/user/".concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress))},className:"flex flex-row justify-start items-center hover:text-green-300",children:(0,ms.jsx)("a",{href:"/user/".concat(null===n||void 0===n?void 0:n.flowtyStorefrontAddress),children:(null===n||void 0===n?void 0:n.flowtyStorefrontAddress)||"--"})})},name:"flowtyStorefrontAddress",sortable:!1,title:"Owner"}],_D=e=>{let{showFilter:t,setShowFilter:n,filterBy:r,setFilterBy:i,isRenter:o}=e;const[a,s]=(0,sa.useState)(null),[l,c]=(0,sa.useState)({max:null,min:null}),[u,d]=(0,sa.useState)({max:null,min:null}),[p,h]=(0,sa.useState)({max:null,min:null}),[f,m]=(0,sa.useState)({max:null,min:null}),g=(0,sa.useMemo)((()=>[...o?[]:[{label:"Listed",value:"LISTED"},{label:"Delisted",value:"DELISTED"}],{label:"Rented",value:"RENTED"},{label:"Returned",value:"RETURNED"},{label:"Settled",value:"SETTLED"}]),[o]),v=[{path:"state",selectField:!0,setValue:s,title:"Status",value:a},{path:"amount",setValue:c,title:"Fee",value:l},{path:"deposit",setValue:d,title:"Deposit",value:u},{path:"term",setValue:h,title:"Duration (Days)",value:p},{path:"valuations.aggregate.depositToValueRatio",setValue:m,title:"3rd Party DTV",value:f}],y=()=>{s(null),c({max:null,min:null}),d({max:null,min:null}),h({max:null,min:null}),m({max:null,min:null})};return(0,sa.useEffect)((()=>{!r.path||r.min||r.max||i({...r,path:null}),r.path||y()}),[r]),(0,ms.jsx)(bl,{showFilter:t,setShowFilter:n,FilterFields:v,filterOptions:g,setAllFieldsNull:y,filterBy:r,setFilterBy:i})},TD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{let{authStore:t,asOwner:n=!1}=e;const[r,i]=(0,sa.useState)(0),[o,a]=(0,sa.useState)(!1),[s,l]=(0,sa.useState)(1),[c,u]=(0,sa.useState)(!0),[d,p]=(0,sa.useState)({max:"",min:"",path:""}),[h,f]=(0,sa.useState)([]),m=(0,js.Zp)(),g=(0,sa.useMemo)((()=>s*ss.cb),[s]),v=(0,sa.useMemo)((()=>h.length),[h]),y=xl({isLoading:o,onInfiniteScroll(){o||(l(s+1),i(v),ds.o.track("Inifinite Scroll Rentals Activity Table"))}},[v]);return(0,sa.useEffect)((()=>{a(!(r!==v||!v))}),[r,v]),(0,sa.useEffect)((()=>{var e,r;return null!==t&&void 0!==t&&null!==(e=t.loggedUser)&&void 0!==e&&e.addr?(e=>{let{asOwner:t=!1,limit:n=25,accountId:r,cb:i,filterBy:o,accountIDs:a}=e;const s=a||[r],l=t?"flowtyStorefrontAddress":"renter";(0,fs.t)({filterBy:o});let c=pl.kA.collection("rentalAvailable").where(l,"in",s);return null!==o&&void 0!==o&&o.path?"state"===(null===o||void 0===o?void 0:o.path)?(c=c.where(o.path,"==",o.min),c=c.orderBy("blockTimestamp","desc")):(c=c.orderBy(o.path,"desc"),"term"===o.path?(o.min&&(c=c.where(o.path,">=",60*Number(o.min)*60*24)),""!==o.max&&(c=c.where(o.path,"<=",60*Number(o.max)*60*24))):(o.path,o.min&&(c=c.where(o.path,">=",Number(o.min))),""!==o.max&&(c=c.where(o.path,"<=",Number(o.max))))):c=c.orderBy("blockTimestamp","desc"),c.limit(n).onSnapshot((async e=>{let{docs:t}=e;const n=cl()(t,10);await Promise.all(n.map((e=>pl.kA.collection("rentalAvailable").where("listingResourceID","in",e.map((e=>e.data().listingResourceID))).get()))).then((e=>{const n=dl()(t.map((e=>({...e.data(),id:e.id}))),"listingResourceID");i(e.flatMap((e=>e.docs.map((e=>({...e.data(),id:e.id}))))).map((e=>({...e,fundingAvailable:n[e.listingResourceID]}))))}))}))})({accountIDs:(null===t||void 0===t?void 0:t.getAccountSummaryAddresses())||[],accountId:null===t||void 0===t||null===(r=t.loggedUser)||void 0===r?void 0:r.addr,asOwner:n,cb(e){f(e)},filterBy:d,limit:g}):()=>{}}),[g,null===t||void 0===t?void 0:t.loggedUser,d]),(0,sa.useEffect)((()=>{l(1)}),[d]),(0,sa.useEffect)((()=>{d.path&&ds.o.track("Profile Rentals Activity Page Filtered",{filter:d,user:null===t||void 0===t?void 0:t.loggedUser})}),[d.path]),(0,ms.jsxs)("div",{className:" w-full flex flex-col ",children:[(0,ms.jsx)(_D,{showFilter:c,setShowFilter:u,filterBy:d,setFilterBy:p,isRenter:!n}),(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{u(!c)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{let{item:t}=e;return(null===t||void 0===t?void 0:t.listingResourceID)&&m(qD(t.listingResourceID))},fields:n?AD(m):ED(m),items:h,stickyHeaders:!0,composeRowHref:e=>qD(e.listingResourceID)})}),o?(0,ms.jsx)("div",{}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Cl,{}),(0,ms.jsx)("div",{ref:y})]})]})}))),SD=[{content:(0,ms.jsx)(CD,{}),name:"Activity"},{content:(0,ms.jsx)(TD,{}),name:"Renter"},{content:(0,ms.jsx)(TD,{asOwner:!0}),name:"Owner"}],kD=()=>{const[e,t]=(0,sa.useState)(SD[0].name);return(0,sa.useEffect)((()=>{ds.o.track("Profile Activity Rentals Visited",{currentTab:e})}),[e]),(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Ws,{}),(0,ms.jsxs)("div",{className:"mt-4 transition duration-700",children:[(0,ms.jsxs)("div",{children:[(0,ms.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"loanTabs",children:SD.map((n=>(0,ms.jsx)("div",{onClick:()=>{t(n.name),ds.o.track("Profile Activity Rentals Toggled: ".concat(n.name),{tab:n.name})},className:Ls()(n.name===e?"border-indigo-500 text-white":"border-transparent text-gray-500 hover:text-white hover:border-indigo-500","whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"),children:n.name},n.name)))}),(0,ms.jsx)("div",{className:"line-separator bg-gradient-to-r from-darkBg via-secondary to-darkBg"})]}),(0,ms.jsx)("div",{className:"mt-8 mb-3",children:SD.map((t=>t.name===e?(0,ms.jsx)("div",{children:t.content},t.name):null))})]})]})},PD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{authStore:n}=e;const r=[{content:(0,ms.jsx)(kD,{}),id:"tag-1",label:"User Activity"}];return(0,ms.jsxs)("div",{className:"pt-4 flex flex-col justify-center",children:[(0,ms.jsx)("div",{className:"self-center",children:(0,ms.jsx)("div",{className:"flex justify-center items-center",children:(0,ms.jsx)(Bl,{address:"".concat(null===n||void 0===n||null===(t=n.loggedUser)||void 0===t?void 0:t.addr)})})}),(0,ms.jsx)("div",{className:"mt-3",children:(0,ms.jsx)(Bs.cs,{activeTab:"tag-1",tabs:r,onChange:()=>{},type:"primary",isCenter:!0})})]})}))),DD=()=>(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Your NFT Rentals Activity",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("div",{className:"container",children:(0,ms.jsx)(PD,{})})]}),FD=e=>{let{showFilter:t,setShowFilter:n,filterBy:r,setFilterBy:i,asBuyer:o}=e;const[a,s]=(0,sa.useState)(null),[l,c]=(0,sa.useState)({max:null,min:null}),u=(0,sa.useMemo)((()=>o?[{label:"Purchased",value:"STOREFRONT_PURCHASED"},{label:"Offer Created",value:"STOREFRONT_OFFER_CREATED"},{label:"Offer Accepted",value:us.IEventType.StorefrontOfferAccepted.valueOf()},{label:"Offer Cancelled",value:us.IEventType.StorefrontOfferCancelled.valueOf()}]:[{label:"Offer Accepted",value:us.IEventType.StorefrontOfferAccepted.valueOf()},{label:"Purchased",value:"STOREFRONT_PURCHASED"},{label:"Listed",value:"STOREFRONT_LISTED"},{label:"Delisted",value:"STOREFRONT_DELISTED"}]),[o]),d=[{path:"state",selectField:!0,setValue:s,title:"Status",value:a},{path:"salePrice",setValue:c,title:"Price",value:l}],p=()=>{s(null),c({max:"",min:""})};return(0,sa.useEffect)((()=>{!r.path||r.min||r.max||i({...r,path:null}),r.path||p()}),[r]),(0,ms.jsx)(bl,{showFilter:t,setShowFilter:n,FilterFields:d,filterOptions:u,setAllFieldsNull:p,filterBy:r,setFilterBy:i})},ND=[{customRender:e=>{var t;let{item:n}=e;const r=n.type.split("_").pop().toLowerCase(),i="".concat(null!==(t=n.type.match(/offer/i)&&"Offer ")&&void 0!==t?t:"").concat(r);return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center capitalize",children:"destroyed"===i?"delisted":i})},name:"type",sortable:!1,title:"Event"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center","data-testid":"row-".concat(t.activityType),children:t.activityType})},name:"data.buyer",sortable:!1,title:"Role"},{customRender:e=>{let{item:t}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:t.blockTimestamp?(0,el.default)(t.blockTimestamp.toDate(),"yyyy-MM-dd HH:mm"):""})},name:"blockTimestamp",sortable:!1,title:"Date"},{customRender:e=>{var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,C,A,E,_,T,S,k,P,D,F,N,I,R,O,j,M,L;let{item:B}=e;const U="A.".concat(null===(t=B.additionalData)||void 0===t||null===(n=t.card)||void 0===n||null===(r=n.collectionAddress)||void 0===r?void 0:r.substring(2),".").concat(null===(i=B.additionalData)||void 0===i||null===(o=i.card)||void 0===o?void 0:o.collectionName,".NFT");return(0,ms.jsx)("div",{children:!(null===(a=B.additionalData)||void 0===a||!a.card)&&(0,ms.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,ms.jsx)("div",{className:"w-[40px] mr-2",children:(0,ms.jsx)(al,{collectionAddress:(null===B||void 0===B||null===(s=B.additionalData)||void 0===s||null===(l=s.card)||void 0===l?void 0:l.collectionAddress)||"",collectionName:(null===B||void 0===B||null===(c=B.additionalData)||void 0===c||null===(u=c.card)||void 0===u?void 0:u.collectionName)||"",srcImg:(0,us.getImageURL)(null!==(d=null===B||void 0===B||null===(p=B.additionalData)||void 0===p||null===(h=p.card)||void 0===h||null===(f=h.images)||void 0===f||null===(m=f[0])||void 0===m?void 0:m.url)&&void 0!==d?d:tl.A,(0,ss.hx)(U))})}),(0,ms.jsxs)("div",{className:"flex flex-col",children:[null!==(g=B.additionalData)&&void 0!==g&&g.card?(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(v=B.additionalData)||void 0===v||null===(y=v.card)||void 0===y?void 0:y.title}):(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold truncate",children:null===(b=B.additionalData)||void 0===b||null===(w=b.card)||void 0===w?void 0:w.title}),(null===(x=B.additionalData)||void 0===x||null===(C=x.card)||void 0===C?void 0:C.num)&&!(null!==(A=B.additionalData)&&void 0!==A&&null!==(E=A.card)&&void 0!==E&&E.title.includes("#"))&&(0,ms.jsxs)("span",{className:"text-[12px] text-primary font-montserrat font-extrabold ml-2",children:["#",null===(_=B.additionalData)||void 0===_||null===(T=_.card)||void 0===T?void 0:T.num]})]}),null!==B&&void 0!==B&&null!==(S=B.additionalData)&&void 0!==S&&null!==(k=S.card)&&void 0!==k&&k.additionalDetails?(0,ms.jsx)(ms.Fragment,{children:null!==B&&void 0!==B&&null!==(P=B.additionalData)&&void 0!==P&&null!==(D=P.card)&&void 0!==D&&D.additionalDetails?null===B||void 0===B||null===(F=B.additionalData)||void 0===F||null===(N=F.card)||void 0===N||null===(I=N.additionalDetails)||void 0===I?void 0:I.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e},e))):(0,ms.jsx)("div",{className:"flex flex-row items-center justify-start mt-2 h-4"})}):(0,ms.jsx)(ms.Fragment,{children:(null===B||void 0===B||null===(R=B.additionalData)||void 0===R||null===(O=R.card)||void 0===O?void 0:O.headerTraits)&&(null===B||void 0===B||null===(j=B.additionalData)||void 0===j||null===(M=j.card)||void 0===M||null===(L=M.headerTraits)||void 0===L?void 0:L.map((e=>(0,ms.jsx)("span",{className:"font-montserrat text-primary text-[12px] font-light",children:e.value},e.displayType))))})]})]})})},name:"detail",sortable:!1,title:"Details"},{customRender:e=>{var t,n,r;let{item:i}=e;return(0,ms.jsx)("div",{className:"flex flex-row justify-start items-center",children:(0,ms.jsx)(Fl.se,{amount:Number((null===i||void 0===i?void 0:i.amount)||(null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.salePrice)),isSmall:!0,token:(0,us.getTokenFromType)((null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.salePaymentVaultType)||(null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.paymentTokenType))})})},name:"amount",sortable:!1,title:"Amount"}];function ID(e){let{filterBy:t,role:n,loggedUserAddress:r,limit:i}=e;const[o,a]=(0,sa.useState)([]),[s,l]=(0,sa.useState)(!0),[c,u]=(0,sa.useState)(0);return(0,sa.useEffect)((()=>{l(!0);const e=(e=>{let{limit:t=25,cb:n,loggedUserAddress:r,filterBy:i,role:o}=e,a=!1;const s=(0,My.rJ)(pl.db,"storefrontEvents");let l=(0,My.P)(s),c=(0,My.P)(s);"buyer"===o&&(c=(0,My.P)(c,(0,My.or)((0,My._M)("data.buyer","==",r),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_CREATED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_CANCELLED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_ACCEPTED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("data.buyer","==",r),(0,My._M)("type","==","STOREFRONT_PURCHASED")))),l=(0,My.P)(l,(0,My.or)((0,My._M)("data.buyer","==",r),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_CREATED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_CANCELLED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_OFFER_ACCEPTED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("data.buyer","==",r),(0,My._M)("type","==","STOREFRONT_PURCHASED"))))),"seller"===o&&(c=(0,My.P)(c,(0,My.Uo)((0,My._M)("accountAddress","==",r),(0,My.or)((0,My.Uo)((0,My._M)("type","==","STOREFRONT_LISTED")),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_DELISTED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("accountAddress","==",r),(0,My._M)("type","==","STOREFRONT_PURCHASED"))))),l=(0,My.P)(l,(0,My.Uo)((0,My._M)("accountAddress","==",r),(0,My.or)((0,My.Uo)((0,My._M)("type","==","STOREFRONT_LISTED")),(0,My.Uo)((0,My._M)("type","==","STOREFRONT_DELISTED"),(0,My._M)("accountAddress","==",r)),(0,My.Uo)((0,My._M)("accountAddress","==",r),(0,My._M)("type","==","STOREFRONT_PURCHASED")))))),"buyerAndSeller"===o&&(c=(0,My.P)(c,(0,My.or)((0,My._M)("data.buyer","==",r),(0,My._M)("accountAddress","in",[r]))),l=(0,My.P)(l,(0,My.or)((0,My._M)("data.buyer","==",r),(0,My._M)("accountAddress","in",[r])))),"salePrice"===(null===i||void 0===i?void 0:i.path)&&(null===i||void 0===i||!i.min||null!==i&&void 0!==i&&i.max||(c=(0,My.P)(c,(0,My._M)("data.salePrice",">=",Number(i.min)),(0,My.My)("data.salePrice")),l=(0,My.P)(l,(0,My._M)("data.salePrice",">=",Number(i.min)))),null===i||void 0===i||!i.max||null!==i&&void 0!==i&&i.min||(c=(0,My.P)(c,(0,My._M)("data.salePrice","<=",Number(i.max)),(0,My.My)("data.salePrice")),l=(0,My.P)(l,(0,My._M)("data.salePrice","<=",Number(i.max)))),null!==i&&void 0!==i&&i.min&&null!==i&&void 0!==i&&i.max&&(c=(0,My.P)(c,(0,My._M)("data.salePrice",">=",Number(i.min)),(0,My._M)("data.salePrice","<=",Number(i.max)),(0,My.My)("data.salePrice")),l=(0,My.P)(l,(0,My._M)("data.salePrice",">=",Number(i.min)),(0,My._M)("data.salePrice","<=",Number(i.max)))),a=!0),"state"===(null===i||void 0===i?void 0:i.path)&&(c=(0,My.P)(c,(0,My._M)("type","==",i.min)),l=(0,My.P)(l,(0,My._M)("type","==",i.min))),c=(0,My.P)(c,(0,My.My)("blockTimestamp","desc")),c=(0,My.P)(c,(0,My.AB)(t));const u=(0,My.GG)(l).then((e=>e.size));return(0,My.aQ)(c,(e=>{const t=e.docs.map((e=>({id:e.id,...e.data()})));t&&u.then((e=>{n({data:t,totalCount:e})}))}))})({cb:e=>{let{data:t,totalCount:n}=e;a(t),u(n),l(!1)},filterBy:t,limit:i,loggedUserAddress:r,role:n});return()=>e()}),[r,i,null===t||void 0===t?void 0:t.path,null===t||void 0===t?void 0:t.max,null===t||void 0===t?void 0:t.min,n]),{dataCount:c,loading:s,storefrontData:o}}const RD=e=>{let{item:t,loggedUserAddress:n}=e;if("STOREFRONT_OFFER_ACCEPTED"===t.type)return"Buyer";if("STOREFRONT_LISTED"===t.type)return"Seller";if("STOREFRONT_DELISTED"===t.type)return"Seller";if("STOREFRONT_OFFER_CREATED"===t.type)return"Buyer";if("STOREFRONT_OFFER_CANCELLED"===t.type)return"Buyer";if("STOREFRONT_PURCHASED"===t.type){var r;if((null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.buyer)===n)return"Buyer";if((null===t||void 0===t?void 0:t.accountAddress)===n)return"Seller"}},OD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t,n,r;let{authStore:i,userRole:o}=e;const[a,s]=(0,sa.useState)(0),[l,c]=(0,sa.useState)(1),[u,d]=(0,sa.useState)(!0),[p,h]=(0,sa.useState)({max:null,min:null,path:null}),f=(0,sa.useMemo)((()=>l*ss.cb),[l]),m=null!==(t=null===i||void 0===i||null===(n=i.loggedUser)||void 0===n?void 0:n.addr)&&void 0!==t?t:"",{storefrontData:g,loading:v,dataCount:y}=ID({filterBy:p,limit:f,loggedUserAddress:m,role:o}),b=(0,sa.useMemo)((()=>g.map((e=>({...e,activityType:RD({item:e,loggedUserAddress:m})})))),[g,m,RD]),w=(0,sa.useMemo)((()=>({column:"blockTimestamp",order:qs.Descending})),[]),x=(0,js.Zp)(),C=(0,sa.useMemo)((()=>b.length),[b.length]),A=(0,sa.useMemo)((()=>C<y),[C,y]),E=(0,sa.useMemo)((()=>a===C&&A),[a,C,A]),_=xl({isLoading:E,onInfiniteScroll(){!v&&A&&(c((e=>e+1)),s(C)),ds.o.track("Infinite Scroll Profile Storefront Table")}},[C,E,v]);(0,sa.useEffect)((()=>{c(1)}),[w,p]),(0,sa.useEffect)((()=>{ds.o.track("Profile Storefront Page Visited")}),[]),(0,sa.useEffect)((()=>{p.path&&ds.o.track("Profile Storefront Page Filtered",{filter:p,user:null===i||void 0===i?void 0:i.loggedUser})}),[p.path]);const T=(0,sa.useMemo)((()=>"buyer"!==o||u?"seller"!==o||u?"buyerAndSeller"!==o||u?void 0:(0,ms.jsx)(DA,{showFilter:u,setShowFilter:d,filterBy:p,setFilterBy:h}):(0,ms.jsx)(FD,{asBuyer:!1,showFilter:u,setShowFilter:d,filterBy:p,setFilterBy:h}):(0,ms.jsx)(FD,{asBuyer:!0,showFilter:u,setShowFilter:d,filterBy:p,setFilterBy:h})),[o,u,d,p,h]);return(0,ms.jsxs)("div",{className:" w-full flex flex-col min-h-screen",children:[T,(0,ms.jsx)("button",{className:"flex justify-center w-20 relative self-end -top-24 float-right bg-blue-500 text-white active:bg-blue-600 hover:bg-blue-600 font-bold uppercase text-sm px-6 py-4 rounded-3xl shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150",type:"button",onClick:()=>{d(!u)},children:(0,ms.jsx)("span",{children:"Filter"})}),(0,ms.jsx)("div",{className:"relative -top-16 ",children:(0,ms.jsx)($s,{onClickRow:e=>{var t,n,r,i,o,a;let{item:s}=e;const l=(null===(t=s.data)||void 0===t?void 0:t.nftType)||(null===(n=s.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftType)||"",c=((null===(i=s.data)||void 0===i?void 0:i.nftID)||(null===(o=s.data)||void 0===o||null===(a=o.typeAndIDOffer)||void 0===a?void 0:a.nftID)||"").toString(),u=l&&c?(0,us.nftTypeAndIdToLocationData)(l,c):null;return u&&x("/asset/".concat(u.contract.address,"/").concat(u.contract.name,"/").concat(u.resourceName,"/").concat(u.nftID))},fields:ND,items:b,stickyHeaders:!0,composeRowHref:e=>{var t,n,r,i,o,a;const s=(null===(t=e.data)||void 0===t?void 0:t.nftType)||(null===(n=e.data)||void 0===n||null===(r=n.typeAndIDOffer)||void 0===r?void 0:r.nftType)||"",l=((null===(i=e.data)||void 0===i?void 0:i.nftID)||(null===(o=e.data)||void 0===o||null===(a=o.typeAndIDOffer)||void 0===a?void 0:a.nftID)||"").toString(),c=s&&l?(0,us.nftTypeAndIdToLocationData)(s,l):null;return"/asset/".concat(null===c||void 0===c?void 0:c.contract.address,"/").concat(null===c||void 0===c?void 0:c.contract.name,"/").concat(null===c||void 0===c?void 0:c.resourceName,"/").concat(null===c||void 0===c?void 0:c.nftID)}})}),v?(0,ms.jsx)(Cl,{}):null,!v&&C<=0?(0,ms.jsx)("div",{className:"mx-auto",children:"No Activity"}):null,null!==(r=!E)&&void 0!==r?r:(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsx)(Cl,{})}),(0,ms.jsx)("div",{className:"mt-auto",ref:_})]})}))),jD=[{content:(0,ms.jsx)(OD,{userRole:"buyerAndSeller"}),name:"Activity"},{content:(0,ms.jsx)(OD,{userRole:"buyer"}),name:"Buyer"},{content:(0,ms.jsx)(OD,{userRole:"seller"}),name:"Seller"}],MD=()=>{const[e,t]=(0,sa.useState)(jD[0].name);return(0,sa.useEffect)((()=>{ds.o.track("Profile Activity Storefront Visited",{currentTab:e})}),[e]),(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(Ws,{}),(0,ms.jsxs)("div",{className:"mt-4 transition duration-700",children:[(0,ms.jsxs)("div",{children:[(0,ms.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"loanTabs",children:jD.map((n=>(0,ms.jsx)("div",{onClick:()=>{t(n.name),ds.o.track("Profile Activity Storefront Toggled: ".concat(n.name),{tab:n.name})},className:Ls()(n.name===e?"border-indigo-500 text-white":"border-transparent text-gray-500 hover:text-white hover:border-indigo-500","whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"),children:n.name},n.name)))}),(0,ms.jsx)("div",{className:"line-separator bg-gradient-to-r from-darkBg via-secondary to-darkBg"})]}),(0,ms.jsx)("div",{className:"mt-8 mb-3",children:jD.map((t=>t.name===e?(0,ms.jsx)("div",{children:t.content},t.name):null))})]})]})},LD=(0,ua.WQ)("authStore")((0,ua.PA)((e=>{var t;let{activeTabBtn:n=Ul.Listed,authStore:r}=e;const i=[{content:(0,ms.jsx)(MD,{}),id:"tag-1",label:"User Activity"}];return(0,ms.jsxs)("div",{className:"pt-4 flex flex-col justify-center",children:[(0,ms.jsx)("div",{className:"self-center",children:(0,ms.jsx)("div",{className:"flex justify-center items-center",children:(0,ms.jsx)(Bl,{address:"".concat(null===r||void 0===r||null===(t=r.loggedUser)||void 0===t?void 0:t.addr)})})}),(0,ms.jsx)("div",{className:"user-profile-tabnav mt-3",children:(0,ms.jsx)(Bs.cs,{activeTab:"tag-1",tabs:i,onChange:()=>{},type:"primary",isCenter:!0})})]})}))),BD=e=>{let{activeTabBtn:t=Ul.History}=e;return(0,ms.jsxs)(fv,{children:[(0,ms.jsx)(ac,{metaTitle:"Flowty: Your NFT Storefront Activity",metaDescription:"Flowty is an open, full-featured NFT marketplace for collectors, traders, investors and creators on the Flow blockchain. Flowty's transaction capabilities range from buying and selling to NFT-backed loans and NFT rentals.",metaImage:"https://www.flowty.io/icons/icon192.png"}),(0,ms.jsx)("div",{className:"container",children:(0,ms.jsx)(LD,{activeTabBtn:t})})]})};var UD;let VD=function(e){return e.Home="/",e.Marketplace="/marketplace",e.Activity="/activity",e.AssetResource="/asset/:collectionAddress/:collectionName/:resource/:nftId",e.Asset="/asset/:collectionAddress/:collectionName/:nftId",e.UserFlow="/user/:walletAddress",e.UserSignIn="/signIn",e.UserProfileScreen="/user-profile",e.UserProfileScreenP2P="/user-profile/loans",e.UserProfileScreenRentals="/user-profile/rentals",e.UserProfileScreenStorefront="/user-profile/storefront",e.Settings="/settings",e.SettingsNotifications="/notification-settings",e.Listed="/listed",e.Loans="/loans",e.Funded="/funded",e.LoanListing="/listing/:listingResourceId",e.Terms="/tos",e.Privacy="/privacy",e.RentalListing="/rentals/:listingResourceId",e.RentalMarketplace="/rentals",e.ProfileFlowScreen="/user/profile",e.ProfileCreatorHubFlowScreen="/user/creator-hub",e.SwapListing="/swaps/:listingResourceId",e.Collection="/collection/:collectionAddress/:collectionName",e.Storefront="/storefront",e.StorefrontListing="/storefront/:listingResourceId",e.Collections="/collections",e.TwitterOauth="/_twitter-oauth",e.DiscordOauth="/_discord-oauth",e.CreatorHub="/create",e}({});const HD=e=>VD.UserFlow.replace(":walletAddress",e),zD=(e,t)=>e.replace(":listingResourceId",String(t)),WD=e=>zD(VD.LoanListing,e),qD=e=>zD(VD.RentalListing,e);var GD=function(e){return e.Home="Home",e.Marketplace="Marketplace",e.Activity="/activity",e.Asset="Asset",e.AssetResource="AssetResource",e.UserProfile="/user-profile",e.UserSignIn="/signIn",e.UserFlow="UserFlow",e.UserProfileScreen="UserProfileScreen",e.UserProfileScreenP2P="UserProfileScreenP2P",e.UserProfileScreenRentals="UserProfileScreenRentals",e.UserProfileScreenStorefront="UserProfileScreenStorefront",e.Settings="Settings",e.SettingsNotifications="SettingsNotifications",e.Listed="Listed",e.Loans="Loans",e.RentalListing="RentalListing",e.RentalMarketplace="RentalMarketplace",e.Funded="Funded",e.LoanListing="LoanListing",e.Terms="Terms",e.Privacy="Privacy",e.ProfileFlowScreen="ProfileFlowScreen",e.ProfileCreatorHubFlowScreen="ProfileCreatorHubFlowScreen",e.Collection="Collection",e.Collections="Collections",e.TwitterOauth="TwitterOauth",e.DiscordOauth="DiscordOauth",e.StorefrontListing="StorefrontListing",e.Storefront="Storefront",e.StorefrontMarketplace="StorefrontMarketplace",e.UserPreference="UserPreference",e.CreatorHub="/create",e}(GD||{});const YD="ACTIVITY_PREF",KD=e=>{let{children:t,type:n}=e;return(0,sa.useEffect)((()=>localStorage.setItem(YD,n))),t},QD=[{element:(0,ms.jsx)(G_,{}),key:GD.Home,path:VD.Home},{element:(0,ms.jsx)(Pk,{}),key:GD.UserSignIn,path:VD.UserSignIn},{element:(0,ms.jsx)(Cw,{}),key:[GD.Marketplace],path:[VD.Marketplace]},{element:(0,ms.jsx)(Cw,{}),key:GD.Collections,path:VD.Collections},{element:(0,ms.jsx)(yD,{}),key:GD.TwitterOauth,path:VD.TwitterOauth},{element:(0,ms.jsx)(q_,{}),key:GD.DiscordOauth,path:VD.DiscordOauth},{element:(0,ms.jsx)(js.C5,{replace:!0,to:"".concat(VD.Activity,"/storefront")}),key:[GD.Activity,GD.Loans,GD.UserPreference],path:VD.Activity},{element:(0,ms.jsx)(KD,{type:"loans",children:(0,ms.jsx)(gv,{})}),key:[GD.Activity,GD.Loans],path:[VD.Activity,VD.Loans]},{element:(0,ms.jsx)(KD,{type:"rentals",children:(0,ms.jsx)(tk,{})}),key:[GD.Activity,GD.RentalMarketplace],path:[VD.Activity,VD.RentalMarketplace]},{element:(0,ms.jsx)(js.C5,{replace:!0,to:"".concat(VD.UserProfileScreen+VD.Loans)}),key:[GD.Activity,GD.RentalListing],path:[VD.Activity,VD.RentalListing]},{element:(0,ms.jsx)(KD,{type:"loans",children:(0,ms.jsx)(wD,{})}),key:[GD.UserProfile,GD.Loans],path:[VD.UserProfileScreen,VD.Loans]},{element:(0,ms.jsx)(KD,{type:"rentals",children:(0,ms.jsx)(DD,{})}),key:[GD.UserProfile,GD.RentalMarketplace],path:[VD.UserProfileScreen,VD.RentalMarketplace]},{element:(0,ms.jsx)(KD,{type:"storefront",children:(0,ms.jsx)(BD,{})}),key:[GD.UserProfile,GD.Storefront],path:[VD.UserProfileScreen,VD.Storefront]},{element:(0,ms.jsx)(js.C5,{replace:!0,to:"".concat(VD.UserProfileScreen,"/").concat(null!==(UD=localStorage.getItem(YD))&&void 0!==UD?UD:"storefront")}),key:[GD.UserProfileScreen,GD.Loans],path:VD.UserProfileScreen},{element:(0,ms.jsx)(kk,{}),key:GD.Settings,path:VD.Settings},{element:(0,ms.jsx)(vD,{}),key:GD.Terms,path:VD.Terms},{element:(0,ms.jsx)(qT,{}),key:GD.Privacy,path:VD.Privacy},{element:(0,ms.jsx)(kk,{}),key:GD.SettingsNotifications,path:VD.SettingsNotifications},{element:(0,ms.jsx)(wD,{activeTabBtn:Ul.Listed}),key:GD.Listed,path:VD.Listed},{element:(0,ms.jsx)(wD,{activeTabBtn:Ul.Funded}),key:GD.Funded,path:VD.Funded},{element:(0,ms.jsx)(WT,{}),key:GD.LoanListing,path:VD.LoanListing},{element:(0,ms.jsx)($S,{}),key:GD.RentalListing,path:VD.RentalListing},{element:(0,ms.jsx)(K_,{}),key:GD.StorefrontListing,path:VD.StorefrontListing},{element:(0,ms.jsx)(bD,{}),key:GD.UserFlow,path:VD.UserFlow},{element:(0,ms.jsx)(zS,{}),key:GD.ProfileFlowScreen,path:VD.ProfileFlowScreen},{element:(0,ms.jsx)(H_,{}),key:GD.ProfileCreatorHubFlowScreen,path:VD.ProfileCreatorHubFlowScreen},{element:(0,ms.jsx)(mw,{}),key:GD.AssetResource,path:VD.AssetResource},{element:(0,ms.jsx)(mw,{}),key:GD.Asset,path:VD.Asset},{element:ss.SE?(0,ms.jsx)(W_,{}):(0,ms.jsx)(ky,{}),key:GD.CreatorHub,path:VD.CreatorHub}];ss.bo&&(QD.push({element:(0,ms.jsx)(R_,{}),key:[GD.Collection],path:[VD.Collection]}),ss.hr&&QD.push({element:(0,ms.jsx)(KD,{type:"storefront",children:(0,ms.jsx)(Fk,{})}),key:[GD.Activity,GD.StorefrontMarketplace],path:[VD.Activity,VD.Storefront]}));const XD=(0,ua.PA)((()=>{const e=QD;return(0,ms.jsx)(ms.Fragment,{children:(0,ms.jsxs)(js.BV,{children:[e.map((e=>{let{key:t,path:n,...r}=e;const i=Array.isArray(t)?t.join("-"):t,o=Array.isArray(n)?n.join(""):n;return(0,sa.createElement)(js.qh,{...r,key:i,path:o})})),(0,ms.jsx)(js.qh,{path:"*",element:(0,ms.jsx)(ky,{})})]})})}));var ZD=new Map,JD={},$D={},eF=function(e){return Boolean(e)&&!1===Array.isArray(e)&&"object"===typeof e},tF=function(e,t,n){void 0===n&&(n="")},nF=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},rF=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},iF=function(){function e(e){this.options=e}return e.prototype.setItem=function(e,t){var n;return nF(this,void 0,void 0,(function(){var r,i,o,a,s,l,c;return rF(this,(function(u){switch(u.label){case 0:return r=this.options,i=r.stringify,o=void 0===i||i,a=r.debugMode,d={expireInTimestamp:this.options.expireIn?(h=this.options.expireIn,(new Date).getTime()+h):void 0,version:this.options.version},p=function(e){return void 0===e},Object.keys(d).forEach((function(e){return p(d[e])&&delete d[e]})),s=d,l=Object.keys(s).length?Object.assign({},t,{__mps__:s}):t,c=o?JSON.stringify(l):l,tF(0,"".concat(e," - setItem:"),c),[4,null===(n=this.options.storage)||void 0===n?void 0:n.setItem(e,c)];case 1:return u.sent(),[2]}var d,p,h}))}))},e.prototype.getItem=function(e){var t,n,r;return nF(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,d,p;return rF(this,(function(h){switch(h.label){case 0:return i=this.options,o=i.removeOnExpiration,a=void 0===o||o,s=i.debugMode,l=i.version,[4,null===(t=this.options.storage)||void 0===t?void 0:t.getItem(e)];case 1:c=h.sent();try{u=JSON.parse(c)||{}}catch(f){u=c||{}}return d=function(e){var t=(new Date).getTime();return new Date(e).getTime()<=t}(null===(n=u.__mps__)||void 0===n?void 0:n.expireInTimestamp),p=l&&(null===(r=u.__mps__)||void 0===r?void 0:r.version)!==l,tF(0,"".concat(e," - hasExpired"),d),tF(0,"".concat(e," - mismatchedVersion"),p),d&&a||p?[4,this.removeItem(e)]:[3,3];case 2:h.sent(),h.label=3;case 3:return u=d||p?{}:u,tF(0,"".concat(e," - (getItem):"),u),[2,u]}}))}))},e.prototype.removeItem=function(e){var t;return nF(this,void 0,void 0,(function(){var n;return rF(this,(function(r){switch(r.label){case 0:return n=this.options.debugMode,tF(0,"".concat(e," - (removeItem): storage was removed")),[4,null===(t=this.options.storage)||void 0===t?void 0:t.removeItem(e)];case 1:return r.sent(),[2]}}))}))},e}(),oF=function(e){return e.reduce((function(e,t){return"string"===typeof t?(e.push({key:t,serialize:function(e){return e},deserialize:function(e){return e}}),e):(eF(n=t)?["key","serialize","deserialize"].every((function(e){return!(!n.hasOwnProperty(e)||"undefined"===typeof e)||(tF(JD.debugMode,"".concat(String(e)," not found in SerializableProperty"),{key:e,obj:n}),!1)})):(tF(JD.debugMode,0,{obj:n}),0))?(e.push(t),e):e;var n}),[])},aF=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},sF=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},lF=function(){function e(e,t,n){var r,i,o,a,s,l,c,u;void 0===n&&(n={}),this.cancelWatch=null,this.properties=[],this.reactionOptions={},this.storageAdapter=null,this.target=null,this.version=void 0,this.debugMode=!1,this.isHydrated=!1,this.isPersisting=!1,this.storageName="",this.target=e,this.storageName=t.name,this.version=null!==(r=t.version)&&void 0!==r?r:JD.version,this.properties=oF(t.properties),this.reactionOptions=Object.assign({fireImmediately:!0},$D,n),this.debugMode=null!==(o=null!==(i=t.debugMode)&&void 0!==i?i:JD.debugMode)&&void 0!==o&&o,this.storageAdapter=new iF({version:this.version,expireIn:null!==(a=t.expireIn)&&void 0!==a?a:JD.expireIn,removeOnExpiration:null===(l=null!==(s=t.removeOnExpiration)&&void 0!==s?s:JD.removeOnExpiration)||void 0===l||l,stringify:null===(u=null!==(c=t.stringify)&&void 0!==c?c:JD.stringify)||void 0===u||u,storage:t.storage?t.storage:JD.storage,debugMode:this.debugMode}),(0,sc.Gn)(this,{clearPersistedStore:sc.XI,hydrateStore:sc.XI,isHydrated:sc.sH,isPersisting:sc.sH,pausePersisting:sc.XI,startPersisting:sc.XI,stopPersisting:sc.XI},{autoBind:!0,deep:!1}),this.storageAdapter.options.storage,this.storageName,tF(this.debugMode,"".concat(this.storageName," - (makePersistable)"),{properties:this.properties,storageAdapter:this.storageAdapter,reactionOptions:this.reactionOptions})}return e.prototype.init=function(){return aF(this,void 0,void 0,(function(){return sF(this,(function(e){switch(e.label){case 0:return[4,this.hydrateStore()];case 1:return e.sent(),this.startPersisting(),[2,this]}}))}))},e.prototype.hydrateStore=function(){return aF(this,void 0,void 0,(function(){var e,t,n,r=this;return sF(this,(function(i){switch(i.label){case 0:return e=Boolean(this.cancelWatch),this.isPersisting&&this.pausePersisting(),(0,sc.h5)((function(){r.isHydrated=!1,tF(r.debugMode,"".concat(r.storageName," - (hydrateStore) isHydrated:"),r.isHydrated)})),this.storageAdapter&&this.target?[4,this.storageAdapter.getItem(this.storageName)]:[3,2];case 1:t=i.sent(),n=this.target,t&&(0,sc.h5)((function(){r.properties.forEach((function(e){var r;if([n.hasOwnProperty(e.key),"undefined"!==typeof t[e.key]].every(Boolean)){var i=t[e.key];n[e.key]instanceof sc.Es&&(r=i,Array.isArray(r)&&r.every((function(e){return Array.isArray(e)})))?n[e.key]=e.deserialize(new Map(i)):n[e.key]=e.deserialize(i)}}))})),i.label=2;case 2:return(0,sc.h5)((function(){r.isHydrated=!0,tF(r.debugMode,"".concat(r.storageName," - isHydrated:"),r.isHydrated)})),e&&this.startPersisting(),[2]}}))}))},e.prototype.startPersisting=function(){var e=this;if(this.storageAdapter&&this.target&&!this.cancelWatch){var t=this.target;this.cancelWatch=(0,sc.mJ)((function(){var n={};return e.properties.forEach((function(e){var r=(0,sc.H8)(t,e.key),i=(0,sc.ve)(t[e.key]);if(String(e.key),String(e.key),!r&&!i){var o=e.serialize(t[e.key]);if(o instanceof sc.Es){var a=[];o.forEach((function(e,t){a.push([t,(0,sc.HO)(e)])})),o=a}n[e.key]=(0,sc.HO)(o)}})),n}),(function(t){return aF(e,void 0,void 0,(function(){return sF(this,(function(e){switch(e.label){case 0:return this.storageAdapter?[4,this.storageAdapter.setItem(this.storageName,t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}),this.reactionOptions),this.isPersisting=!0,tF(this.debugMode,"".concat(this.storageName," - (startPersisting) isPersisting:"),this.isPersisting)}},e.prototype.pausePersisting=function(){this.isPersisting=!1,tF(this.debugMode,"".concat(this.storageName," - pausePersisting (isPersisting):"),this.isPersisting),this.cancelWatch&&(this.cancelWatch(),this.cancelWatch=null)},e.prototype.stopPersisting=function(){this.pausePersisting(),tF(this.debugMode,"".concat(this.storageName," - (stopPersisting)")),ZD.delete(this.target),this.cancelWatch=null,this.properties=[],this.reactionOptions={},this.storageAdapter=null,this.target=null},e.prototype.clearPersistedStore=function(){return aF(this,void 0,void 0,(function(){return sF(this,(function(e){switch(e.label){case 0:return this.storageAdapter?(tF(this.debugMode,"".concat(this.storageName," - (clearPersistedStore)")),[4,this.storageAdapter.removeItem(this.storageName)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.getPersistedStore=function(){return aF(this,void 0,void 0,(function(){return sF(this,(function(e){return this.storageAdapter?(tF(this.debugMode,"".concat(this.storageName," - (getPersistedStore)")),[2,this.storageAdapter.getItem(this.storageName)]):[2,null]}))}))},e}(),cF=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},uF=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},dF=function(e,t,n){return cF(void 0,void 0,void 0,(function(){var r;return uF(this,(function(i){return r=new lF(e,t,n),Array.from(ZD.values()).map((function(e){return e.storageName})).includes(r.storageName),r.storageName,function(e,t){ZD.set(e,t)}(e,r),[2,r.init()]}))}))};const pF={alerts:[]},hF="accountGlobalAlert",fF=async e=>{try{const t=pl.db.collection(hF),n=await t.doc(e).get();if(n.exists){return n.data()}}catch(t){ds.o.track("ERROR_FIREBASE_GET_ACCOUNT_GLOBAL_ALERT",{e:t})}return null};const mF=class{constructor(e){this.activeGlobalAlerts=sc.sH.map({}),this.loadingUser=!1,this.loggedUser=null,this.rootStore=void 0,this.setUser=async e=>{(0,fs.t)("setUser",e),this.loadingUser=!1,this.loggedUser=e},this.setLoadingUser=async e=>{this.loadingUser=e},this.setEmail=e=>{this.loggedUser&&(this.loggedUser.email=e)},this.setMarketingEmail=e=>{this.loggedUser&&(this.loggedUser.marketingEmail=e)},this.setWelcomeMessagePopupAcknowledged=e=>{this.loggedUser&&(this.loggedUser.welcomePopupAcknowledged=e)},this.setNewTermsAcknowledged=e=>{this.loggedUser&&(this.loggedUser.hasAcceptedTermsV2=e)},this.setPromotionAcknowledged=(e,t)=>{this.loggedUser&&(this.loggedUser.hasAcknowledgedPromotions||(this.loggedUser.hasAcknowledgedPromotions={}),this.loggedUser.hasAcknowledgedPromotions[e]=t)},this.setOptIn=e=>{this.loggedUser&&(this.loggedUser.emailOptIn=e)},this.setChildBalances=e=>{this.loggedUser&&((0,fs.t)("setting child account balances",e),this.loggedUser.childAccountBalances=null!==e&&void 0!==e?e:null)},this.setChildFTProviders=e=>{var t;null!==(t=this.loggedUser)&&void 0!==t&&t.childAccounts&&((0,fs.t)("setting child FT providers",e),this.loggedUser.childAccountFTProviders=e||null)},this.setChildAccountFTSummaries=e=>{var t;null!==(t=this.loggedUser)&&void 0!==t&&t.childAccounts&&((0,fs.t)("setting child account summaries",e),this.loggedUser.accountSummaries=e||null)},this.isLoggedUserHasBallance=(e,t)=>{var n,r;const i=(null===t||void 0===t?void 0:t.toUpperCase())||us.SupportedTokens.FLOW,o=Tf.su.tokens.getTokenIdentifier(i),a=null!==(n=this.loggedUser)&&void 0!==n&&null!==(r=n.balance)&&void 0!==r&&r.balances&&o in this.loggedUser.balance.balances?Number(this.loggedUser.balance.balances[o]):0;return Number(a)>=e},this.loadActiveGlobalAlerts=()=>{pF.alerts.map((async e=>{await this.isGlobalAlertVisible(e.id)&&(0,sc.hZ)(this.activeGlobalAlerts,e.id,e)}))},this.isGlobalAlertVisible=async e=>{var t;const n=null===(t=this.loggedUser)||void 0===t?void 0:t.addr;if(n){const t=pF.alerts.find((t=>t.id===e));if(t){if(!t.active)return!1;const r=await fF(n);if(r){const t=r.alerts[e];if(t)return!t.dismissed}return!0}throw new Error('Not found global alert config with id "'.concat(e,'"'))}return!!(0,sc.Jt)(this.activeGlobalAlerts,e)},this.globalAlertClose=async e=>{(0,sc.h5)((()=>{(0,sc.TF)(this.activeGlobalAlerts,e)}))},this.globalAlertDismiss=async e=>{var t;const n=null===(t=this.loggedUser)||void 0===t?void 0:t.addr;if(n){const t=await fF(n),r=(null===t||void 0===t?void 0:t.alerts)||{};r[e]={dismissed:!0,seen:!0},(async(e,t)=>{if(!e)throw Error("Not receiveed required parameter address!");try{pl.db.collection(hF).doc(e).set(t)}catch(n){ds.o.track("ERROR_FIREBASE_SET_ACCOUNT_GLOBAL_ALERT",{e:n})}})(n,{alerts:r}).then((()=>{(0,sc.TF)(this.activeGlobalAlerts,e)}))}},this.getAccountSummaryAddresses=()=>{var e;if(null===(e=this.loggedUser)||void 0===e||!e.addr)return[];const t=[this.loggedUser.addr||""];return this.loggedUser.accountSummaries&&Object.values(this.loggedUser.accountSummaries).forEach((e=>{t.push(e.address)})),t},(0,fs.t)("AuthStore constructor"),this.rootStore=e,(0,fs.t)(e),(0,sc.l_)(this),dF(this,{name:"AuthStore",properties:["loggedUser"],storage:window.localStorage}).then((async t=>{(0,fs.t)("AuthStore","res",t,t.target);const n=await new Promise((e=>{const t=Tg(pl.j2,(n=>{t(),e(n)}),(n=>{ds.o.track("[PREVIEW 2-4233]ErrorOnAuthStateChanged",{err:n}),t(),e(null)}))}));lv(this.setUser,(t=>{const n=this.rootStore.flowNetworkStatus.errors.length>0?[...this.rootStore.flowNetworkStatus.errors,null===t||void 0===t?void 0:t.toString()]:[t];e.setFlowNetworkStatus({errors:n,healthy:!1})}),n,this.setLoadingUser)}))}setProfileImage(e){this.loggedUser&&(this.loggedUser.avatar=e)}setPreferredCardSize(e){this.loggedUser&&(this.loggedUser.preferredCardSize=e)}setUsername(e){this.loggedUser&&(this.loggedUser.userName=e)}setLinkedWalletImage(e,t){var n,r,i,o;null!==(n=this.loggedUser)&&void 0!==n&&null!==(r=n.accountSummaries)&&void 0!==r&&null!==(i=r[e])&&void 0!==i&&null!==(o=i.display)&&void 0!==o&&o.thumbnail&&(this.loggedUser.accountSummaries[e].display.thumbnail=t)}setLinkedWalletDisplayName(e,t){var n,r,i,o;null!==(n=this.loggedUser)&&void 0!==n&&null!==(r=n.accountSummaries)&&void 0!==r&&null!==(i=r[e])&&void 0!==i&&null!==(o=i.display)&&void 0!==o&&o.name&&(this.loggedUser.accountSummaries[e].display.name=t)}};const gF=class{constructor(){this.flowtyInitializedBlock=0,this.flowNetworkStatus={errors:[],healthy:!0},this.setFlowtyInitializedBlock=e=>{(0,sc.h5)((()=>{this.flowtyInitializedBlock=e}))},this.setFlowNetworkStatus=e=>{(0,sc.h5)((()=>{this.flowNetworkStatus=e}))},(0,sc.l_)(this)}};(0,fs.t)("stores/index");const vF=new gF,yF={authStore:new mF(vF),rootStore:vF},bF=()=>{(0,sa.useEffect)((()=>{const e=()=>{const e=document.createElement("div");e.style.overflowY="scroll",e.style.width="100vw",e.style.visibility="hidden",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;document.body.removeChild(e),document.documentElement.style.setProperty("--scrollbar-width","".concat(t,"px"))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[])},wF=()=>(bF(),(()=>{if(window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches){const e=/iphone|ipad|ipod/.test(window.navigator.userAgent.toLowerCase()),t=/android/.test(window.navigator.userAgent.toLowerCase()),n=e?"iOS":t?"android":"desktop";ds.o.track("PWA Launched",{device:n})}})(),(0,ms.jsx)(Ja,{children:(0,ms.jsx)(ua.Kq,{...yF,children:(0,ms.jsx)(Rs,{children:(0,ms.jsx)(bs.H,{children:(0,ms.jsx)(ws.e,{children:(0,ms.jsx)(bb,{children:(0,ms.jsx)(As,{children:(0,ms.jsx)(Ts,{children:(0,ms.jsx)(vs,{children:(0,ms.jsx)(XD,{})})})})})})})})})})),xF=e=>{e&&e instanceof Function&&__webpack_require__.e(78).then(__webpack_require__.bind(__webpack_require__,31078)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:o,getTTFB:a}=t;n(e),r(e),i(e),o(e),a(e)}))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));ss.kO&&(!function(e){const t={...e};tn(t,"react"),Ir(t)}({dsn:ss.kO,integrations:[new aa({tracePropagationTargets:[]})],tracesSampleRate:1}),window.addEventListener("error",(function(e){Pe((t=>{Te(e.error)}))})));const CF=document.getElementById("root");if(null===CF)throw new Error("Unable to find app container root");(0,la.H)(CF).render((0,ms.jsx)(sa.StrictMode,{children:(0,ms.jsx)(ca.Kd,{children:(0,ms.jsx)(wF,{})})})),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)})),xF()})()})();
//# sourceMappingURL=main.719bdfa6.js.map