(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[4402],{84402:(e,t,r)=>{"use strict";r.d(t,{xA:()=>rt});var n=r(13299),o=r(97023),i=r.n(o),a=r(44785),s=r.n(a),l="#121212",c="#212121",u="#4a4a4a",f="#a6a6a6",p="#ffffff",d="#00ccff",y="#00ff99",h="#9933ff",m="#ff6666",g="#fff35c",v=r(53442);function b(e,t,r,n){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=this,p=Date.now()-a;function d(){a=Date.now(),r.apply(f,c)}i||(n&&!o&&d(),s(),void 0===n&&p>e?d():!0!==t&&(o=setTimeout(n?function(){o=void 0}:d,void 0===n?e-p:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),i=!0},l}function w(e,t,r){return void 0===r?b(e,t,!1):b(e,r,!1!==t)}r(91315);var E,_=Object.defineProperty,x=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,A=(e,t,r)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&A(e,r,t[r]);if(x)for(var r of x(t))C.call(t,r)&&A(e,r,t[r]);return e},O=(e,t,r)=>{const o=(0,n.Up)(e,[r]),i=(0,n.Up)(t,[r]);return o[r]&&i[r]?k(k(k({},e),t),{[r]:o[r]+", "+i[r]}):k(k({},e),t)},j=("undefined"!=typeof window?window:global)||{},L=`${(null==(E=j)?void 0:E.GIPHY_PINGBACK_URL)||"https://pingback.giphy.com"}/v2/pingback?apikey=l0HlIwPWyBBUDAUgM`,P=[];j.giphyRandomId=(0,n.t0)();var I="";function R(){const e=[...P];P=[],(e=>{const t=(0,n.D6)();null==t||t.set("Content-Type","application/json"),n.Vy.debug("Pingback session",e),e.length?fetch(L,{method:"POST",body:JSON.stringify({events:e}),headers:t}).catch((e=>{n.Vy.warn(`pingbacks failing to post ${e}`)})):new Promise((e=>e()))})(e)}var D,N,F=w(1e3,R);null==(N=(D=j).addEventListener)||N.call(D,"beforeunload",R);var T=({userId:e,eventType:t,actionType:r,attributes:o,queueEvents:i=!0,analyticsResponsePayload:a})=>{I=e?String(e):I;const s={ts:Date.now(),attributes:o,action_type:r,user_id:(0,n.t0)(),analytics_response_payload:a};I&&(s.logged_in_user_id=I),s.analytics_response_payload&&(s.analytics_response_payload=`${s.analytics_response_payload}${n.Vy.ENABLED?"&mode=verification":""}`),t&&(s.event_type=t),P.push(s),i?F():R()},$=r(3377),M=r(50662),G=r(2626),U=r(9717),V=r(70634),B=r(69248),H=Object.defineProperty,W=Object.defineProperties,z=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,Z=(e,t,r)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&Z(e,r,t[r]);if(K)for(var r of K(t))Q.call(t,r)&&Z(e,r,t[r]);return e},Y=(e,t)=>W(e,z(t)),X=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())})),ee=s().img`
    object-fit: cover;
    width: 32px;
    height: 32px;
    margin-right: 8px;
`,te=({user:e,className:t=""})=>{const r=(0,o.useRef)(Math.floor(5*Math.random())+1),n=e.avatar_url?(e=>{var t,r;if(!e)return"";const n=null==(r=null==(t=null==e?void 0:e.split("."))?void 0:t.pop())?void 0:r.toLowerCase();return e.replace(`.${n}`,`/80h.${n}`)})(e.avatar_url):`https://media.giphy.com/avatars/default${r.current}.gif`;return i().createElement(ee,{src:n,className:t})},re=({className:e="",size:t=17,fill:r="#15CDFF"})=>i().createElement("svg",{className:[re.className,e].join(" "),height:t,width:"19px",viewBox:"0 0 19 17"},i().createElement("path",{className:re.checkMarkClassName,d:"M9.32727273,9.44126709 L9.32727273,3.03016561 L6.55027155,3.03016561 L6.55027155,10.8150746 L6.55027155,12.188882 L12.1042739,12.188882 L12.1042739,9.44126709 L9.32727273,9.44126709 Z",fill:l,transform:"translate(9.327273, 7.609524) scale(-1, 1) rotate(-45.000000) translate(-9.327273, -7.609524) "}),i().createElement("g",{transform:"translate(-532.000000, -466.000000)",fill:r},i().createElement("g",{transform:"translate(141.000000, 235.000000)"},i().createElement("g",{transform:"translate(264.000000, 0.000000)"},i().createElement("g",{transform:"translate(10.000000, 224.000000)"},i().createElement("g",{transform:"translate(114.000000, 2.500000)"},i().createElement("path",{d:"M15.112432,4.80769231 L16.8814194,6.87556817 L19.4157673,7.90116318 L19.6184416,10.6028916 L21.0594951,12.9065042 L19.6184416,15.2101168 L19.4157673,17.9118452 L16.8814194,18.9374402 L15.112432,21.0053161 L12.4528245,20.3611511 L9.79321699,21.0053161 L8.02422954,18.9374402 L5.48988167,17.9118452 L5.28720734,15.2101168 L3.84615385,12.9065042 L5.28720734,10.6028916 L5.48988167,7.90116318 L8.02422954,6.87556817 L9.79321699,4.80769231 L12.4528245,5.4518573 L15.112432,4.80769231 Z M17.8163503,10.8991009 L15.9282384,9.01098901 L11.5681538,13.3696923 L9.68115218,11.4818515 L7.81302031,13.3499833 L9.7011322,15.2380952 L11.5892441,17.1262071 L17.8163503,10.8991009 Z"})))))));re.className="giphy-verified-badge",re.checkMarkClassName="giphy-verified-checkmark";var ne=re,oe=s().div`
    color: white;
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
`,ie=s()(ne)`
    margin-left: 4px;
    flex-shrink: 0;
`,ae=s().div`
    display: flex;
    align-items: center;
    min-width: 0;
`,se=({user:e})=>{const{display_name:t,username:r}=e;return i().createElement(ae,null,i().createElement(oe,null,t||`@${r}`),e.is_verified?i().createElement(ie,{size:14}):null)},le=s().div`
    display: flex;
    align-items: center;
    font-family: interface, helvetica, arial;
`,ce=s()(te)`
    flex-shrink: 0;
`,ue=({gif:e,className:t,onClick:r})=>{const{user:n}=e;return(null==n?void 0:n.username)||(null==n?void 0:n.display_name)?i().createElement(le,{className:[ue.className,t].join(" "),onClick:t=>{if(t.preventDefault(),t.stopPropagation(),r)r(e);else{const e=n.profile_url;e&&window.open(e,"_blank")}}},i().createElement(ce,{user:n}),i().createElement(se,{user:e.user})):null};ue.className="giphy-attribution";var fe=ue,pe=s().div`
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));
    cursor: default;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    pointer-events: none;
`,de=s()(fe)`
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
`,ye=s().div`
    transition: opacity 150ms ease-in;
`,he=({gif:e,isHovered:t,onClick:r})=>{const n=(0,o.useRef)(t);return t&&(n.current=!0),e.user&&n.current?i().createElement(ye,{style:{opacity:t?1:0}},i().createElement(pe,null),i().createElement(de,{gif:e,onClick:r})):null},me=({children:e,className:t,onVisibleChange:r,config:n})=>{const a=(0,o.useRef)(null);return(0,o.useEffect)((()=>{let e;return a.current&&(e=new IntersectionObserver((([e])=>{r&&r(e.isIntersecting)}),n),e.observe(a.current)),()=>null==e?void 0:e.disconnect()}),[r,a,n]),i().createElement("div",{ref:a,className:t},e)},ge=e=>(t,r,o,i={})=>{t.analytics_response_payload&&T({analyticsResponsePayload:t.analytics_response_payload,userId:r,actionType:e,attributes:J({position:JSON.stringify((0,n.Sj)(o))},i)})},ve=ge("CLICK"),be=ge("HOVER"),we=(0,o.createContext)({}),Ee=({attributes:e,children:t})=>{const{attributes:r={}}=(0,o.useContext)(we);return i().createElement(we.Provider,{value:{attributes:O(r,e,"layout_type")}},t)},_e=s().div`
    position: relative;
    display: block;
    img {
        display: block;
    }
    .${ne.className} {
        g {
            fill: white;
        }
    }
    .${ne.checkMarkClassName} {
        opacity: 0;
    }
`,xe=[d,y,h,m,g],Se="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ce=!("undefined"==typeof window||!window.document||!window.document.createElement),Ae=()=>{},ke=({children:e})=>{const[t,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{r(!0)}),[]),t?i().createElement(i().Fragment,null,e):null},Oe=({gif:e,width:t,percentWidth:r,height:a,onGifRightClick:s=Ae,className:l="",onGifClick:c=Ae,onGifKeyPress:u=Ae,onGifSeen:f=Ae,onGifVisible:p=Ae,user:d={},backgroundColor:y,overlay:h,hideAttribution:m=!1,noLink:g=!1,borderRadius:v=4,style:b,tabIndex:w})=>{const[E,_]=(0,o.useState)(!1),[x,S]=(0,o.useState)(!1),[C,A]=(0,o.useState)(!Ce),[k,O]=(0,o.useState)(""),j=(0,o.useRef)(xe[Math.round(Math.random()*(xe.length-1))]),L=(0,o.useRef)(null),P=(0,o.useRef)(null),I=(0,o.useRef)(),R=(0,o.useRef)(),D=(0,o.useRef)(),N=(0,o.useRef)(Ae),{attributes:F}=(0,o.useContext)(we);let $=h;$||m||($=he),N.current=t=>{_(!0),n.Vy.debug(`GIF ${e.id} seen. ${e.title}`),((e,t,r,n={})=>{e.analytics_response_payload&&T({analyticsResponsePayload:e.analytics_response_payload,userId:t,actionType:"SEEN",attributes:J({position:JSON.stringify(r)},n)})})(e,null==d?void 0:d.id,t.boundingClientRect,F),null==f||f(e,t.boundingClientRect),R.current&&R.current.disconnect()};const M=()=>{R.current||(R.current=new IntersectionObserver((([e])=>{e.isIntersecting&&N.current(e)}),{threshold:[.99]})),!E&&L.current&&R.current&&R.current.observe(L.current)};(0,o.useEffect)((()=>{var t,r;(null==(t=P.current)?void 0:t.complete)&&(M(),p(e)),null==(r=R.current)||r.disconnect(),_(!1)}),[e.id]),(0,o.useEffect)((()=>(I.current=new IntersectionObserver((([e])=>{const{isIntersecting:t}=e;A(t),!t&&R.current&&R.current.disconnect()})),I.current.observe(L.current),()=>{I.current&&I.current.disconnect(),R.current&&R.current.disconnect(),D.current&&clearTimeout(D.current)})),[]);const G=a||(0,n._2)(e,t);let U;r&&(U=`${Math.round(G/t*100)}%`);const V=(0,n.th)(e.images,t,G),B=e.images[V.renditionName],H=y||(e.is_sticker?"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4AQMAAACSSKldAAAABlBMVEUhIiIWFhYoSqvJAAAAGElEQVQY02MAAv7///8PWxqIPwDZw5UGABtgwz2xhFKxAAAAAElFTkSuQmCC') 0 0":j.current),W=v?"hidden":"unset";return i().createElement(_e,{as:g?"div":"a",href:g?void 0:e.url,"data-giphy-id":e.id,"data-giphy-is-sticker":e.is_sticker,style:J({width:r||t,height:U||G,overflow:W,borderRadius:v},b),className:[Oe.className,l].join(" "),onMouseOver:t=>{clearTimeout(D.current),t.persist(),S(!0),D.current=window.setTimeout((()=>{be(e,null==d?void 0:d.id,t.target,F)}),200)},onMouseLeave:()=>{clearTimeout(D.current),S(!1)},onClick:t=>{ve(e,null==d?void 0:d.id,t.target,F),c(e,t)},onContextMenu:t=>s(e,t),onKeyPress:t=>{u(e,t)},tabIndex:w,ref:L},i().createElement("picture",null,i().createElement("source",{type:"image/webp",srcSet:C?B.webp:Se,suppressHydrationWarning:!0}),i().createElement("img",{ref:P,suppressHydrationWarning:!0,className:[Oe.imgClassName,k].join(" "),src:C?B.url:Se,style:{background:H},width:"100%",height:"100%",alt:(0,n.lm)(e),onLoad:C?t=>{M(),p(e,t),O(Oe.imgLoadedClassName)}:()=>{}})),$&&i().createElement(ke,null,C&&i().createElement($,{gif:e,isHovered:x,width:t,height:G})))};Oe.className="giphy-gif",Oe.imgClassName="giphy-gif-img",Oe.imgLoadedClassName="giphy-img-loaded";var je=Oe,Le=s().div`
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
`,Pe=s()(je)`
    position: relative;
    display: inline-block;
    list-style: none;
    margin-left: ${e=>e.ml}px;
    /* make sure gifs are fully visible with a scrollbar */
    margin-bottom: 1px;

    &:first-of-type {
        margin-left: 0;
    }
    .${je.imgClassName} {
        position: absolute;
        top: 0;
        left: 0;
    }
`,Ie=s()(me)`
    display: inline-block;
`,Re=s().div`
    width: 30px;
    display: inline-block;
    opacity: ${e=>e.isFirstLoad?0:1};
    height: ${e=>e.height}px;
`,De=Object.freeze({gutter:6,user:{},initialGifs:[]}),Ne=Object.freeze({isFetching:!1,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),Fe=class e extends o.PureComponent{constructor(){super(...arguments),this.state=Y(J({},Ne),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=(0,v.Oo)(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=e=>{this.unmounted||this.setState({isLoaderVisible:e},this.onFetch)},this.onFetch=w(100,(()=>X(this,null,(function*(){if(this.unmounted)return;const{isFetching:e,isLoaderVisible:t,gifs:r}=this.state;if(!e&&t){let e;this.setState({isFetching:!0});try{e=yield this.paginator()}catch(e){this.setState({isFetching:!1})}if(e)if(r.length===e.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:e,isFetching:!1});const{onGifsFetched:t}=this.props;t&&t(e),this.onFetch()}}}))))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:t,onGifRightClick:r,gifHeight:o,gifWidth:a,gutter:s,className:l=e.className,onGifSeen:c,onGifClick:u,onGifKeyPress:f,user:p,overlay:d,hideAttribution:y,noLink:h,noResultsMessage:m,backgroundColor:g,borderRadius:v,tabIndex:b=0,loaderConfig:w}=this.props,{gifs:E,isDoneFetching:_}=this.state,x=!_,S=0===E.length;return i().createElement(Ee,{attributes:{layout_type:"CAROUSEL"}},i().createElement(Le,{className:l},E.map((e=>i().createElement(Pe,{gif:e,key:e.id,tabIndex:b,width:a||(0,n.Vs)(e,o),height:o,onGifClick:u,onGifKeyPress:f,onGifSeen:c,onGifVisible:t,onGifRightClick:r,user:p,ml:s,overlay:d,hideAttribution:y,noLink:h,borderRadius:v,backgroundColor:g}))),!x&&0===E.length&&m,x&&i().createElement(Ie,{onVisibleChange:this.onLoaderVisible,config:w},i().createElement(Re,{isFirstLoad:S,height:o}))))}};Fe.className="giphy-carousel",Fe.defaultProps=De;var Te=s().div`
    color: ${f};
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-family: interface, Helvetica Neue, helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    a {
        color: ${d};
        cursor: pointer;
        &:hover {
            color: white;
        }
    }
`,$e=({onClick:e})=>i().createElement(Te,null,"Error loading GIFs. ",i().createElement("a",{onClick:e},"Try again?")),Me="#2e2e2e",Ge=u,Ue=s().div`
    align-items: center;
    background-color: ${({backgroundColor:e})=>e};
    border-radius: 16px;
    display: flex;
    max-width: fit-content;
    overflow: hidden;
    padding: 4px 5px 5px 6px;
`,Ve=s().div`
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
`,Be=s().div`
    display: inline-flex;
    justify-content: space-between;
    overflow: hidden;
    white-space: nowrap;
    width: ${({width:e})=>`${e}px`};
`,He=s().div`
    background-color: ${({color:e})=>e};
    box-sizing: border-box;
    height: ${({gifHeight:e})=>`${Math.round(.75*e)}px`};
    margin: ${({gutter:e})=>`0 ${e}px`};
    width: 2px;
`,We=s()(je)`
    display: inline-block;
    flex-shrink: 0;
    list-style: none;
    /* make sure gifs are fully visible with a scrollbar */
    margin-bottom: 1px;
    position: relative;

    .${je.imgClassName} {
        position: absolute;
        top: 0;
        left: 0;
    }
`;function ze(e){var t;const r=e,{backgroundColor:a=Me,className:s,dividerColor:l=Ge,fetchVariations:c,gif:u,gifHeight:f,GifProps:p={},gifWidth:d,gutter:y=6,hideAttribution:h,loader:m,noLink:g,onGifClick:v,onGifKeyPress:b,onGifRightClick:w,onGifSeen:E,onGifVisible:_,onVariationsFetched:x,overlay:S,tabIndex:C=0,user:A}=r,k=((e,t)=>{var r={};for(var n in e)q.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&K)for(var n of K(e))t.indexOf(n)<0&&Q.call(e,n)&&(r[n]=e[n]);return r})(r,["backgroundColor","className","dividerColor","fetchVariations","gif","gifHeight","GifProps","gifWidth","gutter","hideAttribution","loader","noLink","onGifClick","onGifKeyPress","onGifRightClick","onGifSeen","onGifVisible","onVariationsFetched","overlay","tabIndex","user"]),O=null!=(t=u.variation_count)?t:0,j=d||(0,n.Vs)(u,f),L=O*j+Math.max(0,O-1)*y,P=(0,M.A)(c),I=(0,M.A)(x),[R,D]=(0,$.A)((()=>X(this,null,(function*(){var e;const t=yield P.current(u.id),r=null!=(e=null==t?void 0:t.data)?e:[];return I.current&&I.current(r),r}))),[u],{loading:!0,value:[]});(0,o.useEffect)((()=>{D()}),[D]);const N=J({backgroundColor:"transparent",height:f,hideAttribution:h,noLink:g,onGifClick:v,onGifKeyPress:b,onGifRightClick:w,onGifSeen:E,onGifVisible:_,overlay:S,tabIndex:C,user:A,width:j},p);return i().createElement(Ue,J({backgroundColor:a,className:[ze.className,s].join(" ")},k),i().createElement(We,Y(J({},N),{gif:u})),O?i().createElement(He,{className:ze.dividerClassName,color:l,gifHeight:f,gutter:y}):null,i().createElement(Ve,{className:ze.variationsViewportClassName},i().createElement(Be,{className:ze.variationsContainerClassName,width:L},(()=>{var e;return R.loading?m?i().createElement(m,{className:ze.loaderClassName}):null:R.error?i().createElement($e,{onClick:D}):i().createElement(i().Fragment,null,(null!=(e=R.value)?e:[]).map((e=>i().createElement(We,Y(J({},N),{key:e.id,gif:e})))))})())))}ze.className="giphy-emoji-variations-list",ze.dividerClassName="giphy-emoji-variations-divider",ze.loaderClassName="giphy-emoji-variations-loader",ze.variationsViewportClassName="giphy-emoji-variations-viewport",ze.variationsContainerClassName="giphy-emoji-variations-container";var Ke=a.keyframes`
     to {
    transform: scale(1.75) translateY(-20px);
  }
`,qe=s().div`
    display: flex;
    align-items: center;
    height: ${37}px;
    padding-top: 15px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;
`,Qe=s().div`
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: ${37}px 10px 10px 10px;
    position: relative;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    animation: ${Ke} cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;
    background: ${e=>e.color};
    animation-delay: ${e=>e.delay};
`,Ze=({className:e=""})=>i().createElement(qe,{className:e},i().createElement(Qe,{color:y,delay:"0"}),i().createElement(Qe,{color:d,delay:".1s"}),i().createElement(Qe,{color:h,delay:".2s"}),i().createElement(Qe,{color:m,delay:".3s"}),i().createElement(Qe,{color:g,delay:".4s"})),Je=(0,o.memo)((({columns:e,gutter:t,useTransform:r=!0,itemWidth:n,itemHeights:o,children:a,columnOffsets:s=[]})=>{const l={};return i().createElement("div",{style:l},function(){let c;const u=function(e,t=[]){return Array.apply(null,Array(e)).map(((e,r)=>t[r]||0))}(e,s),f=i().Children.map(a,((e,a)=>{const s={position:"absolute"};c=u.indexOf(Math.min.apply(Math,u));const l=`${u[c]}px`,f=c*n+c*t+"px";r?s.transform=`translate3d(${f}, ${l}, 0)`:(s.top=l,s.left=f);const p=o[a];return p&&(u[c]+=p+t),i().cloneElement(e,{style:s})}));return l.position="relative",l.width=e*n+(e-1)*t+"px",l.height=Math.max.apply(Math,u)-t+"px",f}())})),Ye=s().div`
    opacity: ${e=>e.isFirstLoad?0:1};
`,Xe=Object.freeze({gutter:6,user:{},initialGifs:[]}),et=Object.freeze({isFetching:!1,isError:!1,gifWidth:0,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),tt=class e extends o.PureComponent{constructor(){super(...arguments),this.state=Y(J({},et),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=(0,v.Oo)(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=e=>{this.unmounted||this.setState({isLoaderVisible:e},this.onFetch)},this.onFetch=w(e.fetchDebounce,(()=>X(this,null,(function*(){if(this.unmounted)return;const{isFetching:e,isLoaderVisible:t,gifs:r}=this.state,n=r.length;if(!e&&t){let e;this.setState({isFetching:!0,isError:!1});try{if(e=yield this.paginator(),this.unmounted)return}catch(e){if(this.unmounted)return;this.setState({isFetching:!1,isError:!0});const{onGifsFetchError:t}=this.props;t&&t(e)}if(e)if(n===e.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:e,isFetching:!1});const{onGifsFetched:t}=this.props;t&&t(e),this.onFetch()}}}))))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:t,onGifRightClick:r,className:o=e.className,onGifSeen:a,onGifClick:s,onGifKeyPress:l,user:c,overlay:u,hideAttribution:f,noLink:p,borderRadius:d,noResultsMessage:y,columns:h,width:m,gutter:g,useTransform:v,columnOffsets:b,backgroundColor:w,loaderConfig:E,tabIndex:_=0,layoutType:x="GRID",loader:S=Ze}=this.props,{gifWidth:C,gifs:A,isError:k,isDoneFetching:O}=this.state,j=!O,L=0===A.length,P=A.map((e=>(0,n._2)(e,C)));return i().createElement(Ee,{attributes:{layout_type:x}},i().createElement("div",{className:o,style:{width:m}},i().createElement(Je,{itemHeights:P,useTransform:v,itemWidth:C,columns:h,gutter:g,columnOffsets:b},A.map((e=>i().createElement(je,{gif:e,tabIndex:_,key:e.id,width:C,onGifClick:s,onGifKeyPress:l,onGifSeen:a,onGifVisible:t,onGifRightClick:r,user:c,overlay:u,backgroundColor:w,hideAttribution:f,noLink:p,borderRadius:d})))),!j&&0===A.length&&y,k?i().createElement($e,{onClick:this.onFetch}):j&&i().createElement(me,{onVisibleChange:this.onLoaderVisible,config:E},i().createElement(Ye,{isFirstLoad:L},i().createElement(S,{className:e.loaderClassName})))))}};tt.className="giphy-grid",tt.loaderClassName="loader",tt.fetchDebounce=250,tt.defaultProps=Xe,tt.getDerivedStateFromProps=({columns:e,gutter:t,width:r},n)=>{const o=t*(e-1),i=Math.floor((r-o)/e);return n.gifWidth!==i?{gifWidth:i}:null};var rt=tt,nt="--searchbar-height",ot="--searchbar-bg-color",it="--searchbar-bg-color-2",at="--searchbar-fg-color",st="--searchbar-cancel-button-display",lt=(s().div`
    ${nt}: ${e=>e.searchbarHeight||42}px;
    @media (${e=>e.mobileMediaQuery}) {
        ${nt}: ${e=>e.mobileSearchbarHeight||35}px;
    }
    ${ot}: ${p};
    ${it}: ${p};
    ${at}: ${l};
    ${e=>e.darkMode&&a.css`
            ${at}: ${p};
            ${ot}: ${l};
            ${it}: ${u};
        `}
    ${st}: ${e=>e.hideCancelButton?"none":"block"};
`,(0,o.createContext)({})),ct=(0,o.createContext)({}),ut=s().svg`
    position: relative;
    right: 10px;
    margin-left: 5px;
    cursor: pointer;
    display: var(${st});
`,ft=({width:e=17,height:t=17,setCleared:r})=>{const{term:n,setActiveChannel:a,activeChannel:s}=(0,o.useContext)(lt);return n||s?i().createElement(ut,{className:ft.className,width:e,height:t,viewBox:"0 0 17 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!0),a(void 0)}},i().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",opacity:"0.582730817"},i().createElement("g",{transform:"translate(-300.000000, -150.000000)",fill:"#8E8E93",fillRule:"nonzero"},i().createElement("g",{transform:"translate(0.000000, 135.000000)"},i().createElement("g",null,i().createElement("g",null,i().createElement("g",{transform:"translate(11.000000, 13.000000)"},i().createElement("g",{transform:"translate(289.000000, 2.000000)"},i().createElement("path",{d:"M8.5,0 C3.805875,0 0,3.805875 0,8.5 C0,13.194125 3.805875,17 8.5,17 C13.194125,17 17,13.194125 17,8.5 C17,3.805875 13.194125,0 8.5,0 Z M9.50158333,8.5 C9.50158333,8.5 11.7250417,10.7234583 11.834125,10.8325417 C12.1110833,11.1095 12.1110833,11.557875 11.834125,11.834125 C11.5571667,12.1110833 11.1087917,12.1110833 10.8325417,11.834125 C10.7234583,11.72575 8.5,9.50158333 8.5,9.50158333 C8.5,9.50158333 6.27654167,11.7250417 6.16745833,11.834125 C5.8905,12.1110833 5.442125,12.1110833 5.165875,11.834125 C4.88891667,11.5571667 4.88891667,11.1087917 5.165875,10.8325417 C5.27425,10.7234583 7.49841667,8.5 7.49841667,8.5 C7.49841667,8.5 5.27495833,6.27654167 5.165875,6.16745833 C4.88891667,5.8905 4.88891667,5.442125 5.165875,5.165875 C5.44283333,4.88891667 5.89120833,4.88891667 6.16745833,5.165875 C6.27654167,5.27425 8.5,7.49841667 8.5,7.49841667 C8.5,7.49841667 10.7234583,5.27495833 10.8325417,5.165875 C11.1095,4.88891667 11.557875,4.88891667 11.834125,5.165875 C12.1110833,5.44283333 12.1110833,5.89120833 11.834125,6.16745833 C11.72575,6.27654167 9.50158333,8.5 9.50158333,8.5 Z",opacity:"0.75"}))))))))):null};ft.className="giphy-search-bar-cancel";var pt=ft,dt=`calc(var(${nt}) - 12px)`,yt=a.keyframes`
to {
    width: ${dt};
}
`,ht=s()(te)`
    height: ${dt};
    margin: 0;
    width: 0;
    animation: ${yt} 100ms ease-in-out forwards;
`,mt=s().div`
    background: var(${it});
    display: flex;
    align-items: center;
    padding-left: ${6}px;
`,gt=s().div`
    background: ${"#ececec"};
    display: flex;
    padding: 0 4px;
    color: ${"#3e3e3e"};
    font-family: interface, Helvetica Neue, helvetica, sans-serif;
    font-weight: 600;
    font-size: 12px;
    align-items: center;
    height: ${dt};
    @media (max-width: 480px) {
        display: none;
    }
`,vt=({className:e=""})=>{const{activeChannel:t}=(0,o.useContext)(lt);return t?i().createElement(mt,{className:e},i().createElement(ht,{user:t.user}),i().createElement(gt,{key:t.id},i().createElement("div",null,"@",t.user.username),t.user.is_verified&&i().createElement(ne,{size:14}))):null},bt="#9933FF",wt="#FF6666",Et="cubic-bezier(0.920, 0.240, 0.185, 0.730)",_t=a.keyframes`
    0% {
      transform: rotate(34deg) translate(-10px, 80px);
    };
    
    100% {
      transform: rotate(34deg) translate(-10px, -20px);
    }
`,xt=a.keyframes`
    0% { 
      transform: translate(0px, 0px);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      transform: translate(10px, -17px);
      opacity: 0;
    }
`,St=a.keyframes`
    0% {
      opacity: 0;
      transform: translateX(-400%);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(0);
    }
`,Ct=s().div`
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
        display: none;
    }
    height: var(${nt});
    width: var(${nt});
`,At=s().div`
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(45deg, ${bt} 0%, ${wt} 100%);
    border-radius: 4px;
    overflow: hidden;
    &:before {
        animation: ${St} ${"2s"} linear 0s infinite;
        background-image: linear-gradient(45deg, ${bt} 0%, ${wt} 50%, ${bt} 100%);
        background-size: 400%;
        background-position: 0% 100%;
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 400%;
    }
`,kt=s().div`
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    &::after {
        content: '+';
        color: white;
        font-family: 'SS Standard';
        font-size: 8px;
        position: absolute;
        top: 65%;
        left: 66%;
        animation: ${xt} 1s ${Et} 0s 1 forwards;
    }
`,Ot=s().div`
    position: absolute;
    width: 200%;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(34deg) translate(-10px, -20px);
    animation: ${_t} 1s ${Et} 0s 1;
    filter: blur(1px);
`,jt=s()((({className:e=""})=>i().createElement("svg",{viewBox:"0 0 30 30",version:"1.1",className:e},i().createElement("defs",null,i().createElement("path",{d:"M11.5482521,20.4090671 L4.24727698,28.2009189 C3.68084207,28.8054377 2.73159653,28.8363108 2.12707771,28.2698759 C1.5225589,27.703441 1.4916858,26.7541954 2.0581207,26.1496766 L9.40599838,18.3077689 C7.95982241,16.4371424 7.0978836,14.0789715 7.0978836,11.5181818 C7.0978836,5.44914339 11.9392549,0.518181818 17.9252787,0.518181818 C23.9113026,0.518181818 28.7526738,5.44914339 28.7526738,11.5181818 C28.7526738,17.5872202 23.9113026,22.5181818 17.9252787,22.5181818 C15.539851,22.5181818 13.3361963,21.7351359 11.5482521,20.4090671 Z M17.9252787,19.5181818 C22.242011,19.5181818 25.7526738,15.9425536 25.7526738,11.5181818 C25.7526738,7.09381 22.242011,3.51818182 17.9252787,3.51818182 C13.6085464,3.51818182 10.0978836,7.09381 10.0978836,11.5181818 C10.0978836,15.9425536 13.6085464,19.5181818 17.9252787,19.5181818 Z",id:"giphy-search-icon-path-1"})),i().createElement("g",{id:"search",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i().createElement("g",{id:"icons/search"},i().createElement("mask",{id:"giphy-search-icon-mask-2",fill:"white"},i().createElement("use",{xlinkHref:"#giphy-search-icon-path-1"})),i().createElement("use",{id:"Mask",fill:"#FFFFFF",fillRule:"nonzero",xlinkHref:"#giphy-search-icon-path-1"}),i().createElement("g",{mask:"url(#giphy-search-icon-mask-2)"},i().createElement("g",{transform:"translate(0.250000, 0.250000)"},i().createElement("g",null))))))))`
    z-index: 1;
    display: flex;
    width: 60%;
    height: 60%;
`,Lt=()=>{const{isFetching:e}=(0,o.useContext)(lt),t=(0,U.A)(e,1e3);return i().createElement(Ct,null,i().createElement(At,null),i().createElement(jt,null),t&&i().createElement(kt,null,i().createElement(Ot,null)))},Pt=s().div`
    display: flex;
    background: white;
    align-items: center;
    border-radius: 4px;
    height: var(${nt});
    background: var(${it});
`,It=s().input`
    background: inherit;
    box-sizing: border-box;
    border: 0;
    appearance: none;
    font-weight: normal;
    font-family: interface, Helvetica Neue, helvetica, sans-serif;
    outline: 0;
    font-size: 15px;
    padding: 0 10px;
    border-radius: 0;
    text-overflow: ellipsis;
    color: var(${at});
    &::placeholder {
        color: ${f};
    }
    min-width: 150px;
    flex: 1;
    ${e=>e.isUsernameSearch&&a.css`
            color: ${"#6157ff"};
        `}
`,Rt=({className:e,placeholder:t="Search GIPHY",clear:r=!1,autoFocus:n,searchDebounce:a=500,onEnter:s})=>{const{activeChannel:l,setActiveChannel:c,term:u,setChannels:f}=(0,o.useContext)(lt),{setIsFocused:p,_inputValOverride:d,_setSearch:y}=(0,o.useContext)(ct),[h,m]=(0,o.useState)(u);(0,G.A)((()=>y(h)),a,[h]);const g=(0,o.useRef)(null),v=function(e){const t=(0,o.useRef)(e);return(0,o.useEffect)((()=>{t.current=e})),t.current}(l),[b,w]=(0,o.useState)(r);return(0,o.useEffect)((()=>{var e;n&&(null==(e=g.current)||e.focus())}),[n]),(0,o.useEffect)((()=>{var e;l&&!v&&(null==(e=g.current)||e.focus(),m(" "===h?"":h.replace(/@?\w*\s?/,"")))}),[h,l,v]),(0,o.useEffect)((()=>{w(r)}),[r]),(0,o.useEffect)((()=>{m(d)}),[d,m]),i().createElement(Pt,{className:[Rt.className,e].join(" ")},i().createElement(vt,null),i().createElement(It,{isUsernameSearch:0===u.indexOf("@"),onChange:({target:{value:e}})=>{b&&""===e||(w(!1),m(e))},onFocus:()=>{p(!0)},onBlur:()=>{p(!1)},value:b?"":h,placeholder:l?`Search ${l.display_name}`:t,autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",ref:g,onKeyUp:e=>{switch(e.keyCode||e.key){case 27:case"Escape":c(void 0),f([]);break;case 13:case"Enter":null==s||s(h)}},onKeyDown:e=>{switch(e.keyCode||e.key){case 8:case"Backspace":""===h&&(c(void 0),f([]))}}}),i().createElement(pt,{setCleared:()=>m("")}),i().createElement(Lt,null))};Rt.className="giphy-search-bar";var Dt=s().div`
    background: ${c};
    display: flex;
    padding-right: 4px;
    align-items: center;
    margin-right: ${9}px;
    cursor: pointer;
`,Nt=s().div`
    background: ${c};
    display: flex;
    padding: 14px;
    align-items: center;
    margin-right: ${9}px;
    white-space: nowrap;
    cursor: pointer;
    font-style: italic;
    border-radius: 20px;
`,Ft=s()(te)`
    height: var(${nt});
    width: var(${nt});
`,Tt=s()((({size:e=18,className:t})=>i().createElement("svg",{width:e,height:e,viewBox:"0 0 18 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t},i().createElement("g",{id:"trending",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i().createElement("g",null,i().createElement("rect",{id:"Rectangle",stroke:"#979797",fill:"#D8D8D8",opacity:"0",x:"0.5",y:"0.5",width:"17",height:"17"}),i().createElement("path",{d:"M12.6093329,3.12057664 L15.156896,3.12057664 L9.64199318,9.04253019 L6.88133868,6.8175119 C6.7544587,6.67603813 6.56616874,6.60087259 6.38404017,6.61897279 C6.2490402,6.63288422 6.11891631,6.69661171 6.02063992,6.79697337 C2.21226835,10.5943119 0.308082561,12.4929812 0.308082561,12.4929812 C0.308082561,12.4929812 0.527106106,12.8074292 0.710953088,13.0215425 C0.833517743,13.1642848 0.975497751,13.3098497 1.13689311,13.4582373 L6.47329888,8.13191205 L9.16381134,10.2953038 C9.40800276,10.5710787 9.68933701,10.7021044 10.019278,10.4570223 L16.0239805,4.04474473 C16.0239805,5.87956383 16.0239805,6.79697337 16.0239805,6.79697337 C16.0239805,6.79697337 16.4320205,6.79697337 17.2481004,6.79697337 L17.2481004,1.80604505 C14.1555887,1.80604505 12.6093329,1.80604505 12.6093329,1.80604505 C12.6093329,1.80604505 12.6093329,2.24422225 12.6093329,3.12057664 Z",id:"Shape",stroke:"#00CCFF",strokeWidth:"0.4",fill:"#00CCFF",fillRule:"nonzero",transform:"translate(8.778091, 7.632141) rotate(-2.000000) translate(-8.778091, -7.632141) "}))))))`
    margin-right: 2px;
`,$t=({channel:e})=>{const{setActiveChannel:t}=(0,o.useContext)(lt);return i().createElement(Dt,{key:e.id,onClick:()=>t(e)},i().createElement(Ft,{user:e.user}),i().createElement("div",null,"@",e.user.username),e.user.is_verified&&i().createElement(ne,{size:14}))},Mt=({trendingSearch:e})=>{const{setSearch:t}=(0,o.useContext)(lt);return i().createElement(Nt,{key:e,onClick:()=>t(e)},i().createElement(Tt,{size:16}),e)},Gt=s().div`
    display: flex;
    color: white;
    flex-direction: row;
    font-family: 'interface';
    font-weight: 600;
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    height: var(${nt});
`,Ut=()=>{const{trendingSearches:e,currentChannels:t}=(0,o.useContext)(lt);return i().createElement(Gt,{className:Ut.className},t.length>0?t.map((e=>i().createElement($t,{key:e.id,channel:e}))):e.map((e=>i().createElement(Mt,{key:e,trendingSearch:e}))))};Ut.className="giphy-suggestion-bar";var Vt=({onClick:e})=>i().createElement("svg",{width:"66px",height:"13px",viewBox:"0 0 66 13",onClick:e},i().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{transform:"translate(-1060.000000, -462.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("g",{transform:"translate(931.000000, 286.375671)"},i().createElement("g",{transform:"translate(86.000000, 136.124329)"},i().createElement("path",{d:"M47.968,49.1962322 C49.588,49.1962322 51.052,48.6202322 51.58,47.5522322 L51.58,43.8202322 L47.476,43.8202322 L47.476,45.6802322 L49.6,45.6802322 L49.6,46.7602322 C49.12,47.1082322 48.424,47.1922322 47.98,47.1922322 C46.288,47.1922322 45.724,45.8602322 45.724,44.7802322 C45.724,43.1362322 46.612,42.3202322 47.98,42.3202322 C48.544,42.3202322 49.288,42.4762322 49.9,43.0522322 L51.28,41.6842322 C50.176,40.5682322 49.144,40.3282322 47.98,40.3282322 C44.824,40.3282322 43.384,42.5842322 43.384,44.7802322 C43.384,46.9762322 44.644,49.1962322 47.968,49.1962322 Z M54.928,48.9682322 L54.928,40.5682322 L52.564,40.5682322 L52.564,48.9682322 L54.928,48.9682322 Z M58.648,48.9682322 L58.648,46.7002322 L60.352,46.7002322 C62.596,46.6762322 63.724,45.3442322 63.724,43.6282322 C63.724,41.9842322 62.608,40.5682322 60.352,40.5682322 L56.272,40.5682322 L56.272,48.9682322 L58.648,48.9682322 Z M60.352,44.6962322 L58.648,44.6962322 L58.648,42.6082322 L60.352,42.6082322 C61,42.6082322 61.348,43.1122322 61.348,43.6642322 C61.348,44.2162322 61.012,44.6962322 60.352,44.6962322 Z M66.796,48.9802322 L66.796,45.8002322 L69.82,45.8002322 L69.82,48.9802322 L72.172,48.9802322 L72.172,40.5802322 L69.82,40.5802322 L69.82,43.7722322 L66.796,43.7722322 L66.796,40.5802322 L64.42,40.5802322 L64.42,48.9802322 L66.796,48.9802322 Z M78.16,48.9682322 L78.16,45.6202322 L81.496,40.6762322 L81.496,40.5682322 L78.82,40.5682322 L77.008,43.4482322 L75.268,40.5682322 L72.592,40.5682322 L72.592,40.6642322 L75.784,45.6202322 L75.784,48.9682322 L78.16,48.9682322 Z M87.796,49.1362322 C88.972,49.1362322 90.088,48.7402322 90.952,47.8882322 L90.028,46.9642322 C89.44,47.5522322 88.576,47.8762322 87.796,47.8762322 C85.624,47.8762322 84.712,46.3522322 84.7,44.8162322 C84.688,43.2682322 85.66,41.6962322 87.796,41.6962322 C88.576,41.6962322 89.368,41.9722322 89.968,42.5602322 L90.868,41.6962322 C90.016,40.8442322 88.924,40.4242322 87.796,40.4242322 C84.796,40.4242322 83.356,42.6202322 83.3679256,44.8282322 C83.38,47.0362322 84.748,49.1362322 87.796,49.1362322 Z M93.028,48.9682322 L93.028,40.5802322 L91.792,40.5802322 L91.792,48.9682322 L93.028,48.9682322 Z M94.252,41.3122322 C94.252,42.3322322 95.788,42.3322322 95.788,41.3122322 C95.788,40.3042322 94.252,40.3042322 94.252,41.3122322 Z M95.632,48.9682322 L95.632,43.0282322 L94.396,43.0282322 L94.396,48.9682322 L95.632,48.9682322 Z M98.188,51.7162322 L98.188,48.1042322 C98.632,48.8362322 99.556,49.1002322 100.276,49.1002322 C102.112,49.1002322 103.264,47.8042322 103.264,46.0162322 C103.264,44.2282322 102.04,42.9442322 100.276,42.9322322 C99.484,42.9322322 98.644,43.2922322 98.188,44.0122322 L98.116,43.0522322 L96.952,43.0522322 L96.952,51.7162322 L98.188,51.7162322 Z M100.156,47.9002322 C99.076,47.9002322 98.296,47.0722322 98.296,46.0162322 C98.296,44.9602322 99.016,44.1322322 100.156,44.1322322 C101.284,44.1322322 102.028,44.9002322 102.028,46.0162322 C102.028,47.1202322 101.236,47.9002322 100.156,47.9002322 Z M106.456,49.1482322 C107.992,49.1482322 108.964,48.3802322 108.976,47.2762322 C108.988,45.7522322 107.56,45.5122322 106.468,45.4162322 C105.712,45.3442322 105.196,45.1522322 105.184,44.6602322 C105.184,44.1922322 105.688,43.9402322 106.444,43.9522322 C107.032,43.9522322 107.536,44.0722322 108.004,44.5042322 L108.7,43.6882322 C108.04,43.1002322 107.332,42.8962322 106.42,42.8962322 C105.316,42.8962322 103.96,43.3882322 103.96,44.6962322 C103.972,46.0042322 105.256,46.3642322 106.372,46.4722322 C107.248,46.5562322 107.752,46.7602322 107.74,47.2882322 C107.728,47.8402322 107.068,48.0562322 106.48,48.0562322 C105.784,48.0442322 104.956,47.7922322 104.404,47.1802322 L103.756,48.0562322 C104.536,48.9322322 105.496,49.1482322 106.456,49.1482322 Z",id:"GIPHYClips"})))))),Bt=s().div`
    display: flex;
    align-items: center;
    font-family: interface, helvetica, arial;
    cursor: pointer;
`,Ht=s()(te)`
    flex-shrink: 0;
`,Wt=s().div`
    display: flex;
    flex-direction: column;
`,zt=({gif:e,className:t,onClick:r})=>{const{user:n}=e;return(null==n?void 0:n.username)||(null==n?void 0:n.display_name)?i().createElement(Bt,{className:[zt.className,t].join(" "),onClick:t=>{if(t.preventDefault(),t.stopPropagation(),r)r(e);else{const e=n.profile_url;e&&window.open(e,"_blank")}}},i().createElement(Ht,{user:n}),i().createElement(Wt,null,i().createElement(Vt,{onClick:t=>{t.preventDefault(),t.stopPropagation(),r?r(e):e.url&&window.open(e.url,"_blank")}}),i().createElement(se,{user:n}))):null};zt.className="giphy-attribution";var Kt=zt,qt=({size:e=25,onClick:t=()=>{}})=>i().createElement("svg",{width:e,height:e,viewBox:"0 0 26 23",onClick:t},i().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{transform:"translate(1.000000, 0.000000)",fill:"#FFF",fillRule:"nonzero"},i().createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 -1.77635684e-15,15.3405244 L-1.77635684e-15,7.45058441 C-1.77635684e-15,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z"}),i().createElement("path",{d:"M15.7579491,16.0914044 L14.6798891,13.6594044 C15.5739159,13.2635547 16.1503537,12.3776671 16.1501091,11.3999244 C16.150386,10.4242626 15.5763999,9.53983269 14.6852091,9.14272441 L15.7697291,6.71376441 C17.6193585,7.53872062 18.810518,9.37466359 18.8101092,11.3999244 C18.8105521,13.4298903 17.6139475,15.2691931 15.7579491,16.0914044 L15.7579491,16.0914044 Z"}),i().createElement("path",{d:"M18.3647491,20.2619044 L17.2863091,17.8299044 C19.8302925,16.7031661 21.4705725,14.1822599 21.4701091,11.3999244 C21.4701091,8.59818441 19.8167291,6.09892441 17.3022691,4.97678441 L18.3864091,2.54782441 C21.8804724,4.10607079 24.1307363,7.57414217 24.1301093,11.3999244 C24.1308375,15.2343934 21.8705556,18.7086904 18.3647491,20.2619044 Z"})))),Qt=({size:e=25,onClick:t=()=>{}})=>i().createElement("svg",{onClick:t,height:e,width:e,viewBox:"0 0 26 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{id:"Group",transform:"translate(1.000000, 0.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 0,15.3405244 L0,7.45058441 C0,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z",id:"Path"})),i().createElement("g",{id:"Group",transform:"translate(14.887009, 6.947630)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("path",{d:"M7.88199149,6.27905236 C7.94693088,6.35707599 7.94693088,6.47033309 7.88199149,6.54835671 L6.54835671,7.88199149 C6.47033309,7.94693088 6.35707599,7.94693088 6.27905236,7.88199149 L3.96534802,5.56828715 L1.65164367,7.88199149 C1.57362004,7.94693088 1.46036294,7.94693088 1.38233932,7.88199149 L0.0487045381,6.54835671 C-0.016234846,6.47033309 -0.016234846,6.35707599 0.0487045381,6.27905236 L2.36240889,3.96534802 L0.0487045381,1.65164367 C-0.016234846,1.57362004 -0.016234846,1.46036294 0.0487045381,1.38233932 L1.38233932,0.0487045381 C1.46036294,-0.016234846 1.57362004,-0.016234846 1.65164367,0.0487045381 L3.96534802,2.36240889 L6.27905236,0.0487045381 C6.35707599,-0.016234846 6.47033309,-0.016234846 6.54835671,0.0487045381 L7.88199149,1.38233932 C7.94693088,1.46036294 7.94693088,1.57362004 7.88199149,1.65164367 L5.56828715,3.96534802 L7.88199149,6.27905236 Z",id:"Shape"})))),Zt=s().div`
    background: ${p};
    height: ${e=>e.barHeight}px;
    position: absolute;
    width: 5px;
    bottom: 0;
    left: 0;
    opacity: 0.95;
`,Jt=({videoEl:e})=>{(0,B.A)(2147483647,100);const t=(null==e?void 0:e.currentTime)||0,r=(null==e?void 0:e.duration)||0,n=t/r;let o=Math.round(100*n),a=5;return(null==e?void 0:e.height)<200?a=3:(null==e?void 0:e.height)<300&&(a=4),o=r<10&&o>98?100:o,i().createElement(Zt,{style:{width:`${o}%`},barHeight:a,className:"hide-in-percy"})},Yt=[.25,.5,.75],Xt="giphy-video",er=({muted:e,ccEnabled:t=!1,ccLanguage:r="en",loop:a=!0,onStateChange:s,onTimeUpdate:l,onCanPlay:c,onFirstPlay:u,onWaiting:f,onMuted:p,onError:d,onEnded:y,onLoop:h,onQuartile:m,onEndFullscreen:g,setVideoEl:v,gif:b,width:w,height:E,volume:_=.7,className:x=Xt})=>{var S,C,A;const k=E||(0,n._2)(b,w),[O,j]=(0,o.useState)((0,n.sr)(b.video,w,k)),L=(0,o.useRef)(0);O||console.warn(`GiphyJS No video content for id: ${b.id}`);const P=(0,o.useRef)(Date.now()),I=(0,o.useRef)(!1),R=(0,o.useRef)(0),D=(0,o.useRef)(0),N=(0,o.useRef)(new Set);(0,o.useEffect)((()=>{P.current=Date.now(),I.current=!1,R.current=1,D.current=0,N.current=new Set}),[b.id]);const F=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=(0,n.sr)(b.video,w,k);F.current&&(null==O?void 0:O.url)&&e.url!==O.url&&(-1!==O.url.indexOf(String(b.id))&&(L.current=F.current.currentTime),j(e))}),[w,E,b.video,k,null==O?void 0:O.url,b.id]),(0,o.useEffect)((()=>{F.current&&(null==O?void 0:O.url)&&L.current&&(F.current.currentTime=L.current,L.current=0)}),[null==O?void 0:O.url,L]);const $=(0,o.useCallback)((()=>{var e;const t=F.current,r=null==(e=null==t?void 0:t.error)?void 0:e.code;if(r&&(null==t?void 0:t.src)){const e=((e,t="")=>{switch(e){case 1:return"Aborted. The fetching process for the media resource was aborted by the user agent at the user's request.";case 2:return"Network Error. A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.";case 3:return"Decode Error. An error of some description occurred while decoding the media resource, after the resource was established to be usable.";case 4:return`Can not play a video of type "${t.split(".").pop()}" on this platform.`;default:return""}})(r,null==t?void 0:t.src);console.error(e),null==d||d(r)}}),[d]),M=(0,o.useCallback)((()=>{null==s||s("playing"),I.current||(I.current=!0,b.analytics_response_payload&&T({actionType:"START",analyticsResponsePayload:b.analytics_response_payload}),null==u||u(Date.now()-P.current))}),[u,s,b]),G=(0,o.useCallback)((()=>null==s?void 0:s("paused")),[s]),U=(0,o.useCallback)((()=>{const e=F.current;if(e){const t=e.currentTime;Yt.some((r=>!!((e,t,r,n,o)=>{const i=o+e;return!n.has(i)&&r>0&&t>r*e&&(n.add(i),!0)})(r,t,e.duration,N.current,R.current)&&(null==m||m(r),!0))),null==l||l(t||0)}}),[m,l]),V=(0,o.useCallback)((()=>null==c?void 0:c()),[c]),B=(0,o.useCallback)((()=>{const e=F.current;0!==(null==e?void 0:e.currentTime)&&1!==(null==e?void 0:e.networkState)&&(null==f||f(++D.current))}),[f]),H=(0,o.useCallback)((()=>{I.current&&(a&&F.current&&F.current.play(),null==h||h(R.current),R.current=R.current+1,null==y||y())}),[y,a,h]),W=(0,o.useCallback)((()=>null==g?void 0:g()),[g]),z=(0,o.useCallback)((e=>X(void 0,null,(function*(){if(e){const t=e.play();if(void 0!==t)try{yield t,null==p||p(!1)}catch(t){e.muted=!0,null==p||p(!0),e.play()}}}))),[p]);(0,o.useEffect)((()=>{const e=F.current;e&&(z(e),null==v||v(e),isNaN(_)||(e.volume=_))}),[]),(0,o.useEffect)((()=>{const e=F.current;return e&&(e.addEventListener("play",M),e.addEventListener("pause",G),e.addEventListener("error",$),e.addEventListener("timeupdate",U),e.addEventListener("canplay",V),e.addEventListener("ended",H),e.addEventListener("waiting",B),e.addEventListener("webkitendfullscreen",W)),()=>{e&&(e.removeEventListener("play",M),e.removeEventListener("pause",G),e.removeEventListener("error",$),e.removeEventListener("timeupdate",U),e.removeEventListener("canplay",V),e.removeEventListener("ended",H),e.removeEventListener("waiting",B),e.removeEventListener("webkitendfullscreen",W))}}),[M,G,$,U,V,H,B,W]);const K=null==(A=null==(C=null==(S=b.video)?void 0:S.captions)?void 0:C[r])?void 0:A.vtt;return(null==O?void 0:O.url)?i().createElement("video",{crossOrigin:"anonymous",draggable:!0,className:x,width:w,height:k,muted:e,autoPlay:!0,playsInline:!0,ref:F,src:null==O?void 0:O.url,"data-giphy-id":b.id},t&&K&&i().createElement("track",{label:"English",kind:"subtitles",srcLang:r,src:K,default:!0})):null};er.className=Xt;var tr=er,rr=s().div`
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    font-family: interface, helvetica, arial;
    -webkit-font-smoothing: antialiased;
`,nr=s().div`
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
`,or=s().div`
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    opacity: ${e=>e.isHovered?1:0};
    transition: opacity ease-out 250ms;
    align-items: flex-start;
`,ir=s().div`
    font-size: 22px;
    color: white;
    margin-bottom: 5px;
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
`,ar=s().div`
    position: relative;
    min-width: 0;
`,sr=s().div`
    &:before {
        background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(0, 0, 0, 0));
        content: '';
        height: ${e=>e.isLargePlayer?125:75}px;
        left: 0;
        pointer-events: none;
        position: absolute;
        top: 0;
        width: 100%;
    }
    &:after {
        background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));
        content: '';
        height: ${e=>e.isLargePlayer?125:75}px;
        left: 0;
        pointer-events: none;
        position: absolute;
        bottom: 0;
        width: 100%;
    }
`,lr=e=>{const{width:t,hideMute:r,hideAttribution:a,hideProgressBar:s,className:l,persistentControls:c,gif:u,overlay:f}=e,[p,d]=(0,o.useState)(!1),[y,h]=(0,o.useState)(null),[m,g]=(0,o.useState)(e.muted),[v,b]=(0,o.useState)(!1),{setVideoEl:w,onMuted:E,onUserMuted:_}=e,x=e.height||(0,n._2)(u,t),[,S,C]=(0,V.default)((()=>{d(!1)}),4e3),A=(0,o.useCallback)((e=>{null==E||E(e),b(e)}),[b,E]),k=(0,o.useCallback)((e=>{null==w||w(e),h(e)}),[w,h]);(0,o.useEffect)((()=>{g(e.muted)}),[e.muted]);const O=c||p,j=x>=300;return(0,o.useEffect)((()=>(O?C():S(),()=>S())),[O,S,C]),i().createElement(rr,{className:l,style:{width:t,height:x},onMouseOver:()=>d(!0),onMouseLeave:()=>d(!1),onMouseMove:()=>{d(!0),C()},onClick:e=>{null==_||_(!(m||v)),null==y||y.play(),e.preventDefault(),v?(b(!1),g(!1)):g(!m)}},i().createElement(tr,Y(J({},e),{onMuted:A,setVideoEl:k,muted:m})),O&&i().createElement(sr,{isLargePlayer:j}),i().createElement(or,{isHovered:O},i().createElement(ar,null,j&&i().createElement(ir,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(u.url,"_blank")}},u.title),y&&!a?i().createElement(Kt,{gif:u}):null),!r&&i().createElement(nr,null,m||v?i().createElement(Qt,null):i().createElement(qt,null))),O&&!s&&y?i().createElement(Jt,{videoEl:y}):null,f&&i().createElement(f,{gif:u,isHovered:p,width:t,height:x}))};s().div`
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
`,s()((e=>(e.overlay&&!e.controls&&console.warn(`${n.Vy.PREFIX}: Overlays only work when controls are enabled`),e.controls?i().createElement(lr,J({},e)):i().createElement(tr,J({},e)))))`
    height: 100%;
    display: inline-block;
    object-fit: fill;
    pointer-events: none;
    background: rgb(0, 0, 0, 0);
`,s().div`
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: pointer;
    opacity: ${e=>e.isHovered?1:.8};
    transition: opacity ease-out 800ms;
`;(0,n.SU)("X-GIPHY-SDK-NAME","ReactSDK")},90844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigator=t.isBrowser=t.off=t.on=t.noop=void 0,t.noop=function(){},t.on=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)},t.isBrowser="undefined"!=typeof window,t.isNavigator="undefined"!=typeof navigator},3377:(e,t,r)=>{"use strict";var n=r(34629),o=r(97023),i=n.__importDefault(r(26392));t.A=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={loading:!1});var a=o.useRef(0),s=i.default(),l=o.useState(r),c=l[0],u=l[1],f=o.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=++a.current;return c.loading||u((function(e){return n.__assign(n.__assign({},e),{loading:!0})})),e.apply(void 0,t).then((function(e){return s()&&o===a.current&&u({value:e,loading:!1}),e}),(function(e){return s()&&o===a.current&&u({error:e,loading:!1}),e}))}),t);return[c,f]}},2626:(e,t,r)=>{"use strict";var n=r(34629),o=r(97023),i=n.__importDefault(r(70634));t.A=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=[]);var n=i.default(e,t),a=n[0],s=n[1],l=n[2];return o.useEffect(l,r),[a,s]}},49633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97023);t.default=function(e){n.useEffect(e,[])}},74851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97023),o=r(90844).isBrowser?n.useLayoutEffect:n.useEffect;t.default=o},50662:(e,t,r)=>{"use strict";var n=r(97023);t.A=function(e){var t=n.useRef(e);return t.current=e,t}},26392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97023);t.default=function(){var e=n.useRef(!1),t=n.useCallback((function(){return e.current}),[]);return n.useEffect((function(){return e.current=!0,function(){e.current=!1}}),[]),t}},69248:(e,t,r)=>{"use strict";var n=r(34629),o=r(97023),i=n.__importDefault(r(74851));t.A=function(e,t){void 0===e&&(e=1e12),void 0===t&&(t=0);var r=o.useState(0),n=r[0],a=r[1];return i.default((function(){var r,n,o,i=function(){var t=Math.min(1,(Date.now()-o)/e);a(t),s()},s=function(){r=requestAnimationFrame(i)},l=setTimeout((function(){n=setTimeout((function(){cancelAnimationFrame(r),a(1)}),e),o=Date.now(),s()}),t);return function(){clearTimeout(n),clearTimeout(l),cancelAnimationFrame(r)}}),[e,t]),n}},9717:(e,t,r)=>{"use strict";var n=r(34629),o=r(97023),i=n.__importDefault(r(52069));t.A=function(e,t){void 0===t&&(t=200);var r=o.useState(e),n=r[0],a=r[1],s=o.useRef(),l=o.useRef(null),c=o.useRef(0);return o.useEffect((function(){if(s.current)l.current=e,c.current=!0;else{a(e);var r=function(){c.current?(c.current=!1,a(l.current),s.current=setTimeout(r,t)):s.current=void 0};s.current=setTimeout(r,t)}}),[e]),i.default((function(){s.current&&clearTimeout(s.current)})),n}},70634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97023);t.default=function(e,t){void 0===t&&(t=0);var r=n.useRef(!1),o=n.useRef(),i=n.useRef(e),a=n.useCallback((function(){return r.current}),[]),s=n.useCallback((function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout((function(){r.current=!0,i.current()}),t)}),[t]),l=n.useCallback((function(){r.current=null,o.current&&clearTimeout(o.current)}),[]);return n.useEffect((function(){i.current=e}),[e]),n.useEffect((function(){return s(),l}),[t]),[a,l,s]}},52069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34629),o=r(97023),i=n.__importDefault(r(49633));t.default=function(e){var t=o.useRef(e);t.current=e,i.default((function(){return function(){return t.current()}}))}},9343:(e,t,r)=>{"use strict";var n=r(68897),o=r(88179),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},88179:(e,t,r)=>{"use strict";var n=r(6880),o=r(68897),i=r(18973),a=r(1711),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(l,s),u=r(67539),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,l,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(n,s,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},79381:(e,t,r)=>{"use strict";var n=r(67539),o=r(76296),i=r(1711),a=r(91399);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===l&&f?f.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},67539:(e,t,r)=>{"use strict";var n=r(68897)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},83841:e=>{"use strict";e.exports=EvalError},50219:e=>{"use strict";e.exports=Error},76190:e=>{"use strict";e.exports=RangeError},83950:e=>{"use strict";e.exports=ReferenceError},76296:e=>{"use strict";e.exports=SyntaxError},1711:e=>{"use strict";e.exports=TypeError},13221:e=>{"use strict";e.exports=URIError},35845:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},6880:(e,t,r)=>{"use strict";var n=r(35845);e.exports=Function.prototype.bind||n},68897:(e,t,r)=>{"use strict";var n,o=r(50219),i=r(83841),a=r(76190),s=r(83950),l=r(76296),c=r(1711),u=r(13221),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(e){d=null}var y=function(){throw new c},h=d?function(){try{return y}catch(e){try{return d(arguments,"callee").get}catch(e){return y}}}():y,m=r(14923)(),g=r(19372)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&v?v(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":h,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var _=v(v(e));E["%Error.prototype%"]=_}var x=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return E[t]=r,r},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(6880),A=r(24313),k=C.call(Function.call,Array.prototype.concat),O=C.call(Function.apply,Array.prototype.splice),j=C.call(Function.call,String.prototype.replace),L=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,D=function(e,t){var r,n=e;if(A(S,n)&&(n="%"+(r=S[n])[0]+"%"),A(E,n)){var o=E[n];if(o===b&&(o=x(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=L(e,0,1),r=L(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,I,(function(e,t,r,o){n[n.length]=r?j(o,R,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=D("%"+n+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],O(r,k([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var y=r[f],h=L(y,0,1),m=L(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&p||(s=!0),A(E,i="%"+(n+="."+y)+"%"))a=E[i];else if(null!=a){if(!(y in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&f+1>=r.length){var g=d(a,y);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else p=A(a,y),a=a[y];p&&!s&&(E[i]=a)}}return a}},91399:(e,t,r)=>{"use strict";var n=r(68897)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},96900:(e,t,r)=>{"use strict";var n=r(67539),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},19372:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},14923:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(14361);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},14361:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},24313:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(6880);e.exports=i.call(n,o)},91315:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=o(e);t;)t=o(e=t.ownerDocument);return e}(),t=[],r=null,n=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(e,r){n=e&&r?f(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),r},a._resetCrossOriginUpdater=function(){r=null,n=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),l(e,"resize",n,!0)),l(t,"scroll",n,!0),a&&a.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=o(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=n;){var i=o(r);if((r=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),t!=n){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!r||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,a=c(o),s=this._rootContainsTarget(o),l=n.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,a,t),f=null;this._rootContainsTarget(o)?r&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=n.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:f,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,l,u,p,y,h,m,g=o,v=d(t),b=!1;!b&&v;){var w=null,E=1==v.nodeType?window.getComputedStyle(v):{};if("none"==E.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==e)r&&!this.root?!n||0==n.width&&0==n.height?(v=null,w=null,g=null):w=n:w=i;else{var _=d(v),x=_&&c(_),S=_&&this._computeTargetAndRootIntersection(_,x,i);x&&S?(v=_,w=f(x,S)):(v=null,g=null)}else{var C=v.ownerDocument;v!=C.body&&v!=C.documentElement&&"visible"!=E.overflow&&(w=c(v))}if(w&&(a=w,s=g,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(a.top,s.top),u=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),m=u-l,g=(h=(y=Math.min(a.right,s.right))-p)>=0&&m>=0&&{top:l,bottom:u,left:p,right:y,width:h,height:m}||null),!g)break;v=v&&d(v)}return g}},a.prototype._getRootRect=function(){var t;if(this.root&&!y(this.root))t=c(this.root);else{var r=y(this.root)?this.root:e,n=r.documentElement,o=r.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var r=this.root&&(this.root.ownerDocument||this.root)||e;return p(r,t)&&(!this.root||r==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var r,n,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function l(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,r)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var r=t.top-e.top,n=t.left-e.left;return{top:r,left:n,height:t.height,width:t.width,bottom:r+t.height,right:n+t.width}}function p(e,t){for(var r=t;r;){if(r==e)return!0;r=d(r)}return!1}function d(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function y(e){return e&&9===e.nodeType}}()},28527:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,A=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(43966),F=N.custom,T=V(F)?F:null;function $(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function M(e){return b.call(String(e),/"/g,"&quot;")}function G(e){return!("[object Array]"!==W(e)||P&&"object"==typeof e&&P in e)}function U(e){return!("[object RegExp]"!==W(e)||P&&"object"==typeof e&&P in e)}function V(e){if(L)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!H(l,"customInspect")||l.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"==typeof t){var A=String(t)+"n";return w?D(t,A):A}var O=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=O&&O>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var F,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(l,o);if(void 0===s)s=[];else if(z(s,t)>=0)return"[Circular]";function q(t,r,n){if(r&&(s=C.call(s)).push(r),n){var i={depth:l.depth};return H(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!U(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,q);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+S.call(te,", ")+" }":"")}if(V(t)){var re=L?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||L?re:Q(re)}if((F=t)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+$(M(oe[ie].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var ae=X(t,q);return B&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Y(ae,B)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||P&&"object"==typeof e&&P in e)}(t)){var se=X(t,q);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(x.call("[cause]: "+q(t.cause),se),", ")+" }"}if("object"==typeof t&&h){if(T&&"function"==typeof t[T]&&N)return N(t,{depth:O-o});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,r){le.push(q(r,t,!0)+" => "+q(e,t))})),J("Map",i.call(t),le,B)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(q(e,t))})),J("Set",c.call(t),ce,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==W(e)||P&&"object"==typeof e&&P in e)}(t))return Q(q(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return Q(q(k.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||P&&"object"==typeof e&&P in e)}(t))return Q(y.call(t));if(function(e){return!("[object String]"!==W(e)||P&&"object"==typeof e&&P in e)}(t))return Q(q(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==W(e)||P&&"object"==typeof e&&P in e)}(t)&&!U(t)){var ue=X(t,q),fe=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!fe&&P&&Object(t)===t&&P in t?v.call(W(t),8,-1):pe?"Object":"",ye=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+S.call(x.call([],de||[],pe||[]),": ")+"] ":"");return 0===ue.length?ye+"{}":B?ye+"{"+Y(ue,B)+"}":ye+"{ "+S.call(ue,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return B.call(e,t)}function W(e){return h.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function K(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+n}return $(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):S.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=G(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=H(e,o)?t(e[o],e):""}var i,a="function"==typeof O?O(e):[];if(L){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)H(e,l)&&(r&&String(Number(l))===l&&l<e.length||L&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof O)for(var c=0;c<a.length;c++)I.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},60769:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8985:(e,t,r)=>{"use strict";var n=r(41088),o=r(52286),i=r(60769);e.exports={formats:i,parse:o,stringify:n}},52286:(e,t,r)=>{"use strict";var n=r(65364),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,f),d=-1,y=t.charset;if(t.charsetSentinel)for(u=0;u<p.length;++u)0===p[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[u]?y="utf-8":"utf8=%26%2310003%3B"===p[u]&&(y="iso-8859-1"),d=u,u=p.length);for(u=0;u<p.length;++u)if(u!==d){var h,m,g=p[u],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(h=t.decoder(g,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,b),a.decoder,y,"key"),m=n.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=o.call(r,h);w&&"combine"===t.duplicates?r[h]=n.combine(r[h],m):w&&"last"!==t.duplicates||(r[h]=m)}return r}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(u),d=0;d<p.length;++d){var y=p[d],h=c(y,u[y],r,"string"==typeof e);f=n.merge(f,h,r)}return!0===r.allowSparse?f:n.compact(f)}},41088:(e,t,r)=>{"use strict";var n=r(10588),o=r(65364),i=r(60769),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},y={},h=function e(t,r,i,a,s,c,f,p,h,m,g,v,b,w,E,_,x,S){for(var C,A=t,k=S,O=0,j=!1;void 0!==(k=k.get(y))&&!j;){var L=k.get(t);if(O+=1,void 0!==L){if(L===O)throw new RangeError("Cyclic object value");j=!0}void 0===k.get(y)&&(O=0)}if("function"==typeof m?A=m(r,A):A instanceof Date?A=b(A):"comma"===i&&l(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(c)return h&&!_?h(r,d.encoder,x,"key",w):r;A=""}if("string"==typeof(C=A)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||o.isBuffer(A))return h?[E(_?r:h(r,d.encoder,x,"key",w))+"="+E(h(A,d.encoder,x,"value",w))]:[E(r)+"="+E(String(A))];var P,I=[];if(void 0===A)return I;if("comma"===i&&l(A))_&&h&&(A=o.maybeMap(A,h)),P=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(m))P=m;else{var R=Object.keys(A);P=g?R.sort(g):R}var D=p?r.replace(/\./g,"%2E"):r,N=a&&l(A)&&1===A.length?D+"[]":D;if(s&&l(A)&&0===A.length)return N+"[]";for(var F=0;F<P.length;++F){var T=P[F],$="object"==typeof T&&void 0!==T.value?T.value:A[T];if(!f||null!==$){var M=v&&p?T.replace(/\./g,"%2E"):T,G=l(A)?"function"==typeof i?i(N,M):N:N+(v?"."+M:"["+M+"]");S.set(t,O);var U=n();U.set(y,S),u(I,e($,G,i,a,s,c,f,p,"comma"===i&&_&&l(A)?null:h,m,g,v,b,w,E,_,x,U))}}return I};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],c=d.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(r=c.filter);var f=[];if("object"!=typeof o||null===o)return"";var p=s[c.arrayFormat],y="comma"===p&&c.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var m=n(),g=0;g<r.length;++g){var v=r[g];c.skipNulls&&null===o[v]||u(f,h(o[v],v,p,y,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var b=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},65364:(e,t,r)=>{"use strict";var n=r(60769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var f=s.length>=l?s.slice(u,u+l):s,p=[],d=0;d<f.length;++d){var y=f.charCodeAt(d);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?p[p.length]=f.charAt(d):y<128?p[p.length]=a[y]:y<2048?p[p.length]=a[192|y>>6]+a[128|63&y]:y<55296||y>=57344?p[p.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y]:(d+=1,y=65536+((1023&y)<<10|1023&f.charCodeAt(d)),p[p.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},18973:(e,t,r)=>{"use strict";var n=r(68897),o=r(79381),i=r(96900)(),a=r(91399),s=r(1711),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},10588:(e,t,r)=>{"use strict";var n=r(68897),o=r(9343),i=r(28527),a=r(1711),s=n("%WeakMap%",!0),l=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),h=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(l){if(t)return p(t,n)}else if(r)return function(e,t){var r=h(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(l){if(t)return y(t,n)}else if(r)return function(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),u(e,n,o)):l?(t||(t=new l),d(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},53442:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>N,uK:()=>D});var n,o,i,a=r(13299),s=r(8985),l=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&h(e,r,t[r]);if(p)for(var r of p(t))y.call(t,r)&&h(e,r,t[r]);return e},g=(e,t)=>c(e,u(t)),v=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')})),b=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())})),w=(n={"package.json"(e,t){t.exports={scripts:{lint:"run -T eslint . --ext .ts,.tsx",clean:"rm -rf ./dist",dev:"parcel public/test.html",docs:"typedoc src/index.ts",build:"run -T tsup src/index.ts --format cjs,esm --dts && run -T publint",prepublish:"npm run clean && npm run build",test:"run -T jest --config ./jestconfig.js","test:watch":"run -T jest --config ./jestconfig.js --watchAll"},name:"@giphy/js-fetch-api",version:"5.1.0",description:"Javascript API to fetch gifs and stickers from the GIPHY API.",homepage:"https://github.com/Giphy/giphy-js/tree/master/packages/fetch-api",main:"dist/index.cjs",types:"dist/index.d.ts",module:"dist/index.js",type:"module",sideEffects:!1,exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs"},"./package.json":"./package.json"},files:["dist/","src/**/*"],license:"MIT",publishConfig:{access:"public"},dependencies:{"@giphy/js-types":"*","@giphy/js-util":"*",qs:"^6.9.4"},devDependencies:{"@types/qs":"^6.9.4","jest-fetch-mock":"^3.0.3","parcel-bundler":"latest",typedoc:"^0.20.36","typedoc-thunder-theme":"^0.0.2",typescript:"^5.0.4"}}}},function(){return o||(0,n[f(n)[0]])((o={exports:{}}).exports,o),o.exports}),E=["is_anonymous","is_community","is_featured","is_hidden","is_indexable","is_preserve_size","is_realtime","is_removed","is_sticker","is_dynamic"],_=["suppress_chrome","is_public","is_verified"],x=e=>t=>e[t]=!!e[t],S=e=>"string"==typeof e?e:e.text,C=e=>{const t=m({},e);t.id=String(t.id),t.tags=(t.tags||[]).map(S),E.forEach(x(t)),Object.keys(t.images||{}).forEach((e=>{const r=t.images[e];r.width=parseInt(r.width),r.height=parseInt(r.height)}));const{user:r}=t;if(r){const e=m({},r);_.forEach(x(e)),t.user=e}return t},A=e=>(e.data=C(e.data),e),k=e=>(e.data=e.data.map((e=>C(e))),e),O=(("undefined"!=typeof window?window:global)||{}).GIPHY_API_URL||"https://api.giphy.com/v1/",j=class extends Error{constructor(e,t,r=0,n=""){super(e),this.url=t,this.status=r,this.statusText=n}},L=e=>e,P={},I=function(e,t={}){const{apiVersion:r=1,noCache:n=!1,normalizer:o=L}=t,i=O.replace(/\/v\d+\/$/,`/v${r}/`);if((()=>{const e=Date.now();Object.keys(P).forEach((t=>{const r=P[t].isError?6e3:6e4;e-P[t].ts>=r&&delete P[t]}))})(),!P[e]||n){const t=`${i}${e}`,r=()=>b(this,null,(function*(){var r;let n;try{const i=yield fetch(t,{method:"get"});if(i.ok){const e=yield i.json();if(null==(r=e.meta)?void 0:r.response_id)return o(e);throw{message:"synthetic response"}}{let r="Error fetching";try{const e=yield i.json();e.message&&(r=e.message)}catch(e){}P[e]&&(P[e].isError=!0),n=new j(`@giphy/js-fetch-api: ${r}`,t,i.status,i.statusText)}}catch(r){n=new j(r.message,t),P[e]&&(P[e].isError=!0)}throw n}));P[e]={request:r(),ts:Date.now()}}return P[e].request},R=e=>e&&e.type?e.type:"gifs",D=class{constructor(e){this.getQS=(e={})=>s.stringify(g(m({},e),{api_key:this.apiKey,pingback_id:(0,a.t0)()})),this.apiKey=e}categories(e){return I(`gifs/categories?${this.getQS(e)}`)}gif(e){return I(`gifs/${e}?${this.getQS()}`,{normalizer:A})}gifs(e,t){return Array.isArray(e)?I(`gifs?${this.getQS({ids:e.join(",")})}`,{normalizer:k}):I(`gifs/categories/${e}/${t}?${this.getQS()}`,{normalizer:k})}emoji(e){return I(`emoji?${this.getQS(e)}`,{normalizer:k})}emojiDefaultVariations(e){return I(`emoji?${this.getQS(e)}`,{apiVersion:2,normalizer:k})}emojiVariations(e){return I(`emoji/${e}/variations?${this.getQS()}`,{apiVersion:2,normalizer:k})}animate(e,t={}){const r=this.getQS(g(m({},t),{m:e}));return I(`text/animate?${r}`,{normalizer:k})}search(e,t={}){const r=t.channel?`@${t.channel} ${e}`:e;let n;"text"===t.type&&(n=!0);const o=this.getQS(g(m({rating:"pg-13"},t),{q:r,excludeDynamicResults:n}));return I(`${R(t)}/search?${o}`,{normalizer:k})}subcategories(e,t){return I(`gifs/categories/${e}?${this.getQS(t)}`)}trending(e={}){return I(`${R(e)}/trending?${this.getQS(m({rating:"pg-13"},e))}`,{normalizer:k})}random(e){return I(`${R(e)}/random?${this.getQS(m({rating:"pg-13"},e))}`,{noCache:!0,normalizer:A})}related(e,t={}){const{type:r="gifs"}=t;return I(`${r}/related?${this.getQS(m({gif_id:e,rating:"pg-13"},t))}`,{normalizer:k})}channels(e,t={}){return I(`channels/search?${this.getQS(m({q:e,rating:"pg-13"},t))}`)}},N=(e,t=[])=>{const r=[...t],n=t.map((e=>e.id));let o=t.length,i=!1;return()=>b(void 0,null,(function*(){if(i)return r;const t=yield e(o),{pagination:a,data:s}=t;return o=a.count+a.offset,i=o===a.total_count,s.forEach((e=>{const{id:t}=e;n.includes(t)||(r.push(e),n.push(t))})),[...r]}))};if(void 0!==v){const{version:e}=w();(null==(i=(0,a.D6)())?void 0:i.get("X-GIPHY-SDK-NAME"))||((0,a.SU)("X-GIPHY-SDK-NAME","FetchAPI"),(0,a.SU)("X-GIPHY-SDK-VERSION",e))}},13299:(e,t,r)=>{"use strict";r.d(t,{Vy:()=>g,SU:()=>L,lm:()=>k,th:()=>S,sr:()=>x,Sj:()=>w,_2:()=>C,Vs:()=>A,D6:()=>j,t0:()=>_,Up:()=>b});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));const l=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}return function(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}(o)};var c=Object.defineProperty,u=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&h(e,r,t[r]);if(p)for(var r of p(t))y.call(t,r)&&h(e,r,t[r]);return e},g={ENABLED:"undefined"!=typeof window&&"undefined"!=typeof location&&-1!==location.search.indexOf("giphy-debug"),LEVEL:0,PREFIX:"GiphyJS",debug:(...e)=>{g.ENABLED&&g.LEVEL<=0&&console.debug(g.PREFIX,...e)},info:(...e)=>{g.ENABLED&&g.LEVEL<=1&&console.info(g.PREFIX,...e)},warn:(...e)=>{g.ENABLED&&g.LEVEL<=2&&console.warn(g.PREFIX,...e)},error:(...e)=>{g.ENABLED&&g.LEVEL<=3&&console.error(g.PREFIX,...e)}},v=function(e,t,r,n=50){let[o]=e;const i=e.filter((e=>(e.width*e.height>o.width*o.height&&(o=e),t-e.width<=n&&r-e.height<=n)));return 0===i.length?o:((e,t,r)=>{let n,o=1/0;return r.forEach((r=>{const i=r.width/e*(r.height/t),a=Math.abs(1-i);a<o&&(o=a,n=r)})),n})(t,r,i)};function b(e,t){const r={};return t.forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r}var w=e=>{let t=0,r=0;const n=e.offsetWidth,o=e.offsetHeight;do{t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent}while(e);const i={left:t,top:r,width:n,height:o,right:t+n,bottom:r+o,x:t,y:r};return a=m({},i),u(a,f({toJSON:()=>JSON.stringify(i)}));var a},E="",_=()=>{if(!E){try{E=sessionStorage.getItem("giphyPingbackId")}catch(e){}if(!E){const e=(new Date).getTime().toString(16);try{E=`${e}${l().replace(/-/g,"")}`.substring(0,16)}catch(e){E=(()=>{let e="";for(let t=0;t<16;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e})()}try{sessionStorage.setItem("giphyPingbackId",E)}catch(e){}}}return E},x=(new Promise((e=>{"undefined"==typeof Image&&e(!1);const t=new Image;t.onload=()=>{e(!0)},t.onerror=()=>{e(!1)},t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"})),(e,t,r)=>{let n=null==e?void 0:e.assets;if(n){n=m({},n),delete n.source;const e=Object.values(n).sort(((e,t)=>e.width-t.width));return v(e,t,r)}}),S=(e,t,r,n)=>{const o=b(e,["original","fixed_width","fixed_height","fixed_width_small","fixed_height_small"]),i=Object.entries(o).map((([e,t])=>m({renditionName:e},t)));return v(i,t,r,n)},C=({images:e},t)=>{const{fixed_width:r}=e;if(r){const{width:e,height:n}=r,o=e/n;return Math.round(t/o)}return 0},A=({images:e},t)=>{const{fixed_width:r}=e;if(r){const{width:e,height:n}=r,o=e/n;return Math.round(t*o)}return 0},k=({alt_text:e,user:t,tags:r=[],is_sticker:n=!1,title:o=""})=>{if(e)return e;if(o)return o;const i=t&&t.username||"";var a;return`${i?`${i} `:""}${function(e,t=0){return e.slice(0,t)}((a=["transparent"],r.filter((e=>-1===a.indexOf(e)))),i?4:5).join(" ")} ${n?"Sticker":"GIF"}`},O=("undefined"!=typeof window?window:global)||{};O._GIPHY_SDK_HEADERS_=O._GIPHY_SDK_HEADERS_||(O.Headers?new O.Headers({"X-GIPHY-SDK-PLATFORM":"web"}):void 0);var j=()=>O._GIPHY_SDK_HEADERS_,L=(e,t)=>{var r;return null==(r=j())?void 0:r.set(e,t)}},34629:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>D,__assign:()=>i,__asyncDelegator:()=>C,__asyncGenerator:()=>S,__asyncValues:()=>A,__await:()=>x,__awaiter:()=>y,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>I,__createBinding:()=>m,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>c,__exportStar:()=>g,__extends:()=>o,__generator:()=>h,__importDefault:()=>L,__importStar:()=>j,__makeTemplateObject:()=>k,__metadata:()=>d,__param:()=>l,__propKey:()=>f,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>T,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>_,__spreadArrays:()=>E,__values:()=>v,default:()=>$});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var h in n)y[h]="access"===h?{}:n[h];for(var h in n.access)y.access[h]=n.access[h];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[d])("accessor"===l?{get:f.get,set:f.set}:f[c],y);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(f.get=s),(s=a(m.set))&&(f.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===l?o.unshift(s):f[c]=s)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function _(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function C(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:o?o(t):t}:o}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return O(t,e),t}function L(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function T(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e})):e}const $={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:f,__setFunctionName:p,__metadata:d,__awaiter:y,__generator:h,__createBinding:m,__exportStar:g,__values:v,__read:b,__spread:w,__spreadArrays:E,__spreadArray:_,__await:x,__asyncGenerator:S,__asyncDelegator:C,__asyncValues:A,__makeTemplateObject:k,__importStar:j,__importDefault:L,__classPrivateFieldGet:P,__classPrivateFieldSet:I,__classPrivateFieldIn:R,__addDisposableResource:D,__disposeResources:F,__rewriteRelativeImportExtension:T}}}]);
//# sourceMappingURL=4402.6d1b3759c61ca7a57ce4.js.map